@comput/pi-intercom 0.11.1 → 0.13.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 (53) hide show
  1. package/README.md +55 -30
  2. package/dist/config.d.ts +9 -1
  3. package/dist/config.js +28 -2
  4. package/dist/config.js.map +1 -1
  5. package/dist/connections.d.ts +2 -0
  6. package/dist/connections.js +3 -3
  7. package/dist/connections.js.map +1 -1
  8. package/dist/core-monitor.js +2 -2
  9. package/dist/core-monitor.js.map +1 -1
  10. package/dist/herdr-core.d.ts +1 -1
  11. package/dist/herdr-core.js +11 -6
  12. package/dist/herdr-core.js.map +1 -1
  13. package/dist/index.js +23 -10
  14. package/dist/index.js.map +1 -1
  15. package/dist/launcher.js +1 -1
  16. package/dist/launcher.js.map +1 -1
  17. package/dist/monitor-view.js +9 -2
  18. package/dist/monitor-view.js.map +1 -1
  19. package/dist/observability.d.ts +1 -1
  20. package/dist/observability.js +1 -1
  21. package/dist/observability.js.map +1 -1
  22. package/dist/runtime.d.ts +15 -7
  23. package/dist/runtime.js +160 -67
  24. package/dist/runtime.js.map +1 -1
  25. package/dist/snapshot.js +2 -1
  26. package/dist/snapshot.js.map +1 -1
  27. package/dist/transport.d.ts +2 -1
  28. package/dist/transport.js +2 -2
  29. package/dist/transport.js.map +1 -1
  30. package/dist/worker-status.js +4 -1
  31. package/dist/worker-status.js.map +1 -1
  32. package/dist/workspace.d.ts +9 -0
  33. package/dist/workspace.js +61 -0
  34. package/dist/workspace.js.map +1 -0
  35. package/package.json +3 -2
  36. package/rules.md +30 -0
  37. package/src/config.ts +23 -2
  38. package/src/connections.ts +6 -4
  39. package/src/core-monitor.ts +2 -2
  40. package/src/herdr-core.ts +11 -6
  41. package/src/index.ts +17 -10
  42. package/src/launcher.ts +1 -1
  43. package/src/monitor-view.ts +9 -2
  44. package/src/observability.ts +1 -1
  45. package/src/runtime.ts +143 -64
  46. package/src/snapshot.ts +2 -1
  47. package/src/transport.ts +4 -4
  48. package/src/worker-status.ts +4 -1
  49. package/src/workspace.ts +51 -0
  50. package/dist/reminders.d.ts +0 -28
  51. package/dist/reminders.js +0 -81
  52. package/dist/reminders.js.map +0 -1
  53. package/src/reminders.ts +0 -69
package/README.md CHANGED
@@ -28,7 +28,7 @@ The value is the loop: **delegate → report back → evaluate → decide the ne
28
28
  >
29
29
  > **0.8.0:** Config is restricted to the session working directory. No parent search or explicit-parent override; shared-config subfolder launches are refused.
30
30
 
31
- > **0.7.0:** Coordinator-local five-minute reminders follow worker calls. Use `intercom_stop_reminders` when nothing needs follow-up. Busy periods are skipped; shutdown/reload clears the timer.
31
+ > **Coordination is event-driven.** Nothing is injected into the coordinator's context on a timer. The coordinator is woken only by a worker report, a worker message, or one notice when a worker stops without reporting.
32
32
 
33
33
  > **0.6.1:** Linux Herdr background save-handoff-and-close workflow, with saved public summaries in config and monitor/JSON details. Empty rosters no longer open a monitor; coordinator session/tab names are preserved.
34
34
 
@@ -116,13 +116,31 @@ The `herdr` launcher selects the new core when `HC_TERMINAL_ID` is present; see
116
116
 
117
117
  1. Coordinator calls `intercom_create_worker({projectDirectory:"."})`. The launcher passes the same-directory root assertion; no worker identity, responsibility or callback address is passed.
118
118
  2. Anonymous worker opens its own endpoint and sends its session ID, actual port and root-relative project directory to coordinator Pi. Registration starts a normal coordinator turn when idle or queues steering when busy. It creates **no config entry or hidden pending-registration map**.
119
- 3. Coordinator decides and calls `intercom_configure_worker` with **all five explicit fields**: `sessionId`, `port`, `projectDirectory`, `name`, `description`. This only writes config.
120
- 4. Coordinator separately calls `intercom_reload_worker({to:"Builder"})`. Worker rereads responsibility and synchronizes Pi/Herdr tab names. **This is not Pi `/reload`, a restart, cancellation, or work assignment.** No model turn starts.
119
+ 3. Coordinator establishes the worker's real worktree and branch and calls `intercom_configure_worker` with **all seven explicit fields**: `sessionId`, `port`, `projectDirectory`, `name`, `description`, `worktree`, `branch`. This only writes config; Intercom does not create worktrees or branches.
120
+ 4. Coordinator separately calls `intercom_reload_worker({to:"Builder"})`. The idle worker validates and loads its own configuration by session ID, then synchronizes Pi/Herdr tab names. **This is not Pi `/reload`, a restart, cancellation, or work assignment.** No model turn starts.
121
121
  5. Coordinator sends explicit work using `intercom_send({to:"Builder",message:"..."})`. Workers can communicate directly with configured peers. Findings do not authorize unrelated implementation. Progress questions ask for reporting and continuation, not cancellation.
