Skip to content

fix(cli): exit 2 after unsupported diff reports (#7793) - #7802

Merged
EffortlessSteven merged 1 commit into
mainfrom
codex/cli-diff-unsupported-exit
Oct 14, 2026
Merged

EffortlessSteven merged 1 commit into
mainfrom
codex/cli-diff-unsupported-exit

Conversation

@EffortlessSteven

@EffortlessSteven EffortlessSteven commented Oct 14, 2026 •

Copy link
Copy Markdown
Member

ripr diff emitted an honest unsupported_input report but exited 0, while ripr check exited 2 for the same producer result. This change shares the existing CLI decision: unsupported input emits its original report once and exits 2; complete and usable partial reports remain advisory exit 0.

Closes #7793. Exact candidate: df42cef347f021835a53b7a5dfaa6dd66be5dcdd; base c96a7929f8c694eb62cff2dbe2ad7ee94beea815.

Swarm / Source Boundary

Ordinary CLI repair in ripr-swarm. No source integration, release, registry/marketplace publication, deployment, security/credential/permission, runner or workflow changes.

Scope and acceptance

One public exit contract. commands_context::analysis_outcome_exit_result owns the typed decision used after rendering by check and diff. Existing stdout shapes, schema versions and producer semantics remain intact. Machine help reuses the existing advisory-findings exit shape; human help, RIPR-SPEC-0147 and exit/output docs agree.

Invocation/result Exit stdout
Complete finding / empty no_scope 0 Original report
Usable partial_with_limitations 0 Original visibly incomplete report
Unsupported / mixed supported-and-conflict input 2 Original report, retained findings/counts/hash/recovery
Malformed argv 2 Empty
Unresolvable base 2 Existing single typed refusal

Diagnostic prose stays on stderr. The test matrix parses all stdout bytes and pins literal outcomes, exits, file counts, source coordinates and independently hashed Git input. It asserts the supported subject remains present in mixed inputs and rejects a blanket failure on partial analysis.

A separate absolute-root seam-coordinate defect was discovered and retained on #7797. These exit tests use rooted-CWD / --root . while retaining the literal src/lib.rs:2 coordinate oracle. Absolute-root path repair is unclaimed; the CLI exit change does not worsen it. Python, TypeScript, gate collision, policy guidance, stub ambiguity, MCP filters, verdict corpus and general SDLC lanes stay outside scope.

Proof and review

  • Exact-base doctor, check-fast policy floor and ripr all-target check passed. Base selector independently matched zero changed paths.
  • Actual original binary showed unsupported diff=0 versus check=2; both complete controls=0. Original executable SHA256 9228af829e804e9c7e763e42166e1dff371b87626279f8e8abc6e65cec16f63e remains retained.
  • Unchanged root-relative regressions ran against original production: three failures, including genuine unsupported outcome with actual exit 0 versus literal expected 2. The earlier absolute-root failure remains a separate observed source defect, with its original test source and transcribed tool failure retained; its full Cargo log was overwritten by the later exit RED run and is not claimed retained.
  • Candidate focused invocation run: 13 passed; diff report/refusal run: 5 passed, including one repeated new matrix. No ignored subjects in these runs.
  • Candidate check-fast passed 14 gates, including workspace/all-target Clippy; its stable selector independently matches 12 paths on c96. Fixture contracts were the one conditional skip (no fixture change).
  • Independent exact-head source/oracle review found no actionable issue and passed 12 separately authored adversarial groups with both hash-verified frozen executables. All six diff stdout documents remained byte-identical; unsupported cases alone changed 0→2; zero-finding partial stayed 0. Usage/base/head failures and shared check behavior were unchanged. Independent source interaction review covers the qualified f9f30d5 integration basis. Hosted execution below is bound to its actual combined checkout; later main composition remains separately identified.
  • Precommit completed with native exit 0 from the original serial driver; it is no longer active. Hosted Rust qualification now completed on the actual merge subject, as detailed below. No release qualification or protected merge is claimed.
  • Both classic review-protection and active-main-rules GETs returned native 1 with Forbidden and empty stdout; those actions stopped. Policy authority is unestablished; no retry, credential change, merge or auto-merge occurred.

Hosted qualification

Ready run 38490056279 completed successfully. Decoded Rust-gates job 115612973091 records checkout 4104036a64c7092fe57fac7cd833ff563e73d483, with object-verified parents f9f30d56c8ae1cd5911004b35a8ae86a07ebed30 + exact candidate df42cef347f021835a53b7a5dfaa6dd66be5dcdd, tree 72371da436d1b2767f970d164a049bc4bda472f3.

  • cargo nextest run --workspace --profile ci: 15,446 passed, two skipped. All three new unsupported_diff_exit process tests executed and passed.
  • cargo test --workspace --doc: two passed, one ignored.
  • Formatting, repository policy preflight, evidence honesty, dependency/process/network policy, workspace/all-target and all-features compile, strict Clippy, goldens, fixtures, configured verdict-corpus gates, PR evidence and required routed aggregate passed. Corpus gate success does not claim zero analyzer error or release readiness.
  • Required test-results upload succeeded. RIPR-reports upload was skipped; those artifact contents are not claimed inspected. Self-hosted CPX/CX jobs were skipped; the existing router selected GitHub Hosted after runner API failure.

This closes the missing hosted-execution dimension for f9/410/723; it does not relabel the old local executable evidence or establish later-main execution.

Challenges

A blanket failure for incomplete results is rejected by the usable-partial controls; a failure for empty findings is rejected by empty and independently authored zero-finding partial cases. An appended refusal or stdout diagnostic fails whole-document JSON parsing; mixed unsupported input must retain the literal supported coordinates, counts and independently hashed Git patch. Independent old/new binary comparisons retain the original report bytes and isolate the exit change. #7797 remains a separate unchanged path-projection defect.

Source-of-truth and rollback

Issue: #7793. Spec: RIPR-SPEC-0147. Producer remains AnalysisOutcome; mapping uses its exact UnsupportedInput kind. Traceability registers all three new behavior tests and shared code. Changelog: changelog.d/7793-diff-unsupported-exit.md, checked against the canonical section marker / bullet / trailing #7793 format. Revert the eventual squash to roll back this bounded mapping and its evidence.

Support-tier impact: CLI and discovery claim only; no language support change. Policy impact: none. CI economics: n/a, existing hosted route only. No golden blessing, test suppression or expectation relabeling. Counts describe executed subjects, not release readiness.

Continuation

Owner / governing claim: CLI contract lane / #7793. One candidate: df42cef347f021835a53b7a5dfaa6dd66be5dcdd, original compiled basis c96a7929f8c694eb62cff2dbe2ad7ee94beea815. PR is Ready, open and unmerged; no main acceptance is claimed.

Review: final accountable exact-head COMMENT incorporates independent source/oracle/process review and the terminal hosted/currentness refresh. No actionable findings. Overall REVIEW_INCOMPLETE remains for denied live required-policy authority; COMMENT is not author approval. Devin reports no issues, inline threads are empty. The provider question about still-active precommit/continuing source review is answered: driver 30525 terminated natively 0 and both integration reviews completed. Gemini/CodeRabbit quota refusals remain missing provider review. Droid run 38489487273, job 115611046479, remains queued; requiredness is unknown under the policy hold.

Integration identity: executed hosted subject is 4104036a64c7092fe57fac7cd833ff563e73d483 / tree 72371da436d1b2767f970d164a049bc4bda472f3 on f9 + df42. Later main observed ff4a2fcd6fac21a93b8fb04f1b0befc80311a601 composes cleanly to cb8038c3629a180d70f5c048024d3e9ca0f4cfbd. Independent committed-object inspection found no material interaction, changed prerequisite or additional proof need. Candidate owner/producer/dispatch/test blobs are unchanged and overlapping docs, traceability and registration coexist. That later tree was not executed. No behind-only restack or unaffected proof rerun is warranted.

Exact residual access hold: prior gh api repos/EffortlessMetrics/ripr-swarm/branches/main/protection/required_pull_request_reviews and gh api repos/EffortlessMetrics/ripr-swarm/rules/branches/main each returned native 1 and empty stdout. Exact stderr was respectively Get "https://api.github.com/repos/EffortlessMetrics/ripr-swarm/branches/main/protection/required_pull_request_reviews": Forbidden and Get "https://api.github.com/repos/EffortlessMetrics/ripr-swarm/rules/branches/main": Forbidden. These actions are denied and stopped. No denied endpoint retry, alternate acquisition route, credential/settings change, merge, auto-merge or bypass occurred.

Next owner/action: authorized repository owner supplies current applicable protection/required-review/rules evidence or governing instruction resolving the existing access hold. Delivery owner then reconciles actual required checks/review obligations, queued review and any findings against the current exact PR subject; refresh only material changes, use normal expected-head protected squash when eligible, and verify landed main before issue acceptance. No additional Ready toggle, provider retry, paid continuation or background watcher is arranged. #7797 remains a separate unchanged finding.

Retained evidence: /workspace/ripr-cli-evidence/hosted-terminal-proof.json, decoded hosted-rust-terminal.json and hosted-required-result-terminal.json, exact Git objects, original local-terminal-proof.json; independent /workspace/ripr-cli-review-evidence/final-review.json and prior paired results.json. All local drivers/reviewer commands completed; resources remain bounded and retained for this open PR's review/repair/acceptance. No release, package publication, deployment or Corsair allocation.

@gemini-code-assist

Copy link
Copy Markdown

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@coderabbitai

coderabbitai Bot commented Oct 14, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

The included review limit has been reached and this organization has disabled usage-based review continuation. Wait for reviews to reset or ask a billing admin to change After included review limits.

Next included review available in 3 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used all 10 included reviews currently available.

Learn how review limits work.

Review configuration:

⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: 457b2e71-437b-41bb-ab79-069194f6006c
📥 Commits

Reviewing files that changed from the base of the PR and between f9f30d5 and df42cef.

📒 Files selected for processing: 12
  • .ripr/traceability.toml
  • changelog.d/7793-diff-unsupported-exit.md
  • crates/ripr/src/cli/command_metadata.rs
  • crates/ripr/src/cli/commands.rs
  • crates/ripr/src/cli/commands/check.rs
  • crates/ripr/src/cli/commands_context.rs
  • crates/ripr/src/cli/help/core.rs
  • crates/ripr/tests/cli_smoke.rs
  • crates/ripr/tests/cli_smoke/unsupported_diff_exit.rs
  • docs/EXIT_CODES.md
  • docs/OUTPUT_SCHEMA.md
  • docs/specs/RIPR-SPEC-0147-analysis-outcome-projection.md
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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

@EffortlessSteven EffortlessSteven left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Reviewed head: df42cef; candidate tree a8c49505a8d29595f7becc535676b9ef3a5afa0c. This is an accountable COMMENT incorporating an independent fresh-context source/oracle/CLI review, not author approval.

No actionable source or oracle findings. All 12 changed files, shared CLI outcome owner, String→CommandError→process status, existing refusal/render paths, check repo exclusion/progress, typed producer precedence, help metadata, docs/spec/traceability and changelog were inspected. The exact UnsupportedInput decision is made after the original report, so no second JSON refusal is appended. Partial and zero findings alone cannot select the failure code.

Observed proof: original behavior RED reached the literal native exit 0 versus expected 2 after semantic assertions. Candidate 13 focused tests and five diff/refusal controls passed (one repeated matrix); 14 selected check-fast gates, workspace/all-target Clippy and final precommit passed. Parent observed original driver 30525 terminal native exit 0. Selector independently matches the 12-path delta on c96. Independent frozen-binary testing passed 12 case groups; six whole stdout documents remained byte-identical between old and new executables. Unsupported mixed/zero-finding cases alone changed 0→2; empty/complete/usable and zero-finding partial stayed 0. Literal special-path coordinates, counts, Git input digest and recovery were retained; usage/base/head refusals and shared check streams were unchanged. Candidate binary SHA256 ef38680857854e2142f3a10730e0cd309516ae3f6cb007c64d5624c038377b83.

Integration: published PR head is unchanged df42. Fetched GitHub merge object 4104036 has parents f9f30d5 + df42 and tree 72371da436d1b2767f970d164a049bc4bda472f3. Independent committed-object interaction review preserves candidate blobs and incorporates main's associated-owner, gate-route and policy-preparation changes unchanged; no material risk/new local proof prerequisite was identified. This is source inference, not execution of the combined tree. Existing executable proof remains df42/c96.

Residuals: #7797 absolute-root coordinate defect is unchanged, independently reproduced and excluded from this exit-only repair. Native Windows/full hosted feature matrix, actual required checkout/terminal results and live protection authority remain unestablished. Both classic protection and active-main-rules reads returned Forbidden and stopped; no retry or bypass. Gemini/CodeRabbit quota messages are missing review for those providers, not clean reviews; no paid or automatic retry requested.

Disposition: REVIEW_INCOMPLETE for required hosted proof and policy authority. Local candidate/source/oracle/current-main/remote-subject dimensions are sufficiently reviewed for one ordinary expected-green Ready qualification. Merge/auto-merge remains unavailable until actual required checks, review/thread disposition and authorized policy acquisition are reconciled. Retained independent record/results: /workspace/ripr-cli-review-evidence/review.json and results.json; exact local receipts: /workspace/ripr-cli-evidence/local-terminal-proof.json and remote-merge-subject.json.

@EffortlessSteven
EffortlessSteven marked this pull request as ready for review October 14, 2026 00:25
@gemini-code-assist

Copy link
Copy Markdown

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no bugs or issues to report.

Devin Review

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Decision

  • Needs one verification check before upstream.

Verification questions

  • Confirm precommit is still active and current-main source interaction review (against f9f30d5) is described as 'continuing'; hosted/policy evidence is also not claimed ready. These are out-of-scope for the exit mapping itself but should be flagged so a later lane doesn't mistake absence of proof for absence of risk.

@EffortlessSteven EffortlessSteven left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Reviewed head: df42cef; candidate tree a8c49505a8d29595f7becc535676b9ef3a5afa0c. This accountable COMMENT incorporates independent exact-head source/oracle/CLI review and its final hosted/currentness refresh. It is not author approval.

No actionable source, test-oracle or integration finding. Existing independent adversarial evidence remains 12 groups against both hash-verified frozen executables: six whole diff stdout documents byte-identical; unsupported alone changes 0→2; complete, empty and usable/zero-finding partial stay 0. Shared check behavior, existing refusals, literal special-path coordinates, counts, input digest and recovery remain pinned.

Executed hosted proof: Ready run 38490056279 completed successfully. Decoded Rust-gates job 115612973091 records actual checkout 4104036; Git objects confirm parents f9f30d5 + exact df42, tree 72371da436d1b2767f970d164a049bc4bda472f3. Workspace nextest CI/default-feature suite ran 15,446 tests across 87 binaries: 15,446 passed, two skipped, retries=0; all three new unsupported_diff_exit tests and four existing check-exit tests explicitly passed. Doctests: two passed, one ignored. Separate all-features target check, strict Clippy, policy/preflight, evidence honesty, goldens, fixtures, configured corpus gates and PR evidence succeeded. Required routed Result job 115631671054 succeeded. Test-result upload succeeded; RIPR reports upload skipped, so no claim about uninspected report artifacts. Self-hosted branches skipped, not executed.

Currentness: origin/main observed ff4a2fc composes cleanly to cb8038c3629a180d70f5c048024d3e9ca0f4cfbd. Independent committed-object review preserves mapper/dispatch/report/producer/new-test blobs; overlapping documentation, traceability and test registration coexist. Rust log-capture/nested-matches routes are absent from the numeric Rust stimuli; cache-home/Perl validation and separate CLI/language repairs introduce no material prerequisite for this mapping. This later combined tree was not executed; the hosted proof remains f9/410/723. Behind-only movement gives no reason to restack or duplicate unaffected proof.

The provider verification question about active precommit and continuing f9 review is stale: original serial driver 30525 completed with native exit 0, retained in local-terminal-proof.json; both f9 interaction review and the bounded ff4 refresh are complete. No local Cargo remains active. Devin reports no issues; inline threads are empty. Gemini/CodeRabbit quota messages are missing provider review, not clean reviews. Droid Auto Review run 38489487273 / job 115611046479 remains queued; its requiredness is unestablished under the policy hold. No provider retry, spend or settings change.

Disposition: REVIEW_INCOMPLETE for live required-policy authority. The prior exact actions gh api repos/EffortlessMetrics/ripr-swarm/branches/main/protection/required_pull_request_reviews and gh api repos/EffortlessMetrics/ripr-swarm/rules/branches/main each returned native 1, empty stdout and Get "https://api.github.com/": Forbidden. Those denied reads were not retried through any route. Explicit access holds remain; merge and auto-merge were not attempted. Source/oracle/hosted/currentness review is qualified, but merge eligibility is not established.

Next authorized condition: an authorized owner supplies current applicable protection/required-review/rules evidence without bypassing these holds; reconcile the queued review and any actual required findings/checks, refresh any materially changed subject, then ordinary expected-head protected squash and landed-main verification. #7797 stays separate and unchanged; no absolute-root repair or release readiness is claimed. Canonical continuation is updated on this PR and #7793; retained final evidence lives at /workspace/ripr-cli-review-evidence/final-review.json and /workspace/ripr-cli-evidence/hosted-terminal-proof.json.

@EffortlessSteven
EffortlessSteven merged commit 4711c12 into main Oct 14, 2026
43 of 44 checks passed
@EffortlessSteven
EffortlessSteven deleted the codex/cli-diff-unsupported-exit branch October 14, 2026 02:25
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.

fix(cli): diff unsupported_input reports must exit 2 like check

1 participant