@cotal-ai/manager 0.167.0 → 0.169.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 (51) hide show
  1. package/dist/attach-endpoint.d.ts.map +1 -1
  2. package/dist/attach-endpoint.js +2 -0
  3. package/dist/attach-endpoint.js.map +1 -1
  4. package/dist/commands.js +1 -0
  5. package/dist/commands.js.map +1 -1
  6. package/dist/console/app.js +12 -1
  7. package/dist/control-session.d.ts +5 -5
  8. package/dist/control-session.d.ts.map +1 -1
  9. package/dist/control-session.js +17 -65
  10. package/dist/control-session.js.map +1 -1
  11. package/dist/control-shutdown.d.ts +6 -7
  12. package/dist/control-shutdown.d.ts.map +1 -1
  13. package/dist/control-shutdown.js +9 -38
  14. package/dist/control-shutdown.js.map +1 -1
  15. package/dist/lease-keeper.d.ts +98 -0
  16. package/dist/lease-keeper.d.ts.map +1 -0
  17. package/dist/lease-keeper.js +257 -0
  18. package/dist/lease-keeper.js.map +1 -0
  19. package/dist/managed-static-lifecycle.d.ts +247 -0
  20. package/dist/managed-static-lifecycle.d.ts.map +1 -0
  21. package/dist/managed-static-lifecycle.js +926 -0
  22. package/dist/managed-static-lifecycle.js.map +1 -0
  23. package/dist/manager.d.ts +57 -417
  24. package/dist/manager.d.ts.map +1 -1
  25. package/dist/manager.js +270 -2680
  26. package/dist/manager.js.map +1 -1
  27. package/dist/names-capacity.d.ts +125 -0
  28. package/dist/names-capacity.d.ts.map +1 -0
  29. package/dist/names-capacity.js +236 -0
  30. package/dist/names-capacity.js.map +1 -0
  31. package/dist/run-hosting.d.ts.map +1 -1
  32. package/dist/run-hosting.js +8 -6
  33. package/dist/run-hosting.js.map +1 -1
  34. package/dist/serve-plane.d.ts +3 -0
  35. package/dist/serve-plane.d.ts.map +1 -1
  36. package/dist/serve-plane.js +18 -8
  37. package/dist/serve-plane.js.map +1 -1
  38. package/dist/service-child.js +2 -2
  39. package/dist/service-child.js.map +1 -1
  40. package/dist/session-recovery.d.ts +2 -4
  41. package/dist/session-recovery.d.ts.map +1 -1
  42. package/dist/session-recovery.js.map +1 -1
  43. package/dist/turn-relay.d.ts +397 -0
  44. package/dist/turn-relay.d.ts.map +1 -0
  45. package/dist/turn-relay.js +1068 -0
  46. package/dist/turn-relay.js.map +1 -0
  47. package/dist/user-provision.d.ts +152 -0
  48. package/dist/user-provision.d.ts.map +1 -0
  49. package/dist/user-provision.js +328 -0
  50. package/dist/user-provision.js.map +1 -0
  51. package/package.json +12 -12
@@ -0,0 +1,247 @@
1
+ import { CotalEndpoint, dialerFor, type DeprovisionResourceAccounting, type IssuanceSeam, type IssuedStore } from "@cotal-ai/core";
2
+ import type { EpCapability, RuntimeReference, SecretStore, SpaceAuth } from "@cotal-ai/core";
3
+ import { type SeatRecord } from "./resume.js";
4
+ import { type LifecycleStateTransport, type StaticManagedSlotRow } from "@cotal-ai/core";
5
+ import { type ManagerStaticReconciliationFailure, type ManagerStaticReconciliationStatus } from "./manager-service-contract.js";
6
+ import type { NatsConnection } from "@nats-io/transport-node";
7
+ import type { KV } from "@nats-io/kv";
8
+ import { type ExpiringChatSession } from "./chat-session.js";
9
+ import type { Manager, ManagedAgent } from "./manager.js";
10
+ import type { TeardownTarget, RetirementHold } from "./retirement.js";
11
+ import type { EvictionResult } from "@cotal-ai/core";
12
+ /** One initial terminal entry plus three re-drives. The short first retry absorbs a one-shot
13
+ * broker/eviction blip; the wider later spacing avoids hammering a persistently unavailable
14
+ * authority. The finite ~36s window is intentionally not a liveness inference: exhausting it
15
+ * leaves the durable alias held and requires a later manager start. */
16
+ export declare const STATIC_RECONCILE_RETRY_DELAYS_MS: readonly [1000, 5000, 30000];
17
+ type StaticReconcileItem = ManagerStaticReconciliationFailure & {
18
+ owner: string;
19
+ timer?: ReturnType<typeof setTimeout>;
20
+ flight?: Promise<StaticReconcileAttempt>;
21
+ retryFlight?: Promise<void>;
22
+ };
23
+ /** One exact-terminal attempt's outcome, with the accounting of the broker teardown that attempt
24
+ * ran, whether it succeeded or failed. Absent when the attempt reached no broker teardown. */
25
+ interface StaticReconcileAttempt {
26
+ succeeded: boolean;
27
+ deprovision?: DeprovisionResourceAccounting;
28
+ }
29
+ /** Manager-owned authority, runtime and retirement operations for static lifecycle work. */
30
+ export interface ManagedStaticLifecycleDeps {
31
+ space: () => string;
32
+ servers: () => string | undefined;
33
+ auth: () => SpaceAuth | undefined;
34
+ secrets: () => SecretStore;
35
+ workspaceRoot: () => string;
36
+ instanceId: () => string;
37
+ processUid: () => string;
38
+ userMode: () => boolean;
39
+ eventPayloadsWithheld: () => boolean;
40
+ evictor: () => ((principal: string) => Promise<EvictionResult>) | undefined;
41
+ retryDelays: () => readonly number[];
42
+ resumeRequired: () => boolean;
43
+ records: () => KV | undefined;
44
+ agentFor: (name: string) => ManagedAgent | undefined;
45
+ retirementFor: (name: string) => RetirementHold | undefined;
46
+ recordStaticRetirement: (a: {
47
+ id: string;
48
+ name: string;
49
+ lifecycleUid: string;
50
+ }) => void;
51
+ noteRetiredPrincipal: (principal: string) => void;
52
+ foreignEventChannels: (channels: readonly string[], owner: string, actor: string) => string[];
53
+ withIssuer: <T>(fn: (i: {
54
+ store: IssuedStore;
55
+ accepted: KV;
56
+ }) => Promise<T>) => Promise<T>;
57
+ deprovisionBroker: (a: {
58
+ id: string;
59
+ name: string;
60
+ lifecycleUid: string;
61
+ launch?: {
62
+ allowSubscribe: readonly string[];
63
+ };
64
+ }) => Promise<DeprovisionResourceAccounting>;
65
+ reapOrphanSeat: (a: {
66
+ name: string;
67
+ runtime?: RuntimeReference;
68
+ }) => Promise<void>;
69
+ withLifecycleExecutor: <T>(pin: {
70
+ owner: string;
71
+ actor: string;
72
+ lifecycleUid: string;
73
+ alias: string;
74
+ }, fn: (t: LifecycleStateTransport) => Promise<T>) => Promise<T>;
75
+ readerRemedy: (owner: string, channel: string) => string;
76
+ withProvisioner: <T>(fn: (prov: CotalEndpoint) => Promise<T>) => Promise<T>;
77
+ beginLifecycle: (resumeOperation?: boolean) => (() => void) | undefined;
78
+ maintenanceError: () => string;
79
+ withRetirementSlot: <T>(run: () => Promise<T>) => Promise<T>;
80
+ managedStaticInstanceReads: (capabilities: readonly string[] | undefined) => EpCapability[];
81
+ issuanceSeam: (i: {
82
+ store: IssuedStore;
83
+ accepted: KV;
84
+ }, mode: "issue" | "renew", a: {
85
+ name: string;
86
+ id: string;
87
+ lifecycleUid: string;
88
+ }, exp: number) => IssuanceSeam;
89
+ refreshSeatRecord: (a: ManagedAgent) => void;
90
+ dial: (opts: Parameters<ReturnType<typeof dialerFor>>[0]) => Promise<NatsConnection>;
91
+ seatRecordFor: (row: StaticManagedSlotRow) => SeatRecord | undefined;
92
+ restartSupervisedSeat: (row: StaticManagedSlotRow, record: SeatRecord) => Promise<string | undefined>;
93
+ adoptSeat: (row: StaticManagedSlotRow, record: SeatRecord) => Promise<string | undefined>;
94
+ dropSeatRecord: (a: {
95
+ name: string;
96
+ lifecycleUid: string;
97
+ }) => void;
98
+ }
99
+ /** Static chat admission, credential renewal, terminal cleanup and resumable reconciliation. */
100
+ export declare class ManagedStaticLifecycle {
101
+ private readonly deps;
102
+ /** Static aliases whose startup exact-op terminal is still in flight. Scoped per alias: control
103
+ * serves during the sweep, but no caller can reuse or attach an alias the sweep still owns. */
104
+ private readonly reconcilingAliases;
105
+ /** In-flight static chat-session terminals, by lifecycle UID, so every caller that retires one
106
+ * session joins one terminal instead of racing its CAS sequence. */
107
+ private readonly chatRetirements;
108
+ /** The expiry side of every chat session this process admitted and nothing retired sooner. */
109
+ private readonly chatExpiry;
110
+ /** Current failed/recovered static reconciliation coordinates. This is an operator snapshot, not
111
+ * lifecycle authority: every re-drive re-reads broker KV and re-runs planStaticSlotResume. */
112
+ private readonly staticReconcileItems;
113
+ private staticReconcileLastSweep?;
114
+ private staticReconcileLastSweepResources?;
115
+ private staticReconcileSweepsInFlight;
116
+ private staticReconcileDrainWaiters;
117
+ private staticReconcileStopping;
118
+ constructor(deps: ManagedStaticLifecycleDeps);
119
+ start(): void;
120
+ get stopping(): boolean;
121
+ isReconciling(alias: string): boolean;
122
+ get sweepsInFlight(): number;
123
+ pendingLifecycle(uid: string): boolean;
124
+ resources(): Manager["staticReconcileLastSweepResources"];
125
+ setResources(value: Manager["staticReconcileLastSweepResources"]): void;
126
+ stop(): void;
127
+ /** The static terminal for one departed incarnation: delegates the gate/head CAS
128
+ * sequence to the shared core saga over the executor transport; the footprint teardown (creds
129
+ * file + broker durables/ACL) runs INSIDE the barrier as its cleanup step. On completion the
130
+ * wire principal joins {@link retiredPrincipals} (the retired-principal refusal index) and the name hold
131
+ * clears (ABA-guarded by uid). A lifecycle with no slot row (spawned before the
132
+ * durable registry existed) has nothing to terminalize: its footprint teardown runs directly
133
+ * and the hold clears, the honest upgrade path. `onDeprovision` receives the accounting of the
134
+ * broker teardown this call ran, on success or on a {@link DeprovisionError}. */
135
+ driveStaticRetirement(a: TeardownTarget, surfaceFailure?: boolean, onDeprovision?: (accounting: DeprovisionResourceAccounting) => void): Promise<void>;
136
+ /** `chat-session-open`: admit one static chat session. The manager draws the `chat_` alias and a
137
+ * fresh nkey identity, then runs the same native steps a static spawn does: the slot intent and
138
+ * the shared activation saga, the provisioner's bind-only DM and DELIVER durables plus the ACL
139
+ * row, and the agent-profile mint. The leaf carries the spawn's three lists under the spawn's
140
+ * rules (`resolveReadAcl`, a default-deny post list, the foreign event-channel refusal) and
141
+ * nothing else: no role (so no TASK queue), no capabilities, no endpoint rows, no issuance. It
142
+ * expires at `ttl` with no renewal, because no managed row exists to renew it.
143
+ *
144
+ * The session is registered with the tracker before the first durable write and scheduled for
145
+ * its expiry before the reply is sent, or after a rollback that did not complete, so this
146
+ * process retires it at the expiry even when the reply is lost or the client never retires.
147
+ *
148
+ * The credential is ledgered before it leaves this process (slot credentialId, then the `cred.`
149
+ * row), so the static terminal marks the row revoked and verify-evicts the session's principal;
150
+ * the broker keeps accepting the leaf until its expiry. The direct ledger write is deliberate:
151
+ * the leaf is not an issuance, so the issuance seam, which writes the same row inside its
152
+ * finalization, never runs for it, and without the row the terminal's eviction set would be
153
+ * empty. The credential leaves only sealed to `sealTo`, bound to the space, this instance and
154
+ * the reply's fields, so a reply printed anywhere carries no usable credential. A failure at
155
+ * any step drives the terminal before the refusal is returned, and the refusal says whether it
156
+ * completed. */
157
+ openStaticChatSession(raw: unknown): Promise<{
158
+ alias: string;
159
+ actor: string;
160
+ lifecycleUid: string;
161
+ expiresAt: number;
162
+ sealer: string;
163
+ sealed: string;
164
+ }>;
165
+ /** `chat-session-retire`: end one static chat session through the native static terminal (ledger
166
+ * row marked revoked, verified eviction of its principal's live connections, footprint cleanup,
167
+ * gate and head retirement). It refuses before any effect unless {@link admitChatRetirement}
168
+ * admits the request. A terminal that cannot complete answers `failed` with the reason, never
169
+ * success; the slot stays held. The broker keeps accepting the leaf until its expiry either way. */
170
+ retireStaticChatSession(raw: unknown): Promise<{
171
+ outcome: "retired" | "alreadyRetired" | "failed";
172
+ reason?: string;
173
+ }>;
174
+ /** The expiry cleanup's retirement of one session this process admitted. It is lifecycle work, so
175
+ * it is admitted like a control call and a stop drains it. A throw is a failure the tracker
176
+ * retries; a slot that is no longer this instance's to retire ends the tracking instead. */
177
+ expireStaticChatSession(session: ExpiringChatSession): Promise<void>;
178
+ /** The ownership admission shared by `chat-session-retire`, the expiry and the stop. It throws a
179
+ * not-executed refusal unless the alias is a chat alias whose slot this logical instance owns
180
+ * at the requested UID and actor. An already retired slot ends its expiry tracking. */
181
+ admitChatRetirement(s: {
182
+ alias: string;
183
+ actor: string;
184
+ lifecycleUid: string;
185
+ }): Promise<"admitted" | "alreadyRetired">;
186
+ /** One static terminal per chat session UID, however many callers ask: the explicit retire, the
187
+ * expiry cleanup and the open's rollback join it instead of racing its CAS sequence. A completed
188
+ * terminal ends the expiry tracking. `channels` names the membership rows to delete by name;
189
+ * without it the delivery inventory alone finds them. */
190
+ chatTerminal(s: {
191
+ alias: string;
192
+ actor: string;
193
+ lifecycleUid: string;
194
+ channels?: readonly string[];
195
+ }): Promise<void>;
196
+ /** Whether `row` is a chat slot this process registered, at its exact alias, actor and UID,
197
+ * under this logical instance and this process's incarnation. */
198
+ holdsLiveChatSlot(row: StaticManagedSlotRow): boolean;
199
+ /** The stop's retirement of every chat session this process still tracks, through the same
200
+ * ownership admission and terminal as `chat-session-retire`, at most
201
+ * {@link CHAT_EXPIRY_CONCURRENCY} at a time. It runs after the lifecycle fence closed and every
202
+ * admitted operation drained, as the seat teardown does, and mints nothing the terminal does not
203
+ * already mint. Every outcome is logged. It throws, naming each one, when any session was not
204
+ * retired; that session stays held until the next start of this manager instance. */
205
+ retireChatSessionsOnStop(): Promise<void>;
206
+ /** Name, at a stop that does not retire them, each chat session this process still tracks. */
207
+ reportChatSessionsLeftAtStop(why: string): void;
208
+ /** Push renewal of ONE live managed-static credential: re-mint the SAME nkey
209
+ * identity with the SAME scope (recorded on the managed row at spawn) and a fresh bounded
210
+ * exp, ledger the new credentialId (slot record first, then the row, then the file - a
211
+ * credential is never materialized before its ledger row exists), and re-sign the SAME
212
+ * lifecycle-keyed file the agent endpoint's source seam re-reads. Never advances the epoch;
213
+ * renewal remains the THIRD transition. */
214
+ renewManagedStaticCred(a: ManagedAgent): Promise<void>;
215
+ driveManagedStaticCredRenewal(a: ManagedAgent): Promise<void>;
216
+ /** Render the current operator snapshot. Recovered rows live until the next sweep starts, then
217
+ * clear, so recovery is visible without becoming stale process-lifetime history. */
218
+ staticReconciliationStatus(): ManagerStaticReconciliationStatus;
219
+ /** The static-slot reconciliation ("no active orphan"): ensure the authority stores, then sweep
220
+ * every durable slot row and act by the TOTAL resume table - `provisioning`/`terminalizing`
221
+ * re-drive the exact-op terminal; an `active` row survives ONLY when a LIVE managed agent this
222
+ * manager process owns backs it at the same uid (`adopted`), else no managed owner claimed it and
223
+ * its broker authority is contained and terminalized; `retired` rows seed the retired-principal refusal index. Two call sites: the BOOT sweep
224
+ * (`postAdoption=false`, under the lease before control serving) DEFERS active-non-adopted
225
+ * slots while a resume is still pending (adoption runs after it); the POST-ADOPTION sweep
226
+ * (`postAdoption=true`, inside finalizeResume while `resumeRequired` still fences ordinary
227
+ * spawns) terminalizes any active slot the resume did not claim. */
228
+ staticReconcileKey(row: Pick<StaticManagedSlotRow, "owner" | "alias" | "lifecycleUid">): string;
229
+ /** Read one retry coordinate from the durable slot store. The status snapshot never authorizes a
230
+ * re-drive: every timer comes through this fresh read before the planner and exact terminal. */
231
+ readStaticReconcileSlot(alias: string): Promise<StaticManagedSlotRow | undefined>;
232
+ scheduleStaticReconcileRetry(key: string, item: StaticReconcileItem): void;
233
+ retryStaticReconcile(key: string): Promise<void>;
234
+ driveStaticReconcileRetry(key: string, item: StaticReconcileItem): Promise<void>;
235
+ /** Enter one exact terminal at most once per coordinate. Sweep and timer triggers join the same
236
+ * promise. A settled failed item keeps its original per-process budget; a restart builds a fresh
237
+ * map from the still-authoritative durable row. */
238
+ attemptStaticReconcile(key: string, item: StaticReconcileItem, row: StaticManagedSlotRow, countAttempt?: boolean): Promise<StaticReconcileAttempt>;
239
+ releaseStaticReconcileSweep(): void;
240
+ /** Shutdown accepts no new static reconciliation work, then drains every sweep and exact-terminal
241
+ * flight that crossed the fence before stop(). A sweep can discover several rows before its first
242
+ * await, so the serial loop also consults the fence and never starts a later row after shutdown. */
243
+ awaitStaticReconcileDrain(): Promise<void>;
244
+ reconcileStaticLifecycles(postAdoption?: boolean): Promise<void>;
245
+ }
246
+ export {};
247
+ //# sourceMappingURL=managed-static-lifecycle.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"managed-static-lifecycle.d.ts","sourceRoot":"","sources":["../src/managed-static-lifecycle.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAoD,SAAS,EAA8C,KAAK,6BAA6B,EAAa,KAAK,YAAY,EAAE,KAAK,WAAW,EAAyH,MAAM,gBAAgB,CAAC;AAEnW,OAAO,KAAK,EAAE,YAAY,EAAE,gBAAgB,EAAE,WAAW,EAAE,SAAS,EAAE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