Repository navigation
ux(gate): qualify visible-only warning for exception-policy blocks - #7504
Conversation
The default visible-only stderr warning said the run never blocks, but an expired or otherwise blocking --exception-policy ledger still exits 3. Qualify the warning: findings never block; exception-policy violations still can. Leave status and exit codes unchanged. Closes #7446. 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 default visible-only warning now says that findings do not block, but exception-policy violations still can. Tests and documentation reflect this distinction. ChangesVisible-only warning
Priority: ⬇️ Low Estimated code review effort: 2 (Simple) | ~10 minutes Change: Bug fix · Severity of issue fixed: Low Merge Risk: ⚪ Minimal · up to The warning clarification is reflected in the tests and policy documentation, and the changelog follows the required format. No actionable merge risk remains. Architecture SummaryArchitecture risk: 🔵 Low · up to The change affects 3 systems. Changed systems: Architecture concerns Review details
Pre-merge checks |
|
There was a problem hiding this comment.
Code Review
This pull request updates the default visible-only warning message to clarify that while findings do not block, exception-policy violations still can. This change is reflected in the CLI warning text, unit and integration tests, and documentation. Feedback on the changes identifies that the new early returns in the integration test will leak the temporary test directory on failure, and suggests performing manual cleanup before returning the errors to maintain consistency with the file's conventions.
EffortlessSteven
left a comment
There was a problem hiding this comment.
review-pr (author self-review, COMMENT)
GitHub cannot request-changes from the author; this is not approval. Disposition is for this exact head.
reviewed_head_sha: 0d3efd77d853547340fd6bb255cda8dab8ce1b4a
integration_basis: origin/main 6fa50556238efc01f2a6b18b8c5a71ad39261802 (#7500); #7493 already on main
claim_boundary: DEFAULT_VISIBLE_ONLY_WARNING must say findings never block but exception-policy violations still can. No status/exit-code change. No OUTPUT_SCHEMA.md edit (#7505). Stay out of #7444/#7445, check.rs, doctor.rs, pilot.rs, mutation_calibration*.
changed_surfaces_and_semantic_owners_inspected:
- cli adapter: crates/ripr/src/cli/commands/gate.rs::DEFAULT_VISIBLE_ONLY_WARNING (printed after completed evaluation via default_visible_only_warning_for_completed_report; #7493 placement unchanged)
- blocking owner left untouched: crates/ripr/src/output/gate.rs::top_level_status still `summary.blocking > 0 || exception_blocking > 0`
- spec/policy consumers: RIPR-SPEC-0014 warning paragraph; docs/CALIBRATED_GATE_POLICY.md warning paragraph
- tests: unit wording discriminator + gate_visible_only_warning.rs rendered-stderr assertions
- traceability: RIPR-SPEC-0014 tests list
blocking_findings: none
non_blocking_suggestions:
- CodeRabbit docstring-coverage warning is not a repo gate and is not applicable: this diff did not add public functions; it changed a constant and tests.
refuted_or_stale_findings:
- #7493 did not close this wording claim; it only moved when the warning prints. Confirmed on origin/main: the constant still said unqualified "never blocks".
proof_and_ci_observed:
- cargo test -p ripr --lib -- cli::commands::gate::tests::default_visible_only_warning: 2 passed
- cargo test -p ripr --test gate_visible_only_warning: 3 passed
- cargo xtask precommit: pass (clippy -p ripr --all-targets and -p xtask --all-targets)
proof_or_review_missing:
- Hosted required checks (Ripr Rust Small Result on Draft->Ready) have not been observed on this published head yet.
- docs/OUTPUT_SCHEMA.md still has the old copy; deferred as #7505.
- No new end-to-end expired-ledger+warning test in this PR; existing #1442 tests still own blocking, and the wording discriminator rejects the old phrase even without that fixture.
affected_currentness_dimensions: production implementation (warning text), test stimulus/oracle (wording assertions), public claim (spec/policy sentences), generated relationships (traceability test pointer)
residual_assumptions_and_non_claims:
- Exception-policy enforcement and exit 3 are unchanged.
- Warning still prints on blocked completed evaluations (GATE_STATUS_BLOCKED selector unchanged); the text is now honest when that happens.
- Does not claim runtime mutation outcomes.
disposition: REVIEW_INCOMPLETE until hosted required checks are current on this exact head; source/oracle inspection found no blocker.
Oracle challenge: restoring the old constant (...and never blocks. Pass --mode...) would fail both contains("never blocks on findings") / contains("exception-policy violations still can") and the negative !contains("and never blocks.") in the unit test and the completed-run integration test.
Contract parity: spec + CALIBRATED_GATE_POLICY match the new warning. OUTPUT_SCHEMA.md does not; that is an intentional residual tracked as #7505.
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>
EffortlessSteven
left a comment
There was a problem hiding this comment.
review-pr amendment (author self-review, COMMENT)
Exact head moved 0d3efd77 → de52209532928f44edb2064ac2fbb9dde647897d for one public-claim repair: changelog.d/7446-visible-only-warning-exception-policy.md.
Warning text, tests, spec, policy, status, and exit codes are unchanged from the previous inspection. All three review threads now have a reply; changelog is repaired, OUTPUT_SCHEMA is #7505, Gemini temp-dir cleanup matches existing file convention.
reviewed_head_sha: de52209532928f44edb2064ac2fbb9dde647897d
affected_currentness_dimensions: public claim (changelog fragment only)
blocking_findings: none
disposition: REVIEW_INCOMPLETE until hosted required checks (Ripr Rust Small Result on Draft->Ready) are current on this head.
There was a problem hiding this comment.
Decision
- Needs one verification check before upstream.
Verification questions
- Confirm risk that the new wording silently regresses on a future edit: the integration test renders stderr and asserts on three substrings including a negative
and never blocks., so any re-flattening to the old phrase will fail loudly ingate_evaluate_completed_visible_only_run_still_emits_default_mode_warning.
Refuted
- A sibling warning helper still prints the old unqualified 'never blocks' phrase (gemini-style hidden site).; refuted because: default_visible_only_warning_for_completed_report is the sole emit path and returns DEFAULT_VISIBLE_ONLY_WARNING verbatim; no other const or format literal carries the old phrase in the diff or accessible callers.
- Helper/duplication risk: would warrant a shared substring constant; refuted because: Phrase literals are duplicated across const, unit test, integration test, spec, and policy by intent (each consumer owns its quote); introducing a shared constant would couple docs/tests to a runtime string and is not the smallest fix.
Parked follow-ups
- OUTPUT_SCHEMA.md is stale copy, intentionally deferred to #7505; this PR claim boundary matches.
- OUTPUT_SCHEMA.md still carries the unqualified 'never blocks' copy per devin-ai-integration bot. Author defers to #7505 by claim boundary; runtime, spec, and policy agree on this head. Public JSON/Markdown decision contracts are unchanged.
- Residual: docs/OUTPUT_SCHEMA.md still carries unqualified 'never blocks' copy; deferred to #7505.
Evidence gaps
- Model proof intent was rejected by deterministic validation.
|
Verification check from the github-actions review: confirmed.
Local run on this candidate: 3 passed in |
EffortlessSteven
left a comment
There was a problem hiding this comment.
review-pr (published-head, author self-review, COMMENT)
GitHub cannot request-changes from the author; this is not an approval event. Disposition is for this exact published head.
reviewed_head_sha: de52209532928f44edb2064ac2fbb9dde647897d
integration_basis: origin/main 6fa50556238efc01f2a6b18b8c5a71ad39261802
claim_boundary: default visible-only warning says findings never block but exception-policy violations still can. No status/exit change. OUTPUT_SCHEMA.md deferred to #7505.
changed_surfaces_and_semantic_owners_inspected: DEFAULT_VISIBLE_ONLY_WARNING, RIPR-SPEC-0014, CALIBRATED_GATE_POLICY.md, warning tests, changelog.d/7446-visible-only-warning-exception-policy.md
blocking_findings: none
non_blocking_suggestions: none
refuted_or_stale_findings: Gemini temp-dir cleanup (file convention); Devin OUTPUT_SCHEMA (#7505); github-actions verification already satisfied by gate_visible_only_warning.rs
proof_and_ci_observed:
- Ripr Rust Small Result: success (run 38260029711)
- Ripr Rust Small on GitHub Hosted / Rust gates: success
- mergeable_state: clean
- local precommit + focused warning tests on 0d3efd77; changelog-only follow-up de522095
proof_or_review_missing: none for this claim
residual_assumptions_and_non_claims: OUTPUT_SCHEMA.md still stale (#7505); exception-policy enforcement unchanged
disposition: REVIEW_READY
Summary
Qualify the default
visible-onlystderr warning so it no longer says the run "never blocks". Findings stay advisory;--exception-policyviolations can still block with exit 3.#7493 already moved this warning to completed evaluations only. That PR closed #7447 (placement). This PR is the remaining wording claim from #7446.
Closes #7446.
Follow-up for the leftover
docs/OUTPUT_SCHEMA.mdcopy: #7505.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 (default visible-only warning wording)
ADR: n/a
Plan item: n/a
Governing issue or accepted claim: #7446
Acceptance delta: The default visible-only warning says findings never block but exception-policy violations still can.
Candidate Relationships
Candidate branch (GitHub PR head is authoritative after publication):
cursor/gate-visible-only-warning-8efaStack parent or prerequisite PR (if any): none; #7493 already landed on
mainProposed replacement of PR (if any; not yet accepted): n/a
Acceptance retained from a replaced candidate (if any): n/a
Accepted winner and losing candidate disposition (when decided): n/a
Related but out of scope: #7444, #7445, #7447/#7493 (warning placement), #7505 (
OUTPUT_SCHEMA.mdcopy).Scope
Change
DEFAULT_VISIBLE_ONLY_WARNINGand the tests/docs that quote it. Do not change gate status, exit codes, or blocking logic.Scope Classification
This PR is scoped by:
Production delta:
DEFAULT_VISIBLE_ONLY_WARNINGnow says the default records advisory evidence and never blocks on findings, but exception-policy violations still can.Evidence/support delta:
gate_evaluate_completed_visible_only_run_still_emits_default_mode_warningasserts the same wording on rendered stderr.docs/CALIBRATED_GATE_POLICY.md.changelog.d/7446-visible-only-warning-exception-policy.md.Single acceptance criterion:
ripr gate evaluatewarning tells operators that findings never block and that exception-policy violations still can.Non-goals:
top_level_status, exit 3, or exception-policy enforcement.docs/OUTPUT_SCHEMA.mdin this PR; that leftover copy is docs(schema): OUTPUT_SCHEMA still says visible-only "never blocks" after the #7446 warning qualification #7505.check.rs,doctor.rs,pilot.rs, ormutation_calibration*.Support-tier Impact
docs/status/SUPPORT_TIERS.mdClaim/proof notes:
Policy Impact
Ledger or exception notes:
Proof
Result, failures, or skipped proof:
cargo xtask precommitpassed on production/test head0d3efd77. Head is nowde52209532928f44edb2064ac2fbb9dde647897dafter adding the changelog fragment only.docs/OUTPUT_SCHEMA.md(docs(schema): OUTPUT_SCHEMA still says visible-only "never blocks" after the #7446 warning qualification #7505).Claim Boundary
May claim: the default visible-only warning text no longer says an unqualified "never blocks", and its tests reject that old phrase.
Must not claim: that visible-only findings now block, that exception-policy enforcement changed, that
docs/OUTPUT_SCHEMA.mdwas updated, or that runtime mutation results follow from this warning.Rollback
Revert the commits. Warning text, tests, matching spec/policy sentences, and the changelog fragment return to the unqualified "never blocks" wording. No status/exit/schema rollback.
Spec-Test-Code Traceability
default_visible_only_warning_says_findings_never_block_but_exception_policy_still_can;gate_evaluate_completed_visible_only_run_still_emits_default_mode_warningcrates/ripr/src/cli/commands/gate.rs::DEFAULT_VISIBLE_ONLY_WARNINGStatic 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
cargo fmt --check(viacargo xtask precommit)cargo test -p riprfor the warning unit and integration testscargo xtask precommit