Skip to content

fix: name a next step in remaining app-layer refusal messages - #11707

Merged
EffortlessSteven merged 5 commits into
mainfrom
fix/refusal-next-step-output
Oct 31, 2026
Merged

EffortlessSteven merged 5 commits into
mainfrom
fix/refusal-next-step-output

Conversation

@EffortlessSteven

@EffortlessSteven EffortlessSteven commented Oct 31, 2026 •

Copy link
Copy Markdown
Member

Requested by Steven · project thread

Governing issue or accepted claim: #11539
Acceptance delta (one sentence): The app-layer and CLI-layer error messages that named a failure without a next step now name one, and their baseline lines are removed.

Follow-up to #11539/#11590. Rewrites the app-layer and CLI-layer error messages that named no next step (agent brief, gap packet, receipts, status, workflow, annotations, check artifacts, PR evidence/summary, repair card, task-first, etc.) to name one, updates the affected test assertions, and removes the corresponding entries from policy/refusal-next-step.d/.

Rebased onto main after the guard merged; the guard's stale-baseline check passes, so every remaining fragment entry still offends. The output-layer entries (124 fragment files) are intentionally left for a follow-up PR.

Local proof: cargo test -p ripr --test refusal_next_step passes; the scoped lib/cli_smoke run showed only environmental failures (test temp dirs under a git ancestor) plus three stale assertions, which this PR fixes. Hosted CI is the full runner.


Generated by Claude Code

@gemini-code-assist

Copy link
Copy Markdown

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@coderabbitai

coderabbitai Bot commented Oct 31, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

  • Ask an admin to enable usage-based reviews

Open in CodeRabbit

Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing.

Next included review available in 39 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available. Your 150 included PR review attempts over the past 7 days set your current allowance at 1 review per hour.

Learn how review limits work.

Review configuration:

Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Essentials
  • Run ID: 072461d1-5487-4e8f-a153-070954c3fe97
Commits

Reviewing files that changed from the base of the PR and between 2287778 and 5914366.

Files selected for processing: 41
  • changelog.d/refusal-next-step-app-layer.md
  • crates/ripr/src/app/agent_brief/bounded.rs
  • crates/ripr/src/app/agent_gap_packet.rs
  • crates/ripr/src/app/agent_receipt.rs
  • crates/ripr/src/app/agent_review_summary/json.rs
  • crates/ripr/src/app/agent_status.rs
  • crates/ripr/src/app/agent_workflow.rs
  • crates/ripr/src/app/analysis_outcome_artifact.rs
  • crates/ripr/src/app/annotations.rs
  • crates/ripr/src/app/causal_projection.rs
  • crates/ripr/src/app/check_artifact.rs
  • crates/ripr/src/app/feedback.rs
  • crates/ripr/src/app/impacted_evidence.rs
  • crates/ripr/src/app/pr_evidence.rs
  • crates/ripr/src/app/pr_summary/mod.rs
  • crates/ripr/src/app/receipt.rs
  • crates/ripr/src/app/repair_card.rs
  • crates/ripr/src/app/ripr_plus.rs
  • crates/ripr/src/app/task_first.rs
  • crates/ripr/src/app/temp_diff.rs
  • crates/ripr/src/cli/commands/agent_gap_packet.rs
  • crates/ripr/tests/cli_smoke.rs
  • policy/refusal-next-step.d/crates__ripr__src__app__agent_brief__bounded.rs.txt
  • policy/refusal-next-step.d/crates__ripr__src__app__agent_gap_packet.rs.txt
  • policy/refusal-next-step.d/crates__ripr__src__app__agent_receipt.rs.txt
  • policy/refusal-next-step.d/crates__ripr__src__app__agent_review_summary__json.rs.txt
  • policy/refusal-next-step.d/crates__ripr__src__app__agent_status.rs.txt
  • policy/refusal-next-step.d/crates__ripr__src__app__agent_workflow.rs.txt
  • policy/refusal-next-step.d/crates__ripr__src__app__analysis_outcome_artifact.rs.txt
  • policy/refusal-next-step.d/crates__ripr__src__app__annotations.rs.txt
  • policy/refusal-next-step.d/crates__ripr__src__app__causal_projection.rs.txt
  • policy/refusal-next-step.d/crates__ripr__src__app__check_artifact.rs.txt
  • policy/refusal-next-step.d/crates__ripr__src__app__feedback.rs.txt
  • policy/refusal-next-step.d/crates__ripr__src__app__impacted_evidence.rs.txt
  • policy/refusal-next-step.d/crates__ripr__src__app__pr_evidence.rs.txt
  • policy/refusal-next-step.d/crates__ripr__src__app__pr_summary__mod.rs.txt
  • policy/refusal-next-step.d/crates__ripr__src__app__receipt.rs.txt
  • policy/refusal-next-step.d/crates__ripr__src__app__repair_card.rs.txt
  • policy/refusal-next-step.d/crates__ripr__src__app__ripr_plus.rs.txt
  • policy/refusal-next-step.d/crates__ripr__src__app__task_first.rs.txt
  • policy/refusal-next-step.d/crates__ripr__src__app__temp_diff.rs.txt
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

