Repository navigation
fix(cli): exit 2 after unsupported diff reports (#7793) - #7802
Conversation
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
|
Warning Review limit reachedThe 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. View limit details
Comment |
EffortlessSteven
left a comment
There was a problem hiding this comment.
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.
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
There was a problem hiding this comment.
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
left a comment
There was a problem hiding this comment.
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.
ripr diffemitted an honestunsupported_inputreport but exited 0, whileripr checkexited 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; basec96a7929f8c694eb62cff2dbe2ad7ee94beea815.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_resultowns 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.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
9228af829e804e9c7e763e42166e1dff371b87626279f8e8abc6e65cec16f63eremains retained.Forbiddenand 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 parentsf9f30d56c8ae1cd5911004b35a8ae86a07ebed30+ exact candidatedf42cef347f021835a53b7a5dfaa6dd66be5dcdd, tree72371da436d1b2767f970d164a049bc4bda472f3.cargo nextest run --workspace --profile ci: 15,446 passed, two skipped. All three newunsupported_diff_exitprocess tests executed and passed.cargo test --workspace --doc: two passed, one ignored.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 basisc96a7929f8c694eb62cff2dbe2ad7ee94beea815. 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/ tree72371da436d1b2767f970d164a049bc4bda472f3on f9 + df42. Later main observedff4a2fcd6fac21a93b8fb04f1b0befc80311a601composes cleanly tocb8038c3629a180d70f5c048024d3e9ca0f4cfbd. 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_reviewsandgh api repos/EffortlessMetrics/ripr-swarm/rules/branches/maineach returned native 1 and empty stdout. Exact stderr was respectivelyGet "https://api.github.com/repos/EffortlessMetrics/ripr-swarm/branches/main/protection/required_pull_request_reviews": ForbiddenandGet "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, decodedhosted-rust-terminal.jsonandhosted-required-result-terminal.json, exact Git objects, originallocal-terminal-proof.json; independent/workspace/ripr-cli-review-evidence/final-review.jsonand prior pairedresults.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.