Repository navigation
Description
Parent
#928 — one authority-ordered evidence portfolio.
Roadmap: #945 B4.3. Deterministic acceleration parent: #1268/#1271.
Dependencies
- B4.2 proof(portfolio): normalize spine impact model and follow-up candidates into one evidence catalog #977 — unified evidence catalog with complete model-off form.
- B3.2 impact: identify exact changed tests targets consumers and bounded reverse dependencies #974 — mechanically authoritative changed tests, targets, consumers and bounded reverse 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
- Applicable Required spine obligations.
- Cheap exact proof capable of changing a material current deterministic claim.
- Exact changed tests/filters.
- Base-plus-tests discrimination.
- Exact policy/schema/verifier/consumer checks mechanically known in the current inputs.
- One canonical task serving several consumers.
- Owning target/package and bounded reverse dependencies.
- 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
- Compute stable rank classes/reasons from consumer authority, B3.2 impact: identify exact changed tests targets consumers and bounded reverse dependencies #974 material facts, canonical identity and explicit source gaps.
- Keep cost/value estimates secondary within authority/material classes.
- Fix the PR fix(policy): fail closed on a malformed ripr suppression ledger #921 shape so suppression-ledger/policy evidence precedes unrelated CLI integration tests.
- Prefer exact multi-consumer work without unsafe subsumption.
- Record every selected, already-satisfied, deferred, unsupported, unsafe, ambiguous and fallback candidate.
- When material structural context is missing, choose a named broad fallback or produce an explicit gap; do not guess a narrow route.
- Stay shadow-only; current broker execution remains unchanged.
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
- No live resource admission, duration learning, adaptive history, heavy witness requirement or gate switch.
- No requirement for complete B3.3 impact: add repository-contract mirror trust support edges and verify the full MaterialChangeMap #975 before the local/mechanical order can be proven.
- No second ranking implementation for model-off.
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