Skip to content

B4.3 proof(portfolio): rank Required and changed-seam evidence before broad fallback #978

Open

Description

@EffortlessSteven

Parent

#928 — one authority-ordered evidence portfolio.

Roadmap: #945 B4.3. Deterministic acceleration parent: #1268/#1271.

Dependencies

#975 RepositoryContract/mirror/trust/support edges enrich the ranking when available, but are not a prerequisite for the deterministic model-off order. Missing enrichment must force conservative fallback or an explicit evidence gap rather than invented precision.

Objective

Implement deterministic authority/materiality ordering that prevents optional broad work from starving Required or exact changed-seam evidence.

Selection order

  1. Applicable Required spine obligations.
  2. Cheap exact proof capable of changing a material current deterministic claim.
  3. Exact changed tests/filters.
  4. Base-plus-tests discrimination.
  5. Exact policy/schema/verifier/consumer checks mechanically known in the current inputs.
  6. One canonical task serving several consumers.
  7. Owning target/package and bounded reverse dependencies.
  8. Broad conservative fallback with remaining planned capacity.

RepositoryContract and model-derived context may refine only within their allowed classes; they cannot demote Required or mechanically exact seams.

Scope

Acceptance

  • Optional broad work cannot consume the planned capacity reserved for Required work.
  • Exact changed tests/seams outrank broad package/workspace tests.
  • A mechanically exact seam cannot be displaced by model confidence, weak history or absent RepositoryContract enrichment.
  • Equivalent multi-consumer work is favored without merging distinct modes/sides/environments.
  • Missing structural enrichment yields explicit conservative fallback/gap.
  • Model-off produces the complete deterministic order.
  • Arrival/file/source order cannot change rank classes, selected set or reasons.
  • Declined runnable work remains artifact-only and cannot become maintainer homework.
  • The fix(policy): fail closed on a malformed ripr suppression ledger #921 fixture selects the exact policy/changed seam before unrelated CLI fallback.
  • Existing live scheduling/gate behavior remains unchanged.

Proof

  • fix(policy): fail closed on a malformed ripr suppression ledger #921 starvation replay.
  • Exact-versus-broad, Required precedence, mixed-cost and multi-consumer fixtures.
  • Missing RepositoryContract/consumer edge conservative fallback cases.
  • Model-off and later-enrichment compatibility cases.
  • Distinct red/green, features, targets, roots and environments.
  • Stable-order/verifier negatives.
  • Full focused/workspace/fmt/Clippy/policy validation.

Non-goals

Completion

Close when the shared ranking can feed #1271's model-off acceptance and later accept #975/model enrichment without changing Required/mechanically exact precedence.

Rollback

Keep ranking in shadow and retain the unified catalog. Never restore arrival-order selection or allow missing enrichment to masquerade as precise routing.

Activity

  1. added
    epic
    on Aug 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    epictest

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions