Skip to content

planning:plan mandates two nested reviews with no brevity instruction, no effort knob, and no cost disclosure #4256

Closed

Description

@kyle-sexton

Packet: .../evidence/c7ff503b-19e2-40d2-b99e-38c747f7fc0f/planning-plan/20260919T205610Z/audit-notes.md, F4 (IMPORTANT), with evidence-2.md section C applied. Supersedes perf/issues/01-planning-plan-nested-spawns.md.

SKILL.md:197 (Step 4.5 item 7) makes a plan's proposed implementation agents disclose cost: "Surface the cost. Parallel agents multiply token usage; state 'N agents parallel vs sequential' so the user picks consciously." The skill's own two mandatory spawns carry no such line. Step 3 is non-negotiable (templates/checklist.md: "Step 3 NEVER skipped") at SKILL.md:146-153; SKILL.md:170-183 adds a second serial spawn at MEDIUM or higher blast radius. Neither brief carries a cost line, a brevity instruction, or a model or effort hint; SKILL.md:153 only shortens the brief for trivial single-file plans.

Measured (tier E1, session transcripts): the planner ran 31.6 min (1,895 s), 88 tool uses, 277k tokens, and blocked the orchestrator for a single 1,864 s gap, 21% of its session. Its split was 63% model latency and 31% generation against 6% tool execution, so the cost is turn count and reasoning volume. Both nested reviews ran serially at session effort.

Revised remediation order, from evidence-2.md C, correcting the audit's claim that the spawn prompt is the only lever:

  1. One brevity line in context/plan-reviewer.md's prompt template and the Step 4 dispatch instruction: keep reasoning brief, return the findings table, not a narrative. Zero new files, partial effect.
  2. Ship agents/plan-reviewer.md with bounded effort (and optionally maxTurns) frontmatter and have Step 3 dispatch it instead of the generic read-only sub-agent at SKILL.md:149. The real knob: per https://code.claude.com/docs/en/sub-agents.md (fetched 2026-09-19, line 307) effort in an agent definition overrides session effort, and there is no per-invocation effort parameter, so a generic agent inherits session effort with no way to lower it.
  3. Extend Step 4.5's cost-disclosure duty to Steps 3 and 4: before spawning, tell the user a fresh-context review runs now and roughly what it costs.
  4. Dispatch Step 3 and Step 4 against the same draft in one message at MEDIUM or higher, since Step 3b's criteria are read off the plan draft, not off Step 3's findings. Audit-labelled judgment, untested.

Verification: nested subagent spawns below the orchestrator, 4 in-window against a target of 0 below phase workers (perf/snapshot-baseline.md section 2, E1; 2 of the 4 are the planner's). That counter survives host drift; the wall-clock minutes do not.

🤖 Generated with Claude Code

https://claude.ai/code/session_01F7GFS5autRMSaea6kSoXzx

Activity

  1. added
    agent-ready
    on Sep 19, 2026
  2. kyle-sexton commented on Sep 29, 2026

    @kyle-sexton
    MemberAuthor

    From the 2026-09-29 audit of the Cursor run. Reopened until draft PR #5330 merges.

    Finding: item 1 of the remediation was only half delivered by #4821. The Step 4 devils-advocate dispatch got no brevity line. The verification record, README row and dated basis were stranded in the closed #4849.

    PR #5330 delivers:

    • the Step 4 brevity line;
    • a dated four-part record for the agent-definition effort override (re-fetched at task time);
    • the README plan row;
    • the Step 3 cost line as a notice;
    • one home for the reviewer brief.

    model: opus is unchanged (the owner closed #4849 over the sonnet flip). The PR uses Refs, not Closes, because not every remediation item's volatile-behavior record was re-verified on the branch. It becomes Closes only if that check completes.

  3. kyle-sexton commented on Oct 1, 2026

    @kyle-sexton
    MemberAuthor

    Owner decision (2026-10-01): approved the recommendation ("go with recommended", the owner's reply to the batch decision page that listed this question and its recommendation).

    Question: all four remediation items are merged, and only the paid nested-spawn counter measurement was never run. Close, run it first, or close and file a follow-up?

    Chosen option A: close as completed. Remediation items 1-4 landed through #5330 and #5384, the records were re-verified as of 2026-09-29, and the nested-spawn counter measurement is dropped (its baseline file perf/snapshot-baseline.md is not on main).

    Next: closing this issue as completed. A new perf issue can reopen the measurement if needed.

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

    agent-ready

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions