Use when the user says "spec-tdd-manager", or wants ONE feature walked end-to-end through the family's whole running order — planning in one invocation, the implementation handed to a fresh session at the go-ahead gate (session split, S5; a going-dark pre-approval fires it in-session) — inventory-resume → grill the requirement if fuzzy (the grill's spec gate is Gate 1) → size route (one unit vs multi-task) → top-layer breakdown in the Phase-0 shape (authoritative plan trio + self-contained ta...
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Spec Tdd Manager?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/benjaminchenlab-spec-tdd-manager)
---
name: spec-tdd-manager
description: Use when the user says "spec-tdd-manager", or wants ONE feature walked end-to-end through the family's whole running order — planning in one invocation, the implementation handed to a fresh session at the go-ahead gate (session split, S5; a going-dark pre-approval fires it in-session) — inventory-resume → grill the requirement if fuzzy (the grill's spec gate is Gate 1) → size route (one unit vs multi-task) → top-layer breakdown in the Phase-0 shape (authoritative plan trio + self-contained task docs, dag-ready columns) → independent plan audit via spec-2nd-opinion (escalates to spec-3rd-opinion, on the recorded I22 authorization, when any decision carries an IRREVERSIBLE blast-radius tag) → ONE merged go-ahead gate (final plan + audit verdict + implementation route) → delegated implementation (one unit: spec-tdd-supervisor; real multi-task phases: spec-tdd-task-dag eco — parallel-first, serial a mode inside it; small phases of ≤3 small independent tasks: spec-tdd's in-session multi-unit run). A sequence-and-route-only pipeline front door: it owns the two gates and the stage handoffs, nothing else — every mechanism lives in the invoked skill. NOT for routing one settled requirement to a tier (spec-tdd-escalate), NOT for plain multi-unit bug batches (spec-tdd's multi-unit run), NOT for standalone plan audits (spec-2nd/3rd-opinion), NOT for resuming an in-flight implementation phase (invoke the driver skill directly), NOT for adversarial-grade features (standalone tier run). Triggers on the full pipeline in one go, grill to implementation all in one hand, end-to-end feature management, one command from requirement to landing, process manager, manage it to the end for me.
---
# spec-tdd-manager
**REQUIRED BACKGROUND:** Understand the `spec-tdd` family first — the front-ends (`grill-spec-tdd`, `adversarial-grill-spec-tdd`, `spec-tdd-escalate`, `spec-2nd-opinion`, `spec-3rd-opinion`), the tiers (`spec-tdd-lite` / `spec-tdd` / `spec-tdd-coverage` / `spec-tdd-adversarial`), the outer drivers (`spec-tdd-task-loop` / `spec-tdd-task-dag` / `spec-tdd-supervisor`), and [PROTOCOL.md](../PROTOCOL.md) (I1–I22). This skill adds no new invariant and relaxes none (one recorded deviation, v1.31.0: the discussed-entry fast lane merges the two gates' STOPS into Gate 2's single presentation — an approval is merged, never skipped; the entry shape is the consent): it is a pure sequencer layered on the **very outside** of the whole family — stage relays, auto routing, two gates. All machinery lives in the invoked skills; this skill personally running any machinery (writing acceptance tests, deep review, implementation) = an out-of-authority deformation.
## Overview
One feature's full-pipeline manager: from requirement intake to implementation landing, one running order to the end —
**S0 inventory** (the resume starting point) → **S1 grill** (when needed; Gate 1 = the grill's spec gate — on the discussed-entry fast lane Gate 1's stop rides Gate 2, see S1) → **S2 size route** (one unit or many tasks) → **S3 breakdown** (multi-task only; top-authored) → **S4 independent audit** (2nd/3rd-opinion) → **Gate 2: the merged go-ahead gate** (the only ask it owns) → **S5 implementation hand-off** (supervisor / task-dag eco / small-phase multi-unit — the session-split point, see S5).
Four design pillars:
1. **Sequence-and-route-only** (a generalization of escalate's route-only principle). What this skill owns is "who is the next station" and "the two gates" — no machinery.
2. **Break down first, then audit.** On the multi-task path the plan body (the trio + task docs) comes first, and the audit reviews **the finished artifact implementation actually consumes**; the trio then enters dag (whose base task-loop's Phase 0 is skipped by its own entry condition — trio present → skip) — removing the second plan review — **one TOP audit in place of two** (2nd-opinion + Phase 0 step 3); this is this skill's main economics for multi-task phases. Extending the audit brief with the decomposition dimensions is a legal "at minimum" expansion of 2nd-opinion's checklist.
3. **Two gates, no more, no less** (the discussed-entry lane may merge their two STOPS into Gate 2's single presentation — an approval is merged, never skipped; see S1). Gate 1 is inherited from grill (the spec gate — direction approval, a family invariant); Gate 2 is this skill's only owned ask (final plan + audit verdict + implementation route + go-ahead, one approval). The breakdown gets no separate gate — the task table rides Gate 2's presentation.
4. **Zero new deviations except the recorded fast lane (wording per the audit).** The breakdown is top-authored (I19(a)'s letter), the audit brief is assembled in-session (2nd-opinion's letter), and every invoked skill runs verbatim — untouched by THIS skill's mechanics (the family-wide tier map of v1.31.0 is a PROTOCOL-level definition change reaching every tier-check sentence, this file's included — not a manager deviation). The implementation stage **always riding eco economics** is a reuse of the existing opt-in (v1.26.0's invocation token), not a new deviation: it holds the moment the user invokes this skill (supervisor is natively this shape; dag carries the `eco` token), and the phase report follows the target skill's existing disclosure duties. **The `longrun` flag carries two additional recorded opt-ins** (S3 drafting, S4 audit-running delegated — see that section); without the flag this pillar stands as-is.
**Stage boundaries = session boundaries.** Every stage's output is an on-disk document (spec doc, trio, audit write-back): between any two stages you can `/clear`, switch sessions, and re-invoke this skill — S0 resumes from the documents on disk, nothing redone (the spirit of I17: existing only in the conversation = does not exist).
**Ask ledger (the honest list).** Gate 1 (grill's; on the discussed-entry lane its stop rides Gate 2), Gate 2 (owned), the target skill's own asks (dag's commit authorization + time-band mode — pre-ruled at a going-dark gate and carried on the hand-off when S5 fires unattended, per the going-dark pre-approval (`references/going-dark-window.md`)), the S2 quickfix exit suggestion (only on a predicate hit — one line, the user decides quickfix vs continue). The I21 tier check is not an ask — it announces a non-top session in one line and never stops (v1.41.0). Everything else is automatic — every automatic decision gets a one-line announcement + a one-line rationale, never an ask (the `longrun` flag adds no ask; dispatch ≠ ask).
## When to Use
- One feature you want walked from requirement to landing in one pipeline — the planning stages in this session, the implementation run dispatched from a fresh session at Gate 2 (the session split, S5); you appear only at the two gates.
- Entry material unrestricted: a fuzzy requirement in the conversation, a settled spec already on file, or anything between.
**When NOT to use — route elsewhere:**
- You only want to route one settled requirement to a tier, no plan audit → `spec-tdd-escalate`.
- A pure bug list / multi-unit batch (many independent small fixes) → `spec-tdd`'s **multi-unit run** (user ruling 2026-09-22: manager's value is a feature's plan audit; a batch needs no per-task commit / board / watchdog / per-card final audit).
- A live-testing small-fix stream (the user live-testing the product, streaming wiring/cosmetic/config fixes below lite's test-first cycle) → `spec-tdd-quickfix` — below every tier this pipeline carries; S2 surfaces the suggestion if one slips in.
- You only want an existing plan audited, not implemented → `spec-2nd-opinion` / `spec-3rd-opinion` directly.
- The implementation phase is already in flight (board / RUN-STATE has in-flight) → invoke that driver directly for the resume (S0 would only point the way, not rerun the preamble).
- The whole feature is adversarial-grade → grill still runs, but implementation **exits the pipeline** to a standalone tier run (grill Phase 3's routing and confirmation machinery stays as-is) — hours-level attack depth is not carried by the eco economics or this pipeline.
- Exploratory / throwaway code → no skill needed.
## Pre-flight — orchestrator tier disclosure (I21)
Before any work, check the model THIS session runs as. This skill's S3 breakdown, S4 brief assembly and arbitration, and S2/S5 routing judgments all execute in the orchestrator's own context (**with the `longrun` flag, S3 drafting and S4 audit-running judgment move into TOP-pinned dispatches — the flag's invocation = recorded consent; the judgment the session keeps: the grill conversation, Gates 1/2, routing, user-finding relays**); I19 pins every dispatch's tier, but nothing can upgrade the session itself. **The check never asks and never stops** (maintainer ruling 2026-11-25): **top tier — or any tier above it — in use, or no higher tier exists → silent, move on.** (Tier map, maintainer ruling 2026-10-13: TOP = the top workhorse tier — opus-class; the flagship-experimental tier above it, fable-class, is never required for a pin.) A non-top session → ONE announcement line — "non-top session — proceeding at this tier; disclosed in the final report" — then continue; the run never sits waiting on a tier answer (upgrading is the human's own `/model` decision).
## S0 — entry inventory (the resume starting point)
A pure document inventory; announce the conclusion in one line:
- **FINAL SPEC doc present** → take S1's sniff route (clean → announce grill skipped, enter S2), plus run the irreversible-shape scan (end of S1). A fast-lane stamp on file holds: Gate 1 never re-fires; the direction approval rides Gate 2.
- **Trio present** → already audited and written back (amendment attribution, struck-through on file) → Gate 2 — **a Gate 2 stamp on file (attended approval, or the going-dark pre-approval record) → Gate 2 is not re-presented; S5 has fired or fires now**; not audited → S4.
- **Any driver's board / RUN-STATE in flight** → point the way: invoke that driver to resume; this skill reruns no preamble stages.
- **None of these** → S1.
Branch priority (per the audit's revision): **trio present > spec doc present** — when both exist (the norm after S3) take the trio branch; no grill rerun, no re-breakdown. Documents contradicting each other / multiple same-day specs with no way to decide → ask once (rare). A grill interrupted and re-entered = the conversation never existed; restart from S1 (I17).
## S1 — Grill (when needed; Gate 1 lives here)
- With the `longrun` flag → grounding is delegated first (see `references/longrun.md`); the conversation, the questions, the recommendations, Gate 1 unchanged.
- Entry is a **conversational requirement** (no doc) → grill needed: the critical predicate (a silent wrong result MOVES money / CHANGES authorization / IRREVERSIBLY corrupts data) hits → ONE authorization ask (I22 — adversarial-grill's auditor dispatches are adversarial spend): `adversarial-grill-spec-tdd`, or decline → the plain grill + the adversarial-debt line on the spec doc; the user naming either front-end themselves = the authorization. Otherwise `grill-spec-tdd`. Its Phase 1's spec gate IS **Gate 1**. **Grill runs Phase 1 only (per the audit's revision)** — its Phase 2 (writing the acceptance test) and Phase 3 (invoking a tier) are superseded by this pipeline's S2–S5: the test is written by the downstream machinery, the routing is this skill's S5 table; the sole exception is the Phase 3 routing reuse when an all-adversarial feature exits (see When-NOT).
- **The discussed-entry fast lane (v1.31.0).** On a conversational entry whose discussion already settled every material dimension — the scan anchored to I11's materiality canon (observable behavior, state transitions, failure semantics, data integrity, security/authorization, compatibility, explicit NFRs) — the lane runs: **formalize the spec doc from the discussion FIRST**, then the materiality scan reads the doc plus the conversation (I17's spirit — disk state, not chat memory). Grounding still runs. A dimension the conversation left open → the lane's residual ONE ask (recommendations attached — the ask shape is new to this path; the settled-doc sniff always had it); answered → settled, the lane continues. **An IRREVERSIBLE-tagged decision not explicitly settled in the conversation gets its named confirmation in that same ask; an unanswered one still parks, and a bulk "all defaults" reply does not cover it** (grill's I12 letter, restated for this ask shape). Converged with nothing open → **no standalone Gate 1 stop**: the spec doc gains the lane stamp `fast lane declared (YYYY-MM-DD): direction approval rides Gate 2`, and the direction approval rides Gate 2's presentation. The Gate 1 audit-preview line (below) moves to the lane's one-line entry announcement — the 3rd's double-TOP cost stays visible and vetoable before the spend, and under I22 the preview is a CONSENT: a 3rd fires only when one of its carriers (the Gate-1 bundle, the lane's residual ask, an IRREVERSIBLE named confirmation) recorded the authorization — otherwise S4 runs the 2nd and books the 3rd on the adversarial-debt line. Known lane cost: session death between discussion and the stamp → the conversation never existed → full re-grill (I17 as-is).
- Entry brings a **doc claiming to be settled** (a document in the user's hands, or a spec doc S0 determined present) → fuzziness sniff (escalate I20's shape): clean → announce grill skipped; gaps → ONE ask (grill to fill them, or settled and continue) — settled holds and you continue (I12), the gap flags riding along to the downstream. A FINAL SPEC landed by the grill gate is decided by construction — the sniff passes it silently; no bypass is created.
- **One added line in the Gate 1 bundle (the audit preview; made conditional by the audit's revision).** Append to grill's gate presentation: "Audit: 2nd / 3rd (reason: decision D_k carries an IRREVERSIBLE tag)" — **present only when the pipeline continues** (an all-adversarial feature already exited via grill Phase 3; don't preview an audit that won't be spent); the 3rd's double-TOP cost is visible and vetoable **before the spend** — and the gate's approval of the preview line is the recorded I22 authorization (the 3rd's second auditor runs an adversarial brief). On settled entry (no Gate 1), this skill scans the spec doc's **irreversible shapes** itself (data migration / DDL, external contracts, security posture, money-movement semantics), the scan branching two ways: **irreversible but not all-adversarial** → ONE authorization ask (I22): 3rd-opinion (double-TOP, adversarial brief aboard) or 2nd — a decline runs the 2nd + the adversarial-debt line on the spec doc; **all-adversarial shape** → the exit carries the I22 authorization ask (escalate's convention) for the standalone tier run (**v1.43.0 in-principle ban: park-as-to-do is the recommended option — proceeding requires the user's own very-good-reason statement and time/token headroom**); a decline runs the eco pipeline + the debt line, assessment and downgrade disclosed at Gate 2. The user's call always stands.
## S2 — size route
- **Quickfix predicate hit (a live-testing small-fix stream)** — the user is live-testing the product AND the request sits below lite's test-first cycle (a wiring/cosmetic/config swap, zero business rules, zero boundary policy — copying an existing precedent verbatim qualifies) AND outside quickfix's exclusions (money/auth/data-loss logic; anything needing an acceptance test) → ONE-LINE SUGGESTION: exit the pipeline to `spec-tdd-quickfix` (the family's floor — the user's live testing is the acceptance net; a plan trio + audit over a wiring fix is machinery overkill). The user's call stands: quickfix → exit here; continue → the pipeline proceeds unchanged. Runs at S2 on purpose — quickfix presupposes a settled request, so the grill/sniff has already run; a fuzzy small fix is not quickfix material.
- **Multi-task**: feature slices, more than one self-contained unit expected → S3. **A pure bug list (multi-unit batch) is not this skill** — route it straight out to `spec-tdd`'s multi-unit run (user ruling 2026-09-22: manager's value is a feature's plan audit; a batch takes the family's existing lighter shape).
- **One unit**: a single self-contained unit → skip S3 (the plan under audit = the spec doc itself; S4 still runs).
- **Adversarial-grade** → S2 does not re-judge (per the audit's revision): grilled entries already exited at Gate 1 via grill Phase 3; settled entries exited by the S1 scan. **Late-discovered** adversarial (S3's critical-surface sniff pulls them all, or the audit reveals one) → take the exit row of the S5 table.
- **The route's objective function (v1.38.0, maintainer principle 2026-11-02): correct, and done in the shortest total wall-clock — the route judgment is an ECONOMIC calculation, never threshold-matching.** Wave machinery carries a fixed overhead stack (worktrees, wave-end gates, union runs, the eco per-card audit ×N) that dominates on small cards — dag on too-small tasks is SLOWER than one session doing them together; parallelism pays only when the wave is wide and the cards big enough that the wall-clock win exceeds the stack. Correctness is the constraint (tier/stakes machinery is never traded for speed); speed is the objective. When two routes price close, the lighter machinery wins. **The S2 announcement is the route's PROVISIONAL pricing** (per audit v1.38.0: the fine-grained inputs — actual card sizes, wave width — exist only after S3's table) — the weigh re-prices at Gate 2, where the presentation carries the actual task table.
One-line announcement + one-line rationale, no ask (the quickfix suggestion is S2's one exception — listed in the ask ledger; every other S2 decision stays an announcement).
## S3 — breakdown (multi-task only; top-authored — I19(a))
In the format of task-loop's **Phase 0 / Pre-flight 5–6**, authored by this session (planning never sinks; fact recon may go to a read-only Explore, as task-loop's letter allows; **with the `longrun` flag → drafting delegated, session does presentation-level review — superseding this line's "authored by this session", see `references/longrun.md`**):
- **The authoritative plan trio**: the requirement body, the decisions section (existing decisions settled as D1… numbering continued), the task-table status section (all pending).
- **One self-contained doc per task** (fields per task-loop Pre-flight 6: goal and non-goals, current-state anchors file:line + method names, design notes, the complete external contract given in full at once, the deliverable file list, cross-task calls, acceptance criteria, risks and rollback).
- The task table gains dag's two columns: **depends-on** and **expected files** — the multi-task route (dag) consumes them natively.
- **Critical-surface sniff** (Phase 0's machinery): adversarial-grade tasks marked pulled/external in the table, run standalone, commits still landing at task boundaries.
- File paths follow the project's convention (I17: project convention wins).
## S4 — independent audit
- With the `longrun` flag → the audit run is delegated (see `references/longrun.md`).
- Invoke **`spec-2nd-opinion`** (IRREVERSIBLE trigger → **`spec-3rd-opinion`**, on S1's recorded I22 authorization).
- **The brief's checklist gains the decomposition dimensions** (allowed by 2nd-opinion's "at minimum"): task coverage (every requirement has a task), missing tasks, dependency-order correctness, task-doc self-containment, granularity deformation (the merge bias included — small piles cut into many tiny cards), expected-file column disjointness, the single-writer check (a file two tasks both write), undeclared interface edges (a cross-task call named in a task doc's cross-task-calls field — or prose — without a matching depends-on entry).
- 2nd / 3rd-opinion's machinery **runs verbatim**: brief assembly (Step 1, the session's living work), the auditor dispatch, the merge, disagreement arbitration, the grill-coverage finding's user routing (I12), write-back (struck-through for the record), the ONE targeted re-audit bound.
- Single-unit route (S3 skipped): claims-vs-codebase, blueprint-vs-code drift, grill-coverage hunt all run — the plan = the spec doc.
- **The close stamp (the resume basis, per the audit's revision).** When agreement holds, the session records one line in the plan document (the trio or the spec doc): "per audit (spec-2nd-opinion, YYYY-MM-DD): agreed, no amendments" (with amendments, the existing write-back is already the on-disk trace). A clean agreement leaving no trace = byte-identical to "never audited" after `/clear` — an I17-shaped hole.
## Gate 2 — the merged go-ahead gate (the only ask it owns)
Presented at once:
1. **The final plan** — multi-task: the task table (id + plain-language name + one line each) + pulled/external marks; one unit: the unit scope in one line. Irreversible tags named.
2. **The audit verdict** — verdict, folded amendments (attributed "per audit: …", never silently absorbed), residual risks.
3. **The implementation route + one-line rationale + the estimated wall-clock** (the S5 table; cards × per-card tier estimate + the phase-end total-coverage pass + audit/build overhead — an interval while calibration is thin; expectation management, never the tier budget, which is a kill cap). The route line also carries the session plan: the implementation runs in a FRESH session (default) or continues in this one (explicit override); the go-ahead covers it.
4. **The go-ahead approval.**
- **On the discussed-entry lane** the presentation additionally carries the spec-direction approval (the merged stop covers it — the pass stamp notes so when the lane stamp is on file).
- **Under a granted going-dark pre-approval** (see `references/going-dark-window.md`) the verified three conditions stand in for this presentation: the session writes the pre-approval stamp and fires S5 — never re-presented.
- The user amends the plan → fold in + disclose; a substantive change (touching audited claims) → 2nd-opinion's ONE targeted re-audit bound applies.
- The route vetoed → recompute on the same table — the multi-task route is dag alone; quota pressure belongs to dag's own mode ask (all-serial / per-wave / auto time band), never a route change. A user who wants the bare serial driver invokes task-loop directly for the phase.
- **The pass stamp (per the audit's revision).** After approval, before the S5 hand-off, the plan document gains one line: "Gate 2 approved (YYYY-MM-DD): route = <choice>" — an approval living only in the conversation = re-asked after `/clear`.
- **Gate 2 not passed → no implementation skill may be invoked.**
## S5 — implementation hand-off
**The session split (v1.35.0, the attended default; field motive 2026-11-02: one session carrying planning AND a whole 8-task implementation ran 8.5 h on an ever-growing context — the orchestrator's cache re-reads alone crossed 10⁸ tokens for the day).** At Gate 2's pass stamp this skill does NOT invoke the driver in its own session: it ends with a **hand-off line** — the exact fresh-session invocation (`/spec-tdd-supervisor …` / `/spec-tdd-task-dag eco <phase>`), the blueprint/trio absolute path, and the resume pointer — and the implementation runs in a session opened for it (the documents are authoritative on disk; the drivers' resume machinery is built for exactly this). Continuing in-session is the user's explicit override, surfaced on Gate 2's route line — no new ask beyond Gate 2. **Exceptions**: a going-dark pre-approved fire invokes in-session (below — stranding an unattended run at a session end strands the phase); under the `longrun` flag the delegation is itself the context isolation — the split does not apply; **an attended Gate 2 approval followed by a declared absence in the same window** fires S5 in-session per the going-dark gate's rulings (disclosed on the stamp) — writing a hand-off line nobody will execute until morning is the same stranding the exception exists to prevent (per audit v1.37.0).
| Shape | Invocation |
|---|---|
| One unit, non-adversarial | `spec-tdd-supervisor` (requirement doc = spec doc; I17 already satisfied; its pre-flight runs as usual) |
| Small phase — the task table shows ≤3 tasks AND each card's estimate fits one standard-tier dispatch (small-to-medium, independent; no dependency structure worth wave machinery; no pulled-out stakes) | `spec-tdd`'s **multi-unit run** in the fresh implementation session (user ruling 2026-11-02, amending the parallel-first default for this slice): the session loops the per-unit phases — 2 dispatches per unit (encoding audit + implementer), no waves, no worktrees, no phase-end pass; the batch summary + ONE fresh-context TOP audit over the batch diff is the close. Dag's wave + closing stack doesn't amortize at this size. 4+ tasks, a dependency structure, or any pulled-out card → the dag row — by the economic test at these sizes, never the count alone (per audit v1.38.0: both this tail and the ≤3 row instantiate the same test) |
| Multi-task (the default for real phases) | `spec-tdd-task-dag eco <phase>` — parallel-first (user ruling 2026-10-25: manager picks supervisor or dag — the small-phase row above is the 2026-11-02 escape for the sliver where dag doesn't amortize, and the ROUTE behind both rows is S2's economic test, never count-matching — v1.38.0: dag on too-small tasks is SLOWER, the wave stack dominates; weigh supervisor vs multi-unit vs dag at THESE card sizes before defaulting here; quota pressure is dag's own mode ask's business — all-serial / per-wave / auto time band — never a route change; a chain-shaped plan self-skips the ask and runs serial; Windows worktree friction a known knob; dag's own right-sized-tail clause handles a phase that SHRINKS to ≤2 small cards mid-run). This skill never pre-answers the ask, except the going-dark pre-ruled shape riding the hand-off, per the going-dark pre-approval (`references/going-dark-window.md`) |
| Adversarial-grade (late-discovered: the S3 sniff pulled them all, or the audit revealed one) | out of the pipeline: standalone tier run, doc handover — on the user's recorded I22 authorization (the discovery point asks — **v1.43.0 in-principle ban: park-as-to-do is the recommended option; proceeding requires the user's own very-good-reason statement and time/token headroom**; a decline runs the pipeline + the debt line) |
- **eco always rides** (invocation-based consent; supervisor is natively this shape).
- **Invocation = hand-off.** On the attended default the hand-off is a LINE (the split above), not an invocation; in-session invocation remains the pre-approval path's and the explicit override's shape. The phase's resume, watchdog, commit authorization, mid-run redirection, closing procedure (total-coverage pass + closing batch review) are all the target skill's business. An unattended S5 fire carries the going-dark gate's pre-ruled rulings on the `<phase>` hand-off; the drivers' v1.31.0 entry clauses treat them as answered. `<phase>` carries the doc path + a one-line phase description (the handoff uses the doc path, I19(c)).
## Unattended window (going-dark)
The user announces leaving / sleeping / going offline at ANY pipeline point — a dispatch in flight OR a run declared at entry, with or without the `longrun` flag → read `{family root}/skills/GOING-DARK.md` and execute its gate NOW, in the manager dialect. **The dialect detail, the Gate 2 pre-approval shape (the sole unattended exception — audit closed clean + no user-owned findings pending + IRREVERSIBLEs named-confirmed inside the same ask; per-absence only, and a pre-approved fire invokes S5 in-session), and the pre-ruling of the S5 target's entry asks live in `references/going-dark-window.md` — read it the moment the gate fires.** If the protocol file is unreadable, still run the gate: batch-ask the items once and disclose. The gates themselves never run unattended — user-owned, they wait for the return; the pre-approval is the sole exception.
## longrun mode — the context-longevity flag
`/spec-tdd-manager longrun` — an optional flag; **runs without it are byte-identical to every section above and never read further here**. With the flag → **read `references/longrun.md` NOW and follow it in full**: S1 grounding becomes a read-only MID digest dispatch, S3 drafting and the S4 audit run become TOP-pinned dispatches (the findings↔amend↔re-audit bounce loop lives inside the runner; S2, Gate 2, S5, and the two gates' presentation and approval unchanged), the silent-death discipline, the unattended-window dialect, the non-delegable list, and the resume rules. The flag's invocation = recorded consent for the delegated judgment stages (S3 drafting, S4 arbitration); the motive is **context longevity, not token economy** (boundary duplication raises total spend and wall-clock — carrying the flag accepts that trade).
## Common Mistakes
| Mistake | Fix |
|---|---|
| This skill personally writing acceptance tests / deep-reviewing / implementing | Sequence-and-route-only — the machinery lives in the invoked skills; exceeding authority deforms the run |
| Auditing the high-level blueprint first, then letting Phase 0 re-break and re-audit it | Break down first, then audit: what's audited is the trio itself; Phase 0 skips by its entry condition — every multi-task phase saves one TOP audit |
| Invoking an implementation skill before Gate 2 passes | The go-ahead gate is the only implementation authorization point (the family-side landing of never-code-before-approval) |
| The 3rd upgrade disclosed only after the audit | The Gate 1 bundle previews it first (settled entry: a one-line announcement) — visible and vetoable before the spend |
| Entering Gate 2 with the audit not in agreement (a disagreement unresolved) | 2nd-opinion's gate is agreement, not a report; without agreement, arbitrate first or go up |
| Re-interrogating an on-disk spec (without running the sniff) | I20: clean → proceed; the user's settled call stands |
| After grill, following its Phase 2/3 (writing tests, invoking a tier directly) | Grill runs Phase 1 only (gate = Gate 1); Phases 2/3 are superseded by S2–S5 — the sole exception is the routing reuse on an adversarial exit (per the audit's revision) |
| A pure bug list routed into dag eco | Out it goes: `spec-tdd`'s multi-unit run (user ruling 2026-09-22); a batch needs no per-task commit / board / watchdog |
| A ≤3-small-task phase routed to dag eco | The small-phase row (S5): multi-unit run in-session — dag's wave + closing stack doesn't amortize at that size (user ruling 2026-11-02) |
| The route chosen by count-matching (count the tasks, take the matching row) | The route is S2's economic calculation (v1.38.0): wave-stack overhead vs the parallel win at THESE card sizes — dag on too-small tasks is SLOWER than one session doing them together; the ≤3 row instantiates the test, it is not the whole test |
| A quickfix-eligible stream put through S3 breakdown + S4 audit | S2's quickfix predicate exits first — the one-line suggestion, the user's call |
| Re-running preamble stages when on-disk artifacts already exist | S0: landed = exists; a resume doesn't redo |
| Adding a third gate yourself (one more confirmation after the breakdown) | Two gates is the design; the task table rides Gate 2's presentation |
| eco without the dag token | Invoking this skill = choosing eco economics; the token always rides; the phase report follows the target skill's disclosure duties |
| An adversarial-grade feature forced into the eco pipeline | Out of the pipeline, standalone — hours-level attack depth is out of scope |
| A 3rd-opinion upgrade or an adversarial-grill entry fired on an announcement | I22: both are adversarial spend — ONE ask at the entry scan (or the Gate-1 preview line, whose approval is the recorded consent); a decline runs the 2nd / the plain grill + the debt line, never a silent launch |
| Under longrun, the session bulk-reading the codebase itself (bypassing the digest) | The digest is the base; reuse, don't re-dispatch; a targeted read is the exception for decision-critical single files, not a bulk backdoor |
| A runner digesting user-owned findings inside itself | The I12 carve-out: such findings' verbatim text must return to the top for relaying; the runner never decides |
| A delegated dispatch dying silently and being read as "no findings / closed" | ONE fresh re-dispatch + disclosure; still dead → stall-report — dead ≠ no findings |
| Re-asking the bulk spec approval on a converged discussed entry (or re-firing Gate 1 past a lane stamp) | The lane's rule: converged + stamped → the direction approval rides Gate 2; the stamp is the on-disk state S0 reads |
| A granted going-dark pre-approval treated as unconditional, or carried to the next absence | Three conditions at audit close, any miss waits; per-absence only, never carries over |
| After Gate 2, invoking the driver in the manager's own session on the attended default | The session split: hand-off line + a fresh session; in-session continuation is the user's explicit override — one context carrying planning AND implementation is the field-proven burn shape (2026-11-02: 8.5 h, >10⁸ cache-read tokens) |
## Red Flags — STOP
- Writing an acceptance test, dispatching an implementer, deep-reading deliverables → STOP — not this skill's job.
- Entering S3's breakdown before Gate 1 passes → STOP — the grill gate is the breakdown's premise (the fast lane's exception: converged + lane stamped — the direction approval rides Gate 2).
- Invoking any implementation skill before Gate 2 passes — supervisor / task-loop / task-dag **or any tier** (grill Phase 3 invoking a tier directly is equally guilty, per the audit's revision) → STOP.
- No spec on disk and no sniff run, skipping grill → STOP.
- An irreversible tag on record but only a 2nd scheduled (no user veto on record) → STOP.
- Starting work with an unconverged audit disagreement → STOP.
- Firing S5 unattended on anything but a granted Gate 2 pre-approval with all three conditions verified → STOP — the going-dark exception is the only unattended crossing.
- Catching yourself inventing a stage or an ask outside the running order → STOP — the running order is a closed set: S0–S5 + two gates; everything else belongs to the invoked skills.
- Under the `longrun` flag, the session personally doing recon (reading whole swaths of code before S3) or reassembling the S4 brief's full text → STOP — the flag's purpose is being eaten by its own hands (the digest / claims annex exist exactly for this).