Skip to content

ux(gate): qualify visible-only warning for exception-policy blocks - #7504

Merged
EffortlessSteven merged 2 commits into
mainfrom
cursor/gate-visible-only-warning-8efa
Oct 12, 2026
Merged

EffortlessSteven merged 2 commits into
mainfrom
cursor/gate-visible-only-warning-8efa

Conversation

@EffortlessSteven

@EffortlessSteven EffortlessSteven commented Oct 12, 2026 •

Copy link
Copy Markdown
Member

Summary

Qualify the default visible-only stderr warning so it no longer says the run "never blocks". Findings stay advisory; --exception-policy violations 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.md copy: #7505.

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 (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-8efa
Stack parent or prerequisite PR (if any): none; #7493 already landed on main
Proposed 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.md copy).

Scope

Change DEFAULT_VISIBLE_ONLY_WARNING and the tests/docs that quote it. Do not change gate status, exit codes, or blocking logic.

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:

  • DEFAULT_VISIBLE_ONLY_WARNING now says the default records advisory evidence and never blocks on findings, but exception-policy violations still can.

Evidence/support delta:

  • Unit test rejects the old unqualified "and never blocks." phrase and requires the exception-policy qualification.
  • Integration test gate_evaluate_completed_visible_only_run_still_emits_default_mode_warning asserts the same wording on rendered stderr.
  • Matching wording in RIPR-SPEC-0014 and docs/CALIBRATED_GATE_POLICY.md.
  • Traceability mapping for the new unit test.
  • Changelog fragment changelog.d/7446-visible-only-warning-exception-policy.md.

Single acceptance criterion:

  • A completed default-mode ripr gate evaluate warning tells operators that findings never block and that exception-policy violations still can.

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:

  • Operator-facing stderr warning and matching policy/spec wording only. JSON/Markdown decision contracts are unchanged.

Policy Impact

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

Ledger or exception notes:

  • n/a

Proof

cargo test -p ripr --lib -- cli::commands::gate::tests::default_visible_only_warning
# 2 passed (wording + placement selector)

cargo test -p ripr --test gate_visible_only_warning
# 3 passed (missing-input / config_error stay quiet; completed run emits qualified warning)

cargo xtask precommit
# pass on 0d3efd77d853547340fd6bb255cda8dab8ce1b4a; clippy -p ripr --all-targets and -p xtask --all-targets

Result, failures, or skipped proof:

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.md was 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

  • Spec: RIPR-SPEC-0014
  • Tests: default_visible_only_warning_says_findings_never_block_but_exception_policy_still_can; gate_evaluate_completed_visible_only_run_still_emits_default_mode_warning
  • Code: crates/ripr/src/cli/commands/gate.rs::DEFAULT_VISIBLE_ONLY_WARNING
  • Golden outputs: n/a
  • Metrics: n/a
  • ADR/learning: n/a

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: n/a
  • Branch protection impact: n/a
  • Failure mode caught: n/a
  • Cheaper signal considered: n/a
  • Required lanes affected: n/a
  • Advisory lanes affected: n/a
  • On-demand/release lanes affected: n/a
  • Labels that alter behavior: n/a
  • Artifact families affected: n/a
  • Rollback path: n/a

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

  • cargo fmt --check (via cargo xtask precommit)
  • focused cargo test -p ripr for the warning unit and integration tests
  • cargo xtask precommit
  • Hosted required checks remain the merge authority.
Open in Web Open in Cursor 

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>
@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: 42970d0f-b99d-4650-a8e5-2e877379d21b

📥 Commits

Reviewing files that changed from the base of the PR and between 0d3efd7 and de52209.


📒 Files selected for processing (1)
  • changelog.d/7446-visible-only-warning-exception-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
    • Clarified the non-interactive gate warning shown after evaluation when no mode is specified: findings in visible-only mode do not block, but exception-policy violations can still block.
    • The warning remains suppressed for missing-input errors, configuration errors, and runs that explicitly specify visible-only.
  • Documentation
    • Updated the calibrated gate policy documentation to explain when the warning appears and what can still block evaluation.

Walkthrough

The default visible-only warning now says that findings do not block, but exception-policy violations still can. Tests and documentation reflect this distinction.

Changes

Visible-only warning

