Skip to content

fix(agent): keep verify-execute root failures machine-readable - #8294

Merged
EffortlessSteven merged 2 commits into
mainfrom
codex/verify-execute-root-json
Oct 17, 2026
Merged

EffortlessSteven merged 2 commits into
mainfrom
codex/verify-execute-root-json

Conversation

@EffortlessSteven

@EffortlessSteven EffortlessSteven commented Oct 17, 2026 •

Copy link
Copy Markdown
Member

Summary

Fixes #8284. agent verify-execute --json returned empty stdout when shared root validation rejected a missing directory or file root. It now renders the existing schema 1 verification_wrong_root response while preserving operational exit 2, the original recovery diagnostic, and no execution/result publication.

Ordinary shared-product work in ripr-swarm. No schema, analyzer, support-tier, workflow, dependency, security-policy, deployment or release change. The CLI retains shared root validation before authorization; the app's existing refusal serializer owns the response. Rollback is this bounded bridge and its evidence.

Candidate and contract

  • Head: af2128cd0132af9240e65009503c6ea53b485163; tree 44cb408107ea533349aeebefd81daf5f363d6d26.
  • One writer: codex/verify-execute-root-json, /workspace/ripr-cli-root-json; accepted base a1ea790e923ae6036efdd9457ffc16ea2ad93348. No stack or competing same-claim PR found in fresh all-state searches.
  • Spec: RIPR-SPEC-0135; contracts: docs/EXIT_CODES.md, docs/OUTPUT_SCHEMA.md; three process tests mapped in .ripr/traceability.toml.
  • Changelog: changelog.d/8284-verify-execute-root-json.md, checked against the canonical Fixed marker, bullet and trailing issue reference.
Journey Observed contract
Missing/file root JSON schema 1, wrong-root disposition, exit 2, false execution/commit flags, absent observation fields, no writes
Malformed argv / packet Empty usage stdout + exit 2 / typed policy refusal + exit 3
Unsupported Go Advisory exit 0 with incomplete partial analysis and explicit unsupported-language limitation
Cancellation Actual committed cancelled observation, one terminal state, no process exit status
Existing result / fresh retry Write-failure exit 2 preserves old result / valid executed-pass observation exits 0

Proof and review

Unchanged-base worktree doctor, check-fast and cargo check -p ripr --all-targets passed. Three behavioral RED tests rejected empty stdout with JSON EOF before production edits; native Cargo exit 101. All three pass on final head. Six existing execution, six closed-stderr and four unsupported-input controls passed on source-identical predecessor 799a8732891bc1c6e65bd99d47e865ab8e6b6394; final delta only alphabetizes the test registration block.

The same separate 17-invocation journey (13 ripr + 4 fixture Git calls) ran on frozen base and final candidate, including actual cancellation, retry refusal and valid recovery. Only the root-document presence checks change from absent to present. An initial harness JSON-path mistake is retained and excluded from product-negative credit.

Final process policy, check-fast (14 gates, one inapplicable fixture skip, independently verified nine paths), strict workspace/all-target Clippy and precommit passed. Precommit binds final head/base, all nine committed paths, seven passing command outcomes and both impacted-package Clippy calls, with no skips/limitations. Receipt SHA256: 287fc0565b9418ffd8dfde5fef82bb4ad25dca5f8ec0aafa120073e6281616bf.

Final frozen executable SHA256: 208f1e2e81e9783bb4e94f6d04ebbea756f44a7ca50d44d20817b822fb44a584; clean --version reports final head. Pre-repair witness: 1434a3acee37a9367c940395d8766e4176b3e4d85b08b2826660264c4320587d. Raw captures, source identities, logs and receipts remain under /workspace/cli-journey-proof.

Independent exact-head LLM review found no blocking source, oracle or integration finding. It inspected all changed surfaces, 15 independent runtime cases and nine paired base controls, then rebound to final head and directly inspected final runtime/precommit evidence. Gemini/CodeRabbit quota responses provide no review credit. Existing narrow exit-2 help wording is a nonblocking inherited residual; changed reference docs/spec are exact.

GitHub combined subject d46fd7dd057e0deb04e47e74175ebcab778e521a, tree 76187fc5e703bcc0a07024be73d9d48f5ae9d0bc, has ordered parents main 60a22c66851e8f5f6d932361c8e6cd758b9efd48 + candidate. Its newer explain/context selector is not consumed by verification execution. Production owners, shared root validator and new regression module retain identical bytes; shared-file changes are additive. No restack is warranted.

Accepted outcome

Merged through normal protected squash as 577a95ab26fd1811eccfd19887eb87af0ba937da, parent faf7ca01b0a3363f0d4ca676b5f33eaf6433c5ca. Result tree c6a99e38f2ddac9c68fbeb16ea33e82767d1d0ee exactly matches the independently reviewed current-main composition. Git fetch, ancestry, full-tree equality and unchanged owner/test-file comparisons all passed. GitHub reports PR merged and issue #8284 closed as completed. Reviewed source head remains af2128cd0132af9240e65009503c6ea53b485163; no rebase, force-push, bypass, publication or deployment occurred.

Cumulative independent LLM review returned REVIEW_READY. Required qualification run 38991393350 and Result succeeded. Raw logs establish actual checkout d46fd7dd057e0deb04e47e74175ebcab778e521a, ordered parents 60a22c66851e8f5f6d932361c8e6cd758b9efd48 + reviewed head; producer commands explicitly bind that base/head. There are 16,548 distinct PASS subjects, complete ordinals and denominator, spanning 107 executing binary prefixes; nextest inventories 109 binaries. All three new regressions and six existing execution controls passed. Three skipped tests get no execution credit; separate doctests passed 2 with 1 ignored. Final native gate inventory contains 39 completed records: 21 successes and 18 explicit skips, including two newly skipped Droid runs after the review's 37-record snapshot. No pending/failing check or unresolved thread remained.

The late newline review question is answered: the app renderer emits one LF and the CLI adds none; both real root-error captures parse as one JSON object and end with exactly one LF. Current-main changes were inspected for interaction; unchanged root owners and the unrenamed recovery fixture do not depend on the new mixed-quote parser or test-only gate corpus ownership.

Evidence limits remain explicit: native Windows execution of these root regressions was not established. Artifact 12086326461 upload identity/digest is verified in raw logs, but one local transfer of its connector-provided signed reference returned HTTP 403; archive contents remain uninspected and that route is held. Classic protection detail returned HTTP 403 Resource not accessible by integration; the branch-rules URL was rejected HTTP 400 by the tool allowlist. Those reads remain held, while ordinary protected merge succeeded under server enforcement. The earlier gh repo view --json nameWithOwner,defaultBranchRef GraphQL Forbidden action was not retried. Unavailable model proof intent and quota-limited providers receive no clean-review credit.

Distinct pre-repair, earlier-review and exact-final executable witnesses, raw captures, local receipts, independent review and native job logs remain under /workspace/cli-journey-proof for parent audit and reproducibility. All expanded lane-created tool/target state was released after 13 recoverable archives were separately restored and verified against 27,057 manifest entries. Archives and recovery instructions remain under /workspace/cli-journey-cache-retained; manifest SHA256 399b1380041ce052598639e01f6a3f367b0e7657e50e89de7ea98e804c5e5aaf. The clean linked candidate worktree was removed with ordinary Git worktree handling; its exact local source branch, common Git and original checkout are preserved. Cache and worktree closeout recovered about 3.40 GiB; final free space is 27.76 GiB, above the unchanged 20 GiB reserve. Resource and restore receipts: resources.md, qualification-handoff.json, worktree-closeout.json. No lane resource awaits owner verification. This accepts only the selected error-contract claim; parent release qualification/publication remains separate.

@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 17, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

  • Ask an admin to enable usage-based reviews

Open in CodeRabbit

Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing.

Next included review available in 33 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used all 2 included reviews currently available. Your 54 included PR review attempts over the past 7 days set your current allowance at 2 reviews per hour.

Learn how review limits work.

Review configuration:

⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Essentials
  • Run ID: 50905749-af04-454c-87a7-321e8e06b1d2
📥 Commits

Reviewing files that changed from the base of the PR and between 60a22c6 and af2128c.

📒 Files selected for processing: 9
  • .ripr/traceability.toml
  • changelog.d/8284-verify-execute-root-json.md
  • crates/ripr/src/app/verification_execution.rs
  • crates/ripr/src/cli/commands/agent.rs
  • crates/ripr/tests/cli_smoke.rs
  • crates/ripr/tests/cli_smoke/verify_execute_root.rs
  • docs/EXIT_CODES.md
  • docs/OUTPUT_SCHEMA.md
  • docs/specs/RIPR-SPEC-0135-assurance-state-vocabulary.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.

Independent exact-head LLM review, transcribed by the delivery owner from separate read-only reviewer review_root_json (COMMENT under the shared author account, not self-approval).