122
122
  6. Workers report as instructed and wait, without autonomous exit. Coordinator unavailability does not close the worker or cancel its assignment.
123
123
 
124
124
  Existing workers restore responsibility by session ID, bind their saved port or, if it is already in use, an OS-selected fallback, and report their actual port. Coordinator updates existing ports as bookkeeping. Status from removed/unknown sessions notifies Pi but creates no entry. Resume uses the configured project directory and full session ID, with a saved-session lookup first; a never-used Pi session might not yet exist on disk. Failure leaves config unchanged, without fabricated history or forced model turns.
125
125
 
126
+ ## Worker workspaces and operational rules
127
+
128
+ [The packaged `rules.md`](rules.md) is the single source of Intercom operating instructions. The extension injects it through `before_agent_start`, alongside the session's identity and loaded configuration. It is supplied before each agent run, **not with each tool call or message**. An incoming steering message during an existing run does not trigger another check. Inactive projects receive no Intercom instructions.
129
+
130
+ Every worker, including investigation/documentation workers, needs a nonblank `worktree` and `branch`; `none` is refused. These fields are worker-only. Worktree paths may be absolute or relative to the project root, including `../sibling-worktree`. The extension resolves them to an absolute path for worker instructions. Session startup and tool defaults remain in the project root: workers must use explicit worktree paths for file operations and project commands. Config discovery is unchanged; a worktree does not become a second Intercom config root.
131
+
132
+ On startup, configuration reload, and before each worker agent run, the extension performs read-only filesystem/Git checks: the directory exists, is a worktree root separate from the project root, belongs to the same repository, and has the configured branch checked out. Detached HEAD and the `main` branch are refused. Git must be on PATH. Checks use argument arrays without a shell, ignore inherited Git routing overrides, and have a three-second Git subprocess budget with no retry. They never create, switch, commit, merge, push, or delete anything. Successful checks are silent and do not prompt the model.
133
+
134
+ Failure clears the loaded configuration and supplies **NOT READY** instructions: report the problem, do not continue assigned work, and wait for correction and successful reload. A configured worker in this state can send a message to the coordinator or file a `blocked` report; it cannot use that exception to file a ready-for-review report or send peer messages. Failed reloads do not retain the old workspace as usable. A changed configuration requires explicit reload rather than silently adopting new values from disk or old conversation history. Incoming Intercom work requires a loaded, matching configuration.
135
+
136
+ Changing an existing complete worktree/branch configuration requires a matching live endpoint reporting idle. Busy, unreachable, and older endpoints without an idle flag are refused; a saved activity log is not idle proof. Missing legacy fields can be supplied without this reassignment check because no complete workspace has been loaded. Reload itself also requires an idle worker. These checks are snapshots, not atomic locks against independent user input or external Git/filesystem changes. **File and shell tools remain unrestricted:** instruction delivery and validation are not a sandbox or a guarantee of agent compliance.
137
+
138
+ ### Existing configurations
139
+
140
+ Old entries missing either workspace field remain readable and unchanged; they do not disable the coordinator or valid workers. Before every coordinator agent run, the extension lists workers needing migration and explicitly instructs it to establish their actual worktrees/branches, call `intercom_configure_worker`, then reload them. If the values cannot be established, it must ask the user rather than invent defaults. Missing fields prevent worker configuration loading and resume. An already-running worker is instructed to report the problem and wait. Reconfigure and reload each affected worker before assigning work. All participating sessions must load the updated extension code; `intercom_reload_worker` alone cannot upgrade an old extension.
141
+
142
+ `intercom_list`, JSON worker status and monitor details carry the saved worktree/branch. These saved values are not evidence that a worker has loaded them. Extension status reports include `workspaceState` (`loaded` or `not_ready`), describing the last applied/validated configuration, not continuous Git health or task completion. Resume checks the workspace before launch, and the resumed worker independently validates and loads it again.
143
+
126
144
  ## Tools and permissions
127
145
 
128
146
  Every tool rereads current config and checks the live Pi session ID. Names are case-insensitive for lookup/uniqueness; display capitalization is preserved. `Coordinator` is reserved for internal configuration/routing. The coordinator's existing Pi session name and Herdr tab title are preserved; only worker sessions are synchronized to their configured names.
@@ -130,15 +148,14 @@ Every tool rereads current config and checks the live Pi session ID. Names are c
130
148
  | Tool | Arguments | Permission / effect |
131
149
  |---|---|---|
132
150
  | `intercom_create_worker` | `projectDirectory?` (default `.`) | Coordinator; launch anonymous worker at the same root only |
133
- | `intercom_configure_worker` | `sessionId`, `port`, `projectDirectory`, `name`, `description` | Coordinator; all five explicit fields, writes only |
134
- | `intercom_reload_worker` | `to` (worker name) | Coordinator; passive config/name reload |
151
+ | `intercom_configure_worker` | `sessionId`, `port`, `projectDirectory`, `name`, `description`, `worktree`, `branch` | Coordinator; all seven fields required, writes only; existing workspace changes require verified idle worker |
152
+ | `intercom_reload_worker` | `to` (worker name) | Coordinator; idle worker validates and loads config/name without a work turn |
135
153
  | `intercom_send` | `to` (name), `message` | Configured, responsibility-loaded sessions; asynchronous message |
136
154
  | `intercom_list` | None | Configured coordinator/workers; saved roster, never live health |
137
155
  | `intercom_worker_status` | `name?`, `offset?`, `limit?`, `probe?` | Configured sessions; local JSON by default, optional bounded endpoint checks for returned page |
138
156
  | `intercom_request_status` | `to` (worker name) | Coordinator; independent extension report |
139
- | `intercom_stop_reminders` | None | Coordinator; disable reminder timer until another qualifying worker call, without cancelling work |
140
157
  | `intercom_report_status` | None | Workers including anonymous; shared report function, never registration |
141
- | `intercom_report_work` | `status`, `summary?` | Configured, responsibility-loaded workers; save a public report and notify coordinator, never approve/complete work |
158
+ | `intercom_report_work` | `status`, `summary?` | Configured, responsibility-loaded workers; save a public report and notify coordinator (`clear` is silent), never approve/complete work |
142
159
  | `intercom_stop_worker` | `to` | Unsupported graceful cancellation; no side effects |
143
160
  | `intercom_close_worker` | `to` | Linux Herdr coordinator; request background handoff/save/settle/pane-close job, retain registration |
144
161
  | `intercom_report_handoff` | `jobId`, `summary` | Requested worker only; save concise public handoff, then finish the turn and wait |
@@ -153,26 +170,20 @@ Every tool rereads current config and checks the live Pi session ID. Names are c
153
170
 
154
171
  Anonymous `send`/`list` and all coordinator operations fail explicitly. Anonymous registration and status remain available. A dedicated repeat-registration operation and broader anonymous permissions remain **unresolved contract TODOs**, not silently added tools. If initial registration fails, the worker remains reachable and reports the error locally. Explicit user Pi `/reload` restarts this extension and repeats startup registration; status is not a substitute and there is no automatic retry.
155
172
 
156
- ### Coordinator reminders (0.7.0)
173
+ ### What reaches the coordinator's context
157
174
 
158
- A coordinator-local timer wakes an idle agent to review delegated work. It is **not** an endpoint health ping, task assignment, worker retry, or crashed-process watchdog. It starts disarmed and does not change shared config or the wire protocol.
175
+ There is no reminder timer and no `intercom_stop_reminders` tool. Delegating work, creating workers and reading status push nothing into the coordinator's conversation. Only these events do:
159
176
 
160
- - Valid coordinator calls to create, configure, resume, reload, request status from, message, or close a worker start/reset the timer **before the attempted operation**. A subsequent operation failure can still need follow-up, so it does not automatically cancel the timer.
161
- - Every five minutes, recheck coordinator identity and whether Pi is idle. Busy ticks are skipped, not queued. Worker replies, incoming reports, list/JSON status reads (including probes), and worker-to-worker/coordinator messages do not reset it.
162
- - `intercom_stop_reminders({})` disables reminders until the next qualifying call. It does not cancel workers, close jobs or model work. There is no automatic reminder-count cutoff.
163
- - Timers are in memory only. Shutdown, Pi `/reload`, or session replacement disposes them; startup does not restore or replay them. Reset/stop invalidates stale callbacks and older in-flight calls cannot re-arm after a later stop.
164
- - Aborting the owning tool's Pi run also disarms its reminder generation when that AbortSignal is available. This is **not universal Escape/Stop detection**: the host may later be in a separate retry/compaction run whose abort does not reach the original signal. Use the explicit stop tool to disable reminders reliably.
165
- - Reminder delivery uses Pi's existing user-message path. Host input rejection remains possible (including the documented compaction gap); reminders are not immediately retried. The next normal tick is a new periodic check, not proof of prior delivery.
166
-
167
- The reminder contains only this fixed public text, never task payloads or private reasoning:
177
+ | Event | Message | Size |
178
+ |---|---|---|
179
+ | Worker files `blocked`, `needs_decision` or `ready_for_review` | `status: summary` | Summary up to 2000 characters |
180
+ | Worker sends a message | The message text | Up to 48,000 characters; put long results in a file and send its path |
181
+ | Worker ends its turn after coordinator work without reporting or messaging the coordinator | One fixed line: `Turn ended without a report or message to you.` | Once per assignment |
182
+ | Worker registers, or answers `intercom_request_status` | Connection details | One short JSON line |
168
183
 
169
- > Intercom reminder: Review outstanding delegated work and worker reports. If follow-up is needed, take the next appropriate action. Do not assume workers have finished or stopped.
170
- >
171
- > If there is genuinely nothing to follow up on, call `intercom_stop_reminders`. Otherwise, reminders continue every five minutes; a new worker call resets the timer.
172
- >
173
- > This reminder does not authorize new work, retries, worker closure, or publication.
184
+ `clear` retires a worker's saved report without notifying the coordinator. Worker activity, saved reports and connectivity stay in local files: the monitor shows them, and `intercom_worker_status` reads them on demand.
174
185
 
175
- Reload the coordinator's extension to register the new tool and timer logic. No existing live session is armed merely by installing the change.
186
+ The idle notice is sent by the worker's extension when its Pi run settles; it uses no model call and no timer. It is sent at most once after each coordinator message, is not retried, and is skipped if the worker already reported or messaged the coordinator since that message. It reports that the turn ended, not that the work is finished. It does not detect a worker that crashed, lost its connection, or is still running; check those in the monitor or with `intercom_worker_status({ probe: true })`. Both coordinator and worker must run a version with this behavior.
176
187
 
177
188
  ## Config and wire contracts
178
189
 
@@ -195,11 +206,11 @@ Shared, source-controlled file: `<root>/.pi-intercom/config.json`. Do not ignore
195
206
 
196
207
  Legacy coordinator-only `dashboardPort` values are accepted for migration, but the browser dashboard has been retired in 0.4.1. Coordinator startup removes this field through the guarded config-write path. `intercom_list` returns the saved roster without `dashboardPort` or `dashboardUrl`; it does not probe live availability. The agent messaging `port` is unchanged.
197
208
 
198
- Workers have `coordinator:false` and an existing project directory equal to root or below it. Writes canonicalize directories and check real paths (including symlink escapes). Only coordinator extension operations write config; ordinary Pi file/shell tools are not restricted.
209
+ Workers have `coordinator:false`, `worktree`, `branch`, and an existing `projectDirectory`. Launch/resume requires `projectDirectory` to equal the config root (`.`); legacy descendant entries remain readable but cannot launch. Writes canonicalize project directories and check real paths (including symlink escapes). Worktree paths use their own rule and may be outside the config root. Only coordinator extension operations write config; ordinary Pi file/shell tools are not restricted.
199
210
 
200
211
  Initial creation writes/fsyncs a complete temporary file then atomically publishes via a no-replace hard link. Contenders see only complete config; exactly one wins. Unsupported hard-link filesystems fail explicitly, without unsafe fallback. Interrupted staging files can remain as ignored `.tmp` files but are never mistaken for config. Updates are serialized, join Pi's file-mutation queue, validate, fsync a temporary file and atomically rename. Duplicate activation of the same coordinator session in multiple processes and external editors racing writes remain outside V1's guarantees (session locks deferred).
201
212
 
202
- HTTP binds **127.0.0.1 only**. `POST /intercom` accepts UTF-8 JSON, at most 64 KiB. Version 0.5.1 also exposes side-effect-free `GET /intercom/health`, returning only protocol version and current session ID; it does not submit messages/model turns or write config. Envelope:
213
+ HTTP binds **127.0.0.1 only**. `POST /intercom` accepts UTF-8 JSON, at most 64 KiB. Version 0.5.1 also exposes side-effect-free `GET /intercom/health`, returning protocol version, current session ID, and (on workspace-aware versions) a boolean `busy` snapshot; it does not submit messages/model turns or write config. Envelope:
203
214
 