@EffortlessSteven
EffortlessSteven marked this pull request as ready for review October 31, 2026 14:42
@gemini-code-assist

Copy link
Copy Markdown

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SvmPmp1dk37XMDiDt4z11j

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

Reporter summary

The displayed diff appears to make the intended narrow change—adding actionable guidance to refusal/error messages, updating representative assertions, and removing matching stale policy baselines—and manual inspection found no concrete code defect or unrelated baseline deletion. However, verification is incomplete: the late cargo-test sensor failed with exit 101 while the PR claims the scoped refusal-next-step test passes, and the ripr sensor also failed with exit 2 without diagnostics in the available context. Most lanes failed preflight, so memory/lifetime, active-view, worker-handoff, sibling-path, and security concerns remain unexamined; the strongest unresolved objection is that baseline removal could mask a scanner mismatch or the cargo-test failure could reflect an environmental or diff-related regression.

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

Verification questions

  • Confirm deleting the app-layer policy baselines is consistent with the changed messages, but no successful policy receipt proves that no matching fragment remains.
  • Confirm the changed agent-gap error is path-dependent, so exact-message tests may be brittle across platforms.
  • Confirm a full consumer-string audit remains necessary because error messages are externally observable CLI behavior.
  • Confirm several changed error strings still lack a next step despite the PR claim.
  • Confirm most changed next-step messages have no corresponding changed assertion, so the patch does not itself show that each guidance string is emitted or actionable.
  • Confirm the sole visible assertion updates cover changed error text and do not exercise or alter active-view invariants.
  • Confirm the changed error strings preserve the original failure context and append an actionable next step, but only a few assertions were updated.

Evidence gaps

  • The required cargo-test receipt is still absent while the prior summary records an exit-101 failure; this PR's passing-test claim is not evidenced.
  • A successful cargo-test receipt is required to validate the claimed scoped test and determine whether the failed ripr sensor reflects a regression.
  • Executable verification is incomplete because cargo-test has no receipt and the ripr sensor failed with exit code 2.
  • Model proof intent was rejected by deterministic validation.
  • The advertised proof was not available in the supplied sensor packet.

Copy link
Copy Markdown
Member Author

Review of record, head 5914366 (main merged in).

Angles and findings:

  • Correctness: 41 files, rewriting app-layer and CLI-layer error messages (agent brief, gap packet, receipts, status, workflow, annotations, check artifacts, PR evidence/summary, repair card, task-first and others). The non-string edits I checked are mechanical .map_err(|err| format!(...)) wrappers that carry the same error and add the path or next step; no control-flow change found.
  • Tests: tests/cli_smoke.rs assertions that pinned old text are updated, and the body says three stale assertions were fixed. Fragment files for the touched modules are deleted so the refusal_next_step guard holds them fixed. The output-layer fragments are intentionally left to fix: name a next step in output-layer refusal messages #11716.
  • Contract: changelog fragment present; body has both required lines.
  • Limit of this review: I read the diff for logic changes and test pins but did not run the suite; the hosted Rust gates and test shards are the proof.

Threads: none open. Merge is gated on Ripr Rust Small Result success on this exact head.


Generated by Claude Code

Copy link
Copy Markdown
Member Author

Review of record, head 5914366f8f0a678797adb9bfb553b21bccb48968

Angles: (1) behavior preservation, (2) message truthfulness, (3) test and guard coverage, (4) process/security surface, (5) bot-review findings.

  1. Behavior. I compared the diff with string literals masked: every code change is a message wrapper (map_err closures and format! arguments reformatted, plus gap_ledger.display() added as a format argument in agent_gap_packet). No condition, return type, error kind or control flow changed.
  2. Truthfulness. I sampled about 20 remedies. Artifact errors say to regenerate with the command that writes the artifact, path errors say to check the path, and invariant failures say to report a ripr bug. The cargo xtask ripr-pr pointer applies to a repo-local artifact, so it is correct there.
  3. Coverage. Hosted CI on this exact head is green: Rust gates, all four test shards, the feature lane and Result. The refusal-next-step guard passes with no stale baseline lines and no new offenders, and the pinned exact-text tests (impacted_evidence, agent_gap_packet, cli_smoke) are updated.
  4. Process/security. No new Command::new, dependencies or network use.
  5. Bot findings. The github-actions reviews on this PR list missing sensor receipts and ask for broader assertions. They name no concrete defect, and the hosted run now supplies the receipts. CodeRabbit and Gemini were rate-limited, so they gave no review; I do not count that as clean.

No blocking findings. Merging with expected-head squash.


Generated by Claude Code

@EffortlessSteven
EffortlessSteven merged commit 6e7d3c1 into main Oct 31, 2026
60 checks passed
@EffortlessSteven
EffortlessSteven deleted the fix/refusal-next-step-output branch October 31, 2026 20:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants