borgmcp 5.4.1 → 5.6.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 (101) hide show
  1. package/README.md +15 -0
  2. package/dist/assimilate-cmd.d.ts +8 -1
  3. package/dist/assimilate-cmd.d.ts.map +1 -1
  4. package/dist/assimilate-cmd.js +54 -21
  5. package/dist/assimilate-cmd.js.map +1 -1
  6. package/dist/claude.d.ts.map +1 -1
  7. package/dist/claude.js +30 -0
  8. package/dist/claude.js.map +1 -1
  9. package/dist/cli-help.d.ts +1 -0
  10. package/dist/cli-help.d.ts.map +1 -1
  11. package/dist/cli-help.js +45 -0
  12. package/dist/cli-help.js.map +1 -1
  13. package/dist/docs-sections.d.ts.map +1 -1
  14. package/dist/docs-sections.js +8 -0
  15. package/dist/docs-sections.js.map +1 -1
  16. package/dist/local-server-cursor.d.ts +10 -1
  17. package/dist/local-server-cursor.d.ts.map +1 -1
  18. package/dist/local-server-cursor.js +64 -5
  19. package/dist/local-server-cursor.js.map +1 -1
  20. package/dist/log-stream.d.ts +13 -0
  21. package/dist/log-stream.d.ts.map +1 -1
  22. package/dist/log-stream.js +45 -13
  23. package/dist/log-stream.js.map +1 -1
  24. package/dist/remote-client.d.ts +17 -0
  25. package/dist/remote-client.d.ts.map +1 -1
  26. package/dist/remote-client.js +37 -15
  27. package/dist/remote-client.js.map +1 -1
  28. package/dist/representative-cmd.d.ts +94 -0
  29. package/dist/representative-cmd.d.ts.map +1 -0
  30. package/dist/representative-cmd.js +290 -0
  31. package/dist/representative-cmd.js.map +1 -0
  32. package/dist/representative-core.d.ts +243 -0
  33. package/dist/representative-core.d.ts.map +1 -0
  34. package/dist/representative-core.js +679 -0
  35. package/dist/representative-core.js.map +1 -0
  36. package/dist/representative-delivery-store.d.ts +79 -0
  37. package/dist/representative-delivery-store.d.ts.map +1 -0
  38. package/dist/representative-delivery-store.js +233 -0
  39. package/dist/representative-delivery-store.js.map +1 -0
  40. package/dist/representative-listener-store.d.ts +46 -0
  41. package/dist/representative-listener-store.d.ts.map +1 -0
  42. package/dist/representative-listener-store.js +119 -0
  43. package/dist/representative-listener-store.js.map +1 -0
  44. package/dist/representative-listener.d.ts +32 -0
  45. package/dist/representative-listener.d.ts.map +1 -0
  46. package/dist/representative-listener.js +293 -0
  47. package/dist/representative-listener.js.map +1 -0
  48. package/dist/representative-mcp.d.ts +37 -0
  49. package/dist/representative-mcp.d.ts.map +1 -0
  50. package/dist/representative-mcp.js +211 -0
  51. package/dist/representative-mcp.js.map +1 -0
  52. package/dist/representative-owner.d.ts +10 -0
  53. package/dist/representative-owner.d.ts.map +1 -0
  54. package/dist/representative-owner.js +107 -0
  55. package/dist/representative-owner.js.map +1 -0
  56. package/dist/representative-store.d.ts +68 -0
  57. package/dist/representative-store.d.ts.map +1 -0
  58. package/dist/representative-store.js +173 -0
  59. package/dist/representative-store.js.map +1 -0
  60. package/dist/seat-probe.d.ts +1 -0
  61. package/dist/seat-probe.d.ts.map +1 -1
  62. package/dist/seat-probe.js +1 -1
  63. package/dist/seat-probe.js.map +1 -1
  64. package/dist/seat-store.d.ts +13 -0
  65. package/dist/seat-store.d.ts.map +1 -1
  66. package/dist/seat-store.js +55 -10
  67. package/dist/seat-store.js.map +1 -1
  68. package/dist/server-trust.d.ts +10 -0
  69. package/dist/server-trust.d.ts.map +1 -1
  70. package/dist/server-trust.js +23 -6
  71. package/dist/server-trust.js.map +1 -1
  72. package/dist/stream-owner.d.ts +10 -0
  73. package/dist/stream-owner.d.ts.map +1 -1
  74. package/dist/stream-owner.js +129 -21
  75. package/dist/stream-owner.js.map +1 -1
  76. package/dist/unknown-subcommand.d.ts +1 -1
  77. package/dist/unknown-subcommand.d.ts.map +1 -1
  78. package/dist/unknown-subcommand.js +1 -0
  79. package/dist/unknown-subcommand.js.map +1 -1
  80. package/docs/HUMAN_REPRESENTATIVE.md +434 -0
  81. package/package.json +1 -1
  82. package/src/assimilate-cmd.ts +73 -22
  83. package/src/claude.ts +30 -0
  84. package/src/cli-help.ts +48 -0
  85. package/src/docs-sections.ts +8 -0
  86. package/src/local-server-cursor.ts +56 -4
  87. package/src/log-stream.ts +47 -14
  88. package/src/remote-client.ts +54 -13
  89. package/src/representative-cmd.ts +369 -0
  90. package/src/representative-core.ts +908 -0
  91. package/src/representative-delivery-store.ts +235 -0
  92. package/src/representative-listener-store.ts +115 -0
  93. package/src/representative-listener.ts +215 -0
  94. package/src/representative-mcp.ts +250 -0
  95. package/src/representative-owner.ts +105 -0
  96. package/src/representative-store.ts +224 -0
  97. package/src/seat-probe.ts +1 -1
  98. package/src/seat-store.ts +61 -10
  99. package/src/server-trust.ts +25 -6
  100. package/src/stream-owner.ts +129 -20
  101. package/src/unknown-subcommand.ts +1 -0
@@ -1 +1 @@
1
- {"version":3,"file":"stream-owner.js","sourceRoot":"","sources":["../src/stream-owner.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,QAAQ,IAAI,EAAE,EAAE,MAAM,SAAS,CAAC;AACzC,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAEnD,MAAM,OAAO,GAAG,iEAAiE,CAAC;AAClF,MAAM,gBAAgB,GAAG,IAAI,CAAC,IAAI,CAAC,cAAc,EAAE,EAAE,cAAc,CAAC,CAAC;AACrE,MAAM,UAAU,GAAG,YAAY,CAAC;AAChC,MAAM,aAAa,GAAG,eAAe,CAAC;AACtC,MAAM,cAAc,GAAG,CAAC,CAAC;AAEzB,MAAM,CAAC,MAAM,qBAAqB,GAAG,MAAM,CAAC;AAC5C,4FAA4F;AAC5F,MAAM,CAAC,MAAM,0BAA0B,GAAG,KAAK,CAAC;AAChD,MAAM,CAAC,MAAM,8BAA8B,GAAG,KAAK,CAAC;AAEpD,MAAM,YAAY,GAAG,UAAU,EAAE,CAAC;AAClC,MAAM,gBAAgB,GAAG,IAAI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IAC9C,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC;QAAE,MAAM,IAAI,KAAK,CAAC,WAAW,KAAK,KAAK,KAAK,EAAE,CAAC,CAAC;AAC1E,CAAC"}
@@ -11,7 +11,7 @@
11
11
  * (`--cli`, `--remote`, agent passthrough, …) still fall through to launch.
12
12
  */
13
13
  /** The subcommands the claude.ts router dispatches on (lines 107-176). */
14
- export declare const KNOWN_SUBCOMMANDS: readonly ["setup", "update", "upgrade", "doctor", "clone", "quickstart", "assimilate", "reset-local-connection", "recover-enrollment", "spawn", "cleanup", "drones", "launch", "launch-all", "server"];
14
+ export declare const KNOWN_SUBCOMMANDS: readonly ["setup", "update", "upgrade", "doctor", "clone", "quickstart", "assimilate", "reset-local-connection", "recover-enrollment", "spawn", "cleanup", "drones", "launch", "launch-all", "representative", "server"];
15
15
  /**
16
16
  * Returns the offending command string when argv[2] is an unknown non-flag
17
17
  * positional (caller should error + exit 1), or null when it's bare `borg`,
@@ -1 +1 @@
1
- {"version":3,"file":"unknown-subcommand.d.ts","sourceRoot":"","sources":["../src/unknown-subcommand.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,0EAA0E;AAC1E,eAAO,MAAM,iBAAiB,wMAgBpB,CAAC;AAEX;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,GAAG,IAAI,CAK1E"}
1
+ {"version":3,"file":"unknown-subcommand.d.ts","sourceRoot":"","sources":["../src/unknown-subcommand.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,0EAA0E;AAC1E,eAAO,MAAM,iBAAiB,0NAiBpB,CAAC;AAEX;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,GAAG,IAAI,CAK1E"}
@@ -26,6 +26,7 @@ export const KNOWN_SUBCOMMANDS = [
26
26
  'drones',
27
27
  'launch',
28
28
  'launch-all',
29
+ 'representative',
29
30
  'server',
30
31
  ];
31
32
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"unknown-subcommand.js","sourceRoot":"","sources":["../src/unknown-subcommand.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,0EAA0E;AAC1E,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAC/B,OAAO;IACP,QAAQ;IACR,SAAS;IACT,QAAQ;IACR,OAAO;IACP,YAAY;IACZ,YAAY;IACZ,wBAAwB;IACxB,oBAAoB;IACpB,OAAO;IACP,SAAS;IACT,QAAQ;IACR,QAAQ;IACR,YAAY;IACZ,QAAQ;CACA,CAAC;AAEX;;;;GAIG;AACH,MAAM,UAAU,iBAAiB,CAAC,KAAyB;IACzD,IAAI,KAAK,KAAK,SAAS;QAAE,OAAO,IAAI,CAAC,CAAC,cAAc;IACpD,IAAI,KAAK,CAAC,UAAU,CAAC,GAAG,CAAC;QAAE,OAAO,IAAI,CAAC,CAAC,8BAA8B;IACtE,IAAK,iBAAuC,CAAC,QAAQ,CAAC,KAAK,CAAC;QAAE,OAAO,IAAI,CAAC;IAC1E,OAAO,KAAK,CAAC,CAAC,wCAAwC;AACxD,CAAC"}
1
+ {"version":3,"file":"unknown-subcommand.js","sourceRoot":"","sources":["../src/unknown-subcommand.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,0EAA0E;AAC1E,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAC/B,OAAO;IACP,QAAQ;IACR,SAAS;IACT,QAAQ;IACR,OAAO;IACP,YAAY;IACZ,YAAY;IACZ,wBAAwB;IACxB,oBAAoB;IACpB,OAAO;IACP,SAAS;IACT,QAAQ;IACR,QAAQ;IACR,YAAY;IACZ,gBAAgB;IAChB,QAAQ;CACA,CAAC;AAEX;;;;GAIG;AACH,MAAM,UAAU,iBAAiB,CAAC,KAAyB;IACzD,IAAI,KAAK,KAAK,SAAS;QAAE,OAAO,IAAI,CAAC,CAAC,cAAc;IACpD,IAAI,KAAK,CAAC,UAAU,CAAC,GAAG,CAAC;QAAE,OAAO,IAAI,CAAC,CAAC,8BAA8B;IACtE,IAAK,iBAAuC,CAAC,QAAQ,CAAC,KAAK,CAAC;QAAE,OAAO,IAAI,CAAC;IAC1E,OAAO,KAAK,CAAC,CAAC,wCAAwC;AACxD,CAAC"}
@@ -0,0 +1,434 @@
1
+ # Human Representative
2
+
3
+ `borg representative` lets a standard MCP host — for example Hermes — speak
4
+ **for the human** to one existing Coordinator drone and read its replies. It is
5
+ a client-side feature: it uses the ordinary cube log, addressing,
6
+ acknowledgement and saved-connection mechanisms. The Borg server has no special
7
+ "representative" concept and enforces nothing extra for it.
8
+
9
+ ## Vocabulary
10
+
11
+ - **Cube**: one repository's shared coordination space on your Borg server.
12
+ - **Drone**: one connected agent session in a cube. Its **role** defines how it
13
+ works.
14
+ - **Human seat**: the one role in a cube that speaks with the human's
15
+ authority.
16
+ - **Coordinator**: the drone holding the human seat. It owns the coordination
17
+ playbook and dispatches the other drones.
18
+ - **Human representative**: a *separate* automated drone under its own
19
+ non-human-seat role. It relays the human's requests, questions and decisions
20
+ to that one Coordinator and reads the Coordinator's replies. It is not the
21
+ human, never takes or replaces the human seat, carries none of the
22
+ Coordinator's playbook, and cannot address other drones or broadcast.
23
+ - **Binding**: the saved selection of one server, one cube, one representative
24
+ drone and one Coordinator drone for one worktree.
25
+
26
+ ## Lifecycle
27
+
28
+ ### 1. Create the representative role once
29
+
30
+ The representative needs an existing role that is **not** the human seat and
31
+ not a coordinating (queen-class) role. The default name is
32
+ `hermes-representative`. Create it with the cube's normal role management (for
33
+ example ask the Coordinator to run `borg_create-role`). Keep its text short,
34
+ for example: *"Relays the human's requests, questions and decisions to the
35
+ Coordinator and reports the Coordinator's replies back. Does not plan, dispatch
36
+ or review work."* Do not copy the Coordinator role into it.
37
+
38
+ ### 2. Prepare the connection
39
+
40
+ From the repository whose cube you want, name the exact Coordinator drone
41
+ (`borg drones` lists labels):
42
+
43
+ ```bash
44
+ borg representative prepare --host <host:port> --coordinator <coordinator-drone-label> --worktree hermes
45
+ ```
46
+
47
+ Replace `<host:port>` with your existing Borg server's address. The bare
48
+ `host:port` form is accepted (for example `127.0.0.1:7091`) and defaults to HTTPS.
49
+ Always pass `--host` for scripted or non-interactive runs. In an interactive
50
+ terminal, omitting it makes `prepare` attempt server detection and ask you to
51
+ confirm the detected server or enter its address.
52
+
53
+ This creates the representative's own drone in a new linked worktree through
54
+ the same path as `borg assimilate --worktree`, but **launches no agent CLI** and
55
+ does not touch any other drone. It then verifies against the live cube that:
56
+
57
+ - the new drone's role is the requested one, and is neither the human seat nor
58
+ a coordinating role;
59
+ - exactly one active drone has the given label, it is not the representative
60
+ itself, and it holds the human seat.
61
+
62
+ A missing, evicted, duplicated or non-human-seat Coordinator fails with a named
63
+ error. Another drone is never chosen instead. On success the binding is saved
64
+ in Borg's private configuration directory (`representative.json`, mode 0600).
65
+ That file holds identifiers and a request ledger only — no credential and no
66
+ message text. The drone's credential stays in Borg's existing private
67
+ connection store.
68
+
69
+ To resume later, run `borg representative prepare --coordinator <coordinator-drone-label> --role <your-representative-role>` from inside the representative worktree (without `--worktree`), substituting
70
+ your saved labels. Recovery errors for a bound connection print that complete
71
+ command with its actual labels and worktree. Changing the cube or Coordinator
72
+ is refused unless you
73
+ pass `--rebind`; a rebind that changes the cube or Coordinator also discards the
74
+ old request ledger. A rebind of any kind, including one with the same cube and
75
+ Coordinator, requires restarting every adapter and the listener; running ones
76
+ refuse. A running `borg representative mcp` process answers `send`, `read`,
77
+ `deliver` and `ack` with `BINDING_MISMATCH` until the MCP host restarts it;
78
+ its `status` reports the new `binding_fingerprint` beside the
79
+ `pinned_binding_fingerprint` it started with. A running listener stops with
80
+ reason `rebound`.
81
+
82
+ `prepare` reuses Borg's connection and worktree preparation, including its
83
+ private-state initialization and saved-connection checks. It does not require
84
+ Claude Code, Codex or OpenCode, write their configuration or preferences,
85
+ provision their launch access, report an agent identity, or install a session
86
+ hook. Nothing is started. An explicit `--host` that conflicts with the saved
87
+ connection is refused before preparation.
88
+
89
+ A confirmed evicted drone uses the ordinary connection recovery path. Revoked,
90
+ superseded, unreachable and changed-trust connections remain distinct refusals;
91
+ they are not treated as eviction. After recovery changes the drone identity,
92
+ confirm the new selection with the printed `--rebind` command.
93
+
94
+ First-time role creation and actual linked-worktree provisioning have not yet
95
+ been exercised live for this interface. The current evidence uses controlled
96
+ backends; this is not a claim of live onboarding verification.
97
+
98
+ ### 3. Configure the MCP host
99
+
100
+ The Borg server speaks pinned-TLS HTTPS, not MCP, so the host starts a local
101
+ stdio MCP process. A generic configuration (shown in Hermes-style YAML; adapt
102
+ the keys to your host):
103
+
104
+ ```yaml
105
+ mcp_servers:
106
+ borg-representative:
107
+ command: borg
108
+ args: ["representative", "mcp", "--worktree", "/absolute/path/to/representative/worktree"]
109
+ ```
110
+
111
+ No token, key or URL belongs in this configuration. If the worktree is not
112
+ prepared, or its saved connection no longer matches the binding, the process
113
+ exits with an error on stderr and writes nothing to stdout.
114
+
115
+ Check a connection at any time with
116
+ `borg representative status --worktree <path>`.
117
+
118
+ ### 4. Tools
119
+
120
+ | Tool | Purpose |
121
+ | --- | --- |
122
+ | `borg_representative-status` | Bound cube, representative, Coordinator; live re-check; unresolved sends; limits; `binding_fingerprint`. |
123
+ | `borg_representative-send` | Relay one `request`, `question` or `decision` to the bound Coordinator. |
124
+ | `borg_representative-read` | The bound Coordinator's replies after the delivered checkpoint, oldest first, bounded. Changes nothing. |
125
+ | `borg_representative-deliver` | Move the delivered checkpoint through a reply the host has durably persisted. |
126
+ | `borg_representative-ack` | Signal to the Coordinator that one direct reply was received. Nothing more. |
127
+
128
+ There is no tool for logging to other drones, broadcasting, role or drone
129
+ management, grants, eviction, release, regeneration or server lifecycle, and no
130
+ generic dispatcher. `send` rejects any recipient field.
131
+
132
+ New network operations re-verify the live cube first: the connection must still be the
133
+ bound drone in the bound cube, still under a permitted role, and the bound
134
+ Coordinator must still be an active human-seat drone. Otherwise the call fails
135
+ and nothing is sent. A cached sent retry returns its historical receipt without
136
+ a live re-check; use `borg_representative-status` to check the current connection.
137
+
138
+ ## Attribution and authority
139
+
140
+ Each relayed message starts with a fixed header:
141
+
142
+ ```text
143
+ [HUMAN-REPRESENTATIVE · automated relay via <representative-label> · not typed by the human]
144
+ request_id: <uuid>
145
+ kind: request | question | decision
146
+ authorization: user-authorized — … | model-advice — …
147
+ reply: direct to <representative-label>, quoting the request_id.
148
+ ---
149
+ <message>
150
+ ```
151
+
152
+ - `user_authorized` means the representative asserts the human explicitly
153
+ authorized that exact text. `model_advice` marks the model's own suggestion.
154
+ A `decision` is refused unless it is `user_authorized`.
155
+ - This label is the representative's own statement. **The Borg server does not
156
+ verify or enforce it.** On the server these are ordinary posts from the
157
+ representative drone. A relayed decision authorizes only its own text; it is
158
+ not proof of broader human approval, and the Coordinator should treat it that
159
+ way.
160
+
161
+ ## Request identity, retries and ambiguous sends
162
+
163
+ `send` returns a `request_id`, which is also the protocol `post_id`
164
+ idempotency key of the log append.
165
+
166
+ - The lookup, the conflict decision, the id allocation and the `pending`
167
+ reservation happen in one locked ledger transaction, before any network use.
168
+ Two overlapping sends of the same content without a `request_id` therefore
169
+ cannot both go out: the second is refused (`AMBIGUOUS_SEND_UNRESOLVED`) and
170
+ names the first one's `request_id`. This is not a content filter: once a
171
+ request is settled, sending identical content again is a new, legitimate
172
+ request.
173
+ - Within the same server database, cube and representative drone, re-sending
174
+ the same `request_id` with identical content never creates a second message:
175
+ a request already recorded as sent is answered from the local
176
+ ledger, and otherwise the server deduplicates on `post_id`. The same
177
+ `request_id` with different content is refused (`REQUEST_ID_CONFLICT`). The local
178
+ ledger retains only the newest 200 settled requests; unresolved requests are
179
+ retained. Older settled retries depend on server deduplication. Changing the
180
+ database, cube or drone is outside that guarantee.
181
+ - Invalid input, and a payload the protocol would refuse, fail before anything
182
+ is reserved. The live cube is verified before posting; if that check fails,
183
+ nothing was sent and the reservation is released.
184
+ - The representative makes exactly **one** transport attempt per call (the
185
+ client's usual automatic retry after a connection reset is switched off for
186
+ it). Only because of that, a typed refusal the server returns to that attempt
187
+ is reported as `SEND_REJECTED` — *this attempt was not stored*: a rejected,
188
+ revoked or superseded credential, an evicted drone or deleted cube, or an HTTP
189
+ 4xx answer. The error carries the underlying cause code and a recovery step
190
+ (for example: restore the connection with `prepare`; wait out a rate limit
191
+ and retry the same `request_id`; a `POST_ID_CONFLICT` goes to the operator).
192
+ That is a statement about the one attempt, not about the server's internals:
193
+ it assumes a server that answers 4xx instead of storing.
194
+ - Everything else is reported as `outcome: "ambiguous"`: no answer or a
195
+ timeout, an HTTP 5xx, a response that cannot be read or violates the protocol
196
+ (which can happen *after* the server stored the message), a TLS trust failure,
197
+ or any unrecognised error. The result names a bounded, sanitized `cause` and
198
+ a matching recovery hint. Nothing is re-sent across calls. The request stays
199
+ under `unresolved_requests` — across restarts — until a retry with the same
200
+ `request_id` settles it, and the same content under a new id is refused
201
+ meanwhile. There is deliberately no "forget it and resend under a new id"
202
+ operation.
203
+ - If an earlier attempt under a `request_id` was ambiguous, a later definite
204
+ refusal of a retry does not clear it: the request stays unresolved, because
205
+ the earlier attempt may have been stored.
206
+
207
+ Exactly-once delivery is therefore not claimed; at-most-once per `request_id`
208
+ relies on the server honouring `post_id` deduplication as the shared protocol
209
+ specifies, and on the single-process rule below.
210
+
211
+ ## Reading, delivery and wake limits
212
+
213
+ Four separate notions, each with its own tool or owner:
214
+
215
+ - **Receipt**: `read` returned the reply. Nothing moves; the same reply comes back
216
+ on every `read` until it is delivered.
217
+ - **Delivered**: the host called `deliver` after durably persisting everything up
218
+ to that reply. Only `deliver` moves the read window.
219
+ - **Processing and display**: the host's own business after delivery.
220
+ - **`ack`**: a signal to the Coordinator that a direct reply was received. It is
221
+ not delivery and does not move the window.
222
+
223
+ Reading:
224
+
225
+ - `read` returns the Coordinator's replies addressed to the representative that
226
+ come strictly after the delivered checkpoint, in `(created_at, entry_id)` order.
227
+ Other drones' entries are counted in `ignored_entries` and never returned; the
228
+ Coordinator's broadcasts are returned only with `include_broadcast`.
229
+ - `read` never advances anything: not the checkpoint, not the representative's
230
+ unread cursor, not a server cursor. After a crash at any point, the next `read`
231
+ returns every reply not yet delivered.
232
+ - Bounds: `limit` (1 to 50, default 10) is a hard cap on returned replies.
233
+ `max_bytes` (4096 to 60000, default 32768) caps the serialized tool result.
234
+ Replies are whole or omitted, never truncated; a reply that alone exceeds
235
+ `max_bytes` is returned alone with `"oversize": true`. The serialized result
236
+ never exceeds `max(max_bytes, 16384)` bytes: if an oversize reply is still
237
+ larger than that, its document citations are reduced to ids and it carries
238
+ `"documents_reduced": true`; message text is never cut. `status` reports this
239
+ floor as `envelope_floor`; set the host's tool-result ceiling at or above it.
240
+ The floor covers a message at the server's default post limit (4096 bytes)
241
+ with ordinary metadata. JSON escaping (a message full of tabs or quotes) or
242
+ heavy citation metadata can still push a single reply above it, as can a
243
+ server that allows larger posts. Then `read` refuses with
244
+ `REPRESENTATIVE_READ_OVERSIZE` (`entry_id`, `measured_bytes`, `bound`) and
245
+ changes nothing; retry with a larger `max_bytes` (up to 60000).
246
+ - `read` scans past entries that are not for the representative until the page
247
+ is full or the log ends, so it never returns no replies with `has_more: true`.
248
+ `has_more` is true only when another reply follows the returned window.
249
+ Page by delivering and reading again.
250
+ - The result includes `checkpoint` (`entry_id` and `created_at`; null until the
251
+ first delivery, unless the upgrade below started it at the old read position)
252
+ and `binding_fingerprint`.
253
+
254
+ Delivering:
255
+
256
+ - `deliver` takes `{ "through": "<entry_id>" }` and moves the checkpoint to that
257
+ reply. Call it only after the host has durably persisted every reply up to it.
258
+ - `through` must be a reply that `read` actually returned since the checkpoint
259
+ last moved; membership is checked, not only the range, so a broadcast skipped
260
+ by a read without `include_broadcast` is refused too. Any other entry is refused
261
+ with `REPRESENTATIVE_DELIVER_UNKNOWN_ENTRY` and nothing changes. The same or an older
262
+ id is a no-op that returns `advanced: false`, so a retry after a lost result is safe.
263
+ - Implementation note: the checkpoint, an internal read fence (the latest reply
264
+ any `read` returned) and the replies returned since the checkpoint last moved
265
+ are stored together in one private file per binding, written atomically.
266
+ `deliver` accepts only one of those returned replies. None of this is part of
267
+ the interface.
268
+
269
+ Binding fence:
270
+
271
+ - `binding_fingerprint` is the hex SHA-256 of the canonical JSON array
272
+ `[origin, trustIdentity, cubeId, representativeDroneId, coordinatorDroneId, boundAt]`.
273
+ It changes on every rebind and on a server trust change, and contains no path or
274
+ credential. `prepare --rebind` always starts a new generation, even when the
275
+ cube and Coordinator stay the same. It appears in `status`, `read`, `send`, `deliver` and the listener's
276
+ `listening` event. Persist it at binding time; if any result shows a different
277
+ value, stop routing and hold for the human.
278
+
279
+ Upgrading from a version without `deliver`:
280
+
281
+ - The first `read` or `deliver` for a binding starts the checkpoint where the old
282
+ destructive read left the representative's unread cursor: replies that were
283
+ unread at upgrade time are returned, replies already read are not. When the
284
+ binding never read, every addressed reply in the cube log is returned. If the
285
+ upgrade is interrupted before its checkpoint is written, the next read returns
286
+ every addressed reply instead; deduplicate by `entry_id`.
287
+ The old position is taken only from a genuine private file (a regular file you
288
+ own, not a symlink, not writable by group or others, in the private config
289
+ directory); otherwise the checkpoint starts empty and every addressed reply is
290
+ returned.
291
+ - That upgrade happens once per representative drone and server authority, and is
292
+ recorded in a private marker, so it never runs again, even after a checkpoint
293
+ file is removed. A later
294
+ binding generation (any `prepare --rebind`, or a trust change) starts with an
295
+ empty checkpoint, so its first read returns its addressed history. Deduplicate by
296
+ `entry_id` (the host persists everything it delivers) and page with `limit`.
297
+
298
+ Known limits:
299
+
300
+ - Retention is the server's cube log; the local inbox is not a content source.
301
+ - Each `read` scans the cube log from the checkpoint, including entries not
302
+ addressed to the representative, so a host that never calls `deliver` pays a
303
+ growing scan. Deliver promptly.
304
+ - Replies preserve document citations (id, title and state). Document bodies are
305
+ not included and cannot be fetched through this connection. Ask the Coordinator
306
+ to provide the content through a supported channel.
307
+
308
+ Ownership:
309
+
310
+ - Exclusive process ownership is enforced for each representative drone. Processes
311
+ may start idle; the first `send`, `read`, `deliver` or `ack` takes the lease. Other
312
+ processes receive `REPRESENTATIVE_OWNERSHIP_REQUIRED` before any ledger
313
+ reservation, delivery-state write, cursor access or network call. The refusal
314
+ names the owner's PID and start time. Use that host, or wait for it to exit before
315
+ using another.
316
+ - `status` is allowed in every process, is read-only, and takes no lease. Its
317
+ `ownership` field reports the state, PID, start time, and heartbeat age in
318
+ milliseconds (`ageMs`). A clean exit releases ownership; a dead PID or a
319
+ heartbeat older than 70 seconds permits takeover without manual cleanup.
320
+ A process that loses its lease refuses further activity until restarted.
321
+ An already in-flight network operation cannot be cancelled by a local lease;
322
+ same-request retries across takeover still use the existing ledger and server
323
+ deduplication. Retry an ambiguous send with its original `request_id`.
324
+ - `in_reply_to` is a textual match of a known `request_id` quoted in the reply.
325
+ It is a convenience, not a protocol guarantee.
326
+
327
+ Wake hints:
328
+
329
+ - **The MCP process does not push content.** A separate supervised `listen`
330
+ process emits body-free wake hints. The owning adapter still calls `read` for
331
+ content. Hints are neither delivery receipts nor authority.
332
+ - Live dedupe is bounded to the surviving inbox tail and recent IDs; an ancient
333
+ trimmed ID sent again as a live event can produce a duplicate hint. Ordered
334
+ catch-up also dedupes against its captured resume cursor.
335
+ - The listener retains a bounded tail: above 1024 lines it trims to the latest
336
+ 512. Lost-hint replay covers only that tail; beyond it `read` from the delivered
337
+ checkpoint is the source of truth. On every `gap`, call `read`.
338
+
339
+ ### Host conversation routing
340
+
341
+ The lease selects one consuming process, not a conversation within that host.
342
+ The host must record which conversation owns each `request_id`, persist every
343
+ reply durably before calling `deliver`, and route replies using `in_reply_to`.
344
+ Hold replies with an unknown or missing request ID for the human instead of
345
+ dropping them. Borg cannot enforce these duties inside the host; it provides one
346
+ delivered checkpoint per binding, not one per conversation. The listener inbox
347
+ is private client state, not a host content API.
348
+
349
+ ## Supervised listener
350
+
351
+ For a prepared connection, run a separate long-lived subprocess:
352
+
353
+ ```bash
354
+ borg representative listen --worktree <path>
355
+ ```
356
+
357
+ Supervise it and persist the last `entry_id` durably admitted to the host's work
358
+ queue. On subsequent starts, pass that checkpoint:
359
+
360
+ ```bash
361
+ borg representative listen --worktree <path> --replay-after <entry_id>
362
+ ```
363
+
364
+ There is one listener lease per representative drone and server authority,
365
+ independent of the lazy tools lease. A second listener refuses without consuming
366
+ or appending anything. A dead owner or expired heartbeat permits takeover; a
367
+ process that loses ownership exits and must be restarted. A local lease cannot
368
+ cancel an already-issued request. No eager tools-lease option is needed when one
369
+ adapter exclusively calls `send`, `read`, `deliver` and `ack`.
370
+
371
+ `representative status` reports `listener` beside tool `ownership`: running
372
+ state, owner PID and start time, heartbeat age (`ageMs`), persisted watermark and
373
+ private inbox path. Status acquires nothing. Do not read the inbox or depend on
374
+ its pathname; it is not the content-delivery interface.
375
+
376
+ Stdout is newline-delimited JSON only. Stderr contains human diagnostics and
377
+ must not be parsed. The host must ignore unknown fields and unknown event types.
378
+
379
+ | Event | Fields and meaning |
380
+ | --- | --- |
381
+ | `refused` | The only stdout line on startup refusal: `code`, `exit_code`. Another listener uses `REPRESENTATIVE_LISTENER_OWNED`, plus `owner_pid` and `owner_started_at`. |
382
+ | `listening` | Once connected and holding the lease: `cube_id`, `drone_id`, `binding_fingerprint`, `watermark` (entry id or null), `inbox`. |
383
+ | `entry` | `entry_id`, `created_at`, `from_label`, `from_role`, `visibility`, `request_id` (UUID or null), `documents` (count), `replay` (boolean). No message body. |
384
+ | `reconnecting` | `attempt`, `delay_ms`. |
385
+ | `connected` | `resumed_from` (entry id or null). |
386
+ | `gap` | `after` (entry id or null), `reason`: `cursor-expired` or `replay-checkpoint-missing`. Call `read` once. |
387
+ | `stopped` | `reason`: `signal`, `evicted`, `rebound`, `revoked`, `trust-changed`, `lease-lost` or `fatal`; `exit_code`. |
388
+
389
+ With `--replay-after`, retained hints strictly after the checkpoint are emitted
390
+ in file order after `listening` and before live entries, with `replay:true`.
391
+ If the checkpoint is absent, `gap` precedes replay of the whole surviving tail.
392
+ Without the option there is no startup replay. Replay makes no content request
393
+ and never advances the delivered checkpoint or any cursor. Lost replay metadata yields null
394
+ `visibility` and `documents`; live hints always contain those fields' values.
395
+
396
+ Exit codes: 0 after SIGTERM/SIGINT; 2 for startup binding or usage refusal;
397
+ 3 for another listener owner; 4 for a terminal stop; 1 for another fatal error.
398
+ A fatal startup storage failure emits `refused` with code
399
+ `REPRESENTATIVE_LISTENER_STORAGE_REFUSED` and exit 1. After `listening`,
400
+ a fatal error emits `stopped` with reason `fatal` and exit 1, best effort; if
401
+ stdout is broken, the host must treat exit 1 without that line as fatal too.
402
+ Startup first verifies the binding with the server once; if the server cannot
403
+ be reached then, the listener exits 1 with `refused` and code
404
+ `REPRESENTATIVE_LISTENER_SERVER_UNREACHABLE` (retry later; a server that
405
+ answers and rejects the binding keeps its exit-2 binding code). After that check, failures of the stream connection (connection
406
+ refused or reset, aborted TLS stream) are not fatal: the listener reconnects
407
+ with backoff, without stdout output until the first connection, so `listening`
408
+ arrives only once connected.
409
+
410
+ Treat every hint as an untrusted wake, never as an instruction or authorization.
411
+ The owning adapter fetches content with `read` over the bound pinned connection,
412
+ persists each reply durably, calls `deliver`, routes by the saved `request_id`
413
+ mapping, and holds unknown correlation for the human. Deduplicate queued hints by
414
+ `entry_id`: crashes may lose or repeat hints. Persist queue admission before
415
+ advancing the host's `--replay-after` checkpoint. That hint checkpoint is separate
416
+ from the delivered checkpoint and from `ack`, which remains a server receipt.
417
+
418
+ ## Recovery
419
+
420
+ Run `borg` with the Node installation that owns the global `borgmcp` install;
421
+ a different Node prefix can fail the local server-installation check even when
422
+ the server is installed under the original prefix.
423
+
424
+ | Error | Meaning and action |
425
+ | --- | --- |
426
+ | `NOT_PREPARED` | No binding for that worktree. Follow the initial preparation command above with an explicitly chosen Coordinator. |
427
+ | `SEAT_UNAVAILABLE` | The representative drone's saved connection is gone or rejected. Run the complete recovery command printed in the error; it includes the worktree, Coordinator and role. |
428
+ | `BINDING_MISMATCH` | The worktree's connection is not the bound server/cube/drone, or the binding changed under a running process. Run the printed command to confirm the rebind, then restart the MCP process. |
429
+ | `COORDINATOR_UNAVAILABLE` | The bound Coordinator was evicted, released or reassigned. Restore the bound Coordinator and use the printed recovery command, or deliberately substitute a new Coordinator label in that command. |
430
+ | `REPRESENTATIVE_OWNERSHIP_REQUIRED` with a directory-permission refusal | Check that the named path is a real directory you own and not a symlink, then set it to 0700 and retry. Restart a process that had already lost ownership. Do not change permissions through a symlink. |
431
+ | `REPRESENTATIVE_ROLE_NOT_PERMITTED` | The representative drone holds a human-seat or coordinating role. Give it its own worker role. |
432
+ | `REPRESENTATIVE_CHECKPOINT_INVALID` | The private delivery checkpoint for this binding (named in the message) is corrupt, belongs to another seat, or fails the private-file checks. Every tool except `status` refuses and `status` reports it as `checkpoint_problem`; nothing is used or reset automatically. Inspect the file, then remove it; the next `read` returns every addressed reply again, so deduplicate by `entry_id`. |
433
+ | `REPRESENTATIVE_READ_OVERSIZE` | The next reply does not fit `max(max_bytes, 16384)` bytes even with its citations reduced to ids (heavy JSON escaping or citation metadata, or a server allowing posts above its default 4096-byte limit). Nothing was read or advanced. Retry with a larger `max_bytes` (up to 60000); beyond that the operator must lower the server's post limit. |
434
+ | `REPRESENTATIVE_DELIVER_UNKNOWN_ENTRY` | `deliver` named an entry that `read` has not returned (or no Coordinator reply). Nothing changed. Call `read`, persist what it returns, then deliver through its last `entry_id`. |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "borgmcp",
3
- "version": "5.4.1",
3
+ "version": "5.6.0",
4
4
  "description": "Coordinate AI coding agents in shared cubes. Works with Claude Code, Codex, and OpenCode.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",