Reviewed head: af2128c; tree44cb408107ea533349aeebefd81daf5f363d6d26; basea1ea790e923ae6036efdd9457ffc16ea2ad93348. Published-head readback matches. GitHub combined subjectd46fd7dd057e0deb04e47e74175ebcab778e521a, ordered parents60a22c66851e8f5f6d932361c8e6cd758b9efd48 + candidate, tree76187fc5e703bcc0a07024be73d9d48f5ae9d0bc.

No blocking source, test-oracle or integration findings. Complete nine-file diff and semantic consumers inspected: parser and root-admission precedence, shared Windows branches, app-owned response serializer, 0/2/3 mapping, no execution/publication on root failure, docs/spec/schema/changelog and traceability. Missing/file roots preserve exit2/prose and use the existing schema1 wrong-root response with false execution/commit flags and absent observation evidence. Three red tests reject old bytes at JSON EOF; committed assertions differ from retained red only by formatting. Prior independent15 candidate runtime cases +9 paired frozen-base controls cover closed stderr, missing auth, hostile path text, file-parent/symlink/empty/absolute roots, argv isolation and retained policy exit3.

Final-head runtime evidence directly inspected: frozen candidate SHA256208f1e2e81e9783bb4e94f6d04ebbea756f44a7ca50d44d20817b822fb44a584 and clean --version; final3/3 regressions with0ignored; all17 CLI-journey invocations including actual cancellation, honest unsupported-language limitation, retry refusal and valid recovery, with committed artifacts equal to stdout. Check-fast14 applicable gates/one inapplicable fixture skip, independently9 selected paths; precommit receipt hash287fc0565b9418ffd8dfde5fef82bb4ad25dca5f8ec0aafa120073e6281616bf binds final head/base, complete9-path set, seven passing command outcomes and both selected Clippy calls, no skips/limitations.

Integration: newer main's explain/context selector has no verification-execution consumer. Actual combined tree preserves both production owners, shared root validator and regression module byte-for-byte; module registration occurs once and SPEC0135 mappings are retained. No behind-only restack or repeat full local proof is warranted.

Nonblocking existing residual: help/agent.rs describes exit2 too narrowly as result-write failure; that wording predates this patch, while changed reference docs/spec accurately explain root admission.

Disposition: REVIEW_INCOMPLETE pending required hosted qualification and actual job-checkout identity. Expected-green qualification is warranted under the Draft-to-Ready policy. Source/runtime/integration inspection is complete with no known deterministic blocker. Native Windows remains unestablished. No current material thread at returned inventory; empty threads and green local checks are not merge readiness. Only actual required checks and final published-head review permit protected merge.

Local evidence retained under /workspace/cli-journey-proof, including independent-root-review/summary.json, root-red.log, root-green-final.log, final-journeys/summary.json and precommit-v2.json. Reviewer performed no Cargo build, source mutation or GitHub write and did not retry the held gh metadata action.

@EffortlessSteven
EffortlessSteven marked this pull request as ready for review October 17, 2026 01:33
@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!

@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 cLI prints to stdout without newline; app renderer controls trailing whitespace. Re-check if renderer may add trailing newline on the wrong-root branch.

Refuted

  • stderr assertion 'pass the directory that contains the workspace' could be brittle to future wording changes.; refuted because: That exact string is the documented recovery guidance and is asserted only on stderr; loosening it is a non-blocking follow-up, not a red/green oracle weakness for this PR.
  • Allocation-failure analysis on render_unusable_root/refusal_outcome: if the rendered String builder cannot allocate, the bridge would print an empty string and still return CommandError::Failure with exit 2, masking the refusal shape.; refuted because: Lane calibration excludes Box::from allocation-failure analysis unless a candidate explicitly raises it; no seeded thread or diff text raises it, and refusal_outcome's render path is the unchanged existing execution-refusal renderer.

Evidence gaps

  • Model proof intent was rejected by deterministic validation.

EffortlessSteven commented Oct 17, 2026 •

Copy link
Copy Markdown
Member Author

Verification follow-up to review 5555441619, exact head af2128cd0132af9240e65009503c6ea53b485163:

The wrong-root branch uses print!("{}", app::verification_execution::render_unusable_root(&error)) (crates/ripr/src/cli/commands/agent.rs:555–560). render_unusable_root delegates the existing refusal_outcome and render owners. render (verification_execution.rs:337–346) appends one LF in both normal and serialization-fallback paths. The CLI adds none. Retained real process captures for the exact-head executable parse as one JSON object and end in exactly one LF: missing root 779 bytes, file root 776 bytes. Existing root diagnostic/exit2 and no execution/result commit are preserved. No repair is needed for this verification question.

Required Rust gates job 117274412744 raw logs establish actual checkout d46fd7dd057e0deb04e47e74175ebcab778e521a (ordered parents 60a22c66851e8f5f6d932361c8e6cd758b9efd48 + this head), Rust1.95.0, nextest0.9.148, 16,548 distinct PASS subjects with complete ordinals1–16,548 and denominator16,548, spanning107 executing binary prefixes. Nextest inventories109 binaries; that inventory is not an execution count. Three skipped tests get no execution credit. All three new verify_execute_root regressions passed. Doctests:2 passed,1 ignored. Log SHA256 44990d65c5c6301729c11691b88fc1aa51888c5573b8d9c0f4e4e5c4abe91b3c (3,732,179 bytes).

The job uploaded artifact12086326461 (542,553 bytes; SHA256 73cc06d2fa6aeba9079483c4b3a381c91640b0522e18cd83da2ad12a20c67d9b). A single local transfer of its connector-provided signed reference returned HTTP403. That route is held; the archive/JUnit contents were not inspected. Runtime/test claims above come from raw execution logs and retained local captures, not the artifact metadata or unavailable model proof intent. Quota-limited review providers receive no clean-review credit.

@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.

Independent exact-head LLM cumulative review, transcribed from separate read-only reviewer review_root_json; COMMENT under the shared author account, not a formal self-approval.

REVIEW_READY for head af2128cd0132af9240e65009503c6ea53b485163, tree 44cb408107ea533349aeebefd81daf5f363d6d26. Prior complete nine-file source/oracle/runtime review remains current. No blocking source, oracle or integration finding remains.

Required run38991393350, product job117274412744 and result117284047406, succeeded. Raw execution logs prove checkout d46fd7dd057e0deb04e47e74175ebcab778e521a, ordered parents 60a22c66851e8f5f6d932361c8e6cd758b9efd48 + reviewed head, Rust1.95.0/nextest0.9.148. Independently parsed16,548 distinct PASS subjects, complete ordinals1..16548 and denominator16548, spanning107 executing binary prefixes; nextest inventories109 binaries. All3 new root regressions and the6 existing execution controls explicitly passed. The3 skips reconcile with source ignores for fixture regeneration, fresh-build subprocess entry and real-gh schema inspection; they get no execution credit. Doctests2passed/1ignored. The result job selected the successful GitHub-hosted implementation; other targets were skipped. Producer commands explicitly bind base60a22... and headaf2128..., separate from actual checkout. Raw product-log SHA256 44990d65c5c6301729c11691b88fc1aa51888c5573b8d9c0f4e4e5c4abe91b3c.

Current-main composition inspected at faf7ca01b0a3363f0d4ca676b5f33eaf6433c5ca, prospective combined tree c6a99e38f2ddac9c68fbeb16ea33e82767d1d0ee. Stable patch ID matches on accepted and current bases. Four root-failure owner/test files and SPEC0135 mappings remain unchanged; module registration occurs once. Mixed-quote rename parsing does not affect admission or the unrenamed recovery fixture. Gate-corpus ownership is test-only and unused here; side-flip changes do not match the recovery behavior. Other changes concern npm wording and removed PR drafts. No restack or unaffected rebuild is warranted; current-main composition is source-reviewed, not misrepresented as another hosted run.

Late review5555441619 newline question is refuted by serializer/caller source and actual bytes; persisted verification reply records exactly one trailing LF. No unresolved thread in the refreshed inventory. Complete native check inventory has37 records for this exact head:21success/16explicit skips, no pending/failure. Active main ruleset18845973 requires0approvals and thread resolution, permits squash, and provides no bypass.

Limits retained: native Windows root regression execution unverified; artifact12086326461 upload identity/digest verified in raw logs, but archive contents not inspected after the held signed-transfer HTTP403. Classic protection detail read403 and branch-rules URL guard400 remain held; unknown policy is not inferred absent. Normal expected-head protected squash must enforce server requirements. Unavailable model proof intent and quota-limited providers receive no review credit. No builds, source mutation, GitHub writes or denied-route retries by the reviewer.

All review consumers released task-local source/tools/target. Immutable proof remains retained. Root must refresh head/conversations/checks immediately before the normal protected squash, verify resulting main and reconcile issue8284; this review does not claim merge or parent/release completion.

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(agent): keep verify-execute root failures machine-readable

1 participant