Repository navigation
test(gate): pin command boundary outcomes - #2252
Conversation
WalkthroughThe PR defines the ChangesGate command boundary
Estimated code review effort: 2 (Simple) | ~10 minutes Possibly related issues
Possibly related PRs
Suggested labels: Poem
🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (3 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 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 `@crates/ripr/tests/cli_smoke.rs`:
- Around line 790-799: Extend the visible-only assertions in the CLI smoke test
after the existing seam_id check to validate the complete repair_route,
including the producer-owned inspection_command and static_ripr_evidence_only
disclosure, matching the corresponding blocking-mode assertions and preserving
the expected advisory output contract.
🪄 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: 3e9e1f4b-fcd1-4227-97a6-e8e4d48fddcc
📒 Files selected for processing (6)
.allow/spec-system/slices/gate-command-boundary.v1.toml.ripr/traceability.tomlcrates/ripr/tests/cli_smoke.rsdocs/specs/README.mddocs/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/unsafe-review(auto-detected)EffortlessMetrics/perl-lsp(auto-detected)EffortlessMetrics/ub-review(auto-detected)
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: e5b72028d7
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Complements the artifact-level wire-form pin with an enum-level one (TypeScript/preview/class_method/missing_import_graph), cherry-picked from the Test bot's branch push; the bot's unrelated #2252 contamination is not taken.
…#2250) * perf(cli): reuse check artifacts across check/explain/context (#2107) * fix(cli): close artifact-reuse identity gaps for CLI-only flags and perl producer mode (#2107) * fix(cli): align check-artifact wire form with documented enum vocabulary Review round 2: the new serde derives emitted PascalCase variant names ("Rust", "Predicate", "WeaklyExposed"), diverging from the lowercase/snake_case wire vocabulary OUTPUT_SCHEMA.md documents for the same data. Add rename_all (lowercase for LanguageId/LanguageStatus, snake_case for the six classification/probe enums) and pin the wire form with a new test (artifact_wire_form_uses_documented_snake_case_vocabulary). Also: document the managed-perl-producer rejection in --write-artifact help, and escape the table pipe in the spec index row. Reuse remains byte-identical (verified with the built binary). * test(domain): pin enum serde wire casing directly (bot test, kept) Complements the artifact-level wire-form pin with an enum-level one (TypeScript/preview/class_method/missing_import_graph), cherry-picked from the Test bot's branch push; the bot's unrelated #2252 contamination is not taken. * docs(spec): link artifact reuse support ledger (bot addition, kept) * test(cli): scope wire-form assertions to typed JSON paths Review round 3: the whole-text scan could match free-form evidence text or pass while the enum field itself is wrong. Parse the envelope and assert the documented snake_case vocabulary shape at findings[*].probe (family/delta) and findings[*].language directly. * test(cli): assert closed vocabulary membership in the wire-form pin Review round 4: character-shape checks allowed arbitrary lowercase strings. Assert findings[*].probe.family/delta and findings[*].language against the closed documented ProbeFamily/DeltaKind/LanguageId vocabularies at their typed paths.
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
What this does\n\nA complete producer-owned gap-ledger route now has external-binary coverage at the ripr gate evaluate boundary. Explicit blocking mode writes the decision report and returns nonzero, while visible-only writes the same typed route as advisory and returns zero.\n\nChange: add command-level regressions for gap-ledger blocking and advisory outcomes, reconcile the implemented slice with RIPR-SPEC-0067 without promoting the broader proposed contract, and record the implementation slice. Generated CI defaults and gate policy modes remain unchanged.\n\n## Verification\n\n| Check | Result |\n| --- | --- |\n| CLI gate regressions | 2 passed for complete gap-ledger blocking and visible-only outcomes, including route disclosure in both modes |\n| Gate unit suite | 81 passed |\n| Source-truth checks | traceability, spec format/numbering, output contracts, support tiers, capabilities, doc index, generated state passed |\n| Precommit | passed with no unallowed findings |\n| Formatting and diff hygiene | cargo fmt --check and git diff --check passed |\n| cargo xtask check-pr | not green on six pre-existing TypeScript rerun tests on origin/main; no gate test failed |\n\n## Review map\n\n- crates/ripr/tests/cli_smoke.rs: proves process exit status, report status, source, seam identity, inspection route, and static authority boundary in blocking and visible-only modes.\n- docs/specs/RIPR-SPEC-0067-pr-gate-use-case.md, docs/specs/README.md, policy/doc-artifacts.toml: retain the broader proposed status while recording the current command-boundary proof and remaining planned output fields.\n- .allow/spec-system/slices/gate-command-boundary.v1.toml, .ripr/traceability.toml: preserve the PR-sized contract and spec-to-proof map.\n\nCloses #1963