@fredericboyer/dev-team 0.8.0 → 0.9.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.
Files changed (38) hide show
  1. package/dist/init.d.ts +8 -1
  2. package/dist/init.js +50 -4
  3. package/dist/init.js.map +1 -1
  4. package/dist/update.d.ts +6 -0
  5. package/dist/update.js +87 -0
  6. package/dist/update.js.map +1 -1
  7. package/package.json +1 -1
  8. package/templates/CLAUDE.md +12 -8
  9. package/templates/agent-memory/dev-team-beck/MEMORY.md +12 -7
  10. package/templates/agent-memory/dev-team-borges/MEMORY.md +12 -7
  11. package/templates/agent-memory/dev-team-brooks/MEMORY.md +12 -7
  12. package/templates/agent-memory/dev-team-conway/MEMORY.md +12 -7
  13. package/templates/agent-memory/dev-team-deming/MEMORY.md +12 -7
  14. package/templates/agent-memory/dev-team-drucker/MEMORY.md +12 -7
  15. package/templates/agent-memory/dev-team-hamilton/MEMORY.md +12 -7
  16. package/templates/agent-memory/dev-team-knuth/MEMORY.md +12 -7
  17. package/templates/agent-memory/dev-team-mori/MEMORY.md +12 -7
  18. package/templates/agent-memory/dev-team-szabo/MEMORY.md +12 -7
  19. package/templates/agent-memory/dev-team-tufte/MEMORY.md +12 -7
  20. package/templates/agent-memory/dev-team-voss/MEMORY.md +12 -7
  21. package/templates/agents/dev-team-beck.md +1 -0
  22. package/templates/agents/dev-team-borges.md +38 -10
  23. package/templates/agents/dev-team-brooks.md +8 -0
  24. package/templates/agents/dev-team-conway.md +1 -0
  25. package/templates/agents/dev-team-deming.md +1 -0
  26. package/templates/agents/dev-team-drucker.md +43 -11
  27. package/templates/agents/dev-team-hamilton.md +1 -0
  28. package/templates/agents/dev-team-knuth.md +8 -0
  29. package/templates/agents/dev-team-mori.md +1 -0
  30. package/templates/agents/dev-team-szabo.md +8 -0
  31. package/templates/agents/dev-team-tufte.md +1 -0
  32. package/templates/agents/dev-team-voss.md +1 -0
  33. package/templates/hooks/dev-team-post-change-review.js +71 -0
  34. package/templates/skills/dev-team-audit/SKILL.md +1 -1
  35. package/templates/skills/dev-team-review/SKILL.md +25 -4
  36. package/templates/skills/dev-team-task/SKILL.md +20 -10
  37. /package/templates/{skills → workflow-skills}/dev-team-merge/SKILL.md +0 -0
  38. /package/templates/{skills → workflow-skills}/dev-team-security-status/SKILL.md +0 -0
@@ -38,11 +38,17 @@ Before the first iteration, the implementing agent should research current best
38
38
  Track iterations in conversation context (no state files). For each iteration:
39
39
 
40
40
  1. The implementing agent works on the task.
41
- 2. After implementation, spawn review agents in parallel as background tasks.
42
- 3. Collect classified challenges from reviewers.
43
- 4. If any `[DEFECT]` challenges exist, address them in the next iteration.
44
- 5. If no `[DEFECT]` remains, output DONE to exit the loop.
45
- 6. If max iterations reached without convergence, report remaining defects and exit.
41
+ 2. **Validate implementation output** before spawning reviewers:
42
+ - Non-empty diff: `git diff` shows actual changes
43
+ - Tests pass: test command executed with exit code 0
44
+ - Relevance: changed files relate to the stated issue
45
+ - Clean working tree: no uncommitted debris
46
+ - If validation fails, route back to implementer with specific failure reason. If it fails twice, escalate to human.
47
+ 3. After validation passes, spawn review agents in parallel as background tasks.
48
+ 4. Collect classified challenges from reviewers.
49
+ 5. If any `[DEFECT]` challenges exist, address them in the next iteration.
50
+ 6. If no `[DEFECT]` remains, output DONE to exit the loop.
51
+ 7. If max iterations reached without convergence, report remaining defects and exit.
46
52
 
47
53
  The convergence check happens in conversation context: count iterations, check for `[DEFECT]` findings, and decide whether to continue or exit.
48
54
 
@@ -77,16 +83,20 @@ Parallel mode is complete when:
77
83
 
78
84
  ## Security preamble
79
85
 
80
- Before starting work, check for open security alerts: run `/dev-team:security-status` if available, or check `gh api repos/{owner}/{repo}/code-scanning/alerts?state=open` and `gh api repos/{owner}/{repo}/dependabot/alerts?state=open`. Flag any critical findings before proceeding.
86
+ Before starting work, check for open security alerts: run `/dev-team:security-status` if available, or use the project's security monitoring tools. Flag any critical findings before proceeding.
81
87
 
82
88
  ## Completion
83
89
 
84
90
  When the loop exits:
85
- 1. **Create PR and merge**: If changes are on a feature branch, create the PR (body must include `Closes #<issue>`) and invoke `/dev-team:merge` to set auto-merge, monitor CI, handle Copilot review comments, and verify the merge completes. Work is NOT done until the PR is merged. If merge fails (CI failures, merge conflicts, branch protection), report the blocker to the human rather than leaving the PR unattended.
91
+ 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.
86
92
  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.
87
- 3. You MUST spawn **@dev-team-borges** (Librarian) as the final step to review memory freshness, cross-agent coherence, and system improvement opportunities. Do NOT skip this.
93
+ 3. You MUST spawn **@dev-team-borges** (Librarian) as the final step. Borges will:
94
+ - **Extract structured memory entries** from review findings and implementation decisions
95
+ - Write entries to each participating agent's MEMORY.md using the structured format
96
+ - Update shared learnings in `.dev-team/learnings.md`
97
+ - Check cross-agent coherence
98
+ - Report system improvement opportunities
88
99
  4. If Borges was not spawned, the task is INCOMPLETE.
89
- 5. **Borges memory gate**: If Borges reports that any implementing agent's MEMORY.md is empty or contains only boilerplate after a task, this is a **[DEFECT]** that blocks task completion. The implementing agent must write substantive learnings before the task can be marked done. Empty agent memory after a task means the enforcement pipeline failed.
100
+ 5. **Memory formation gate**: After Borges runs, verify that each participating agent's MEMORY.md contains at least one new structured entry from this task. Empty agent memory after a completed task is a system failure Borges prevents this by automating extraction.
90
101
  6. Summarize what was accomplished across all iterations.
91
102
  7. Report any remaining `[RISK]` or `[SUGGESTION]` items, including Borges's recommendations.
92
- 8. Write key learnings to agent MEMORY.md files.