claude-code-workflow 7.2.23 → 7.2.25
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/.ccw/workflows/cli-tools-usage.md +123 -521
- package/.claude/skills/brainstorm/SKILL.md +408 -408
- package/.claude/skills/review-cycle/SKILL.md +132 -132
- package/.claude/skills/spec-generator/SKILL.md +1 -1
- package/.claude/skills/team-designer/phases/02-scaffold-generation.md +1 -1
- package/.claude/skills/team-lifecycle-v4/SKILL.md +1 -1
- package/.claude/skills/team-review/SKILL.md +1 -1
- package/.claude/skills/team-ultra-analyze/SKILL.md +1 -1
- package/.claude/skills/workflow-multi-cli-plan/SKILL.md +1 -1
- package/.claude/skills/workflow-plan/SKILL.md +1 -1
- package/.claude/skills/workflow-test-fix/SKILL.md +1 -1
- package/.codex/skills/analyze-with-file/SKILL.md +966 -966
- package/.codex/skills/issue-discover/SKILL.md +361 -361
- package/.codex/skills/review-cycle/SKILL.md +1 -1
- package/.codex/skills/roadmap-with-file/SKILL.md +901 -901
- package/.codex/skills/spec-generator/SKILL.md +425 -425
- package/.codex/skills/spec-setup/SKILL.md +669 -669
- package/.codex/skills/team-arch-opt/SKILL.md +242 -175
- package/.codex/skills/team-arch-opt/roles/analyzer/role.md +78 -78
- package/.codex/skills/team-arch-opt/roles/coordinator/commands/analyze.md +57 -57
- package/.codex/skills/team-arch-opt/roles/coordinator/commands/monitor.md +246 -204
- package/.codex/skills/team-arch-opt/roles/coordinator/role.md +196 -184
- package/.codex/skills/team-arch-opt/roles/designer/role.md +115 -115
- package/.codex/skills/team-arch-opt/roles/refactorer/role.md +102 -102
- package/.codex/skills/team-arch-opt/roles/reviewer/role.md +111 -111
- package/.codex/skills/team-arch-opt/roles/validator/role.md +115 -115
- package/.codex/skills/team-arch-opt/specs/pipelines.md +102 -102
- package/.codex/skills/team-brainstorm/SKILL.md +72 -4
- package/.codex/skills/team-brainstorm/roles/challenger/role.md +61 -61
- package/.codex/skills/team-brainstorm/roles/coordinator/commands/analyze.md +58 -58
- package/.codex/skills/team-brainstorm/roles/coordinator/commands/monitor.md +212 -171
- package/.codex/skills/team-brainstorm/roles/coordinator/role.md +172 -160
- package/.codex/skills/team-brainstorm/roles/evaluator/role.md +56 -56
- package/.codex/skills/team-brainstorm/roles/ideator/role.md +69 -69
- package/.codex/skills/team-brainstorm/roles/synthesizer/role.md +57 -57
- package/.codex/skills/team-brainstorm/specs/pipelines.md +72 -72
- package/.codex/skills/team-coordinate/SKILL.md +71 -3
- package/.codex/skills/team-coordinate/roles/coordinator/commands/monitor.md +45 -5
- package/.codex/skills/team-coordinate/roles/coordinator/role.md +402 -389
- package/.codex/skills/team-coordinate/specs/knowledge-transfer.md +111 -111
- package/.codex/skills/team-coordinate/specs/pipelines.md +97 -97
- package/.codex/skills/team-coordinate/specs/quality-gates.md +112 -112
- package/.codex/skills/team-designer/SKILL.md +153 -153
- package/.codex/skills/team-designer/phases/01-requirements-analysis.md +250 -250
- package/.codex/skills/team-designer/phases/02-scaffold-generation.md +228 -228
- package/.codex/skills/team-designer/phases/03-content-generation.md +330 -330
- package/.codex/skills/team-designer/phases/04-validation.md +320 -320
- package/.codex/skills/team-executor/SKILL.md +29 -2
- package/.codex/skills/team-executor/roles/executor/commands/monitor.md +23 -15
- package/.codex/skills/team-frontend/SKILL.md +77 -3
- package/.codex/skills/team-frontend/roles/analyst/role.md +92 -92
- package/.codex/skills/team-frontend/roles/architect/role.md +86 -86
- package/.codex/skills/team-frontend/roles/coordinator/commands/analyze.md +52 -52
- package/.codex/skills/team-frontend/roles/coordinator/commands/monitor.md +222 -188
- package/.codex/skills/team-frontend/roles/coordinator/role.md +189 -177
- package/.codex/skills/team-frontend/roles/developer/role.md +93 -93
- package/.codex/skills/team-frontend/roles/qa/role.md +79 -79
- package/.codex/skills/team-frontend/specs/pipelines.md +76 -76
- package/.codex/skills/team-frontend-debug/SKILL.md +66 -3
- package/.codex/skills/team-frontend-debug/roles/analyzer/role.md +208 -208
- package/.codex/skills/team-frontend-debug/roles/coordinator/commands/analyze.md +174 -174
- package/.codex/skills/team-frontend-debug/roles/coordinator/commands/dispatch.md +198 -198
- package/.codex/skills/team-frontend-debug/roles/coordinator/commands/monitor.md +177 -143
- package/.codex/skills/team-frontend-debug/roles/coordinator/role.md +164 -152
- package/.codex/skills/team-frontend-debug/roles/fixer/role.md +147 -147
- package/.codex/skills/team-frontend-debug/roles/reproducer/role.md +147 -147
- package/.codex/skills/team-frontend-debug/roles/tester/role.md +231 -231
- package/.codex/skills/team-frontend-debug/roles/verifier/role.md +172 -172
- package/.codex/skills/team-frontend-debug/specs/debug-tools.md +215 -215
- package/.codex/skills/team-frontend-debug/specs/pipelines.md +94 -94
- package/.codex/skills/team-issue/SKILL.md +83 -4
- package/.codex/skills/team-issue/roles/coordinator/commands/analyze.md +64 -64
- package/.codex/skills/team-issue/roles/coordinator/commands/dispatch.md +273 -273
- package/.codex/skills/team-issue/roles/coordinator/commands/monitor.md +235 -194
- package/.codex/skills/team-issue/roles/coordinator/role.md +206 -194
- package/.codex/skills/team-issue/roles/explorer/role.md +94 -94
- package/.codex/skills/team-issue/roles/implementer/role.md +87 -87
- package/.codex/skills/team-issue/roles/integrator/role.md +84 -84
- package/.codex/skills/team-issue/roles/planner/role.md +81 -81
- package/.codex/skills/team-issue/roles/reviewer/role.md +86 -86
- package/.codex/skills/team-issue/specs/pipelines.md +124 -124
- package/.codex/skills/team-lifecycle-v4/MIGRATION-PLAN.md +6 -6
- package/.codex/skills/team-lifecycle-v4/SKILL.md +305 -242
- package/.codex/skills/team-lifecycle-v4/roles/coordinator/commands/dispatch.md +1 -1
- package/.codex/skills/team-lifecycle-v4/roles/coordinator/commands/monitor.md +66 -24
- package/.codex/skills/team-lifecycle-v4/roles/coordinator/role.md +13 -1
- package/.codex/skills/team-lifecycle-v4/roles/supervisor/role.md +1 -1
- package/.codex/skills/team-lifecycle-v4/templates/architecture.md +254 -254
- package/.codex/skills/team-lifecycle-v4/templates/epics.md +196 -196
- package/.codex/skills/team-lifecycle-v4/templates/product-brief.md +133 -133
- package/.codex/skills/team-lifecycle-v4/templates/requirements.md +224 -224
- package/.codex/skills/team-perf-opt/SKILL.md +68 -3
- package/.codex/skills/team-perf-opt/roles/benchmarker/role.md +89 -89
- package/.codex/skills/team-perf-opt/roles/coordinator/commands/analyze.md +61 -61
- package/.codex/skills/team-perf-opt/roles/coordinator/commands/monitor.md +35 -1
- package/.codex/skills/team-perf-opt/roles/coordinator/role.md +179 -167
- package/.codex/skills/team-perf-opt/roles/optimizer/role.md +97 -97
- package/.codex/skills/team-perf-opt/roles/profiler/role.md +73 -73
- package/.codex/skills/team-perf-opt/roles/reviewer/role.md +75 -75
- package/.codex/skills/team-perf-opt/roles/strategist/role.md +94 -94
- package/.codex/skills/team-perf-opt/specs/pipelines.md +65 -65
- package/.codex/skills/team-planex/SKILL.md +65 -3
- package/.codex/skills/team-planex/roles/coordinator/commands/analyze.md +52 -52
- package/.codex/skills/team-planex/roles/coordinator/commands/monitor.md +210 -164
- package/.codex/skills/team-planex/roles/coordinator/role.md +171 -159
- package/.codex/skills/team-planex/roles/executor/role.md +91 -91
- package/.codex/skills/team-planex/roles/planner/role.md +112 -112
- package/.codex/skills/team-planex/specs/pipelines.md +93 -93
- package/.codex/skills/team-quality-assurance/SKILL.md +60 -3
- package/.codex/skills/team-quality-assurance/roles/analyst/role.md +80 -80
- package/.codex/skills/team-quality-assurance/roles/coordinator/commands/analyze.md +72 -72
- package/.codex/skills/team-quality-assurance/roles/coordinator/commands/dispatch.md +108 -108
- package/.codex/skills/team-quality-assurance/roles/coordinator/commands/monitor.md +243 -209
- package/.codex/skills/team-quality-assurance/roles/coordinator/role.md +176 -164
- package/.codex/skills/team-quality-assurance/roles/executor/role.md +66 -66
- package/.codex/skills/team-quality-assurance/roles/generator/role.md +68 -68
- package/.codex/skills/team-quality-assurance/roles/scout/role.md +67 -67
- package/.codex/skills/team-quality-assurance/roles/strategist/role.md +71 -71
- package/.codex/skills/team-quality-assurance/specs/pipelines.md +115 -115
- package/.codex/skills/team-review/SKILL.md +58 -3
- package/.codex/skills/team-review/roles/coordinator/commands/analyze.md +71 -71
- package/.codex/skills/team-review/roles/coordinator/commands/dispatch.md +90 -90
- package/.codex/skills/team-review/roles/coordinator/commands/monitor.md +225 -185
- package/.codex/skills/team-review/roles/coordinator/role.md +175 -163
- package/.codex/skills/team-review/roles/fixer/role.md +76 -76
- package/.codex/skills/team-review/roles/reviewer/role.md +68 -68
- package/.codex/skills/team-review/roles/scanner/role.md +71 -71
- package/.codex/skills/team-review/specs/pipelines.md +102 -102
- package/.codex/skills/team-roadmap-dev/SKILL.md +55 -3
- package/.codex/skills/team-roadmap-dev/roles/coordinator/commands/analyze.md +61 -61
- package/.codex/skills/team-roadmap-dev/roles/coordinator/commands/monitor.md +502 -468
- package/.codex/skills/team-roadmap-dev/roles/coordinator/role.md +335 -322
- package/.codex/skills/team-roadmap-dev/roles/executor/role.md +71 -71
- package/.codex/skills/team-roadmap-dev/roles/planner/role.md +76 -76
- package/.codex/skills/team-roadmap-dev/roles/verifier/role.md +74 -74
- package/.codex/skills/team-roadmap-dev/specs/pipelines.md +93 -93
- package/.codex/skills/team-tech-debt/SKILL.md +56 -3
- package/.codex/skills/team-tech-debt/roles/assessor/role.md +69 -69
- package/.codex/skills/team-tech-debt/roles/coordinator/commands/analyze.md +47 -47
- package/.codex/skills/team-tech-debt/roles/coordinator/commands/monitor.md +272 -231
- package/.codex/skills/team-tech-debt/roles/coordinator/role.md +172 -160
- package/.codex/skills/team-tech-debt/roles/executor/role.md +76 -76
- package/.codex/skills/team-tech-debt/roles/planner/role.md +69 -69
- package/.codex/skills/team-tech-debt/roles/scanner/role.md +82 -82
- package/.codex/skills/team-tech-debt/roles/validator/role.md +75 -75
- package/.codex/skills/team-tech-debt/specs/pipelines.md +47 -47
- package/.codex/skills/team-testing/SKILL.md +72 -3
- package/.codex/skills/team-testing/roles/analyst/role.md +95 -95
- package/.codex/skills/team-testing/roles/coordinator/commands/analyze.md +70 -70
- package/.codex/skills/team-testing/roles/coordinator/commands/dispatch.md +106 -106
- package/.codex/skills/team-testing/roles/coordinator/commands/monitor.md +283 -242
- package/.codex/skills/team-testing/roles/coordinator/role.md +184 -172
- package/.codex/skills/team-testing/roles/executor/role.md +96 -96
- package/.codex/skills/team-testing/roles/generator/role.md +95 -95
- package/.codex/skills/team-testing/roles/strategist/role.md +83 -83
- package/.codex/skills/team-testing/specs/pipelines.md +101 -101
- package/.codex/skills/team-uidesign/SKILL.md +65 -3
- package/.codex/skills/team-uidesign/roles/coordinator/commands/analyze.md +59 -59
- package/.codex/skills/team-uidesign/roles/coordinator/commands/dispatch.md +156 -156
- package/.codex/skills/team-uidesign/roles/coordinator/commands/monitor.md +234 -194
- package/.codex/skills/team-uidesign/roles/coordinator/role.md +211 -199
- package/.codex/skills/team-uidesign/roles/designer/role.md +69 -69
- package/.codex/skills/team-uidesign/roles/implementer/role.md +72 -72
- package/.codex/skills/team-uidesign/roles/researcher/role.md +82 -82
- package/.codex/skills/team-uidesign/roles/reviewer/role.md +67 -67
- package/.codex/skills/team-uidesign/specs/pipelines.md +76 -76
- package/.codex/skills/team-ultra-analyze/SKILL.md +73 -3
- package/.codex/skills/team-ultra-analyze/roles/analyst/role.md +90 -90
- package/.codex/skills/team-ultra-analyze/roles/coordinator/commands/analyze.md +73 -73
- package/.codex/skills/team-ultra-analyze/roles/coordinator/commands/monitor.md +50 -9
- package/.codex/skills/team-ultra-analyze/roles/coordinator/role.md +255 -243
- package/.codex/skills/team-ultra-analyze/roles/discussant/role.md +104 -104
- package/.codex/skills/team-ultra-analyze/roles/explorer/role.md +74 -74
- package/.codex/skills/team-ultra-analyze/roles/synthesizer/role.md +78 -78
- package/.codex/skills/team-ultra-analyze/specs/pipelines.md +64 -64
- package/.codex/skills/team-ux-improve/SKILL.md +64 -3
- package/.codex/skills/team-ux-improve/roles/coordinator/commands/analyze.md +62 -62
- package/.codex/skills/team-ux-improve/roles/coordinator/commands/dispatch.md +233 -233
- package/.codex/skills/team-ux-improve/roles/coordinator/commands/monitor.md +195 -160
- package/.codex/skills/team-ux-improve/roles/coordinator/role.md +170 -158
- package/.codex/skills/team-ux-improve/roles/designer/role.md +122 -122
- package/.codex/skills/team-ux-improve/roles/diagnoser/role.md +93 -93
- package/.codex/skills/team-ux-improve/roles/explorer/role.md +77 -77
- package/.codex/skills/team-ux-improve/roles/implementer/role.md +102 -102
- package/.codex/skills/team-ux-improve/roles/scanner/role.md +93 -93
- package/.codex/skills/team-ux-improve/roles/tester/role.md +84 -84
- package/.codex/skills/team-ux-improve/specs/pipelines.md +54 -54
- package/.codex/skills/workflow-test-fix-cycle/SKILL.md +402 -402
- package/README.md +1 -0
- package/package.json +1 -1
- package/.claude/skills/team-iterdev/SKILL.md +0 -127
- package/.claude/skills/team-iterdev/roles/architect/role.md +0 -65
- package/.claude/skills/team-iterdev/roles/coordinator/commands/analyze.md +0 -62
- package/.claude/skills/team-iterdev/roles/coordinator/commands/dispatch.md +0 -234
- package/.claude/skills/team-iterdev/roles/coordinator/commands/monitor.md +0 -182
- package/.claude/skills/team-iterdev/roles/coordinator/role.md +0 -153
- package/.claude/skills/team-iterdev/roles/developer/role.md +0 -74
- package/.claude/skills/team-iterdev/roles/reviewer/role.md +0 -66
- package/.claude/skills/team-iterdev/roles/tester/role.md +0 -88
- package/.claude/skills/team-iterdev/specs/pipelines.md +0 -94
- package/.claude/skills/team-iterdev/specs/team-config.json +0 -172
- package/.codex/skills/team-iterdev/SKILL.md +0 -158
- package/.codex/skills/team-iterdev/roles/architect/role.md +0 -65
- package/.codex/skills/team-iterdev/roles/coordinator/commands/analyze.md +0 -62
- package/.codex/skills/team-iterdev/roles/coordinator/commands/dispatch.md +0 -187
- package/.codex/skills/team-iterdev/roles/coordinator/commands/monitor.md +0 -186
- package/.codex/skills/team-iterdev/roles/coordinator/role.md +0 -181
- package/.codex/skills/team-iterdev/roles/developer/role.md +0 -74
- package/.codex/skills/team-iterdev/roles/reviewer/role.md +0 -66
- package/.codex/skills/team-iterdev/roles/tester/role.md +0 -88
- package/.codex/skills/team-iterdev/specs/pipelines.md +0 -94
- package/.codex/skills/team-iterdev/specs/team-config.json +0 -172
|
@@ -1,111 +1,111 @@
|
|
|
1
|
-
# Knowledge Transfer Protocols
|
|
2
|
-
|
|
3
|
-
## 1. Transfer Channels
|
|
4
|
-
|
|
5
|
-
| Channel | Scope | Mechanism | When to Use |
|
|
6
|
-
|---------|-------|-----------|-------------|
|
|
7
|
-
| **Artifacts** | Producer -> Consumer | Write to `<session>/artifacts/<name>.md`, consumer reads in Phase 2 | Structured deliverables (reports, plans, specs) |
|
|
8
|
-
| **State Updates** | Cross-role | `team_msg(operation="log", type="state_update", data={...})` / `team_msg(operation="get_state", session_id=<session-id>)` | Key findings, decisions, metadata (small, structured data) |
|
|
9
|
-
| **Wisdom** | Cross-task | Append to `<session>/wisdom/{learnings,decisions,conventions,issues}.md` | Patterns, conventions, risks discovered during execution |
|
|
10
|
-
| **Context Accumulator** | Intra-role (inner loop) | In-memory array, passed to each subsequent task in same-prefix loop | Prior task summaries within same role's inner loop |
|
|
11
|
-
| **Exploration Cache** | Cross-role | `<session>/explorations/cache-index.json` + per-angle JSON | Codebase discovery results, prevents duplicate exploration |
|
|
12
|
-
|
|
13
|
-
## 2. Context Loading Protocol (Phase 2)
|
|
14
|
-
|
|
15
|
-
Every role MUST load context in this order before starting work.
|
|
16
|
-
|
|
17
|
-
| Step | Action | Required |
|
|
18
|
-
|------|--------|----------|
|
|
19
|
-
| 1 | Extract session path from task description | Yes |
|
|
20
|
-
| 2 | `team_msg(operation="get_state", session_id=<session-id>)` | Yes |
|
|
21
|
-
| 3 | Read artifact files from upstream state's `ref` paths | Yes |
|
|
22
|
-
| 4 | Read `<session>/wisdom/*.md` if exists | Yes |
|
|
23
|
-
| 5 | Check `<session>/explorations/cache-index.json` before new exploration | If exploring |
|
|
24
|
-
| 6 | For inner_loop roles: load context_accumulator from prior tasks | If inner_loop |
|
|
25
|
-
|
|
26
|
-
**Loading rules**:
|
|
27
|
-
- Never skip step 2 -- state contains key decisions and findings
|
|
28
|
-
- If `ref` path in state does not exist, log warning and continue
|
|
29
|
-
- Wisdom files are append-only -- read all entries, newest last
|
|
30
|
-
|
|
31
|
-
## 3. Context Publishing Protocol (Phase 4)
|
|
32
|
-
|
|
33
|
-
| Step | Action | Required |
|
|
34
|
-
|------|--------|----------|
|
|
35
|
-
| 1 | Write deliverable to `<session>/artifacts/<task-id>-<name>.md` | Yes |
|
|
36
|
-
| 2 | Send `team_msg(type="state_update")` with payload (see schema below) | Yes |
|
|
37
|
-
| 3 | Append wisdom entries for learnings, decisions, issues found | If applicable |
|
|
38
|
-
|
|
39
|
-
## 4. State Update Schema
|
|
40
|
-
|
|
41
|
-
Sent via `team_msg(type="state_update")` on task completion.
|
|
42
|
-
|
|
43
|
-
```json
|
|
44
|
-
{
|
|
45
|
-
"status": "task_complete",
|
|
46
|
-
"task_id": "<TASK-NNN>",
|
|
47
|
-
"ref": "<session>/artifacts/<filename>",
|
|
48
|
-
"key_findings": [
|
|
49
|
-
"Finding 1",
|
|
50
|
-
"Finding 2"
|
|
51
|
-
],
|
|
52
|
-
"decisions": [
|
|
53
|
-
"Decision with rationale"
|
|
54
|
-
],
|
|
55
|
-
"files_modified": [
|
|
56
|
-
"path/to/file.ts"
|
|
57
|
-
],
|
|
58
|
-
"verification": "self-validated | peer-reviewed | tested"
|
|
59
|
-
}
|
|
60
|
-
```
|
|
61
|
-
|
|
62
|
-
**Field rules**:
|
|
63
|
-
- `ref`: Always an artifact path, never inline content
|
|
64
|
-
- `key_findings`: Max 5 items, each under 100 chars
|
|
65
|
-
- `decisions`: Include rationale, not just the choice
|
|
66
|
-
- `files_modified`: Only for implementation tasks
|
|
67
|
-
- `verification`: One of `self-validated`, `peer-reviewed`, `tested`
|
|
68
|
-
|
|
69
|
-
**Write state** (namespaced by role):
|
|
70
|
-
```
|
|
71
|
-
team_msg(operation="log", session_id=<session-id>, from=<role>, type="state_update", data={
|
|
72
|
-
"<role_name>": { "key_findings": [...], "scope": "..." }
|
|
73
|
-
})
|
|
74
|
-
```
|
|
75
|
-
|
|
76
|
-
**Read state**:
|
|
77
|
-
```
|
|
78
|
-
team_msg(operation="get_state", session_id=<session-id>)
|
|
79
|
-
// Returns merged state from all state_update messages
|
|
80
|
-
```
|
|
81
|
-
|
|
82
|
-
## 5. Exploration Cache Protocol
|
|
83
|
-
|
|
84
|
-
Prevents redundant research across tasks and discussion rounds.
|
|
85
|
-
|
|
86
|
-
| Step | Action |
|
|
87
|
-
|------|--------|
|
|
88
|
-
| 1 | Read `<session>/explorations/cache-index.json` |
|
|
89
|
-
| 2 | If angle already explored, read cached result from `explore-<angle>.json` |
|
|
90
|
-
| 3 | If not cached, perform exploration |
|
|
91
|
-
| 4 | Write result to `<session>/explorations/explore-<angle>.json` |
|
|
92
|
-
| 5 | Update `cache-index.json` with new entry |
|
|
93
|
-
|
|
94
|
-
**cache-index.json format**:
|
|
95
|
-
```json
|
|
96
|
-
{
|
|
97
|
-
"entries": [
|
|
98
|
-
{
|
|
99
|
-
"angle": "competitor-analysis",
|
|
100
|
-
"file": "explore-competitor-analysis.json",
|
|
101
|
-
"created_by": "RESEARCH-001",
|
|
102
|
-
"timestamp": "2026-01-15T10:30:00Z"
|
|
103
|
-
}
|
|
104
|
-
]
|
|
105
|
-
}
|
|
106
|
-
```
|
|
107
|
-
|
|
108
|
-
**Rules**:
|
|
109
|
-
- Cache key is the exploration `angle` (normalized to kebab-case)
|
|
110
|
-
- Cache entries never expire within a session
|
|
111
|
-
- Any role can read cached explorations; only the creator updates them
|
|
1
|
+
# Knowledge Transfer Protocols
|
|
2
|
+
|
|
3
|
+
## 1. Transfer Channels
|
|
4
|
+
|
|
5
|
+
| Channel | Scope | Mechanism | When to Use |
|
|
6
|
+
|---------|-------|-----------|-------------|
|
|
7
|
+
| **Artifacts** | Producer -> Consumer | Write to `<session>/artifacts/<name>.md`, consumer reads in Phase 2 | Structured deliverables (reports, plans, specs) |
|
|
8
|
+
| **State Updates** | Cross-role | `team_msg(operation="log", type="state_update", data={...})` / `team_msg(operation="get_state", session_id=<session-id>)` | Key findings, decisions, metadata (small, structured data) |
|
|
9
|
+
| **Wisdom** | Cross-task | Append to `<session>/wisdom/{learnings,decisions,conventions,issues}.md` | Patterns, conventions, risks discovered during execution |
|
|
10
|
+
| **Context Accumulator** | Intra-role (inner loop) | In-memory array, passed to each subsequent task in same-prefix loop | Prior task summaries within same role's inner loop |
|
|
11
|
+
| **Exploration Cache** | Cross-role | `<session>/explorations/cache-index.json` + per-angle JSON | Codebase discovery results, prevents duplicate exploration |
|
|
12
|
+
|
|
13
|
+
## 2. Context Loading Protocol (Phase 2)
|
|
14
|
+
|
|
15
|
+
Every role MUST load context in this order before starting work.
|
|
16
|
+
|
|
17
|
+
| Step | Action | Required |
|
|
18
|
+
|------|--------|----------|
|
|
19
|
+
| 1 | Extract session path from task description | Yes |
|
|
20
|
+
| 2 | `team_msg(operation="get_state", session_id=<session-id>)` | Yes |
|
|
21
|
+
| 3 | Read artifact files from upstream state's `ref` paths | Yes |
|
|
22
|
+
| 4 | Read `<session>/wisdom/*.md` if exists | Yes |
|
|
23
|
+
| 5 | Check `<session>/explorations/cache-index.json` before new exploration | If exploring |
|
|
24
|
+
| 6 | For inner_loop roles: load context_accumulator from prior tasks | If inner_loop |
|
|
25
|
+
|
|
26
|
+
**Loading rules**:
|
|
27
|
+
- Never skip step 2 -- state contains key decisions and findings
|
|
28
|
+
- If `ref` path in state does not exist, log warning and continue
|
|
29
|
+
- Wisdom files are append-only -- read all entries, newest last
|
|
30
|
+
|
|
31
|
+
## 3. Context Publishing Protocol (Phase 4)
|
|
32
|
+
|
|
33
|
+
| Step | Action | Required |
|
|
34
|
+
|------|--------|----------|
|
|
35
|
+
| 1 | Write deliverable to `<session>/artifacts/<task-id>-<name>.md` | Yes |
|
|
36
|
+
| 2 | Send `team_msg(type="state_update")` with payload (see schema below) | Yes |
|
|
37
|
+
| 3 | Append wisdom entries for learnings, decisions, issues found | If applicable |
|
|
38
|
+
|
|
39
|
+
## 4. State Update Schema
|
|
40
|
+
|
|
41
|
+
Sent via `team_msg(type="state_update")` on task completion.
|
|
42
|
+
|
|
43
|
+
```json
|
|
44
|
+
{
|
|
45
|
+
"status": "task_complete",
|
|
46
|
+
"task_id": "<TASK-NNN>",
|
|
47
|
+
"ref": "<session>/artifacts/<filename>",
|
|
48
|
+
"key_findings": [
|
|
49
|
+
"Finding 1",
|
|
50
|
+
"Finding 2"
|
|
51
|
+
],
|
|
52
|
+
"decisions": [
|
|
53
|
+
"Decision with rationale"
|
|
54
|
+
],
|
|
55
|
+
"files_modified": [
|
|
56
|
+
"path/to/file.ts"
|
|
57
|
+
],
|
|
58
|
+
"verification": "self-validated | peer-reviewed | tested"
|
|
59
|
+
}
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
**Field rules**:
|
|
63
|
+
- `ref`: Always an artifact path, never inline content
|
|
64
|
+
- `key_findings`: Max 5 items, each under 100 chars
|
|
65
|
+
- `decisions`: Include rationale, not just the choice
|
|
66
|
+
- `files_modified`: Only for implementation tasks
|
|
67
|
+
- `verification`: One of `self-validated`, `peer-reviewed`, `tested`
|
|
68
|
+
|
|
69
|
+
**Write state** (namespaced by role):
|
|
70
|
+
```
|
|
71
|
+
team_msg(operation="log", session_id=<session-id>, from=<role>, type="state_update", data={
|
|
72
|
+
"<role_name>": { "key_findings": [...], "scope": "..." }
|
|
73
|
+
})
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
**Read state**:
|
|
77
|
+
```
|
|
78
|
+
team_msg(operation="get_state", session_id=<session-id>)
|
|
79
|
+
// Returns merged state from all state_update messages
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
## 5. Exploration Cache Protocol
|
|
83
|
+
|
|
84
|
+
Prevents redundant research across tasks and discussion rounds.
|
|
85
|
+
|
|
86
|
+
| Step | Action |
|
|
87
|
+
|------|--------|
|
|
88
|
+
| 1 | Read `<session>/explorations/cache-index.json` |
|
|
89
|
+
| 2 | If angle already explored, read cached result from `explore-<angle>.json` |
|
|
90
|
+
| 3 | If not cached, perform exploration |
|
|
91
|
+
| 4 | Write result to `<session>/explorations/explore-<angle>.json` |
|
|
92
|
+
| 5 | Update `cache-index.json` with new entry |
|
|
93
|
+
|
|
94
|
+
**cache-index.json format**:
|
|
95
|
+
```json
|
|
96
|
+
{
|
|
97
|
+
"entries": [
|
|
98
|
+
{
|
|
99
|
+
"angle": "competitor-analysis",
|
|
100
|
+
"file": "explore-competitor-analysis.json",
|
|
101
|
+
"created_by": "RESEARCH-001",
|
|
102
|
+
"timestamp": "2026-01-15T10:30:00Z"
|
|
103
|
+
}
|
|
104
|
+
]
|
|
105
|
+
}
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
**Rules**:
|
|
109
|
+
- Cache key is the exploration `angle` (normalized to kebab-case)
|
|
110
|
+
- Cache entries never expire within a session
|
|
111
|
+
- Any role can read cached explorations; only the creator updates them
|
|
@@ -1,97 +1,97 @@
|
|
|
1
|
-
# Pipeline Definitions — Team Coordinate
|
|
2
|
-
|
|
3
|
-
## Dynamic Pipeline Model
|
|
4
|
-
|
|
5
|
-
team-coordinate does NOT have a static pipeline. All pipelines are generated at runtime from task-analysis.json based on the user's task description.
|
|
6
|
-
|
|
7
|
-
## Pipeline Generation Process
|
|
8
|
-
|
|
9
|
-
```
|
|
10
|
-
Phase 1: analyze-task.md
|
|
11
|
-
-> Signal detection -> capability mapping -> dependency graph
|
|
12
|
-
-> Output: task-analysis.json
|
|
13
|
-
|
|
14
|
-
Phase 2: dispatch.md
|
|
15
|
-
-> Read task-analysis.json dependency graph
|
|
16
|
-
-> Create tasks.json entries per dependency node
|
|
17
|
-
-> Set deps chains from graph edges
|
|
18
|
-
-> Output: tasks.json with correct DAG
|
|
19
|
-
|
|
20
|
-
Phase 3-N: monitor.md
|
|
21
|
-
-> handleSpawnNext: spawn ready tasks as team-worker agents
|
|
22
|
-
-> handleCallback: mark completed, advance pipeline
|
|
23
|
-
-> Repeat until all tasks done
|
|
24
|
-
```
|
|
25
|
-
|
|
26
|
-
## Dynamic Task Naming
|
|
27
|
-
|
|
28
|
-
| Capability | Prefix | Example |
|
|
29
|
-
|------------|--------|---------|
|
|
30
|
-
| researcher | RESEARCH | RESEARCH-001 |
|
|
31
|
-
| developer | IMPL | IMPL-001 |
|
|
32
|
-
| analyst | ANALYSIS | ANALYSIS-001 |
|
|
33
|
-
| designer | DESIGN | DESIGN-001 |
|
|
34
|
-
| tester | TEST | TEST-001 |
|
|
35
|
-
| writer | DRAFT | DRAFT-001 |
|
|
36
|
-
| planner | PLAN | PLAN-001 |
|
|
37
|
-
| (default) | TASK | TASK-001 |
|
|
38
|
-
|
|
39
|
-
## Dependency Graph Structure
|
|
40
|
-
|
|
41
|
-
task-analysis.json encodes the pipeline:
|
|
42
|
-
|
|
43
|
-
```json
|
|
44
|
-
{
|
|
45
|
-
"dependency_graph": {
|
|
46
|
-
"RESEARCH-001": { "role": "researcher", "blockedBy": [], "priority": "P0" },
|
|
47
|
-
"IMPL-001": { "role": "developer", "blockedBy": ["RESEARCH-001"], "priority": "P1" },
|
|
48
|
-
"TEST-001": { "role": "tester", "blockedBy": ["IMPL-001"], "priority": "P2" }
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
```
|
|
52
|
-
|
|
53
|
-
## Role-Worker Map
|
|
54
|
-
|
|
55
|
-
Dynamic — loaded from session role-specs at runtime:
|
|
56
|
-
|
|
57
|
-
```
|
|
58
|
-
<session>/role-specs/<role-name>.md -> team-worker agent
|
|
59
|
-
```
|
|
60
|
-
|
|
61
|
-
Role-spec files contain YAML frontmatter:
|
|
62
|
-
```yaml
|
|
63
|
-
---
|
|
64
|
-
role: <role-name>
|
|
65
|
-
prefix: <PREFIX>
|
|
66
|
-
inner_loop: <true|false>
|
|
67
|
-
message_types:
|
|
68
|
-
success: <type>
|
|
69
|
-
error: error
|
|
70
|
-
---
|
|
71
|
-
```
|
|
72
|
-
|
|
73
|
-
## Checkpoint
|
|
74
|
-
|
|
75
|
-
| Trigger | Behavior |
|
|
76
|
-
|---------|----------|
|
|
77
|
-
| capability_gap reported | handleAdapt: generate new role-spec, spawn new worker |
|
|
78
|
-
| consensus_blocked HIGH | Create REVISION task or pause for user |
|
|
79
|
-
| All tasks complete | handleComplete: interactive completion action |
|
|
80
|
-
|
|
81
|
-
## Specs Reference
|
|
82
|
-
|
|
83
|
-
- [role-spec-template.md](role-spec-template.md) — Template for generating dynamic role-specs
|
|
84
|
-
- [quality-gates.md](quality-gates.md) — Quality thresholds and scoring dimensions
|
|
85
|
-
- [knowledge-transfer.md](knowledge-transfer.md) — Context transfer protocols between roles
|
|
86
|
-
|
|
87
|
-
## Quality Gate Integration
|
|
88
|
-
|
|
89
|
-
Dynamic pipelines reference quality thresholds from [specs/quality-gates.md](quality-gates.md).
|
|
90
|
-
|
|
91
|
-
| Gate Point | Trigger | Criteria Source |
|
|
92
|
-
|------------|---------|----------------|
|
|
93
|
-
| After artifact production | Producer role Phase 4 | Behavioral Traits in role-spec |
|
|
94
|
-
| After validation tasks | Tester/analyst completion | quality-gates.md thresholds |
|
|
95
|
-
| Pipeline completion | All tasks done | Aggregate scoring |
|
|
96
|
-
|
|
97
|
-
Issue classification: Error (blocks) > Warning (proceed with justification) > Info (log for future).
|
|
1
|
+
# Pipeline Definitions — Team Coordinate
|
|
2
|
+
|
|
3
|
+
## Dynamic Pipeline Model
|
|
4
|
+
|
|
5
|
+
team-coordinate does NOT have a static pipeline. All pipelines are generated at runtime from task-analysis.json based on the user's task description.
|
|
6
|
+
|
|
7
|
+
## Pipeline Generation Process
|
|
8
|
+
|
|
9
|
+
```
|
|
10
|
+
Phase 1: analyze-task.md
|
|
11
|
+
-> Signal detection -> capability mapping -> dependency graph
|
|
12
|
+
-> Output: task-analysis.json
|
|
13
|
+
|
|
14
|
+
Phase 2: dispatch.md
|
|
15
|
+
-> Read task-analysis.json dependency graph
|
|
16
|
+
-> Create tasks.json entries per dependency node
|
|
17
|
+
-> Set deps chains from graph edges
|
|
18
|
+
-> Output: tasks.json with correct DAG
|
|
19
|
+
|
|
20
|
+
Phase 3-N: monitor.md
|
|
21
|
+
-> handleSpawnNext: spawn ready tasks as team-worker agents
|
|
22
|
+
-> handleCallback: mark completed, advance pipeline
|
|
23
|
+
-> Repeat until all tasks done
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
## Dynamic Task Naming
|
|
27
|
+
|
|
28
|
+
| Capability | Prefix | Example |
|
|
29
|
+
|------------|--------|---------|
|
|
30
|
+
| researcher | RESEARCH | RESEARCH-001 |
|
|
31
|
+
| developer | IMPL | IMPL-001 |
|
|
32
|
+
| analyst | ANALYSIS | ANALYSIS-001 |
|
|
33
|
+
| designer | DESIGN | DESIGN-001 |
|
|
34
|
+
| tester | TEST | TEST-001 |
|
|
35
|
+
| writer | DRAFT | DRAFT-001 |
|
|
36
|
+
| planner | PLAN | PLAN-001 |
|
|
37
|
+
| (default) | TASK | TASK-001 |
|
|
38
|
+
|
|
39
|
+
## Dependency Graph Structure
|
|
40
|
+
|
|
41
|
+
task-analysis.json encodes the pipeline:
|
|
42
|
+
|
|
43
|
+
```json
|
|
44
|
+
{
|
|
45
|
+
"dependency_graph": {
|
|
46
|
+
"RESEARCH-001": { "role": "researcher", "blockedBy": [], "priority": "P0" },
|
|
47
|
+
"IMPL-001": { "role": "developer", "blockedBy": ["RESEARCH-001"], "priority": "P1" },
|
|
48
|
+
"TEST-001": { "role": "tester", "blockedBy": ["IMPL-001"], "priority": "P2" }
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
## Role-Worker Map
|
|
54
|
+
|
|
55
|
+
Dynamic — loaded from session role-specs at runtime:
|
|
56
|
+
|
|
57
|
+
```
|
|
58
|
+
<session>/role-specs/<role-name>.md -> team-worker agent
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
Role-spec files contain YAML frontmatter:
|
|
62
|
+
```yaml
|
|
63
|
+
---
|
|
64
|
+
role: <role-name>
|
|
65
|
+
prefix: <PREFIX>
|
|
66
|
+
inner_loop: <true|false>
|
|
67
|
+
message_types:
|
|
68
|
+
success: <type>
|
|
69
|
+
error: error
|
|
70
|
+
---
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
## Checkpoint
|
|
74
|
+
|
|
75
|
+
| Trigger | Behavior |
|
|
76
|
+
|---------|----------|
|
|
77
|
+
| capability_gap reported | handleAdapt: generate new role-spec, spawn new worker |
|
|
78
|
+
| consensus_blocked HIGH | Create REVISION task or pause for user |
|
|
79
|
+
| All tasks complete | handleComplete: interactive completion action |
|
|
80
|
+
|
|
81
|
+
## Specs Reference
|
|
82
|
+
|
|
83
|
+
- [role-spec-template.md](role-spec-template.md) — Template for generating dynamic role-specs
|
|
84
|
+
- [quality-gates.md](quality-gates.md) — Quality thresholds and scoring dimensions
|
|
85
|
+
- [knowledge-transfer.md](knowledge-transfer.md) — Context transfer protocols between roles
|
|
86
|
+
|
|
87
|
+
## Quality Gate Integration
|
|
88
|
+
|
|
89
|
+
Dynamic pipelines reference quality thresholds from [specs/quality-gates.md](quality-gates.md).
|
|
90
|
+
|
|
91
|
+
| Gate Point | Trigger | Criteria Source |
|
|
92
|
+
|------------|---------|----------------|
|
|
93
|
+
| After artifact production | Producer role Phase 4 | Behavioral Traits in role-spec |
|
|
94
|
+
| After validation tasks | Tester/analyst completion | quality-gates.md thresholds |
|
|
95
|
+
| Pipeline completion | All tasks done | Aggregate scoring |
|
|
96
|
+
|
|
97
|
+
Issue classification: Error (blocks) > Warning (proceed with justification) > Info (log for future).
|
|
@@ -1,112 +1,112 @@
|
|
|
1
|
-
# Quality Gates
|
|
2
|
-
|
|
3
|
-
## 1. Quality Thresholds
|
|
4
|
-
|
|
5
|
-
| Result | Score | Action |
|
|
6
|
-
|--------|-------|--------|
|
|
7
|
-
| Pass | >= 80% | Report completed |
|
|
8
|
-
| Review | 60-79% | Report completed with warnings |
|
|
9
|
-
| Fail | < 60% | Retry Phase 3 (max 2 retries) |
|
|
10
|
-
|
|
11
|
-
## 2. Scoring Dimensions
|
|
12
|
-
|
|
13
|
-
| Dimension | Weight | Criteria |
|
|
14
|
-
|-----------|--------|----------|
|
|
15
|
-
| Completeness | 25% | All required outputs present with substantive content |
|
|
16
|
-
| Consistency | 25% | Terminology, formatting, cross-references are uniform |
|
|
17
|
-
| Accuracy | 25% | Outputs are factually correct and verifiable against sources |
|
|
18
|
-
| Depth | 25% | Sufficient detail for downstream consumers to act on deliverables |
|
|
19
|
-
|
|
20
|
-
**Score** = weighted average of all dimensions (0-100 per dimension).
|
|
21
|
-
|
|
22
|
-
## 3. Dynamic Role Quality Checks
|
|
23
|
-
|
|
24
|
-
Quality checks vary by `output_type` (from task-analysis.json role metadata).
|
|
25
|
-
|
|
26
|
-
### output_type: artifact
|
|
27
|
-
|
|
28
|
-
| Check | Pass Criteria |
|
|
29
|
-
|-------|---------------|
|
|
30
|
-
| Artifact exists | File written to `<session>/artifacts/` |
|
|
31
|
-
| Content non-empty | Substantive content, not just headers |
|
|
32
|
-
| Format correct | Expected format (MD, JSON) matches deliverable |
|
|
33
|
-
| Cross-references | All references to upstream artifacts resolve |
|
|
34
|
-
|
|
35
|
-
### output_type: codebase
|
|
36
|
-
|
|
37
|
-
| Check | Pass Criteria |
|
|
38
|
-
|-------|---------------|
|
|
39
|
-
| Files modified | Claimed files actually changed (Read to confirm) |
|
|
40
|
-
| Syntax valid | No syntax errors in modified files |
|
|
41
|
-
| No regressions | Existing functionality preserved |
|
|
42
|
-
| Summary artifact | Implementation summary written to artifacts/ |
|
|
43
|
-
|
|
44
|
-
### output_type: mixed
|
|
45
|
-
|
|
46
|
-
All checks from both `artifact` and `codebase` apply.
|
|
47
|
-
|
|
48
|
-
## 4. Verification Protocol
|
|
49
|
-
|
|
50
|
-
Derived from Behavioral Traits in [role-spec-template.md](role-spec-template.md).
|
|
51
|
-
|
|
52
|
-
| Step | Action | Required |
|
|
53
|
-
|------|--------|----------|
|
|
54
|
-
| 1 | Verify all claimed files exist via Read | Yes |
|
|
55
|
-
| 2 | Confirm artifact written to `<session>/artifacts/` | Yes |
|
|
56
|
-
| 3 | Check verification summary fields present | Yes |
|
|
57
|
-
| 4 | Score against quality dimensions | Yes |
|
|
58
|
-
| 5 | Apply threshold -> Pass/Review/Fail | Yes |
|
|
59
|
-
|
|
60
|
-
**On Fail**: Retry Phase 3 (max 2 retries). After 2 retries, report `partial_completion`.
|
|
61
|
-
|
|
62
|
-
**On Review**: Proceed with warnings logged to `<session>/wisdom/issues.md`.
|
|
63
|
-
|
|
64
|
-
## 5. Code Review Dimensions
|
|
65
|
-
|
|
66
|
-
For REVIEW-* or validation tasks during implementation pipelines.
|
|
67
|
-
|
|
68
|
-
### Quality
|
|
69
|
-
|
|
70
|
-
| Check | Severity |
|
|
71
|
-
|-------|----------|
|
|
72
|
-
| Empty catch blocks | Error |
|
|
73
|
-
| `as any` type casts | Warning |
|
|
74
|
-
| `@ts-ignore` / `@ts-expect-error` | Warning |
|
|
75
|
-
| `console.log` in production code | Warning |
|
|
76
|
-
| Unused imports/variables | Info |
|
|
77
|
-
|
|
78
|
-
### Security
|
|
79
|
-
|
|
80
|
-
| Check | Severity |
|
|
81
|
-
|-------|----------|
|
|
82
|
-
| Hardcoded secrets/credentials | Error |
|
|
83
|
-
| SQL injection vectors | Error |
|
|
84
|
-
| `eval()` or `Function()` usage | Error |
|
|
85
|
-
| `innerHTML` assignment | Warning |
|
|
86
|
-
| Missing input validation | Warning |
|
|
87
|
-
|
|
88
|
-
### Architecture
|
|
89
|
-
|
|
90
|
-
| Check | Severity |
|
|
91
|
-
|-------|----------|
|
|
92
|
-
| Circular dependencies | Error |
|
|
93
|
-
| Deep cross-boundary imports (3+ levels) | Warning |
|
|
94
|
-
| Files > 500 lines | Warning |
|
|
95
|
-
| Functions > 50 lines | Info |
|
|
96
|
-
|
|
97
|
-
### Requirements Coverage
|
|
98
|
-
|
|
99
|
-
| Check | Severity |
|
|
100
|
-
|-------|----------|
|
|
101
|
-
| Core functionality implemented | Error if missing |
|
|
102
|
-
| Acceptance criteria covered | Error if missing |
|
|
103
|
-
| Edge cases handled | Warning |
|
|
104
|
-
| Error states handled | Warning |
|
|
105
|
-
|
|
106
|
-
## 6. Issue Classification
|
|
107
|
-
|
|
108
|
-
| Class | Label | Action |
|
|
109
|
-
|-------|-------|--------|
|
|
110
|
-
| Error | Must fix | Blocks progression, must resolve before proceeding |
|
|
111
|
-
| Warning | Should fix | Should resolve, can proceed with justification |
|
|
112
|
-
| Info | Nice to have | Optional improvement, log for future |
|
|
1
|
+
# Quality Gates
|
|
2
|
+
|
|
3
|
+
## 1. Quality Thresholds
|
|
4
|
+
|
|
5
|
+
| Result | Score | Action |
|
|
6
|
+
|--------|-------|--------|
|
|
7
|
+
| Pass | >= 80% | Report completed |
|
|
8
|
+
| Review | 60-79% | Report completed with warnings |
|
|
9
|
+
| Fail | < 60% | Retry Phase 3 (max 2 retries) |
|
|
10
|
+
|
|
11
|
+
## 2. Scoring Dimensions
|
|
12
|
+
|
|
13
|
+
| Dimension | Weight | Criteria |
|
|
14
|
+
|-----------|--------|----------|
|
|
15
|
+
| Completeness | 25% | All required outputs present with substantive content |
|
|
16
|
+
| Consistency | 25% | Terminology, formatting, cross-references are uniform |
|
|
17
|
+
| Accuracy | 25% | Outputs are factually correct and verifiable against sources |
|
|
18
|
+
| Depth | 25% | Sufficient detail for downstream consumers to act on deliverables |
|
|
19
|
+
|
|
20
|
+
**Score** = weighted average of all dimensions (0-100 per dimension).
|
|
21
|
+
|
|
22
|
+
## 3. Dynamic Role Quality Checks
|
|
23
|
+
|
|
24
|
+
Quality checks vary by `output_type` (from task-analysis.json role metadata).
|
|
25
|
+
|
|
26
|
+
### output_type: artifact
|
|
27
|
+
|
|
28
|
+
| Check | Pass Criteria |
|
|
29
|
+
|-------|---------------|
|
|
30
|
+
| Artifact exists | File written to `<session>/artifacts/` |
|
|
31
|
+
| Content non-empty | Substantive content, not just headers |
|
|
32
|
+
| Format correct | Expected format (MD, JSON) matches deliverable |
|
|
33
|
+
| Cross-references | All references to upstream artifacts resolve |
|
|
34
|
+
|
|
35
|
+
### output_type: codebase
|
|
36
|
+
|
|
37
|
+
| Check | Pass Criteria |
|
|
38
|
+
|-------|---------------|
|
|
39
|
+
| Files modified | Claimed files actually changed (Read to confirm) |
|
|
40
|
+
| Syntax valid | No syntax errors in modified files |
|
|
41
|
+
| No regressions | Existing functionality preserved |
|
|
42
|
+
| Summary artifact | Implementation summary written to artifacts/ |
|
|
43
|
+
|
|
44
|
+
### output_type: mixed
|
|
45
|
+
|
|
46
|
+
All checks from both `artifact` and `codebase` apply.
|
|
47
|
+
|
|
48
|
+
## 4. Verification Protocol
|
|
49
|
+
|
|
50
|
+
Derived from Behavioral Traits in [role-spec-template.md](role-spec-template.md).
|
|
51
|
+
|
|
52
|
+
| Step | Action | Required |
|
|
53
|
+
|------|--------|----------|
|
|
54
|
+
| 1 | Verify all claimed files exist via Read | Yes |
|
|
55
|
+
| 2 | Confirm artifact written to `<session>/artifacts/` | Yes |
|
|
56
|
+
| 3 | Check verification summary fields present | Yes |
|
|
57
|
+
| 4 | Score against quality dimensions | Yes |
|
|
58
|
+
| 5 | Apply threshold -> Pass/Review/Fail | Yes |
|
|
59
|
+
|
|
60
|
+
**On Fail**: Retry Phase 3 (max 2 retries). After 2 retries, report `partial_completion`.
|
|
61
|
+
|
|
62
|
+
**On Review**: Proceed with warnings logged to `<session>/wisdom/issues.md`.
|
|
63
|
+
|
|
64
|
+
## 5. Code Review Dimensions
|
|
65
|
+
|
|
66
|
+
For REVIEW-* or validation tasks during implementation pipelines.
|
|
67
|
+
|
|
68
|
+
### Quality
|
|
69
|
+
|
|
70
|
+
| Check | Severity |
|
|
71
|
+
|-------|----------|
|
|
72
|
+
| Empty catch blocks | Error |
|
|
73
|
+
| `as any` type casts | Warning |
|
|
74
|
+
| `@ts-ignore` / `@ts-expect-error` | Warning |
|
|
75
|
+
| `console.log` in production code | Warning |
|
|
76
|
+
| Unused imports/variables | Info |
|
|
77
|
+
|
|
78
|
+
### Security
|
|
79
|
+
|
|
80
|
+
| Check | Severity |
|
|
81
|
+
|-------|----------|
|
|
82
|
+
| Hardcoded secrets/credentials | Error |
|
|
83
|
+
| SQL injection vectors | Error |
|
|
84
|
+
| `eval()` or `Function()` usage | Error |
|
|
85
|
+
| `innerHTML` assignment | Warning |
|
|
86
|
+
| Missing input validation | Warning |
|
|
87
|
+
|
|
88
|
+
### Architecture
|
|
89
|
+
|
|
90
|
+
| Check | Severity |
|
|
91
|
+
|-------|----------|
|
|
92
|
+
| Circular dependencies | Error |
|
|
93
|
+
| Deep cross-boundary imports (3+ levels) | Warning |
|
|
94
|
+
| Files > 500 lines | Warning |
|
|
95
|
+
| Functions > 50 lines | Info |
|
|
96
|
+
|
|
97
|
+
### Requirements Coverage
|
|
98
|
+
|
|
99
|
+
| Check | Severity |
|
|
100
|
+
|-------|----------|
|
|
101
|
+
| Core functionality implemented | Error if missing |
|
|
102
|
+
| Acceptance criteria covered | Error if missing |
|
|
103
|
+
| Edge cases handled | Warning |
|
|
104
|
+
| Error states handled | Warning |
|
|
105
|
+
|
|
106
|
+
## 6. Issue Classification
|
|
107
|
+
|
|
108
|
+
| Class | Label | Action |
|
|
109
|
+
|-------|-------|--------|
|
|
110
|
+
| Error | Must fix | Blocks progression, must resolve before proceeding |
|
|
111
|
+
| Warning | Should fix | Should resolve, can proceed with justification |
|
|
112
|
+
| Info | Nice to have | Optional improvement, log for future |
|