From 2f1c08ed60a9bed20dacf9677bbae30f210658af Mon Sep 17 00:00:00 2001 From: Claude Date: Sun, 29 Nov 2026 19:39:56 +0000 Subject: [PATCH 1/3] Carry over the seed changes of Squad-Spec-Repository-Template v2026.11.16 Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_018g33AVK39jux6LqsiGt5eM --- .squad/stack.md | 10 +++++++--- .squad/tools/squad_settings.py | 2 ++ 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/.squad/stack.md b/.squad/stack.md index a5d5da07..14825d88 100644 --- a/.squad/stack.md +++ b/.squad/stack.md @@ -245,13 +245,17 @@ The `Skeleton` body above is the default. A zero-value stub is allowed only wher exists and passes today: the new tests must still fail on the stub, and the Dev reports it as a deviation. A skeleton raises diagnostics by construction, which the zero-diagnostic rule does not count against it: S1144 (unused private member), S1172 (unused parameter), S4487 (a private field assigned but not read yet), S2325 (a member -that does not use instance data yet), CS0067 (an event never raised yet), CS0649 (a field never assigned yet) and -RH2003 (`NotImplementedException`, which the body above avoids). Wrap exactly the members that raise one in +that does not use instance data yet), CA1822 (a member that could be static yet, such as a zero-value stub property), +CS0067 and S3264 (an event never raised yet), CS0649 (a field never assigned yet) and RH2003 (`NotImplementedException`, +which the body above avoids). Wrap exactly the members that raise one in `#pragma warning disable ` / `#pragma warning restore ` with the comment `// Skeleton: removed with the implementation` — no other id; the Dev lists each pragma in its report and removes it in mode `implement`, and the Reviewer blocks one that is still there. A member that must not throw (`Dispose`, a finalizer: CA1065 rejects the throw) has an empty body as its skeleton; the Dev -reports it as a deviation and the new tests for it must still fail on the empty body. +reports it as a deviation and the new tests for it must still fail on the empty body. A UI event handler of code-behind +(WPF, Windows Forms) is left out of the skeleton, and so is the markup attribute that names it (a XAML `Click="…"` +without its handler fails the build with CS1061); both are added in mode `implement`: an empty handler raises a +diagnostic of its own and a throwing one crashes the application on the first click. ## Dependencies diff --git a/.squad/tools/squad_settings.py b/.squad/tools/squad_settings.py index ac33a7e5..7ab6d51f 100644 --- a/.squad/tools/squad_settings.py +++ b/.squad/tools/squad_settings.py @@ -53,3 +53,5 @@ # for list items, steps and counts), and source files whose values it does not read (lock files, generated files). FIGURE_TRIVIAL = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "100"] FIGURE_EXCLUDES = ["packages.lock.json", "*.svg", "src/DockerUpdateGuard.Data/Migrations/*"] # generated EF Core migrations +# Names with a number whose number is no figure (a product or game name such as "Anno 117"). +FIGURE_NAMES = [] From 958e80a81815f384b42f936d0d1577ee1a65ce30 Mon Sep 17 00:00:00 2001 From: Claude Date: Sun, 29 Nov 2026 19:40:09 +0000 Subject: [PATCH 2/3] 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/dotnet-rules.editorconfig | 15 +++- .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 +++++++++++++++++++++++--- docs/decisions/README.md | 7 +- 21 files changed, 445 insertions(+), 97 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 —