204
215
  ```json
205
216
  {"version":1,"kind":"message","from":"sender-session-id","to":"expected-recipient-session-id","payload":{"message":"explicit message"}}
@@ -207,13 +218,13 @@ HTTP binds **127.0.0.1 only**. `POST /intercom` accepts UTF-8 JSON, at most 64 K
207
218
 
208
219
  Handoff wire kinds (0.6.1): `close_prepare`, `close_identity`, `close_request`, `handoff_report`, `close_ready`, `close_commit`. These require configured roles, matching job/runtime identity and bounded validated payloads. Pane/process identity is ephemeral protocol data, never stored in public config or summaries.
209
220
 
210
- Other kinds: `message`, `report` (`status`, `summary`; configured worker → coordinator only), `registration` (`port`, `projectDirectory`), `status` (`port`, `busy`), `request_status`, `reload`, `stop`, `close` (empty control payload). Sender session identity is the envelope `from`; registration/status agent notifications include an explicit `sessionId` field. Agent messages require configured sender and recipient; controls require the current coordinator's sender ID and a worker recipient. Registration/unknown status are intentional exceptions to configured-sender checks, accepted only by coordinator. All receivers verify expected recipient ID, protecting against stale ports reaching another session. Local processes are trusted: this is role validation, **not authentication**. No remote networking/proxies/redirects or credentials.
221
+ Other kinds: `message`, `report` (`status`, `summary`; configured worker → coordinator only), `registration` (`port`, `projectDirectory`), `status` (`port`, `busy`, and optional `worktree`, `branch`, `workspaceState`), `request_status`, `reload`, `stop`, `close` (empty control payload). Sender session identity is the envelope `from`; registration/status agent notifications include an explicit `sessionId` field. Agent messages require configured sender and recipient; controls require the current coordinator's sender ID and a worker recipient. Registration/unknown status are intentional exceptions to configured-sender checks, accepted only by coordinator. All receivers verify expected recipient ID, protecting against stale ports reaching another session. Local processes are trusted: this is role validation, **not authentication**. No remote networking/proxies/redirects or credentials.
211
222
 
212
223
  `202 {"accepted":true}` means Intercom extension receipt/dispatch, **not guaranteed Pi input acceptance, queueing, or model completion**. In Pi 0.84.4, `sendUserMessage` can reject during manual compaction after Intercom has acknowledged receipt: its void extension API reports the asynchronous rejection only as a local host error. Intercom has no delivery queue or retry to repair this gap; inspect the recipient's local error and arrange an explicit resend after compaction if needed. Replacing it with `sendMessage` is not a safe workaround because that path can start a concurrent run. Invalid/unsupported requests return an error; excessive bodies return 413. Request-status sends its report separately after accepting control. Starting in 0.2.1, Intercom always supplies `deliverAs: 'steer'`: Pi starts normally when idle and steers when busy. This avoids the idle-snapshot-to-busy race that caused “Agent is already processing” errors; it does not fix manual-compaction rejection. It does not hard-interrupt an executing tool. Each send resolves the recipient again from config; 5-second receipt deadline, **no retries**. Timeout means unknown outcome, not proof of nondelivery. No durable inbox, deduplication or replay log in V1.
213
224
 
214
225
  Version 0.2.0 telemetry adds an optional envelope `correlationId` for one transport attempt; legacy envelopes without it remain accepted. It is not agent identity, deduplication, a task ID, or a reply/completion guarantee.
215
226
 
216
- Tool text output is bounded to 50 KiB/2000 lines. The full saved roster remains in the shared config file. Name sync errors are surfaced; startup retains the useful endpoint, and explicit reload reports failure (Pi name/responsibility may already have changed before a Herdr tab rename fails).
227
+ Tool text output is bounded to 50 KiB/2000 lines. The full saved roster remains in the shared config file. Name sync errors are surfaced; startup retains the useful endpoint, but failed reload clears loaded readiness (the Pi name may already have changed before a Herdr tab rename fails).
217
228
 
218
229
  ## Role model defaults
219
230
 
@@ -264,7 +275,7 @@ The optional project-config section is:
264
275
 
265
276
  Older configurations without this section retain the defaults above. Configuration updates affect future automatic opening, not an existing pane. Explicit `intercom_open_monitor` calls must always supply `placement` as a string. The tool schema intentionally has no enum; its description lists the currently supported strings (`coordinator-tab` and `new-tab`), and runtime validation rejects unsupported values. If the agent does not know the user's choice, it must ask rather than guess or use the saved preference. The explicit placement does not change the saved automatic-opening preference. If the monitor already exists in a different placement, close it first; Intercom does not relocate it or create a duplicate. A manual close invalidates earlier automatic-opening requests, but does not disable `autoOpen`: a later startup/reload can reopen it when workers are registered. To keep it closed, disable automatic opening too. Concurrent operations may report a lock or partial-operation fence instead of succeeding; they are not automatically retried. Preferences are checked at automatic admission, not an atomic cancellation of an already-submitted Herdr command.
266
277
 
267
- Both placements preserve coordinator focus. New-tab placement creates a monitor pane in its own tab; close targets that recorded pane only, even if other panes were later added to the tab or the saved placement preference changed. Ownership uncertainty or partial creation/closure requires inspection, not blind retries. Legacy panes adopted from their label alone are not authorized for tool-driven closure; they require manual inspection. Close rechecks ownership before submitting one pane-close request and observes pane absence afterward; Herdr does not provide an atomic compare-and-close operation, and pane absence does not prove all child processes exited. Monitor controls do not arm worker-follow-up reminders and do not stop workers.
278
+ Both placements preserve coordinator focus. New-tab placement creates a monitor pane in its own tab; close targets that recorded pane only, even if other panes were later added to the tab or the saved placement preference changed. Ownership uncertainty or partial creation/closure requires inspection, not blind retries. Legacy panes adopted from their label alone are not authorized for tool-driven closure; they require manual inspection. Close rechecks ownership before submitting one pane-close request and observes pane absence afterward; Herdr does not provide an atomic compare-and-close operation, and pane absence does not prove all child processes exited. Monitor controls do not stop workers.
268
279
 
269
280
  The table uses aligned **Worker | Connection | Report | Activity | Seen | Last activity** columns (activity age/detail give way first on narrow panes). Report is explicitly worker-authored and separate from host activity. Activity is the last reported `working`, `thinking`, `idle`, `closed`, or `unknown` state. Seen marks evidence older than 60 seconds with `(old)`; this is not a live connection indicator. Last activity uses fixed public labels such as Reading files, Running command or Writing response and can persist after the worker settles. Recent working/thinking/idle observations use restrained colors; old evidence remains neutral and explicitly marked. `NO_COLOR` disables styling. Version 0.5.2 adds a small footer label for the Intercom package version loaded by the monitor at startup; restart the monitor after updating to load the new version. Narrow panes use a compact version label and preserve the quit hint. No read-only banner or busy/idle count summary is shown. It reads the bounded config/log snapshot and performs read-only loopback health checks, then refreshes roughly three seconds after completion, without worker prompts or model calls. Checks are bounded by 750 ms per endpoint, a four-second batch budget, 16 concurrent requests and 256 workers; no overlapping batches or retries. Closing the monitor aborts checks. Only observed activity is shown, not inferred assignments/completion. Evidence over 60 seconds old is stale; missing evidence is unknown. The number of worker rows adapts to the pane height, with an omitted count when needed. The display is clipped to pane dimensions. In the monitor pane, use **↑/↓** to select a worker and **Enter** to toggle its details (configured responsibility and observed status). Selection follows the worker across roster reorder and scrolls the visible window. **Escape** closes details first, then quits; **q** or **Ctrl+C** always quits only the display process, never agents or their panes.
270
281
 
@@ -320,9 +331,9 @@ intercom_report_work({ status: "ready_for_review", summary: "Updated the parser
320
331
  intercom_report_work({ status: "clear" })
321
332
  ```
322
333
 
323
- There is one latest report per worker. A new report replaces it; clear saves an empty tombstone and removes the report indicator. Summaries are explicitly public, non-secret text (up to 2000 characters). They are sent to the coordinator, may enter its conversation history, and are saved in machine-local `.pi-intercom/reports/`—not in the metadata logs. Do not include private reasoning, credentials or raw tool payloads.
334
+ There is one latest report per worker. A new report replaces it; clear saves an empty tombstone and removes the report indicator without notifying the coordinator. Summaries are explicitly public, non-secret text (up to 2000 characters). They are sent to the coordinator, may enter its conversation history, and are saved in machine-local `.pi-intercom/reports/`—not in the metadata logs. Do not include private reasoning, credentials or raw tool payloads.
324
335
 
325
- The coordinator validates the configured worker identity, saves the report, then submits a notification through the normal message path. Receipt does not prove the coordinator evaluated it. Reports do not automatically approve changes, assign follow-up work, resume a worker, or declare a task complete. Ready for review means **the worker is asking for review**, not that validation has been independently accepted.
336
+ The coordinator validates the configured worker identity, saves the report, then submits a short `status: summary` notification through the normal message path. Receipt does not prove the coordinator evaluated it. Reports do not automatically approve changes, assign follow-up work, resume a worker, or declare a task complete. Ready for review means **the worker is asking for review**, not that validation has been independently accepted.
326
337
 
327
338
  The monitor shows Report alongside observed Status. Enter opens the worker's current report, age and summary. Reports persist until replaced/cleared and may outlive a process restart; their timestamps are separate from activity age. Missing/unreadable reports show no report indicator, not proof there are no blockers. Removed workers' report files are not shown or automatically deleted. No automatic resend or recovery is added; if saving succeeds but notification fails, inspect the saved report before deciding whether to resend.
328
339
 
@@ -362,6 +373,20 @@ Follow the [release procedure](references/releasing.md): review → choose an un
362
373
 
363
374
  The tag-only workflow is a source change for future releases; historical tags retain their original workflow snapshots. Any security findings must be resolved before the audit gate can pass.
364
375
 
376
+ ### 0.13.0 — worker worktrees and operational rules
377
+
378
+ - Require explicit worker worktree/branch configuration, with automatic packaged operating instructions.
379
+ - Validate the worker's actual Git workspace on startup, reload and before each agent run; never change Git state or tool working directories.
380
+ - Keep legacy configs readable and tell the coordinator which workers require explicit migration; no defaults or automatic repairs.
381
+ - Refuse busy/unknown existing-workspace reassignment and expose workspace fields in roster, status and monitor details.
382
+
383
+ ### 0.12.0 — event-driven coordination
384
+
385
+ - Remove the five-minute coordinator reminder and `intercom_stop_reminders`; nothing is injected into context on a timer.
386
+ - Add one idle notice when a worker's turn ends after coordinator work without a report or message to the coordinator.
387
+ - Store `clear` reports without notifying the coordinator, and shorten report notifications to `status: summary`.
388
+ - Prefer the calling terminal's `HC_TERMINAL_SOCKET` when selecting the Herdr core, and name a stopped core registry writer in the launch error.
389
+
365
390
  ### 0.11.1 — Herdr compatibility without release pins
366
391
 
367
392
  - Remove exact and minimum Herdr product-version restrictions from transport, monitor opening/closure and worker closure; compatible newer releases are accepted.
package/dist/config.d.ts CHANGED
@@ -8,6 +8,9 @@ export interface Agent {
8
8
  /** Legacy browser dashboard field, accepted for migration only; removed at coordinator startup. */
9
9
  dashboardPort?: number;
10
10
  projectDirectory: string;
11
+ /** Worker-only. Optional on disk solely so legacy entries can be migrated. */
12
+ worktree?: string;
13
+ branch?: string;
11
14
  handoff?: Handoff;
12
15
  closeJob?: CloseJob;
13
16
  }
@@ -38,6 +41,11 @@ export declare const key: (name: string) => string;
38
41
  export declare function fail(message: string): never;
39
42
  export declare function text(value: unknown, field: string, max?: number): asserts value is string;
40
43
  export declare function port(value: unknown): asserts value is number;
44
+ export declare function workspaceField(value: unknown, field: 'worktree' | 'branch'): asserts value is string;
45
+ export declare function requireWorkspace(agent: Pick<Agent, 'worktree' | 'branch'>): asserts agent is {
46
+ worktree: string;
47
+ branch: string;
48
+ };
41
49
  export declare function relativeDirectory(value: unknown): asserts value is string;
42
50
  export declare function validateConfig(value: unknown): Config;
43
51
  export declare const coordinator: (c: Config) => Agent;
@@ -69,5 +77,5 @@ export declare class ConfigStore {
69
77
  initialize(id: string, boundPort: number, assertValid?: () => void): Promise<boolean>;
70
78
  private publish;
71
79
  update(id: string, mutate: (config: Config) => void | Promise<void>, assertValid?: () => void): Promise<Config>;
72
- configure(id: string, values: Omit<Agent, 'coordinator'>, assertValid?: () => void): Promise<Config>;
80
+ configure(id: string, values: Omit<Agent, 'coordinator'>, assertValid?: () => void, checkPrevious?: (previous: Agent | undefined) => void): Promise<Config>;
73
81
  }
package/dist/config.js CHANGED
@@ -35,6 +35,19 @@ export function port(value) {
35
35
  if (!Number.isInteger(value) || Number(value) < 1 || Number(value) > 65535)
36
36
  fail('invalid port');
37
37
  }
38
+ export function workspaceField(value, field) {
39
+ text(value, field);
40
+ if (value !== value.trim() || /^none$/i.test(value) || /[\x00-\x1f\x7f]/.test(value))
41
+ fail(`invalid ${field}`);
42
+ if (field === 'branch' && value === 'main')
43
+ fail('workers must not use the main branch');
44
+ }
45
+ export function requireWorkspace(agent) {
46
+ if (agent.worktree === undefined || agent.branch === undefined)
47
+ fail('worker requires worktree and branch; reconfigure before reload or resume');
48
+ workspaceField(agent.worktree, 'worktree');
49
+ workspaceField(agent.branch, 'branch');
50
+ }
38
51
  export function relativeDirectory(value) {
39
52
  text(value, 'projectDirectory');
40
53
  if (path.isAbsolute(value) || path.win32.isAbsolute(value) || value.split(/[\\/]/).includes('..'))
@@ -59,6 +72,13 @@ export function validateConfig(value) {
59
72
  fail('invalid name');
60
73
  port(a.port);
61
74
  relativeDirectory(a.projectDirectory);
75
+ if (a.coordinator && (a.worktree !== undefined || a.branch !== undefined))
76
+ fail('worktree and branch are worker-only');
77
+ // Missing fields are migration state, not defaults. Present fields must be valid.
78
+ if (a.worktree !== undefined)
79
+ workspaceField(a.worktree, 'worktree');
80
+ if (a.branch !== undefined)
81
+ workspaceField(a.branch, 'branch');
62
82
  if (a.handoff !== undefined) {
63
83
  if (a.coordinator)
64
84
  fail('handoff is worker-only');
@@ -297,12 +317,18 @@ export class ConfigStore {
297
317
  this.tail = operation.catch(() => { });
298
318
  return operation;
299
319
  }
300
- async configure(id, values, assertValid = () => { }) {
320
+ async configure(id, values, assertValid = () => { }, checkPrevious) {
301
321
  return this.update(id, async (c) => {
302
322
  if (values.sessionId === coordinator(c).sessionId)
303
323
  fail('cannot configure coordinator as worker');
324
+ checkPrevious?.(c.agents.find(a => a.sessionId === values.sessionId));
325
+ for (const field of ['sessionId', 'name', 'description', 'projectDirectory']) {
326
+ if (typeof values[field] === 'string' && /^none$/i.test(values[field].trim()))
327
+ fail(`invalid ${field}`);
328
+ }
329
+ requireWorkspace(values);
304
330
  const projectDirectory = await directory(this.root, values.projectDirectory);
305
- const a = { sessionId: values.sessionId, name: values.name, description: values.description, port: values.port, projectDirectory, coordinator: false };
331
+ const a = { sessionId: values.sessionId, name: values.name, description: values.description, port: values.port, projectDirectory, worktree: values.worktree, branch: values.branch, coordinator: false };
306
332
  const index = c.agents.findIndex(old => old.sessionId === a.sessionId);
307
333
  if (index < 0)
308
334
  c.agents.push(a);
@@ -1 +1 @@
1
- {"version":3,"file":"config.js","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AACtG,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,UAAU,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AAI,EAAE,MAAM,CAAC,IAAI,EAAE,WAAW,EAAE,MAAM,CAAC,WAAW,EAAE,IAAI,EAAE,MAAM,CAAC,IAAI,EAAE,gBAAgB,EAAE,QAAQ,EAAE,MAAM,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,WAAW,EAAE,KAAK,EAAE,CAAC;YAChN,MAAM,KAAK,GAAG,CAAC,CAAC,MAAM,CAAC,SAAS,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,SAAS,KAAK,CAAC,CAAC,SAAS,CAAC,CAAC;YACvE,IAAI,KAAK,GAAG,CAAC;gBAAE,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;iBAC3B,CAAC;gBACJ,MAAM,GAAG,GAAG,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;gBAC5B,IAAI,WAAW,CAAC,GAAG,CAAC,QAAQ,CAAC;oBAAE,IAAI,CAAC,8DAA8D,CAAC,CAAC;gBACpG,IAAI,GAAG,CAAC,OAAO;oBAAE,CAAC,CAAC,OAAO,GAAG,GAAG,CAAC,OAAO,CAAC;gBACzC,IAAI,GAAG,CAAC,QAAQ;oBAAE,CAAC,CAAC,QAAQ,GAAG,GAAG,CAAC,QAAQ,CAAC;gBAC5C,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;YACtB,CAAC;QACH,CAAC,EAAE,WAAW,CAAC,CAAC;IAClB,CAAC;CACF"}
@@ -4,6 +4,8 @@ export interface WorkerConnection {
4
4
  state: 'connected' | 'disconnected' | 'unknown';
5
5
  checkedAt: string | null;
6
6
  reason: ConnectionReason;
7
+ /** Present only when a verified endpoint supplied a boolean activity snapshot. */
8
+ busy?: boolean;
7
9
  }
8
10
  export interface ConnectionAgent {
9
11
  sessionId: string;
@@ -22,7 +22,7 @@ export function probeWorker(agent, options = {}) {
22
22
  let request;
23
23
  let response;
24
24
  let timer;
25
- const finish = (state, reason) => {
25
+ const finish = (state, reason, busy) => {
26
26
  if (settled)
27
27
  return;
28
28
  settled = true;
@@ -32,7 +32,7 @@ export function probeWorker(agent, options = {}) {
32
32
  request?.destroy();
33
33
  resolve(options.signal?.aborted
34
34
  ? unknown(agent.sessionId, 'aborted', new Date().toISOString())
35
- : { sessionId: agent.sessionId, state, reason, checkedAt: new Date().toISOString() });
35
+ : { sessionId: agent.sessionId, state, reason, checkedAt: new Date().toISOString(), ...(typeof busy === 'boolean' ? { busy } : {}) });
36
36
  };
37
37
  const abort = () => finish('unknown', 'aborted');
38
38
  const error = (error) => {
@@ -94,7 +94,7 @@ export function probeWorker(agent, options = {}) {
94
94
  else if (identity.sessionId !== agent.sessionId)
95
95
  finish('disconnected', 'identity_mismatch');
96
96
  else
97
- finish('connected', 'verified');
97
+ finish('connected', 'verified', typeof identity.busy === 'boolean' ? identity.busy : undefined);
98
98
  });
99
99
  });
100
100
  request.on('error', error);
@@ -1 +1 @@
1
- {"version":3,"file":"connections.js","sourceRoot":"","sources":["../src/connections.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAY9C,MAAM,QAAQ,GAAG,IAAI,CAAC;AACtB,MAAM,OAAO,GAAG,KAAK,CAAC;AACtB,MAAM,WAAW,GAAG,GAAG,CAAC;AAExB,SAAS,OAAO,CAAC,KAAyB,EAAE,QAAgB,EAAE,OAAe;IAC3E,OAAO,OAAO,KAAK,KAAK,QAAQ,IAAI,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,CAAC,GAAG,CAAC,OAAO,EAAE,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC;AAC5H,CAAC;AACD,SAAS,OAAO,CAAC,SAAiB,EAAE,SAA2B,aAAa,EAAE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E,EAAE,YAAY,GAAQ,EAAE,CAAC;IAChD,KAAK,MAAM,MAAM,IAAI,OAAO,EAAE,CAAC;QAC7B,CAAC,iBAAiB,CAAC,MAAM,CAAC,SAAS,EAAE,WAAW,EAAE,GAAG,CAAC,CAAC,KAAK,KAAK,cAAc,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IACzH,CAAC;IACD,OAAO,CAAC,GAAG,OAAO,EAAE,GAAG,YAAY,CAAC,CAAC;AACvC,CAAC"}
@@ -163,7 +163,7 @@ export async function ensureCoreMonitorPane(options) {
163
163
  // All identity reads and mutations share one verified connection. Repeated
164
164
  // coreCall invocations reconnect and cannot bind this multi-step operation.
165
165
  if (!options.call || options.call === coreCall) {
166
- return withCoreSession(call => ensureCoreMonitorPane({ ...options, call }), { endpoint: env.HC_SOCKET });
166
+ return withCoreSession(call => ensureCoreMonitorPane({ ...options, call }), { endpoint: env.HC_TERMINAL_SOCKET ?? env.HC_SOCKET });
167
167
  }
168
168
  const root = await realpath(options.root);
169
169
  const invoke = options.call;
@@ -395,7 +395,7 @@ export async function closeCoreMonitorPane(options) {
395
395
  const check = () => options.assertCurrent?.();
396
396
  check();
397
397
  if (!options.call || options.call === coreCall) {
398
- return withCoreSession(call => closeCoreMonitorPane({ ...options, call }), { endpoint: env.HC_SOCKET });
398
+ return withCoreSession(call => closeCoreMonitorPane({ ...options, call }), { endpoint: env.HC_TERMINAL_SOCKET ?? env.HC_SOCKET });
399
399
  }
400
400
  const invoke = options.call;
401
401
  const call = async (method, params) => { check(); const result = await invoke(method, params); check(); return result; };