@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
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, ControlEndpoint, 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
@@ -96,6 +93,8 @@ export interface ManagerOptions {
96
93
  * as the published binary does. A library composition leaves this off and resolves only what its
97
94
  * composition root imported — a direct `new Manager()` never implicitly reads the machine manifest. */
98
95
  installedExtensions?: boolean;
96
+ /** The machine daemon's command for repairing host setup. Absent outside daemon hosting. */
97
+ machineSetupCommand?: string;
99
98
  /** The {@link SecretStore} for EVERY secret this manager touches — the daemon-cred renewal write side
100
99
  * (`remintDaemonCreds`) AND the per-agent standing-secret kinds (static creds / actor tokens /
101
100
  * sentinel creds). ONE store, so a hosted composition (KMS/Vault) can never end up with the manager
@@ -277,19 +276,6 @@ export interface ManagerStopOptions {
277
276
  * proves it gone. A detachable seat that already exited is retired by this stop. */
278
277
  withAgents?: boolean;
279
278
  }
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
279
  /** Public identity selected by this manager before constructing its endpoint. Not a grant. */
294
280
  export interface ManagerServiceIdentity {
295
281
  endpoint: string;
@@ -699,10 +685,7 @@ export interface ManagedAgent {
699
685
  * one. Kept in memory only (never persisted — token hygiene) so a graceful stop on a signal-less
700
686
  * runtime (ConPTY/Windows) can send a cooperative `{op:"shutdown"}` over it instead of a hard
701
687
  * kill that would deny the agent its clean mesh-leave. */
702
- control?: {
703
- path: string;
704
- token: string;
705
- };
688
+ control?: ControlEndpoint;
706
689
  /** Set when `Runtime.spawnDelegated` started this seat outside the manager's filesystem. Its
707
690
  * handle's `stop()` is the fenced close by lifecycle key, which retirement runs only after the
708
691
  * host revoked the grant, never from the stop door. */
@@ -876,6 +859,7 @@ export declare class Manager {
876
859
  /** See {@link ManagerOptions.installedExtensions}. */
877
860
  private readonly installedExtensions;
878
861
  private readonly expectedConnectorGeneration;
862
+ private readonly machineSetupCommand?;
879
863
  private readonly executionState;
880
864
  private readonly runtime;
881
865
  /** One backend per kind a seat has asked for, beside {@link runtime}. The manager's own runtime
@@ -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. */
@@ -997,88 +962,19 @@ export declare class Manager {
997
962
  /** The live spawn goal ref for each managed agent name, so a despawn MID-GOAL
998
963
  * drives the cancel path (transition -> cancel terminal). Cleared when the goal terminalizes. */
999
964
  private agentGoals;
1000
- /**
1001
- * The turn relay's same-incarnation idempotency map ({@link goalAcceptances}'s twin), by
1002
- * {@link goalKey}: a same-goal retry serves the identical acceptance; cross-incarnation retries
1003
- * rebuild from the goal-index entry (its acceptance floor + note).
1004
- *
1005
- * One entry per turn this incarnation accepted: the acceptance a duplicate submission is served
1006
- * from, and — once the turn settles — the answer a RETRIED yield is served from.
1007
- *
1008
- * A yield's reply can be lost, and the retry used to find the pending turn already deleted and
1009
- * hear `not-found`, which a seat reads as "drop it": failure reported for work that committed.
1010
- * The settled answer lives here for a bounded window instead, and the sweep drops it after,
1011
- * which is also what keeps this map from being one entry per turn for the process lifetime.
1012
- *
1013
- * `ref` is the goal coordinates the durable terminal is published under. A late yield that
1014
- * arrives after pendingTurns is gone and before `settled` is remembered (or after a concurrent
1015
- * sweep dropped the settled field) still has to name that terminal, never `not-found`. The
1016
- * index entry is not that answer: it is cleared at commit, and the yield path never consults it.
1017
- *
1018
- * `leftoverSince` is when the pending latch dropped. An unsettled leftover ages off that stamp,
1019
- * never off `acceptance.deadlineAt`: a turn that expired after a long outage would otherwise be
1020
- * pruned on the first sweep tick, taking the GoalRef with it, and a late yield in the retry
1021
- * window would hear `not-found` again.
1022
- */
1023
- private turnAcceptances;
965
+ private turnRelayInstance?;
966
+ private get turnRelay();
1024
967
  private readonly participants;
1025
- /** Every relayed turn awaiting its seat's yield, by {@link goalKey}. The seat's `turn-pending` pull
1026
- * scans it; the deadline sweep drives expiry; a seat reap stamps its entries `seatDiedAt`, which
1027
- * the deadline terminal carries as `agentDownAt` so the run reads that death as L4002.
1028
- * Rebuilt at boot from goal-index entries carrying a turn note. */
1029
- private pendingTurns;
1030
- /** The deadline sweep behind {@link pendingTurns}: takes the hold's fire into an expired
1031
- * settle and commits the deadline terminal. Unref'd; idle when no turn is pending. */
1032
- private turnSweepTimer?;
1033
- /** Once tasks whose ending is owed, by {@link goalKey}: the task can no longer run (its seat's
1034
- * exit is proved, or it was never served), so it is cancelled if it has no terminal and its index
1035
- * entry is dropped. A settle that fails stays here and the turn sweep retries it. */
1036
- private readonly onceSettles;
1037
968
  /** Once tasks whose seat's exit is watched: that exit, not the spawn's outcome, settles the debt. */
1038
969
  private readonly onceWatched;
1039
- /** Once tasks a predecessor accepted, by seat uid, until this incarnation binds the seat or
1040
- * proves it gone. `readinessMs` bounds how long a seat no reconcile here can account for is
1041
- * waited for. */
1042
- private readonly onceInherited;
1043
- /** Inherited once seats this manager does not hold whose task has a terminal, by lifecycle uid.
1044
- * Every pull from one is answered `stop`, and its notice repeats until a pull has carried it. */
1045
- private readonly onceStops;
1046
- /** When the goal reconcile finished: the start of an inherited once task's wait for its seat. */
1047
- private goalReconcileDoneAt;
1048
970
  /** Process start, for the served `status` uptime. */
1049
971
  private readonly startedAtMs;
1050
- /** Connector harness paths resolved ONCE at boot. Missing binaries do not stop unrelated manager
1051
- * work, but they are named before the manager reports ready and remain visible in manager status. */
972
+ /** Connector harness inventory. Available paths stay pinned; missing binaries are retried when
973
+ * launch, model lookup or status asks, without stopping unrelated Manager work. */
1052
974
  private connectorStatuses;
975
+ private connectorRequirements;
1053
976
  /** The boot inventory's warnings, printed once start completes, so a refused start prints none. */
1054
977
  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
978
  /** The complete boot task. stop() joins it after fencing static reconciliation, so a registration
1083
979
  * already past an earlier shutdown check cannot finish after stop() returns. */
1084
980
  private startTask?;
@@ -1107,26 +1003,26 @@ export declare class Manager {
1107
1003
  /** True on a USER-AUTH space (the on-disk marker; cross-checked against the registry at start).
1108
1004
  * Gates the whole spawn path: user mode grants ledger actors + bearer plumbing, never static mints. */
1109
1005
  private userMode;
1006
+ private readonly namesCapacity;
1110
1007
  private readonly servePlane;
1111
1008
  private resolveServeTarget;
1112
1009
  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?;
1010
+ private readonly lease;
1011
+ private get leaseInfo();
1012
+ private set leaseInfo(value);
1013
+ private get leaseRevision();
1014
+ private set leaseRevision(value);
1015
+ private get leaseTimer();
1016
+ private set leaseTimer(value);
1017
+ private get leaseRenewTask();
1018
+ private acquireInstanceLease;
1019
+ private renewLease;
1020
+ private releaseOwnManagerLease;
1126
1021
  /** Set at the top of `stop()`. `renewLease` returns at once once this is set, and its `gone` arm
1127
1022
  * does not re-acquire: a manager that is stopping never puts its own key back. It also closes the
1128
1023
  * lifecycle fence ({@link beginLifecycle}), so no spawn can launch a seat the stop never sees. */
1129
1024
  private leaseStopping;
1025
+ private readonly shutdownReadiness;
1130
1026
  /** The class-2 renewal owner's half-TTL schedule; armed only on auth meshes. */
1131
1027
  private credRenewTimer?;
1132
1028
  private resumeCredRenewal?;
@@ -1189,6 +1085,33 @@ export declare class Manager {
1189
1085
  private dialRemoteStanding;
1190
1086
  private readonly seatCustody;
1191
1087
  private readonly sessionRecovery;
1088
+ get staticReconcileLastSweepResources(): {
1089
+ slots: {
1090
+ examined: number;
1091
+ retired: number;
1092
+ preservedForeign: number;
1093
+ preservedAdopted: number;
1094
+ deferred: number;
1095
+ terminalized: number;
1096
+ failed: number;
1097
+ };
1098
+ deprovision?: DeprovisionResourceAccounting;
1099
+ } | undefined;
1100
+ set staticReconcileLastSweepResources(value: {
1101
+ slots: {
1102
+ examined: number;
1103
+ retired: number;
1104
+ preservedForeign: number;
1105
+ preservedAdopted: number;
1106
+ deferred: number;
1107
+ terminalized: number;
1108
+ failed: number;
1109
+ };
1110
+ deprovision?: DeprovisionResourceAccounting;
1111
+ } | undefined);
1112
+ private readonly staticLifecycle;
1113
+ /** User-mode provisioning owns no manager state: each dependency reads through at its use. */
1114
+ private readonly userProvision;
1192
1115
  constructor(opts: ManagerOptions);
1193
1116
  get runtimeKind(): string;
1194
1117
  /** Whether this manager's runtime opens a terminal stream on the seats it spawns, so a caller
@@ -1460,29 +1383,10 @@ export declare class Manager {
1460
1383
  private adoptReleasedSeats;
1461
1384
  private adoptReleasedSeat;
1462
1385
  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
1386
  /** Every call joins the first stop and settles with it. A call that asks for a different
1473
1387
  * `withAgents` is refused, since the running stop has already applied its own policy. */
1474
1388
  stop(options?: ManagerStopOptions): Promise<void>;
1475
1389
  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
1390
  /**
1487
1391
  * REMOVE THIS INSTANCE'S SERVICE REGISTRATION on a clean stop (§13.5 deregistration).
1488
1392
  *
@@ -1521,39 +1425,6 @@ export declare class Manager {
1521
1425
  * connection's subscriptions. If the status stream itself fails, the transport can no longer be
1522
1426
  * observed, so it counts as down. */
1523
1427
  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
1428
  private opFinalizeResume;
1558
1429
  private opCommitResume;
1559
1430
  private opResumePreserved;
@@ -1716,45 +1587,12 @@ export declare class Manager {
1716
1587
  * wait proves exit: nobody asked for those children to be gone, so they stay managed until the
1717
1588
  * runtime says otherwise, and a runtime that cannot prove exit records an unverified stop. */
1718
1589
  private trackStoppedHandle;
1719
- /** The served spawn a hosted enrollment forwards. A run's spawn also names its run, so the host
1720
- * bounds the helper by what the run's starter held when the run was admitted (SPEC 14.8). */
1721
1590
  private servedSpawnRequest;
1722
- /** USER-MODE spawn provisioning (the gate-1 counterpart to the static mint block): resolve the
1723
- * OWNER (ctl caller's principal, or the manifest's stamped owner — never a payload field),
1724
- * pre-create the principal-keyed durables + ACL row on the ephemeral provisioner, author the
1725
- * ledger grant (the upsert ROTATES the per-agent secret on every start — a non-running agent
1726
- * never holds a standing mint secret), materialize the 0600 secret/sentinel files, and
1727
- * PREFLIGHT the bearer chain once — the spawned agent must never be the first to discover a
1728
- * dead auth plane. Every failure is returned as the refusal sentence, with the grant + files
1729
- * rolled back. */
1730
1591
  private provisionUserAgent;
1731
- /**
1732
- * HOSTED user-mode spawn provisioning (#1972): the participant arm of host-owned enrollment.
1733
- *
1734
- * A registered participant holds no ledger writer, no JetStream provisioner, and no signing seed,
1735
- * so every step the local arm above performs itself is the HOST's here. What stays local is the
1736
- * one thing that must: the standing `actorToken`. This method generates it, writes it at 0600
1737
- * BEFORE the request, and sends only its SHA-256 digest — so the plaintext never crosses the
1738
- * network and a host compromise cannot replay an agent's exchange secret.
1739
- *
1740
- * The HOST picks the lifecycle UID. It alone can see the retirement tombstones that make a UID
1741
- * permanently unusable (a retired uid is refused forever by the retirement frontier), so a
1742
- * participant-chosen uid could aim a fresh grant at a dead incarnation. The uid the host returns
1743
- * is the one the spawn records and the one the child's durables are keyed by.
1744
- *
1745
- * The bearer argv selects `--exchange-url`: the local `--dir` arm reads a state directory this
1746
- * machine does not have, and a signerless participant must never appear to hold one.
1747
- */
1748
- private enrollUserAgent;
1749
1592
  /** Shred a user agent's secret family from the store and from disk. Every removal is attempted,
1750
1593
  * and each failure joins `unshredded`, so one fault cannot leave the rest of the family behind. */
1751
1594
  private shredUserSecrets;
1752
- /** This manager's registry record for its space, which pins the broker and IdP a delegated seat's
1753
- * handoff carries. It must pin the exchange the host enrolls against, or the child would register
1754
- * a mesh whose bearers come from somewhere else. */
1755
1595
  private delegatedMeshRecord;
1756
- /** The one handoff a delegated seat receives, built from values this manager holds: the
1757
- * enrollment result, the token it generated, and its own registry record. No path crosses. */
1758
1596
  private composeManagedHandoff;
1759
1597
  /**
1760
1598
  * WHY A SEAT LEFT — one line, at the one place every free path passes through.
@@ -1788,11 +1626,6 @@ export declare class Manager {
1788
1626
  /** Whether a roster record is this seat's own: the readiness fence's exact principal and
1789
1627
  * incarnation, so a same-named foreign peer or an older incarnation never speaks for it (#1208). */
1790
1628
  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
1629
  private freeSlot;
1797
1630
  /** Remove one lifecycle's inline snapshot by the path its uid derives, never by a recorded one, so a
1798
1631
  * resume inventory cannot point the removal at another file. Returns whether the file is gone. A
@@ -1840,36 +1673,8 @@ export declare class Manager {
1840
1673
  * way, without classifying a session-state file. Every other exit follows the existing terminal
1841
1674
  * path. */
1842
1675
  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
1676
  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
1677
  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
1678
  private uniqueName;
1874
1679
  /** Spawn a teammate by persona ref (`name` loads `.cotal/agents/<name>.md`; the peer presents
1875
1680
  * under that file's own `name:`), as if a peer asked via the control plane. Used to pre-spawn the
@@ -1916,6 +1721,8 @@ export declare class Manager {
1916
1721
  * reports ready. A missing harness degrades only that connector, never unrelated lifecycle work:
1917
1722
  * boot continues, names it once start completes and records it on both manager status surfaces. */
1918
1723
  private inspectConnectorsAtBoot;
1724
+ /** Retry missing applications on the Manager's PATH without changing resolved available rows. */
1725
+ private refreshUnavailableConnectors;
1919
1726
  /** True when at least one declared connector is available. Empty inventory (or a failed
1920
1727
  * inventory load) skips the class `one` subscribe for spawn/launch so this member cannot
1921
1728
  * consume an unpinned request a sibling could serve. */
@@ -1930,7 +1737,8 @@ export declare class Manager {
1930
1737
  /** The harness binaries a managed launch runs, as boot resolved them, or the refusal naming what is
1931
1738
  * missing. Spawn, resume and the model catalog all take it, so a seat launches from the same files
1932
1739
  * whichever path starts it and the catalog never disagrees with a launch about whether the harness
1933
- * is there. A connector registered after boot has no inventory row and is checked on PATH now. */
1740
+ * is there. Unavailable rows are checked again on PATH; available rows retain their resolved files.
1741
+ * A connector registered after boot has no inventory row and is checked on PATH now. */
1934
1742
  private launchHarness;
1935
1743
  /** The launch fields the host supplies rather than the seat. Spawn and resume both take them from
1936
1744
  * here, so a resumed seat launches under the same host policy, `eventsRequired` included, as the
@@ -1947,7 +1755,7 @@ export declare class Manager {
1947
1755
  private spawnerName;
1948
1756
  /** The refusal for an event-plane choice the registration policy or the connector cannot meet.
1949
1757
  * Spawn and resume both ask before a seat's launch is built, so a seat retained without the
1950
- * plane cannot come back on a space that now requires it. An absent choice arms the plane. */
1758
+ * plane cannot come back on a space that now requires it. An absent choice arms supported planes. */
1951
1759
  private eventsRefusal;
1952
1760
  /** Return connector-provided model catalogs for selector UIs. Optional by connector: a host with no
1953
1761
  * local model-list API reports `supported:false` rather than blocking the manager. A connector that
@@ -2091,21 +1899,8 @@ export declare class Manager {
2091
1899
  * its children (P4b/P4c). The watch is bound to the current handle: a restart swaps in a new one
2092
1900
  * and watches it, so a late exit proved for the old handle must not retire the row. */
2093
1901
  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
1902
  private occupancy;
2105
1903
  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
1904
  private capacityRefusal;
2110
1905
  /**
2111
1906
  * The owner a launch belongs to, read ONCE so the per-owner ceiling, the agent's addressing
@@ -2201,8 +1996,6 @@ export declare class Manager {
2201
1996
  * seats, as `ps` lists them ({@link psOwnerFilter}), so a person reading a shared Manager does not
2202
1997
  * learn how many seats other owners hold on it. */
2203
1998
  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
1999
  private staticReconciliationStatus;
2207
2000
  /** Complete a crashed predecessor's FROZEN registration gate before this incarnation starts a
2208
2001
  * new one (#783 item 3 / #871). The CLI `cotal reconcile-gate` already does this; a successor
@@ -2349,27 +2142,10 @@ export declare class Manager {
2349
2142
  * connection that holds this instance's reply rows. The notice carries no turn and the seat
2350
2143
  * pulls on it, so a lost notice delays that seat until its next pull, and nothing else. */
2351
2144
  private noticeSeatTurns;
2352
- /** A seat names a turn by goal id alone when it yields, so one incarnation holding two callers'
2353
- * turns under one id could not say which of the two it answered. */
2354
- private assertSeatTurnFree;
2355
- /** The relay key of the turn addressed to seat incarnation `c` under `goalId`, pending or kept
2356
- * for a retried yield. The accept path never hands one incarnation two turns under one goal
2357
- * id, so at most one matches. */
2358
- private seatTurnKey;
2359
2145
  /** The seat's yield: claim the hold (one-use; expiry fails closed), then commit the goal
2360
2146
  * `succeeded` carrying the TurnResult. A yield AFTER the deadline drives the deadline terminal
2361
2147
  * instead and refuses — the expiry outcome stands, never a late success over it. */
2362
2148
  private serveTurnYield;
2363
- /** A seat's answer for a turn no longer pending. A REPLY THAT WAS LOST IS NOT AN ANSWER THAT
2364
- * FAILED: the commit deleted the pending turn, so a retry found nothing and heard `not-found`,
2365
- * which a seat reads as "drop it", reporting failure for work the run already has. The answer
2366
- * the first reply carried is served again instead, to the addressee it was addressed to and
2367
- * nobody else. */
2368
- private settledTurnAnswer;
2369
- /** Claim a pending turn's deadline hold before the seat's answer commits: one use, and a hold
2370
- * that already expired drives the deadline terminal instead and refuses the answer. A once task
2371
- * with no deadline has no hold. */
2372
- private claimTurnHold;
2373
2149
  /** A once seat's report that its task's handoff to its harness was not confirmed. The seat sealed
2374
2150
  * the task before it reported, so nothing hands it over again; the task fails
2375
2151
  * `delivery-unconfirmed` and the seat is stopped. The commit proves the seat's live currency, as
@@ -2388,39 +2164,12 @@ export declare class Manager {
2388
2164
  * whose outcome cannot be read back stays out and converges through the goal index at the
2389
2165
  * next boot, as a failed deadline commit does. */
2390
2166
  private serveTurnCancel;
2391
- /** Commit the deadline terminal for one pending turn whose hold settled EXPIRED: the deny's
2392
- * predicate is that recorded settle, verified by core against the spec's goal binding. The map
2393
- * delete is the idempotency latch (yield-loss and sweep race here); a commit failure after it
2394
- * converges through the goal index at the next boot, the same narrow leg spawn leaves open. */
2395
- private commitTurnDeadline;
2396
2167
  /** The reap hook: a pending turn addressed to the reaped INCARNATION is MARKED dead, never
2397
2168
  * settled early — no honest terminal exists for it (a completion must prove the executor's
2398
2169
  * live currency, and the hold is only expirable once due), so the entry rides to its deadline
2399
2170
  * and the deny then records both facts. The addressee's own client observes the death from
2400
2171
  * presence long before that, which is the run's L4002. */
2401
2172
  private failSeatTurns;
2402
- /** Settle one DUE hold as its owner: the manager minted it, so once the deadline has passed it
2403
- * expires the pause itself ({@link expireCheckpoint}, the guard-hold precedent) rather than
2404
- * waiting on the broker's fire — which it holds no grant to read, and which a hold minted under
2405
- * a predecessor's epoch would carry on a subject this incarnation never subscribes. Idempotent
2406
- * by the plane: a yield that claimed the hold first is observed as `resumed` and left to its
2407
- * own commit, and an already-expired hold returns its recorded settle. */
2408
- private expireTurnHold;
2409
- private ensureTurnSweep;
2410
- /** The answer a retried yield is served, held for {@link TURN_ANSWER_RETENTION_MS}. Only for a
2411
- * turn this incarnation accepted: an entry it has no acceptance for is one it cannot vouch for. */
2412
- private rememberSettledTurn;
2413
- /** Stamp when the pending latch dropped, so an unsettled leftover ages off that instant rather
2414
- * than the original deadline. Idempotent: the first drop is the one the retry window starts at. */
2415
- private markTurnLatchDropped;
2416
- /** Stop the sweep only when it has nothing left to do. It drives elapsed turns to their deadline
2417
- * terminals AND drops settled answers once their retry window has passed, so a stop while the
2418
- * second is still owed would leave one entry per turn for the process lifetime. */
2419
- private maybeStopTurnSweep;
2420
- private stopTurnSweep;
2421
- /** Drive every elapsed pending turn to its deadline terminal. Only entries at/past their own
2422
- * `deadlineAt` are read at all; a `resumed` settle is a yield mid-commit and is left alone. */
2423
- private sweepTurnDeadlines;
2424
2173
  /** Adopt one inherited TURN goal at boot (the reconcile sweep's turn branch): a non-terminal
2425
2174
  * entry carrying a parseable note rebuilds its pending relay — never an `uncertain` settle,
2426
2175
  * because the deadline hold IS this goal's bounded ending and it survived the restart. No
@@ -2457,35 +2206,14 @@ export declare class Manager {
2457
2206
  * then drop its index entry. One flight per task; a failure keeps it in {@link onceSettles} and
2458
2207
  * the turn sweep retries it. */
2459
2208
  private settleOnceTurn;
2460
- private runOnceSettle;
2461
2209
  /** Cancel a once task with `reason` unless it already has a terminal. */
2462
2210
  private commitOnceCancel;
2463
2211
  /** Ask the seat's connector to prove its launched processes gone, within {@link ONCE_RETIRE_MS}.
2464
2212
  * Throws without that proof. */
2465
2213
  private retireOnceSeat;
2466
- /** Record a once task a predecessor accepted, and bind its seat if this incarnation already
2467
- * adopted it. The static adoption and the goal reconcile run in either order, so each side
2468
- * binds what the other has already found. */
2469
- private inheritOnce;
2470
- /** An inherited once task whose seat this manager cannot hold: it adopts no seats (an open or
2471
- * user-mode mesh) and the seat is not bound here. */
2472
- private onceSeatUnheld;
2473
- /** Whether a once task was served: its spawn's succeeded terminal is written. */
2474
- private onceServed;
2475
2214
  /** Make an adopted seat a once seat again: its exit settles its task, and the task is served to
2476
2215
  * it. A task that ended before the restart owes the stop the predecessor may not have made. */
2477
2216
  private bindOnceSeat;
2478
- /** Inherited once tasks whose seat is not bound here. On a static mesh the boot reconcile adopts
2479
- * every seat it can and reaps the rest by their custody reference, so once it has finished with
2480
- * a seat's slot, an unbound seat is proved gone. A manager that adopts no seats cannot reach the
2481
- * old seat or prove its exit: it does not serve the task to it, a task with a deadline ends at
2482
- * that deadline, and one without is settled `uncertain` after one readiness window. Its debt is
2483
- * never cleared here, since nothing proves that seat gone. */
2484
- private settleInheritedOnce;
2485
- /** An inherited task's seat this manager cannot reach: its terminal stands, and its index entry,
2486
- * the seat's debt, stays recorded, because nothing here can prove that seat gone. The seat is
2487
- * told to end itself on its next pull, and its notice repeats until a pull carries that. */
2488
- private keepUnprovedOnceDebt;
2489
2217
  /** Settle race: a despawn MID-GOAL drives the goal's cancel terminal - transition to
2490
2218
  * `cancelling`, then commit the `cancel` cause on the goal-writer connection. First-terminal-fact
2491
2219
  * wins: if the readiness outcome already committed (succeeded/failed/uncertain) the transition or
@@ -2510,100 +2238,13 @@ export declare class Manager {
2510
2238
  private adoptSeat;
2511
2239
  private restartSupervisedSeat;
2512
2240
  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
2241
  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
2242
  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
2243
  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
2244
  private retireChatSessionsOnStop;
2573
- /** Name, at a stop that does not retire them, each chat session this process still tracks. */
2574
2245
  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
2246
  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
2247
  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
2248
  private awaitStaticReconcileDrain;
2608
2249
  private reconcileStaticLifecycles;
2609
2250
  /** The membership gate: decide a control caller by its
@@ -2721,5 +2362,4 @@ export declare class Manager {
2721
2362
  * owner-domain bound); undefined = unbounded. {@link NO_OWNER_MATCHES} matches nothing. */
2722
2363
  private list;
2723
2364
  }
2724
- export {};
2725
2365
  //# sourceMappingURL=manager.d.ts.map