Skip to content

feat(pilot): emit packet summary on stdout with --format json - #8155

Merged
EffortlessSteven merged 3 commits into
mainfrom
cursor/pilot-format-json-514f
Oct 16, 2026
Merged

EffortlessSteven merged 3 commits into
mainfrom
cursor/pilot-format-json-514f

Conversation

@EffortlessSteven

@EffortlessSteven EffortlessSteven commented Oct 16, 2026 •

Copy link
Copy Markdown
Member

Summary

Closes #7428.

ripr pilot had no stdout JSON path: --format json and --json both exited 2 with unknown pilot argument, so CI had to locate pilot-summary.json under the packet directory. This PR accepts --format json the same way other ripr subcommands do: the existing pilot-summary.json document is written to stdout and the human terminal is suppressed. Packet files under --out are unchanged. --json is not added as an alias because it never existed on this command.

Swarm / Source Boundary

This PR targets EffortlessMetrics/ripr-swarm, the normal development trunk for trusted same-repo ripr work.

  • ordinary feature, analyzer, editor, docs, spec, fixture, badge, dependency, or repo-ops development for ripr-swarm

Source-of-truth Links

Proposal: n/a
Spec: n/a (existing pilot-summary.json schema 0.3 is unchanged)
ADR: n/a
Plan item: n/a
Governing issue or accepted claim: #7428
Acceptance delta: ripr pilot --format json prints the packet summary on stdout; default human stdout and packet files stay as they are.

Candidate Relationships

Candidate branch: cursor/pilot-format-json-514f
Stack parent or prerequisite PR: none
Proposed replacement of PR: none
Acceptance retained from a replaced candidate: none

Open PR #8151 owns check/gate/agent-verify help exit-contract text; this PR does not touch those help bodies.

Scope

CLI argv, stdout selection, help, catalog json_support, a one-paragraph OUTPUT_SCHEMA.md note for the new flag, and a changelog.d/ fragment. Renderer and schema are reused, not forked.

Scope Classification

This PR is scoped by:

  • One public contract

Production delta:

  • parse_pilot_options accepts --format human|json (default human).
  • Complete and timeout runs print the already-rendered summary JSON when --format json is set; human terminal is suppressed.
  • Packet files under --out are still written.
  • cmd:pilot catalog row reports json_support: true.
  • ripr pilot --help and ripr help --all name --format json.

Evidence/support delta:

Single acceptance criterion:

A CI script can run ripr pilot --root X --format json | jq .status and get the packet summary, without reading the out-dir.

Non-goals:

Support-tier Impact

  • changes a README, release, docs, CLI, JSON, editor, CI, or package claim

Claim/proof notes: new CLI flag, catalog json_support, and changelog fragment. Schema version and file packet contract are unchanged.

Policy Impact

  • none

Proof

cargo test -p ripr --lib -- parse_pilot_options json_stdout_is_the_summary every_parsed_flag_agrees_with_its_help_documentation command_specific_help_usage_lines_are_stable pilot_row_reports_stdout_json_support
# ok: 8 passed on 4057b937c (no production delta in 21a2551f5)

cargo test -p ripr --test cli_smoke -- pilot_format_json_prints_the_packet_summary -- --exact
# ok on 4057b937c (stdout equals pilot-summary.json; run without --quiet)

cargo xtask check-changelog-fragments
# pass on 21a2551f5d3a75b1095a089dd79e54018c6e523b

cargo xtask precommit
# exit 0 on 21a2551f5d3a75b1095a089dd79e54018c6e523b

What the proof establishes: argv accepts --format json; unknown formats and --json still fail closed; help documents the flag; catalog reports JSON support; the built binary writes the packet summary to stdout and not the human block; the changelog fragment is well-formed.

What the proof does not establish: hosted required-check matrix for 21a2551f5 (requested after Ready); timeout-path stdout JSON except via the shared helper; a JSON error envelope on usage/operational failure.

Claim Boundary

What may be claimed after this PR? ripr pilot --format json emits the existing pilot-summary.json document on stdout and suppresses the human block. Packet files remain.

What must not be claimed yet? This does not add --json, change the summary schema, or make --format json imply --quiet. Progress still goes to stderr unless --quiet is set. next.retry_command remains an analysis re-run recipe and does not copy presentation flags.

Rollback

