Skip to content

test(gate): pin command boundary outcomes - #2252

Merged
EffortlessSteven merged 3 commits into
mainfrom
fix/gate-reconciliation-1963
Jul 22, 2026
Merged

EffortlessSteven merged 3 commits into
mainfrom
fix/gate-reconciliation-1963

Conversation

@EffortlessSteven

@EffortlessSteven EffortlessSteven commented Jul 22, 2026 •

Copy link
Copy Markdown
Member

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

@coderabbitai

coderabbitai Bot commented Jul 22, 2026 •

Copy link
Copy Markdown

Review Change Stack

Walkthrough

The PR defines the ripr gate evaluate command boundary, adds smoke tests for blocking and visible-only outcomes using a complete gap ledger, and updates RIPR-SPEC-0067 metadata, traceability, and documentation from proposed to accepted.

Changes

Gate command boundary

Layer / File(s) Summary
Gate evaluation contract and smoke coverage
.allow/spec-system/slices/gate-command-boundary.v1.toml, crates/ripr/tests/cli_smoke.rs
Defines the command-boundary claim and validates blocked acknowledgeable output versus advisory visible-only output, including repair-route and evidence fields.
Specification acceptance and traceability
.ripr/traceability.toml, docs/specs/README.md, docs/specs/RIPR-SPEC-0067-pr-gate-use-case.md, policy/doc-artifacts.toml
Marks RIPR-SPEC-0067 accepted, adds linked references, expands traced inputs, updates the accepted metric, and synchronizes the artifact ledger.

Estimated code review effort: 2 (Simple) | ~10 minutes

Possibly related issues

Possibly related PRs

Suggested labels: codex

Poem

A rabbit checks the gate at dawn,
One ledger blocks, one carries on.
Seam paths sparkle, routes are clear,
“Accepted” thumps from burrow to ear.
Tests hop happily through the code!

🚥 Pre-merge checks | ✅ 3 | ❌ 2

❌ Failed checks (2 warnings)

Check name Status Explanation Resolution
Linked Issues check ⚠️ Warning The PR matches the gate-boundary test/spec reconciliation goals, but it only shows two outcome regressions and omits several required decision families and docs. Add command-level regressions for the remaining decision families, and reconcile the missing policy/docs/output-contract surfaces called for by #1963.
Description check ⚠️ Warning The description covers the change and verification, but omits many required template sections such as source boundaries, rollback, and several checklists. Add the missing template sections, especially Swarm/Source Boundary, Source-of-truth Links, Scope Classification, Rollback, and the remaining proof/checklist items.
✅ Passed checks (3 passed)
Check name Status Explanation
Out of Scope Changes check ✅ Passed The changes stay within gate tests, specs, traceability, docs, and policy artifacts, with no obvious unrelated code paths introduced.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Title check ✅ Passed The title is concise and accurately reflects the main change: pinning gate command boundary outcomes.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/gate-reconciliation-1963

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot added the codex label Jul 22, 2026

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

📥 Commits

Reviewing files that changed from the base of the PR and between 7d1c7d8 and e5b7202.

📒 Files selected for processing (6)
  • .allow/spec-system/slices/gate-command-boundary.v1.toml
  • .ripr/traceability.toml
  • crates/ripr/tests/cli_smoke.rs
  • docs/specs/README.md
  • docs/specs/RIPR-SPEC-0067-pr-gate-use-case.md
  • policy/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)

Comment thread crates/ripr/tests/cli_smoke.rs Resolved

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

@EffortlessSteven
EffortlessSteven merged commit 5be7a47 into main Jul 22, 2026
23 checks passed
@EffortlessSteven
EffortlessSteven deleted the fix/gate-reconciliation-1963 branch July 22, 2026 18:12
EffortlessSteven added a commit that referenced this pull request Jul 22, 2026
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.
EffortlessSteven added a commit that referenced this pull request Jul 22, 2026
…#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

codecov Bot commented Jul 22, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

This was referenced Jul 23, 2026
This was referenced Jul 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant