@chorus-aidlc/chorus-openclaw-plugin 0.3.1 → 0.5.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 (58) hide show
  1. package/README.md +218 -218
  2. package/dist/commands.d.ts +5 -0
  3. package/dist/commands.d.ts.map +1 -0
  4. package/dist/commands.js +147 -0
  5. package/dist/commands.js.map +1 -0
  6. package/dist/config.d.ts +38 -0
  7. package/dist/config.d.ts.map +1 -0
  8. package/dist/config.js +57 -0
  9. package/dist/config.js.map +1 -0
  10. package/dist/event-router.d.ts +55 -0
  11. package/dist/event-router.d.ts.map +1 -0
  12. package/dist/event-router.js +157 -0
  13. package/dist/event-router.js.map +1 -0
  14. package/dist/index.d.ts +3 -0
  15. package/dist/index.d.ts.map +1 -0
  16. package/dist/index.js +108 -0
  17. package/dist/index.js.map +1 -0
  18. package/dist/mcp-client.d.ts +37 -0
  19. package/dist/mcp-client.d.ts.map +1 -0
  20. package/dist/mcp-client.js +137 -0
  21. package/dist/mcp-client.js.map +1 -0
  22. package/dist/mcp-registration.d.ts +25 -0
  23. package/dist/mcp-registration.d.ts.map +1 -0
  24. package/dist/mcp-registration.js +93 -0
  25. package/dist/mcp-registration.js.map +1 -0
  26. package/dist/sse-listener.d.ts +37 -0
  27. package/dist/sse-listener.d.ts.map +1 -0
  28. package/dist/sse-listener.js +152 -0
  29. package/dist/sse-listener.js.map +1 -0
  30. package/dist/wake.d.ts +67 -0
  31. package/dist/wake.d.ts.map +1 -0
  32. package/dist/wake.js +234 -0
  33. package/dist/wake.js.map +1 -0
  34. package/openclaw.plugin.json +14 -12
  35. package/package.json +24 -5
  36. package/skills/brainstorm/SKILL.md +163 -0
  37. package/skills/chorus/SKILL.md +413 -0
  38. package/skills/develop/SKILL.md +434 -0
  39. package/skills/idea/SKILL.md +293 -0
  40. package/skills/openspec-aware/SKILL.md +425 -0
  41. package/skills/proposal/SKILL.md +397 -0
  42. package/skills/proposal-reviewer/SKILL.md +117 -0
  43. package/skills/quick-dev/SKILL.md +198 -0
  44. package/skills/review/SKILL.md +354 -0
  45. package/skills/task-reviewer/SKILL.md +113 -0
  46. package/skills/yolo/SKILL.md +498 -0
  47. package/src/commands.ts +147 -57
  48. package/src/config.ts +23 -10
  49. package/src/event-router.ts +46 -54
  50. package/src/index.ts +56 -83
  51. package/src/mcp-client.ts +17 -0
  52. package/src/mcp-registration.ts +142 -0
  53. package/src/openclaw-sdk.d.ts +95 -0
  54. package/src/wake.ts +310 -0
  55. package/src/tools/admin-tools.ts +0 -117
  56. package/src/tools/common-tools.ts +0 -546
  57. package/src/tools/dev-tools.ts +0 -97
  58. package/src/tools/pm-tools.ts +0 -390
@@ -0,0 +1,434 @@
1
+ ---
2
+ name: develop
3
+ description: Chorus Development workflow — claim tasks, report work, manage sessions, and run wave-based execution on OpenClaw.
4
+ license: AGPL-3.0
5
+ metadata:
6
+ author: chorus
7
+ version: "0.9.0"
8
+ category: project-management
9
+ mcp_server: chorus
10
+ ---
11
+
12
+ # Develop Skill
13
+
14
+ This skill covers the **Development** stage of the AI-DLC workflow: claiming Tasks, writing code, reporting progress, submitting for verification, and managing sessions for sub-agent observability.
15
+
16
+ > **Tool namespace:** Chorus tools are exposed by the connected MCP server under a `chorus__` prefix on OpenClaw (e.g. `chorus__chorus_claim_task`). Bare names are used below for readability — prepend `chorus__` when invoking. See `/chorus` for the full rule.
17
+
18
+ ---
19
+
20
+ ## Overview
21
+
22
+ Developer Agents take Tasks created by PM Agents (via `/proposal`) and turn them into working code. Each task follows:
23
+
24
+ ```
25
+ claim --> in_progress --> report work --> self-check AC --> submit for verify --> reviewer --> Admin /review
26
+ ```
27
+
28
+ For multi-task execution, OpenClaw runs **sequential waves** (the main agent works tasks in dependency order) — see [Wave-Based Execution](#wave-based-execution-on-openclaw) below.
29
+
30
+ ---
31
+
32
+ ## Tools
33
+
34
+ **Task Lifecycle:**
35
+
36
+ | Tool | Purpose |
37
+ |------|---------|
38
+ | `chorus_claim_task` | Claim an open task (open -> assigned) |
39
+ | `chorus_release_task` | Release a claimed task (assigned -> open) |
40
+ | `chorus_update_task` | Update task status (in_progress / to_verify) |
41
+ | `chorus_submit_for_verify` | Submit task for admin verification with summary |
42
+
43
+ **Work Reporting:**
44
+
45
+ | Tool | Purpose |
46
+ |------|---------|
47
+ | `chorus_report_work` | Report progress or completion (writes comment + records activity, with optional status update) |
48
+
49
+ **Acceptance Criteria:**
50
+
51
+ | Tool | Purpose |
52
+ |------|---------|
53
+ | `chorus_report_criteria_self_check` | Report self-check results (passed/failed + optional evidence) on structured acceptance criteria |
54
+
55
+ **Session (sub-agents only — main agent skips these):**
56
+
57
+ | Tool | Purpose |
58
+ |------|---------|
59
+ | `chorus_create_session` | Create a session for a sub-agent (manual on OpenClaw — see below) |
60
+ | `chorus_session_checkin_task` | Checkin to a task before starting work |
61
+ | `chorus_session_checkout_task` | Checkout from a task when work is done |
62
+ | `chorus_close_session` | Close the session when the sub-agent finishes |
63
+
64
+ Sub-agents: always pass `sessionUuid` to `chorus_update_task` and `chorus_report_work` for attribution.
65
+ Main agent / Team Lead: call these tools without `sessionUuid` — no session needed.
66
+
67
+ **Shared tools** (checkin, query, comment, search, notifications): see `/chorus`
68
+
69
+ ---
70
+
71
+ ## Workflow
72
+
73
+ ### Step 1: Check In
74
+
75
+ ```
76
+ chorus_checkin()
77
+ ```
78
+
79
+ Review your persona, current assignments, and pending work counts.
80
+
81
+ ### Step 1.5: Manage Your Session (Sub-Agents Only)
82
+
83
+ **Skip if you are the main agent.**
84
+
85
+ > **OpenClaw difference:** the Claude Code plugin auto-creates and auto-injects a sub-agent's session via a SubagentStart hook. **OpenClaw does not run that hook.** Session handling is **manual**: if you are a sub-agent and the host did not hand you a `sessionUuid`, create one yourself once at the start, keep it for all task operations, and close it when you finish.
86
+
87
+ ```
88
+ # Create your own session (only if no sessionUuid was provided to you)
89
+ chorus_create_session({ name: "<descriptive-worker-name>" })
90
+ # -> keep the returned sessionUuid for every task call below
91
+ ```
92
+
93
+ If the OpenClaw host *did* inject a `sessionUuid` into your prompt (some hosts forward parent context), reuse it instead of creating a new one. When in doubt, create one — duplicate idle sessions are harmless and auto-go-inactive after 1h.
94
+
95
+ ### Step 2: Find Work
96
+
97
+ ```
98
+ chorus_get_available_tasks({ projectUuid: "<project-uuid>" })
99
+ ```
100
+
101
+ Or check existing assignments:
102
+
103
+ ```
104
+ chorus_get_my_assignments()
105
+ ```
106
+
107
+ ### Step 3: Claim a Task
108
+
109
+ ```
110
+ chorus_get_task({ taskUuid: "<task-uuid>" }) # Review first
111
+ chorus_claim_task({ taskUuid: "<task-uuid>" })
112
+ ```
113
+
114
+ Check: description, acceptance criteria, priority, story points, related proposal/documents.
115
+
116
+ ### Step 4: Gather Context
117
+
118
+ Each task and proposal includes a `commentCount` field — use it to decide which entities have discussions worth reading.
119
+
120
+ 1. **Read the task** and identify dependencies:
121
+ ```
122
+ chorus_get_task({ taskUuid: "<task-uuid>" })
123
+ ```
124
+ Pay attention to `dependsOn` (upstream tasks) and `commentCount`.
125
+
126
+ 2. **Read task comments** (contains previous work reports, progress, feedback):
127
+ ```
128
+ chorus_get_comments({ targetType: "task", targetUuid: "<task-uuid>" })
129
+ ```
130
+
131
+ 3. **Review upstream dependency tasks** — your work likely builds on theirs:
132
+ ```
133
+ chorus_get_task({ taskUuid: "<dependency-task-uuid>" })
134
+ chorus_get_comments({ targetType: "task", targetUuid: "<dependency-task-uuid>" })
135
+ ```
136
+ Look for: files created, API contracts, interfaces, trade-offs.
137
+
138
+ 4. **Read the originating proposal** for design intent:
139
+ ```
140
+ chorus_get_proposal({ proposalUuid: "<proposal-uuid>" })
141
+ ```
142
+
143
+ 5. **Read project documents** (PRD, tech design, ADR):
144
+ ```
145
+ chorus_get_documents({ projectUuid: "<project-uuid>" })
146
+ ```
147
+
148
+ > **Document update flow (OpenSpec mode):** if the originating proposal `description` contains a line `OpenSpec change slug: <slug>`, the project's PRD / tech_design / spec Documents are **mirrors** of files under `openspec/changes/<slug>/`. To update such a Document (e.g. clarify an AC, fix a spec scenario before resubmitting), load the `openspec-aware` skill and follow §3.8: edit the local `.md` file first, then mirror through the `chorus-api.sh` wrapper with `json_encode_file` and `chorus_check_response`. (OpenClaw runs `openspec-aware`'s detection inline — there is no SessionStart hook; see `openspec-aware` §1.)
149
+ >
150
+ > **⛔ Do not** call `chorus_pm_update_document` directly from the MCP harness with a hand-typed `content` field in OpenSpec mode. The local file is the source of truth; agent-typed content drifts and burns tokens (`openspec-aware` §2 Rule 1).
151
+ >
152
+ > When the LAST task of an OpenSpec idea is verified, run the archive flow yourself (`openspec-aware` §3.9): run `openspec archive <slug> --yes`, then mirror each emitted `openspec/specs/<capability>/spec.md` back via §3.8. **OpenClaw has no PostToolUse hook to remind you** — check after each verify whether the just-verified task was the last of its idea, and if so trigger the archive flow yourself.
153
+ >
154
+ > In the no-OpenSpec fallback (no slug line, or no `openspec` CLI), edit the Document content directly via the existing MCP tool with no wrapper, no local file step.
155
+
156
+ ### Step 5: Start Working
157
+
158
+ **Sub-agent**: checkin to the task first:
159
+ ```
160
+ chorus_session_checkin_task({ sessionUuid: "<session-uuid>", taskUuid: "<task-uuid>" })
161
+ ```
162
+
163
+ Then mark as in-progress:
164
+ ```
165
+ # Sub-agent:
166
+ chorus_update_task({ taskUuid: "<task-uuid>", status: "in_progress", sessionUuid: "<session-uuid>" })
167
+
168
+ # Main agent:
169
+ chorus_update_task({ taskUuid: "<task-uuid>", status: "in_progress" })
170
+ ```
171
+
172
+ > **Dependency enforcement**: If this task has unresolved dependencies (dependsOn tasks not in `done` or `closed`), the call will be rejected with detailed blocker info. Use `chorus_get_unblocked_tasks` to find tasks you can start now.
173
+
174
+ ### Step 6: Report Progress
175
+
176
+ Report periodically with `chorus_report_work`. Include:
177
+ - What was completed
178
+ - Files created or modified
179
+ - Git commits and PRs
180
+ - Current status / remaining work
181
+ - Blockers or questions
182
+
183
+ ```
184
+ chorus_report_work({
185
+ taskUuid: "<task-uuid>",
186
+ report: "Progress:\n- Created src/services/auth.service.ts\n- Commit: abc1234\n- Remaining: unit tests",
187
+ sessionUuid: "<session-uuid>"
188
+ })
189
+ ```
190
+
191
+ Report with status update when complete:
192
+ ```
193
+ chorus_report_work({
194
+ taskUuid: "<task-uuid>",
195
+ report: "All implementation complete:\n- Files: ...\n- PR: https://github.com/org/repo/pull/42\n- All tests passing",
196
+ status: "to_verify",
197
+ sessionUuid: "<session-uuid>"
198
+ })
199
+ ```
200
+
201
+ ### Step 7: Self-Check Acceptance Criteria
202
+
203
+ Before submitting, check structured acceptance criteria:
204
+
205
+ ```
206
+ task = chorus_get_task({ taskUuid: "<task-uuid>" })
207
+
208
+ # If task.acceptanceCriteriaItems is non-empty:
209
+ chorus_report_criteria_self_check({
210
+ taskUuid: "<task-uuid>",
211
+ criteria: [
212
+ { uuid: "<criterion-uuid>", devStatus: "passed", devEvidence: "Unit tests cover this" },
213
+ { uuid: "<criterion-uuid>", devStatus: "passed", devEvidence: "Verified manually" }
214
+ ]
215
+ })
216
+ ```
217
+
218
+ > For **required** criteria, keep working until you can self-check as `passed`. Only use `failed` for **optional** criteria that are out of scope.
219
+
220
+ ### Step 8: Submit for Verification
221
+
222
+ **Sub-agents** — checkout first:
223
+ ```
224
+ chorus_session_checkout_task({ sessionUuid: "<session-uuid>", taskUuid: "<task-uuid>" })
225
+ ```
226
+
227
+ Then submit:
228
+ ```
229
+ chorus_submit_for_verify({
230
+ taskUuid: "<task-uuid>",
231
+ summary: "Implemented auth feature:\n- Added login/logout endpoints\n- JWT middleware\n- 95% test coverage\n- All AC self-checked (3/3 passed)"
232
+ })
233
+ ```
234
+
235
+ > `to_verify` does NOT unblock downstream tasks — only `done` (after admin verification) does.
236
+
237
+ ### Step 8.5: Run the Task Reviewer (inline — no hook on OpenClaw)
238
+
239
+ > **OpenClaw difference:** the Claude Code plugin relies on a PostToolUse hook to inject a "spawn the reviewer" reminder after `chorus_submit_for_verify`. **OpenClaw has no such hook.** Run the reviewer step **inline**, right here, immediately after submitting. Do not wait for an injected reminder.
240
+
241
+ Obtain an independent VERDICT before the task is verified:
242
+
243
+ 1. **Preferred — spawn a reviewer sub-agent.** Use the OpenClaw `sessions_spawn` tool to spawn a sub-agent whose `task` tells it to **invoke the `/task-reviewer` skill** (bundled with this plugin) against the task, then wait for it (poll the `subagents` tool or use `sessions_yield` — do NOT detach; you need the VERDICT before proceeding). The sub-agent inherits the plugin skills, so `/task-reviewer` is available to it; that skill is read-only (read-only bash for tests/build allowed) and posts a `VERDICT:` comment on the task. Example task prompt:
244
+ > `Run the /task-reviewer skill to verify taskUuid <uuid>. Read the task, its AC, the proposal documents, and the code; run the project's tests; verify each AC independently; post your VERDICT comment on the task when done.`
245
+
246
+ 2. **Fallback — review it yourself.** If `sessions_spawn` is unavailable on your host (spawning disabled by policy), perform the review yourself as a **focused, read-only pass** following the `/task-reviewer` skill's procedure: read `chorus_get_task`, `chorus_get_comments`, the originating proposal and its documents; read the code that implements each AC (do not trust the developer summary); run the project's test/build commands; verify each acceptance criterion independently. Then record the result yourself via `chorus_add_comment` ending with a `VERDICT:` line (PASS / PASS WITH NOTES / FAIL). Do NOT modify project files during this pass — it is review-only (read-only bash for tests/build is fine). Use the same BLOCKER vs NOTE classification the `/task-reviewer` skill defines.
247
+
248
+ 3. **Read the VERDICT and act:**
249
+ ```
250
+ chorus_get_comments({ targetType: "task", targetUuid: "<task-uuid>" })
251
+ ```
252
+ Find the most recent comment containing `VERDICT:`:
253
+ - **VERDICT: PASS** — All AC verified, no issues. Proceed to admin verification.
254
+ - **VERDICT: PASS WITH NOTES** — All AC verified, minor notes. Proceed to admin verification (notes are non-blocking).
255
+ - **VERDICT: FAIL** — BLOCKERs found. Do NOT verify. Fix the BLOCKERs listed in the reviewer's comment, then resubmit (Step 9).
256
+
257
+ If you spawned a sub-agent and no new `VERDICT:` comment appears after it returns, it exhausted its turn budget. Respawn it ONCE with a concise-budget hint: *"Stay within turn budget. Skip deep verification. Fetch task/proposal/comments, run only the core tests, and post your VERDICT within the first 12 turns."* If the second attempt still produces no VERDICT, fall back to reviewing manually (Step 8.5 fallback) and post the VERDICT yourself.
258
+
259
+ ### Step 9: Handle Review Feedback
260
+
261
+ If the reviewer returns **FAIL**, or the task is reopened after verification:
262
+
263
+ **All acceptance criteria are reset to pending** when a task is reopened.
264
+
265
+ 1. Check feedback:
266
+ ```
267
+ chorus_get_task({ taskUuid: "<task-uuid>" })
268
+ chorus_get_comments({ targetType: "task", targetUuid: "<task-uuid>" })
269
+ ```
270
+ 2. Fix every BLOCKER listed in the reviewer's FAIL comment.
271
+ 3. Checkin again (sub-agent), fix issues, report fixes, resubmit, and re-run the reviewer (Step 8.5).
272
+
273
+ ### Step 10: Task Complete
274
+
275
+ Once Admin verifies (status: `done`), move to the next available task (back to Step 2).
276
+
277
+ ### Step 11: Idea Completion Report (advisory)
278
+
279
+ If the task you just self-verified was the LAST one of its Idea (every Task across every approved Proposal is now `done`/`closed`) and you have `document:write`, offer to call `chorus_create_report`. On OpenClaw, ask the user as a plain-text prompt (e.g. "This was the last task of the idea. Want me to write a completion report? Reply yes/no.") — there is no `AskUserQuestion` primitive. The tool description carries the section template. Skip on decline.
280
+
281
+ ---
282
+
283
+ ## Session (Sub-Agents Only)
284
+
285
+ > **OpenClaw difference:** session lifecycle is **manual** on OpenClaw. The Claude Code plugin automates creation, heartbeat, and cleanup via hooks; OpenClaw does not run those hooks. A sub-agent therefore manages its own session:
286
+
287
+ 1. `chorus_create_session({ name })` — once at the start, unless the host already gave you a `sessionUuid`
288
+ 2. `chorus_session_checkin_task({ sessionUuid, taskUuid })` — before starting work on each task
289
+ 3. Pass `sessionUuid` to `chorus_update_task` and `chorus_report_work` for attribution
290
+ 4. `chorus_session_checkout_task({ sessionUuid, taskUuid })` — when done with each task
291
+ 5. `chorus_close_session({ sessionUuid })` — when the sub-agent finishes (no hook closes it for you)
292
+
293
+ To keep a long-running session visible/active, send `chorus_session_heartbeat({ sessionUuid })` periodically (any session-touching tool also refreshes it).
294
+
295
+ **Main agent / Team Lead**: no session needed — call tools without `sessionUuid`.
296
+
297
+ ---
298
+
299
+ ## Wave-Based Execution on OpenClaw
300
+
301
+ > **OpenClaw difference:** OpenClaw has **no Agent Teams / `TeamCreate` primitive**. The Claude Code plugin can spawn a parallel team per wave; on OpenClaw you (the main agent) execute tasks **sequentially** in dependency order. This is slower than parallel teams but completes the same pipeline.
302
+
303
+ ### Sequential wave loop
304
+
305
+ ```
306
+ loop:
307
+ # 1. Find ready tasks (all dependencies done/closed)
308
+ unblocked = chorus_get_unblocked_tasks({ projectUuid: "<project-uuid>" })
309
+
310
+ if no unblocked tasks and all tasks done/closed:
311
+ break # All complete
312
+
313
+ if no unblocked tasks but some remain (not done):
314
+ break with escalation note # stuck — likely a failed review blocking the DAG
315
+
316
+ # 2. Work each unblocked task yourself, in order:
317
+ for each task in unblocked:
318
+ chorus_claim_task({ taskUuid: task.uuid })
319
+ chorus_update_task({ taskUuid: task.uuid, status: "in_progress" })
320
+ # ... read context, implement, run tests (Steps 4-7) ...
321
+ chorus_report_work({ taskUuid: task.uuid, report: "...", status: "to_verify" })
322
+ chorus_report_criteria_self_check({ taskUuid: task.uuid, criteria: [...] })
323
+ chorus_submit_for_verify({ taskUuid: task.uuid, summary: "..." })
324
+ # Step 8.5: run the task-reviewer inline; act on its VERDICT
325
+ # If you have task:admin, verify the task to "done" (this unblocks dependents)
326
+
327
+ # 3. Loop — chorus_get_unblocked_tasks now returns the next wave
328
+ ```
329
+
330
+ > **Critical:** `to_verify` does NOT resolve dependencies — only `done` or `closed` does. A task must be **verified to `done`** (by an Admin, or by you if you hold `task:admin`) before its dependents become unblocked. If you lack `task:admin`, submit each task for verify and ask the project's admin to verify between waves, then re-run `chorus_get_unblocked_tasks`.
331
+
332
+ > **Claude-Code-only optimization (degrades to sequential here):** under the Claude Code plugin, each wave can be dispatched in parallel via `TeamCreate` + per-task sub-agents. OpenClaw has no such primitive, so the loop above runs serially. Do NOT attempt to call `TeamCreate` on OpenClaw — it does not exist.
333
+
334
+ ### Optional: sub-agent dispatch
335
+
336
+ If your OpenClaw host *does* support spawning worker sub-agents (not Agent Teams, just generic sub-agents), you may hand each a task. Because there is no SubagentStart hook, the worker prompt **must** include the manual session instructions explicitly:
337
+
338
+ ```
339
+ Your Chorus task UUID: <task-uuid>
340
+ Project UUID: <project-uuid>
341
+
342
+ Session handling is MANUAL on OpenClaw:
343
+ 1. chorus_create_session({ name: "<worker-name>" }) -> keep the sessionUuid
344
+ 2. chorus_session_checkin_task({ sessionUuid, taskUuid })
345
+ 3. chorus_update_task({ taskUuid, status: "in_progress", sessionUuid })
346
+ 4. implement, then chorus_report_work({ ..., sessionUuid })
347
+ 5. chorus_report_criteria_self_check({ taskUuid, criteria: [...] })
348
+ 6. chorus_session_checkout_task({ sessionUuid, taskUuid })
349
+ 7. chorus_submit_for_verify({ taskUuid, summary })
350
+ 8. chorus_close_session({ sessionUuid })
351
+ ```
352
+
353
+ The main agent still owns review + verification between waves.
354
+
355
+ ### MCP Access for Sub-Agents
356
+
357
+ If you dispatch sub-agents, ensure they can reach the Chorus MCP server — the plugin config (and therefore the `chorus__*` tools) must be available in the sub-agent's environment, and the API key must carry the needed permissions.
358
+
359
+ ### Troubleshooting
360
+
361
+ | Problem | Solution |
362
+ |---------|----------|
363
+ | Sub-agent can't access Chorus MCP tools | Verify the Chorus MCP server is registered/connected for the sub-agent and the API key has developer permissions |
364
+ | UI doesn't show active workers | Sub-agent forgot `chorus_session_checkin_task`, or never created a session. Check `chorus_get_session` / `chorus_list_sessions` |
365
+ | Session disappears from Settings | No activity for 1h (default lists hide stale sessions). The session row still exists — reachable via `chorus_list_sessions` / `chorus_get_session`. Send `chorus_session_heartbeat` (or any session-touching tool) to make it visible again |
366
+ | Task stuck in wrong status | Use `chorus_update_task` to reset, or have the worker re-checkin |
367
+ | Duplicate sessions | On OpenClaw the sub-agent creates its own session — if it created several, close extras via `chorus_close_session` or the Settings page |
368
+
369
+ ---
370
+
371
+ ## Work Report Best Practices
372
+
373
+ **Good report (enables session continuity):**
374
+ ```
375
+ Implemented password reset flow:
376
+
377
+ Files created/modified:
378
+ - src/services/auth.service.ts (new)
379
+ - src/app/api/auth/reset/route.ts (new)
380
+ - tests/auth/reset.test.ts (new)
381
+
382
+ Git:
383
+ - Commit: a1b2c3d "feat: password reset flow"
384
+ - PR: https://github.com/org/repo/pull/15
385
+
386
+ Implementation details:
387
+ - POST /api/auth/reset-request: sends email with token
388
+ - Token expires after 1 hour, single-use
389
+ - Rate limiting: 3 requests/hour/email
390
+ - 12 new tests, all passing
391
+
392
+ Acceptance criteria:
393
+ - [x] User can request reset via email
394
+ - [x] Reset link expires after 1 hour
395
+ - [x] Rate limiting prevents abuse
396
+ ```
397
+
398
+ **Bad report:** `Done.`
399
+
400
+ ---
401
+
402
+ ## Tips
403
+
404
+ - **Read task comments first** — they contain previous work reports for session continuity
405
+ - **Check upstream dependencies** — read `dependsOn` tasks and their comments for interfaces/APIs
406
+ - **Read the originating proposal** — understand design rationale and task DAG
407
+ - **Use `commentCount`** — skip fetching comments on entities with count 0
408
+ - Report progress frequently — include file paths, commits, and PRs
409
+ - Write detailed submit summaries — Admin needs them to verify
410
+ - Always run the reviewer inline after submit (Step 8.5) — OpenClaw has no hook to remind you
411
+ - Sessions are manual on OpenClaw — create, checkin/checkout, and close your own session as a sub-agent
412
+ - If blocked, add a comment and consider releasing the task
413
+ - One task at a time: finish or release before claiming another
414
+
415
+ ---
416
+
417
+ ## When to Release a Task
418
+
419
+ Release if:
420
+ - You can't complete it (missing knowledge, blocked)
421
+ - A higher-priority task needs attention
422
+ - You won't finish in a reasonable timeframe
423
+
424
+ ```
425
+ chorus_release_task({ taskUuid: "<task-uuid>" })
426
+ chorus_add_comment({ targetType: "task", targetUuid: "<task-uuid>", content: "Releasing: reason..." })
427
+ ```
428
+
429
+ ---
430
+
431
+ ## Next
432
+
433
+ - After submitting for verification, an Admin reviews using `/review`
434
+ - For platform overview and shared tools, see `/chorus`