@detergent-software/conductor 1.2.0-dev.1 → 1.2.0-dev.10

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 (60) hide show
  1. package/CHANGELOG.md +86 -0
  2. package/README.md +35 -16
  3. package/build/brief-cli.js +2 -0
  4. package/build/brief-cli.js.map +1 -1
  5. package/build/brief.js +13 -0
  6. package/build/brief.js.map +1 -1
  7. package/build/cli.js +196 -40
  8. package/build/cli.js.map +1 -1
  9. package/build/conditions.js +20 -0
  10. package/build/conditions.js.map +1 -1
  11. package/build/daemon.js +20 -7
  12. package/build/daemon.js.map +1 -1
  13. package/build/help.js +16 -3
  14. package/build/help.js.map +1 -1
  15. package/build/history.js +96 -0
  16. package/build/history.js.map +1 -1
  17. package/build/inbox.js +87 -15
  18. package/build/inbox.js.map +1 -1
  19. package/build/manager.js +46 -6
  20. package/build/manager.js.map +1 -1
  21. package/build/note.js +14 -3
  22. package/build/note.js.map +1 -1
  23. package/build/notes.js +70 -6
  24. package/build/notes.js.map +1 -1
  25. package/build/paths.js +2 -0
  26. package/build/paths.js.map +1 -1
  27. package/build/profile.js +8 -0
  28. package/build/profile.js.map +1 -1
  29. package/build/queue.js +67 -14
  30. package/build/queue.js.map +1 -1
  31. package/build/rule-actions.js +82 -10
  32. package/build/rule-actions.js.map +1 -1
  33. package/build/rules-service.js +29 -10
  34. package/build/rules-service.js.map +1 -1
  35. package/build/rules.js +28 -5
  36. package/build/rules.js.map +1 -1
  37. package/build/scheduler.js +93 -12
  38. package/build/scheduler.js.map +1 -1
  39. package/build/server.js +6 -3
  40. package/build/server.js.map +1 -1
  41. package/build/spend.js +13 -8
  42. package/build/spend.js.map +1 -1
  43. package/build/startup.js +30 -16
  44. package/build/startup.js.map +1 -1
  45. package/build/stop-request.js +83 -0
  46. package/build/stop-request.js.map +1 -0
  47. package/build/store.js +65 -2
  48. package/build/store.js.map +1 -1
  49. package/build/supervise.js +153 -0
  50. package/build/supervise.js.map +1 -0
  51. package/build/transcript.js +179 -0
  52. package/build/transcript.js.map +1 -0
  53. package/build/upgrade.js +9 -5
  54. package/build/upgrade.js.map +1 -1
  55. package/build/watchers/linear-queue.js +66 -5
  56. package/build/watchers/linear-queue.js.map +1 -1
  57. package/mod/hooks/model.ts +6 -0
  58. package/mod/hooks/register.tsx +4 -1
  59. package/mod/types/index.d.ts +2 -0
  60. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -2,6 +2,92 @@
2
2
 
3
3
  Releases are tagged `conductor-v<version>` and staged on npm by `atk-conductor-release` (`pipelines/release-conductor.yml`), which writes each section below. `scripts/check-changelog.mjs` fails when a tag has no section here.
4
4
 
