@cotal-ai/manager 0.167.0 → 0.168.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.
@@ -0,0 +1 @@
1
+ {"version":3,"file":"managed-static-lifecycle.js","sourceRoot":"","sources":["../src/managed-static-lifecycle.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAC/C,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AACjC,OAAO,EAAE,aAAa,EAAE,qBAAqB,EAAE,cAAc,EAAE,SAAS,EAAE,SAAS,EAAE,gBAAgB,EAAE,wBAAwB,EAAsC,SAAS,EAAuC,gBAAgB,EAAE,qBAAqB,EAAE,WAAW,EAAE,YAAY,EAAE,cAAc,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AACnW,OAAO,EAAE,6BAA6B,EAAE,qBAAqB,EAAE,uBAAuB,EAAE,MAAM,qBAAqB,CAAC;AAEpH,OAAO,EAAE,mCAAmC,EAAE,MAAM,qBAAqB,CAAC;AAC1E,OAAO,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AACvE,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,uBAAuB,EAAuB,MAAM,gBAAgB,CAAC;AAC7G,OAAO,EAAmB,MAAM,aAAa,CAAC;AAC9C,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,GAAG,EAAE,MAAM,aAAa,CAAC;AAClC,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,qBAAqB,EAAE,qBAAqB,EAAE,cAAc,EAAE,0BAA0B,IAAI,sBAAsB,EAAE,6BAA6B,EAAE,aAAa,EAA2D,MAAM,gBAAgB,CAAC;AACxR,OAAO,EAAE,eAAe,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AACvE,OAAO,EAA0H,MAAM,+BAA+B,CAA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K,CAAC,EAAE,CAAC;oBACvB,OAAO,CAAC,KAAK,CAAC,iCAAiC,KAAK,CAAC,SAAS,eAAe,KAAK,CAAC,SAAS,sBAAsB,CAAC,CAAC;gBACtH,CAAC;qBAAM,CAAC;oBACN,OAAO,CAAC,KAAK,CAAC,iCAAiC,KAAK,CAAC,SAAS,eAAe,KAAK,CAAC,SAAS,eAAe,KAAK,CAAC,MAAM,mBAAmB,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;gBAChK,CAAC;YACH,CAAC;oBAAS,CAAC;gBACT,KAAK,MAAM,GAAG,IAAI,YAAY;oBAAE,IAAI,CAAC,kBAAkB,CAAC,MAAM,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;gBAC1E,KAAK,MAAM,EAAE,GAAG,EAAE,IAAI,WAAW;oBAAE,IAAI,CAAC,kBAAkB,CAAC,MAAM,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;YAC/E,CAAC;QACH,CAAC;gBAAS,CAAC;YACT,IAAI,CAAC,2BAA2B,EAAE,CAAC;QACrC,CAAC;IACH,CAAC;CACF"}
package/dist/manager.d.ts CHANGED
@@ -1,7 +1,9 @@
1
1
  import { type DeprovisionResourceAccounting, type IssuedBinding } from "@cotal-ai/core";
2
2
  import { type SeatCap } from "@cotal-ai/workspace";
3
- import type { PersonaEndpoint, ControlReply, EpCaller, EpErrorCode, InlinePersona, LaunchOpts, ManagerLeaseInfo, MeshLaunchAgent, RuntimeReference, SecretStore } from "@cotal-ai/core";
3
+ import type { PersonaEndpoint, ControlReply, EpCaller, EpErrorCode, InlinePersona, LaunchOpts, MeshLaunchAgent, RuntimeReference, SecretStore } from "@cotal-ai/core";
4
4
  import { type AgentHandle, type RuntimeMode } from "./runtime/index.js";
5
+ export { STATIC_RECONCILE_RETRY_DELAYS_MS } from "./managed-static-lifecycle.js";
6
+ export { ManagerInstanceLeaseHeld } from "./lease-keeper.js";
5
7
  import { type ContinuityAssignment } from "./launch.js";
6
8
  import { type EpServeGrant, type GoalRef, type Identity } from "@cotal-ai/core";
7
9
  import { type ManagerStopImpact } from "./manager-service-contract.js";
@@ -43,11 +45,6 @@ export declare const RUNTIME_NO_TERMINAL_DETAIL = "ai.cotal.manager.runtime-no-t
43
45
  * seat re-reads its file only once a minute and nothing pushes the renewal to it: a tick that
44
46
  * lands in the window's last minute can come too late for the seat to adopt it. */
45
47
  export declare function credRenewIntervalMs(ttlSeconds: number): number;
46
- /** One initial terminal entry plus three re-drives. The short first retry absorbs a one-shot
47
- * broker/eviction blip; the wider later spacing avoids hammering a persistently unavailable
48
- * authority. The finite ~36s window is intentionally not a liveness inference: exhausting it
49
- * leaves the durable alias held and requires a later manager start. */
50
- export declare const STATIC_RECONCILE_RETRY_DELAYS_MS: readonly [1000, 5000, 30000];
51
48
  export interface ManagerOptions {
52
49
  space: string;
53
50
  /** Assert the embedding generation matches this Manager. Installed first-party connectors
@@ -277,19 +274,6 @@ export interface ManagerStopOptions {
277
274
  * proves it gone. A detachable seat that already exited is retired by this stop. */
278
275
  withAgents?: boolean;
279
276
  }
280
- /** `start()`'s refusal when this manager instance's lease is held (#3915): by another live process
281
- * on this workspace root, or by a holder on another root. A restart whose predecessor on this root
282
- * is dead, this process's own earlier start included, waits the key out instead (#4092). The
283
- * message is the operator copy; `held` and `sameRoot` are the data, so no caller parses it. A
284
- * lease that could not be read or written is a plain `Error`. */
285
- export declare class ManagerInstanceLeaseHeld extends Error {
286
- readonly instanceId: string;
287
- readonly space: string;
288
- readonly held: ManagerLeaseInfo;
289
- readonly sameRoot: boolean;
290
- readonly name = "ManagerInstanceLeaseHeld";
291
- constructor(message: string, instanceId: string, space: string, held: ManagerLeaseInfo, sameRoot: boolean);
292
- }
293
277
  /** Public identity selected by this manager before constructing its endpoint. Not a grant. */
294
278
  export interface ManagerServiceIdentity {
295
279
  endpoint: string;
@@ -889,28 +873,9 @@ export declare class Manager {
889
873
  private readonly preserveStopTimeoutMs;
890
874
  private readonly endpointServeExecutorExpiresInSeconds?;
891
875
  private readonly agents;
892
- /** Names whose spawn is in flight (reserved synchronously before the provision await) — counted
893
- * toward the ceiling (once per name, see {@link Manager.occupancy}) so two concurrent same-name
894
- * spawns can't both pass the gate (P4a). Each name carries the OWNER its launch was admitted
895
- * for, so the per-owner ceiling ({@link Manager.ownerSeats}) counts a launch from the moment it
896
- * is reserved; a cap read only off `agents` would let a burst of concurrent spawns overshoot it,
897
- * because none of them has a seat yet when the next one checks. */
898
- private readonly reserved;
899
- /** Reserved names whose launch already put its seat in `agents`. The name stays reserved until
900
- * the launch settles, so no other spawn can take it, but the ceiling counts that seat through
901
- * `agents` and, if it frees young, its cooling stamp, never through the reservation (#906). */
902
- private readonly reservedLive;
903
- /** Every numbered name {@link uniqueName} has issued. A suffix carries nothing but arrival order,
904
- * so reissuing a freed one would give a later principal the name an earlier one posted under, and
905
- * a reader of that name could not tell the two apart (#382). Never pruned in-process: one string
906
- * per numbered spawn. */
907
- private readonly issuedNumberedNames;
908
876
  /** Lifecycle UIDs already handed to `Runtime.spawnDelegated`: a lifecycle is handed off at most
909
877
  * once, so a lost create acknowledgement can never become a second create. */
910
878
  private readonly delegatedLaunched;
911
- /** Expiry stamps (`startedAt + MIN_LIFETIME`) for slots that freed while still young — a
912
- * count-only, lazily-pruned recycle floor (P4c). Pruned + summed into the ceiling gate. */
913
- private cooling;
914
879
  /** This manager process's own incarnation uid (SPEC 13.1; minted once per supervisor process,
915
880
  * never reused across restarts) — the endpoint's presence key AND the `managerInstance` audit
916
881
  * coordinate every static activation records. */
@@ -1052,33 +1017,6 @@ export declare class Manager {
1052
1017
  private connectorStatuses;
1053
1018
  /** The boot inventory's warnings, printed once start completes, so a refused start prints none. */
1054
1019
  private bootNotes;
1055
- /** Static aliases whose startup exact-op terminal is still in flight. Scoped per alias: control
1056
- * serves during the sweep, but no caller can reuse or attach an alias the sweep still owns. */
1057
- private readonly reconcilingAliases;
1058
- /** In-flight static chat-session terminals, by lifecycle UID, so every caller that retires one
1059
- * session joins one terminal instead of racing its CAS sequence. */
1060
- private readonly chatRetirements;
1061
- /** The expiry side of every chat session this process admitted and nothing retired sooner. */
1062
- private readonly chatExpiry;
1063
- /** Current failed/recovered static reconciliation coordinates. This is an operator snapshot, not
1064
- * lifecycle authority: every re-drive re-reads broker KV and re-runs planStaticSlotResume. */
1065
- private readonly staticReconcileItems;
1066
- private staticReconcileLastSweep?;
1067
- staticReconcileLastSweepResources?: {
1068
- slots: {
1069
- examined: number;
1070
- retired: number;
1071
- preservedForeign: number;
1072
- preservedAdopted: number;
1073
- deferred: number;
1074
- terminalized: number;
1075
- failed: number;
1076
- };
1077
- deprovision?: DeprovisionResourceAccounting;
1078
- };
1079
- private staticReconcileSweepsInFlight;
1080
- private staticReconcileDrainWaiters;
1081
- private staticReconcileStopping;
1082
1020
  /** The complete boot task. stop() joins it after fencing static reconciliation, so a registration
1083
1021
  * already past an earlier shutdown check cannot finish after stop() returns. */
1084
1022
  private startTask?;
@@ -1107,22 +1045,21 @@ export declare class Manager {
1107
1045
  /** True on a USER-AUTH space (the on-disk marker; cross-checked against the registry at start).
1108
1046
  * Gates the whole spawn path: user mode grants ledger actors + bearer plumbing, never static mints. */
1109
1047
  private userMode;
1048
+ private readonly namesCapacity;
1110
1049
  private readonly servePlane;
1111
1050
  private resolveServeTarget;
1112
1051
  private readonly retirement;
1113
- private leaseInfo?;
1114
- private leaseRevision?;
1115
- private leaseTimer?;
1116
- /** What the last renew tick learned about this instance's key. Only a CHANGE of state is printed
1117
- * (see {@link noteLease}), so an outage of hours is one line going in and one line coming out. */
1118
- private leaseState;
1119
- /** A renew is in flight. The tick must not start a second one: both would read the same cached
1120
- * revision, so whichever lands second CASes against a sequence the first already moved. */
1121
- private leaseRenewInFlight;
1122
- /** The promise a currently in-flight `renewLease()` is running, so `stop()` can await it before
1123
- * releasing the key instead of racing it: a renew that lands after the cached revision was read
1124
- * for release would otherwise move the row out from under a same-cached-revision CAS delete. */
1125
- private leaseRenewTask?;
1052
+ private readonly lease;
1053
+ private get leaseInfo();
1054
+ private set leaseInfo(value);
1055
+ private get leaseRevision();
1056
+ private set leaseRevision(value);
1057
+ private get leaseTimer();
1058
+ private set leaseTimer(value);
1059
+ private get leaseRenewTask();
1060
+ private acquireInstanceLease;
1061
+ private renewLease;
1062
+ private releaseOwnManagerLease;
1126
1063
  /** Set at the top of `stop()`. `renewLease` returns at once once this is set, and its `gone` arm
1127
1064
  * does not re-acquire: a manager that is stopping never puts its own key back. It also closes the
1128
1065
  * lifecycle fence ({@link beginLifecycle}), so no spawn can launch a seat the stop never sees. */
@@ -1189,6 +1126,31 @@ export declare class Manager {
1189
1126
  private dialRemoteStanding;
1190
1127
  private readonly seatCustody;
1191
1128
  private readonly sessionRecovery;
1129
+ get staticReconcileLastSweepResources(): {
1130
+ slots: {
1131
+ examined: number;
1132
+ retired: number;
1133
+ preservedForeign: number;
1134
+ preservedAdopted: number;
1135
+ deferred: number;
1136
+ terminalized: number;
1137
+ failed: number;
1138
+ };
1139
+ deprovision?: DeprovisionResourceAccounting;
1140
+ } | undefined;
1141
+ set staticReconcileLastSweepResources(value: {
1142
+ slots: {
1143
+ examined: number;
1144
+ retired: number;
1145
+ preservedForeign: number;
1146
+ preservedAdopted: number;
1147
+ deferred: number;
1148
+ terminalized: number;
1149
+ failed: number;
1150
+ };
1151
+ deprovision?: DeprovisionResourceAccounting;
1152
+ } | undefined);
1153
+ private readonly staticLifecycle;
1192
1154
  constructor(opts: ManagerOptions);
1193
1155
  get runtimeKind(): string;
1194
1156
  /** Whether this manager's runtime opens a terminal stream on the seats it spawns, so a caller
@@ -1460,29 +1422,10 @@ export declare class Manager {
1460
1422
  private adoptReleasedSeats;
1461
1423
  private adoptReleasedSeat;
1462
1424
  private stopRetainedAgentsOnExit;
1463
- /** Create THIS instance's lease key, waiting out a dead predecessor's row first (#4092).
1464
- *
1465
- * A manager SIGKILLed on this host cannot release its key, so a restart inside the key's TTL
1466
- * loses the create. When the row names this workspace root and a pid that is not running here
1467
- * (or is this process's own pid, which a live predecessor cannot hold), the holder is dead and
1468
- * the restart waits for the bucket TTL to remove the row, then creates again. It never writes
1469
- * over the row: a live holder renews it inside the TTL, and the wait then refuses on that write.
1470
- * Any other conflict refuses at once, as before. */
1471
- private acquireInstanceLease;
1472
1425
  /** Every call joins the first stop and settles with it. A call that asks for a different
1473
1426
  * `withAgents` is refused, since the running stop has already applied its own policy. */
1474
1427
  stop(options?: ManagerStopOptions): Promise<void>;
1475
1428
  private stopOnce;
1476
- /** Release this instance's liveness lease key on a clean stop, at the broker's own revision
1477
- * rather than a cached one that a renew still in flight moments ago may have already moved past.
1478
- * Re-reads the row and releases only what is PROVABLY this process's (absent, or another pid's,
1479
- * is left alone — the same test {@link reconcileLease} uses).
1480
- *
1481
- * A read or delete that gets no answer, as during a reconnect, is tried again until the delete is
1482
- * acknowledged or {@link LEASE_RELEASE_BUDGET_MS} has passed (#3916). Nothing here throws: a stop
1483
- * must complete either way, and a row that could not be released is left for the bucket TTL, with
1484
- * one line of warning so the cost (a same-root restart waiting out the TTL) is not silent. */
1485
- private releaseOwnManagerLease;
1486
1429
  /**
1487
1430
  * REMOVE THIS INSTANCE'S SERVICE REGISTRATION on a clean stop (§13.5 deregistration).
1488
1431
  *
@@ -1521,39 +1464,6 @@ export declare class Manager {
1521
1464
  * connection's subscriptions. If the status stream itself fails, the transport can no longer be
1522
1465
  * observed, so it counts as down. */
1523
1466
  private trackTransport;
1524
- /** Keep this instance's liveness key fresh, and end the process only when another process holds it.
1525
- *
1526
- * A renew that throws is a question, not a verdict: the request may have timed out with the write
1527
- * landed and only its acknowledgement lost, the key may have expired during a stall, or a same-id
1528
- * process may hold it. The verdict comes from RE-READING the key ({@link reconcileLease}), and each
1529
- * answer has one response:
1530
- * - `held`: adopt the broker's revision and carry on.
1531
- * - `gone`: the key expired or was released while this process was still here, so put it back. The
1532
- * create is atomic, so a same-id process that got there first shows up as `taken` next tick.
1533
- * - `taken`: a different process holds this instance's key, so it took this instance over while
1534
- * this one stalled. This process is the superseded one and stops serving by exiting (SPEC 13.1).
1535
- * An open mesh has no barrier that would evict its serve connection, so nothing else stops it.
1536
- * - `unknown`: the broker could not be asked. Keep serving and ask again next tick, for as long as it
1537
- * takes. A manager that cannot reach its broker gains nothing by ending itself, and the seats it
1538
- * holds lose everything (a pty child dies with its parent).
1539
- *
1540
- * This replaces a fail-close that ended the process one tick past the lease TTL with no answer, which
1541
- * on a live mesh turned a ten-second broker or KV outage into a manager outage that lasted until an
1542
- * operator noticed. */
1543
- private renewLease;
1544
- /** The renew attempt itself, split out from {@link renewLease} only so `stop()` can hold the
1545
- * promise a renew already in flight is running ({@link leaseRenewTask}) and await it before
1546
- * releasing the key: releasing against a cached revision a live renew has since moved is a CAS
1547
- * the broker correctly refuses, silently, forever. */
1548
- private renewLeaseAttempt;
1549
- /** Print `what` only when the lease state CHANGES. The renew ticks every few seconds, so a long
1550
- * outage would otherwise print the same line thousands of times; an operator needs the line going
1551
- * in and the line coming out, with the instance and the space on both. */
1552
- private noteLease;
1553
- /** What the broker actually says about THIS instance's lease key, right now. `unknown` is a first-class
1554
- * answer and never collapses into `gone`: not being able to look is not the same fact as looking and
1555
- * finding nothing. */
1556
- private reconcileLease;
1557
1467
  private opFinalizeResume;
1558
1468
  private opCommitResume;
1559
1469
  private opResumePreserved;
@@ -1788,11 +1698,6 @@ export declare class Manager {
1788
1698
  /** Whether a roster record is this seat's own: the readiness fence's exact principal and
1789
1699
  * incarnation, so a same-named foreign peer or an older incarnation never speaks for it (#1208). */
1790
1700
  private isOwnPresence;
1791
- /** Drop a live agent's slot. When `floor` is set and the agent died young (lived less than
1792
- * MIN_LIFETIME), push a cooling stamp so the freed slot still counts toward the ceiling until it
1793
- * expires — flooring the RECYCLE, not the call, so both free paths (despawn + exit/reap) are
1794
- * covered (P4c). Floor self + own-child despawn and natural exit; NEVER admin despawn (operator
1795
- * emergency-kill stays unthrottled) and NEVER the reserved-rollback path (no cold-start paid). */
1796
1701
  private freeSlot;
1797
1702
  /** Remove one lifecycle's inline snapshot by the path its uid derives, never by a recorded one, so a
1798
1703
  * resume inventory cannot point the removal at another file. Returns whether the file is gone. A
@@ -1840,36 +1745,8 @@ export declare class Manager {
1840
1745
  * way, without classifying a session-state file. Every other exit follows the existing terminal
1841
1746
  * path. */
1842
1747
  private onAgentExit;
1843
- /** Agent names become `.cotal/agents/<name>.md` paths and mesh identities, so they must be bare
1844
- * tokens, never a path — blocks traversal / arbitrary writes from a model-supplied name. In user
1845
- * mode the name is ALSO the actor, which is a narrower alphabet still; {@link spawnNameError}
1846
- * holds both halves so this door and the auto-numbering that feeds it cannot disagree. */
1847
1748
  private nameError;
1848
- /** The roster's LIVE occupant names (status !== offline) — occupants this manager may NOT manage
1849
- * (a foreground `cotal spawn`, a connector session, ANOTHER manager's agent). Allocating over any
1850
- * of them mints a sibling the broker/auth then refuses to admit, surfacing as the 30s launch-
1851
- * uncertain black hole. */
1852
- private liveRosterNames;
1853
- /** THE single name-liveness predicate both the hard-pinned collision refuse and
1854
- * uniqueName's numbering consult, so they can never drift: a name is taken if this manager
1855
- * reserves/manages/retires it OR a roster-live occupant already holds it. Pass a pre-built
1856
- * {@link liveRosterNames} set when checking many names in one allocation. */
1857
1749
  private nameInUse;
1858
- /** First free name in the series `base`, `base_2`, `base_3`, … — checked against live slots,
1859
- * in-flight (reserved) slots, names held pending retirement, AND the live mesh roster. The
1860
- * roster check covers occupants this manager does not manage (a foreground `cotal spawn`, a
1861
- * connector session, another manager's agent): allocating their name would mint a sibling the
1862
- * broker/auth then refuses to admit, surfacing as a 30s launch-uncertain black hole instead of
1863
- * the auto-number the join path gives. Presence is ADVISORY (SPEC §6) — this is an availability
1864
- * choice at allocation, never an authority check (the broker still enforces): a stale
1865
- * still-live-looking row only costs a numbered suffix, and a missed freshly-joined occupant is
1866
- * still refused downstream exactly as before. Offline rows do NOT occupy — a properly retired
1867
- * name stays reusable. A row this manager itself confirmed retired (its alias, principal, and
1868
- * lifecycleUid all matching a {@link confirmedRetiredPredecessors} entry) does not occupy
1869
- * either, even while its advisory presence record ages out. A numbered name is never reissued
1870
- * ({@link issuedNumberedNames}), even after its holder retired. The requested base is exempt
1871
- * from that history: it is the persona's own name, which stays reusable even when it once came
1872
- * out of another persona's numbering. */
1873
1750
  private uniqueName;
1874
1751
  /** Spawn a teammate by persona ref (`name` loads `.cotal/agents/<name>.md`; the peer presents
1875
1752
  * under that file's own `name:`), as if a peer asked via the control plane. Used to pre-spawn the
@@ -2091,21 +1968,8 @@ export declare class Manager {
2091
1968
  * its children (P4b/P4c). The watch is bound to the current handle: a restart swaps in a new one
2092
1969
  * and watches it, so a late exit proved for the old handle must not retire the row. */
2093
1970
  private watchExit;
2094
- /** Prune expired cooling stamps (drop those at/before now) and return the live count — the
2095
- * recycle floor's contribution to the ceiling (P4c). Lazy: pruned only when the gate consults it. */
2096
- private coolingCount;
2097
- /** What holds the ceiling's slots, one count per seat (#906). A launching seat sits in `reserved`
2098
- * from accept until its launch settles, in `agents` once its process exists, and in `cooling`
2099
- * if it then frees young, so a reservation stops counting once it reaches `agents`. `managed` is
2100
- * what this manager's `ps` lists, `reserved` is the accepted launches that have no process yet,
2101
- * and `launching` is every unsettled launch that still holds a slot through `reserved` or
2102
- * `agents`. A launch whose seat already freed holds no slot but its cooling stamp, so its
2103
- * failure can free nothing. */
2104
1971
  private occupancy;
2105
1972
  private occupancyText;
2106
- /** The capacity refusal states the split it enforces and whether waiting can free a slot: a
2107
- * cooling slot frees at a known time, an unsettled launch frees one only if it fails, and a
2108
- * managed seat frees one only when it is stopped. */
2109
1973
  private capacityRefusal;
2110
1974
  /**
2111
1975
  * The owner a launch belongs to, read ONCE so the per-owner ceiling, the agent's addressing
@@ -2201,8 +2065,6 @@ export declare class Manager {
2201
2065
  * seats, as `ps` lists them ({@link psOwnerFilter}), so a person reading a shared Manager does not
2202
2066
  * learn how many seats other owners hold on it. */
2203
2067
  private managerStatusData;
2204
- /** Render the current operator snapshot. Recovered rows live until the next sweep starts, then
2205
- * clear, so recovery is visible without becoming stale process-lifetime history. */
2206
2068
  private staticReconciliationStatus;
2207
2069
  /** Complete a crashed predecessor's FROZEN registration gate before this incarnation starts a
2208
2070
  * new one (#783 item 3 / #871). The CLI `cotal reconcile-gate` already does this; a successor
@@ -2510,100 +2372,13 @@ export declare class Manager {
2510
2372
  private adoptSeat;
2511
2373
  private restartSupervisedSeat;
2512
2374
  private reapOrphanSeat;
2513
- /** The static terminal for one departed incarnation: delegates the gate/head CAS
2514
- * sequence to the shared core saga over the executor transport; the footprint teardown (creds
2515
- * file + broker durables/ACL) runs INSIDE the barrier as its cleanup step. On completion the
2516
- * wire principal joins {@link retiredPrincipals} (the retired-principal refusal index) and the name hold
2517
- * clears (ABA-guarded by uid). A lifecycle with no slot row (spawned before the
2518
- * durable registry existed) has nothing to terminalize: its footprint teardown runs directly
2519
- * and the hold clears, the honest upgrade path. `onDeprovision` receives the accounting of the
2520
- * broker teardown this call ran, on success or on a {@link DeprovisionError}. */
2521
2375
  private driveStaticRetirement;
2522
- /** `chat-session-open`: admit one static chat session. The manager draws the `chat_` alias and a
2523
- * fresh nkey identity, then runs the same native steps a static spawn does: the slot intent and
2524
- * the shared activation saga, the provisioner's bind-only DM and DELIVER durables plus the ACL
2525
- * row, and the agent-profile mint. The leaf carries the spawn's three lists under the spawn's
2526
- * rules (`resolveReadAcl`, a default-deny post list, the foreign event-channel refusal) and
2527
- * nothing else: no role (so no TASK queue), no capabilities, no endpoint rows, no issuance. It
2528
- * expires at `ttl` with no renewal, because no managed row exists to renew it.
2529
- *
2530
- * The session is registered with the tracker before the first durable write and scheduled for
2531
- * its expiry before the reply is sent, or after a rollback that did not complete, so this
2532
- * process retires it at the expiry even when the reply is lost or the client never retires.
2533
- *
2534
- * The credential is ledgered before it leaves this process (slot credentialId, then the `cred.`
2535
- * row), so the static terminal marks the row revoked and verify-evicts the session's principal;
2536
- * the broker keeps accepting the leaf until its expiry. The direct ledger write is deliberate:
2537
- * the leaf is not an issuance, so the issuance seam, which writes the same row inside its
2538
- * finalization, never runs for it, and without the row the terminal's eviction set would be
2539
- * empty. The credential leaves only sealed to `sealTo`, bound to the space, this instance and
2540
- * the reply's fields, so a reply printed anywhere carries no usable credential. A failure at
2541
- * any step drives the terminal before the refusal is returned, and the refusal says whether it
2542
- * completed. */
2543
2376
  private openStaticChatSession;
2544
- /** `chat-session-retire`: end one static chat session through the native static terminal (ledger
2545
- * row marked revoked, verified eviction of its principal's live connections, footprint cleanup,
2546
- * gate and head retirement). It refuses before any effect unless {@link admitChatRetirement}
2547
- * admits the request. A terminal that cannot complete answers `failed` with the reason, never
2548
- * success; the slot stays held. The broker keeps accepting the leaf until its expiry either way. */
2549
2377
  private retireStaticChatSession;
2550
- /** The expiry cleanup's retirement of one session this process admitted. It is lifecycle work, so
2551
- * it is admitted like a control call and a stop drains it. A throw is a failure the tracker
2552
- * retries; a slot that is no longer this instance's to retire ends the tracking instead. */
2553
- private expireStaticChatSession;
2554
- /** The ownership admission shared by `chat-session-retire`, the expiry and the stop. It throws a
2555
- * not-executed refusal unless the alias is a chat alias whose slot this logical instance owns
2556
- * at the requested UID and actor. An already retired slot ends its expiry tracking. */
2557
- private admitChatRetirement;
2558
- /** One static terminal per chat session UID, however many callers ask: the explicit retire, the
2559
- * expiry cleanup and the open's rollback join it instead of racing its CAS sequence. A completed
2560
- * terminal ends the expiry tracking. `channels` names the membership rows to delete by name;
2561
- * without it the delivery inventory alone finds them. */
2562
- private chatTerminal;
2563
- /** Whether `row` is a chat slot this process registered, at its exact alias, actor and UID,
2564
- * under this logical instance and this process's incarnation. */
2565
- private holdsLiveChatSlot;
2566
- /** The stop's retirement of every chat session this process still tracks, through the same
2567
- * ownership admission and terminal as `chat-session-retire`, at most
2568
- * {@link CHAT_EXPIRY_CONCURRENCY} at a time. It runs after the lifecycle fence closed and every
2569
- * admitted operation drained, as the seat teardown does, and mints nothing the terminal does not
2570
- * already mint. Every outcome is logged. It throws, naming each one, when any session was not
2571
- * retired; that session stays held until the next start of this manager instance. */
2572
2378
  private retireChatSessionsOnStop;
2573
- /** Name, at a stop that does not retire them, each chat session this process still tracks. */
2574
2379
  private reportChatSessionsLeftAtStop;
2575
- /** Push renewal of ONE live managed-static credential: re-mint the SAME nkey
2576
- * identity with the SAME scope (recorded on the managed row at spawn) and a fresh bounded
2577
- * exp, ledger the new credentialId (slot record first, then the row, then the file — a
2578
- * credential is never materialized before its ledger row exists), and re-sign the SAME
2579
- * lifecycle-keyed file the agent endpoint's source seam re-reads. Never advances the epoch;
2580
- * renewal remains the THIRD transition. */
2581
2380
  private renewManagedStaticCred;
2582
- private driveManagedStaticCredRenewal;
2583
- /** The static-slot reconciliation ("no active orphan"): ensure the authority stores, then sweep
2584
- * every durable slot row and act by the TOTAL resume table — `provisioning`/`terminalizing`
2585
- * re-drive the exact-op terminal; an `active` row survives ONLY when a LIVE managed agent this
2586
- * manager process owns backs it at the same uid (`adopted`), else no managed owner claimed it and
2587
- * its broker authority is contained and terminalized; `retired` rows seed the retired-principal refusal index. Two call sites: the BOOT sweep
2588
- * (`postAdoption=false`, under the lease before control serving) DEFERS active-non-adopted
2589
- * slots while a resume is still pending (adoption runs after it); the POST-ADOPTION sweep
2590
- * (`postAdoption=true`, inside finalizeResume while `resumeRequired` still fences ordinary
2591
- * spawns) terminalizes any active slot the resume did not claim. */
2592
- private staticReconcileKey;
2593
- /** Read one retry coordinate from the durable slot store. The status snapshot never authorizes a
2594
- * re-drive: every timer comes through this fresh read before the planner and exact terminal. */
2595
2381
  private readStaticReconcileSlot;
2596
- private scheduleStaticReconcileRetry;
2597
- private retryStaticReconcile;
2598
- private driveStaticReconcileRetry;
2599
- /** Enter one exact terminal at most once per coordinate. Sweep and timer triggers join the same
2600
- * promise. A settled failed item keeps its original per-process budget; a restart builds a fresh
2601
- * map from the still-authoritative durable row. */
2602
- private attemptStaticReconcile;
2603
- private releaseStaticReconcileSweep;
2604
- /** Shutdown accepts no new static reconciliation work, then drains every sweep and exact-terminal
2605
- * flight that crossed the fence before stop(). A sweep can discover several rows before its first
2606
- * await, so the serial loop also consults the fence and never starts a later row after shutdown. */
2607
2382
  private awaitStaticReconcileDrain;
2608
2383
  private reconcileStaticLifecycles;
2609
2384
  /** The membership gate: decide a control caller by its
@@ -2721,5 +2496,4 @@ export declare class Manager {
2721
2496
  * owner-domain bound); undefined = unbounded. {@link NO_OWNER_MATCHES} matches nothing. */
2722
2497
  private list;
2723
2498
  }
2724
- export {};
2725
2499
  //# sourceMappingURL=manager.d.ts.map