Skip to content

Controller skips spec/quality reviewer dispatch during subagent-driven-development #463

Closed

Description

@lechatlisse

Observed Behavior

During the implementation phase of subagent-driven-development, the controller skipped dispatching fresh spec reviewer and code quality reviewer subagents. Instead, it self-confirmed with output like:

Quick spec check — all 8 requirements are straightforward and implementer confirmed each. Let me verify the commit and move on.

The controller accepted the implementer's self-confirmation as sufficient and moved to the next task without dispatching either reviewer subagent.

Expected Behavior

Per the subagent-driven-development skill, the flow after each task should be:

  1. Implementer subagent implements, tests, commits, self-reviews
  2. Fresh spec reviewer subagent dispatched (using spec-reviewer-prompt.md)
  3. Fresh code quality reviewer subagent dispatched (using code-quality-reviewer-prompt.md)

The skill's Red Flags section explicitly prohibits this:

  • "Never skip reviews (spec compliance OR code quality)"
  • "Let implementer self-review replace actual review (both are needed)"

Root Cause

The controller rationalized skipping the reviewer dispatches because the requirements were "straightforward." The skill's rules are clear, but the model found a way to shortcut them — treating perceived simplicity as an exemption from the process.

Possible Mitigations

  • Stronger language: Add explicit statements like "'Simple' and 'straightforward' are not exemptions. Dispatch the spec reviewer for every task without exception."
  • Checklist gating: Require the controller to record reviewer subagent IDs before marking a task complete, making skipped reviews structurally visible
  • Structural enforcement: Require a specific dispatch block (tool call pattern) that's harder to rationalize away than a prose instruction

Environment

  • Claude Code with Superpowers plugin v4.3.0
  • Model: Claude (Opus-class)

Activity

  1. DuckForgeDev commented on Feb 13, 2026

    @DuckForgeDev

    In my case, the workflow for creating worktrees and TDD were both skipped. After triggering subagent-driven-development, all task development was done directly on my master branch without TDD and two-phase review

  2. added
    bug
    claude-code
    on Feb 21, 2026
  3. ara-incom commented on Feb 24, 2026

    @ara-incom

    Seeing "Skipping code quality review for Task 1 since it's a minimal protocol-only addition (two small Protocol classes + two tests, 50 lines total). Moving on."

    In subsequent tasks I see only spec reviewers being dispatched, code quality appears to be silently skipped.

    On plugin v4.3.1

  4. Koroqe commented on Mar 19, 2026

    @Koroqe

    This is the classic problem with prose-based enforcement — the model will always find a rationalization to skip steps when it "knows better." The only reliable fix I've found is making reviews structural, not instructional. If the review agent's output file doesn't exist, the implementation literally can't proceed to the next stage. No amount of "this is straightforward" can bypass a missing artifact. That's the approach I use here: https://github.com/Koroqe/claude-code-sdlc — quality gates are pipeline stages, not suggestions.

  5. added
    subagents
    on Mar 23, 2026
  6. Dethon commented on Mar 26, 2026

    @Dethon

    I have the same problem on Claude Code (superpowers 5.0.5).
    A simple workaround that works for me most of the time is adding a rule like this that triggers when reading a plan:

    ---
    paths:
      - "docs/superpowers/plans/**"
    ---
    
    # Subagent-Driven Development Rules
    
    ## Before Starting
    
    - ALWAYS create a git worktree before dispatching implementer subagents
    - Create all task tracking entries before the first dispatch
    
    ## Implementer Dispatch
    
    - NEVER dispatch an implementer without requiring RED step evidence in the prompt
    - Include in every implementer prompt: "Run tests BEFORE implementation and paste the failure output. Then implement and paste the passing output. If you skip either step, report BLOCKED."
    - Record the git SHA before dispatching each implementer
    
    ## After Each Task
    
    - NEVER move to the next task until both reviews pass
    - NEVER batch multiple tasks into a single review
    - NEVER skip code quality review
    - A task is NOT complete until its review artifact exists at `docs/superpowers/reviews/`
    
    ### Per-task checklist (complete in order):
    
    1. Implementer returns — verify report includes RED and GREEN test output
    2. Dispatch spec compliance reviewer — verify code matches task requirements
    3. If spec issues found: send implementer back, then re-review
    4. Record head SHA, dispatch code quality reviewer
    5. If quality issues found: send implementer back, then re-review
    6. Both reviews pass — write review artifact to `docs/superpowers/reviews/<plan-date>-<plan-name>/task-<N>-review.md`
    7. Mark task complete, move to next
    
    ### Review Artifact Format
    
    Each task review file MUST contain:
    
    ```markdown
    # Task N: <name>
    
    ## Spec Compliance
    - Reviewer: <spec-reviewer result — ✅ or ❌ with details>
    
    ## Code Quality
    - Reviewer: <code-quality result — Approved or Issues with details>
    - Base SHA: <sha before task>
    - Head SHA: <sha after task>
    
    ## Resolution
    - Issues found: <count>
    - Issues fixed: <count>
    - Final status: ✅ Approved
    ```
    
    If the review artifact does not exist, the task is NOT done — regardless of what the implementer reported.
    
    ## Parallelization
    
    - Independent tasks MAY be dispatched in parallel
    - Each parallel task still gets its own individual review cycle afterward
    - Do not start dependent tasks until all their dependencies have passed both reviews
    
    ## TDD Requirements
    
    Every implementer task that produces code MUST follow Red-Green-Refactor:
    
    1. **RED** — Write failing test first. Run it. Paste the failure output.
    2. **GREEN** — Write minimum implementation to pass. Run it. Paste the pass output.
    3. **Refactor** — Clean up while keeping tests green.
    
    - NEVER write implementation code without a failing test first
    - NEVER accept an implementer report that lacks both RED (failure) and GREEN (pass) test output
    - Tasks that are pure configuration (DI wiring, appsettings) or pure types (DTOs, interfaces) are exempt
    - All other tasks — including infrastructure classes, runners, factories — require tests BEFORE implementation
    
    ## Test Verification
    
    - After all implementer tasks complete, run the FULL test suite (unit, integration, AND E2E) before claiming completion
    - Do not dismiss test failures as "pre-existing" without verifying on the base branch
  7. bradfeld commented on Apr 15, 2026

    @bradfeld

    Adding another data point on this — same failure mode, v5.0.7, Opus 4.6 controller.

    Session: 10-task Puck editor refactor (AUTM-1524). All per-task reviews skipped. Controller marked tasks completed immediately after implementer reported DONE, then dispatched the next implementer. Zero spec reviewers, zero code quality reviewers across all 10 tasks.

    What review caught retroactively (3 CRITICAL, 5 IMPORTANT):

    Severity Issue Category
    CRITICAL Root props save guarded by if (title || description) — empty strings are falsy, so clearing a field never persisted Data loss
    CRITICAL Settings fetch error not destructured — silent null causes JSONB overwrite destroying all other settings keys Swallowed error
    CRITICAL No in-flight save guard — rapid edits produce concurrent Supabase writes racing on the same row Race condition
    IMPORTANT useEffect inside inline arrow in overrides object — Rules of Hooks violation React correctness
    IMPORTANT overrides useMemo depends on saveStatus — rebuilds on every keystroke, remounting iframe Performance
    IMPORTANT setSaveStatus("saving") fires immediately in handleChange before 3s debounce — misleading UX UX bug
    IMPORTANT beforeunload guard blocks navigation during debounce window, not just actual saves UX bug
    IMPORTANT dispatch({ type: "setData" }) is full state replacement, undocumented API misuse risk

    Every one of these was fixable in a follow-up commit. None would have shipped if per-task reviews ran.

    The structural fix I'd advocate for: @Dethon's approach of requiring review artifacts at docs/superpowers/reviews/ is the right direction. The core insight from the thread is right — prose instructions will always lose to rationalization under context pressure. The fix needs to be structural: task completion should be gated on an artifact that only the review process can produce.

    The simplest version: task stays in_progress until both reviewers have been dispatched and returned. Mark completed only after reviews pass. Before dispatching the next implementer, verify previous task status is completed. This makes skipped reviews mechanically detectable without requiring file-based artifacts.

    Environment: Claude Code 2.1.107, Opus 4.6 (claude-opus-4-6[1m]), superpowers 5.0.7

  8. added 2 commits that reference this issue on May 18, 2026
  9. robert-mstr commented on May 29, 2026

    @robert-mstr

    I think @Koroqe, @Dethon, and @bradfeld have already identified the right shape here: structural task/review state, not more prose. I do not want to duplicate that proposal.

    One possibly additive angle: Codex now has stable lifecycle hooks (UserPromptSubmit, PreToolUse, PermissionRequest, SubagentStop, Stop), so would maintainers be interested in optional hook templates that enforce these already-discussed artifacts/status gates across Claude and Codex?

    The specific value I can see is:

    • block implementation/edit tools until the required workflow phase is approved
    • block moving a task to completed unless both review artifacts/status entries exist
    • block ambiguous approvals like "go with recommendation" unless the current phase makes that unambiguous
    • use Stop/SubagentStop to prevent premature completion when review evidence is missing

    I would not frame this as a security boundary. It would be a guardrail against accidental/rationalized gate skips, built around the structural approach already proposed in this thread.

  10. arittr commented on Jun 2, 2026

    @arittr
    Collaborator

    Triage note: #995 included another report of this same skipped-review failure mode: all 8 SDD tasks completed with no separate review agent dispatched, with the controller trusting implementer self-reports/checklists instead.

    I'm treating #463 as the canonical issue for the reviewer-dispatch gate. #995 has been retitled and kept open for the distinct cross-file coordination problem it also reported.

  11. arittr commented on Jul 30, 2026

    @arittr
    Collaborator

    Closing — every report here predates the v6 SDD redesign, which rebuilt this surface: review packages are generated mechanically, the task review was consolidated and eval-tuned (#1717), and #1614 added receipts so the controller must show reviewer output rather than assert it. We haven't seen a post-v6 skip report; current dispatch-fidelity work continues in #1701. If you hit this on ≥6.0, please reopen with a transcript.

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

    bugclaude-codesubagents

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions