Skip to content

Auto-must-fix severity floor in review prompts #407

Description

@sv-tmueller

Part of batch #423

Part of #344 (package P3 of the Claude-of-Tanks adoption plan, docs/plans/344-claude-of-tanks-adoption.md on the PR #345 branch).

What to build

Review severity is pure model judgment with no floor. The survey's source repo used hard caps that override a critic's overall read. We already have rules that are law here and easy to check objectively, but none of them forces a severity.

Add a severity floor: any of these five conditions makes a finding must-fix, whatever the reviewer's overall read. Each one is already a rule in .claude/process-core.md, so this adds no new policy. It only makes existing policy binding on the severity field.

  1. A test deleted, skipped or weakened, without the PR body saying why.
  2. --no-verify, or any other bypassed git hook.
  3. A new dependency with no justification in the PR body.
  4. A CI job with no timeout-minutes, or a workflow with no concurrency group carrying cancel-in-progress: true.
  5. A change touching the full stack, shipped without e2e.

The list goes into every review prompt surface:

  • Both review workflows' embedded PROMPTS and their prompts JSON, kept in sync.
  • The Hermes copy.
  • Both reviewer.md files (.claude/agents/ and .claude/adapters/prompts/).

Floor sets severity, not truth (added by batch #423). The critic or consolidate prompt says it cannot downgrade a floor finding. The verify stage (added by #406) can still refute a floor finding on the facts, for example when the "deleted test" was never deleted. The verify prompt does not change.

Prompt text, not code: a static check would be stronger for conditions 2 and 4, and could be a separate future issue. This package delivers the severity floor with a prompt edit and no new code.

Acceptance criteria

  • The same five-condition list appears in every review prompt surface named above.
  • A new test asserts the list is present in each surface, so an edit to one copy cannot drift silently.
  • The critic or consolidate prompt says a floor finding cannot be downgraded.
  • npm test is green, including prompts-sync.test.mjs and role-contract-sync.test.mjs.
  • version in .claude/.claude-plugin/plugin.json is bumped.

Non-goals

  • Static checks or lints that detect these conditions.
  • Any new policy beyond what process-core.md already states.
  • Changing the severity enum.
  • Changing the verify prompt.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    size:SUnder 1 hour. One focused change.type:feat

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions