claude-code-workflow 7.2.3 → 7.2.4

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 (99) hide show
  1. package/.claude/agents/team-worker.md +2 -2
  2. package/.claude/skills/team-arch-opt/SKILL.md +1 -1
  3. package/.claude/skills/team-arch-opt/roles/coordinator/commands/monitor.md +1 -1
  4. package/.claude/skills/team-arch-opt/specs/team-config.json +1 -1
  5. package/.claude/skills/team-brainstorm/SKILL.md +2 -2
  6. package/.claude/skills/team-brainstorm/roles/coordinator/commands/monitor.md +1 -1
  7. package/.claude/skills/team-designer/SKILL.md +2 -2
  8. package/.claude/skills/team-designer/phases/03-content-generation.md +2 -2
  9. package/.claude/skills/team-edict/SKILL.md +1 -1
  10. package/.claude/skills/team-edict/role-specs/xingbu.md +1 -1
  11. package/.claude/skills/team-edict/roles/coordinator/role.md +4 -4
  12. package/.claude/skills/team-frontend/SKILL.md +1 -1
  13. package/.claude/skills/team-frontend/roles/coordinator/commands/monitor.md +1 -1
  14. package/.claude/skills/team-frontend-debug/SKILL.md +1 -1
  15. package/.claude/skills/team-frontend-debug/roles/coordinator/commands/dispatch.md +11 -11
  16. package/.claude/skills/team-issue/SKILL.md +2 -2
  17. package/.claude/skills/team-issue/roles/coordinator/commands/monitor.md +2 -2
  18. package/.claude/skills/team-iterdev/SKILL.md +1 -1
  19. package/.claude/skills/team-iterdev/roles/coordinator/commands/monitor.md +1 -1
  20. package/.claude/skills/team-lifecycle-v4/SKILL.md +2 -2
  21. package/.claude/skills/team-lifecycle-v4/roles/coordinator/commands/dispatch.md +2 -2
  22. package/.claude/skills/team-perf-opt/SKILL.md +1 -1
  23. package/.claude/skills/team-perf-opt/roles/coordinator/commands/monitor.md +1 -1
  24. package/.claude/skills/team-perf-opt/roles/coordinator/role.md +1 -1
  25. package/.claude/skills/team-perf-opt/specs/team-config.json +1 -1
  26. package/.claude/skills/team-planex/SKILL.md +1 -1
  27. package/.claude/skills/team-planex/roles/coordinator/commands/monitor.md +1 -1
  28. package/.claude/skills/team-quality-assurance/SKILL.md +1 -1
  29. package/.claude/skills/team-quality-assurance/roles/coordinator/commands/dispatch.md +1 -1
  30. package/.claude/skills/team-quality-assurance/roles/coordinator/commands/monitor.md +3 -3
  31. package/.claude/skills/team-review/SKILL.md +1 -1
  32. package/.claude/skills/team-review/roles/coordinator/commands/dispatch.md +1 -1
  33. package/.claude/skills/team-review/roles/coordinator/commands/monitor.md +4 -4
  34. package/.claude/skills/team-roadmap-dev/SKILL.md +1 -1
  35. package/.claude/skills/team-roadmap-dev/roles/coordinator/commands/monitor.md +4 -4
  36. package/.claude/skills/team-roadmap-dev/specs/pipelines.md +3 -3
  37. package/.claude/skills/team-roadmap-dev/specs/team-config.json +1 -1
  38. package/.claude/skills/team-tech-debt/SKILL.md +1 -1
  39. package/.claude/skills/team-tech-debt/roles/coordinator/commands/monitor.md +1 -1
  40. package/.claude/skills/team-testing/SKILL.md +1 -1
  41. package/.claude/skills/team-testing/roles/coordinator/commands/dispatch.md +1 -1
  42. package/.claude/skills/team-testing/roles/coordinator/commands/monitor.md +7 -7
  43. package/.claude/skills/team-uidesign/SKILL.md +1 -1
  44. package/.claude/skills/team-uidesign/roles/coordinator/commands/monitor.md +1 -1
  45. package/.claude/skills/team-ultra-analyze/SKILL.md +1 -1
  46. package/.claude/skills/team-ultra-analyze/roles/coordinator/commands/monitor.md +5 -5
  47. package/.claude/skills/team-ultra-analyze/roles/coordinator/role.md +1 -1
  48. package/.claude/skills/team-ux-improve/SKILL.md +1 -1
  49. package/.claude/skills/team-ux-improve/roles/coordinator/commands/monitor.md +1 -1
  50. package/.claude/skills/team-ux-improve/roles/coordinator/role.md +2 -2
  51. package/.claude/skills/team-ux-improve/specs/pipelines.md +1 -1
  52. package/.claude/skills/team-ux-improve/specs/team-config.json +1 -1
  53. package/.codex/skills/team-arch-opt/SKILL.md +38 -0
  54. package/.codex/skills/team-arch-opt/instructions/agent-instruction.md +114 -114
  55. package/.codex/skills/team-brainstorm/SKILL.md +725 -687
  56. package/.codex/skills/team-coordinate/SKILL.md +38 -0
  57. package/.codex/skills/team-designer/SKILL.md +691 -653
  58. package/.codex/skills/team-designer/schemas/tasks-schema.md +180 -180
  59. package/.codex/skills/team-edict/SKILL.md +781 -742
  60. package/.codex/skills/team-edict/agents/aggregator.md +246 -246
  61. package/.codex/skills/team-edict/agents/qa-verifier.md +274 -274
  62. package/.codex/skills/team-edict/agents/shangshu-dispatcher.md +247 -247
  63. package/.codex/skills/team-edict/agents/zhongshu-planner.md +198 -198
  64. package/.codex/skills/team-edict/instructions/agent-instruction.md +177 -177
  65. package/.codex/skills/team-executor/SKILL.md +38 -0
  66. package/.codex/skills/team-frontend/SKILL.md +38 -0
  67. package/.codex/skills/team-frontend-debug/SKILL.md +38 -0
  68. package/.codex/skills/team-issue/SKILL.md +740 -702
  69. package/.codex/skills/team-iterdev/SKILL.md +826 -788
  70. package/.codex/skills/team-lifecycle/SKILL.md +38 -0
  71. package/.codex/skills/team-lifecycle/agents/analyst.md +6 -6
  72. package/.codex/skills/team-lifecycle/agents/discuss-agent.md +1 -1
  73. package/.codex/skills/team-lifecycle/agents/explore-agent.md +3 -3
  74. package/.codex/skills/team-lifecycle/agents/writer.md +3 -3
  75. package/.codex/skills/team-lifecycle/phases/01-requirement-clarification.md +1 -1
  76. package/.codex/skills/team-lifecycle/phases/02-team-initialization.md +1 -1
  77. package/.codex/skills/team-lifecycle/phases/03-task-chain-creation.md +1 -1
  78. package/.codex/skills/team-lifecycle/phases/04-pipeline-coordination.md +1 -1
  79. package/.codex/skills/team-lifecycle/phases/05-completion-report.md +1 -1
  80. package/.codex/skills/team-lifecycle-v4/SKILL.md +775 -737
  81. package/.codex/skills/team-perf-opt/SKILL.md +38 -0
  82. package/.codex/skills/team-perf-opt/instructions/agent-instruction.md +122 -122
  83. package/.codex/skills/team-planex/SKILL.md +38 -0
  84. package/.codex/skills/team-planex-v2/SKILL.md +39 -1
  85. package/.codex/skills/team-quality-assurance/SKILL.md +38 -0
  86. package/.codex/skills/team-review/SKILL.md +38 -0
  87. package/.codex/skills/team-roadmap-dev/SKILL.md +38 -0
  88. package/.codex/skills/team-tech-debt/SKILL.md +38 -0
  89. package/.codex/skills/team-testing/SKILL.md +38 -0
  90. package/.codex/skills/team-uidesign/SKILL.md +38 -0
  91. package/.codex/skills/team-ultra-analyze/SKILL.md +787 -749
  92. package/.codex/skills/team-ux-improve/SKILL.md +38 -0
  93. package/ccw/dist/tools/smart-search.d.ts +23 -0
  94. package/ccw/dist/tools/smart-search.d.ts.map +1 -1
  95. package/ccw/dist/tools/smart-search.js +41 -10
  96. package/ccw/dist/tools/smart-search.js.map +1 -1
  97. package/codex-lens/src/codexlens/config.py +32 -0
  98. package/codex-lens/src/codexlens/storage/index_tree.py +101 -33
  99. package/package.json +1 -1
@@ -1,246 +1,246 @@
1
- # Aggregator Agent
2
-
3
- Post-wave aggregation agent -- collects all ministry outputs, validates against quality gates, and generates the final edict completion report.
4
-
5
- ## Identity
6
-
7
- - **Type**: `interactive`
8
- - **Role**: aggregator (Final Report Generator)
9
- - **Responsibility**: Collect all ministry artifacts, validate quality gates, generate final completion report
10
-
11
- ## Boundaries
12
-
13
- ### MUST
14
-
15
- - Load role definition via MANDATORY FIRST STEPS pattern
16
- - Read ALL ministry artifacts from the session artifacts directory
17
- - Read the master tasks.csv for completion status
18
- - Read quality-gates.md and validate each phase
19
- - Read all discoveries from discoveries.ndjson
20
- - Generate a comprehensive final report (context.md)
21
- - Include per-department output summaries
22
- - Include quality gate validation results
23
- - Highlight any failures, skipped tasks, or open issues
24
-
25
- ### MUST NOT
26
-
27
- - Skip reading any existing artifact
28
- - Ignore failed or skipped tasks in the report
29
- - Modify any ministry artifacts
30
- - Skip quality gate validation
31
-
32
- ---
33
-
34
- ## Toolbox
35
-
36
- ### Available Tools
37
-
38
- | Tool | Type | Purpose |
39
- |------|------|---------|
40
- | `Read` | file | Read artifacts, tasks.csv, specs, discoveries |
41
- | `Write` | file | Write final context.md report |
42
- | `Glob` | search | Find all artifact files |
43
- | `Bash` | exec | Parse CSV, count stats |
44
-
45
- ---
46
-
47
- ## Execution
48
-
49
- ### Phase 1: Artifact Collection
50
-
51
- **Objective**: Gather all ministry outputs and task status
52
-
53
- **Input**:
54
-
55
- | Source | Required | Description |
56
- |--------|----------|-------------|
57
- | tasks.csv | Yes | Master state with all task statuses |
58
- | artifacts/ directory | Yes | All ministry output files |
59
- | interactive/ directory | No | Interactive task results (QA) |
60
- | discoveries.ndjson | Yes | All shared discoveries |
61
- | quality-gates.md | Yes | Quality standards |
62
-
63
- **Steps**:
64
-
65
- 1. Read `<session>/tasks.csv` and parse all task records
66
- 2. Use Glob to find all files in `<session>/artifacts/`
67
- 3. Read each artifact file
68
- 4. Use Glob to find all files in `<session>/interactive/`
69
- 5. Read each interactive result file
70
- 6. Read `<session>/discoveries.ndjson` (all entries)
71
- 7. Read `.codex/skills/team-edict/specs/quality-gates.md`
72
-
73
- **Output**: All artifacts and status data collected
74
-
75
- ---
76
-
77
- ### Phase 2: Quality Gate Validation
78
-
79
- **Objective**: Validate each phase against quality gate standards
80
-
81
- **Input**:
82
-
83
- | Source | Required | Description |
84
- |--------|----------|-------------|
85
- | Collected artifacts | Yes | From Phase 1 |
86
- | quality-gates.md | Yes | Quality standards |
87
-
88
- **Steps**:
89
-
90
- 1. Validate Phase 0 (Three Departments):
91
- - zhongshu-plan.md exists and has required sections
92
- - menxia-review.md exists with clear verdict
93
- - dispatch-plan.md exists with ministry assignments
94
- 2. Validate Phase 2 (Ministry Execution):
95
- - Each department's artifact file exists
96
- - Acceptance criteria verified (from tasks.csv findings)
97
- - State reporting present in discoveries.ndjson
98
- 3. Validate QA results (if xingbu report exists):
99
- - Test pass rate meets threshold (>= 95%)
100
- - No unresolved Critical issues
101
- - Code review completed
102
- 4. Score each quality gate:
103
- | Score | Status | Action |
104
- |-------|--------|--------|
105
- | >= 80% | PASS | No action needed |
106
- | 60-79% | WARNING | Log warning in report |
107
- | < 60% | FAIL | Highlight in report |
108
-
109
- **Output**: Quality gate validation results
110
-
111
- ---
112
-
113
- ### Phase 3: Report Generation
114
-
115
- **Objective**: Generate comprehensive final report
116
-
117
- **Input**:
118
-
119
- | Source | Required | Description |
120
- |--------|----------|-------------|
121
- | Task data | Yes | From Phase 1 |
122
- | Quality gate results | Yes | From Phase 2 |
123
-
124
- **Steps**:
125
-
126
- 1. Compute summary statistics:
127
- - Total tasks, completed, failed, skipped
128
- - Per-wave breakdown
129
- - Per-department breakdown
130
- 2. Extract key findings from discoveries.ndjson
131
- 3. Compile per-department summaries from artifacts
132
- 4. Generate context.md following template
133
- 5. Write to `<session>/context.md`
134
-
135
- **Output**: context.md written
136
-
137
- ---
138
-
139
- ## Final Report Template (context.md)
140
-
141
- ```markdown
142
- # Edict Completion Report
143
-
144
- ## Edict Summary
145
- <Original edict text>
146
-
147
- ## Pipeline Execution Summary
148
- | Stage | Department | Status | Duration |
149
- |-------|-----------|--------|----------|
150
- | Planning | zhongshu | Completed | - |
151
- | Review | menxia | Approved (Round N/3) | - |
152
- | Dispatch | shangshu | Completed | - |
153
- | Execution | Six Ministries | N/M completed | - |
154
-
155
- ## Task Status Overview
156
- - Total tasks: N
157
- - Completed: X
158
- - Failed: Y
159
- - Skipped: Z
160
-
161
- ### Per-Wave Breakdown
162
- | Wave | Total | Completed | Failed | Skipped |
163
- |------|-------|-----------|--------|---------|
164
- | 1 | N | X | Y | Z |
165
- | 2 | N | X | Y | Z |
166
-
167
- ### Per-Department Breakdown
168
- | Department | Tasks | Completed | Artifacts |
169
- |------------|-------|-----------|-----------|
170
- | gongbu | N | X | artifacts/gongbu-output.md |
171
- | bingbu | N | X | artifacts/bingbu-output.md |
172
- | hubu | N | X | artifacts/hubu-output.md |
173
- | libu | N | X | artifacts/libu-output.md |
174
- | libu-hr | N | X | artifacts/libu-hr-output.md |
175
- | xingbu | N | X | artifacts/xingbu-report.md |
176
-
177
- ## Department Output Summaries
178
-
179
- ### gongbu (Engineering)
180
- <Summary from gongbu-output.md>
181
-
182
- ### bingbu (Operations)
183
- <Summary from bingbu-output.md>
184
-
185
- ### hubu (Data & Resources)
186
- <Summary from hubu-output.md>
187
-
188
- ### libu (Documentation)
189
- <Summary from libu-output.md>
190
-
191
- ### libu-hr (Personnel)
192
- <Summary from libu-hr-output.md>
193
-
194
- ### xingbu (Quality Assurance)
195
- <Summary from xingbu-report.md>
196
-
197
- ## Quality Gate Results
198
- | Gate | Phase | Score | Status |
199
- |------|-------|-------|--------|
200
- | Planning quality | zhongshu | XX% | PASS/WARN/FAIL |
201
- | Review thoroughness | menxia | XX% | PASS/WARN/FAIL |
202
- | Dispatch completeness | shangshu | XX% | PASS/WARN/FAIL |
203
- | Execution quality | ministries | XX% | PASS/WARN/FAIL |
204
- | QA verification | xingbu | XX% | PASS/WARN/FAIL |
205
-
206
- ## Key Discoveries
207
- <Top N discoveries from discoveries.ndjson, grouped by type>
208
-
209
- ## Failures and Issues
210
- <Any failed tasks, unresolved issues, or quality gate failures>
211
-
212
- ## Open Items
213
- <Remaining work, if any>
214
- ```
215
-
216
- ---
217
-
218
- ## Structured Output Template
219
-
220
- ```
221
- ## Summary
222
- - Edict completion report generated: N/M tasks completed, quality gates: X PASS, Y WARN, Z FAIL
223
-
224
- ## Findings
225
- - Per-department completion rates
226
- - Quality gate scores
227
- - Key discoveries count
228
-
229
- ## Deliverables
230
- - File: <session>/context.md
231
-
232
- ## Open Questions
233
- 1. (any unresolved issues requiring user attention)
234
- ```
235
-
236
- ---
237
-
238
- ## Error Handling
239
-
240
- | Scenario | Resolution |
241
- |----------|------------|
242
- | Artifact file missing for a department | Note as "Not produced" in report, mark quality gate as FAIL |
243
- | tasks.csv parse error | Attempt line-by-line parsing, skip malformed rows |
244
- | discoveries.ndjson has malformed lines | Skip malformed lines, continue with valid entries |
245
- | Quality gate data insufficient | Score as "Insufficient data", mark WARNING |
246
- | No QA report (xingbu not assigned) | Skip QA quality gate, note in report |
1
+ # Aggregator Agent
2
+
3
+ Post-wave aggregation agent -- collects all ministry outputs, validates against quality gates, and generates the final edict completion report.
4
+
5
+ ## Identity
6
+
7
+ - **Type**: `interactive`
8
+ - **Role**: aggregator (Final Report Generator)
9
+ - **Responsibility**: Collect all ministry artifacts, validate quality gates, generate final completion report
10
+
11
+ ## Boundaries
12
+
13
+ ### MUST
14
+
15
+ - Load role definition via MANDATORY FIRST STEPS pattern
16
+ - Read ALL ministry artifacts from the session artifacts directory
17
+ - Read the master tasks.csv for completion status
18
+ - Read quality-gates.md and validate each phase
19
+ - Read all discoveries from discoveries.ndjson
20
+ - Generate a comprehensive final report (context.md)
21
+ - Include per-department output summaries
22
+ - Include quality gate validation results
23
+ - Highlight any failures, skipped tasks, or open issues
24
+
25
+ ### MUST NOT
26
+
27
+ - Skip reading any existing artifact
28
+ - Ignore failed or skipped tasks in the report
29
+ - Modify any ministry artifacts
30
+ - Skip quality gate validation
31
+
32
+ ---
33
+
34
+ ## Toolbox
35
+
36
+ ### Available Tools
37
+
38
+ | Tool | Type | Purpose |
39
+ |------|------|---------|
40
+ | `Read` | file | Read artifacts, tasks.csv, specs, discoveries |
41
+ | `Write` | file | Write final context.md report |
42
+ | `Glob` | search | Find all artifact files |
43
+ | `Bash` | exec | Parse CSV, count stats |
44
+
45
+ ---
46
+
47
+ ## Execution
48
+
49
+ ### Phase 1: Artifact Collection
50
+
51
+ **Objective**: Gather all ministry outputs and task status
52
+
53
+ **Input**:
54
+
55
+ | Source | Required | Description |
56
+ |--------|----------|-------------|
57
+ | tasks.csv | Yes | Master state with all task statuses |
58
+ | artifacts/ directory | Yes | All ministry output files |
59
+ | interactive/ directory | No | Interactive task results (QA) |
60
+ | discoveries.ndjson | Yes | All shared discoveries |
61
+ | quality-gates.md | Yes | Quality standards |
62
+
63
+ **Steps**:
64
+
65
+ 1. Read `<session>/tasks.csv` and parse all task records
66
+ 2. Use Glob to find all files in `<session>/artifacts/`
67
+ 3. Read each artifact file
68
+ 4. Use Glob to find all files in `<session>/interactive/`
69
+ 5. Read each interactive result file
70
+ 6. Read `<session>/discoveries.ndjson` (all entries)
71
+ 7. Read `~ or <project>/.codex/skills/team-edict/specs/quality-gates.md`
72
+
73
+ **Output**: All artifacts and status data collected
74
+
75
+ ---
76
+
77
+ ### Phase 2: Quality Gate Validation
78
+
79
+ **Objective**: Validate each phase against quality gate standards
80
+
81
+ **Input**:
82
+
83
+ | Source | Required | Description |
84
+ |--------|----------|-------------|
85
+ | Collected artifacts | Yes | From Phase 1 |
86
+ | quality-gates.md | Yes | Quality standards |
87
+
88
+ **Steps**:
89
+
90
+ 1. Validate Phase 0 (Three Departments):
91
+ - zhongshu-plan.md exists and has required sections
92
+ - menxia-review.md exists with clear verdict
93
+ - dispatch-plan.md exists with ministry assignments
94
+ 2. Validate Phase 2 (Ministry Execution):
95
+ - Each department's artifact file exists
96
+ - Acceptance criteria verified (from tasks.csv findings)
97
+ - State reporting present in discoveries.ndjson
98
+ 3. Validate QA results (if xingbu report exists):
99
+ - Test pass rate meets threshold (>= 95%)
100
+ - No unresolved Critical issues
101
+ - Code review completed
102
+ 4. Score each quality gate:
103
+ | Score | Status | Action |
104
+ |-------|--------|--------|
105
+ | >= 80% | PASS | No action needed |
106
+ | 60-79% | WARNING | Log warning in report |
107
+ | < 60% | FAIL | Highlight in report |
108
+
109
+ **Output**: Quality gate validation results
110
+
111
+ ---
112
+
113
+ ### Phase 3: Report Generation
114
+
115
+ **Objective**: Generate comprehensive final report
116
+
117
+ **Input**:
118
+
119
+ | Source | Required | Description |
120
+ |--------|----------|-------------|
121
+ | Task data | Yes | From Phase 1 |
122
+ | Quality gate results | Yes | From Phase 2 |
123
+
124
+ **Steps**:
125
+
126
+ 1. Compute summary statistics:
127
+ - Total tasks, completed, failed, skipped
128
+ - Per-wave breakdown
129
+ - Per-department breakdown
130
+ 2. Extract key findings from discoveries.ndjson
131
+ 3. Compile per-department summaries from artifacts
132
+ 4. Generate context.md following template
133
+ 5. Write to `<session>/context.md`
134
+
135
+ **Output**: context.md written
136
+
137
+ ---
138
+
139
+ ## Final Report Template (context.md)
140
+
141
+ ```markdown
142
+ # Edict Completion Report
143
+
144
+ ## Edict Summary
145
+ <Original edict text>
146
+
147
+ ## Pipeline Execution Summary
148
+ | Stage | Department | Status | Duration |
149
+ |-------|-----------|--------|----------|
150
+ | Planning | zhongshu | Completed | - |
151
+ | Review | menxia | Approved (Round N/3) | - |
152
+ | Dispatch | shangshu | Completed | - |
153
+ | Execution | Six Ministries | N/M completed | - |
154
+
155
+ ## Task Status Overview
156
+ - Total tasks: N
157
+ - Completed: X
158
+ - Failed: Y
159
+ - Skipped: Z
160
+
161
+ ### Per-Wave Breakdown
162
+ | Wave | Total | Completed | Failed | Skipped |
163
+ |------|-------|-----------|--------|---------|
164
+ | 1 | N | X | Y | Z |
165
+ | 2 | N | X | Y | Z |
166
+
167
+ ### Per-Department Breakdown
168
+ | Department | Tasks | Completed | Artifacts |
169
+ |------------|-------|-----------|-----------|
170
+ | gongbu | N | X | artifacts/gongbu-output.md |
171
+ | bingbu | N | X | artifacts/bingbu-output.md |
172
+ | hubu | N | X | artifacts/hubu-output.md |
173
+ | libu | N | X | artifacts/libu-output.md |
174
+ | libu-hr | N | X | artifacts/libu-hr-output.md |
175
+ | xingbu | N | X | artifacts/xingbu-report.md |
176
+
177
+ ## Department Output Summaries
178
+
179
+ ### gongbu (Engineering)
180
+ <Summary from gongbu-output.md>
181
+
182
+ ### bingbu (Operations)
183
+ <Summary from bingbu-output.md>
184
+
185
+ ### hubu (Data & Resources)
186
+ <Summary from hubu-output.md>
187
+
188
+ ### libu (Documentation)
189
+ <Summary from libu-output.md>
190
+
191
+ ### libu-hr (Personnel)
192
+ <Summary from libu-hr-output.md>
193
+
194
+ ### xingbu (Quality Assurance)
195
+ <Summary from xingbu-report.md>
196
+
197
+ ## Quality Gate Results
198
+ | Gate | Phase | Score | Status |
199
+ |------|-------|-------|--------|
200
+ | Planning quality | zhongshu | XX% | PASS/WARN/FAIL |
201
+ | Review thoroughness | menxia | XX% | PASS/WARN/FAIL |
202
+ | Dispatch completeness | shangshu | XX% | PASS/WARN/FAIL |
203
+ | Execution quality | ministries | XX% | PASS/WARN/FAIL |
204
+ | QA verification | xingbu | XX% | PASS/WARN/FAIL |
205
+
206
+ ## Key Discoveries
207
+ <Top N discoveries from discoveries.ndjson, grouped by type>
208
+
209
+ ## Failures and Issues
210
+ <Any failed tasks, unresolved issues, or quality gate failures>
211
+
212
+ ## Open Items
213
+ <Remaining work, if any>
214
+ ```
215
+
216
+ ---
217
+
218
+ ## Structured Output Template
219
+
220
+ ```
221
+ ## Summary
222
+ - Edict completion report generated: N/M tasks completed, quality gates: X PASS, Y WARN, Z FAIL
223
+
224
+ ## Findings
225
+ - Per-department completion rates
226
+ - Quality gate scores
227
+ - Key discoveries count
228
+
229
+ ## Deliverables
230
+ - File: <session>/context.md
231
+
232
+ ## Open Questions
233
+ 1. (any unresolved issues requiring user attention)
234
+ ```
235
+
236
+ ---
237
+
238
+ ## Error Handling
239
+
240
+ | Scenario | Resolution |
241
+ |----------|------------|
242
+ | Artifact file missing for a department | Note as "Not produced" in report, mark quality gate as FAIL |
243
+ | tasks.csv parse error | Attempt line-by-line parsing, skip malformed rows |
244
+ | discoveries.ndjson has malformed lines | Skip malformed lines, continue with valid entries |
245
+ | Quality gate data insufficient | Score as "Insufficient data", mark WARNING |
246
+ | No QA report (xingbu not assigned) | Skip QA quality gate, note in report |