@cotal-ai/manager 0.171.2 → 0.171.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (56) hide show
  1. package/dist/broker-transport.d.ts +126 -0
  2. package/dist/broker-transport.d.ts.map +1 -0
  3. package/dist/broker-transport.js +263 -0
  4. package/dist/broker-transport.js.map +1 -0
  5. package/dist/command-dispatch.d.ts +206 -0
  6. package/dist/command-dispatch.d.ts.map +1 -0
  7. package/dist/command-dispatch.js +471 -0
  8. package/dist/command-dispatch.js.map +1 -0
  9. package/dist/connector-inventory.d.ts +37 -0
  10. package/dist/connector-inventory.d.ts.map +1 -0
  11. package/dist/connector-inventory.js +73 -0
  12. package/dist/connector-inventory.js.map +1 -0
  13. package/dist/harness-resolution.d.ts +71 -0
  14. package/dist/harness-resolution.d.ts.map +1 -0
  15. package/dist/harness-resolution.js +111 -0
  16. package/dist/harness-resolution.js.map +1 -0
  17. package/dist/manager.d.ts +91 -375
  18. package/dist/manager.d.ts.map +1 -1
  19. package/dist/manager.js +400 -2811
  20. package/dist/manager.js.map +1 -1
  21. package/dist/persona-catalog.d.ts +86 -0
  22. package/dist/persona-catalog.d.ts.map +1 -0
  23. package/dist/persona-catalog.js +325 -0
  24. package/dist/persona-catalog.js.map +1 -0
  25. package/dist/preservation.d.ts +157 -0
  26. package/dist/preservation.d.ts.map +1 -0
  27. package/dist/preservation.js +583 -0
  28. package/dist/preservation.js.map +1 -0
  29. package/dist/readiness-wait.d.ts +64 -0
  30. package/dist/readiness-wait.d.ts.map +1 -0
  31. package/dist/readiness-wait.js +244 -0
  32. package/dist/readiness-wait.js.map +1 -0
  33. package/dist/runtime/index.d.ts +2 -0
  34. package/dist/runtime/index.d.ts.map +1 -1
  35. package/dist/runtime/index.js +22 -0
  36. package/dist/runtime/index.js.map +1 -1
  37. package/dist/service-adapter.d.ts.map +1 -1
  38. package/dist/service-adapter.js +6 -0
  39. package/dist/service-adapter.js.map +1 -1
  40. package/dist/spawn-goal.d.ts +77 -0
  41. package/dist/spawn-goal.d.ts.map +1 -0
  42. package/dist/spawn-goal.js +357 -0
  43. package/dist/spawn-goal.js.map +1 -0
  44. package/dist/start-doors.d.ts +51 -0
  45. package/dist/start-doors.d.ts.map +1 -0
  46. package/dist/start-doors.js +187 -0
  47. package/dist/start-doors.js.map +1 -0
  48. package/dist/status-and-models.d.ts +155 -0
  49. package/dist/status-and-models.d.ts.map +1 -0
  50. package/dist/status-and-models.js +290 -0
  51. package/dist/status-and-models.js.map +1 -0
  52. package/dist/terminal-input.d.ts +82 -0
  53. package/dist/terminal-input.d.ts.map +1 -0
  54. package/dist/terminal-input.js +266 -0
  55. package/dist/terminal-input.js.map +1 -0
  56. package/package.json +12 -12
package/dist/manager.d.ts CHANGED
@@ -7,6 +7,10 @@ export type { ManagedAgent, SpawnAcceptance, SpawnHooks, StartAgentOpts } from "
7
7
  export { STATIC_RECONCILE_RETRY_DELAYS_MS } from "./managed-static-lifecycle.js";
8
8
  export { credRenewIntervalMs } from "./credential-renewal.js";
9
9
  export { ManagerInstanceLeaseHeld } from "./lease-keeper.js";
10
+ import { CommandDispatch } from "./command-dispatch.js";
11
+ import { StatusAndModels } from "./status-and-models.js";
12
+ import { Preservation } from "./preservation.js";
13
+ export { PASTE_END, PASTE_START, RUNTIME_NO_TERMINAL_DETAIL } from "./terminal-input.js";
10
14
  import { CredentialRenewal } from "./credential-renewal.js";
11
15
  import { type EpServeGrant, type Identity } from "@cotal-ai/core";
12
16
  import { type ManagerStopImpact } from "./manager-service-contract.js";
@@ -19,17 +23,6 @@ import { type ManagerStopImpact } from "./manager-service-contract.js";
19
23
  * launch-parity smoke can assert every launch client's request timeout OUTLIVES this window — the tier
20
24
  * rule forbids the clients importing it directly. */
21
25
  export declare const READINESS_TIMEOUT_MS = 30000;
22
- /** Bracketed-paste delimiters (DECSET 2004). `input` wraps a seat's text in these so the return it
23
- * writes afterwards is a KEYSTROKE rather than the newline trailing a pasted block: a TUI that
24
- * classifies a fast burst as a paste consumes that trailing newline and the text sits unsubmitted
25
- * in the composer until the next call's return (issue #1649). Framing, never content - these bytes
26
- * are not counted into the receipt, so `bytes` still reports what the caller asked to deliver. */
27
- export declare const PASTE_START = "\u001B[200~";
28
- export declare const PASTE_END = "\u001B[201~";
29
- /** `details[].kind` on an `attach` refusal raised because the seat's runtime opens no terminal
30
- * stream. The message carries that runtime's own guidance, which is operator copy and changes; this
31
- * marker is the contract a caller keys on so it can act without reading the wording. */
32
- export declare const RUNTIME_NO_TERMINAL_DETAIL = "ai.cotal.manager.runtime-no-terminal";
33
26
  export interface ManagerOptions {
34
27
  space: string;
35
28
  /** Assert the embedding generation matches this Manager. Installed first-party connectors
@@ -672,12 +665,8 @@ export declare class Manager {
672
665
  private maintenanceState;
673
666
  private lifecycleInFlight;
674
667
  private lifecycleDrainWaiters;
675
- private preservationTask?;
676
- private preparationTask?;
677
668
  private preservationGeneration;
678
669
  private preservationAttemptId?;
679
- private preservationStarted;
680
- private preservationFailures;
681
670
  private unverifiedStops;
682
671
  private preservationInventory?;
683
672
  private resumeAttemptId?;
@@ -701,16 +690,9 @@ export declare class Manager {
701
690
  /** A refused or failed standing candidate is cleanup debt, never a silent loss: the last-good
702
691
  * family stays live and this records what the host may have signed but the manager never adopted. */
703
692
  private remoteRenewalDebt?;
704
- /** Every broker dial this manager makes, through ONE transport decision.
705
- *
706
- * `this.servers` is whatever the mesh record held (`cotal supervise` reads it from there), so it
707
- * can be a `ws://`/`wss://` broker published through an HTTPS edge. The raw node transport
708
- * refuses such a URL instead of dialing it, so the scheme picks the dialer here rather than at
709
- * thirteen call sites. `dialerFor` also owns the websocket transport's options, which is why
710
- * callers below still pass their own auth options unchanged. */
693
+ /** {@link BrokerTransport.dial}. */
711
694
  private dial;
712
- /** Initial NATS timeout is per dial, not per server list. Keep the aggregate deadline too, and
713
- * close a late result rather than letting an abandoned preflight or recovery install a transport. */
695
+ /** {@link BrokerTransport.dialRemoteStanding}. */
714
696
  private dialRemoteStanding;
715
697
  private readonly seatCustody;
716
698
  private readonly sessionRecovery;
@@ -743,6 +725,28 @@ export declare class Manager {
743
725
  private readonly userProvision;
744
726
  /** Seat stop, exit, recursive reap and named despawn. Every dependency reads through at its use. */
745
727
  private readonly seatStopComponent;
728
+ /** The typed command table and its admission. Every dependency reads through at its use. */
729
+ private readonly commandDispatch;
730
+ /** The spawn and launch goal path. Every dependency reads through at its use. */
731
+ private readonly spawnGoalComponent;
732
+ /** The persona catalog doors. Every dependency reads through at its use. */
733
+ private readonly personaCatalogComponent;
734
+ /** Seat terminal input and attach sessions. Every dependency reads through at its use. */
735
+ private readonly terminalInputComponent;
736
+ /** Status, seat list and model catalog reads. Every dependency reads through at its use. */
737
+ private readonly statusAndModelsComponent;
738
+ /** The launch readiness race and exit watch. Every dependency reads through at its use. */
739
+ private readonly readinessWaitComponent;
740
+ /** Broker dials and scoped executor connections. Every dependency reads through at its use. */
741
+ private readonly brokerTransportComponent;
742
+ /** The start and launch control doors. Every dependency reads through at its use. */
743
+ private readonly startDoorsComponent;
744
+ /** Connector and harness resolution for a launch. Every dependency reads through at its use. */
745
+ private readonly harnessResolutionComponent;
746
+ /** The boot connector inventory. Every dependency reads through at its use. */
747
+ private readonly connectorInventoryComponent;
748
+ /** Manager preservation and released-seat adoption. Every dependency reads through at its use. */
749
+ private readonly preservationComponent;
746
750
  /** The goal-writer connection and the goal index it reconciles. Every dependency reads through at its use. */
747
751
  private readonly goalWriterComponent;
748
752
  /** Renewal of the manager's standing credentials. Every dependency reads through at its use. */
@@ -830,16 +834,6 @@ export declare class Manager {
830
834
  * silently, since `switch` has no default arm to catch it.
831
835
  */
832
836
  private get meshMode();
833
- /** The CHAT stream frontier at a preservation cut (issue #545), read through whichever local
834
- * authority this mesh mode holds: open mode's own endpoint already has `$JS.API.STREAM.INFO`
835
- * on the CHAT stream. Local and remote supervisor credentials also hold this metadata grant
836
- * for transcript startup checks, but this preservation path retains its existing local-authority
837
- * boundary. Static/user modes borrow the ephemeral `provisioner` profile the manager already
838
- * mints per spawn. A remote-authority manager (`this.auth`
839
- * undefined in static/user mode) has no local space authority to mint that provisioner with, so
840
- * it prints one line and returns no floor — the inventory then carries none and resumed seats
841
- * behave exactly as before this fix, not a silent partial degrade. */
842
- private chatFrontierForPreservation;
843
837
  private readerRemedy;
844
838
  start(): Promise<void>;
845
839
  private executionRecordPath;
@@ -880,54 +874,36 @@ export declare class Manager {
880
874
  private trackDeprovision;
881
875
  private awaitLifecycleDrain;
882
876
  private maintenanceError;
883
- /** Fence and build the inventory without stopping a child. The coordinator must durably persist
884
- * this exact plan before calling commitPreservation with the same attempt id. */
885
- preparePreservation(attemptId: string): Promise<ManagerPreservationPlan>;
886
- private assertPreservationGeneration;
887
- private runPreparation;
888
- /** Stop children only after the coordinator has persisted the prepared inventory. Same-attempt
889
- * retries are idempotent; a different attempt is refused. */
890
- commitPreservation(attemptId: string): Promise<ManagerPreserveResult>;
891
- /** Recover an abandoned prepare before any child stop. Once commit begins, preservation is
892
- * irreversible and remains fenced until the coordinator records failure/recourse. */
893
- abortPreservation(attemptId: string): void;
894
- /** In-process convenience that preserves the crash barrier by awaiting durable persistence between
895
- * prepare and commit. Wire callers use the explicit two-phase admin operations. */
896
- preserveState(opts: ManagerPreserveOptions): Promise<ManagerPreserveResult>;
897
- private runPreservation;
877
+ /** {@link Preservation.preparePreservation}. */
878
+ preparePreservation(...args: Parameters<Preservation["preparePreservation"]>): ReturnType<Preservation["preparePreservation"]>;
879
+ /** {@link Preservation.runPreparation}. */
880
+ runPreparation(...args: Parameters<Preservation["runPreparation"]>): ReturnType<Preservation["runPreparation"]>;
881
+ /** {@link Preservation.commitPreservation}. */
882
+ commitPreservation(...args: Parameters<Preservation["commitPreservation"]>): ReturnType<Preservation["commitPreservation"]>;
883
+ /** {@link Preservation.abortPreservation}. */
884
+ abortPreservation(...args: Parameters<Preservation["abortPreservation"]>): ReturnType<Preservation["abortPreservation"]>;
885
+ /** {@link Preservation.preserveState}. */
886
+ preserveState(...args: Parameters<Preservation["preserveState"]>): ReturnType<Preservation["preserveState"]>;
887
+ /** {@link Preservation.awaitHandleExit}. */
898
888
  private awaitHandleExit;
889
+ /** {@link Preservation.inventoryReferenceError}. */
899
890
  private inventoryReferenceError;
900
891
  private fileDigest;
892
+ /** {@link Preservation.fileDigestOrEmpty}. */
901
893
  private fileDigestOrEmpty;
902
894
  private resumeEntry;
903
895
  /** The resume entry of one live seat, with no side effect: a preservation cut and a supervised
904
896
  * seat's record both build it. The entry is its own copy, so a caller's write to the plan it was
905
897
  * handed cannot change the launch the manager keeps supervising (#3241). */
906
898
  private resumeEntryOf;
907
- /** Tear down every managed agent's footprint on an explicit destructive {@link stop}, or only the
908
- * in-process seats a default stop cannot detach. A manager exit is
909
- * a mass agent-exit, and without this its agents' footprints (creds files + `dm_`/`dlv_` durables + ACL
910
- * rows) would orphan exactly as the per-agent exit path prevents. Stop each child gracefully, so its
911
- * own shutdown runs before the runtime escalates, and AWAIT its deprovision — bounded per agent (`withTimeout`) and
912
- * best-effort (`allSettled` + a loud log), so one slow/failed teardown can neither hang nor abort exit.
913
- * The creds file is dropped even if the broker teardown fails (see {@link deprovision}). Deliberately
914
- * touches NEITHER the lease NOR the endpoints — the caller owns those. */
899
+ /** {@link Preservation.teardownManagedAgents}. */
915
900
  private teardownManagedAgents;
901
+ /** {@link Preservation.isProcessBoundSeat}. */
916
902
  private isProcessBoundSeat;
917
- /** Drop local custody of every seat that can outlive this process, and leave it running. A seat
918
- * with a runtime reference is recorded first, so the next manager on this workspace adopts it, or
919
- * retires it once its runtime proves it gone. The stopping manager keeps no watch on a released
920
- * seat: its endpoint is closing, and a retirement it drove afterwards would run over a dead
921
- * connection and race the next manager's. `stop` is every seat left for the caller to stop and
922
- * retire now: an in-process seat, a seat the runtime already reports gone, and a seat whose record
923
- * could not be written, because a released seat nobody can find again is the leak this stop must
924
- * not create. */
903
+ /** {@link Preservation.releaseManagedAgents}. */
925
904
  private releaseManagedAgents;
926
- /** Take back user-mode seats a previous manager released while they were still running. A seat
927
- * the runtime adopts is watched, and retired when that watch proves it gone. A seat the runtime
928
- * has already reaped is retired now. Anything the runtime cannot prove is left recorded. */
905
+ /** {@link Preservation.adoptReleasedSeats}. */
929
906
  private adoptReleasedSeats;
930
- private adoptReleasedSeat;
931
907
  private stopRetainedAgentsOnExit;
932
908
  /** Every call joins the first stop and settles with it. A call that asks for a different
933
909
  * `withAgents` is refused, since the running stop has already applied its own policy. */
@@ -956,33 +932,17 @@ export declare class Manager {
956
932
  * and drop its dedicated connection, or only close the connection while its transport is down.
957
933
  * Best-effort so a graceful stop completes its remaining teardown even when the broker is gone. */
958
934
  private stopServiceServe;
959
- /** Retire a dedicated connection on stop: drain it while its transport is up, close it while the
960
- * client is reconnecting it. A drain on a reconnecting connection does not fail, it waits for the
961
- * reconnect, so the stop would last as long as the outage; a broker this connection cannot reach
962
- * has nothing left to flush. `flush` (the serve loop's own drain) runs only while the transport is
963
- * up. Best-effort, so a graceful stop completes its remaining teardown even when the broker is gone. */
935
+ /** {@link BrokerTransport.retireConnection}. */
964
936
  private retireConnection;
965
- /** A failed candidate must not extend preparation by draining subscriptions on a stalled socket.
966
- * Close only that candidate first. Native stop still owns any already-dispatched handlers, whose
967
- * outcomes remain unknown to callers and must not be replayed; they do not hold family adoption. */
937
+ /** {@link BrokerTransport.discardServeCandidate}. */
968
938
  private discardServeCandidate;
969
- /** Track a dedicated connection's transport into {@link transportDown} from the first moment:
970
- * nats.js reports `disconnect` when the socket drops and `reconnect` only after it has re-sent the
971
- * connection's subscriptions. If the status stream itself fails, the transport can no longer be
972
- * observed, so it counts as down. */
939
+ /** {@link BrokerTransport.trackTransport}. */
973
940
  private trackTransport;
974
941
  private opFinalizeResume;
975
942
  private opCommitResume;
976
943
  private opResumePreserved;
977
944
  private opPreservationCtl;
978
- /** The ONE shared control-admission chokepoint BOTH dispatch doors
979
- * run — the v0.3 `ctl` door ({@link handle}) and the v0.4 `ep` service handlers
980
- * ({@link serveGated}): the maintenance/resume fence (`beginLifecycle`: a resume-pending or
981
- * non-active manager accepts no ordinary control work) and then the membership gate
982
- * ({@link lifecycleMembershipRefusal}: a retiring/terminalizing/retired managed incarnation's
983
- * AUTHENTICATED principal holds no control authority even with a valid JWT). Refusal carries
984
- * WHICH fence refused so the ep door can map onto the §13.3 catalog; admission returns the
985
- * accepted-work release. Never re-implemented per door — a fence on one door is a bypass. */
945
+ /** {@link CommandDispatch.admitControl}. */
986
946
  private admitControl;
987
947
  /** Run one v0.4 service-command handler through the SHARED admission chokepoint
988
948
  * ({@link admitControl}) on the broker-authenticated caller principal, mapping the two fences
@@ -997,27 +957,8 @@ export declare class Manager {
997
957
  * `finally`, so a drain waits at most for one status snapshot; the membership gate still
998
958
  * applies. `preserving` and a stopping manager stay fenced. */
999
959
  private serveObservation;
1000
- /** The ep door's ADMIN flag for a caller. Static mesh: `true` — the
1001
- * admin-grade rows (any-mode despawn/attach, the `manager.admin` family, `launch`) are minted
1002
- * only into operator instruments (§13.2: `any` is operator-policy-mintable; the agent/spawn
1003
- * rollups never carry them), so REACHING the handler is holding the admin tier, exactly as
1004
- * holding `ctl.<admin>` is today. User mesh: the caller's CURRENT ledger scope must carry
1005
- * `admin`. A local-host manager reads its own ledger fresh. A remote-authority manager relays the
1006
- * subject-parsed caller tuple to its host-owned authorization callback, with no participant-ledger
1007
- * fallback. The same fresh authority drives {@link psOwnerFilter}, so a revoked scope demotes the
1008
- * very next call even on a still-valid bearer. Local ledger read failures authorize nothing;
1009
- * remote host-state faults throw and fail the operation closed.
1010
- * NAMED RESIDUAL: the static `true` has no serve-time re-check — a LEAKED static admin
1011
- * instrument keeps its reach until the credential's bounded
1012
- * TTL (the one-shot 5-minute profile), the same static-revoke≠reconnect-death class ruled
1013
- * across this campaign; static revocation is the TTL, not a ledger. */
960
+ /** {@link CommandDispatch.epAdminReach}. */
1014
961
  private epAdminReach;
1015
- /** A targeted request's admin flag: mode `any` (the operator instrument's cross-agent form,
1016
- * rev 3) resolves through {@link epAdminReach}; a user-mode any-mode caller whose CURRENT
1017
- * ledger row lost `admin` since its rows were minted refuses loud rather than silently
1018
- * downgrading to the owner path (the request's declared mode is honored or denied, never
1019
- * reinterpreted). Owner mode is always the privileged (own-domain) path. */
1020
- private epAnyModeAdmin;
1021
962
  /** The run host, or one of three refusals. A remote-authority manager holds no space signer, so
1022
963
  * it cannot mint the per-run driver credential SPEC 14.6 requires without all four closed
1023
964
  * host callbacks. A local user-auth mesh is `unimplemented`: a hosted run's seats
@@ -1054,33 +995,7 @@ export declare class Manager {
1054
995
  * position, never another answerer's. Explicit `run` holders and unmanaged operator instruments
1055
996
  * keep the reach they have to answer, as {@link authorizeRunAnswer} does. */
1056
997
  private authorizeRunAmend;
1057
- /** The v0.4 typed command table: every ordinary handler runs the SHARED
1058
- * admission chokepoint ({@link serveGated}) and then delegates to the SAME op core the ctl
1059
- * door dispatches (one core, two thin doors). The resume/preservation family
1060
- * deliberately BYPASSES serveGated — exactly as it sits before {@link admitControl} on the ctl
1061
- * door (those ops must run while `resumeRequired` fences ordinary work) — riding its own state
1062
- * fences; its ep gate is the admin-grade `manager.admin` capability grant (static
1063
- * admin-class commands are capability-gated + untargeted, never a fabricated ledger mode).
1064
- *
1065
- * TIER SEMANTICS on the ep door: the tier lives in the CALLER'S
1066
- * GRANT, refined per-op exactly as the ctl doors refine their subject tier. Owner-mode
1067
- * `despawn`/`attach` keep the privileged semantics (`admin=false`, own-domain via
1068
- * {@link authorizeNamed}) — every spawn-capable agent holds those rows. ANY-mode requests are
1069
- * the operator instrument's cross-agent reach (rev 3): the any-mode subject row is mintable
1070
- * only under operator policy (§13.2), so on a static mesh holding it IS the admin tier, and in
1071
- * user mode the caller's CURRENT ledger scope must still carry `admin`
1072
- * ({@link epAdminReach}, the same fresh-read authority `psOwnerFilter` consults). The
1073
- * `manager.admin` family (purge + the resume/preservation ops) is capability-gated at mint AND
1074
- * re-checked at serve time via {@link epAdminReach} (the `adminGated` wrapper) so a user's
1075
- * revoked scope demotes the next call. `launch` is OWNER-EQUALITY on this door for everyone:
1076
- * the deploy path is its only consumer and stamps the caller's own owner,
1077
- * so cross-owner launch was a ctl-tier incidental never exercised, and keying it on the actor's
1078
- * ledger scope broke the deployer-view attenuation - uniform owner-equality is the safe tier.
1079
- * TWO DELIBERATE NARROWINGS vs the ctl doors (NOT bit-exact parity): (1)
1080
- * `define-persona` is `admin=false` for everyone (own-persona discipline; no ep consumer needs
1081
- * cross-owner persona writes - an operator redefines via config, not the wire), where the ctl
1082
- * admin tier allowed operator cross-owner redefine; (2) launch is owner-equality-only, above.
1083
- * Both are least-privilege reductions, never widenings. */
998
+ /** {@link CommandDispatch.managerServiceDefs}. */
1084
999
  private managerServiceDefs;
1085
1000
  private commitResumeActivation;
1086
1001
  /** Collapsed despawn/attach authorization (P4b). The caller already reached the command's ep
@@ -1097,12 +1012,8 @@ export declare class Manager {
1097
1012
  /** The wire principal of a managed agent: {@link managedPrincipal}. */
1098
1013
  private managedPrincipal;
1099
1014
  private resumeLivenessErrors;
1100
- /** Self-despawn (P2b): stop the managed agent whose id == the authenticated caller. The
1101
- * no-name self-op can only ever resolve to the caller's OWN managed entry (ids are unique
1102
- * per spawn + non-forgeable in auth mode), never a peer — so it's structurally incapable of
1103
- * hitting another agent. Non-managed callers (human CLI, the manager itself, observers) find
1104
- * no match and get a loud error, not a silent no-op. */
1105
- private opStopSelf;
1015
+ /** {@link CommandDispatch.opStopSelf}. */
1016
+ opStopSelf(...args: Parameters<CommandDispatch["opStopSelf"]>): ReturnType<CommandDispatch["opStopSelf"]>;
1106
1017
  /** {@link SeatStop.stopHandle}. */
1107
1018
  private stopHandle;
1108
1019
  /** {@link SeatStop.stopWindowsSeat}. */
@@ -1163,33 +1074,16 @@ export declare class Manager {
1163
1074
  * resolution: a same-named *unmanaged* peer already present could satisfy this early. That's
1164
1075
  * acceptable for cold-start staggering; it never routes anything. */
1165
1076
  waitForPresence(name: string, timeoutMs?: number): Promise<boolean>;
1166
- /** Parse a served `spawn` request into {@link StartAgentOpts}. The compiled spawn input contract
1167
- * is the shape check: it already refused a non-mapping `launchOptions`, a `supervise` that is not
1168
- * the closed `{ restarts, windowMs }` pair, and a list on `subscribe`, `allowSubscribe`,
1169
- * `allowPublish`, `shareTools`, `join` or `callerAcl` that is not an array of strings. This reads
1170
- * those fields as admitted, the way it reads the string fields. The connector still validates the
1171
- * launch-option keys, and `startAgent` still refuses a supervise budget the seat record would not
1172
- * take. `once` is shape-checked by that same contract. Its omitted `deadlineMs` takes the default
1173
- * here, and a deadline past the scheduler's last instant is refused here, which the schema does
1174
- * not express. */
1077
+ /** {@link StartDoors.opStart}. */
1175
1078
  private opStart;
1176
1079
  private listSpawnDirectory;
1177
1080
  /** {@link SeatLaunch.resolveSpawnCwd}. */
1178
1081
  private resolveSpawnCwd;
1179
- /** Resolve a connector by agent type. Library composition (installedExtensions off) → a registry
1180
- * hit, exactly as before (the composition root imported what it wants). The published binary gates
1181
- * on MANIFEST membership FIRST — so a live `cotal ext remove` is honored even though the registry
1182
- * still holds a connector imported earlier this session — then returns the registry hit or lazily
1183
- * imports the providing package (transactional + single-flight, via the workspace primitive).
1184
- * The captured Manager generation is checked for first-party providers under that lock,
1185
- * including providers already present in the registry.
1186
- * Fail-loud with an install hint; no fallback. */
1082
+ /** {@link HarnessResolution.resolveConnector}. */
1187
1083
  private resolveConnector;
1188
1084
  /** {@link SeatLaunch.connectorNames}. */
1189
1085
  private connectorNames;
1190
- /** Resolve every installed/registered connector's declared harness binaries before the manager
1191
- * reports ready. A missing harness degrades only that connector, never unrelated lifecycle work:
1192
- * boot continues, names it once start completes and records it on both manager status surfaces. */
1086
+ /** {@link ConnectorInventory.inspectConnectorsAtBoot}. */
1193
1087
  private inspectConnectorsAtBoot;
1194
1088
  /** Install and verify the hosted Claude wake channel, or report the cause and remedy. */
1195
1089
  private prepareClaudeWake;
@@ -1199,49 +1093,21 @@ export declare class Manager {
1199
1093
  /** {@link SeatLaunch.classSpawnEnabled}. */
1200
1094
  private classSpawnEnabled;
1201
1095
  private omitClassCommands;
1202
- /** The harness binaries a managed launch runs, as boot resolved them, or the refusal naming what is
1203
- * missing. Spawn, resume and the model catalog all take it, so a seat launches from the same files
1204
- * whichever path starts it and the catalog never disagrees with a launch about whether the harness
1205
- * is there. Callers recheck unavailable rows first; available rows retain their resolved files.
1206
- * A connector registered after boot has no inventory row and is checked on PATH now. */
1096
+ /** {@link HarnessResolution.launchHarness}. */
1207
1097
  private launchHarness;
1208
- /** The launch fields the host supplies rather than the seat. Spawn and resume both take them from
1209
- * here, so a resumed seat launches under the same host policy, `eventsRequired` included, as the
1210
- * same seat spawned fresh. The caller passes the cotal config it judged the launch by, so the
1211
- * servers and env allowlist come from the contents its checks read. */
1098
+ /** {@link HarnessResolution.hostLaunchFields}. */
1212
1099
  private hostLaunchFields;
1213
- /** The refusal for a launch choice the connector cannot honour. Spawn and resume both ask before
1214
- * a seat's launch is built, so a rule changed here holds on both paths. */
1100
+ /** {@link HarnessResolution.capabilityRefusal}. */
1215
1101
  private capabilityRefusal;
1216
1102
  /** {@link SeatLaunch.onceRefusal}. */
1217
1103
  onceRefusal(connector: Connector, runtime: Runtime, launch: Pick<StartAgentOpts, "once" | "supervise" | "launchOptions" | "prompt">, spawner: string | undefined, hooks: SpawnHooks | undefined): string | undefined;
1218
- /** The refusal for an event-plane choice the registration policy or the connector cannot meet.
1219
- * Spawn and resume both ask before a seat's launch is built, so a seat retained without the
1220
- * plane cannot come back on a space that now requires it. An absent choice arms supported planes. */
1104
+ /** {@link HarnessResolution.eventsRefusal}. */
1221
1105
  private eventsRefusal;
1222
- /** Return connector-provided model catalogs for selector UIs. Optional by connector: a host with no
1223
- * local model-list API reports `supported:false` rather than blocking the manager. A connector that
1224
- * fails to import shows an `error:` row (from manifest enumeration) and never blocks the others. */
1106
+ /** {@link StatusAndModels.opModels}. */
1225
1107
  private opModels;
1226
- /** The owner-domain bound on `ps`/`status` metadata: on a USER mesh, a privileged-tier caller
1227
- * sees only agents under its OWN subject-pinned owner. Two ways to see ALL owners: the admin
1228
- * TIER (operator), or a fresh ledger `admin` SCOPE on the caller's row — the SAME authority that
1229
- * lets `stop`/`attach` reach cross-owner agents ({@link authorizeNamedControl}). Without this the
1230
- * two surfaces disagree: an admin operator could cross-owner stop an agent it could not list.
1231
- * Read fresh so a revoked admin loses visibility on its next call; a read failure and an
1232
- * unparseable caller both fall closed (own-owner / matches-nothing). Static meshes are unbounded. */
1108
+ /** {@link StatusAndModels.psOwnerFilter}. */
1233
1109
  private psOwnerFilter;
1234
- /** Boot one resolved agent from a mesh-manifest launch spec, for `cotal spawn -f` onto a RUNNING
1235
- * manager. The request carries `{ runId, name }` — plus, for a deploy from another checkout or
1236
- * host, the resolved `spec` itself inline (validated as untrusted input and persisted under THIS
1237
- * manager's `.cotal/run/` first) — NEVER a path: the manager derives + validates
1238
- * `.cotal/run/<runId>.json` itself ({@link launchSpecForRun} — token-safe id, no-follow,
1239
- * `loadLaunchSpec`'s untrusted-input + `validateLaunchPolicy` contract), materializes the named
1240
- * agent's transient persona, and spawns via the same `startAgent({ resolved })` path as
1241
- * `supervise --launch`. The reply is enriched for the ownership ledger: the SPAWNED
1242
- * (collision-numbered) name + nkey id creds are filed under, plus the manifest `requested` name,
1243
- * `runId`, and resolved `hash`. USER mesh: a privileged-tier launch is owner-equality-authorized
1244
- * (spec owner === caller owner) before any side effect; the admin tier keeps operator behavior. */
1110
+ /** {@link StartDoors.opLaunch}. */
1245
1111
  private opLaunch;
1246
1112
  /** Spawn and supervise one agent. The single spawn path: both the control-plane
1247
1113
  * `start` op and declarative roster boot call this. Mints scoped creds in auth mode,
@@ -1305,33 +1171,11 @@ export declare class Manager {
1305
1171
  * fence's `joinedAfter` bound: the row the dead seat left must not stand in for the new process.
1306
1172
  * A heartbeat on that row moves only its time and emits no presence event, so the bound is polled. */
1307
1173
  private watchResumeAdoption;
1308
- /** #159 B1: wait for a detached launch to reach a REAL outcome before replying — never a liveness-
1309
- * inferring timer. Races three:
1310
- * • the assigned id joins presence (live) → **started** — the honest signal (the manager owns mesh
1311
- * lifecycle, not app health, so `ok:true` means "it joined the mesh", not "fully healthy");
1312
- * • the child process exits → **failed** — surface its last output and reap the slot;
1313
- * • neither within {@link readinessTimeoutMs} → **uncertain** — a non-success diagnostic that does NOT
1314
- * deprovision (it may still be booting; the caller keeps {@link watchExit} wired so a later death is
1315
- * still reaped).
1316
- * Presence is keyed on the EXACT freshly-minted id, never the name — a fresh id has no prior record, so
1317
- * any live presence for it is from THIS launch (stale/same-name records can't false-start it). The
1318
- * `"presence"` event is only a wake; the roster is re-read as the source of truth (subscribe-then-check
1319
- * catches a join/exit that landed before we subscribed). A runtime whose `attach()` throws (an external
1320
- * surface) streams no output or exit, so its exit leg polls the runtime's exit proof ({@link pollProvedExit}),
1321
- * reads it once more when the window closes, and its failure carries no last output; one that cannot prove an
1322
- * exit either races presence-vs-backstop only.
1323
- * A launch that waits for the operator at `opts.operator`, a screen its connector names, is ready once a
1324
- * process this runtime owns has run for {@link OPERATOR_READINESS_MS} without exiting. An uncertain verdict
1325
- * says whether a process this runtime owns is still running. */
1174
+ /** {@link ReadinessWait.awaitReadiness}. */
1326
1175
  private awaitReadiness;
1327
- /** Last non-empty line of the session's rendered backlog as a single trimmed snippet (≤160 chars)
1328
- * — a readable one-line cause for an early-exit diagnostic. The backlog repaints cells a TUI
1329
- * skipped with cursor moves, so it is rendered and the line is read off the terminal; stripping
1330
- * its escapes would glue the words those moves separate. */
1176
+ /** {@link ReadinessWait.tail}. */
1331
1177
  private tail;
1332
- /** Subscribe to a managed agent's process-exit so a self-driven exit frees its slot and reaps
1333
- * its children (P4b/P4c). The watch is bound to the current handle: a restart swaps in a new one
1334
- * and watches it, so a late exit proved for the old handle must not retire the row. */
1178
+ /** {@link ReadinessWait.watchExit}. */
1335
1179
  private watchExit;
1336
1180
  private occupancy;
1337
1181
  private occupancyText;
@@ -1350,47 +1194,21 @@ export declare class Manager {
1350
1194
  retireDelegatedAgent(name: string, intentId: string): Promise<ControlReply>;
1351
1195
  /** {@link SeatStop.findManagedByTarget}. */
1352
1196
  private findManagedByTarget;
1353
- /** Run one static §13.1 lifecycle OPERATION over an ephemeral, key-pinned `lifecycle-executor`
1354
- * connection: the credential's grants name exactly ONE incarnation's head/uid/gate/
1355
- * cred-family/slot keys, so the write authority exists only for this operation's window and
1356
- * can move nothing else. The transport is the direct-KV binding the shared core saga drives. */
1197
+ /** {@link BrokerTransport.withLifecycleExecutor}. */
1357
1198
  private withLifecycleExecutor;
1358
- /** Run one SPEC 13.15 issuance operation over an ephemeral `issuer` connection: the evidence
1359
- * stage/release of one mint, or the retirement walk of one lifecycle's issuances. The store
1360
- * handle and the accepted-row KV live only for this window; the standing supervisor holds no
1361
- * grant on either bucket. */
1199
+ /** {@link BrokerTransport.withIssuer}. */
1362
1200
  private withIssuer;
1363
- /** The issuance seam of ONE static credential mint (SPEC 13.15): the evidence is bound to the
1364
- * incarnation's own `cred.<uid>` ledger family, so the family's revocation (the static
1365
- * terminal) retires every issuance that named it. The finalizer is the §13.1 ledger append
1366
- * (slot credentialId + `cred.<uid>.<credId>` row); release runs it, then activates. */
1201
+ /** {@link BrokerTransport.issuanceSeam}. */
1367
1202
  private issuanceSeam;
1368
- /** Run one §13.1 endpoint-instance maintenance operation over an ephemeral,
1369
- * key-pinned `endpoint-serve-executor` connection: the credential's grants name exactly the
1370
- * manager instance's `epgate`/`epcred` keys plus its registration's two records keys, so the
1371
- * gate CAS, mint fence, spec/governance writes, and clean deregistration ride a one-shot scoped
1372
- * authority. The remote boot goal-index sweep instead uses the authenticated host-owned scan.
1373
- * This is NEVER the manager's standing seed/supervisor connection. */
1203
+ /** {@link BrokerTransport.withEndpointServeExecutor}. */
1374
1204
  private withEndpointServeExecutor;
1375
- /** The open-mesh counterpart of {@link withEndpointServeExecutor}: an OPEN mesh has no
1376
- * credential system, so there is no scoped executor to mint - the same §13.1 gate/records
1377
- * writes ride a bare one-shot connection (the broker enforces nothing on an open mesh; the
1378
- * ceremony still produces the real gate, epoch, and registration the serve rails run on). */
1205
+ /** {@link BrokerTransport.withOpenServeConnection}. */
1379
1206
  private withOpenServeConnection;
1380
- /** Parent-local inventory read. It does not enter maintenance or change admission. */
1381
- hostedSeatCount(): number;
1382
- /** Public local-seat facts for the owning machine daemon. No mesh or secret reads. */
1383
- hostedAgents(): {
1384
- name: string;
1385
- application: string;
1386
- model?: string;
1387
- cwd: string;
1388
- startedAt: string;
1389
- state: "running" | "exited";
1390
- }[];
1391
- /** The served manager-level health summary. Given an owner, `agentCount` counts only that owner's
1392
- * seats, as `ps` lists them ({@link psOwnerFilter}), so a person reading a shared Manager does not
1393
- * learn how many seats other owners hold on it. */
1207
+ /** {@link StatusAndModels.hostedSeatCount}. */
1208
+ hostedSeatCount(...args: Parameters<StatusAndModels["hostedSeatCount"]>): ReturnType<StatusAndModels["hostedSeatCount"]>;
1209
+ /** {@link StatusAndModels.hostedAgents}. */
1210
+ hostedAgents(...args: Parameters<StatusAndModels["hostedAgents"]>): ReturnType<StatusAndModels["hostedAgents"]>;
1211
+ /** {@link StatusAndModels.managerStatusData}. */
1394
1212
  private managerStatusData;
1395
1213
  private staticReconciliationStatus;
1396
1214
  /** Complete a crashed predecessor's FROZEN registration gate before this incarnation starts a
@@ -1422,35 +1240,11 @@ export declare class Manager {
1422
1240
  private emitGoalProgress;
1423
1241
  /** {@link GoalWriter.assertGoalWriterEpochCurrent}. */
1424
1242
  private assertGoalWriterEpochCurrent;
1425
- /** A spawn's refusal reaches only its caller's terminal, so the manager also writes one line for it
1426
- * to its own log, naming the request ID the caller printed, the persona and the reason. */
1243
+ /** {@link SpawnGoal.loggedSpawnRefusal}. */
1427
1244
  private loggedSpawnRefusal;
1428
- /** Serve `spawn`/`launch` as an ACTION. Authz already ran in {@link serveGated}. The
1429
- * accept path runs INLINE on the handler ({@link startAgent} with hooks): the goal binds + the
1430
- * acceptance replies the moment the identity is minted, BEFORE any provision, or on the
1431
- * hosted enrollment arm once the host has enrolled the agent; progress and the terminal are driven
1432
- * OFF-handler, so the ~30s readiness wait no longer blocks the reply.
1433
- * Returns the acceptance floor payload {name, owner, actor, uid, goalId, fingerprint, executor}
1434
- * (the ALLOCATED identity). goalId = the request id (env.id). */
1245
+ /** {@link SpawnGoal.serveSpawnGoal}. */
1435
1246
  private serveSpawnGoal;
1436
- /** H2: an acceptance served from a WINNER'S durable acceptance floor (the goal-index entry it
1437
- * wrote before its own ack). Refuses `unavailable` rather than inventing one — see
1438
- * {@link cachedSpawnAcceptance} for why an empty identity is never an acceptable answer. */
1439
- private acceptanceFromIndex;
1440
- /** Reconstruct a cached acceptance for a same-goalId retry NOT in the live map (a prior incarnation
1441
- * accepted it, or a concurrent winner whose map write this reader has not yet observed).
1442
- *
1443
- * H2 — WHY THIS PREFERS THE INDEX OVER THE TERMINAL. It used to read only the committed terminal
1444
- * and fall back to `{name:"", actor:"", uid:""}` when there was none. That is the common case,
1445
- * not a corner: a client retry over ANYCAST reaches a sibling while the winner is still
1446
- * provisioning, so no terminal exists yet, and the caller was handed an ACCEPTED reply naming an
1447
- * empty agent it can never address. The acceptance floor in the goal index exists from the moment
1448
- * of acceptance, so it answers precisely the window the terminal cannot. Where neither is
1449
- * readable the honest answer is a REFUSAL: an accepted goal whose identity nobody can name is
1450
- * `unavailable` while it runs and its cached outcome once it has ended, never a hollow success. */
1451
- private cachedSpawnAcceptance;
1452
- /** Drop a goal's acceptance {@link goalAcceptanceRetentionMs} after its terminal committed. A
1453
- * retry after that reads the terminal, so only a goal that has one may be passed here. */
1247
+ /** {@link SpawnGoal.expireGoalAcceptance}. */
1454
1248
  private expireGoalAcceptance;
1455
1249
  /** Accept one `turn` goal against a live managed seat. Mirrors {@link serveSpawnGoal}'s accept
1456
1250
  * path (idempotent retry map, index-CAS-before-bind, create-only bindGoal) but runs it INLINE:
@@ -1571,109 +1365,31 @@ export declare class Manager {
1571
1365
  private reconcileStaticLifecycles;
1572
1366
  /** {@link SeatStop.lifecycleMembershipRefusal}. */
1573
1367
  private lifecycleMembershipRefusal;
1574
- /** Open a short-lived PROVISIONER connection, run the onboarding ops on it, and drain it (closure (ii),
1575
- * residual 2). The DM/DLV consumer-create surface — the irreducible onboarding power — lives only for
1576
- * this window, never as a standing grant on the long-lived supervisor. A provision-only endpoint
1577
- * (no presence/consume/channel-watch) connected with memory-only `provisioner` creds; it sets its own
1578
- * `inboxPrefix` so JS-API replies land on the `_INBOX_<id>.>` the provisioner cred subscribes. */
1368
+ /** {@link BrokerTransport.withProvisioner}. */
1579
1369
  private withProvisioner;
1580
- /** A connection holding this instance's transfer reader grants (docs/design/resume-transfer.md
1581
- * section 6) for this one receive or sweep: minted from the space's signing seed, or issued by the
1582
- * host to a remote manager. An open mesh enforces no grants, so a bare one-shot connection is that
1583
- * reader there. */
1370
+ /** {@link BrokerTransport.withTransferReader}. */
1584
1371
  private withTransferReader;
1585
1372
  /** {@link SeatStop.opPurge}. */
1586
1373
  private opPurge;
1587
- /** Persist a peer-defined persona as config. After this, `start name` auto-discovers
1588
- * .cotal/agents/<name>.md and the connector applies its persona/model at spawn.
1589
- *
1590
- * CONTENT vs POLICY: `owner` has no slot, so a peer cannot claim ownership, and the
1591
- * capabilities the written persona carries, a saved list a redefine keeps included, are bounded
1592
- * against the definer before the write, so a peer can put only what it holds into a persona that
1593
- * a wider spawner might later launch. Channel grants, role, and agent are content: they may
1594
- * arrive as explicit arguments or as a leading frontmatter block inside `persona`. A prompt
1595
- * that starts with `---` is parsed and merged (explicit args win) so the written file has one
1596
- * frontmatter block; a malformed block is refused by name rather than wrapped. A fresh name is
1597
- * created with the owner {@link personaOwner} records. Redefining an EXISTING file is allowed on
1598
- * the privileged tier only if `file.owner == caller`, else admin is required. Fail-closed: an
1599
- * ownerless file (legacy / operator-written) is admin-only. */
1374
+ /** {@link PersonaCatalog.opDefinePersona}. */
1600
1375
  private opDefinePersona;
1601
- /** Resolve what a persona's definer may put into it, as a check that returns the refusal for
1602
- * capabilities or endpoint commands it does not hold, or `undefined` when it holds them all. The
1603
- * check itself does not yield. An open mesh mints no credential, so nothing is bounded there. A
1604
- * static definer is bounded by its issued evidence, as a spawner is; a user-auth definer by its
1605
- * own ledger row's scope, under the ledger's token rule, with `admin` exempt. A user-auth persona
1606
- * cannot name `endpoints` at all, `[]` included (SPEC 13.15). A hosted manager reads no ledger, so
1607
- * it refuses. A later spawn of the persona is bounded again against its own spawner. */
1608
- private definerGrantRefusal;
1609
- /** Remove one machine-local persona definition without touching any running lifecycle that was
1610
- * launched from it. Removal accepts the catalog's safe filename alphabet without applying the
1611
- * current spawn-name length or user-mode actor rules, so an obsolete invalid-name entry remains
1612
- * repairable. Ownership matches redefine: the recorded owner, or admin for an ownerless file. */
1376
+ /** {@link PersonaCatalog.opRemovePersona}. */
1613
1377
  private opRemovePersona;
1614
- /** The owner a fresh wire-defined persona records. A user-auth caller's principal is stable, and
1615
- * so is one of this manager's own seats for its life. Any other static caller, such as the CLI's
1616
- * operator instrument minted for one call, would leave an owner no later call matches, so it
1617
- * records none and the file is operator-owned, as a local `persona create` writes it. A peer
1618
- * joined with its own credential is such a caller too. */
1378
+ /** {@link PersonaCatalog.personaOwner}. */
1619
1379
  private personaOwner;
1620
- /** Whether this caller may READ a catalog card's details (role/model/description/body). Same
1621
- * ownership rule as redefine: owner == caller, or admin. Ownerless / operator-written files are
1622
- * admin-only. Names of parseable files still appear on the list so a definer can see a taken
1623
- * spawn name; details stay off the wire unless this is true. */
1380
+ /** {@link PersonaCatalog.canReadPersona}. */
1624
1381
  private canReadPersona;
1625
- /** Mesh-side catalog list (#402). Every parseable name is returned so a definer can see a taken
1626
- * spawn name. Role / model / description / owner ride only when the caller could redefine the
1627
- * file (same ownership as `definePersona`); other cards are name-only, so a peer cannot read a
1628
- * prompt it does not own. Unparseable files are omitted for non-admin (no existence leak of a
1629
- * broken card). */
1382
+ /** {@link PersonaCatalog.opListPersonas}. */
1630
1383
  private opListPersonas;
1631
- /** Mesh-side catalog show (#402). Same ownership as list. Unknown, unauthorized, or unparseable
1632
- * names are not-found (no existence or parser-diagnostic leak). The body is included so a peer can
1633
- * inspect a prompt it owns before spawn; policy fields stay off the wire. */
1384
+ /** {@link PersonaCatalog.opShowPersona}. */
1634
1385
  private opShowPersona;
1635
- /** The post-authorization `input` effect (C3): type `text` into the seat's terminal as if a human
1636
- * had. The single call an external UI needs to deliver a harness command (`/compact`, `/clear`,
1637
- * `/model`) without holding a terminal open on the caller's side.
1638
- *
1639
- * Why the runtime HANDLE and not an attach session: a session is a stream (backlog, subscriber
1640
- * set, a lifetime the session plane accounts for and caps). Opening and discarding one per
1641
- * keystroke line would burn a session slot for a write, and would put a capacity refusal in the
1642
- * path of an operation that has no capacity cost. {@link AgentHandle.write} is the one-shot
1643
- * sibling of `interrupt()`, which already writes into the same pty.
1644
- *
1645
- * Three refusals, each for a different reason and each with its own code, so a caller can tell
1646
- * "never going to work" from "not right now":
1647
- * - the name was refilled while authorization awaited: act on the incarnation the caller was
1648
- * authorized for or on nothing at all (the same guard {@link attachAuthorized} carries, for
1649
- * the same reason: a name is a reusable slot and `authorizeNamed` can await a ledger read);
1650
- * - the agent is not running: there is no terminal to type into;
1651
- * - the runtime cannot write (tmux/cmux/orca/herdr attach to an externally-owned process, so
1652
- * they own no input stream for it): `unimplemented`, named by runtime kind. NOT a fallback
1653
- * to an attach session and NOT a silent success - a dropped keystroke would leave the caller
1654
- * believing a command was delivered that never was.
1655
- *
1656
- * `enter` defaults to true: a harness command typed but not submitted has not been delivered.
1657
- * Nothing is echoed back; the caller reads the resulting turns from the event plane. */
1386
+ /** {@link TerminalInput.inputAuthorized}. */
1658
1387
  private inputAuthorized;
1659
- /** The post-authorization attach effect: mint the holder-bound §13.6 offer, redeem it
1660
- * through the ONE session plane (one-use CAS + presenter-equality), and stand up the PTY bridge —
1661
- * atomically. The reply is the SIGNED grant (no ws:// URL, non-bearer, never logged); the caller
1662
- * redeems it over the mesh with a per-session rails-only cred it mints itself. Only streamable
1663
- * backends (pty/host) attach; an external runtime's attach() throws with per-runtime guidance. */
1388
+ /** {@link TerminalInput.attachAuthorized}. */
1664
1389
  private attachAuthorized;
1665
- /** The console's mesh §13.6 session establisher (backing `POST /session/<name>` on the
1666
- * loopback face). Drives THE ONE plane — same establishAttach as the ep `attach` command — with
1667
- * the loopback OPERATOR as holder (same-host trust boundary), then hands the browser everything it
1668
- * needs to open the caller rail over the broker ws listener: the holder-bound grant, a per-session
1669
- * RAILS-ONLY caller cred (static mints from the seed, TTL-bound to the session; an open mesh has no
1670
- * credential system so the browser connects bare), and the ws URL. NO 127.0.0.1 terminal transport
1671
- * — the terminal rides the mesh session. Injected only when a wsPort exists (see the constructor). */
1390
+ /** {@link TerminalInput.establishConsoleSession}. */
1672
1391
  private establishConsoleSession;
1673
- /** Managed agents cross-referenced with live presence (the manager sees the roster).
1674
- *
1675
- * `ownerFilter`: restrict to agents whose spawn-time stored `userOwner` equals it (the ps/status
1676
- * owner-domain bound); undefined = unbounded. {@link NO_OWNER_MATCHES} matches nothing. */
1392
+ /** {@link StatusAndModels.list}. */
1677
1393
  private list;
1678
1394
  }
1679
1395
  //# sourceMappingURL=manager.d.ts.map