Repository navigation
ux(gate): print visible-only warning only after a completed report - #7493
Conversation
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>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
Summary by CodeRabbit
WalkthroughThe gate command emits the default visible-only warning after report generation. It suppresses the warning for missing-input usage errors and ChangesGate warning timing
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 Missing-input and configuration-error runs remain quiet, while completed default-mode evaluations retain the advisory; no product-facing merge risk is evident. Architecture SummaryArchitecture risk: 🔵 Low · up to The change affects 3 systems. Changed systems: Architecture concerns Review details
Pre-merge checks |
|
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
left a comment
There was a problem hiding this comment.
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.
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
left a comment
There was a problem hiding this comment.
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
left a comment
There was a problem hiding this comment.
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
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>
Summary
Move the default
visible-onlystderr warning inripr gate evaluateso 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-reporiprwork. Confirm the change belongs here:ripr-swarmSource-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 evaluaterun 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-d2d7Stack 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_WARNINGincrates/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:
Production delta:
config_error.Evidence/support delta:
config_erroris also quiet; a completed default-mode run still warns.config_errorand keeps advisory/blocked disclosure.GATE_HELP,docs/CALIBRATED_GATE_POLICY.md, anddocs/OUTPUT_SCHEMA.mdname the completed-evaluation bound.changelog.d/7447-visible-only-warning-after-report.md.Command::newspawn in that test.Single acceptance criterion:
ripr gate evaluatewith no--pr-guidance/--gap-ledger/--repo-exposureexits 2 and stderr does not containusing default mode visible-only.Non-goals:
--rootexistence)status: passin visible-only)GateMode,output/gate/*, andDEFAULT_VISIBLE_ONLY_WARNINGtextSupport-tier Impact
docs/status/SUPPORT_TIERS.mdClaim/proof notes:
Policy Impact
Ledger or exception notes:
policy/process_allowlist.txt:crates/ripr/tests/gate_visible_only_warning.rs|Command::new|1|cli-tests— one spawn ofCARGO_BIN_EXE_riprfor the stderr discriminator. No production spawn.Proof
Result, failures, or skipped proof:
precommitpassed on361741e50f01252b4246218ddbc876be13890fac.Ripr Rust Small Resulton Draft -> Ready).Claim Boundary
What may be claimed after this PR? What must not be claimed yet?
config_errorruns no longer print the default visible-only warning; completed default-mode evaluations still do.pass(ux(gate): status "pass" is unreachable in the default visible-only mode; a perfectly clean run still reads "advisory" #7445);--rootis validated (ux(gate): --root pointing at a nonexistent directory is never validated; a decision can bind to a bogus root and exit 0 #7444); runtime mutation outcomes.Rollback
Revert this PR. Warning placement returns to pre-validation; the new tests start failing.
Spec-Test-Code Traceability
crates/ripr/tests/gate_visible_only_warning.rs;crates/ripr/src/cli/commands/gate.rsunit tests;GATE_HELPcompleted-evaluation pincrates/ripr/src/cli/commands/gate.rsconfig_errordecision:build_gate_decision_reportcan succeed withstatus: config_errorand 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
killed,survived,untested,proven, andadequate.CI Economics
Engineering Check
panic,unwrap,expect,todo, orunimplementedin production code.panic,unwrap,expect,todo, orunimplementedin tests.Gates
Local
precommitpassed on this head. Hosted exact-head CI is the merge matrix.Exact candidate SHA:
361741e50f01252b4246218ddbc876be13890fac