@fredericboyer/dev-team 0.9.0 → 0.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/create-agent.js +20 -6
- package/dist/create-agent.js.map +1 -1
- package/dist/init.js +21 -1
- package/dist/init.js.map +1 -1
- package/dist/status.js +12 -6
- package/dist/status.js.map +1 -1
- package/dist/update.js +22 -2
- package/dist/update.js.map +1 -1
- package/package.json +2 -2
- package/templates/CLAUDE.md +13 -3
- package/templates/agent-memory/dev-team-beck/MEMORY.md +10 -1
- package/templates/agent-memory/dev-team-borges/MEMORY.md +10 -1
- package/templates/agent-memory/dev-team-brooks/MEMORY.md +10 -1
- package/templates/agent-memory/dev-team-conway/MEMORY.md +10 -1
- package/templates/agent-memory/dev-team-deming/MEMORY.md +11 -2
- package/templates/agent-memory/dev-team-drucker/MEMORY.md +10 -1
- package/templates/agent-memory/dev-team-hamilton/MEMORY.md +10 -1
- package/templates/agent-memory/dev-team-knuth/MEMORY.md +10 -1
- package/templates/agent-memory/dev-team-mori/MEMORY.md +10 -1
- package/templates/agent-memory/dev-team-szabo/MEMORY.md +10 -1
- package/templates/agent-memory/dev-team-tufte/MEMORY.md +10 -1
- package/templates/agent-memory/dev-team-voss/MEMORY.md +10 -1
- package/templates/agents/dev-team-beck.md +3 -1
- package/templates/agents/dev-team-borges.md +82 -2
- package/templates/agents/dev-team-brooks.md +3 -1
- package/templates/agents/dev-team-conway.md +3 -1
- package/templates/agents/dev-team-deming.md +3 -1
- package/templates/agents/dev-team-drucker.md +76 -0
- package/templates/agents/dev-team-hamilton.md +3 -1
- package/templates/agents/dev-team-knuth.md +3 -1
- package/templates/agents/dev-team-mori.md +3 -1
- package/templates/agents/dev-team-szabo.md +3 -1
- package/templates/agents/dev-team-tufte.md +3 -1
- package/templates/agents/dev-team-voss.md +3 -1
- package/templates/dev-team-learnings.md +3 -1
- package/templates/dev-team-metrics.md +18 -0
- package/templates/skills/dev-team-assess/SKILL.md +20 -0
- package/templates/skills/dev-team-review/SKILL.md +13 -2
- package/templates/skills/dev-team-task/SKILL.md +15 -5
- package/templates/workflow-skills/dev-team-security-status/SKILL.md +1 -1
|
@@ -48,7 +48,7 @@ Before spawning reviewers, verify the changes are reviewable:
|
|
|
48
48
|
## Filter findings (judge pass)
|
|
49
49
|
|
|
50
50
|
Before producing the report, filter raw findings to maximize signal quality:
|
|
51
|
-
1. **Remove contradictions**: Drop findings that contradict existing ADRs, learnings, or agent memory
|
|
51
|
+
1. **Remove contradictions**: Drop findings that contradict existing ADRs (`docs/adr/`), learnings (`.dev-team/learnings.md`), or agent memory (`.dev-team/agent-memory/*/MEMORY.md`)
|
|
52
52
|
2. **Deduplicate**: When multiple agents flag the same issue, keep the most specific finding
|
|
53
53
|
3. **Consolidate suggestions**: Group `[SUGGESTION]`-level items into a single summary block
|
|
54
54
|
4. **Suppress generated file findings**: Skip findings on generated, vendored, or build artifacts
|
|
@@ -78,6 +78,14 @@ Group by severity:
|
|
|
78
78
|
- **[QUESTION]** — decisions needing justification
|
|
79
79
|
- **[SUGGESTION]** — specific improvements
|
|
80
80
|
|
|
81
|
+
### Filtered
|
|
82
|
+
|
|
83
|
+
List findings removed during the judge pass, with the reason for filtering:
|
|
84
|
+
```
|
|
85
|
+
**Filtered** @agent-name — reason (contradicts ADR-NNN / duplicate of above / no concrete scenario / generated file)
|
|
86
|
+
Original finding summary.
|
|
87
|
+
```
|
|
88
|
+
|
|
81
89
|
### Verdict
|
|
82
90
|
|
|
83
91
|
- **Approve** — No `[DEFECT]` findings. Advisory items noted.
|
|
@@ -92,8 +100,11 @@ Before starting the review, check for open security alerts: run `/dev-team:secur
|
|
|
92
100
|
### Completion
|
|
93
101
|
|
|
94
102
|
After the review report is delivered:
|
|
95
|
-
1. You MUST spawn **@dev-team-borges** (Librarian) as the final step. Borges will:
|
|
103
|
+
1. You MUST spawn **@dev-team-borges** (Librarian) as the final step. Pass Borges the **finding outcome log**: every finding with its classification, source agent, and outcome (accepted/overruled/ignored), including reasoning for overrules. Borges will:
|
|
96
104
|
- **Extract structured memory entries** from the review findings (each classified finding becomes a memory entry for the reviewer who produced it)
|
|
105
|
+
- **Reinforce accepted patterns** and **record overruled findings** for reviewer calibration
|
|
106
|
+
- **Generate calibration rules** when 3+ findings on the same tag are overruled
|
|
107
|
+
- **Record metrics** to `.dev-team/metrics.md`
|
|
97
108
|
- Write entries to each participating agent's MEMORY.md using the structured format
|
|
98
109
|
- Update shared learnings in `.dev-team/learnings.md`
|
|
99
110
|
- Check cross-agent coherence
|
|
@@ -46,9 +46,13 @@ Track iterations in conversation context (no state files). For each iteration:
|
|
|
46
46
|
- If validation fails, route back to implementer with specific failure reason. If it fails twice, escalate to human.
|
|
47
47
|
3. After validation passes, spawn review agents in parallel as background tasks.
|
|
48
48
|
4. Collect classified challenges from reviewers.
|
|
49
|
-
5. If any `[DEFECT]` challenges exist,
|
|
50
|
-
|
|
51
|
-
|
|
49
|
+
5. If any `[DEFECT]` challenges exist, **compact the context** before the next iteration:
|
|
50
|
+
- Produce a structured summary: DEFECTs found (agent, file, status), files changed, outstanding items
|
|
51
|
+
- New reviewers in subsequent waves receive: current diff + compact summary + agent definition
|
|
52
|
+
- They do NOT receive raw conversation history from prior waves
|
|
53
|
+
6. Address defects in the next iteration.
|
|
54
|
+
7. If no `[DEFECT]` remains, output DONE to exit the loop.
|
|
55
|
+
8. If max iterations reached without convergence, report remaining defects and exit.
|
|
52
56
|
|
|
53
57
|
The convergence check happens in conversation context: count iterations, check for `[DEFECT]` findings, and decide whether to continue or exit.
|
|
54
58
|
|
|
@@ -56,6 +60,8 @@ The convergence check happens in conversation context: count iterations, check f
|
|
|
56
60
|
|
|
57
61
|
When multiple issues are being addressed in a single session, the task loop switches to parallel orchestration (see ADR-019). Drucker coordinates all phases in conversation context.
|
|
58
62
|
|
|
63
|
+
**Mode selection:** If agent teams are enabled (check `.dev-team/config.json` for `"agentTeams": true`), use team lead mode for batches of 3+ issues. Otherwise, use standard worktree subagent mode. For single issues, always use standard mode.
|
|
64
|
+
|
|
59
65
|
### Phase 0: Brooks pre-assessment (batch)
|
|
60
66
|
Spawn @dev-team-brooks once with all issues. Brooks identifies:
|
|
61
67
|
- **File independence**: which issues touch overlapping files (conflict groups that must run sequentially)
|
|
@@ -71,7 +77,7 @@ Drucker spawns one implementing agent per independent issue, each on its own bra
|
|
|
71
77
|
Reviews do **not** start until **all** implementation agents have completed (Agent tool provides completion notifications as the sync barrier). Once all are done, spawn review agents (Szabo + Knuth, plus conditional reviewers) in parallel across all branches simultaneously. Each reviewer receives the diff for one specific branch and produces classified findings scoped to that branch.
|
|
72
78
|
|
|
73
79
|
### Phase 3: Defect routing
|
|
74
|
-
Collect all findings. Route `[DEFECT]` items back to the original implementing agent for each branch. Agents fix defects on their own branch.
|
|
80
|
+
Collect all findings. Route `[DEFECT]` items back to the original implementing agent for each branch. Agents fix defects on their own branch. Before spawning the next review wave, **compact context**: produce a structured summary of prior findings, their status (fixed/disputed/pending), and files changed. New reviewers receive current diff + compact summary only — not full conversation history from prior waves. Continue until no `[DEFECT]` findings remain or the per-branch iteration limit is reached.
|
|
75
81
|
|
|
76
82
|
### Phase 4: Borges completion
|
|
77
83
|
Borges runs **once** across all branches after the final review wave clears. This ensures cross-branch coherence: memory files are consistent, learnings are not duplicated, and system improvement recommendations consider the full batch.
|
|
@@ -90,8 +96,12 @@ Before starting work, check for open security alerts: run `/dev-team:security-st
|
|
|
90
96
|
When the loop exits:
|
|
91
97
|
1. **Deliver the work**: If changes are on a feature branch, create the PR (body must include `Closes #<issue>`). Ensure the PR is ready to merge: CI green, reviews passed, branch up to date. Then follow the project's merge workflow — use `/dev-team:merge` if the project has it configured, otherwise report readiness. If merge fails (CI failures, merge conflicts, branch protection), report the blocker to the human rather than leaving work unattended.
|
|
92
98
|
2. **Clean up worktree**: If the work was done in a worktree, clean it up after the branch is pushed and the PR is created. Do not wait for merge to clean the worktree.
|
|
93
|
-
3. You MUST spawn **@dev-team-borges** (Librarian) as the final step. Borges will:
|
|
99
|
+
3. You MUST spawn **@dev-team-borges** (Librarian) as the final step. Pass Borges the **finding outcome log**: every finding with its classification, source agent, and outcome (accepted/overruled/ignored), including the human's reasoning for overrules. Borges will:
|
|
94
100
|
- **Extract structured memory entries** from review findings and implementation decisions
|
|
101
|
+
- **Reinforce accepted patterns** in the reviewer's memory (calibration feedback)
|
|
102
|
+
- **Record overruled findings** with context so reviewers generate fewer false positives
|
|
103
|
+
- **Generate calibration rules** when 3+ findings on the same tag are overruled
|
|
104
|
+
- **Record metrics** to `.dev-team/metrics.md` (acceptance rates, rounds to convergence)
|
|
95
105
|
- Write entries to each participating agent's MEMORY.md using the structured format
|
|
96
106
|
- Update shared learnings in `.dev-team/learnings.md`
|
|
97
107
|
- Check cross-agent coherence
|