5
+ ## [1.2.0-dev.10](https://emergentcode.visualstudio.com/Emergent%20Software/_git/Emergent.AgenticToolkit/branchCompare?baseVersion=GTconductor-v1.2.0-dev.9&targetVersion=GTconductor-v1.2.0-dev.10) (2026-10-14)
6
+
7
+ ### Bug Fixes
8
+
9
+ * **conductor:** count a re-plan with an unreadable brief as revised ([78c1b7e](https://emergentcode.visualstudio.com/Emergent%20Software/_git/Emergent.AgenticToolkit/commit/78c1b7e4093199fc8c6144dfc6431a3d00cd88a0))
10
+ * **conductor:** count a revise: written while no approval wait is open ([845c34a](https://emergentcode.visualstudio.com/Emergent%20Software/_git/Emergent.AgenticToolkit/commit/845c34a480a453d824e2a2d2b58a48202c7f327f))
11
+
12
+ ## [1.2.0-dev.9](https://emergentcode.visualstudio.com/Emergent%20Software/_git/Emergent.AgenticToolkit/branchCompare?baseVersion=GTconductor-v1.2.0-dev.8&targetVersion=GTconductor-v1.2.0-dev.9) (2026-10-13)
13
+
14
+ ### Features
15
+
16
+ * **conductor:** hold triage-labelled items and raise them in the inbox ([326546c](https://emergentcode.visualstudio.com/Emergent%20Software/_git/Emergent.AgenticToolkit/commit/326546ce0f3ef97e346a462fc2f6a665dfe9cd03))
17
+ * **conductor:** let conduct stop reach a waiting supervisor (ATK-433) ([b2090ab](https://emergentcode.visualstudio.com/Emergent%20Software/_git/Emergent.AgenticToolkit/commit/b2090ab1777128053563ba46f0a28c91e06f388a))
18
+
19
+ ### Bug Fixes
20
+
21
+ * **conductor:** leave triageLabel out of ATK's profile until daemons read it ([d588fbc](https://emergentcode.visualstudio.com/Emergent%20Software/_git/Emergent.AgenticToolkit/commit/d588fbcd00ccbd8265d70dbd81175cfa5e45480a))
22
+ * **conductor:** never leave a stop request pending (ATK-433) ([fe4eaca](https://emergentcode.visualstudio.com/Emergent%20Software/_git/Emergent.AgenticToolkit/commit/fe4eaca403ba9c3d717887516af3638aa4e13682))
23
+ * **conductor:** resolve triage items only when the label goes ([d00dcd5](https://emergentcode.visualstudio.com/Emergent%20Software/_git/Emergent.AgenticToolkit/commit/d00dcd5f7fd48ea0e1089c4a1679b26fbbfe36e0))
24
+ * **conductor:** skip the supervisor wait when none runs (ATK-433) ([462b572](https://emergentcode.visualstudio.com/Emergent%20Software/_git/Emergent.AgenticToolkit/commit/462b5725bf47758e6bafe297b5b0da30c0662ee7))
25
+
26
+ ## [1.2.0-dev.8](https://emergentcode.visualstudio.com/Emergent%20Software/_git/Emergent.AgenticToolkit/branchCompare?baseVersion=GTconductor-v1.2.0-dev.7&targetVersion=GTconductor-v1.2.0-dev.8) (2026-10-13)
27
+
28
+ ### Bug Fixes
29
+
30
+ * **conductor:** load a profile's disk rules at once, refuse unreadable ones (ATK-420) ([b60757c](https://emergentcode.visualstudio.com/Emergent%20Software/_git/Emergent.AgenticToolkit/commit/b60757c952170500b20edbd8c5806227c5ce173f))
31
+ * **conductor:** name the open call in a permission stall (ATK-431) ([d77c10c](https://emergentcode.visualstudio.com/Emergent%20Software/_git/Emergent.AgenticToolkit/commit/d77c10c468800537017f5bc4b5a41501236731ca))
32
+ * **conductor:** pick the prompting call, not one running beside it (ATK-431) ([ad3e7ec](https://emergentcode.visualstudio.com/Emergent%20Software/_git/Emergent.AgenticToolkit/commit/ad3e7ec552374ad365189986631b98780577d14b))
33
+ * **conductor:** take a profile's changed rules when the rules load (ATK-420) ([bab7f5d](https://emergentcode.visualstudio.com/Emergent%20Software/_git/Emergent.AgenticToolkit/commit/bab7f5d216fd83c15907e43ec9771c3fda9bfe45))
34
+
35
+ ## [1.2.0-dev.7](https://emergentcode.visualstudio.com/Emergent%20Software/_git/Emergent.AgenticToolkit/branchCompare?baseVersion=GTconductor-v1.2.0-dev.6&targetVersion=GTconductor-v1.2.0-dev.7) (2026-10-13)
36
+
37
+ ### Bug Fixes
38
+
39
+ * **conductor:** read older daemons' workers and end crashed plans (ATK-418) ([2264ed7](https://emergentcode.visualstudio.com/Emergent%20Software/_git/Emergent.AgenticToolkit/commit/2264ed7afa84b7beeab5f75d1038cbaef2b98464))
40
+ * **conductor:** record workers' PRs and why the queue waits (ATK-418) ([8e8073c](https://emergentcode.visualstudio.com/Emergent%20Software/_git/Emergent.AgenticToolkit/commit/8e8073c711d521d427fb1959369493f985ae8eba))
41
+
42
+ ## [1.2.0-dev.6](https://emergentcode.visualstudio.com/Emergent%20Software/_git/Emergent.AgenticToolkit/branchCompare?baseVersion=GTconductor-v1.2.0-dev.5&targetVersion=GTconductor-v1.2.0-dev.6) (2026-10-13)
43
+
44
+ ### Features
45
+
46
+ * **conductor:** supervise the daemon and push when it stays down (ATK-417) ([68f70e3](https://emergentcode.visualstudio.com/Emergent%20Software/_git/Emergent.AgenticToolkit/commit/68f70e3f9e7cd13dadc4948c2773399add6b51f5))
47
+
48
+ ### Bug Fixes
49
+
50
+ * **conductor:** fail fast only before serve comes up; stop on Ctrl+C (ATK-417) ([9aadd39](https://emergentcode.visualstudio.com/Emergent%20Software/_git/Emergent.AgenticToolkit/commit/9aadd39a76441243c6fcf56d60f5a9c9138b9b7c))
51
+ * **conductor:** retry the stop on each Ctrl+C; start advice (ATK-417) ([cc07dc8](https://emergentcode.visualstudio.com/Emergent%20Software/_git/Emergent.AgenticToolkit/commit/cc07dc802b312cfe779c5c61bdc20d6e4c649141))
52
+ * **conductor:** see a serve's exit when a child holds its pipes (ATK-417) ([ab33fc3](https://emergentcode.visualstudio.com/Emergent%20Software/_git/Emergent.AgenticToolkit/commit/ab33fc367fc415d14465df4547a3c97c6fdb8141))
53
+
54
+ ## [1.2.0-dev.5](https://emergentcode.visualstudio.com/Emergent%20Software/_git/Emergent.AgenticToolkit/branchCompare?baseVersion=GTconductor-v1.2.0-dev.4&targetVersion=GTconductor-v1.2.0-dev.5) (2026-10-13)
55
+
56
+ ### Bug Fixes
57
+
58
+ * **conductor:** count only Handoffs with nothing to watch as a wait ([a2f9ef8](https://emergentcode.visualstudio.com/Emergent%20Software/_git/Emergent.AgenticToolkit/commit/a2f9ef8a25d880b671fb2550d8f08fb2407b78f1))
59
+ * **conductor:** don't call a worker idle while its Handoff is open ([ceaf5fb](https://emergentcode.visualstudio.com/Emergent%20Software/_git/Emergent.AgenticToolkit/commit/ceaf5fb1fc1e636dc27ef7f0b13975823d7d800a))
60
+
61
+ ## [1.2.0-dev.4](https://emergentcode.visualstudio.com/Emergent%20Software/_git/Emergent.AgenticToolkit/branchCompare?baseVersion=GTconductor-v1.2.0-dev.3&targetVersion=GTconductor-v1.2.0-dev.4) (2026-10-13)
62
+
63
+ ### Features
64
+
65
+ * **conductor:** hold items a worker can't do, and items that wait on a release (ATK-415) ([798cb8a](https://emergentcode.visualstudio.com/Emergent%20Software/_git/Emergent.AgenticToolkit/commit/798cb8a4056b3d39d8b94483049edf1552f73485))
66
+
67
+ ### Bug Fixes
68
+
69
+ * **conductor:** tighten the release wait's shipped check and blockers (ATK-415) ([afe60e9](https://emergentcode.visualstudio.com/Emergent%20Software/_git/Emergent.AgenticToolkit/commit/afe60e9ab0b9ce97a7463d93cb1177cd90b86ea2))
70
+
71
+ ## [1.2.0-dev.3](https://emergentcode.visualstudio.com/Emergent%20Software/_git/Emergent.AgenticToolkit/branchCompare?baseVersion=GTconductor-v1.2.0-dev.2&targetVersion=GTconductor-v1.2.0-dev.3) (2026-10-13)
72
+
73
+ ### Features
74
+
75
+ * **conductor:** auto-approve now, and a revise after it reaches the worker (ATK-413) ([795fc0f](https://emergentcode.visualstudio.com/Emergent%20Software/_git/Emergent.AgenticToolkit/commit/795fc0f506797e9002813c2edb4332b111c3405b))
76
+
77
+ ### Bug Fixes
78
+
79
+ * **conductor:** close the gaps around auto-approve now after review (ATK-413) ([daddbe4](https://emergentcode.visualstudio.com/Emergent%20Software/_git/Emergent.AgenticToolkit/commit/daddbe46e8f28ef2f46788ab6b1e06f10369a8cb))
80
+
81
+ ## [1.2.0-dev.2](https://emergentcode.visualstudio.com/Emergent%20Software/_git/Emergent.AgenticToolkit/branchCompare?baseVersion=GTconductor-v1.2.0-dev.1&targetVersion=GTconductor-v1.2.0-dev.2) (2026-10-13)
82
+
83
+ ### Features
84
+
85
+ * **conductor:** free an item's Area once its PR is open (ATK-412) ([bdc46e5](https://emergentcode.visualstudio.com/Emergent%20Software/_git/Emergent.AgenticToolkit/commit/bdc46e51f929b8bcdf85eacde374007305d12554))
86
+
87
+ ### Bug Fixes
88
+
89
+ * **conductor:** read an Area release from the item's current run (ATK-412) ([92ba9b0](https://emergentcode.visualstudio.com/Emergent%20Software/_git/Emergent.AgenticToolkit/commit/92ba9b0693d8cca8f43367b38975dc7359210682))
90
+
5
91
  ## [1.2.0-dev.1](https://emergentcode.visualstudio.com/Emergent%20Software/_git/Emergent.AgenticToolkit/branchCompare?baseVersion=GTconductor-v1.1.0&targetVersion=GTconductor-v1.2.0-dev.1) (2026-10-13)
6
92
 
7
93
  ### Features
package/README.md CHANGED
@@ -8,6 +8,7 @@
8
8
  conduct serve run the daemon in this process (one per machine)
9
9
  conduct start start the daemon detached and wait until it answers (see Console)
10
10
  conduct stop stop the running daemon
11
+ conduct supervise [--fail-fast] run the daemon and restart it when it dies (see Restarts)
11
12
  conduct status [--json] the daemon's pid, port, projects, workers and held locks
12
13
  conduct project add <path> register the project whose checkout holds .claude/conductor.json
13
14
  conduct project list [--json] the registered projects
@@ -56,7 +57,7 @@ conduct lock acquire|release|status <name> [--owner <id>] [--wait <minutes>]
56
57
  a lock every project shares, such as chrome (see Broker)
57
58
  conduct events [--since <id>] [--follow] [--console]
58
59
  the event log, one JSON event per line (see API)
59
- conduct install-startup start the daemon at logon (Windows Task Scheduler)
60
+ conduct install-startup start the supervised daemon at logon (Windows Task Scheduler)
60
61
  conduct install-startup --remove remove that logon task
61
62
  conduct install-mod [--remove] install the conductor mod in Claude Code (see Mod)
62
63
  conduct upgrade [--tag dev|latest] [--allow-downgrade]
@@ -78,7 +79,7 @@ The session manager owns the `claude --bg` sessions it launches, and only those:
78
79
  - **restarts:** a launch the daemon was stopped in adopts its session if one was started, and otherwise fails and removes its clean worktree.
79
80
  - **attach:** a parked worker is resumed with no event text, so it wakes idle and keeps running when its tab closes. An attached worker isn't parked until it registers a new wait, or until its turn has been over `sessions.idleMinutes` (`worker.detached`). The daemon can't see the tab, so this also delivers a wait that resolved while it was attached.
80
81
  - **park failures:** a session whose process outlives `claude stop` by 30 s logs one `worker.park-failed` per spell, which raises a `stall` in the inbox (see Inbox), and the park is tried again every 5 minutes.
81
- - **stalls:** a permission prompt open `sessions.permissionMinutes` (5), or idle `sessions.idleMinutes` (20) with no wait, logs one `worker.stalled` event per spell, and `worker.stall-cleared` when that spell ends.
82
+ - **stalls:** a permission prompt open `sessions.permissionMinutes` (5), or idle `sessions.idleMinutes` (20) with no wait, logs one `worker.stalled` event per spell, and `worker.stall-cleared` when that spell ends. `claude agents` names no command, so a permission stall reads the session's transcripts (its own and its subagents') for the call still open: its tool, the command or path, the subagent that made it, and the auto-mode classifier denials just before it. The inbox item and its push say them, for example "ATK-297 has waited 5 min on a permission prompt: Bash `git -C … diff …` in subagent general-purpose (Review ATK-297 diff vs plan), after 2 auto-mode denials". Auto mode asks a person after 3 classifier denials in a row (20 in a session), even in a background subagent, so that count is usually why the prompt came. An open item of a Handoff kind with nothing to watch (`abandoned`, `blocked`, `failed`, `human`, `jason`, `scope`) on the worker, or on its item with no worker, counts as a wait: its idle clock starts once that item resolves. A `merge`, `npm-otp` or `plan` item doesn't: those come with a wait, so a worker idle with only the item still stalls.
82
83
  - **spend:** tokens from the session's transcript and its subagents' (`~/.claude/projects/*/<session>.jsonl`), each message counted once, go into `spend` per worker and local day. It keeps input, output, cache read and cache write; `tokens` is their sum. A worker whose tokens in all, not counting cache reads, pass `inbox.runawayTokens` logs `worker.runaway` once per daemon run. Cache reads are left out because they are nearly all of a session's tokens (97% on ATK-312) at a tenth of the price.
83
84
  - **probes:** `--probe` names the worktree and session `probe-<item>` and gives it a prompt that works no issue, so tests stay out of the live fleet.
84
85
 
@@ -86,7 +87,7 @@ Worker statuses: `launching`, `running`, `parked`, `stopped-unexpectedly`, `fail
86
87
 
87
88
  ## Notes
88
89
 
89
- A worker writes each phase note (`## <work skill> · <Phase>[ · <kind>: <one line>]`, such as `## work-issue · PR opened`) with `conduct note <item> <file>`. The daemon posts the file as a comment on the item in the tracker, then records the phase at once: on the worker (`phase` in `GET /fleet` and `conduct status`), on the item, and as a `note.posted` event. The worker is `--worker <worker>`, else the one whose worktree is the current checkout, else the project's live worker on that item. The project is the worker's, else the one whose tracker key (the Linear team, or the Boards `key`) is the item's key prefix.
90
+ A worker writes each phase note (`## <work skill> · <Phase>[ · <kind>: <one line>]`, such as `## work-issue · PR opened`) with `conduct note <item> <file>`. The daemon posts the file as a comment on the item in the tracker, then records the phase at once: on the worker (`phase` in `GET /fleet` and `conduct status`), on the item, and as a `note.posted` event. A PR opened note also records the worker's PR (`pr`, such as `ado:Emergent.AgenticToolkit#1850` or `github:<owner>/<repo>#458`) from its first PR link, replacing an earlier one; until then, the worker's first `pr:` wait records it. `conduct status` and the console's fleet pane show it. The worker is `--worker <worker>`, else the one whose worktree is the current checkout, else the project's live worker on that item. The project is the worker's, else the one whose tracker key (the Linear team, or the Boards `key`) is the item's key prefix.
90
91
 
91
92
  The work skill is the profile's `skills.work`. A note headed with one of `skills.aliases` counts the same, there and wherever the daemon reads notes (approvals, `conduct wait item … note`, the review-thread checks of `conduct wait pr … comment`). So when a project renames its work skill (ATK's `work-issue` became `work-item`), the old name goes in `aliases` and items in flight keep their phases.
92
93
 
@@ -94,6 +95,7 @@ The work skill is the profile's `skills.work`. A note headed with one of `skills
94
95
  |---|---|---|
95
96
  | 0 | posted | goes on |
96
97
  | 3 | nobody posted it: no daemon, one without notes, or the tracker refused it (such as a read-only key) | posts the note to the tracker itself, as before protocol v1 |
98
+ | 4 | not posted: Jason wrote `revise: …` after the conductor auto-approved the item's newest Plan (`auto-approve now`, see Rules); stdout has his words | stops, re-plans with them, posts a new Plan and waits for approval, which the gate now holds |
97
99
  | 1 | refused (no heading, no project) or unclear (the daemon or Linear didn't answer the write) | reads the message; when it says the note may be there, looks before posting again |
98
100
 
99
101
  On Linear the daemon uses the key the watchers read (below), so that key needs **Create comments** as well as Read. Comments it writes carry the key owner's name, as the Linear MCP's do. On ADO Boards it posts a markdown discussion comment as the `az login` identity.
@@ -134,16 +136,17 @@ An item resolves itself when its condition is seen, and records what resolved it
134
136
 
135
137
  | Kind | Raised by | Resolved by |
136
138
  |---|---|---|
137
- | `plan` | a `Plan` note (`conduct note`), or an `approval` wait | the approval wait resolving (an `approve` or `revise:` comment), a `Plan approved` note, a newer Plan, or `conduct approve` / `revise` |
139
+ | `plan` | a `Plan` note (`conduct note`), or an `approval` wait; not a Plan an `auto-approve now` rule approves (unless its comment fails) | the approval wait resolving (an `approve` or `revise:` comment), a `Plan approved` note, a newer Plan, or `conduct approve` / `revise` |
138
140
  | `merge` | a `Handoff · merge: <PR>` note; a `pr … merged` wait attaches to it | its PR wait resolving as merged, abandoned or closed, or a `Landed` note. A PR wait without the note raises nothing, because auto landing needs nobody |
139
141
  | `npm-otp` | a `Handoff · npm-otp` note (the `npm stage approve …` on its heading is the command), or an `npm` wait | the version on its tag, or a `Resumed` or `Landed` note |
140
142
  | `jason`, `human`, `scope`, `blocked`, `abandoned`, `failed` | a Handoff note of that kind | any later note on the item (such as `Resumed`), or `conduct done` |
141
- | `permission`, `stall` | `worker.stalled` | `worker.stall-cleared`, a park or resume, a new wait (stall only), or a daemon restart (it is raised again if it persists) |
143
+ | `permission`, `stall` | `worker.stalled` (no idle `stall` while the worker's Handoff item with nothing to watch is open; see Workers) | `worker.stall-cleared`, a park or resume, a new wait or Handoff (stall only), or a daemon restart (it is raised again if it persists) |
142
144
  | `stall` (park failing) | `worker.park-failed`, with `conduct attach` and `conduct retire` | a park, the session stopping unexpectedly (which raises `failed`), its retirement, or a daemon restart (the park is tried again, and fails again if it still does). A new wait doesn't resolve it. A retire stops the session the same way, so when the pid outlives `claude stop`, end that process: the next sweep finds the session gone |
143
- | `failed` | a failed launch, or a session that stopped unexpectedly | a new launch, the worker running again, or its retirement |
145
+ | `failed` | a failed launch, or a session that stopped unexpectedly | a new launch, the worker running again (a retry's revive included), or its retirement |
144
146
  | `conflict` | `pr.conflict-stuck`: a watched PR has conflicted with its base for `watchers.conflictMinutes` (30) since its worker was woken for it, and the wake never reached the worker or a pass still sees the conflict; with `conduct attach` and the PR link | the PR merging cleanly again, merged or abandoned (`pr.conflict-cleared`), its retirement, or a daemon restart (the spell starts over) |
145
147
  | `runaway` | a worker passing `inbox.runawayTokens` (2M) input, output and cache-write tokens in all, once per worker | `conduct done`, or its retirement |
146
148
  | `ready-to-release`, `queue-drained` | the scheduler's default rules (see Scheduler) | `conduct done` |
149
+ | `triage` | the scheduler's default rule `triage`: an item with the profile's triage label, once per item (see Scheduler) | a read of its project that no longer shows the label on the item (removed, or the item closed or left the queue), in `scheduler.mode` `on`; or `conduct done`, after which it is raised again the next day while the label stays. Once resolved, a label put back raises it again at once |
147
150
  | `console` | the console's finding on an escalation, with `conduct escalations done <id> --ask` (see Console) | `conduct done` |
148
151
  | `console` (no console open) | escalations wait and no console has followed the stream for 30 s, with `conduct console` and `conduct escalations` (see Console) | a console opening, the last escalation handled, or `conduct done` |
149
152
 
@@ -213,9 +216,9 @@ Rules say what the conductor does when something happens (design note, section 9
213
216
  ]
214
217
  ```
215
218
 
216
- - **Sources, in order:** the item's project's `rules` (in its `.claude/conductor.json`, changed by PR), then `~/.conductor/rules.json`, then the built-in defaults: conduct-atk's behavior written as rules (`launch`, `retire-closed`, `park-on-wait`, `resume-on-wait`, `runaway`, `daily-cap`, `ready-to-release`, `queue-drained`, and `conductor-handoff`, which escalates a worker's `Handoff · conductor` note to the console). A rule with an `id` replaces the rule with the same id further down, so a file holds only the differences.
217
- - **when:** `and`, `or`, `not` and parentheses over comparisons (`==`, `!=`, `<`, `<=`, `>`, `>=`, `in [a, b]`, `<label> in item.labels`) and events. An event rule fires when one of its events happens: `note`, `plan`, `wait.resolved`, `run.failed`, `worker.idle`, `worker.exited`, `worker.permission`, `worker.waiting`, `inbox.raised`, `pr.comment`, `item.unblocked`, `item.closed`, `queue.pick`, `queue.drained`, `queue.ready-to-release`. A rule without one is a state rule, checked on each scheduler tick against each wait, inbox item, worker or project, or once for the machine, by the fields it reads. Fields: `project`, `item.id/area/labels/tier/priority`, `plan.tier/landing`, `note.phase/kind`, `wait.kind/age`, `inbox.kind/age`, `worker.retries/phase`, `spend.worker/item/project/today`, `time`, `day`, `notify.profile`. Values carry units: `15m`, `2h`, `500k`, `2M`, `22:00`, `saturday`.
218
- - **do:** `launch`, `retire`, `park`, `resume worker`, `retry`, `pause launches [in <project>] [until <when> | for <duration>]`, `pause all launches …`, `unpause launches`, `focus [<project>] weight|slots <n> until <when>`, `auto-approve after <duration>`, `inbox <kind> ["<text>"]`, `remind jason`, `notify <channel> ["<text>"]`, `notify profile <name> [until <when>]`, `label add|remove human|triage|shipped-open`, `flag shipped-open`, `escalate console "<ask>"`, `none`. One string, or a list.
219
+ - **Sources, in order:** the item's project's `rules` (in its `.claude/conductor.json`, changed by PR), then `~/.conductor/rules.json`, then the built-in defaults: conduct-atk's behavior written as rules (`launch`, `retire-closed`, `park-on-wait`, `resume-on-wait`, `runaway`, `daily-cap`, `ready-to-release`, `queue-drained`, `triage`, which raises a new item that waits on the profile's triage label in the inbox, `conductor-handoff`, which escalates a worker's `Handoff · conductor` note to the console, and `hold-pre-start-handoff`, which adds the human label when a worker hands off as `human`, `jason`, `blocked` or `scope` before its `Started` note, so the scheduler never launches work no worker can do again; remove the label if the item should be picked later). A rule with an `id` replaces the rule with the same id further down, so a file holds only the differences.
220
+ - **when:** `and`, `or`, `not` and parentheses over comparisons (`==`, `!=`, `<`, `<=`, `>`, `>=`, `in [a, b]`, `<label> in item.labels`, `Started in item.phases`) and events. An event rule fires when one of its events happens: `note`, `plan`, `wait.resolved`, `run.failed`, `worker.idle`, `worker.exited`, `worker.permission`, `worker.waiting`, `inbox.raised`, `pr.comment`, `item.unblocked`, `item.closed`, `queue.pick`, `queue.drained`, `queue.ready-to-release`, `queue.triage`. A rule without one is a state rule, checked on each scheduler tick against each wait, inbox item, worker or project, or once for the machine, by the fields it reads. Fields: `project`, `item.id/area/labels/tier/priority`, `item.phases` (the phases of every note the item has had, the one being posted too), `plan.tier/landing`, `note.phase/kind`, `wait.kind/age`, `inbox.kind/age`, `worker.retries/phase`, `spend.worker/item/project/today`, `time`, `day`, `notify.profile`. Values carry units: `15m`, `2h`, `500k`, `2M`, `22:00`, `saturday`.
221
+ - **do:** `launch`, `retire`, `park`, `resume worker`, `retry`, `pause launches [in <project>] [until <when> | for <duration>]`, `pause all launches …`, `unpause launches`, `focus [<project>] weight|slots <n> until <when>`, `auto-approve now`, `auto-approve after <duration>`, `inbox <kind> ["<text>"]`, `remind jason`, `notify <channel> ["<text>"]`, `notify profile <name> [until <when>]`, `label add|remove human|triage|shipped-open`, `flag shipped-open`, `escalate console "<ask>"`, `none`. One string, or a list.
219
222
  - **Guardrails:** rules act inside Area locks, slots, quiet hours and config.json's limits. A rule that would go past one is refused when it loads: `focus … slots` over `scheduler.slots`, an override with no end or one over 14 days, `retire` on anything but `item.closed`, `launch` outside `queue.pick` / `item.unblocked`, `park` outside `worker.waiting`, `resume` outside `wait.resolved` / `pr.comment`, `retry` outside `run.failed`. `merge`, `publish`, `approve`, `delete` and `run` aren't in the vocabulary.
220
223
  - **Reload:** saving `rules.json` or a project's profile reloads its rules. A profile save takes only the `rules`; the rest of a profile changes with `conduct project add`. A file the conductor refuses leaves its last good rules in force, logs `rules.rejected` and raises a `failed` inbox item until it loads again (`rules.loaded`), including after a restart. `conduct project add` refuses a profile whose rules don't load, with or without the daemon.
221
224
  - **Checking:** `conduct rules` lists the rules in force (`project.atk:#2`, `machine:runaway`, `default:launch`) and what replaces what. `conduct rules test <file>` dry-runs a sample, such as `{ "event": "pr.comment", "project": "atk", "fields": { "wait.kind": "merge", "wait.age": "3h" } }` (leave out `event` for a state rule), and shows what fires, each action's guardrail, and why every other rule of the trigger didn't. Both read the files directly when the daemon isn't running.
@@ -237,7 +240,9 @@ What each action does:
237
240
  - `label add|remove` edits one label on the item (the profile's human label for `human`), at most 20 times a day per item.
238
241
  - `escalate console` emits `console.escalated`, which wakes the console's model; the console reports back with `conduct escalations done` (see Console).
239
242
  - `retry` launches a failed launch again, or wakes a session that stopped unexpectedly with the fact. It does this once per item, whatever the rule says: a second failure stays in the inbox. `worker.retries` counts the earlier tries.
240
- - `auto-approve after N` pushes "auto-approves at HH:MM" where plans go, and the plan's inbox item says the same. At the deadline, if the plan still waits (no `revise:`, no newer Plan), it posts `approve: auto-approved by the conductor: rule "<id>", no revise by HH:MM` as the key's owner, which the worker's approval wait reads. A deadline that falls in quiet hours (or a plan posted in them, or one that comes due in quiet hours set since) moves to their end plus N, so the quiet-hours summary reaches you first and you still get N to revise. If the comment can't be posted, the inbox item says the plan waits on you again. No default rule auto-approves. A Plan note's `**Size tier: S**` gives `plan.tier` (and `item.tier` later), and its `**Landing:** auto|review` gives `plan.landing`: work-item lands its review paths (infra, pipelines, auth) and review tiers in `review`, so `plan.landing == auto` keeps them out of an auto-approve rule. A Plan that names neither fails the comparison and waits for you.
243
+ - `auto-approve after N` pushes "auto-approves at HH:MM" where plans go, and the plan's inbox item says the same. At the deadline, if the plan still waits (no `revise:`, no newer Plan), it posts `approve: auto-approved by the conductor: rule "<id>", no revise by HH:MM` as the key's owner, which the worker's approval wait reads. A deadline that falls in quiet hours (or a plan posted in them, or one that comes due in quiet hours set since) moves to their end plus N, so the quiet-hours summary reaches you first and you still get N to revise. If the comment can't be posted, the inbox item says the plan waits on you again.
244
+ - `auto-approve now` approves the plan as its note arrives: no inbox item, no push. `conduct note` asks the rules before it records the Plan and puts the rule on `note.posted` (`autoApprove`), so the inbox raises nothing. The conductor then posts `approve: auto-approved by the conductor: rule "<id>", at once` as the key's owner and records `plan.auto-approved`, and the worker's approval wait resolves as soon as it is added (or as the comment lands). If the comment can't be posted (`plan.auto-approve-failed`), the plan's inbox item is raised and it waits on you. You can still write `revise: …` on the item: the worker's next `conduct note` reads the item, finds it after the approval, records `plan.revised`, posts nothing and exits 4 with your words, and the worker re-plans (see Notes). A Handoff note and a new Plan still go through, and an `approve` after the revise takes it back. Once you have revised a plan of an item, its later plans wait on you whatever the rules say, `auto-approve after` included. A worker parked on its PR sees the revise only when it wakes; past the PR, the brake is a PR comment. If the daemon stopped between recording the Plan and posting the approval, the approval wait raises nothing, and the next rules tick approves it once the note is 2 minutes old.
245
+ - No default rule auto-approves. A Plan note's `**Size tier: S**` (or the older `**Size: S**`) gives `plan.tier` (and `item.tier` later), and its `**Landing:** auto|review` gives `plan.landing`: work-item lands its review paths (infra, pipelines, auth) and review tiers in `review`, so `plan.landing == auto` keeps them out of an auto-approve rule. A Plan that names neither fails the comparison and waits for you.
241
246
  - `launch` on `item.unblocked` brings the scheduler's next tick forward.
242
247
  - `launch` and `retry` start sessions, so they wait for `scheduler.mode` `on`, as the scheduler's own launches do. In `observe` they are logged, not done; every other action acts in any mode.
243
248
 
@@ -250,18 +255,20 @@ The scheduler moves conduct-atk's tick into the daemon (design note, section 8).
250
255
  1. **Read.** It reads each conducted project's queue from its tracker: for Linear, the team's projects with a priority, the Area labels, every open item with its blockers, and the in-flight items. Each read is one request (plus pages), within the Linear watcher's rate budget. For ADO Boards, the profile's saved query (see ADO Boards), within the ADO watcher's budget.
251
256
  2. **Plan.** It works out the picks across projects, with the same order and reasons as conduct-atk's `planQueue`. A replay of conduct-atk's own Linear read is in the tests.
252
257
  - **Order:** the tracker project's priority, then the conductor project's `weight` (profile, or `conduct focus --weight`), then the item's priority, then when it was created.
253
- - **Areas:** one in-flight item per Area per project. An Area is held by every worker in flight and every started item, and by the Areas it covers or is covered by.
258
+ - **Areas:** one item per Area per project before its PR opens. An Area is held by every worker in flight and every started item, and by the Areas it covers or is covered by. An item past its PR (its newest lifecycle note is `PR opened` or `Landed`) whose Plan lands in `auto` holds it no more, so the next item in its Area starts while it waits on CI, the merge or the npm OTP; `conduct queue` and `conduct why` name the item it shares the Area with. A `review` plan, or an item the daemon has no notes for, holds its Area until the item closes.
254
259
  - **Not picked:** items labelled with the profile's human label, and items whose blockers are still open, which wait (pending, or "not being worked" when nothing will clear them).
260
+ - **Triage:** a profile's `tracker.triageLabel` (such as `triage`, ATK-277) marks a new item a worker filed that Jason hasn't looked at. It is never picked (`labelled triage: new, waits for Jason to triage it`, not on its own; the label matches in any case, as Boards tags do), an item it blocks waits as blocked by an item nobody works on, and `queue.triage` raises it in the inbox. Remove the label to queue it, or swap it for the human label. A rule's `label add triage` adds this label. Without the setting the label means nothing to the queue. A conductor older than the setting refuses a profile that has it (the profile is strict), so set it only once every daemon and `conduct` that reads the profile has been upgraded.
261
+ - **Release waits:** a Linear profile's `tracker.releaseWait: { "label": "waits-release", "shipped": "release-atk · Shipped" }` marks work that needs a dependency released, not only merged (a CLI change on npm `latest`, a prod deploy). An item with that label waits, once its open blockers have closed, until every Done blocker has a comment whose first line starts with the `shipped` text, under any heading or bold (`waits for ATK-391 to ship`), and starts on the first tick after. A comment that only quotes the text doesn't count. A blocker still open in another team waits the same way; a canceled one holds nothing. A blocker that shipped before release-atk wrote its notes (2026-10-06) holds until you add the note or remove the label. With the label and no blocker at all it waits until you act (`labelled waits-release with no blocker to wait on`), for something outside the tracker such as a Claude Code release. Such an item doesn't keep its tracker project from `queue.ready-to-release`, since the release is what it waits for. The read asks about the Done blockers in one more request, only when a labelled item has one. Without the setting, a Done blocker never holds anything.
255
262
  - **Slots:** `scheduler.slots` (4) across projects and the profile's `slots` per project (ATK's is 4), or `conduct focus --slots`, never more than the global ones. Slots count running workers only: a parked worker keeps its Area and frees its slot.
256
263
  - **Holds:** quiet hours and `conduct pause` turn picks into waits that say why.
257
- 3. **Act.** It runs the rules on what it found: `queue.pick` → `launch` (default `launch`), `item.closed` → `retire` (default `retire-closed`; a refused retire raises an inbox item once, except one refused while the worker's turn runs or its session starts, which is tried again each tick and raised only after 15 minutes), `queue.drained` and `queue.ready-to-release` → an inbox item once a day. Each action is a `rule.fired` event, then `rule.done` or `rule.failed`. A launch that failed isn't tried again while its inbox item is open.
264
+ 3. **Act.** It runs the rules on what it found: `queue.pick` → `launch` (default `launch`), `item.closed` → `retire` (default `retire-closed`; a refused retire raises an inbox item once, except one refused while the worker's turn runs or its session starts, which is tried again each tick and raised only after 15 minutes), `queue.drained` and `queue.ready-to-release` → an inbox item once a day, `queue.triage` → a `triage` inbox item per item (default `triage`), resolved once the label goes. Each action is a `rule.fired` event, then `rule.done` or `rule.failed`. A launch that failed isn't tried again while its inbox item is open.
258
265
 
259
266
  `scheduler.mode` decides how far it goes:
260
267
  - **`on`** (the default): it acts.
261
268
  - **`observe`:** it reads, plans and logs each action once, and does none of them. Set it on a machine where conduct-atk's loop still launches.
262
269
  - **`off`:** it doesn't run; `conduct queue --fresh` still works out a plan on request.
263
270
 
264
- `conduct queue` shows the last plan (`--fresh` reads again): slots, holds, picks with their Area, and why each other item waits. A change of plan is a `scheduler.planned` event. A project whose read fails picks nothing that tick and logs `scheduler.read-failed` once, then `scheduler.read-recovered`. An item whose last open blocker closed is an `item.unblocked` event.
271
+ `conduct queue` shows the last plan (`--fresh` reads again): slots, holds, picks with their Area, and why each other item waits. A change of plan is a `scheduler.planned` event: its picks, the number waiting, `waitingBy` (how many wait for each reason: `in-flight`, `human`, `blocked`, `release`, `area`, `held`, `slot`) and `areaHolders` (each Area that holds an item up, with its project, its holder and the items waiting on it). In `GET /queue`, each waiting item carries the same `kind`, and an Area wait its `holder`. A project whose read fails picks nothing that tick and logs `scheduler.read-failed` once, then `scheduler.read-recovered`. An item whose last open blocker closed is an `item.unblocked` event.
265
272
 
266
273
  **Overrides** end on their own: `conduct pause atk --until 17:00`, `conduct pause --until tomorrow` (every project), `conduct unpause atk`, `conduct focus atk --slots 3 --until monday`. `--until` takes `17:00` (the next one), `tomorrow`, a day, or a date and time. Each is an `override.set` event, which `conduct why` attributes to the command, and they show in `conduct rules`.
267
274
 
@@ -310,6 +317,7 @@ A project whose work items live in Azure DevOps Boards (Cadence) sets `tracker.k
310
317
  "key": "CAD", // items are CAD-<work item id>: ADO's ids are numbers alone
311
318
  "query": "Shared Queries/Conduct", // the saved query that is the queue, by path or id
312
319
  "humanLabel": "human", // a tag here
320
+ "triageLabel": "triage", // optional, a tag here too: new items Jason hasn't triaged (see Scheduler)
313
321
  "priority": 3, // the queue's priority against other projects' (1 urgent … 4 low)
314
322
  "areaRoot": "Emergent Software\\Cadence", // optional: an item's Area is its Area Path below it
315
323
  "states": { "Blocked": "started" } // optional, over the built-in state names
@@ -373,6 +381,7 @@ Events: `ports.assigned`, `ports.freed`, `lock.acquired`, `lock.released`, `lock
373
381
  - items launched more than once;
374
382
  - unfinished items with their phase.
375
383
  - **Inbox:** the items raised, by kind, with how long each took to resolve and how it was resolved: `conduct approve`/`revise`/`done`, a later note, the worker retired, or the condition seen.
384
+ - **Area holds:** how long each Area held up at least one queued item, by project, with the items that held it and the items it held up. It comes from the `scheduler.planned` events: each plan holds until the next one or until the daemon starts or stops, and the plan in force when the window opens counts too. Plans from before ATK-418 record no holders and add nothing.
376
385
  - **Slots:** peak and average running workers, and running and parked hours by project and item.
377
386
  - A slot is counted as the scheduler counts it, so a worker left attached and idle holds its slot the whole time.
378
387
  - **Spend:** tokens by project and item. `spend` is kept per local day, so this covers the whole days the window touches.
@@ -401,7 +410,7 @@ Everything lives in `~/.conductor` (`CONDUCTOR_HOME` overrides it):
401
410
  - `GET /console/escalations`: the open escalations, oldest first (see Console).
402
411
  - `POST /console/escalations/:id` with `{ "text": "<finding>", "ask"?: true }`: the console's report on one; 201 with the escalation, the `console.handled` event's id and the inbox item `ask` raised. 404 when the id isn't an escalation, 409 when it is handled already or older than 14 days.
403
412
  - `POST /console/cache` with `{ "action": "warm" | "cold" | "failed", "contextTokens", "usage": { "cacheRead", "cacheWrite", "input", "output" } | null, "warms" }` or `{ "action": "clear", "contextTokens", "reason" }`: the mod's report on the idle console's prompt cache (see Mod); 201 with the `console.cache` event's id.
404
- - `GET /fleet`: the workers in flight, with session activity, waits and spend (today, total).
413
+ - `GET /fleet`: the workers in flight, with session activity, phase, PR, waits and spend (today, total).
405
414
  - `POST /workers` with `{ "item": "ATK-309", "project"?, "probe"?, "prompt"?, "conductor"? }`: launch; answers 202 with the `launching` worker. `GET /workers/:id` shows it with its latest events.
406
415
  - `DELETE /workers/:id` (`?force=true`): retire; 409 with the unfinished work when it refuses.
407
416
  - `POST /workers/:id/attach`: wake if parked, mark attached, open the tab.
@@ -428,6 +437,16 @@ Everything lives in `~/.conductor` (`CONDUCTOR_HOME` overrides it):
428
437
  - `POST /waits` with `{ "worker": 1, "condition": "pr:ado:Emergent.AgenticToolkit#1850:merged" }`: a wait in its full form (see Waits), stored in its normal form; 201 with the wait. `GET /waits/:id` shows one, with its resolution once it has one.
429
438
  - A refusal (a duplicate launch, a bad condition, a busy worker) is a 409 with `error` and `details`.
430
439
 
440
+ ## Restarts
441
+
442
+ `conduct supervise` runs `conduct serve` as its child and starts it again when it dies: a crash, a kill, a start that fails. The logon task runs it, and `conduct start` and `conduct upgrade` start it detached.
443
+
444
+ - **Restart:** after 1 s, 5 s, 15 s and 30 s, then every minute, and every 5 minutes once it has pushed. A serve that stayed up 5 minutes ends the outage, so the next death starts at 1 s again. Each restarted daemon records `daemon.restarted` (`attempt`, the last serve's `code` or `signal`, `downSince`, `pushed`) after the `daemon.exited-uncleanly` its start finds.
445
+ - **Push:** a daemon down 2 minutes sends one Pushover push (`conductor · the daemon is down`), with the last serve's stderr and the log's path. It uses `notify.pushover` from `config.json` and goes to Pushover whatever the notification profile: a `conduct notify profile` lives in the daemon's store, which may be what keeps it down. Quiet hours hold it until they end, if the daemon is still down. A `config.json` that doesn't load leaves the defaults, because a bad config is one way a daemon stays down. It tries once per outage; a refusal is logged.
446
+ - **Stop:** a serve that exits 0 (`conduct stop`, `conduct upgrade`) ends the supervisor. While it waits between restarts nothing answers the API, so `conduct stop` and `conduct upgrade` write a request to `supervisor.stop` in the conductor home when no daemon answers (ATK-433). The supervisor checks for one every 250 ms while it waits, and after each serve exits. It ends, writes its pid into the request as its answer, and `stop` prints `stopped the conductor's supervisor (pid N), which was waiting to restart the daemon`. `stop` waits 10 s for that answer, and a daemon that comes up meanwhile is shut down as usual. With no answer it says the conductor isn't running. However it ends, `stop` removes its request. A supervisor heeds only a request written after it started and in the last 30 s, and drops any other as it starts. So a request left behind by a logoff never stops the next logon's supervisor, and a stale one never ends a later outage. `stop` only asks when `supervisor.pid`, which a supervisor writes as it starts, names a live process. With nothing running it says so at once. The file is a hint, never a lock, and nothing ends the process it names: one left by a logoff that names a reused pid costs a `stop` its 10 s wait and nothing more. After the answer, `stop` waits for the supervisor's process to end, so a `conduct start` right after it isn't ignored by the logon task. Ctrl+C or Ctrl+Break on a `conduct supervise` in a terminal stops its daemon as `conduct stop` does (the serve runs in a console of its own), or cuts short a wait between restarts; press it again if the first came while the daemon was still starting. A serve that finds another daemon holding the lock (exit 3) ends it too. `--fail-fast`, which `conduct start` passes, also ends it when the first serve exits before it says it listens, so `start` fails at once and points at the log, which has the serve's stderr; one that came up and then died is restarted.
447
+ - **Logs:** the supervisor writes `the daemon exited; the supervisor restarts it` and its push results to `logs/conductor.log`.
448
+ - **Not covered:** a logoff or reboot ends the supervisor with the session, and the logon task starts it again at the next logon. A daemon that runs but doesn't answer isn't restarted.
449
+
431
450
  ## On PATH
432
451
 
433
452
  Install the package globally, next to `atk`. `dev` follows `develop`; `latest` follows `main`:
@@ -453,13 +472,13 @@ The profile's optional `work` section is for the project's work skill; the daemo
453
472
  }
454
473
  ```
455
474
 
456
- The logon task runs `node` on the `cli.js` that ran `install-startup`. A global install keeps that path across upgrades, so the task needs registering once. To upgrade:
475
+ The logon task runs `conduct supervise` (see Restarts) with `node` on the `cli.js` that ran `install-startup`. A global install keeps that path across upgrades, so the task needs registering once. A task registered before ATK-417 runs the unsupervised `conduct serve`, and `conduct upgrade` says so: run `conduct install-startup` once more. To upgrade:
457
476
 
458
477
  ```bash
459
478
  conduct upgrade
460
479
  ```
461
480
 
462
- It takes the tag the installed version came from (`dev` for an `X.Y.Z-dev.N`, `latest` otherwise; `--tag` picks one), and does nothing when that tag's version is already installed. When the tag points at an older version (semver, so `1.2.0-dev.4` is older than `1.2.0`), it refuses before it stops anything and names that version; `--allow-downgrade` installs it anyway and reports `downgraded`. Otherwise it stops the daemon, runs `npm install --global @detergent-software/conductor@<the tag's version>` (the exact version it compared, in case the tag moves) and starts the daemon again: through the `Conductor` logon task when the task runs this `cli.js`, else as a detached `conduct serve`. A daemon that wasn't running stays stopped. If npm fails, the daemon still starts again on whatever npm left in place, and `upgrade` exits 1 with npm's output. A linked build (below) refuses: its `cli.js` isn't under npm's global `node_modules`.
481
+ It takes the tag the installed version came from (`dev` for an `X.Y.Z-dev.N`, `latest` otherwise; `--tag` picks one), and does nothing when that tag's version is already installed. When the tag points at an older version (semver, so `1.2.0-dev.4` is older than `1.2.0`), it refuses before it stops anything and names that version; `--allow-downgrade` installs it anyway and reports `downgraded`. Otherwise it stops the daemon, runs `npm install --global @detergent-software/conductor@<the tag's version>` (the exact version it compared, in case the tag moves) and starts the daemon again: through the `Conductor` logon task when the task runs this `cli.js`, else as a detached `conduct supervise --fail-fast`. A supervisor waiting to restart a daemon that keeps dying is stopped the same way before npm runs (see Restarts), so it can't restart `serve` from the `cli.js` npm is replacing, and the conductor starts again on the new version. A daemon that wasn't running stays stopped. If npm fails, the daemon still starts again on whatever npm left in place, and `upgrade` exits 1 with npm's output. A linked build (below) refuses: its `cli.js` isn't under npm's global `node_modules`.
463
482
 
464
483
  **From a checkout instead (development).** `npm link` puts the main checkout's build on PATH, so every worktree and the logon task run that build. Run it from the main checkout, and upgrade by pulling `develop`, building, then `conduct stop` and `conduct serve`:
465
484
 
@@ -22,6 +22,8 @@ export const briefSchema = z.object({
22
22
  project: z.string(),
23
23
  readAt: z.string(),
24
24
  related: z.array(link),
25
+ // A daemon from before it gives none.
26
+ revise: z.object({ at: z.string(), text: z.string() }).nullable().default(null),
25
27
  status: z.object({ name: z.string(), type: z.string().nullable() }),
26
28
  title: z.string(),
27
29
  trackerProject: z.string().nullable(),
@@ -1 +1 @@
1
- {"version":3,"file":"brief-cli.js","sourceRoot":"","sources":["../src/brief-cli.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,OAAO,EAAc,UAAU,EAAE,MAAM,YAAY,CAAC;AACpD,OAAO,EAAE,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AACvD,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAE7C,gGAAgG;AAChG,+FAA+F;AAC/F,kEAAkE;AAClE,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,CAAC;AAE7B,qEAAqE;AACrE,MAAM,gBAAgB,GAAG,MAAM,CAAC;AAOhC,MAAM,IAAI,GAAG,CAAC,CAAC,MAAM,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,EAAE,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC;AAEvG,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,CAAC,MAAM,CAAC;IAClC,QAAQ,EAAE,C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,4FAA4F;IAC5F,IAAI,MAAM,CAAC,MAAM,KAAK,GAAG;QACvB,OAAO,UAAU,CACf,GAAG,KAAK,EAAE,KAAK,IAAI,0CAA0C,GAAG,KAAK,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC,CAAC,KAAK,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CACjI,CAAC;IACJ,MAAM,IAAI,cAAc,CAAC,KAAK,EAAE,KAAK,IAAI,oBAAoB,MAAM,CAAC,MAAM,EAAE,EAAE,KAAK,EAAE,OAAO,IAAI,EAAE,CAAC,CAAC;AACtG,CAAC"}
package/build/brief.js CHANGED
@@ -44,6 +44,7 @@ export function briefLines(brief) {
44
44
  ...brief.notes.map((n) => ` ${n.at} ${n.phase}${n.kind ? ` · ${n.kind}${n.line ? `: ${n.line}` : ''}` : ''}`),
45
45
  ]),
46
46
  `approval: ${approval}`,
47
+ ...(brief.revise ? [`revised after it: ${brief.revise.at}: "${brief.revise.text}"`] : []),
47
48
  '',
48
49
  brief.description.trim() || '(no description)',
49
50
  ];
@@ -61,6 +62,17 @@ export function briefOf(item, project, read, prefixes, at) {
61
62
  // Notes carry the same author as the answer, so only a comment that isn't a note can be it.
62
63
  const said = found &&
63
64
  sorted.find((c) => c.createdAt === found.at && c.authorId === viewer && noteHeading(c.body, prefixes) === null);
65
+ // Jason's answers after an approve: the first `revise:` since his newest `approve`, which
66
+ // takes a revise back.
67
+ const answers = found?.kind === 'approve'
68
+ ? sorted.filter((c) => Date.parse(c.createdAt) > Date.parse(found.at) &&
69
+ c.authorId === viewer &&
70
+ noteHeading(c.body, prefixes) === null &&
71
+ /^(approved?\b|revise\s*:)/i.test(c.body.trim()))
72
+ : [];
73
+ const revised = answers
74
+ .slice(answers.findLastIndex((c) => /^approved?\b/i.test(c.body.trim())) + 1)
75
+ .find((c) => /^revise\s*:/i.test(c.body.trim()));
64
76
  return {
65
77
  ...fields,
66
78
  approval: found ? { ...found, text: said ? said.body.trim() : '' } : null,
@@ -69,6 +81,7 @@ export function briefOf(item, project, read, prefixes, at) {
69
81
  plan: notes.findLast((n) => n.phase === 'Plan')?.at ?? null,
70
82
  project,
71
83
  readAt: at.toISOString(),
84
+ revise: revised ? { at: revised.createdAt, text: revised.body.trim() } : null,
72
85
  };
73
86
  }
74
87
  export function briefService({ now = () => new Date(), reader, store, ttlMs = TTL_MS, }) {
@@ -1 +1 @@
1
- {"version":3,"file":"brief.js","sourceRoot":"","sources":["../src/brief.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAC9C,OAAO,EAAE,YAAY,EAAgB,MAAM,cAAc,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAyB,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAChG,OAAO,EAAE,iBAAiB,EAAgB,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAEpF,iGAAiG;AACjG,iGAAiG;AACjG,4FAA4F;AAE5F,MAAM,MAAM,GAAG,MAAM,CAAC;AAmEtB,iGAAiG;AACjG,MAAM,OAAO,UAAW,SAAQ,cAAc;IACnC,MAAM,CAA2B;IAE1C,YAAY,OAAe,EAAE,MAA4B,EAAE,UAA6B,EAAE;QACxF,KAAK,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;QACxB,IAAI,CAAC,IAAI,GAAG,YAAY,CAAC;QACzB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;CACF;AAED,qEAAqE;AACrE,MAAM,UAAU,UAAU,CAAC,KAAY;IACrC,MAAM,KAAK,GAAG,CAAC,KAAa,EAAE,IAA0B,EAAY,EAAE,CACpE,IAAI,CAAC,MAAM,KAAK,CAAC;QACf,CAAC,CAAC,EAAE;QACJ,CAAC,C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