Skip to content

ux(gate): print visible-only warning only after a completed report - #7493

Merged
EffortlessSteven merged 3 commits into
mainfrom
cursor/gate-visible-only-warning-placement-d2d7
Oct 12, 2026
Merged

EffortlessSteven merged 3 commits into
mainfrom
cursor/gate-visible-only-warning-placement-d2d7

Conversation

@EffortlessSteven

@EffortlessSteven EffortlessSteven commented Oct 12, 2026 •

Copy link
Copy Markdown
Member

Summary

Move the default visible-only stderr warning in ripr gate evaluate so it prints only after a report builds for a completed evaluation. Missing-input exit 2 no longer leads with advice about a mode the run never used.

Closes #7447.

Swarm / Source Boundary

This PR targets EffortlessMetrics/ripr-swarm, the normal development trunk for trusted same-repo ripr work. Confirm the change belongs here:

  • ordinary feature, analyzer, editor, docs, spec, fixture, badge, dependency, or repo-ops development for ripr-swarm
  • repair or follow-up for a same-repo swarm PR
  • swarm-only CI, runner, routing, source-of-truth, or agent-operating surface
  • other swarm-scoped work:

Source-of-truth Links

Proposal: n/a
Spec: RIPR-SPEC-0014 (warning bound to completed evaluations); RIPR-SPEC-0067 (gate CLI adapter)
ADR: n/a
Plan item: n/a
Governing issue or accepted claim: #7447
Acceptance delta (one sentence): a missing-input ripr gate evaluate run exits 2 without emitting the default visible-only warning; a completed default-mode evaluation still emits it.

Candidate Relationships

Candidate branch (GitHub PR head is authoritative after publication): cursor/gate-visible-only-warning-placement-d2d7
Stack parent or prerequisite PR (if any): none
Proposed replacement of PR (if any; not yet accepted): none
Acceptance retained from a replaced candidate (if any): none
Accepted winner and losing candidate disposition (when decided): n/a

Scope

CLI adapter placement of DEFAULT_VISIBLE_ONLY_WARNING in crates/ripr/src/cli/commands/gate.rs, plus the matching completed-evaluation bound in RIPR-SPEC-0014 / gate help / calibrated-gate docs.

Scope Classification

This PR is scoped by:

  • One production behavior
  • One public contract
  • One architectural seam
  • Docs/spec/test-only evidence package
  • Other:

Production delta:

  • Parse options, then require at least one input, then build the report.
  • Print the unchanged visible-only warning only after that report exists and is not config_error.

Evidence/support delta:

  • Integration test: missing-input run does not emit the warning.
  • Integration tests: config_error is also quiet; a completed default-mode run still warns.
  • Unit pins for the helper that skips config_error and keeps advisory/blocked disclosure.
  • RIPR-SPEC-0014, GATE_HELP, docs/CALIBRATED_GATE_POLICY.md, and docs/OUTPUT_SCHEMA.md name the completed-evaluation bound.
  • RIPR-SPEC-0014 traceability mapping for the new placement tests.
  • Changelog fragment changelog.d/7447-visible-only-warning-after-report.md.
  • Process-policy allowlist for the one Command::new spawn in that test.

Single acceptance criterion:

  • ripr gate evaluate with no --pr-guidance / --gap-ledger / --repo-exposure exits 2 and stderr does not contain using default mode visible-only.

Non-goals:

Support-tier Impact

  • none
  • updates docs/status/SUPPORT_TIERS.md
  • changes a README, release, docs, CLI, JSON, editor, CI, or package claim

Claim/proof notes:

  • Same warning text and modes. Only stderr ordering / omission on could-not-complete paths. Help and SPEC-0014 now say that bound explicitly.

Policy Impact

  • none
  • doc artifacts
  • CI lane
  • package boundary
  • lint / Clippy
  • no-panic
  • file policy
  • generated artifact
  • dependency
  • process/network

Ledger or exception notes:

  • policy/process_allowlist.txt: crates/ripr/tests/gate_visible_only_warning.rs|Command::new|1|cli-tests — one spawn of CARGO_BIN_EXE_ripr for the stderr discriminator. No production spawn.

Proof

# Inherited baseline on origin/main ccb8eebed:
cargo xtask worktree doctor   # pass
cargo xtask check-fast        # pass; 0 files changed vs origin/main
cargo check -p ripr --all-targets  # pass

# Discriminator against the unfixed head:
cargo test -p ripr --test gate_visible_only_warning -- --exact gate_evaluate_missing_input_does_not_emit_visible_only_warning
# FAILED: stderr led with the unused-mode warning, then the usage error

# After the placement change:
cargo test -p ripr --lib -- cli::commands::gate::tests  # 7 passed
cargo test -p ripr --test gate_visible_only_warning     # 3 passed
cargo xtask check-fast   # pass; 10 gates, 3 files (then 4 after allowlist)
cargo xtask precommit    # first fail: process-policy on Command::new; after allowlist, pass

# After SPEC-0014 / help qualifier:
cargo test -p ripr --lib -- cli::help::tests::gate_family_help_states_file_backed_output_discipline cli::commands::gate::tests::default_visible_only_warning_requires_omitted_mode_and_non_interactive_use
# 2 passed
cargo test -p ripr --test gate_visible_only_warning  # 3 passed
cargo xtask precommit  # pass on 361741e50

Result, failures, or skipped proof:

  • Focused tests and precommit passed on 361741e50f01252b4246218ddbc876be13890fac.
  • Hosted exact-head CI is the merge-gate matrix (Ripr Rust Small Result on Draft -> Ready).

Claim Boundary

What may be claimed after this PR? What must not be claimed yet?

Rollback

Revert this PR. Warning placement returns to pre-validation; the new tests start failing.

Spec-Test-Code Traceability

  • Spec: RIPR-SPEC-0014 (warning bound); RIPR-SPEC-0067 (CLI adapter)
  • Tests: crates/ripr/tests/gate_visible_only_warning.rs; crates/ripr/src/cli/commands/gate.rs unit tests; GATE_HELP completed-evaluation pin
  • Code: crates/ripr/src/cli/commands/gate.rs
  • Golden outputs: none
  • Metrics: none
  • ADR/learning: n/a

config_error decision: build_gate_decision_report can succeed with status: config_error and still write the report. That is a written fail-closed artifact, not a completed evaluation under visible-only, so the mode warning stays off those runs as well as missing-input usage errors.

Static Language Check

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

CI Economics

  • LEM impact: n/a
  • Workflows touched: none
  • Branch protection impact: none
  • Failure mode caught: n/a
  • Cheaper signal considered: n/a
  • Required lanes affected: ordinary PR gate only
  • Advisory lanes affected: none
  • On-demand/release lanes affected: none
  • Labels that alter behavior: none
  • Artifact families affected: none
  • Rollback path: revert

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

Local precommit passed on this head. Hosted exact-head CI is the merge matrix.

Exact candidate SHA: 361741e50f01252b4246218ddbc876be13890fac

Open in Web Open in Cursor 

Move the default-mode stderr warning past input validation and report
construction so missing-input exit 2 no longer leads with advice about a
mode the run never used. Keep the same warning off config_error reports,
which are written fail-closed artifacts rather than completed evaluations.

Closes #7447

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

coderabbitai Bot commented Oct 12, 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: 4f8a6a52-e3a1-4ad3-bc25-4e6782a200e9

📥 Commits

Reviewing files that changed from the base of the PR and between 81e9ac5 and 361741e.


📒 Files selected for processing (7)
  • .ripr/traceability.toml
  • changelog.d/7447-visible-only-warning-after-report.md
  • crates/ripr/src/cli/help.rs
  • crates/ripr/src/cli/help/policy.rs
  • docs/CALIBRATED_GATE_POLICY.md
  • docs/OUTPUT_SCHEMA.md
  • docs/specs/RIPR-SPEC-0014-calibrated-gate-policy.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

  • Bug Fixes
    • The visible-only warning appears only after a completed evaluation report is generated, including advisory and blocked evaluations.
    • Missing-input errors and configuration-error reports no longer show the warning, keeping error messages focused on the issue that stopped the evaluation.

Walkthrough

The gate command emits the default visible-only warning after report generation. It suppresses the warning for missing-input usage errors and config_error reports. Tests cover those outcomes and completed evaluations.

Changes

Gate warning timing