Revert the squash commit. CLI flag, help, catalog row, stdout selection, and changelog fragment only.

Spec-Test-Code Traceability

  • Spec: docs/OUTPUT_SCHEMA.md Pilot Summary (flag note only; schema 0.3 unchanged)
  • Tests: crates/ripr/src/cli/commands/pilot.rs, crates/ripr/src/cli/help.rs, crates/ripr/src/cli/command_metadata.rs, crates/ripr/tests/cli_smoke.rs
  • Code: crates/ripr/src/cli/commands/pilot.rs, crates/ripr/src/cli/commands_options.rs, crates/ripr/src/cli/help/{core,overview}.rs, crates/ripr/src/cli/command_metadata.rs
  • Golden outputs: none
  • Metrics: n/a
  • ADR/learning: n/a
  • Changelog: changelog.d/8155-pilot-format-json.md

Static Language Check

  • Static output avoids killed, survived, untested, proven, and adequate.
  • Unknowns include stop reasons where applicable.

CI Economics

n/a — no workflow, lane, or protection change.

Engineering Check

  • No new panic, unwrap, expect, todo, or unimplemented in production code.
  • No new panic, unwrap, expect, todo, or unimplemented in tests.
  • New non-Rust programming files are allowlisted with owner, surface, and reason.
  • New generated, dependency, process-spawn, or network surfaces are allowlisted with owner and reason.
  • Errors are reported with actionable context.
  • Public JSON/schema changes are documented.

Gates

  • focused cli::commands::pilot / cli::help / cli::command_metadata tests
  • cargo test -p ripr --test cli_smoke -- pilot_format_json_prints_the_packet_summary
  • cargo xtask check-changelog-fragments (pass on 21a2551)
  • cargo xtask precommit (exit 0 on 21a2551)

Continuation

Owner / governing claim: #7428 / PR #8155
Candidate: PR #8155 / 21a2551f5d3a75b1095a089dd79e54018c6e523b / base 20022bbfe
Review: source/oracle/changelog COMMENT on 21a2551f5; disposition REVIEW_INCOMPLETE until hosted required checks finish for this SHA
Validation: prior lib tests + cli_smoke on 4057b937c; check-changelog-fragments pass; precommit exit 0 on 21a2551f5; merge-ref tree equals candidate
Dependency: none
Devin threads: retry_command residual (resolved); spec/traceability fenced (resolved); changelog repaired (resolved)
Next: Ready for Ripr Rust Small Result on 21a2551f5; freeze head; squash-merge when required checks are green; no restack
Open in Web Open in Cursor 

`ripr pilot --format json` now writes the existing pilot-summary.json
document to stdout and suppresses the human terminal, matching other
ripr subcommands. Packet files under --out are unchanged. --json is
not added as an alias because it never existed on this command.

Closes #7428.

Co-authored-by: Steven Zimmerman, CPA <EffortlessSteven@users.noreply.github.com>
@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 16, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: 2b4efd18-d6ef-459b-b442-5a99e7d89e0d
📥 Commits

Reviewing files that changed from the base of the PR and between 4057b93 and 21a2551.

📒 Files selected for processing: 1
  • changelog.d/8155-pilot-format-json.md
🔗 Linked repositories identified

CodeRabbit considers these linked repositories for cross-repo context during reviews:

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 8 remain after this review.

Summary by CodeRabbit

  • New Features
    • ripr pilot supports --format json to print its summary as JSON to stdout. The default human-readable output remains available, and packet files continue to be written as before.
  • Documentation
    • Updated command help and output documentation to describe the format option.

Walkthrough

ripr pilot now accepts --format human or --format json. JSON mode writes the summary document to stdout and suppresses human terminal output. Both completed and timed-out runs use the selected format.

Changes

Pilot stdout format

Layer / File(s) Summary
Format option and parsing
crates/ripr/src/cli/commands_options.rs, crates/ripr/src/cli/commands/pilot.rs, crates/ripr/src/cli/help/core.rs, crates/ripr/src/cli/help/overview.rs, crates/ripr/src/cli/help.rs
PilotOptions stores the selected format, which defaults to human. The parser accepts human and json, and rejects unsupported values. Help text and tests cover the option.
Summary output and supporting updates
crates/ripr/src/cli/commands/pilot.rs, crates/ripr/src/cli/command_metadata.rs, crates/ripr/tests/cli_smoke.rs, docs/OUTPUT_SCHEMA.md, changelog.d/8155-pilot-format-json.md
Completed and timed-out runs select JSON or human output. Metadata marks JSON support. The smoke test, output documentation, and changelog describe the JSON stdout behavior.

Priority: ➖ Normal

Estimated code review effort: 3 (Moderate) | ~20 minutes

Change: Feature · Severity of issue fixed: Medium

Sequence Diagram(s)

sequenceDiagram
  participant CLI as ripr pilot CLI
  participant Pilot as Pilot command
  participant Files as Summary and packet files
  participant Stdout as Standard output
  CLI->>Pilot: Run with selected format
  Pilot->>Files: Write summary and packet files
  Pilot->>Stdout: Emit JSON summary or human terminal text
Loading
Merge Risk: ⚪ Minimal · up to 21a25

The new option preserves human output by default and provides the existing summary as JSON on request. The supplied implementation and test summaries show the intended output behavior, with no actionable merge-blocking risk evident.

### Architecture Summary

Architecture risk: 🔵 Low · up to 21a25

The change affects 3 systems.

Changed systems: crates, changelog.d, docs

Architecture concerns
No architecture-level concerns identified.

Review details

Systems and components

  • observed — crates (service) was modified; 7 changed files map to changed impact.
  • observed — changelog.d (service) was modified; 1 changed file maps to changed impact.
  • observed — docs (service) was modified; 1 changed file maps to changed impact.

Before / after behavior

  • observed — Modified behavior in crates/ripr/src/cli/command_metadata.rs: The cmd:pilot metadata row changes json_support from false to true.
  • observed — Modified behavior in crates/ripr/src/cli/command_metadata.rs: Adds a test that locates cmd:pilot metadata and returns an error if its json_support flag is false.
  • observed — Modified behavior in crates/ripr/src/cli/commands/pilot.rs: The CLI imports now include PilotStdoutFormat and unknown_value for format selection and invalid-value reporting.
  • observed — Modified behavior in crates/ripr/src/cli/commands/pilot.rs: The timeout path now prints through pilot_stdout, selecting the JSON timeout summary or existing terminal rendering according to the requested format.
Pre-merge checks: Passed 5
Check name Status Explanation
Linked Issues check Passed Issue #7428 requires a CI-readable stdout path for the Pilot summary. The current change summary reports --format human|json, stdout emission of the existing pilot-summary.json for complete and ti…
Out of Scope Changes check Passed The reported changes stay within issue #7428. Production changes cover Pilot argument parsing and stdout selection. Help, metadata, schema documentation, changelog, and focused tests document or verif…
Docstring Coverage Passed Docstring coverage is 80.00% which is sufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 15 functions across 6 files. (1 skipped: 1 …
Title check Passed The title clearly and concisely identifies the main change: adding JSON packet-summary output for ripr pilot through --format json.
Description check Passed The description is complete and relevant. It documents the behavior change, scope, acceptance criterion, non-goals, support and policy impact, proof, claim boundary, rollback, traceability, engineerin…
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

A rabbit taps --format json with care,
A summary hops to stdout, clear and bright.
The human block steps softly out of sight,
While packet files remain tucked where they belong.
Timed-out runs send JSON along,
And human still keeps the old refrain.

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

The binary discriminator compares stdout to pilot-summary.json. Running
without --quiet would fail that equality if progress leaked onto stdout.

Co-authored-by: Steven Zimmerman, CPA <EffortlessSteven@users.noreply.github.com>

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

Author self-review of exact head 4057b937ceb1b7911a86f3db601cdf539f68d965 (GitHub cannot request changes from the author; this COMMENT is the disposition, not approval).

reviewed_head_sha: 4057b937ceb1b7911a86f3db601cdf539f68d965
integration_basis: origin/main 20022bbfe
claim_boundary: #7428 — `ripr pilot --format json` emits existing pilot-summary.json on stdout and suppresses the human terminal; packet files stay; no --json alias
changed_surfaces_and_semantic_owners_inspected:
- cli/commands/pilot.rs parse_pilot_options, parse_pilot_format, pilot_stdout, complete and timeout print sites
- cli/commands_options.rs PilotStdoutFormat
- cli/help/{core,overview}.rs PILOT_HELP and HELP_ALL usage; not CHECK_HELP/GATE_HELP/AGENT_VERIFY_HELP (#8151)
- cli/help.rs flag/help parity pins
- cli/command_metadata.rs cmd:pilot json_support
- tests/cli_smoke.rs binary stdout==file discriminator
- docs/OUTPUT_SCHEMA.md flag note only; schema 0.3 unchanged
blocking_findings: none on source/oracle
non_blocking_suggestions:
- timeout JSON stdout is covered by the shared helper, not a separate timeout binary run
- cmd:pilot catalog outputs still name only the packet directory; json_support:true is the machine signal
refuted_or_stale_findings: none
proof_and_ci_observed:
- cargo test -p ripr --lib -- parse_pilot_options json_stdout_is_the_summary every_parsed_flag_agrees_with_its_help_documentation command_specific_help_usage_lines_are_stable pilot_row_reports_stdout_json_support → 8 passed
- cargo test -p ripr --test cli_smoke -- pilot_format_json_prints_the_packet_summary -- --exact → ok (without --quiet, so a stdout progress leak would fail file equality)
- cargo xtask precommit → exit 0 on 4057b937c
- hosted: rust-only feature lane and others still in flight on this head
proof_or_review_missing: required hosted checks and merge-gate artifacts for this published head
affected_currentness_dimensions: production implementation, test stimulus/oracle, public claim (help/catalog/schema note)
residual_assumptions_and_non_claims:
- no --json alias
- --format json does not imply --quiet; progress stays on stderr
- usage errors after parse still return prose on stderr, not a JSON envelope
- schema/renderer unchanged; this is a stdout selection
disposition: REVIEW_INCOMPLETE — source and local oracle are clean; hosted required checks are not yet current. Re-enter for exact-head CI before merge.

Oracle challenge: printing the human block, a different JSON document, or concatenating both would fail stdout == pilot-summary.json and the focused test: absence check. --json and unknown formats still fail closed. Help/parser parity would reject an undocumented --format.

@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 reviewer attention before upstream: findings remain.

Confirmed findings

  • No public JSON contract change; schema_version stays 0.3. Docs add only a one-paragraph flag note. No migration risk.
  • pilot_stdout only chooses between two pre-rendered strings; if a future change renders the terminal after file write but before print and that render panics, stdout would already have the prior body — but today both branches are produced before the print in both the timeout and complete paths, so no ordering hazard exists.

Verification questions

  • Confirm cli_smoke binary proof asserts stdout equals pilot-summary.json, not just 'is JSON', and checks human block is absent.
  • Confirm cli_smoke binary witness pilot_format_json_prints_the_packet_summary_and_suppresses_the_human_block is the only end-to-end proof that stdout equals the packet file.

Refuted

  • --format could allow an empty or whitespace value to silently default; refuted because: expect_value enforces a non-empty token; missing-value test asserts the exact error string. Whitespace tokens would still be parsed and rejected by parse_pilot_format.
  • Proposal that PilotStdoutFormat::Json could be parsed but ignored, so ripr pilot --format json still prints the human block; refuted because: Two print! call sites in pilot.rs pass the body through pilot_stdout(format, json, terminal); a unit test asserts the helper returns the JSON string for Json and terminal for Human; the new cli_smoke test asserts stdout equals pilot-summary.json and must not contain 'focused test:'. Source-grep confirms no other print!/println! of terminal text remains on the pilot path.
  • --format json could change the schema version or content of the written JSON file; refuted because: The same output::pilot::render_pilot_summary_json(&classified, context) function is reused and written to both the file and stdout via &summary_json; the binary test pins schema_version == "0.3".

Evidence gaps

  • Binary proof for stdout assertion not yet in receipt; cli_smoke test exists and is the gate but its execution result is absent.
  • Model proof intent was rejected by deterministic validation.

@EffortlessSteven

Copy link
Copy Markdown
Member Author

Re: the github-actions review on 4057b937c (“findings remain” / verification questions). Classification: not a source defect. Zero inline threads.

Verification

  • pilot_format_json_prints_the_packet_summary_and_suppresses_the_human_block asserts stdout == pilot-summary.json (not merely parseable JSON) and !stdout.contains("focused test:"). That is the only end-to-end stdout-equals-file witness.
  • Local execution on this head: cargo test -p ripr --test cli_smoke -- pilot_format_json_prints_the_packet_summary -- --exact → ok, without --quiet.
  • Hosted: Rust-only feature lane succeeded on 4057b937c (run 38830550283).

Evidence gap (“binary proof not in a receipt”): the run is recorded in the PR Proof section and the rust-only lane. That is missing hosted-receipt packaging, not missing execution. Head stays frozen.

The two “confirmed findings” (schema 0.3 unchanged; both stdout branches rendered before print!) are observations, not blockers.

@EffortlessSteven
EffortlessSteven marked this pull request as ready for review October 16, 2026 00:59

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

Published-head review of 4057b937ceb1b7911a86f3db601cdf539f68d965 after hosted rust-only completed.

reviewed_head_sha: 4057b937ceb1b7911a86f3db601cdf539f68d965
integration_basis: origin/main 20022bbfe
claim_boundary: #7428 — --format json stdout packet summary; no --json alias
changed_surfaces_and_semantic_owners_inspected: same as prior COMMENT; no head movement
blocking_findings: none
non_blocking_suggestions: timeout stdout JSON remains helper-covered, not a separate timeout binary
refuted_or_stale_findings:
- github-actions “findings remain” / missing binary receipt: not a source defect. The cli_smoke witness asserts stdout==file and absent human block; local exact-filter run ok; rust-only lane succeeded. Replied on the PR. Zero inline threads.
- Gemini quota comment: missing review for that provider, not a finding.
- CodeRabbit: no actionable comments.
proof_and_ci_observed:
- local lib + cli_smoke + precommit as previously recorded
- hosted rust-only feature lane success (38830550283)
- other completed checks success or skipped-by-policy (coverage, msrv, vscode, perl, windows-advisory full, future-clippy, junit)
proof_or_review_missing: Ripr Rust Small Result (Ready-triggered); merge-gate aggregator if any after Ready
affected_currentness_dimensions: exact-head CI receipts refreshed for rust-only; implementation/oracle unchanged
residual_assumptions_and_non_claims: unchanged
disposition: REVIEW_READY for source/oracle and observed rust-only. Merge waits on Ready-triggered Ripr Rust Small Result on this frozen head.

@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 found 3 potential issues.

Devin Review

Comment thread crates/ripr/src/cli/commands/pilot.rs Resolved
Comment thread crates/ripr/src/cli/commands/pilot.rs Resolved
Comment thread crates/ripr/src/cli/commands/pilot.rs Resolved
@EffortlessSteven
EffortlessSteven marked this pull request as draft October 16, 2026 01:03
CONTRIBUTING requires a changelog.d entry for user-visible CLI behavior.

Co-authored-by: Steven Zimmerman, CPA <EffortlessSteven@users.noreply.github.com>

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

Author self-review of exact head 21a2551f5d3a75b1095a089dd79e54018c6e523b after the changelog repair (GitHub cannot request changes from the author; this COMMENT is the disposition, not approval).

reviewed_head_sha: 21a2551f5d3a75b1095a089dd79e54018c6e523b
integration_basis: origin/main 20022bbfe
merge_ref: 3ab624b5 parents 20022bbfe + 21a2551f5; tree 22af7aaac equals candidate tree (no combined-tree delta)
claim_boundary: #7428 — `ripr pilot --format json` emits existing pilot-summary.json on stdout and suppresses the human terminal; packet files stay; no --json alias
changed_surfaces_and_semantic_owners_inspected:
- production/oracle unchanged from 4057b937c (cli parse, pilot_stdout, help, catalog, cli_smoke, OUTPUT_SCHEMA flag note)
- changelog.d/8155-pilot-format-json.md Added fragment (#7428)
blocking_findings: none
non_blocking_suggestions: timeout JSON stdout remains helper-covered; retry_command still omits presentation flags
refuted_or_stale_findings:
- Devin retry_command drops --format json: residual, not a stdout-path defect. Packet field from PilotCommands::new is independent of CLI format; presentation flags are not analysis-retry parameters. Replied; thread resolved.
- Devin missing spec/traceability: fenced by the #7428 coordinate; schema 0.3 unchanged; OUTPUT_SCHEMA.md already notes the flag. Replied; thread resolved.
- Devin missing changelog: valid; repaired by 21a2551f5. Thread resolved after the fragment landed.
proof_and_ci_observed:
- cargo xtask check-changelog-fragments → pass on 21a2551f5
- cargo xtask precommit → exit 0 on 21a2551f5
- prior lib + cli_smoke binary proof on 4057b937c still applies (no production delta in 21a2551f5)
proof_or_review_missing: hosted required checks for this published head (Ready not yet requested at review time)
affected_currentness_dimensions: public-claim (changelog); implementation/oracle unchanged
residual_assumptions_and_non_claims:
- no --json alias
- --format json does not imply --quiet
- retry_command does not carry presentation flags
- usage errors stay prose on stderr, not a JSON envelope
disposition: REVIEW_INCOMPLETE — source/oracle/changelog clean; hosted required checks are not yet current for 21a2551f5. Mark Ready to request Ripr Rust Small Result; re-enter before merge.

@EffortlessSteven
EffortlessSteven marked this pull request as ready for review October 16, 2026 01:11
@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 reviewer attention before upstream: findings remain.

Confirmed findings

  • next.retry_command is a packet-document field generated independently of CLI stdout selection in output::pilot::PilotCommands::new.
  • crates/ripr/src/cli/help/core.rs:61 — Help grammatically claims '--format FORMAT human or json. Defaults to human. json writes the same ...' - the 'json writes' sentence reads as if the verb subject is the literal token 'json' rather than 'FORMAT'. Tighten to e.g. 'When set to json, the same pilot-summary.json document is written to stdout ...' to avoid implying 'json' alone runs the command.

Verification questions

  • Confirm binary witness is the only end-to-end proof that stdout equals the packet file; helper test only proves selection function returns the precomputed json string.
  • Confirm retry_command already excludes other presentation flags (--quiet, --format); carrying --format into retry_command would mutate the written pilot-summary.json document relative to schema 0.3 default.

Refuted

  • Devin retry_command comment: pilot-summary.json's next.retry_command is rendered from PilotCommands::new, independent of CLI stdout selection. Presentation flags do not flow into the packet document; carrying --format json would alter the schema, which is intentionally unchanged.
  • pilot_stdout could read a half-written body if a later render panicked after selecting the branch; refuted because: Both terminal and JSON strings are fully rendered into local variables before pilot_stdout is invoked in both the complete and timeout call sites; selecting a branch returns a pre-existing &str, so no partial-write window exists.
  • devin concern that PilotCommands::new retry_command omits --format: pre-existing presentation-flag omission, not a stdout path defect; rendering uses the same shared helper so jq .status still works.
  • A sibling CLI helper somewhere else in ripr already writes pilot JSON to stdout; refuted because: pilot_stdout is the only stdout selector in commands/pilot.rs; parse_pilot_format is the only parser; pilot() owns the only two print sites. No other route referenced the pilot-summary.json document as stdout.
  • JSON stdout route lacks a JSON error envelope on usage/operational failure; refuted because: Claim boundary in PR body explicitly excludes 'a JSON error envelope on usage/operational failure'; current diff only reuses the summary document on success. Out of scope for #7428.

Evidence gaps

  • Model proof intent was rejected by deterministic validation.

@EffortlessSteven

Copy link
Copy Markdown
Member Author

Re: github-actions review on 21a2551f5 (“findings remain”). Classification: not a source defect. Zero unresolved inline threads. Head stays frozen.

Confirmed findings

  • next.retry_command as a packet-document field: observation, already recorded. Not a stdout-path defect; presentation flags stay out of the packet.
  • PILOT_HELP json writes the same …: style nit, not a contract error. The option is --format FORMAT with values human or json on the same lines; usage already shows --format json. “json writes” names the selected FORMAT value, not a bare ripr json command. Tightening that sentence would unfreeze Ready-triggered Small Result for no behavior change.

Verification

  • pilot_format_json_prints_the_packet_summary_and_suppresses_the_human_block is the only end-to-end stdout==file witness. The helper test only pins pilot_stdout selection.
  • retry_command already omits --quiet and --format. Carrying --format json into it would mutate the written document relative to the default packet.

Evidence gap (“model proof intent rejected” / receipt packaging): local cli_smoke + precommit on this head; hosted lanes in flight. That is missing receipt packaging, not missing execution.

@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_sha: 21a2551
integration_basis: origin/main 20022bbfe06859dd3369fef39ff4fc5e4d2919d3
claim_boundary: #7428 — ripr pilot --format json emits existing pilot-summary.json on stdout and suppresses the human terminal; packet files stay; no --json alias
changed_surfaces_and_semantic_owners_inspected:

  • crates/ripr/src/cli/commands/pilot.rs: parse_pilot_format, pilot_stdout selection, pilot() command entrypoint
  • crates/ripr/src/cli/command_metadata.rs, crates/ripr/src/cli/commands_options.rs, crates/ripr/src/cli/help.rs: CLI flag and catalog definitions
  • crates/ripr/tests/cli_smoke.rs: binary smoke tests verifying --format json stdout matches pilot-summary.json
  • changelog.d/8155-pilot-format-json.md: Added fragment for #7428
  • docs/OUTPUT_SCHEMA.md: note on --format json
    blocking_findings: none
    non_blocking_suggestions: none
    refuted_or_stale_findings:
  • Devin retry_command drops --format json: packet field from PilotCommands::new is independent of CLI format; presentation flags are not analysis-retry parameters. Thread resolved.
  • Devin missing spec/traceability: fenced by the #7428 coordinate; schema 0.3 unchanged; OUTPUT_SCHEMA.md already notes the flag. Thread resolved.
  • Devin missing changelog: repaired by 21a2551. Thread resolved.
    proof_and_ci_observed:
  • cargo xtask check-changelog-fragments (pass on 21a2551)
  • cargo xtask precommit (pass on 21a2551)
  • Ripr Rust Small Result from Routed Rust Small run 38833774318
    proof_or_review_missing: none
    affected_currentness_dimensions: public-claim (changelog), CLI surface
    residual_assumptions_and_non_claims:
  • no --json alias
  • --format json does not imply --quiet
  • retry_command does not carry presentation flags
  • usage errors stay prose on stderr, not a JSON envelope
    disposition: REVIEW_READY

EffortlessSteven commented Oct 16, 2026 •

Copy link
Copy Markdown
Member Author

Test-oracle follow-up is PR #8219, exact head 4997de00de414ef20b8f461943c7cfdf2bbb9b3c, one accountable writer on codex/pilot-json-semantic-oracle. This does not reopen the delivered #7428 product claim.

Verified gap: replacing the completed pilot path's summary renderer with the timeout renderer leaves the original pilot_format_json_prints_the_packet_summary_and_suppresses_the_human_block green (one selected, native 0) while emitting partial, null actionable count and an empty ranking, identical on stdout and disk. Strengthened assertions reject the same mutation at partial versus complete (native 101), and pass after production is restored (native 0). Final diff is only 18 added assertion/comment lines in the existing test.

Exact-head check-fast, precommit and exact smoke all pass, native 0. Independent semantic/oracle review and GitHub merge-subject currentness inspection found no actionable/material issue; the PR body links the review and records head/basis/tree, control witnesses, limits and continuation. Required hosted qualification completed on the unchanged head before merge (see below).

Parent memory check: native execution remained available; cgroup OOM counters are zero. Peak 9.74 GiB / limit 16 GiB is an environment/compiler observation, not a test-process peak or proof of disconnect cause. Actual selected test takes 0.09 seconds; precommit compilation also selects xtask through its existing reverse-dependent policy. Two owned failed-test fixture trees (38,739 bytes) were archived, hash-verified and removed; all candidate/control evidence is preserved. No broad test/policy churn.

LANDED (2026-10-16T07:19:36Z): PR #8219 squash-merged as 895e4a47db94a618504875debbd1b76e4ed951f7 on main (d08c77d14..895e4a47d). Merge gate evidence: required Ripr Rust Small Result check run success on the unchanged head 4997de00 (run 38861009659, job 116858901950); the gates job's checkout step verified the tested merge subject 69084397a = candidate 4997de00 + base e660a9948; mergeStateStatus CLEAN; 0 review threads; 0 approvals required. Landed-content spot-check: crates/ripr/tests/cli_smoke.rs:15857-15871 on main carries the complete status pin, u64 actionable_seams_total, and the lang-rust-gated single ranked src/lib.rs::price seam. Lane branch codex/pilot-json-semantic-oracle deleted. Residual: none for this test-oracle claim; timeout scheduling, general analyzer adequacy and Windows execution remain outside its recorded claim boundary. #8155 and #7428 remain closed product claims.

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.

ux(pilot): pilot rejects --format/--json with an unknown-argument error, leaving no way to get the packet as stdout for CI

2 participants