From 1e786321d2f701318cbc4337bc0a27f264e5936e Mon Sep 17 00:00:00 2001 From: Claude Date: Sun, 29 Nov 2026 19:28:12 +0000 Subject: [PATCH] Update the squad from Squad-Spec-Repository-Template v2026.11.16 Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_018g33AVK39jux6LqsiGt5eM --- .claude/agents/squad-dev.md | 5 +- .claude/agents/squad-lead.md | 10 ++- .claude/agents/squad-reviewer.md | 2 + .claude/agents/squad-tester.md | 10 ++- .claude/hooks/git-guard.py | 2 + .claude/skills/squad-issue/SKILL.md | 3 +- .squad/orchestration.md | 8 +- .squad/routing.md | 20 +++-- .squad/team.md | 10 ++- .squad/template.json | 4 +- .squad/tools/config-check.py | 9 +- .squad/tools/coverage-check.py | 17 ++-- .squad/tools/decision-check.py | 41 +++++++-- .squad/tools/figure-check.py | 8 +- .squad/tools/gate-stamp.py | 5 +- .squad/tools/plan-check.py | 131 +++++++++++++++++++++------- .squad/tools/scope-check.py | 16 +++- .squad/tools/session-usage.py | 96 ++++++++++++++++++-- .squad/tools/squad-next.py | 123 +++++++++++++++++++++++--- .squad/tools/squad_settings.py | 2 + docs/decisions/README.md | 5 ++ 21 files changed, 432 insertions(+), 95 deletions(-) diff --git a/.claude/agents/squad-dev.md b/.claude/agents/squad-dev.md index 3632a393..ed64050c 100644 --- a/.claude/agents/squad-dev.md +++ b/.claude/agents/squad-dev.md @@ -45,9 +45,8 @@ The orchestrator tells you which **mode** to run: Lead instead of into the code. 2. Stage every new file you created with `git add ` before you hand back, in every launch (skeleton, implementation, documentation or fix round): staging is yours, not the orchestrator's, since the *Coverage - gate* only counts files Git tracks; where the permission check denies `git add`, the report lists the new files - as untracked and the orchestrator stages them with the step's commit. A file the plan deletes is removed and - staged as *Git and GitHub* in `.squad/team.md` says. Run *Build*, *Test with coverage* and the *Coverage gate* + gate* only counts files Git tracks. A file the plan deletes is removed and staged, and a denied `git add` is + reported, as *Git and GitHub* in `.squad/team.md` says. Run *Build*, *Test with coverage* and the *Coverage gate* from `stack.md`, and, when the change touches an input the container image's build is sensitive to, the *Image build check* (*Criteria verified only in CI* in `.squad/routing.md`); report their results. Uncovered changed lines go to the Tester, or you make them testable (hard-to-test code is a design signal — seams, injected diff --git a/.claude/agents/squad-lead.md b/.claude/agents/squad-lead.md index c9d1033f..fdae3867 100644 --- a/.claude/agents/squad-lead.md +++ b/.claude/agents/squad-lead.md @@ -32,7 +32,9 @@ The orchestrator tells you which **mode** to run: or contradicts an accepted decision record is `RESULT: NO CHANGE` with the reason and a proposed issue comment. - `plan` — pick the tier on the change (`.squad/routing.md`, *Tiers*). For tiers `docs` and `patch` write **no** `plan.md`: your result holds what their rows of *Tiers* name. A change that needs a decision record is - `trivial` or higher. + `trivial` or higher. The steps a tier skips are the ones its row of *Tiers* names, whatever code changes: a + `trivial` plan states no tests-first step (the Tester writes its tests in mode `coverage`) unless a `tasks.md` group + puts the Tester first. Otherwise write `plan.md` from `specs/_template/plan.md` (features: `tasks.md` too, against the challenged `spec.md`). For a feature you also close the spec: answer each entry of its *Challenge notes* in a *Challenge* section of the spec (its template's comment) and fold the notes into it, @@ -79,7 +81,8 @@ The orchestrator tells you which **mode** to run: checked against the rules the *Analyzer gate* enforces on them (names, parameter count and names, nested types: `.squad/stack.md`, *Writing code*, and the analyzer configuration), so step 4 renames and splits nothing; logic two types need identically is planned as one shared helper from the start (the quality gate's duplication - condition on new code is reported by no local analyzer); + condition on new code is reported by no local analyzer), and a new block the plan puts into three or more files + (state handling, a guard, a setup) gets its shared home named in *Approach*, not one copy per file; - the **test files** and the existing test call sites a changed signature affects, with who adapts them (the template's *Test files*); a test kept unchanged has no input a new criterion handles differently, else it is adapted, with owner; @@ -179,7 +182,8 @@ Output format, always ending with exactly one of these lines: - `RESULT: DONE` (spec/plan/revise), `RESULT: NO CHANGE — ` (spec, plan, or revise after a challenge), `RESULT: DECIDED —