Layer / File(s) Summary
Post-report warning behavior
crates/ripr/src/cli/commands/gate.rs
The command checks report status before emitting the warning. It suppresses the warning for config_error reports. In-code tests cover configuration errors and completed advisory and blocked reports.
CLI warning outcomes
crates/ripr/tests/gate_visible_only_warning.rs, policy/process_allowlist.txt
Integration tests check that missing-input and malformed-guidance runs exit with code 2 without the warning. A completed evaluation succeeds and emits the warning. The process allowlist includes the built-binary test invocation.
Warning contract and documentation
crates/ripr/src/cli/help/policy.rs, crates/ripr/src/cli/help.rs, docs/CALIBRATED_GATE_POLICY.md, docs/OUTPUT_SCHEMA.md, docs/specs/RIPR-SPEC-0014-calibrated-gate-policy.md, .ripr/traceability.toml, changelog.d/7447-visible-only-warning-after-report.md
Help, policy documentation, and the specification describe the warning timing and error cases. Traceability references cover the warning behavior, and the changelog records the change.

Priority: ⬇️ Low

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Bug fix · Severity of issue fixed: Low

Possibly related PRs

Merge Risk: ⚪ Minimal · up to 36174

Missing-input and configuration-error runs remain quiet, while completed default-mode evaluations retain the advisory; no product-facing merge risk is evident.

Architecture Summary

Architecture risk: 🔵 Low · up to 81e9a

The change affects 3 systems.

Changed systems: crates, changelog.d, policy

Architecture concerns
No architecture-level concerns identified.

Review details

Systems and components

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

Before / after behavior

  • observed — Modified behavior in changelog.d/7447-visible-only-warning-after-report.md: Adds a fixed changelog entry describing the visible-only warning timing and the missing-input and config_error cases.
  • observed — Modified behavior in crates/ripr/src/cli/commands/gate.rs: Removed the pre-evaluation warning call, which could warn before the gate report was built.
  • observed — Modified behavior in crates/ripr/src/cli/commands/gate.rs: After building the report, the command checks its status before warning: config_error reports do not trigger the default visible-only warning; other statuses use the existing omitted-mode and non-interactive conditions.
  • observed — Modified behavior in crates/ripr/src/cli/commands/gate.rs: Added a helper that suppresses the warning for config_error and otherwise delegates to the existing mode and interactivity checks.

