Skip to content

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

Closed

Description

@EffortlessSteven

Verified current finding and owner

Owner: assigned CLI machine-readable contract Codex lane, one writer. Base: EffortlessMetrics/ripr-swarm main c96a7929f8c694eb62cff2dbe2ad7ee94beea815, observed 2026-10-14 UTC. Claim is bounded to the CLI exit mapping for the existing producer-owned unsupported_input result of ripr diff.

Actual invocation proof on a from-source Rust 1.95.0 binary (SHA256 9228af829e804e9c7e763e42166e1dff371b87626279f8e8abc6e65cec16f63e): a committed Rust conflict-marker change yielded the same analysis_outcome.outcome.kind = "unsupported_input" from ripr diff --root <scratch> --base <base-sha> --json and ripr check --root <scratch> --base <base-sha> --json. Diff returned 0, empty stderr, and run_status = diff_incomplete_full_repo_limited; check returned 2 with its incomplete-analysis diagnostic. Both complete-with-findings controls returned 0. Entire stdout streams parsed as one JSON document; setup/Git commands succeeded. Source inference agrees: cli/commands.rs::diff renders then unconditionally returns Ok(()), whereas cli/commands/check.rs::check already maps the exact typed UnsupportedInput kind after rendering.

Existing authority: RIPR-SPEC-0147 typed-outcome projection and the three-value EXIT_CODES contract. #7440 / merged #7615 delivered this mapping only for check and is complete; #7331 / merged #7402 supplies the existing operational refusal machinery. Finding-specific all-state searches for "diff" "unsupported_input", "diff_incomplete" "exit" and "unsupported diff" found no equivalent diff-exit repair or active owner. Current source still has the unconditional return. This scope excludes Python #7737, TypeScript #7745, gate collision #7764, policy guidance #7758, ambiguity #7777, MCP filters #7694, verdict corpus #7490 and general SDLC workflow work.

Acceptance and rollback

  • Real Git/CLI invocation with unsupported conflict input exits 2 after emitting the original diff report exactly once. Mixed supported/unsupported inputs preserve supported findings, counts, coordinates, input identity, limitations and recovery.
  • Complete findings, no-scope empty diff and usable partial_with_limitations remain advisory exit 0. Incompleteness alone and zero findings do not determine the exit.
  • JSON stdout contains one complete report; diagnostic prose stays on stderr. Human output keeps its original report with the diagnostic on stderr.
  • Malformed argv remains exit 2 with empty stdout; an unresolvable base retains the existing single typed refusal envelope.
  • Actual help --json, command help, spec, exit docs and changelog expose the same mapping.
  • Reuse one shared CLI exit owner; observe the unchanged regression fail on original behavior, pass on the exact candidate, and have independent exact-head source/oracle review before one expected-green Ready qualification. Required hosted proof and normal protected squash remain required.

Rollback: revert the eventual bounded squash. No producer, classification, schema-version, policy, MCP, gate, language admission, release, publication, deployment, credentials, permissions, runner or SDLC changes.

Current continuation — 2026-10-14 01:41 UTC

Owner: CLI contract lane under source thread 01a0f5ca-1f3e-7133-89f1-64b544b500c0. One writer, one published candidate PR #7802, exact head df42cef347f021835a53b7a5dfaa6dd66be5dcdd, tree a8c49505a8d29595f7becc535676b9ef3a5afa0c. Ready, open and unmerged. Checked acceptance bullets record candidate proof; protected-main acceptance remains incomplete.

Actual local proof remains bound to compiled c96 basis: exact-base doctor/check-fast/all-target compile; behavioral RED at unsupported native 0 versus literal 2 after semantic assertions; candidate 13 focused invocation tests, five diff/refusal controls (one repeated matrix), 14-gate check-fast with independently matched stable 12-path selector, and precommit native 0 from original driver 30525. No source/test/golden suppression or relabeling. The shared CLI exit owner preserves check's repo-scope guard.

Ready run 38490056279 is now completed/success. Actual Rust-gates job 115612973091 decoded checkout is 4104036a64c7092fe57fac7cd833ff563e73d483; directly inspected Git parents f9f30d5 + df42, tree 72371da436d1b2767f970d164a049bc4bda472f3. Workspace nextest CI ran 15,446 tests across 87 binaries: all passed, two skipped, retries=0. All three new unsupported-diff invocation tests explicitly passed. Doctests: two passed, one ignored. Repository policy, workspace/all-target and separate all-features compile, strict Clippy, goldens, fixtures, configured verdict-corpus gates, PR evidence and routed required aggregate passed. Corpus gates do not claim zero analyzer error. Required test-results upload succeeded; RIPR-reports upload skipped and its contents are not claimed inspected. GitHub Hosted executed; CPX/CX alternatives were skipped. This is actual combined-tree proof for f9/410/723, not a relabeling of earlier local proof.

Independent exact-head review reused its 12 separately authored adversarial groups against both hash-verified frozen binaries: six whole JSON stdout documents byte-identical; only unsupported changes 0→2; complete/empty/usable and zero-finding partial stay 0. Literal Unix quoted-path coordinates, counts, input SHA256, recovery and shared check/refusal streams were retained. Final hosted and latest-main review found no actionable source/oracle finding. Final accountable COMMENT records overall REVIEW_INCOMPLETE solely for unknown live required-policy authority; it is not author approval. Devin reports no issues, inline threads are empty. The provider's still-active-precommit/continuing-review question is answered by terminal driver 0 and completed reviews. Gemini/CodeRabbit quota refusals remain missing provider review. Droid run 38489487273 / job 115611046479 is queued; requiredness is not established under the hold.

Later main observed ff4a2fcd6fac21a93b8fb04f1b0befc80311a601 composes without conflict to cb8038c3629a180d70f5c048024d3e9ca0f4cfbd. Independent committed-object interaction review found unchanged mapper/dispatch/producer/report/new-test blobs, compatible docs/traceability/registration and no material prerequisite or extra proof need. This later combined tree has not been executed. No behind-only branch update, Ready re-toggle or repeated unaffected proof is warranted.

Exact access blockers from prior calls, both denied, native exit 1 and empty stdout:

gh api repos/EffortlessMetrics/ripr-swarm/branches/main/protection/required_pull_request_reviews
Get "https://api.github.com/repos/EffortlessMetrics/ripr-swarm/branches/main/protection/required_pull_request_reviews": Forbidden

gh api repos/EffortlessMetrics/ripr-swarm/rules/branches/main
Get "https://api.github.com/repos/EffortlessMetrics/ripr-swarm/rules/branches/main": Forbidden

Those reads stopped. Explicit access holds are preserved; no retry via any route, bypass, credentials/settings change, merge or auto-merge. Existing selected proof success cannot establish the unreadable mandatory review/check set.

Separate absolute-root seam-coordinate defect #7797 remains unchanged and excluded. Its original failing source, tool-captured observation and independent raw output are retained; the first whole Cargo log was overwritten by the later exit RED and is not claimed retained. Rooted-CWD tests retain their original literal relative-coordinate oracle.

Resources remain bounded: source/common Git, owned target (~2.7 GiB), Rust/cache (~1.2 GiB), distinct base/candidate executable witnesses/logs (~0.23 GiB), independent review (a few MiB), with ~26 GiB free and 8 GiB reserve. All local drivers/reviewer commands finished; no new worktree/build, Corsair, package publication or deployment. Target/cache remain for this open claim's potential review repair and acceptance; no unrelated state was changed.

Durable exact receipts: /workspace/ripr-cli-evidence/hosted-terminal-proof.json, decoded hosted-rust-terminal.json and hosted-required-result-terminal.json, original local-terminal-proof.json, protection-observation.json; independent /workspace/ripr-cli-review-evidence/final-review.json and results.json. Candidate binary SHA256 ef38680857854e2142f3a10730e0cd309516ae3f6cb007c64d5624c038377b83; original 9228af829e804e9c7e763e42166e1dff371b87626279f8e8abc6e65cec16f63e.

Next: authorized repository owner supplies current applicable protection/required-review/rules evidence or governing instruction resolving the denied-read hold. Delivery owner reconciles required obligations and queued review with the then-current exact subject, refreshes only material changes, then normal expected-head protected squash and landed-main verification before issue acceptance. No paid/provider retry or background watcher is arranged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions