Repository navigation
fix(repair): gate explicit repair subjects on eligibility (#8166 Slice A) - #8273
Merged
Merged
Conversation
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
Member
Author
|
Exact-head review (author self-review, COMMENT disposition): |
EffortlessSteven
marked this pull request as ready for review
October 16, 2026 20:58
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
Contributor
There was a problem hiding this comment.
Decision
- Needs one verification check before upstream.
Verification questions
- Confirm ast-grep scan of RepairSubject::{Seam,Decision} constructors shows the new ineligible_repair_item is the sole new Decision constructor introduced; ambiguous_gap_item, unknown_repair_item, and canonical_truncated paths retain prior semantics. drive_before_phase is only invoked from the Seam arm, so ineligible items bypass lock and attempt-store side effects.
Refuted
- A second eligibility validator parallel to repair_packet_eligibility could be needed inside resolve_repair_subject to avoid coupling.; refuted because: The diff does not introduce a parallel validator; it factors a single shared helper that both call sites use, which is the minimal-coupling solution.
Parked follow-ups
- Pre-existing ambiguous canonical-gap arm does not surface ineligibility reasons even when all candidates would be refused by the gate; out of scope for #8166 Slice A but worth a parked follow-up so the next slice can decide whether to gate it.
Evidence gaps
- Model proof intent was rejected by deterministic validation.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Slice A of #8166 (2026-10-16 slice plan): gate explicit
ripr repairsubjects on repair eligibility before any before-phase attempt.
resolve_repair_subjectpreviously returnedRepairSubject::Seamforan exact seam ID or a unique canonical gap ID with no
repair_packet_eligibility/AgentBriefPolicycheck, whileresolve_repair_startgated implicit selection oneligible() && omission.is_none(). The façade then droveSeam -> drive_before_phaseunconditionally. Downstream, thelock-before-persist path (
cli/mod.rs) already prevented a persistedattempt for ineligible seams, but with exit 2 (Failure) instead of
3 (Decision), a downstream packet message instead of a named resolver
reason, and a
.before.lock/ repair-attempt-store side effect.Refs #8166 Slice A. Does not close #8166.
Production delta
crates/ripr/src/app/task_first.rs: new sharedrepair_refusal_reasongate (producer-ownedrepair_packet_eligibilityflip first, then
AgentBriefPolicy::omission_reason_for_class, sameprecedence as the auto selector).
resolve_repair_startnow uses it(byte-identical reason strings), and
resolve_repair_subjectuses itfor both exact seam IDs and unique canonical gap IDs: eligible ->
Seam, ineligible ->Decisionnaming the item, the seam, and thereason (
not a headline repair target,configured off,repair route not ready, ...), beforedrive_before_phaseacquiresthe lock. Unknown/ambiguous/truncated behavior unchanged.
Evidence delta
crates/ripr/tests/task_first_facade.rs: three durable CLI tests(exit code, stderr, stdout emptiness, attempt-store and
.before.lockabsence, plus eligible positive control).
.ripr/traceability.toml: new tests mapped under existingRIPR-SPEC-0011 (where every sibling façade test lives). No new
.allow/spec-system/slices/file: no repair-façade slice exists(the
gate-repair-route-eligibilityslice owns the PR-gate contractfor fix(gate): gap-ledger records can never block — seam_id hardcoded None makes route perpetually incomplete #1933, not this resolver), so no slice was invented.
changelog.d/8166-repair-eligibility-gate.md: Fixed fragment.Acceptance matrix
agent packet ... configured off for strongly_grippedmessage... not repair-eligible: not a headline repair target, no attempt, no.before.lock, no attempt storeconfigured offreason, no attempt/lock/storePre-fix red (unmodified production,
cargo test -p ripr --test task_first_facade repair_explicit):1 passed; 2 failedwithexpected exit 3, left: Some(2)on both ineligible tests.Proof
cargo test -p ripr --test task_first_facade repair_explicit: 3 passed.cargo test -p ripr --test task_first_facade: 21 passed.cargo test -p ripr --lib task_first: 17 passed.cargo fmt --check: clean.cargo xtask check-fast: see CI / comment.Limitations / non-goals
fix(agent): name the family mismatch for gap: IDs passed as seam IDs (#8158) #8207 hint changes, or new
probe:/file:linerepair mappings.ripr agent repair --seam-idkeeps its existing downstream typedrefusal; only the task-first façade resolver is gated here.
IDs only exist for headline-eligible classes, so the packet flip
alone cannot make one ineligible).
Rollback
Revert the single commit: explicit subjects return to the downstream
packet refusal (exit 2, lock side effect) with no schema or store
format change; no migration needed.