Pre-merge checks | Passed 4 | Failed 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage Warning Docstring coverage is 45.45% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 11 functions across 4 files. (5 skipped: … Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Linked Issues check Passed Issue #7447 requires no default visible-only warning for missing-input and config_error runs, while completed evaluations still emit it. gate.rs checks input presence before report construction and …
Out of Scope Changes check Passed The production change, integration tests, unit tests, traceability updates, help text, specification text, documentation, changelog, and process allowlist all document or verify the #7447 warning beha…
Title check Passed The title clearly and concisely states the primary change: the visible-only warning now prints only after a completed report.
Description check Passed The description follows the repository template and documents the summary, scope, acceptance criterion, tests, policy impact, claim boundary, rollback, and traceability. It also clearly reports that h…

Full details: Docstring Coverage

Explanation

Docstring coverage is 45.45% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 11 functions across 4 files. (5 skipped: 5 unsupported.)


  • Fix all pre-merge checks with AI
✨ Finishing Touches 💡 1
📝 Generate docstrings 💡
  • Commit to this branch
  • Create a new PR

🧪 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 checks the gate’s report,
Then sends a warning, brief and short.
No missing flag gets noisy advice,
Bad config errors stay concise.
When runs complete, the message may appear,
With carrots close and outputs clear.

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

gemini-code-assist[bot]

This comment was marked as resolved.

coderabbitai[bot]

This comment was marked as resolved.

The #7447 discriminator runs CARGO_BIN_EXE_ripr to pin stderr, so
check-process-policy needs an owned spawn exception for that one
Command::new site.

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 on exact head 81e9ac5b02c875f609914eda23a3a7897b1ec62e. GitHub cannot request changes from the author, so this is COMMENT, not approval.

reviewed_head_sha: 81e9ac5b02c875f609914eda23a3a7897b1ec62e
integration_basis: origin/main at PR open (behind-only; no restack)
claim_boundary: #7447 placement of DEFAULT_VISIBLE_ONLY_WARNING only; warning text, GateMode, and output/gate/* unchanged; #7444/#7445/#7446 out of scope
changed_surfaces_and_semantic_owners_inspected:
- crates/ripr/src/cli/commands/gate.rs (CLI adapter owner of argv, missing-input, warning, exit mapping)
- crates/ripr/tests/gate_visible_only_warning.rs (rendered CARGO_BIN_EXE_ripr stderr)
- policy/process_allowlist.txt (one Command::new for that test)
- changelog.d/7447-visible-only-warning-after-report.md
blocking_findings: none in source/oracle for this claim
non_blocking_suggestions: none that belong in this PR
refuted_or_stale_findings: none
proof_and_ci_observed:
- missing-input test FAILED on unfixed main (warning then usage error, exit 2)
- after placement: lib gate tests 7/7; gate_visible_only_warning 3/3; check-fast pass; precommit pass after process-policy allowlist
proof_or_review_missing: hosted exact-head checks/artifacts (Ripr Rust Small Result not yet triggered on Draft)
affected_currentness_dimensions: production implementation, test stimulus, test oracle, public claim (changelog), candidate head identity
residual_assumptions_and_non_claims:
- config_error reports are written fail-closed artifacts, not completed evaluations, so the warning stays off those runs as well as missing-input
- exception-policy blocking vs "never blocks" text remains #7446
- visible-only status "pass" remains #7445
- --root existence remains #7444
disposition: REVIEW_INCOMPLETE until hosted exact-head checks exist on this SHA; source and oracle inspection found no blocker

Lanes:

  • Authority: warning stays in the CLI adapter; output/gate is not a parallel owner.
  • Correctness: missing-input returns before the print; config_error uses GATE_STATUS_CONFIG_ERROR; advisory/blocked still warn.
  • Oracle: the missing-input binary test is the intended red on old placement; the completed-run test is the removal control.
  • Rendered behavior: tests spawn CARGO_BIN_EXE_ripr with piped stderr (non-interactive).
  • Contract parity: warning text and help copy unchanged; only ordering/omission on could-not-complete paths.
  • Platform: is_terminal() on piped stderr is false on Unix and Windows; no new platform branch.
  • Exact-head CI: not established on this published SHA yet.

@EffortlessSteven
EffortlessSteven marked this pull request as ready for review October 12, 2026 12:01

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

Devin Review

Comment thread crates/ripr/src/cli/commands/gate.rs Resolved
Qualify RIPR-SPEC-0014, gate help, and matching docs so the default-mode
warning is for completed evaluations only. Missing-input and config_error
runs stay quiet. Map the placement tests onto SPEC-0014.

Co-authored-by: Steven Zimmerman, CPA <EffortlessSteven@users.noreply.github.com>
@EffortlessSteven
EffortlessSteven marked this pull request as draft October 12, 2026 12:09
@EffortlessSteven
EffortlessSteven marked this pull request as ready for review October 12, 2026 12:15

@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 on exact head 361741e50f01252b4246218ddbc876be13890fac. GitHub cannot request changes from the author, so this is COMMENT, not approval.

reviewed_head_sha: 361741e50f01252b4246218ddbc876be13890fac
integration_basis: origin/main at PR open (behind-only; no restack)
claim_boundary: #7447 placement of DEFAULT_VISIBLE_ONLY_WARNING only; warning text, GateMode, and output/gate/* unchanged; #7444/#7445/#7446 out of scope. SPEC-0014/help/docs now name the completed-evaluation bound.
changed_surfaces_and_semantic_owners_inspected:
- crates/ripr/src/cli/commands/gate.rs (CLI adapter owner of argv, missing-input, warning, exit mapping)
- crates/ripr/tests/gate_visible_only_warning.rs (rendered CARGO_BIN_EXE_ripr stderr)
- crates/ripr/src/cli/help/policy.rs GATE_HELP completed-evaluation qualifier
- docs/specs/RIPR-SPEC-0014-calibrated-gate-policy.md warning paragraph
- docs/CALIBRATED_GATE_POLICY.md and docs/OUTPUT_SCHEMA.md matching copy
- .ripr/traceability.toml RIPR-SPEC-0014 mapping for the new tests
- policy/process_allowlist.txt (one Command::new for that test)
- changelog.d/7447-visible-only-warning-after-report.md
blocking_findings: none in source/oracle for this claim
non_blocking_suggestions: none that belong in this PR
refuted_or_stale_findings:
- Gemini/CodeRabbit TempDirGuard: residual test hygiene; matches existing CLI harness; not this claim
- Devin SPEC-0014 unqualified warning: valid; repaired on this head
- Devin missing traceability entries: not a check-traceability merge blocker; mapped and registered on SPEC-0014 anyway
proof_and_ci_observed:
- missing-input test FAILED on unfixed main (warning then usage error, exit 2)
- after placement: lib gate tests 7/7; gate_visible_only_warning 3/3; help pin 1/1; precommit pass on this SHA
proof_or_review_missing: hosted exact-head Ripr Rust Small Result on this SHA (Draft -> Ready just armed)
affected_currentness_dimensions: production implementation, test stimulus, test oracle, public claim (changelog/help/spec/docs), generated relationships (traceability), candidate head identity
residual_assumptions_and_non_claims:
- config_error reports are written fail-closed artifacts, not completed evaluations, so the warning stays off those runs as well as missing-input
- exception-policy blocking vs "never blocks" text remains #7446
- visible-only status "pass" remains #7445
- --root existence remains #7444
disposition: REVIEW_INCOMPLETE until hosted exact-head checks exist on this SHA; source and oracle inspection found no blocker

Lanes:

  • Authority: warning stays in the CLI adapter; output/gate is not a parallel owner.
  • Correctness: missing-input returns before the print; config_error uses GATE_STATUS_CONFIG_ERROR; advisory/blocked still warn.
  • Oracle: the missing-input binary test is the intended red on old placement; the completed-run test is the removal control.
  • Rendered behavior: tests spawn CARGO_BIN_EXE_ripr with piped stderr (non-interactive).
  • Contract parity: warning text unchanged; SPEC-0014/help/docs now exclude could-not-complete paths.
  • Platform: is_terminal() on piped stderr is false on Unix and Windows; no new platform branch.
  • Exact-head CI: not established on this published SHA yet.

@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-pr on exact SHA 361741e50f01252b4246218ddbc876be13890fac. GitHub cannot request changes from the author, so this is COMMENT, not approval.

reviewed_head_sha: 361741e50f01252b4246218ddbc876be13890fac
integration_basis: origin/main (behind-only; mergeable_state clean; no restack)
claim_boundary: #7447 placement of DEFAULT_VISIBLE_ONLY_WARNING; warning text, GateMode, output/gate/* unchanged; #7444/#7445/#7446 out of scope
changed_surfaces_and_semantic_owners_inspected:
- crates/ripr/src/cli/commands/gate.rs
- crates/ripr/tests/gate_visible_only_warning.rs
- crates/ripr/src/cli/help/policy.rs GATE_HELP
- docs/specs/RIPR-SPEC-0014-calibrated-gate-policy.md
- docs/CALIBRATED_GATE_POLICY.md, docs/OUTPUT_SCHEMA.md
- .ripr/traceability.toml RIPR-SPEC-0014 mapping
blocking_findings: none
non_blocking_suggestions: none in this claim
refuted_or_stale_findings: TempDirGuard hygiene (resolved); SPEC-0014 qualifier repaired; traceability mapped
proof_and_ci_observed:
- Ripr Rust Small Result: success on this SHA (run 38247910236)
- Ripr Rust Small on GitHub Hosted / Rust gates: success
- Route Ripr Rust Small: success
- no failed check conclusions on this SHA
- mergeable_state: clean
- all 7 review threads resolved
proof_or_review_missing: none required for this claim
affected_currentness_dimensions: production, test stimulus/oracle, public claim, generated relationships, candidate head identity, exact-head CI
residual_assumptions_and_non_claims: config_error stays quiet as a fail-closed artifact; #7444/#7445/#7446 remain separate
disposition: REVIEW_READY

@EffortlessSteven
EffortlessSteven merged commit f193d24 into main Oct 12, 2026
43 checks passed
@EffortlessSteven
EffortlessSteven deleted the cursor/gate-visible-only-warning-placement-d2d7 branch October 12, 2026 13:15
cursor Bot pushed a commit that referenced this pull request Oct 12, 2026
Add the changelog.d fragment for the user-facing default visible-only
warning correction, matching CONTRIBUTING and the #7493 sibling entry.

Co-authored-by: Steven Zimmerman, CPA <EffortlessSteven@users.noreply.github.com>
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(gate): the visible-only warning prints before input validation, so usage-error and config_error runs lead with misleading advisory noise

2 participants