Skip to content

v0.155.0

Choose a tag to compare

@davidfarah-dev davidfarah-dev released this 10 Nov 10:42
4832773

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

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

What changed

  • On an authenticated mesh a sender now learns which holder took an anycast request and can cancel it while it waits.
  • Daemon service connections now report when a space's account differs from the pinned identity.
  • The machine daemon now reports a malformed IdP timeout setting before it starts.
  • Linux daemon installation now explains how to recover when loginctl is unavailable, including during a dry run.
  • Cancelling daemon sign-in no longer prints command help, and SIGTERM cancels it cleanly.
  • Refreshing daemon spaces continues when an unrelated local registration is damaged.
  • Running daemon setup again now finds agent applications installed after the service was first set up.
  • Linux daemon installation now refuses an existing unrecorded unit path before changing linger or starting a service.
  • Report when space catalogs cannot be refreshed because the daemon has no signed-in provider.
  • Keep pending machine approval visible in the desktop app and disable connection requests for an already connected space.
  • Daemon sign-in and space refresh now identify damaged local caches and explain how to recover.
  • Stop a local stack safely after its Cotal home records are lost.
  • Stop assuming the default space after a project forgets its space or when its control directory is empty.
  • Refuse adding the auth-service preset until its hosting root has prepared user-auth state.
  • Status now leads with recovery when an interrupted backup create or restore holds the store.
  • Report a moved or deleted stack folder instead of an authentication failure when inspecting its space from another folder.
  • Warn when a local stack's broker store has been replaced, before a restart can silently lose retained history.
Every change in full
  • On an authenticated mesh a sender now learns which holder took an anycast request and can cancel it while it waits. A cotal_anycast send names the holders online at send by name and id. Just before a holder's connector shows a role request to its agent, it records its take with the delivery daemon, and the daemon sends the sender a notice naming that holder, with a second notice if the request's ack wait ran out and another holder took it. The Claude Code, Codex, Jcode, OpenCode, Hermes and pi connectors and cotal_inbox take only the requests they show, so a request left for a later read can still be cancelled. When more is waiting than one pi turn holds, pi fits role requests into the turn before channel posts. MeshAgent gains inboxPreview and takeChosen for that, and inboxPending for a notice that counts held requests without showing them; pi's exported InboxSource requires the first two. cotal_anycast with seq reads the request's status, and with seq and cancel: true cancels it while it waits; a cancel of a taken request is refused and names the taker. The daemon keeps one CAS-fenced record per request in a new cotal_anycast_<space> bucket, serves takes on cotal.<space>.take.<role>.<owner>.<actor>, and answers the new anycastStatus and anycastCancel ops on its control service (SPEC §8.1). A take carries the task stream's creation time, and the daemon refuses one from a stream since recreated. Backups exclude the bucket and cotal restore recreates it empty.

    Two credential shapes change. An agent credential gains a take subject for its role and for each role:<r> token it holds, and the delivery credential gains task-stream reads and deletes, the records bucket and a DM publish as itself. Restart the delivery daemon at this version and respawn every seat that holds a role. Until then a holder on the new connector keeps role requests unshown and reports which of the two it needs. A daemon on an older credential keeps serving durable delivery and records no takes. An open mesh is unchanged and refuses status and cancel. docs/UPGRADING.md has the steps.

  • Daemon service connections now report when a space's account differs from the pinned identity.

    service-connect and service-status preserve the ACCOUNT_MISMATCH diagnosis and recovery guidance instead of reporting a generic registration conflict. The daemon leaves its identity and registration request unchanged.

  • The machine daemon now reports a malformed IdP timeout setting before it starts.
    It uses the same timeout validation as direct sign-in, so an invalid
    COTAL_IDP_TIMEOUT_MS no longer appears as a provider refusal during daemon sign-in.
    The setting accepts whole milliseconds from 1 to 2147483647, preventing fractional
    values from failing inside a request and oversized delays from becoming a 1ms timeout.

  • Linux daemon installation now explains how to recover when loginctl is unavailable, including during a dry run.
    The process guide documents the linger read and its prerequisites.

  • Cancelling daemon sign-in no longer prints command help, and SIGTERM cancels it cleanly.
    Both setup sign-in paths use the same cancellation handling as daemon login, including structured output.

  • Refreshing daemon spaces continues when an unrelated local registration is damaged.
    Healthy catalog entries update while the damaged file stays untouched and the listing reports
    the unreadable count with a partial outcome.
    Failure reporting and catalog removal also preserve damaged canonical registrations when a usable
    legacy duplicate exists.

  • Running daemon setup again now finds agent applications installed after the service was first set up. On Linux and macOS, setup keeps existing PATH directories, adds the invoking terminal's directories first, and reloads the recorded service only when no hosted seats are running. The no-connector remedy names applications and asks you to run them in the setup terminal.

  • Linux daemon installation now refuses an existing unrecorded unit path before changing linger or starting a service. Dry runs report the same conflict, and an uninspectable path refuses instead of being treated as absent.

  • Report when space catalogs cannot be refreshed because the daemon has no signed-in provider. The CLI returns AUTH_REQUIRED with a sign-in step while retaining saved spaces, and the desktop prompts for sign-in instead of treating the refresh as complete.

  • Keep pending machine approval visible in the desktop app and disable connection requests for an already connected space. The daemon retains registration outcomes for offline status without replacing an existing live connection.

  • Daemon sign-in and space refresh now identify damaged local caches and explain how to recover.
    Sign-in checks both caches before requesting device approval or saving a replacement session.
    Malformed provider keys and session records receive the same cache recovery guidance.

  • Stop a local stack safely after its Cotal home records are lost.
    The project journal retains launch-time host and process creation pins for a guarded Linux recovery stop, and missing-record diagnostics no longer assume another home holds the records. Keep those pins aligned with instance retirement and replacement, preserve skipped members across startup, and leave a completed stop unchanged when its pinned members are gone.

  • Stop assuming the default space after a project forgets its space or when its control directory is empty. Persona, team, identity and spawn previews now report that no space is selected. Explicit startup can still initialize an empty project.

    Name a nearby Mesh team file and its declared space in the available next steps. Entry help also finds the project-root file from a subdirectory, and unrelated prepared-space inventory no longer hides its actions. Discovery skips non-regular and oversized files and does not launch the team.

  • Refuse adding the auth-service preset until its hosting root has prepared user-auth state.
    The refusal names cotal up --user-auth --idp <url> and saves no definition or instance.

  • Status now leads with recovery when an interrupted backup create or restore holds the store.
    Its Next section and JSON hints use the maintenance journal's recovery step instead of offering
    a restart that would refuse. Ready preserved cuts and committed restores keep their existing advice.

  • Report a moved or deleted stack folder instead of an authentication failure when inspecting its space from another folder.

    Status and space show name the recorded root and the command that stops its stack, including when the broker has recreated directories at the old path.

  • Warn when a local stack's broker store has been replaced, before a restart can silently lose retained history.

    Record the store directory identity at broker startup and compare it in status, shutdown previews, shutdown and startup. Status checks both the current folder and the selected local stack, without duplicate warnings for one root, and reports an unreadable stack journal with its permission repair.

What's Changed

  • docs: name 0.153.1 as the last release without persona endpoints by @davidfarah2003 in #6168
  • fix(cli): refuse the auth-service preset until its hosting root is prepared by @davidfarah2003 in #6169
  • fix(cli): recover stopped and running stacks after home record loss by @davidfarah2003 in #6165
  • fix(cli): preserve daemon account mismatch diagnosis by @davidfarah2003 in #6171
  • fix(daemon): refuse unsigned-in catalog refresh by @davidfarah2003 in #6172
  • fix(cli): diagnose moved stack roots from other folders by @davidfarah2003 in #6146
  • fix(cli): prioritize held backup recovery in status by @davidfarah2003 in #6154
  • fix(daemon): handle sign-in cancellation without usage help by @davidfarah2003 in #6175
  • fix(auth): validate daemon IdP timeout before startup by @davidfarah2003 in #6176
  • fix(cli): explain unavailable loginctl during daemon planning by @davidfarah2003 in #6178
  • fix(cli): warn when a local stack broker store is replaced by @davidfarah2003 in #6174
  • feat!: report who took an anycast request and let its sender cancel it by @davidfarah2003 in #6181
  • docs(desktop): include registration in terminal workflow by @davidfarah2003 in #6185
  • fix(cli): name team files without assuming a forgotten space by @davidfarah2003 in #6179
  • fix(auth): refuse damaged daemon caches before sign-in by @davidfarah2003 in #6177
  • fix(cli): refresh healthy spaces beside damaged registrations by @davidfarah2003 in #6186
  • fix(daemon): refresh the service PATH so setup finds applications installed later by @davidfarah2003 in #6187
  • fix(desktop): preserve connection state across polling and actions by @davidfarah2003 in #6188
  • fix(daemon): refuse unrecorded Linux unit paths before install by @davidfarah2003 in #6189
  • chore(release): version packages by @davidfarah2003 in #6170

Full Changelog: v0.154.0...v0.155.0