Layer / File(s) Summary
Qualify warning and verify wording
crates/ripr/src/cli/commands/gate.rs, crates/ripr/tests/gate_visible_only_warning.rs, docs/CALIBRATED_GATE_POLICY.md, docs/specs/RIPR-SPEC-0014-calibrated-gate-policy.md, .ripr/traceability.toml, changelog.d/7446-visible-only-warning-exception-policy.md
The CLI warning and documentation distinguish findings from exception-policy violations. Tests check that the warning includes this qualification and excludes an unqualified claim that it never blocks. The traceability entry lists the added test, and the changelog records the warning clarification.

Priority: ⬇️ Low

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

Change: Bug fix · Severity of issue fixed: Low

Merge Risk: ⚪ Minimal · up to de522

The warning clarification is reflected in the tests and policy documentation, and the changelog follows the required format. No actionable merge risk remains.

Architecture Summary

Architecture risk: 🔵 Low · up to de522

The change affects 3 systems.

Changed systems: crates, docs, changelog.d

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 — docs (service) was modified; 2 changed files map to changed impact.
  • observed — changelog.d (service) was modified; 1 changed file maps to changed impact.

Before / after behavior

  • observed — Modified behavior in crates/ripr/src/cli/commands/gate.rs: The warning text now says visible-only does not block on findings but exception-policy violations can still block; the previous text said it never blocks without qualification.
  • observed — Modified behavior in crates/ripr/src/cli/commands/gate.rs: Added a test asserting that the warning qualifies its non-blocking statement to findings, discloses exception-policy blocking, and omits the unqualified “never blocks” wording.
  • observed — Modified behavior in crates/ripr/tests/gate_visible_only_warning.rs: The completed-run test adds assertions for the warning’s findings and exception-policy qualifications, and rejects wording that unconditionally says the mode never blocks.
  • observed — Modified behavior in docs/CALIBRATED_GATE_POLICY.md: The warning now distinguishes findings from exception-policy violations: findings do not block after a completed evaluation, but exception-policy violations still can.

Pre-merge checks | Passed 4 | Failed 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage Warning Docstring coverage is 66.67% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 6 functions across 2 files. (1 skipped: 1… Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Linked Issues check Passed Active issue [#7446] requires the default visible-only warning to distinguish findings from exception-policy violations. DEFAULT_VISIBLE_ONLY_WARNING now says findings do not block and exception-p…
Out of Scope Changes check Passed The changed production warning, focused unit and integration tests, specification and policy wording, traceability entry, and changelog all support [#7446]. The reviewed source keeps warning placement…
Title check Passed The title clearly and concisely describes the main change: qualifying the visible-only warning for exception-policy blocking.
Description check Passed The description is complete and aligned with the template. It documents scope, acceptance criteria, tests, proof, traceability, non-goals, rollback, and CI impact.

Full details: Docstring Coverage

Explanation

Docstring coverage is 66.67% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 6 functions across 2 files. (1 skipped: 1 unsupported.)


  • Fix all pre-merge checks with AI
✨ 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 reads the warning’s line,
Findings won’t block; the words are fine.
Exception rules may still say “stop,”
So no surprise when checks don’t pass.
The tests now guard that wording clear,
And docs repeat the message here.

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

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.

@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
Comment thread crates/ripr/src/cli/commands/gate.rs Resolved
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 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.

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.

@EffortlessSteven
EffortlessSteven marked this pull request as draft October 12, 2026 14:02
@EffortlessSteven
EffortlessSteven marked this pull request as ready for review October 12, 2026 14:02

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

@EffortlessSteven

Copy link
Copy Markdown
Member Author

Verification check from the github-actions review: confirmed.

crates/ripr/tests/gate_visible_only_warning.rs::gate_evaluate_completed_visible_only_run_still_emits_default_mode_warning runs the built ripr binary and asserts rendered stderr contains never blocks on findings and exception-policy violations still can, and does not contain and never blocks. Restoring the old constant fails that test plus default_visible_only_warning_says_findings_never_block_but_exception_policy_still_can.

Local run on this candidate: 3 passed in gate_visible_only_warning, 2 passed in the unit wording/selector tests. Waiting on hosted Ripr Rust Small on GitHub Hosted / Rust gates for merge.

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants