Skip to content

ux(output): repo-scoped formats disclose progress and audit-path cost (#4945) - #4955

Merged
EffortlessSteven merged 2 commits into
mainfrom
ux/4945-repo-format-disclosure
Sep 30, 2026
Merged

EffortlessSteven merged 2 commits into
mainfrom
ux/4945-repo-format-disclosure

Conversation

@EffortlessSteven

@EffortlessSteven EffortlessSteven commented Sep 30, 2026 •

Copy link
Copy Markdown
Member

Summary

  • Fixes ux(output): repo-scoped formats are fully silent and disclose no invocation-time cost — docs-recommended summary-json costs as much as the full artifact #4945: the seven full-repo audit-path formats no longer run fully silent.
    • repo-seams-json, repo-seams-md, repo-exposure-json, repo-exposure-summary-json, repo-exposure-md, repo-sarif, agent-seam-packets-json now emit the same producer stages the diff path promises (ripr progress: loading_input|analyzing|building_output [repo], throttled still active after <elapsed class> heartbeats, completed [repo] only after stdout commit; fail-closes to failed [repo]/cancelled [repo]).
    • Each such invocation prints one invocation-time stderr line naming the expected cost class before the run begins: ripr: <format> is the full-repo audit path: a cold run analyzes every seam in the workspace and can take minutes on large repositories; followed by a per-format warm-rerun clause — the five classified/compact-classified walks claim warm reruns reuse the seam-facts cache and are much faster.; the raw repo-seams-* walks disclose raw seam inventory does not read the seam-facts cache, so every run pays the full walk.
  • Mechanism: the CliProgressSink is now wired before every repo-format path (previously the RepoExposureJson early return preceded the wiring, and the seam-inventory dispatch never received the sink), threaded through render_check_with_config_and_progress / ..._and_navigation_and_progress; the seven audit arms bracket their inventory walks with app::repo_inventory_with_progress, which reuses the diff-scoped ProgressRun stage/elapsed shape at AnalysisProgressScope::Repo. Inventory function signatures are unchanged — the sink threads at the render/CLI seams.
  • The disclosure is gated to exactly the seven formats via a declarative is_full_repo_analysis field in FORMAT_SPECS (repo-badge-* render compact/badge summaries and stay excluded — they must not claim minutes they do not charge). Like the repo-scope --base/--diff warning, the disclosure is an advisory notice, so --quiet keeps it while still dropping the progress stream.
  • Stdout byte-shape unchanged: progress and disclosure are stderr-only. Pinned by a byte-identical loud-vs---quiet comparison and a parse-as-pure-JSON pin.

Scope: disclosure only — no behavior or speed change (raw speed is #3794; latency-evidence rows are #3864).

Golden summary

  • cargo xtask goldens check: pass, 275 fixtures, zero drift — no golden pins the stderr these lines touch, so no re-bless was needed.

Proof

  • cargo test -p ripr repo_format — 6 passed: repo_format_audit_path_disclosure_covers_exactly_the_full_repo_analysis_group + repo_format_audit_path_group_is_the_seven_measured_formats (format spec set), repo_format_render_reports_stage_events_to_the_progress_sink (sink receives the four repo-scope stage boundaries on a temp seam workspace), and CLI built-binary pins repo_format_audit_path_progress_reaches_stderr_and_stdout_stays_clean, repo_format_quiet_keeps_stdout_byte_identical_and_drops_progress_stages, repo_format_disclosure_is_absent_outside_the_audit_path_group (diff json + repo-badge-json controls). The exact ask-spelled filter cargo test -p ripr repo-format matches 0 tests (Rust names use underscores); both spellings were run.
  • repo_inventory_with_progress_reports_the_diff_stage_shape_at_repo_scope + repo_inventory_progress_fail_closes_without_completed_on_either_closure_error — the helper emits the diff stage shape at repo scope and fail-closes on both closure errors.
  • cargo test -p ripr --test cli_progress — 13/13 (all pre-existing diff-scope pins still green).
  • cargo fmt --check clean; cargo clippy --workspace --all-targets -- -D warnings clean; cargo xtask goldens check exit 0; cargo xtask check-output-contracts pass.

Review repairs (ce4f111)

Bot review raised five findings; four were repaired on the candidate, one tracked as a residual:

All named gates re-run green on ce4f111. CI note: the cargo-deny advisory check turns red on this head because upstream yanked yoke-derive 0.8.3 (0.8.4 is the fix) between the previous green run and this push; Cargo.lock is byte-identical to origin/main, so the failure is inherited, not introduced. cargo-deny is not a required check (required: Ripr Rust Small Result); the lockfile repair routes as a separate dependency PR.

Swarm / Source Boundary

  • ordinary feature, analyzer, editor, docs, spec, fixture, badge, dependency, or repo-ops development for ripr-swarm
  • No publishing, release, credentials or distribution surfaces changed.

Source-of-truth Links

Governing issue: #4945. Spec: none added (stderr-only disclosure; no output contract change — check-output-contracts green). ADR: none required.


Devin Review

…#4945)

The seven full-repo audit-path formats (repo-seams-json/md,
repo-exposure-json/summary-json/md, repo-sarif, agent-seam-packets-json)
were the only fully silent surfaces: the CLI progress sink was wired
after the RepoExposureJson early return, the seam-inventory dispatch
never received it, and the render arms drove walkers that take
(root, config) only — while ripr check --help promises
'ripr progress: <stage> [<scope>]' stages for long-running analysis.
Measured on the issue's host (DEBUG): repo-exposure-json ~24.5 min,
repo-exposure-summary-json ~27.7 min, all fully silent.

- wire CliProgressSink before every repo-format path and thread it
  through render via render_check_with_config_and_progress /
  _and_navigation_and_progress; the seven audit arms bracket their
  inventory walks with app::repo_inventory_with_progress, reusing the
  diff-scoped stage/elapsed shape at [repo] scope (fail-closes to
  failed/cancelled on drop, holds completed until stdout commit)
- add an invocation-time one-line stderr disclosure naming the
  audit-path cost class, gated to exactly the seven formats via a
  declarative is_full_repo_analysis spec field (repo-badge-* excluded);
  it is an advisory notice like the repo-scope --base/--diff warning,
  so --quiet keeps it while still dropping the progress stream
- stdout byte-shape unchanged: progress and disclosure are stderr-only

Disclosure only — no behavior or speed change (speed is #3794,
latency-evidence rows #3864).

Proof: cargo test -p ripr repo_format (6: disclosure-set spec test,
sink-receives-progress render test on a temp seam workspace, CLI
stderr-progress + clean-JSON stdout pin, --quiet stdout byte-identical
pin, diff/badge exclusion controls) plus repo_inventory_with_progress /
repo_inventory_progress helper tests (2, including fail-close on both
closure errors); cli_progress suite 13/13; fmt; clippy -D warnings;
goldens check (275 fixtures, no drift, no stderr re-bless needed);
check-output-contracts.
@coderabbitai

coderabbitai Bot commented Sep 30, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 20 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Advanced

Run ID: b744dd11-db0d-4936-bfa9-fb06c63ecef8

📥 Commits

Reviewing files that changed from the base of the PR and between 458cfc9 and ce4f111.

📒 Files selected for processing (8)
  • CHANGELOG.md
  • crates/ripr/src/app.rs
  • crates/ripr/src/app/progress.rs
  • crates/ripr/src/app/tests/rendering_contracts.rs
  • crates/ripr/src/cli/commands/check.rs
  • crates/ripr/src/output/format.rs
  • crates/ripr/src/output/render.rs
  • crates/ripr/tests/cli_progress.rs

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

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

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Code Review

This pull request implements progress reporting and invocation-time cost disclosures for full-repo audit-path formats. It introduces the 'repo_inventory_with_progress' helper to bracket full-repo inventory walks with repo-scope progress boundaries, updates rendering functions to accept progress sinks, and configures the CLI to emit progress events and cost disclosures. Additionally, comprehensive unit and integration tests are added to verify these behaviors. Feedback on the changes suggests a minor improvement in a unit test assertion within 'crates/ripr/src/app/progress.rs' to check for specific error messages instead of just asserting 'is_err()', which helps pin the operator-facing error messages.

Comment thread crates/ripr/src/app/progress.rs Resolved

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

Devin Review

Comment thread crates/ripr/src/cli/commands/check.rs Resolved
Comment thread crates/ripr/src/output/format.rs Resolved
Comment thread crates/ripr/src/app/progress.rs Resolved
Comment thread crates/ripr/src/cli/commands/check.rs Resolved
Review findings dispositioned on the #4945 candidate:

- repo_audit_path_disclosure promised warm seam-facts cache reuse to all
  seven audit formats, but the raw repo-seams-* walks
  (inventory_seams_at_with_config) rebuild the corpus index on every run
  and never read RepoSeamFactCache. The warm-rerun clause is now honest
  per format: the five classified/compact-classified walks keep the cache
  claim; the raw walks disclose that every run pays the full walk. Pinned
  by a per-spec disclosure test and an exactly-five cache-backed group
  test.
- repo_inventory_with_progress's doc comment claimed LoadingInput covers
  corpus discovery; discovery runs inside the Analyzing coarse stage. Doc
  corrected to the honest coarse-stage semantics.
- the fail-close test now asserts the closure error propagates verbatim
  instead of only is_err.
- CHANGELOG: Unreleased/Added entry per CONTRIBUTING.md:67.
@EffortlessSteven
EffortlessSteven merged commit d09426d into main Sep 30, 2026
41 of 42 checks passed
@EffortlessSteven
EffortlessSteven deleted the ux/4945-repo-format-disclosure branch September 30, 2026 14:08
EffortlessSteven added a commit that referenced this pull request Sep 30, 2026
Four bot-review findings dispositioned on the candidate; all repaired:

- the unchanged-tests note no longer fires on repo-scoped formats: their
  corpus walks never read include_unchanged_tests, so the smaller/faster-
  index claim was false there (analysis/workspace/select.rs narrows every
  diff-scoped mode when it is false; the inventory walks read only the
  corpus). The repair route now names the knob that owns the value — the
  CLI flag when passed, [analysis] include_unchanged_tests otherwise —
  because "drop the flag" is unreachable advice for the config-driven
  case (no positive CLI counterpart exists). Pinned by a config-driven
  smoke test (config knob + route present, flag advice absent) and a
  repo-badge-json absence control.
- the shared git timeout error named only the CLI knobs (--git-timeout /
  RIPR_GIT_TIMEOUT); the same deadline wait serves the editor sidecar,
  whose deadline comes from the gitTimeoutMs initialization option. The
  repair route now names all three and the 0-disables escape; test pin
  extended to gitTimeoutMs.
- CONFIGURATION.md's cancellation claim narrows to the files ripr writes
  itself: a shell-redirected stdout file is owned by the shell and can be
  truncated by an interruption; re-running rewrites it.

Also merges origin/main (d09426d = #4955, plus #4954) for the coupled
check.rs/CHANGELOG surfaces; the merged region was verified semantically
(single progress wiring, #4946 note and #4945 disclosure coexist).
EffortlessSteven added a commit that referenced this pull request Sep 30, 2026
…ut knob (#4946) (#4953)

* ux(output): restate mode/test-filter tradeoffs and name the git-timeout knob (#4946)

* fix(ux): honest disclosure repairs from review (#4946)

Four bot-review findings dispositioned on the candidate; all repaired:

- the unchanged-tests note no longer fires on repo-scoped formats: their
  corpus walks never read include_unchanged_tests, so the smaller/faster-
  index claim was false there (analysis/workspace/select.rs narrows every
  diff-scoped mode when it is false; the inventory walks read only the
  corpus). The repair route now names the knob that owns the value — the
  CLI flag when passed, [analysis] include_unchanged_tests otherwise —
  because "drop the flag" is unreachable advice for the config-driven
  case (no positive CLI counterpart exists). Pinned by a config-driven
  smoke test (config knob + route present, flag advice absent) and a
  repo-badge-json absence control.
- the shared git timeout error named only the CLI knobs (--git-timeout /
  RIPR_GIT_TIMEOUT); the same deadline wait serves the editor sidecar,
  whose deadline comes from the gitTimeoutMs initialization option. The
  repair route now names all three and the 0-disables escape; test pin
  extended to gitTimeoutMs.
- CONFIGURATION.md's cancellation claim narrows to the files ripr writes
  itself: a shell-redirected stdout file is owned by the shell and can be
  truncated by an interruption; re-running rewrites it.

Also merges origin/main (d09426d = #4955, plus #4954) for the coupled
check.rs/CHANGELOG surfaces; the merged region was verified semantically
(single progress wiring, #4946 note and #4945 disclosure coexist).
EffortlessSteven added a commit that referenced this pull request Sep 30, 2026
Sync for #4924: origin/main moved to ec4eee3 (human-output disclosure
family #4936/#4942/#4953/#4955 and render progress plumbing #4945).
Conflicts: app.rs/check.rs/render.rs semantically unioned (FindingDrillIn
param + progress sink); 71 fixture bless CHANGELOGs unioned (both sides'
Pending sections kept, numbering deduplicated); human-full goldens and
human.rs/sections.rs/triage.rs/navigation.rs auto-merged.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant