@cotal-ai/manager 0.171.2 → 0.171.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (56) hide show
  1. package/dist/broker-transport.d.ts +126 -0
  2. package/dist/broker-transport.d.ts.map +1 -0
  3. package/dist/broker-transport.js +263 -0
  4. package/dist/broker-transport.js.map +1 -0
  5. package/dist/command-dispatch.d.ts +206 -0
  6. package/dist/command-dispatch.d.ts.map +1 -0
  7. package/dist/command-dispatch.js +471 -0
  8. package/dist/command-dispatch.js.map +1 -0
  9. package/dist/connector-inventory.d.ts +37 -0
  10. package/dist/connector-inventory.d.ts.map +1 -0
  11. package/dist/connector-inventory.js +73 -0
  12. package/dist/connector-inventory.js.map +1 -0
  13. package/dist/harness-resolution.d.ts +71 -0
  14. package/dist/harness-resolution.d.ts.map +1 -0
  15. package/dist/harness-resolution.js +111 -0
  16. package/dist/harness-resolution.js.map +1 -0
  17. package/dist/manager.d.ts +91 -375
  18. package/dist/manager.d.ts.map +1 -1
  19. package/dist/manager.js +400 -2811
  20. package/dist/manager.js.map +1 -1
  21. package/dist/persona-catalog.d.ts +86 -0
  22. package/dist/persona-catalog.d.ts.map +1 -0
  23. package/dist/persona-catalog.js +325 -0
  24. package/dist/persona-catalog.js.map +1 -0
  25. package/dist/preservation.d.ts +157 -0
  26. package/dist/preservation.d.ts.map +1 -0
  27. package/dist/preservation.js +583 -0
  28. package/dist/preservation.js.map +1 -0
  29. package/dist/readiness-wait.d.ts +64 -0
  30. package/dist/readiness-wait.d.ts.map +1 -0
  31. package/dist/readiness-wait.js +244 -0
  32. package/dist/readiness-wait.js.map +1 -0
  33. package/dist/runtime/index.d.ts +2 -0
  34. package/dist/runtime/index.d.ts.map +1 -1
  35. package/dist/runtime/index.js +22 -0
  36. package/dist/runtime/index.js.map +1 -1
  37. package/dist/service-adapter.d.ts.map +1 -1
  38. package/dist/service-adapter.js +6 -0
  39. package/dist/service-adapter.js.map +1 -1
  40. package/dist/spawn-goal.d.ts +77 -0
  41. package/dist/spawn-goal.d.ts.map +1 -0
  42. package/dist/spawn-goal.js +357 -0
  43. package/dist/spawn-goal.js.map +1 -0
  44. package/dist/start-doors.d.ts +51 -0
  45. package/dist/start-doors.d.ts.map +1 -0
  46. package/dist/start-doors.js +187 -0
  47. package/dist/start-doors.js.map +1 -0
  48. package/dist/status-and-models.d.ts +155 -0
  49. package/dist/status-and-models.d.ts.map +1 -0
  50. package/dist/status-and-models.js +290 -0
  51. package/dist/status-and-models.js.map +1 -0
  52. package/dist/terminal-input.d.ts +82 -0
  53. package/dist/terminal-input.d.ts.map +1 -0
  54. package/dist/terminal-input.js +266 -0
  55. package/dist/terminal-input.js.map +1 -0
  56. package/package.json +12 -12
@@ -0,0 +1 @@
1
+ {"version":3,"file":"command-dispatch.d.ts","sourceRoot":"","sources":["../src/command-dispatch.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,QAAQ,EAAE,YAAY,EAAe,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGxG,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAO5C,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,CAEhF;AAED;+GAC+G;AAC/G,MAAM,WAAW,mBAAmB;IAClC,MAAM,EAAE,MAAM,OAAO,CAAC,QAAQ,CAAC,CAAC;IAChC,IAAI,EAAE,MAAM,OAAO,CAAC,MAAM,CAAC,CAAC;IAC5B,SAAS,EAAE,MAAM,OAAO,CAAC,WAAW,CAAC,CAAC;IACtC,UAAU,EAAE,MAAM,OAAO,CAAC,YAAY,CAAC,CAAC;IACxC,iBAAiB,EAAE,MAAM,OAAO,CAAC,mBAAmB,CAAC,CAAC;IACtD,YAAY,EAAE,MAAM,OAAO,CAAC,cAAc,CAAC,CAAC;IAC5C,eAAe,EAAE,MAAM,OAAO,CAAC,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,CAAC,OAAO;IACf,OAAO,CAAC,UAAU;IAClB,OAAO,CAAC,gBAAgB;IACxB,OAAO,CAAC,cAAc;IACtB,OAAO,CAAC,eAAe;IACvB,OAAO,CAAC,aAAa;IACrB,OAAO,CAAC,sBAAsB;IAC9B,OAAO,CAAC,oBAAoB;IAC5B,OAAO,CAAC,cAAc;IACtB,OAAO,CAAC,YAAY;IACpB,OAAO,CAAC,UAAU;IAClB,OAAO,CAAC,eAAe;IACvB,OAAO,CAAC,kBAAkB;IAC1B,OAAO,CAAC,cAAc;IACtB,OAAO,CAAC,UAAU;IAElB;;;;;;;kGAO8F;IAC9F,YAAY,CAAC,MAAM,EAAE,MAAM,GACvB;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,aAAa,GAAG,YAAY,CAAC;QAAC,OAAO,CAAC,EAAE,SAAS,CAAA;KAAE,GAC7E;QAAE,OAAO,CAAC,EAAE,SAAS,CAAC;QAAC,OAAO,EAAE,MAAM,IAAI,CAAA;KAAE;IAWhD;;;;;;;;;;;;;4EAawE;IAClE,YAAY,CAAC,MAAM,EAAE,QAAQ,GAAG,OAAO,CAAC,OAAO,CAAC;IAqBtD;;;;iFAI6E;YAC/D,cAAc;IAO5B;;;;;;;;;;;;;;;;;;;;;;;;;;gEA0B4D;IAC5D,kBAAkB,IAAI,YAAY,EAAE;IAsQpC;;;;6DAIyD;IACzD,UAAU,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,YAAY,GAAG,OAAO,CAAC,YAAY,CAAC;CAYlG"}
@@ -0,0 +1,471 @@
1
+ import { DEV_OWNER, EpEnvelopeError, goalRefOf, principalKey, readGoalResult, rejectionText, resolveAuthProvider } from "@cotal-ai/core";
2
+ import { userAuthStateDir } from "@cotal-ai/workspace";
3
+ import { managerCommandDefs } from "./manager-service-contract.js";
4
+ import { servedRequestSubject } from "./run-hosting.js";
5
+ import { listStaticSlotObservations, observeStaticSlot, renderStaticSlotObservation, STATIC_SLOT_READ_FAILED_DETAIL, StaticSlotReadError } from "./static-lifecycle.js";
6
+ import { measureManagerVitals } from "./vitals.js";
7
+ export function participantKey(owner, actor, uid) {
8
+ return `${owner}.${actor}.${uid}`;
9
+ }
10
+ /** The typed manager command table, the control admission both doors share, and the admin reach it reads. */
11
+ export class CommandDispatch {
12
+ deps;
13
+ constructor(deps) {
14
+ this.deps = deps;
15
+ }
16
+ // The Manager members these bodies read, under their Manager names. Each reads through its dep at
17
+ // use, so a field the Manager assigns later is current and a method a test replaces on the Manager
18
+ // is the one that runs.
19
+ get agents() { return this.deps.agents(); }
20
+ get auth() { return this.deps.auth(); }
21
+ get execution() { return this.deps.execution(); }
22
+ get goalWriter() { return this.deps.goalWriter(); }
23
+ get managerInstanceId() { return this.deps.managerInstanceId(); }
24
+ get participants() { return this.deps.participants(); }
25
+ get remoteAuthority() { return this.deps.remoteAuthority(); }
26
+ get resumeRequired() { return this.deps.resumeRequired(); }
27
+ get runHosting() { return this.deps.runHosting(); }
28
+ get space() { return this.deps.space(); }
29
+ get transcripts() { return this.deps.transcripts(); }
30
+ get userMode() { return this.deps.userMode(); }
31
+ get workspaceRoot() { return this.deps.workspaceRoot(); }
32
+ attachAuthorized(...args) { return this.deps.attachAuthorized(...args); }
33
+ authorizeNamed(...args) { return this.deps.authorizeNamed(...args); }
34
+ authorizeRunAmend(...args) { return this.deps.authorizeRunAmend(...args); }
35
+ authorizeRunAnswer(...args) { return this.deps.authorizeRunAnswer(...args); }
36
+ beginLifecycle(...args) { return this.deps.beginLifecycle(...args); }
37
+ despawnAuthorized(...args) { return this.deps.despawnAuthorized(...args); }
38
+ executionRefusal(...args) { return this.deps.executionRefusal(...args); }
39
+ findManagedByTarget(...args) { return this.deps.findManagedByTarget(...args); }
40
+ inputAuthorized(...args) { return this.deps.inputAuthorized(...args); }
41
+ lifecycleMembershipRefusal(...args) { return this.deps.lifecycleMembershipRefusal(...args); }
42
+ list(...args) { return this.deps.list(...args); }
43
+ listSpawnDirectory(...args) { return this.deps.listSpawnDirectory(...args); }
44
+ loggedSpawnRefusal(ctx, serve) { return this.deps.loggedSpawnRefusal(ctx, serve); }
45
+ maintenanceError(...args) { return this.deps.maintenanceError(...args); }
46
+ managedPrincipal(...args) { return this.deps.managedPrincipal(...args); }
47
+ managerStatusData(...args) { return this.deps.managerStatusData(...args); }
48
+ opCommitResume(...args) { return this.deps.opCommitResume(...args); }
49
+ opDefinePersona(...args) { return this.deps.opDefinePersona(...args); }
50
+ opFinalizeResume(...args) { return this.deps.opFinalizeResume(...args); }
51
+ opLaunch(...args) { return this.deps.opLaunch(...args); }
52
+ opListPersonas(...args) { return this.deps.opListPersonas(...args); }
53
+ opModels(...args) { return this.deps.opModels(...args); }
54
+ opPreservationCtl(...args) { return this.deps.opPreservationCtl(...args); }
55
+ opPurge(...args) { return this.deps.opPurge(...args); }
56
+ opRemovePersona(...args) { return this.deps.opRemovePersona(...args); }
57
+ opResumePreserved(...args) { return this.deps.opResumePreserved(...args); }
58
+ opShowPersona(...args) { return this.deps.opShowPersona(...args); }
59
+ opStart(...args) { return this.deps.opStart(...args); }
60
+ openStaticChatSession(...args) { return this.deps.openStaticChatSession(...args); }
61
+ psOwnerFilter(...args) { return this.deps.psOwnerFilter(...args); }
62
+ resolveSpawnCwd(...args) { return this.deps.resolveSpawnCwd(...args); }
63
+ retireStaticChatSession(...args) { return this.deps.retireStaticChatSession(...args); }
64
+ runAnswerer(...args) { return this.deps.runAnswerer(...args); }
65
+ runHost(...args) { return this.deps.runHost(...args); }
66
+ serveGated(ctx, fn) { return this.deps.serveGated(ctx, fn); }
67
+ serveObservation(ctx, fn) { return this.deps.serveObservation(ctx, fn); }
68
+ serveSpawnGoal(...args) { return this.deps.serveSpawnGoal(...args); }
69
+ serveTurnCancel(...args) { return this.deps.serveTurnCancel(...args); }
70
+ serveTurnGoal(...args) { return this.deps.serveTurnGoal(...args); }
71
+ serveTurnParticipation(...args) { return this.deps.serveTurnParticipation(...args); }
72
+ serveTurnUnconfirmed(...args) { return this.deps.serveTurnUnconfirmed(...args); }
73
+ serveTurnYield(...args) { return this.deps.serveTurnYield(...args); }
74
+ spawnPersona(...args) { return this.deps.spawnPersona(...args); }
75
+ stopHandle(...args) { return this.deps.stopHandle(...args); }
76
+ stopWindowsSeat(...args) { return this.deps.stopWindowsSeat(...args); }
77
+ trackStoppedHandle(...args) { return this.deps.trackStoppedHandle(...args); }
78
+ turnPendingFor(...args) { return this.deps.turnPendingFor(...args); }
79
+ turnTarget(...args) { return this.deps.turnTarget(...args); }
80
+ /** The ONE shared control-admission chokepoint BOTH dispatch doors
81
+ * run — the v0.3 `ctl` door ({@link handle}) and the v0.4 `ep` service handlers
82
+ * ({@link serveGated}): the maintenance/resume fence (`beginLifecycle`: a resume-pending or
83
+ * non-active manager accepts no ordinary control work) and then the membership gate
84
+ * ({@link lifecycleMembershipRefusal}: a retiring/terminalizing/retired managed incarnation's
85
+ * AUTHENTICATED principal holds no control authority even with a valid JWT). Refusal carries
86
+ * WHICH fence refused so the ep door can map onto the §13.3 catalog; admission returns the
87
+ * accepted-work release. Never re-implemented per door — a fence on one door is a bypass. */
88
+ admitControl(caller) {
89
+ const release = this.beginLifecycle();
90
+ if (!release)
91
+ return { refusal: this.maintenanceError(), fence: "maintenance" };
92
+ const membership = this.lifecycleMembershipRefusal(caller);
93
+ if (membership) {
94
+ release();
95
+ return { refusal: membership, fence: "membership" };
96
+ }
97
+ return { release };
98
+ }
99
+ /** The ep door's ADMIN flag for a caller. Static mesh: `true` — the
100
+ * admin-grade rows (any-mode despawn/attach, the `manager.admin` family, `launch`) are minted
101
+ * only into operator instruments (§13.2: `any` is operator-policy-mintable; the agent/spawn
102
+ * rollups never carry them), so REACHING the handler is holding the admin tier, exactly as
103
+ * holding `ctl.<admin>` is today. User mesh: the caller's CURRENT ledger scope must carry
104
+ * `admin`. A local-host manager reads its own ledger fresh. A remote-authority manager relays the
105
+ * subject-parsed caller tuple to its host-owned authorization callback, with no participant-ledger
106
+ * fallback. The same fresh authority drives {@link psOwnerFilter}, so a revoked scope demotes the
107
+ * very next call even on a still-valid bearer. Local ledger read failures authorize nothing;
108
+ * remote host-state faults throw and fail the operation closed.
109
+ * NAMED RESIDUAL: the static `true` has no serve-time re-check — a LEAKED static admin
110
+ * instrument keeps its reach until the credential's bounded
111
+ * TTL (the one-shot 5-minute profile), the same static-revoke≠reconnect-death class ruled
112
+ * across this campaign; static revocation is the TTL, not a ledger. */
113
+ async epAdminReach(caller) {
114
+ if (!this.userMode)
115
+ return true;
116
+ if (this.remoteAuthority) {
117
+ // A hosted run's own caller is derived from its id and holds no ledger row: it acts for the
118
+ // caller its run was admitted for, so that caller's current grant decides, and a revoked
119
+ // login demotes the run's next spawn.
120
+ const asked = this.runHosting?.admittedCaller(caller) ?? caller;
121
+ return this.remoteAuthority.authorizeAdmin({ owner: asked.owner, actor: asked.actor, lifecycleUid: asked.uid });
122
+ }
123
+ try {
124
+ const scope = await resolveAuthProvider().actorScope({
125
+ dir: userAuthStateDir(this.workspaceRoot, this.space),
126
+ owner: caller.owner,
127
+ actor: caller.actor,
128
+ });
129
+ return scope?.includes("admin") === true;
130
+ }
131
+ catch {
132
+ return false;
133
+ }
134
+ }
135
+ /** A targeted request's admin flag: mode `any` (the operator instrument's cross-agent form,
136
+ * rev 3) resolves through {@link epAdminReach}; a user-mode any-mode caller whose CURRENT
137
+ * ledger row lost `admin` since its rows were minted refuses loud rather than silently
138
+ * downgrading to the owner path (the request's declared mode is honored or denied, never
139
+ * reinterpreted). Owner mode is always the privileged (own-domain) path. */
140
+ async epAnyModeAdmin(ctx) {
141
+ if (ctx.subject.target?.mode !== "any")
142
+ return false;
143
+ if (!(await this.epAdminReach(ctx.subject.caller)))
144
+ throw new EpEnvelopeError("permission-denied", `an any-mode ${ctx.subject.command} is operator reach; the caller's current ledger grant does not carry "admin" (SPEC 13.2)`);
145
+ return true;
146
+ }
147
+ /** The v0.4 typed command table: every ordinary handler runs the SHARED
148
+ * admission chokepoint ({@link serveGated}) and then delegates to the SAME op core the ctl
149
+ * door dispatches (one core, two thin doors). The resume/preservation family
150
+ * deliberately BYPASSES serveGated — exactly as it sits before {@link admitControl} on the ctl
151
+ * door (those ops must run while `resumeRequired` fences ordinary work) — riding its own state
152
+ * fences; its ep gate is the admin-grade `manager.admin` capability grant (static
153
+ * admin-class commands are capability-gated + untargeted, never a fabricated ledger mode).
154
+ *
155
+ * TIER SEMANTICS on the ep door: the tier lives in the CALLER'S
156
+ * GRANT, refined per-op exactly as the ctl doors refine their subject tier. Owner-mode
157
+ * `despawn`/`attach` keep the privileged semantics (`admin=false`, own-domain via
158
+ * {@link authorizeNamed}) — every spawn-capable agent holds those rows. ANY-mode requests are
159
+ * the operator instrument's cross-agent reach (rev 3): the any-mode subject row is mintable
160
+ * only under operator policy (§13.2), so on a static mesh holding it IS the admin tier, and in
161
+ * user mode the caller's CURRENT ledger scope must still carry `admin`
162
+ * ({@link epAdminReach}, the same fresh-read authority `psOwnerFilter` consults). The
163
+ * `manager.admin` family (purge + the resume/preservation ops) is capability-gated at mint AND
164
+ * re-checked at serve time via {@link epAdminReach} (the `adminGated` wrapper) so a user's
165
+ * revoked scope demotes the next call. `launch` is OWNER-EQUALITY on this door for everyone:
166
+ * the deploy path is its only consumer and stamps the caller's own owner,
167
+ * so cross-owner launch was a ctl-tier incidental never exercised, and keying it on the actor's
168
+ * ledger scope broke the deployer-view attenuation - uniform owner-equality is the safe tier.
169
+ * TWO DELIBERATE NARROWINGS vs the ctl doors (NOT bit-exact parity): (1)
170
+ * `define-persona` is `admin=false` for everyone (own-persona discipline; no ep consumer needs
171
+ * cross-owner persona writes - an operator redefines via config, not the wire), where the ctl
172
+ * admin tier allowed operator cross-owner redefine; (2) launch is owner-equality-only, above.
173
+ * Both are least-privilege reductions, never widenings. */
174
+ managerServiceDefs() {
175
+ const args = (ctx) => (ctx.request.args ?? {});
176
+ const callerOf = (ctx) => principalKey(ctx.subject.caller.owner, ctx.subject.caller.actor).key;
177
+ // A ctl-core failure reply becomes the §13.3 structured error the serve boundary publishes.
178
+ // The data half of a failure reply (e.g. a degraded resume result) rides the error MESSAGE
179
+ // only — the action model gives failures a typed channel.
180
+ const unwrap = (r) => {
181
+ if (!r.ok)
182
+ throw new EpEnvelopeError((r.code ?? "failed-precondition"), r.error ?? "the operation failed", r.details, r.outcome);
183
+ return r.data;
184
+ };
185
+ // The admin-family serve gate: every `manager.admin`-class
186
+ // command re-checks operator reach AT SERVE TIME - static: true (the mint boundary already
187
+ // gates the rows to instruments); user mesh: the caller's CURRENT ledger scope must still
188
+ // carry `admin` ({@link epAdminReach}'s fresh read), so a revoked scope demotes the very next
189
+ // call instead of riding the bearer's remaining JWT-row lifetime. The resume family keeps its
190
+ // serveGated BYPASS (those ops must run while the maintenance fence holds) but not the gate.
191
+ const adminGated = async (ctx, fn) => {
192
+ if (!(await this.epAdminReach(ctx.subject.caller)))
193
+ throw new EpEnvelopeError("permission-denied", `${ctx.subject.command} is operator reach; the caller's current ledger grant does not carry "admin" (SPEC 13.2)`, undefined, "not-executed");
194
+ return fn();
195
+ };
196
+ const targetAgent = (ctx) => {
197
+ if (this.execution === "none")
198
+ throw new EpEnvelopeError("unimplemented", this.executionRefusal());
199
+ const t = ctx.request.target; // targeted commands only: the serve boundary enforced body-target presence + fresh currency
200
+ const a = this.findManagedByTarget(t);
201
+ if (!a)
202
+ throw new EpEnvelopeError("expired", `target ${t.owner}.${t.actor} (lifecycle ${t.lifecycleUid}) is not a live managed agent of this manager`, undefined, "not-executed");
203
+ return a;
204
+ };
205
+ return managerCommandDefs({
206
+ vitals: (ctx) => this.serveGated(ctx, () => measureManagerVitals()),
207
+ // A remote Manager files every seat under its own owner, so only a user mesh's shared local
208
+ // Manager narrows the count, and status never waits on a remote admin check.
209
+ status: (ctx) => this.serveObservation(ctx, async () => {
210
+ const ownerFilter = this.remoteAuthority ? undefined : await this.psOwnerFilter(ctx.subject.caller, false);
211
+ // The daemon's status deadline is shorter than an install. Report the current inventory
212
+ // without waiting for the install, which has its own lifecycle admission below.
213
+ return this.managerStatusData(ownerFilter, !this.resumeRequired);
214
+ }),
215
+ ps: (ctx) => this.serveGated(ctx, async () => this.list(await this.psOwnerFilter(ctx.subject.caller, false))),
216
+ inspect: (ctx) => this.serveGated(ctx, async () => {
217
+ const name = String(args(ctx).name ?? "").trim();
218
+ const row = this.list(await this.psOwnerFilter(ctx.subject.caller, false)).find((x) => x.name === name);
219
+ if (!row) {
220
+ // The live hit above stays entirely local. Only a miss widens into durable static state,
221
+ // where `not-found` is honest only after the slot read itself succeeds and returns absent.
222
+ // User-mode lifecycles have no manager-local mgrslot row; their per-name projection remains
223
+ // the live map until the auth service exposes an equivalent mediated reader.
224
+ if (this.auth && !this.userMode) {
225
+ const recordsKv = this.goalWriter?.ctx.kv;
226
+ if (!recordsKv)
227
+ throw new EpEnvelopeError("unavailable", `the durable static slot store is not ready while inspecting "${name}"`, [
228
+ { kind: STATIC_SLOT_READ_FAILED_DETAIL, name, record: "slot", operation: "read" },
229
+ ]);
230
+ let observed;
231
+ try {
232
+ observed = await observeStaticSlot(recordsKv, DEV_OWNER, name, this.managerInstanceId);
233
+ }
234
+ catch (error) {
235
+ throw new EpEnvelopeError("unavailable", `the durable static slot state for "${name}" could not be read: ${rejectionText(error)}`, [
236
+ { kind: STATIC_SLOT_READ_FAILED_DETAIL, name, record: error instanceof StaticSlotReadError ? error.record : "slot-or-head", operation: "read" },
237
+ ]);
238
+ }
239
+ // A retired row affirms that no agent exists now, so it keeps the old `not-found`
240
+ // result. The changed refusal is reserved for durable NONTERMINAL state that contradicts
241
+ // the live-map miss and needs operator attention.
242
+ //
243
+ // A sibling's nonterminal row is not a contradiction: the name belongs to another
244
+ // manager instance in this space. In a multi-manager space the class queue hands this
245
+ // read to either instance, so a plain `not-found` here read the same as a name that
246
+ // exists nowhere and a caller had no way to tell the two apart (#443).
247
+ if (observed?.ownerInstanceId !== undefined)
248
+ throw new EpEnvelopeError("failed-precondition", `the durable slot for "${name}" belongs to manager instance ${observed.ownerInstanceId}, not ${this.managerInstanceId} which answered; only that instance can act on it ${renderStaticSlotObservation(observed)}`, [observed]);
249
+ if (observed !== undefined && observed.slotPhase !== "retired")
250
+ throw new EpEnvelopeError("failed-precondition", `no live agent "${name}"; durable state contradicts absence ${renderStaticSlotObservation(observed)}`, [observed]);
251
+ }
252
+ throw new EpEnvelopeError("not-found", `no agent "${name}"`, undefined, "not-executed");
253
+ }
254
+ return row;
255
+ }),
256
+ slots: (ctx) => this.serveGated(ctx, async () => {
257
+ // No manager-local durable static slot store exists for a user-mode or open manager: an
258
+ // empty list here would claim nothing is stranded from a store that was never consulted,
259
+ // the very ambiguity #1274 is about.
260
+ if (!this.auth || this.userMode)
261
+ throw new EpEnvelopeError("failed-precondition", "user-mode and open managers own no durable static slot rows; the projection is static-manager local");
262
+ const recordsKv = this.goalWriter?.ctx.kv;
263
+ if (!recordsKv)
264
+ throw new EpEnvelopeError("unavailable", "the durable static slot store is not ready", [
265
+ { kind: STATIC_SLOT_READ_FAILED_DETAIL, name: "*", record: "slot", operation: "scan" },
266
+ ]);
267
+ let observed;
268
+ try {
269
+ const query = args(ctx);
270
+ observed = await listStaticSlotObservations(recordsKv, DEV_OWNER, this.managerInstanceId, {
271
+ ...(query.names === undefined ? {} : { names: query.names }),
272
+ ...(query.includeRetired === true ? { includeRetired: true } : {}),
273
+ });
274
+ }
275
+ catch (error) {
276
+ throw new EpEnvelopeError("unavailable", `the durable static slot state could not be scanned: ${rejectionText(error)}`, [
277
+ { kind: STATIC_SLOT_READ_FAILED_DETAIL, name: "*", record: error instanceof StaticSlotReadError ? error.record : "slot-or-head", operation: "scan" },
278
+ ]);
279
+ }
280
+ return observed.map(({ kind: _kind, ...detail }) => ({
281
+ ...detail,
282
+ live: this.agents.has(detail.name),
283
+ managerInstanceId: this.managerInstanceId,
284
+ }));
285
+ }),
286
+ models: (ctx) => this.serveGated(ctx, async () => {
287
+ const data = unwrap(await this.opModels(args(ctx)));
288
+ return { catalogs: Array.isArray(data) ? data : [data] };
289
+ }),
290
+ goalResult: (ctx) => this.serveGated(ctx, async () => {
291
+ const gw = this.goalWriter;
292
+ if (!gw || gw.nc.isClosed())
293
+ throw new EpEnvelopeError("unavailable", "the manager goal-reader connection is not standing; the accepted goal is unaffected");
294
+ const goalId = args(ctx).goalId;
295
+ // Only the broker-authenticated caller's full incarnation can name this read. The
296
+ // trusted goal-writer keeps the raw EPF authority; serveEndpoint derives the reply rail.
297
+ const result = await readGoalResult(gw.ctx, goalRefOf(ctx.subject, goalId));
298
+ return { goalId, ...(result === undefined ? {} : { result }) };
299
+ }),
300
+ listDir: (ctx) => this.serveGated(ctx, () => this.listSpawnDirectory(args(ctx))),
301
+ resolveCwd: (ctx) => this.serveGated(ctx, () => this.resolveSpawnCwd(args(ctx).cwd)),
302
+ resolveAgent: (ctx) => this.serveGated(ctx, async () => {
303
+ if (this.execution === "none")
304
+ throw new EpEnvelopeError("unimplemented", this.executionRefusal());
305
+ const persona = await this.spawnPersona(args(ctx), callerOf(ctx), ctx.subject.caller);
306
+ if ("error" in persona)
307
+ throw new EpEnvelopeError(persona.code ?? (persona.error.startsWith("no persona") ? "not-found" : "failed-precondition"), persona.error);
308
+ return { agent: persona.agent };
309
+ }),
310
+ // `spawn` is an ACTION - accept a goal + reply the acceptance floor payload, drive
311
+ // progress + terminal off-handler (no ~30s block). The blocking reply path is gone.
312
+ // #373: arming the event plane (events: true, or the omission that arms it by default)
313
+ // follows owner-domain reach on a user mesh. Resolve the caller's admin tier once for
314
+ // the residual cross-owner case; opStart decides before connector resolution or grant
315
+ // mutation. Static meshes resolve true and nothing changes.
316
+ spawn: (ctx) => this.loggedSpawnRefusal(ctx, () => this.serveGated(ctx, async () => this.serveSpawnGoal(ctx, async (h) => this.opStart(args(ctx), callerOf(ctx), await this.epAdminReach(ctx.subject.caller), h, ctx.subject.route, ctx.subject.caller, servedRequestSubject(this.space, ctx))))),
317
+ despawn: (ctx) => this.serveGated(ctx, async () => {
318
+ const a = targetAgent(ctx);
319
+ const denied = await this.authorizeNamed(a, callerOf(ctx), await this.epAnyModeAdmin(ctx), ctx.subject.caller);
320
+ if (denied)
321
+ throw new EpEnvelopeError("permission-denied", denied, undefined, "not-executed");
322
+ return unwrap(await this.despawnAuthorized(a, args(ctx).graceful !== false, true, callerOf(ctx)));
323
+ }),
324
+ attach: (ctx) => this.serveGated(ctx, async () => {
325
+ const a = targetAgent(ctx);
326
+ const denied = await this.authorizeNamed(a, callerOf(ctx), await this.epAnyModeAdmin(ctx), ctx.subject.caller);
327
+ if (denied)
328
+ throw new EpEnvelopeError("permission-denied", denied, undefined, "not-executed");
329
+ return unwrap(await this.attachAuthorized(a, ctx.subject.caller));
330
+ }),
331
+ // C3 `input`: the SAME authorization as `attach`, deliberately written out rather than
332
+ // factored with it - the two share a policy, not a body, and a shared wrapper would be a
333
+ // place for one of them to quietly acquire a condition the other does not have.
334
+ input: (ctx) => this.serveGated(ctx, async () => {
335
+ const a = targetAgent(ctx);
336
+ const denied = await this.authorizeNamed(a, callerOf(ctx), await this.epAnyModeAdmin(ctx), ctx.subject.caller);
337
+ if (denied)
338
+ throw new EpEnvelopeError("permission-denied", denied, undefined, "not-executed");
339
+ return this.inputAuthorized(a, args(ctx));
340
+ }),
341
+ // The turn relay (§8 durable actions): `turn` shares despawn/input's reach policy — the
342
+ // caller must hold owner-equality or admin over the TARGET seat — written out for the same
343
+ // reason `input` is (a shared policy, not a shared body).
344
+ turn: (ctx) => this.serveGated(ctx, async () => {
345
+ const target = this.turnTarget(ctx);
346
+ if (target.kind === "managed") {
347
+ const denied = await this.authorizeNamed(target.agent, callerOf(ctx), await this.epAnyModeAdmin(ctx), ctx.subject.caller);
348
+ if (denied)
349
+ throw new EpEnvelopeError("permission-denied", denied, undefined, "not-executed");
350
+ }
351
+ else {
352
+ const admitted = this.runHosting?.admittedCaller(ctx.subject.caller);
353
+ if (!admitted || admitted.owner !== target.participant.owner || admitted.actor !== target.participant.actor || admitted.uid !== target.participant.uid)
354
+ throw new EpEnvelopeError("permission-denied", "a personal participant may be turned only by the workflow run admitted for that exact owner, actor and lifecycle", undefined, "not-executed");
355
+ if (!this.remoteAuthority?.authorizeParticipation)
356
+ throw new EpEnvelopeError("unimplemented", "the issuing host supplies no closed personal participation authorization", undefined, "not-executed");
357
+ const authorized = await this.remoteAuthority.authorizeParticipation({
358
+ owner: target.participant.owner,
359
+ actor: target.participant.actor,
360
+ lifecycleUid: target.participant.uid,
361
+ });
362
+ if (!authorized) {
363
+ this.participants.delete(participantKey(target.participant.owner, target.participant.actor, target.participant.uid));
364
+ throw new EpEnvelopeError("permission-denied", "the exact personal lifecycle is no longer foreground-authorized with run scope", undefined, "not-executed");
365
+ }
366
+ }
367
+ return this.serveTurnGoal(ctx, target);
368
+ }),
369
+ // A personal native lifecycle must opt in explicitly. The command is self-targeted and returns
370
+ // only a finite relay lease. It never inserts a ManagedAgent or grants stop/attach/input custody.
371
+ turnParticipate: (ctx) => this.serveGated(ctx, () => this.serveTurnParticipation(ctx.subject.caller)),
372
+ // The seat's own half of the relay (`manager.self`, stop-self's tier): a seat pulls the
373
+ // turns addressed to ITS incarnation and yields them; no reach beyond itself exists here.
374
+ turnPending: (ctx) => this.serveGated(ctx, () => this.turnPendingFor(ctx.subject.caller)),
375
+ turnYield: (ctx) => this.serveGated(ctx, () => this.serveTurnYield(ctx.subject.caller, args(ctx))),
376
+ turnUnconfirmed: (ctx) => this.serveGated(ctx, () => this.serveTurnUnconfirmed(ctx.subject.caller, args(ctx))),
377
+ // The reserved goal cancel (SPEC 13.6 item 4), served for the relay: the goal ref is the
378
+ // authenticated caller's own, so a run withdraws only the turns it submitted.
379
+ cancel: (ctx) => this.serveGated(ctx, () => this.serveTurnCancel(ctx)),
380
+ stopSelf: (ctx) => this.serveGated(ctx, async () => unwrap(await this.opStopSelf(callerOf(ctx), args(ctx)))),
381
+ definePersona: (ctx) => this.serveGated(ctx, async () => unwrap(await this.opDefinePersona(args(ctx), callerOf(ctx), false, ctx.subject.caller))),
382
+ removePersona: (ctx) => this.serveGated(ctx, () => {
383
+ const r = this.opRemovePersona(args(ctx), callerOf(ctx), false);
384
+ if (!r.ok)
385
+ throw new EpEnvelopeError((r.code ?? "failed-precondition"), r.error ?? "the operation failed", r.details, "not-executed");
386
+ return r.data;
387
+ }),
388
+ // Reach is the broker's: only operator instruments carry these rows. The serve gate is the
389
+ // maintenance fence, so neither runs while a shutdown or resume holds control.
390
+ chatSessionOpen: (ctx) => this.serveGated(ctx, () => this.openStaticChatSession(args(ctx))),
391
+ chatSessionRetire: (ctx) => this.serveGated(ctx, () => this.retireStaticChatSession(args(ctx))),
392
+ listPersonas: (ctx) => this.serveGated(ctx, () => unwrap(this.opListPersonas(callerOf(ctx), false))),
393
+ showPersona: (ctx) => this.serveGated(ctx, () => {
394
+ const r = this.opShowPersona(args(ctx), callerOf(ctx), false);
395
+ if (!r.ok) {
396
+ const msg = r.error ?? "not found";
397
+ if (msg.startsWith("no persona"))
398
+ throw new EpEnvelopeError("not-found", msg);
399
+ throw new EpEnvelopeError("failed-precondition", msg);
400
+ }
401
+ return r.data;
402
+ }),
403
+ purge: (ctx) => this.serveGated(ctx, () => adminGated(ctx, async () => unwrap(await this.opPurge(args(ctx), callerOf(ctx))))),
404
+ // launch is OWNER-EQUALITY on the ep door for every caller: the deploy
405
+ // path is the only launch consumer and its spec stamps the CALLER's own owner, so
406
+ // owner-equality always holds for a legitimate deploy; cross-owner launch was a ctl
407
+ // admin-tier INCIDENTAL never exercised by a real flow (static is single-owner, so the flag
408
+ // is a no-op there). Keying admin on epAdminReach read the ACTOR's ledger scope, which does
409
+ // NOT reflect the deployer VIEW's privileged-tier attenuation - an admin user's stolen
410
+ // deployer bearer would then bypass owner-equality (operator launch) despite the view holding
411
+ // no admin rows. Uniform owner-equality removes that divergence in the least-privilege
412
+ // direction.
413
+ // Manifest `launch` is an ACTION through the SAME chokepoint as spawn -
414
+ // the manifest resolve + owner-equality authz run in opLaunch's accept path, then the goal
415
+ // drives progress + terminal. The acceptance floor is the allocated identity + goal coords.
416
+ launch: (ctx) => this.serveGated(ctx, () => this.serveSpawnGoal(ctx, (h) => this.opLaunch(args(ctx), callerOf(ctx), false, h, ctx.subject.route))),
417
+ resumePreserved: (ctx) => adminGated(ctx, async () => unwrap(await this.opResumePreserved(args(ctx)))),
418
+ commitResume: (ctx) => adminGated(ctx, async () => unwrap(await this.opCommitResume(args(ctx)))),
419
+ finalizeResume: (ctx) => adminGated(ctx, async () => unwrap(await this.opFinalizeResume(args(ctx)))),
420
+ // The workflow-run family (SPEC 14.3): the manager hosts the driver. Reach is the broker's
421
+ // (`run` capability / privileged instrument rows); the serve gate is the maintenance fence.
422
+ runStart: (ctx) => this.serveGated(ctx, () => this.runHost().start(ctx, args(ctx))),
423
+ runStartKeyed: (ctx) => this.serveGated(ctx, () => this.runHost().startKeyed(ctx, args(ctx))),
424
+ runSubmissionStatus: (ctx) => this.serveGated(ctx, () => this.runHost().submissionStatus(ctx, String(args(ctx).submissionId))),
425
+ runResume: (ctx) => this.serveGated(ctx, () => this.runHost().resume(args(ctx), ctx)),
426
+ runCancel: (ctx) => {
427
+ const host = this.runHost();
428
+ host.validateCancellation(ctx, args(ctx));
429
+ return this.serveGated(ctx, () => host.cancel(ctx, args(ctx)));
430
+ },
431
+ runAnswer: (ctx) => this.serveGated(ctx, () => {
432
+ const input = args(ctx);
433
+ if (input.amend === true)
434
+ return this.runHost().amend(input, this.runAnswerer(ctx), (accepted) => this.authorizeRunAmend(ctx, accepted), ctx);
435
+ return this.runHost().answer(input, this.runAnswerer(ctx), (open) => this.authorizeRunAnswer(ctx, input, open), ctx);
436
+ }),
437
+ runStatus: (ctx) => this.serveGated(ctx, () => this.runHost().status(args(ctx), ctx)),
438
+ runPs: (ctx) => this.serveGated(ctx, () => this.runHost().list(args(ctx), ctx)),
439
+ preparePreservation: (ctx) => adminGated(ctx, async () => unwrap(await this.opPreservationCtl("preparePreservation", args(ctx)))),
440
+ commitPreservation: (ctx) => adminGated(ctx, async () => unwrap(await this.opPreservationCtl("commitPreservation", args(ctx)))),
441
+ abortPreservation: (ctx) => adminGated(ctx, async () => unwrap(await this.opPreservationCtl("abortPreservation", args(ctx)))),
442
+ transcriptReceive: (ctx) => this.serveGated(ctx, () => adminGated(ctx, () => {
443
+ if (this.execution === "none")
444
+ throw new EpEnvelopeError("unimplemented", this.executionRefusal());
445
+ if (!this.transcripts)
446
+ throw new EpEnvelopeError("failed-precondition", "transcript-receive: this manager does not receive carried transcripts (its remote authority issues no transfer reader)");
447
+ return this.transcripts.receive(args(ctx));
448
+ })),
449
+ });
450
+ }
451
+ /** Self-despawn (P2b): stop the managed agent whose id == the authenticated caller. The
452
+ * no-name self-op can only ever resolve to the caller's OWN managed entry (ids are unique
453
+ * per spawn + non-forgeable in auth mode), never a peer — so it's structurally incapable of
454
+ * hitting another agent. Non-managed callers (human CLI, the manager itself, observers) find
455
+ * no match and get a loud error, not a silent no-op. */
456
+ opStopSelf(callerId, args) {
457
+ if (this.execution === "none")
458
+ throw new EpEnvelopeError("unimplemented", this.executionRefusal());
459
+ const target = [...this.agents.values()].find((a) => this.managedPrincipal(a) === callerId);
460
+ if (!target)
461
+ return { ok: false, error: `self-stop: caller ${callerId} is not a managed agent` };
462
+ const graceful = args.graceful !== false;
463
+ if (process.platform === "win32" && target.handle.kind === "pty") {
464
+ return this.stopWindowsSeat(target, graceful, true, { kind: "stopped-self" }).then(() => ({ ok: true, data: { name: target.name, stopped: true, graceful } }));
465
+ }
466
+ this.stopHandle(target, graceful, { kind: "stopped-self" });
467
+ this.trackStoppedHandle(target, true, { kind: "stopped-self" });
468
+ return { ok: true, data: { name: target.name, stopped: true, graceful } };
469
+ }
470
+ }
471
+ //# sourceMappingURL=command-dispatch.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"command-dispatch.js","sourceRoot":"","sources":["../src/command-dispatch.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,eA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,CAAC,UAAU,CAAC,MAAM,EAAE,QAAQ,EAAE,EAAE,IAAI,EAAE,cAAc,EAAE,CAAC,CAAC;QAC5D,IAAI,CAAC,kBAAkB,CAAC,MAAM,EAAE,IAAI,EAAE,EAAE,IAAI,EAAE,cAAc,EAAE,CAAC,CAAC;QAChE,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE,IAAI,EAAE,MAAM,CAAC,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,CAAC;IAC5E,CAAC;CACF"}
@@ -0,0 +1,37 @@
1
+ import type { Manager } from "./manager.js";
2
+ /** What {@link ConnectorInventory} reads from the Manager. Every entry is read at use, so a field the Manager
3
+ * assigns after construction is always current, and a Manager method a test replaces is the one that runs. */
4
+ export interface ConnectorInventoryDeps {
5
+ bootNotes: () => Manager["bootNotes"];
6
+ setBootNotes: (value: Manager["bootNotes"]) => void;
7
+ connectorRequirements: () => Manager["connectorRequirements"];
8
+ setConnectorRequirements: (value: Manager["connectorRequirements"]) => void;
9
+ connectorStatuses: () => Manager["connectorStatuses"];
10
+ setConnectorStatuses: (value: Manager["connectorStatuses"]) => void;
11
+ execution: () => Manager["execution"];
12
+ installedExtensions: () => Manager["installedExtensions"];
13
+ machineSetupCommand: () => Manager["machineSetupCommand"];
14
+ classSpawnEnabled: (...args: Parameters<Manager["classSpawnEnabled"]>) => ReturnType<Manager["classSpawnEnabled"]>;
15
+ prepareClaudeWake: (...args: Parameters<Manager["prepareClaudeWake"]>) => ReturnType<Manager["prepareClaudeWake"]>;
16
+ }
17
+ /** The connector inventory taken at boot: which harnesses resolve on this host and the notes for those that do not. */
18
+ export declare class ConnectorInventory {
19
+ private readonly deps;
20
+ constructor(deps: ConnectorInventoryDeps);
21
+ private get bootNotes();
22
+ private set bootNotes(value);
23
+ private get connectorRequirements();
24
+ private set connectorRequirements(value);
25
+ private get connectorStatuses();
26
+ private set connectorStatuses(value);
27
+ private get execution();
28
+ private get installedExtensions();
29
+ private get machineSetupCommand();
30
+ private classSpawnEnabled;
31
+ private prepareClaudeWake;
32
+ /** Resolve every installed/registered connector's declared harness binaries before the manager
33
+ * reports ready. A missing harness degrades only that connector, never unrelated lifecycle work:
34
+ * boot continues, names it once start completes and records it on both manager status surfaces. */
35
+ inspectConnectorsAtBoot(): Promise<void>;
36
+ }
37
+ //# sourceMappingURL=connector-inventory.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"connector-inventory.d.ts","sourceRoot":"","sources":["../src/connector-inventory.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAE5C;+GAC+G;AAC/G,MAAM,WAAW,sBAAsB;IACrC,SAAS,EAAE,MAAM,OAAO,CAAC,WAAW,CAAC,CAAC;IACtC,YAAY,EAAE,CAAC,KAAK,EAAE,OAAO,CAAC,WAAW,CAAC,KAAK,IAAI,CAAC;IACpD,qBAAqB,EAAE,MAAM,OAAO,CAAC,uBAAuB,CAAC,CAAC;IAC9D,wBAAwB,EAAE,CAAC,KAAK,EAAE,OAAO,CAAC,uBAAuB,CAAC,KAAK,IAAI,CAAC;IAC5E,iBAAiB,EAAE,MAAM,OAAO,CAAC,mBAAmB,CAAC,CAAC;IACtD,oBAAoB,EAAE,CAAC,KAAK,EAAE,OAAO,CAAC,mBAAmB,CAAC,KAAK,IAAI,CAAC;IACpE,SAAS,EAAE,MAAM,OAAO,CAAC,WAAW,CAAC,CAAC;IACtC,mBAAmB,EAAE,MAAM,OAAO,CAAC,qBAAqB,CAAC,CAAC;IAC1D,mBAAmB,EAAE,MAAM,OAAO,CAAC,qBAAqB,CAAC,CAAC;IAC1D,iBAAiB,EAAE,CAAC,GAAG,IAAI,EAAE,UAAU,CAAC,OAAO,CAAC,mBAAmB,CAAC,CAAC,KAAK,UAAU,CAAC,OAAO,CAAC,mBAAmB,CAAC,CAAC,CAAC;IACnH,iBAAiB,EAAE,CAAC,GAAG,IAAI,EAAE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