Skip to content

v0.151.0

Choose a tag to compare

@davidfarah-dev davidfarah-dev released this 09 Nov 11:50
7df2fa1

Install or update: npm i -g cotal-ai@0.151.0

Restart running Cotal processes and agent sessions to use the new code.

What changed

  • @cotal-ai/core no longer exports the terminal extension kind (TerminalLayout, Tab and Pane), and @cotal-ai/tmux and @cotal-ai/cmux no longer export or register tmuxTerminalProvider and cmuxTerminalProvider, along with the layout code only those providers used.
  • cotal login no longer warns that chat refuses when you have saved a chat name, and a refused chat name now names the remedy the surface you use offers.
  • A migration commit ends pending orphan pauses before recording the migration.
  • Host permission-scoped endpoint discovery inside the auth service with explicit registry opt-in.
  • A plain spawn of a Claude seat whose startup showed no development-channels prompt now says that mesh traffic does not wake the seat while idle: the spawn result carries startupNotice, cotal spawn prints a STARTUP_NOTICE warning, the cotal_spawn result ends with the notice, and cotal ps marks the seat no idle wake.
  • The multi-space delivery host (cotal deliver --spaces) is now the one process on a broker that kicks a live connection.
  • A user-mode spawn or persona definition now refuses a name the bearer exchange cannot serve, before anything is enrolled.
  • A scope reached inside once is now refused with L4028 by its dispatches scope trait, the same row that gives it a request id and the effect ceiling.
  • Adopting a seat whose custodian recorded its child's exit, or whose custodian process is gone, now throws instead of returning a handle that reports the seat running for ever; a seat client rejects a request whose write fails instead of throwing out of the process.
  • A stop sent through control can now name the run it means, so a run that replaced it under the same name is never stopped instead.
  • The tmux runtime creates a session only when tmux says none is reachable.
  • A space created before live eviction gets its missing connection evictor the next time the delivery daemon starts, so a despawned seat's name is released without rotating the system account.
  • Show a failed legacy manager launch's new error line in up, including delivery-version recovery guidance.
  • cotal update no longer treats a supervisor from another install of the same space as custody for this install.
  • The reap census reads manager.ts with the type checker: any value whose type carries reap is a runtime, so an alias, field, return value, awaited promise, conditional, rest copy or destructured binding needs no shape of its own, an untyped value fails closed, and a spread, rest copy or Reflect.*/Object.* call that takes a runtime is a bypass.
  • A manager's default stop records each detachable seat it releases, so the next manager on that workspace adopts the seat or retires its lifecycle once the runtime proves it gone; a released seat that already exited is retired by the stop itself.
Every change in full
  • @cotal-ai/core no longer exports the terminal extension kind (TerminalLayout, Tab and Pane), and @cotal-ai/tmux and @cotal-ai/cmux no longer export or register tmuxTerminalProvider and cmuxTerminalProvider, along with the layout code only those providers used. Nothing in Cotal has resolved the kind since cotal setup became configure-only, while the contract and both providers still named cotal setup as their consumer. Spawned tmux and cmux agents launch as before; the cmux pane launcher keeps its env -i isolation and drops the login-shell and inherited-environment modes that only layout panes used. The upgrading guide lists the imports to remove.

  • cotal login no longer warns that chat refuses when you have saved a chat name, and a refused chat name now names the remedy the surface you use offers. When no handle is recorded and no name is saved, cotal login names both --name and cotal config set name; with a saved name it says chat sessions use it. resolveChatName now requires the caller's own remedy option, so cotal chat still offers --name and the terminal app offers Change your name (ctrl+p). A sign-in with no handle on record now also lists that remedy.

  • A migration commit ends pending orphan pauses before recording the migration.

    MigrateOrphan now includes its journal state, and callers supplying a commitMigration handler must provide endPause beside discharge. Pass the run's MeshHandler and journal entries so removed pending steps can release their timers and wait consumers. Missing cleanup custody or a failed cleanup refuses the commit before it records success. Settled orphans are not ended again.

  • Host permission-scoped endpoint discovery inside the auth service with explicit registry opt-in.

    The builtin auth-service preset accepts --registry; multi-space auth manifests enable it per entry. Embedders supply registryService through the same auth lifecycle. Signing authority stays in auth, reader and serving credentials stay separate, serving renewal uses the native issuance fence, and restart recovery retains the original instance and native gate operation. The registry is disabled by default and stops with its auth plane.

  • A plain spawn of a Claude seat whose startup showed no development-channels prompt now says that mesh traffic does not wake the seat while idle: the spawn result carries startupNotice, cotal spawn prints a STARTUP_NOTICE warning, the cotal_spawn result ends with the notice, and cotal ps marks the seat no idle wake. A connector declares this with idleWakeNeedsConfirmed.

  • The multi-space delivery host (cotal deliver --spaces) is now the one process on a broker that kicks a live connection. When a space on its root retained the system-account signing seed, every lane evicts through the host's kick authority: the lane scans its own account, the host checks each connection against its own complete census of that account, mints a kick-only user that lives five minutes, kicks, and keeps no $SYS connection open between kicks. A lane opens no connection-evictor credential, so a space created before live eviction on a multi-space broker completes its eviction barrier without a system-account rotation, and no per-space process holds the broker-wide KICK. The host says which posture it runs at start. A single-space daemon is unchanged. Core exports the pieces the host uses: KickTarget, kickConnection, accountHoldsConnection, and a kick function the eviction sweep can delegate to.

  • A user-mode spawn or persona definition now refuses a name the bearer exchange cannot serve, before anything is enrolled. The name door applies the exchange's own 64-character actor bound, and auto-numbering stops at that bound instead of appending a suffix that would cross it.

  • A scope reached inside once is now refused with L4028 by its dispatches scope trait, the same row that gives it a request id and the effect ceiling. Before, the refusal named conclave by its literal kind, so a new scope kind that calls the handler would have compiled, run inside once with no refusal, and could have been dispatched again on resume. Shipped behaviour is unchanged: conclave is still the one scope that dispatches.

  • Adopting a seat whose custodian recorded its child's exit, or whose custodian process is gone, now throws instead of returning a handle that reports the seat running for ever; a seat client rejects a request whose write fails instead of throwing out of the process.

  • A stop sent through control can now name the run it means, so a run that replaced it under the same name is never stopped instead. control takes an optional expectedTarget (the row's id and lifecycleUid) that it passes to the manager request, which sends nothing when the name now resolves to another run. ManagedRow now carries the lifecycleUid every manager already reports, and the refusal no longer speaks only of attaching.

  • The tmux runtime creates a session only when tmux says none is reachable. ensureSession used to read every failed has-session as absence, so a query that failed for another reason, such as a moved socket, started a second server beside the one holding the seats. It now treats as absence only tmux's own reports: the session is not on the server, no server is running, or nothing is bound at the socket path tmux would use. A live server whose socket file was moved still shows in the kernel's bind table and makes the spawn refuse with tmux's diagnostic; a never-used path on a fresh host still gets its first server.

  • A space created before live eviction gets its missing connection evictor the next time the delivery daemon starts, so a despawned seat's name is released without rotating the system account. The daemon mints it only on a root that hosts one space and retained its system-account signing seed, beside an observer that same system account signed; anywhere else, a root hosting several spaces included, the heal does nothing and the daemon starts as before. An evictor that is already present is left untouched.

  • Show a failed legacy manager launch's new error line in up, including delivery-version recovery guidance. Reuse the private-log reader with a launch offset and file identity, and exclude ordinary console credential lines. Document current-CLI recovery for legacy pidfile roots.

  • cotal update no longer treats a supervisor from another install of the same space as custody for this install. A supervisor whose command names this install's CLI entry is still read, and a node binary or loader argument does not hide it.

  • The reap census reads manager.ts with the type checker: any value whose type carries reap is a runtime, so an alias, field, return value, awaited promise, conditional, rest copy or destructured binding needs no shape of its own, an untyped value fails closed, and a spread, rest copy or Reflect.*/Object.* call that takes a runtime is a bypass.

  • A manager's default stop records each detachable seat it releases, so the next manager on that workspace adopts the seat or retires its lifecycle once the runtime proves it gone; a released seat that already exited is retired by the stop itself.

What's Changed

  • test(delivery): qualify two stock hosts as standby by @davidfarah2003 in #5941
  • fix(cli): show legacy manager boot failures in up by @davidfarah2003 in #5942
  • test(cli): include the web credential in preset defaults by @davidfarah2003 in #5944
  • fix(tui): answer a direct message only when it went to a session the app opened by @Manas-Kenge in #5946
  • fix(workspace,auth)!: name the remedies each chat surface offers by @Manas-Kenge in #5945
  • fix(tui): stop only the run the human selected by @Manas-Kenge in #5948
  • feat(tui): triage replies and mentions from the inspector by @Manas-Kenge in #5949
  • fix(tmux): read a failed has-session as absence only when nothing listens by @davidfarah2003 in #5950
  • fix(delivery): mint a missing connection evictor only where the rotation would run by @davidfarah2003 in #5952
  • feat(auth): host opt-in endpoint discovery with native custody by @davidfarah2003 in #5951
  • fix(manager): read the reap census from the type checker by @davidfarah2003 in #5953
  • test(delivery): qualify standby renewal and manifest refusals by @davidfarah2003 in #5954
  • fix(manager): record a released seat for the next manager and refuse to adopt a gone seat by @davidfarah2003 in #5955
  • fix(cli): ignore another install's supervisor in the update continuity check by @davidfarah2003 in #5956
  • docs: generate the built-in mesh command catalog by @davidfarah2003 in #5957
  • fix(manager): say when a spawned Claude seat is not woken by mesh traffic by @davidfarah2003 in #5958
  • fix(core): refuse a user-mode name the exchange cannot serve by @davidfarah2003 in #5959
  • fix(lang): refuse a dispatching scope under once by its trait by @davidfarah2003 in #5960
  • fix(runtime): end a dropped pending step's pause when a migration commits by @davidfarah2003 in #5961
  • fix(cli): name the manager record awaitManagerUp read, resolved once by @davidfarah2003 in #5962
  • fix(core)!: remove the terminal extension kind that nothing consumes by @davidfarah2003 in #5964
  • test(runtime): cover migration pause cleanup on real planes by @davidfarah2003 in #5963
  • fix(delivery): kick through the multi-space host's one kick authority by @davidfarah2003 in #5965
  • chore(release): version packages by @davidfarah2003 in #5943

Full Changelog: v0.150.0...v0.151.0