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 —