Repository navigation
docs(gate): define repair-route eligibility contract - #2243
Conversation
WalkthroughThe changes define canonical repair-route eligibility rules, add a declarative slice specification, update RIPR-SPEC-0067 with issue and implementation details, extend traceability references, and document standalone artifact behavior. ChangesGate repair-route eligibility
Estimated code review effort: 2 (Simple) | ~10 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
Actionable comments posted: 2
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@docs/specs/RIPR-SPEC-0067-pr-gate-use-case.md`:
- Line 295: Update the wording in the contract sentence to hyphenate
“default-generated” when it modifies “workflow,” without changing the
surrounding meaning.
- Around line 276-293: Update the eligibility outcome table in the section
defining the closed analysis-completeness vocabulary to add explicit rows for
`failed` and `unavailable` analysis. Specify fail-closed, gate-ineligible
behavior for both states, and define when the selected gate mode must produce
`config_error`; keep the existing complete, limited, stale, preview-authority,
advisory, and calibrated-blocking outcomes unchanged.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: ASSERTIVE
Plan: Pro Plus
Run ID: 64b9a5ec-2bd0-4de8-83d0-16f822e75520
📒 Files selected for processing (4)
.allow/spec-system/slices/gate-repair-route-eligibility.v1.toml.ripr/traceability.tomldocs/specs/RIPR-SPEC-0067-pr-gate-use-case.mdpolicy/doc-artifacts.toml
🔗 Linked repositories identified
CodeRabbit considers these linked repositories for cross-repo context during reviews:
EffortlessMetrics/ripr(auto-detected)EffortlessMetrics/perl-lsp(auto-detected)EffortlessMetrics/unsafe-review(auto-detected)EffortlessMetrics/ub-review(auto-detected)
There was a problem hiding this comment.
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
docs/specs/RIPR-SPEC-0067-pr-gate-use-case.md (1)
283-292: 🎯 Functional Correctness | 🟠 Major | 🏗️ Heavy liftMake outcome precedence and mode behavior deterministic.
These predicates are not stated to be mutually exclusive: limited, stale, failed, or unavailable analysis can also have missing route fields, so the same evidence could produce either
incomplete_repair_routeor an analysis-status outcome. The conditionalconfig_errorbehavior likewise does not identify the authoritative mode mapping. Define explicit precedence and mode-specific outcomes so every evidence state has one canonical result.🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@docs/specs/RIPR-SPEC-0067-pr-gate-use-case.md` around lines 283 - 292, Update the eligibility decision table to define a deterministic precedence order for overlapping evidence, including missing route fields combined with limited, stale, failed, or unavailable analysis. Specify the authoritative outcome for each configured gate mode, including when those conditions produce config_error versus an analysis-status result, so every evidence state maps to exactly one canonical outcome.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Outside diff comments:
In `@docs/specs/RIPR-SPEC-0067-pr-gate-use-case.md`:
- Around line 283-292: Update the eligibility decision table to define a
deterministic precedence order for overlapping evidence, including missing route
fields combined with limited, stale, failed, or unavailable analysis. Specify
the authoritative outcome for each configured gate mode, including when those
conditions produce config_error versus an analysis-status result, so every
evidence state maps to exactly one canonical outcome.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: ASSERTIVE
Plan: Pro Plus
Run ID: 91de5df9-a6f0-4e2c-b665-9b6050082d3c
📒 Files selected for processing (1)
docs/specs/RIPR-SPEC-0067-pr-gate-use-case.md
🔗 Linked repositories identified
CodeRabbit considers these linked repositories for cross-repo context during reviews:
EffortlessMetrics/ripr(auto-detected)EffortlessMetrics/perl-lsp(auto-detected)EffortlessMetrics/unsafe-review(auto-detected)EffortlessMetrics/ub-review(auto-detected)
|
Inspection record (review posture: no findings, documenting what was checked). Surfaces inspected: the RIPR-SPEC-0067 "Canonical repair-route eligibility contract" amendment, the slice, traceability delta, and policy/doc-artifacts metadata. Consistency checks against landed authority (my #2028 PR1/PR2 context):
Risks considered: dual-authority confusion (packet flip vs gate eligibility — mitigated by distinct seams and the "does not change gate behavior" non-goal); vocabulary drift (not found); dishonest test references (not found). Residual assumptions: the B2 slice (seam-identity carry-through) will need to reconcile the 18-field eligibility inputs with the actual No actionable findings from this pass. |
Summary
Swarm / Source Boundary
Ordinary spec, documentation, policy-metadata, and traceability work for
EffortlessMetrics/ripr-swarm. No published source or release surface changes.Source-of-truth Links
docs/specs/RIPR-SPEC-0067-pr-gate-use-case.md.allow/spec-system/slices/gate-repair-route-eligibility.v1.tomlScope
One docs/spec/test-only evidence package for the B1 gate eligibility contract.
Scope Classification
Production delta: none. Evidence/support delta: normative completeness outcomes, traceability, and slice metadata.
Single acceptance criterion: every declared analysis completeness state has one fail-closed eligibility outcome without producer-identity reconstruction.
Non-goals: no
GapRecord.seam_idproduction, gate enforcement, command execution, receipt issuance, support-tier promotion, or runtime mutation confirmation.Support-tier Impact
This PR narrows and documents authority; it does not promote a support claim.
Policy Impact
policy/doc-artifacts.tomlrecords the standalone reason for RIPR-SPEC-0067.Proof
All listed local checks pass on the current review-fix head. Hosted required checks remain authoritative.
Claim Boundary
This PR defines B1 only. Until B2 producer identity and B3 enforcement land, gap-ledger routes remain visibly incomplete and cannot block.
Rollback
Revert the two docs/spec commits. No runtime or workflow rollback is required.
Spec-Test-Code Traceability
.ripr/traceability.toml.allow/spec-system/slices/gate-repair-route-eligibility.v1.tomland existing gate producersgate_repair_route_completeness; no metric behavior changeStatic Language Check
CI Economics
Engineering Check
Gates