Skip to content

review-pr: add error-reporting form to the Pre-Verdict Audit (APP-5522) - #76

Draft
warp-agent-staging[bot] wants to merge 1 commit into
mainfrom
factory/app-5522-error-reporting-form-audit
Draft

review-pr: add error-reporting form to the Pre-Verdict Audit (APP-5522)#76
warp-agent-staging[bot] wants to merge 1 commit into
mainfrom
factory/app-5522-error-reporting-form-audit

Conversation

@warp-agent-staging

@warp-agent-staging warp-agent-staging Bot commented Aug 18, 2026

Copy link
Copy Markdown
Contributor

Summary

Closes the review-prompting gap from APP-5522: the core review-pr skill's Pre-Verdict Audit had a mandatory, mechanical checklist for Comments and Tests, but nothing for error-reporting form. That gap is why warp's PR #13483 (a 345-file, ~974-line log::error!report_error! migration) merged with zero form findings, even though the migration itself introduced .agents/skills/logging-and-error-reporting/SKILL.md, which forbids the exact form it used at several call sites (a typed error demoted into extra:).

Companion PR (repo-specific substance for warp): warpdotdev/warp#15296

Changes

  • Declare error-reporting-form as an overridable category in the "Repository-specific guidance" section, alongside commenting and testing, so a repo companion skill (e.g. warp's review-pr-local) is authorized to supply the repo-specific rules.
  • Add an Error reporting bullet to the Pre-Verdict Audit, mirroring the existing Comments/Tests mechanism: list every error-reporting call the diff touches, one by one with file:line, and check each against the repository's own error-reporting guidance. Repos with no such guidance (most consumers of this skill) skip the bullet — it adds no burden there.

What a reviewer would now do differently on PR #13483's diff

Today, review-pr's Pre-Verdict Audit forces a per-line enumeration only for comments and tests, so a reviewer can complete the mandatory audit on a mega-diff without ever individually inspecting a report_error! call — the existing warp-side guidance was a narrative bullet, easy to skim past on 345 changed files. With this change, the audit itself requires listing every report_error!/report_if_error! line the diff adds and checking it individually (paired with the warp-side companion PR, which supplies the exact forbidden forms). That mechanical, per-line requirement — not a better prose reminder — is what would have caught crates/warpui_core/src/runtime/mod.rs:813 and :709 before merge.

Verification

Docs-only change (a skill markdown file). No build/tests apply; verified the diff is scoped to .agents/skills/review-pr/SKILL.md and re-read the file end to end to confirm the new audit bullet and the updated "overridable categories" sentence stay consistent with the rest of the skill's contract (output schema, severity labels, safety/evidence rules, and the suggestion-block/diff-annotation contract are all unchanged).

Add a third mandatory audit category (alongside Comments and Tests)
that requires listing every error-reporting call the diff touches,
one by one with file:line, and checking each against the
repository's own error-reporting guidance. Declare error-reporting
form as an overridable category so companion skills (e.g. warp's
review-pr-local) can supply the repo-specific substance.

Per APP-5522: on warp's PR #13483, this category didn't exist, so
~974 new report_error! lines got zero form findings despite the
companion skill already naming the anti-pattern in prose.
@warp-agent-staging

Copy link
Copy Markdown
Contributor Author

This PR was generated with Warp.

Comment @warp-factory on this PR to send it follow-up work.

View run View conversation

acarl005 pushed a commit to warpdotdev/warp that referenced this pull request Aug 19, 2026
…15296)

## Description
Review-prompting fix for
[APP-5522](https://linear.app/warpdotdev/issue/APP-5522/fix-report-error-demotions-of-typed-errors-into-extra-and-related-form)
(the code-side `report_error!` form fixes are a separate PR).
`.agents/skills/review-pr-local/SKILL.md` already named the "typed error
demoted into `extra:`" anti-pattern (added in
[#13483](#13483) itself), but
only as one prose bullet inside a long list — so it was easy to
under-apply on that PR's 345-file, ~974-`report_error!`-line diff, which
is exactly what happened: the bot's review found 2 unrelated compile
bugs and zero form findings, including on the very lines
(`crates/warpui_core/src/runtime/mod.rs:813` and `:709`) that used the
forbidden form.

Companion PR (adds the matching mandatory-audit category to the core
skill): warpdotdev/common-skills#76

This is a review-prompting-only change (skill markdown). No Rust code is
touched; a separate PR fixes the flagged `report_error!` call sites
themselves.

- [ ] The linked issue is labeled `ready-to-spec` or
`ready-to-implement`.
- [x] N/A — no screenshots/video; this is a skill-markdown change with
no UI impact.

## Linked Issue

[APP-5522](https://linear.app/warpdotdev/issue/APP-5522/fix-report-error-demotions-of-typed-errors-into-extra-and-related-form)

## What a reviewer would now do differently on PR #13483's diff
Before: the reviewer read "review it against
`.agents/skills/logging-and-error-reporting/SKILL.md`" as one bullet
among a dozen others, with no requirement to look at every call site
individually — easy to satisfy with a spot-check on a mega-diff. After:
a dedicated `## Pre-Verdict Audit: error-reporting form` section
(mirroring the core skill's Comments/Tests audit, added in the companion
PR) makes it mandatory, before drafting the body or verdict, to list
every `report_error!`/`report_if_error!` call the diff adds or changes,
one by one with file:line, and check each against the four named
forbidden forms. That per-line enumeration — not a narrative pass — is
what would have surfaced the `extra: { "error" => %error }` demotion at
`runtime/mod.rs:813`/`:709` before merge.

## Testing
Docs-only change (`.agents/skills/review-pr-local/SKILL.md`). No Rust
code changed, so `cargo clippy` doesn't apply; `./script/format` was run
and made no additional changes.

- [x] I have manually tested my changes locally with `./script/run` —
N/A, no runtime behavior; this only changes a skill markdown file read
by the review agent.

### Screenshots / Videos
N/A — not a UI change.

## Agent Mode
- [x] Warp Agent Mode - This PR was created via Warp's AI Agent Mode


<!-- warp:pr-description-artifacts start -->
<!-- warp:pr-description-artifacts end -->

Co-authored-by: warp-agent-staging[bot] <240773466+warp-agent-staging[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

factory:wilson Routes this item to the wilson factory

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants