Skip to content

v0.101.7

Choose a tag to compare

@davidfarah-dev davidfarah-dev released this 26 Oct 04:41
18994eb

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

Changes in this release

  • cotal agent-bearer now runs before the rest of the CLI loads. A spawned seat execs it at the spawn preflight, at its first connect, at every bearer renewal and for every manager call, and loading the whole command surface made each run take about 400 ms. It now takes about 60 ms, close to the 50 ms of a bare exchange. It reads none of the CLI's preferences, extensions or config folder. A command line it cannot parse still goes to the full CLI, which refuses it with the command's help as before. The command lives in @cotal-ai/auth/agent-bearer, and @cotal-ai/core/command, @cotal-ai/core/loopback, @cotal-ai/core/subjects and @cotal-ai/workspace/liveness export the parser and checks it uses without loading either package root.
  • A long-lived connection now renews its bearer at a random point between half and four fifths of the
    bearer's lifetime and moves the live connection onto the new one, so the broker no longer closes it
    for an expired bearer. Connections in one process and space renew at least a second apart, so seats
    that started together no longer rebind through the auth callout in the same second. A reconnect
    never presents an expired bearer. While renewal fails, the endpoint retries on a growing, randomized
    wait of up to a minute and reports the failure once. The auth service's own connections renew the
    same way, and its connect-credential reader proves a replacement on a new connection before it
    switches to it, so a renewal no longer denies connects while the reader rebinds.
  • The auth service no longer exits when a native-key issuance cleanup pass fails because the store did
    not answer, as happened when one of its connections reconnected under load. The pass is retried on a
    growing wait and logged once, and the service keeps serving. Evidence that does not parse still
    stops the service.
  • cotal up with an option only the legacy launcher takes, such as --exchange-public-port, starts a stopped root that launcher already started again on that launcher. This applies to a root with no stack journal whose up registered the space with no prepared record, or a user-auth root that holds its user-auth state. Before, such a root was refused UNSUPPORTED as if it were a fresh prepared root ("this root is prepared for a controller-owned stack"), so a hosted user-auth deployment that had run on 0.100 could not start. A fresh prepared root still refuses those options.
  • Allow manager control connections to use the caller’s remaining preparation deadline instead of timing out after two seconds. Preserve cancellation and refuse an expired preparation before opening the connection.
  • cotal up without --user-auth on a stopped root whose space has user-auth state, --open included, now refuses as CONFLICT, exit 2, before anything is written, and the Next line says to add --user-auth. Before, a plain up refused only after it had opened the store and claimed the space, and reported the refusal as "Outcome unconfirmed" (OPERATION_UNKNOWN, exit 3), as did up --open.
  • The auth callout limits connects: 60 a minute per actor and 600 per owner, with a bearer that does
    not verify charged to its client host at 60 a minute. A reconnect loop now settles at one connect a
    second instead of spending the callout, the ledger and the issuance writes of everyone else in the
    space. A limited connect gets a signed RATE_LIMITED retry-after <n>s denial that the auth service
    logs with the actor and owner, and the exchange for a limited actor answers 429 with
    {code: "RATE_LIMITED", retryAfterSeconds, error} and Retry-After. A hosted composition sets
    other limits with startAuthService's connectLimits. The connect-load harness takes
    --connect-limits <actor>,<owner>,<host> for capacity runs.

What's Changed

  • fix(core,auth): renew long-lived connections at a jittered point and retry a transient issuance cleanup by @davidfarah2003 in #4795
  • perf(auth): run cotal agent-bearer before the rest of the CLI loads by @davidfarah2003 in #4797
  • test(cli): expect the bash completion stub main emits in the dry-run cell by @davidfarah2003 in #4798
  • fix(connector-core): respect the manager connection deadline by @davidfarah2003 in #4799
  • fix(auth): limit callout connects per actor, owner and host by @davidfarah2003 in #4800
  • fix(cli): refuse a start without user auth on a user-auth root as a refusal by @davidfarah2003 in #4801
  • fix(cli): keep the legacy launcher for a legacy-only option on a root it started by @davidfarah2003 in #4802
  • chore(release): version packages by @davidfarah2003 in #4796

Full Changelog: v0.101.6...v0.101.7