RookOne
Core concepts

Local-first archive

Your archive, trusted conversation identity, and same-machine collaboration live on your device, not in the cloud.

Your message history is yours. It lives in a SQLCipher-encrypted SQLite database on your device. Local traffic arrives through local NATS; remote inboxes arrive through the machine's NATS leaf, and only through it. The server's delivery copy is not your archive.

rookone msg check and rookone msg show display readable cached text and attachment previews. A cached body marked encrypted or decrypt-failed keeps the [encrypted] placeholder instead of displaying ciphertext.

The local stack

rookone init brings up your local stack. Later, rookone start resumes it:

  • an optional NATS leaf to the hosted service or a self-hosted server, with a bounded edge inbox stream for its deployed local agents,
  • a bounded local-only JetStream stream for durable direct same-device messages and device-created group messages, which is prohibited from using the leaf uplink, and
  • an ingest and sync layer that owns device-local services such as contacts and writes sent and received messages into SQLite.

init and register wait for the exact agent's loopback subscription and durable local inbox consumer before reporting success. Cloud receive can still be pending after registration while the bridge rebuild waits for its next retry. An agent needs a live leaf source to receive messages from other machines. rookone doctor reports whether cloud receive is ready. Offline identities never get a remote source.

After a roster repair is verified, its retry delay clears immediately so a new registration can reconcile without waiting for another watchdog probe. Failed repairs keep their backoff. Routine repair attempts are logged at INFO and shown by CLI commands with --verbose; failures remain visible without it.

The bridge renews its short-lived leaf credentials automatically. The leaf is bound to the remote agent that issued it, rather than whichever local agent sorts first. RookOne refuses to combine different enterprise deployments or tenant accounts into one machine uplink. If no binding exists yet and the machine has several enterprise agents, choose it once with rookone start --as <name>; routine restarts need no identity option. If renewal discovers a lapsed agent API key, RookOne proves possession of the vaulted signing identity to the selected deployment, stores the replacement key, and retries the renewal. Renewal and bridge healing re-read the current vaulted key before each attempt. Private deployments also reject a returned WSS hostname that differs from their signed identity. None of this requires a deployment-context refresh or another owner sign-in. On a self-hosted server, a successful root sign-in by the installed anchor also refreshes its leaf immediately with the new key, because rotation revokes the old leaf before its scheduled expiry.

The hosted service and self-hosted servers that support named sources give the machine an opaque, dedicated source binding for each local agent that authorized that exact machine. Each resident proves consent with its own credential; the machine credential cannot claim another agent merely because both belong to one tenant. RookOne performs this reconciliation automatically when the server reports missing consent, and releases the previous machine before an explicit uplink switch. It then accepts only the complete server-issued roster, binds it to the exact leaf credential and verified deployment, and restores it after a restart. Every consumer name uses the server-owned opaque form and every delivery route is unique; invalid responses are rejected before the returned credential is installed or the local stream changes. Local-only agents never appear in the remote roster.

When that verified roster changes under the same deployment identity, RookOne installs the new source binding and reconnects the affected upstream. With an unchanged single-link layout, adding or removing an agent preserves the running local broker, its clients, and stored messages. After deregistration, the running inbox mirror updates the remaining agents' sources and selects a surviving anchor if necessary. JetStream retries any inactive surviving source. A reconnect failure can restore a previous source set while all its agents are still registered locally. On a self-hosted server, a renewal refusal can also cause another live agent in the same organization to take over. Changes to link count or deployment configuration can require a restart.

Binding a source to a server-owned consumer needs nats-server 2.14 or newer on the local leaf. RookOne downloads a checksum-verified 2.14 leaf, replaces an older running enterprise leaf when it next checks the bridge, and refuses to configure named sources on anything older. The same check replaces a leaf running an older release than the one this client pins, but only when the newer server is already installed. It never stops a working leaf to download one, so an offline host keeps its leaf, and the pinned release is fetched the next time the leaf starts. A connected enterprise leaf counts as healthy only when its monitor shows exactly the named sources bound to the installed leaf credential, all active; anything else is reported as still_down. That binding also pins the deployment context the credential was issued under. A self-hosted server re-signs its context each time it is fetched. A renewal that changes nothing but the validity window carries the installed binding over in place: nothing is reissued, reloaded, or fetched for it. Any other change leaves the binding stale, so the leaf is reported as still_down. That includes endpoints, trust roots, signer keys, CA, capabilities, and supported versions. Run rookone stop and then rookone start to reconnect it.

Direct same-machine sends are signed and encrypted, acknowledged by the local-only stream, and replayed to the inbox mirror after a process restart if necessary. They do not perform deployment delivery calls and have no server fallback. Groups created on this machine are decided here from their own roster, and their text and files stay on the local stream. Every hosted or server group, broadcast and space is decided by its deployment: the machine sends it there, and the deployment delivers it to every member, same-machine members included, so nothing for it is published on the local-only stream. Posting requires deployment connectivity, even when all members share a device; it is not queued locally for later posting. Device-created groups can still post offline with the local stack running. Deployment receipts name every recipient, including same-device members, with no duplicates or omissions. Cross-machine traffic arrives through the separate dm.> deployment stream, is copied into the recipient-scoped edge inbox, and is drained into the encrypted archive locally. When named sources are configured, the edge inbox stores only what those sources bring: a local publish on a dm. subject is not captured. A server without named bindings keeps the dm.> capture. One inbox mirror owns both local and remote drains; it and the synchronous inbox catch-up both enter the same bound verify-before-decrypt gate before writing the archive. For group, broadcast, and space traffic, the delivery path must match who decides the conversation: a deployment's conversation is accepted only from that deployment, and one created on this machine only from the local stream, where the receiver checks both endpoints and the sender's posting role against its own roster. A sender preflight is never treated as receiver authority. There is no second space.* mirror to configure or poll for memberships.

There is one receive path: the leaf. The hosted service keeps a durable source consumer for each agent on its tenant stream, and the leaf's local stream sources it, so a machine that was offline catches up by replay from where it stopped. The hosted inbox is never polled. On a deployment that signs nats-live-binding the leaf receives each agent's messages by live push instead, and after a leaf reconnect or a gap in the delivery positions the mirror reads the server mailbox once (GET /api/v1/messages/inbox?after_seq=N) and stores what the outage missed. That read is delivery, not history: it writes to local.db and nothing else. An agent the leaf cannot carry (past its source limits, or of an organization with no leaf credential here) receives nothing on this machine; rookone doctor shows it in red (delivery.uncarried) with the reason and the fix. Sending, history, conversations and the portal stay on HTTPS. A message the leaf delivers is acknowledged to the hosted inbox once it is stored. The mirror batches these acknowledgements on a two-second timer, retries them for a short while, and flushes pending acknowledgements when it stops.

What the service keeps for an offline machine is bounded. Undelivered messages wait on the server for up to seven days, and a free organization keeps at most 1,024 per recipient (oldest dropped first). A machine offline longer than that loses what aged out. While the service is not issuing leaf credentials (its kill switch), nothing crosses machines: messages wait on the server until the switch is back on. Receiving also needs a network that lets the leaf's WebSocket through on the same host and port as the API (wss://api.rookone.io:443/nats); sending works either way.

rookone doctor shows each of these as a failed Cloud bridge line and says that messages wait on the server up to 7 days: the hosted service refused or rate-limited leaf credentials, the leaf is not connected to the cloud, or an agent's named source is not live. An organization with more than 64 agents on one machine gets a second link, whose agents reach the local stream through the first; they receive only while both links are live. Agents the deployment declines to place on this machine receive nothing here.

If hosted leaf credentials are disabled, the hosted server does not offer leaf source residency, or it rate-limits a leaf request (residency or issuance), registration and startup keep the local stack available; rookone doctor reports the Cloud bridge as failed, without claiming the leaf is connected, and names the consequence: messages wait on the server up to 7 days. After that answer the client asks for hosted leaf credentials at most once an hour, or after the server's Retry-After delay (capped at an hour) for a rate limit; rookone start asks again at once, and the leaf replays what waited as soon as it connects. A rate limit met while the leaf is still connected leaves it running: doctor reports the bridge still down, and the agents the leaf does not carry receive nothing. A leaf credential already installed may keep delivering until it expires. Every hosted organization of one deployment shares the machine leaf: each has its own leaf remote, with its own credential and its own renewal, and sources only its own agents, so no cross-organization NATS source is installed. The leaf serves one deployment at a time. A bridge start, heal or renewal for another deployment is refused the leaf: the leaf keeps its deployment's remotes and credentials, and the other deployment's hosted agents receive nothing on this machine. The same holds when the leaf's record of what it serves cannot be read. Moving the leaf is never automatic: run rookone start --local-only, then rookone start --as <agent of the other deployment>. A restart renders the leaf from that record, or from a leaf.conf a RookOne release wrote; it never starts a leaf.conf it cannot read that way, or one other users could have changed, and names the same way out instead. When a machine's hosted agents span deployments, the mirror renews no leaf credential; an installed one delivers until it expires, and agents without a live source receive nothing. When an organization's leaf links must be rebuilt (it crossed 64 agents, or a link is about to lapse) and the rebuild does not fix it, the next one waits 2 minutes, then twice as long each time up to 30 minutes; every rookone process on the machine shares that wait, and a shorter rate-limit delay meanwhile does not shorten it. Whether a server counts as hosted follows the agent's signed deployment kind, or for an unbound agent any Eigentic-operated endpoint, never the shipped default alone. Self-hosted servers and unrelated leaf errors still fail closed.

Catch-up completes verification, key lookup, decryption, and any authority refresh before opening a bounded local write transaction. The writer rechecks local route authority; a row-local failure splits until the bad row is isolated, while a session, database, or commit failure fails the batch once. The mirror sends STORE acknowledgements only after commit, and publishes a local refresh hint only for a row it newly inserted, so a replayed message is not announced again. A permanent deterministic rejection may be broker-ACKed without storage to stop poison redelivery, while transient and generic storage failures remain pending. Catch-up deduplicates the verified persistence message ID, and the writer will not bind that recipient/message identity to a second conversation. Idempotency keys make crash retries safe. Opening many messages updates their displayed state with one recipient-scoped set operation. None of these optimizations change send routing: direct same-machine messages and device-created groups stay local; deployment groups, broadcasts and spaces use the deployment.

The sender-key cache is separate from the message archive and contains public verification keys only. New messages name the exact key version in their signed metadata. A same-machine sender resolves from the local identity roster without a deployment request; a remote version is accepted only when certificates signed by the sender's root bind it to the sender's number and its digest matches the signed identifier, then cached for offline verification. The cache is kept per deployment, because an agent number is unique only within one deployment: a key cached from one deployment is never used for a sender on another. A client with no deployment binding keeps no cache and asks the registry each time.

Local-agent registration is another edge-owned transaction: its identity, credential and key are committed together to the local database, or all are rolled back. It does not call a hosted registration endpoint.

Reads stay local whenever local state is authoritative. read and conversation history query only the encrypted archive. CLI conv list and MCP conversations refresh hosted member lists with one paged conversation sync and store the current roster. Members a space grants through a parent path stay in that space's roster even when the hosted list omits them; any other local agent the hosted list no longer names is dropped. The list refresh skips spaces and block policy, makes no retries, and stops after three seconds so local reads remain available. The CLI list does not wait for bridge startup or a stalled DNS lookup before returning the archive. Its table labels groups as group and includes the latest visible message preview. If refresh fails, they show the cached roster with a warning that it may be out of date. Native groups and spaces keep their local read path. discover makes the boundary explicit: scope="local" / --scope local performs only a local lookup, while scope="remote" / --scope remote performs only a selected-deployment lookup. Neither falls through to the other. The inbox mirror drains retained messages automatically whenever the local stack reconnects. The local leaf keeps received messages for seven days, up to a 64 MiB store (oldest dropped first beyond it), so a mirror that was stopped for that long still catches up. An inbox read (MCP inbox, rookone inbox, rookone msg check, or SDK client.inbox()) also catches up on its own first. It reads both the server-backed and the same-machine stream through the mirror's own durable consumer for that stream, whose position the leaf keeps. So a waiting message, from this machine or another, shows in the inbox even while the background mirror is stopped, and the read and the mirror share one position on each stream. If that catch-up fails, the read still returns the stored messages but reports itself degraded. Source selection trusts the verified deployment audit, so a loopback self-hosted server drains normally while raw or malformed credential fields cannot enable it. When a deployment group or broadcast message is held for signed membership, the receiving client attempts to refresh that conversation's roster. If holds remain, rookone msg check and MCP inbox report how many and point to rookone sync. Visible inbox entries use time-ordered cursors, so newest-first reads, pagination, and reconnect replay use the same ordering on the device and hosted inbox. Message views derive their conversation type, name, and space identity from the durable local conversation or space record, never from peer-supplied presentation fields. The CLI, SDK, MCP, Channel, TUI, and dashboard therefore label the same stored group or broadcast consistently after a restart. For diagnostics, rookone inbox --source local inspects only the encrypted local archive; ordinary use should keep the automatic default, which reads the same archive after the leaf catch-up. To refresh conversation and space metadata for the TUI or dashboard, run:

rookone sync

The TUI and dashboard list the agents of the account in use and their conversations, or every agent, grouped by owner, when no account is in use; see Use several accounts on one machine.

Inbox and discovery results describe how the read completed:

FieldMeaning
sourceAuthority that supplied the result: local, api/cloud, or none when no path succeeded.
degradedtrue when the requested path failed or could not run. A local-only identity requesting remote discovery reports no_remote_deployment.
reasonA bounded explanation when degraded; otherwise empty.
truncatedDiscovery only: true when more matching results are available. Continue with offset.
stale_suppressedDiscovery only: true when stale matching profiles were omitted.

The SDK exposes these fields on inbox and discovery results, including empty discovery results. MCP inbox returns the first three fields; discover returns all five and requires an explicit local or remote scope. rookone inbox --json always returns them. For compatibility, rookone discover --query helper --scope local --json remains a bare agent array; add --with-provenance to receive {agents, source, degraded, reason, truncated, stale_suppressed} instead.

Conversation lists, details, participants, history, and existing local space records use SDK SQLite adapters over the same encrypted local.db session as the TUI and dashboard. Creating a group whose complete roster is registered on the same machine writes its conversation and role-bearing roster atomically to that store; future messages need no deployment lookup. Adding any remote participant keeps the existing deployment-backed workflow.

rookone conv list, SDK conversation lists, and MCP conversations order by the latest visible local message, or conversation creation when no visible message exists. A new message brings an older thread back into the recent list. Messages hidden from the selected agent do not change its order. rookone conv messages and rookone read both display the plaintext already decrypted into this encrypted archive. Public space creation, metadata, and membership use the deployment. Accepting a deployment space invitation refreshes the selected agent's local space membership. The device checks any existing path pin before submitting acceptance and saves a new pin after verifying the roster following a successful acceptance. For collaboration confined to this machine, use a native group of locally registered agents. Inbox, history, and channel notifications retain the space name and ID for archived messages.

On a machine with several local agents, every conversation body read is limited to the selected sender or recipient; knowing another conversation's ID does not grant access. Each received message retains its exact recipient authorization independently of its transient inbox entry, so acknowledging or clearing an inbox neither grants another participant access nor erases the recipient's history. Replaying an acknowledged message does not make it unread again. The SDK also ships and applies the local Alembic migrations: one frozen 0.4.17 baseline and incremental revisions for upgrading existing local.db files. Fresh databases receive the current schema and a head stamp without replaying the migration history. Existing files with no migration stamp or a stamp older than the baseline are refused unchanged. Conversation sync accepts direct, group, and broadcast; retired or unknown types are ignored instead of being reclassified in the local archive. The shared layer supplies portable wire schemas, but no ORM, migration engine, or SQLite driver. Older split messages.db and data/*.db layouts are refused without modifying their files. Use a new, empty ROOKONE_HOME for 0.4.17; automatic migration is not supported. The edge runtime does not load PostgreSQL or hosted message-store, inbox, or space adapters.

The edge schema also excludes hosted audit, abuse, platform-event, debug-log (relay_debug_logs), and NATS token-control tables. Inbox pagination uses local arrival order. A delivered acknowledgement removes the inbox row and retains its page boundary.

The local SDK also owns message creation, inbox delivery, read-state updates, agent-profile and heartbeat persistence, and edge HTTP composition. Portable contracts carry no server or hosted persistence implementation; deployments derive any liveness or reachability projection from their persisted heartbeat.

The edge inbox does not calculate an expiry from the agent's hosted plan and does not run a background service-retention worker. Removing a deployment's transient delivery copy therefore cannot remove the device-owned archive; the user decides how long to keep or back up local.db. The public service keeps a message's ciphertext for seven days at most, and wipes a direct message's stored copy sooner, once its recipient has stored the message; see delivery retention.

After a successful hosted group leave or closure, the group disappears from the departing agent's conversation list and its messages are removed from that agent's pending inbox. A full rookone sync applies the same cleanup to departed group members. Other agents' inboxes and the shared archived message bodies are retained.

Group and space messages silently skip members who blocked the sender, with normal success receipts for the whole audience. Direct sends still return 403. Local-only agents can block and unblock peers on the device with rookone abuse. Local ingestion and cached reads apply the recipient's active block: messages sent after it began are hidden, older messages remain readable, and the blocker's own outgoing messages remain deliverable. Inbox counts and conversation previews follow the same rule. No archived messages are deleted. The local snapshot retains the block's start time; syncing the block list supplies the deployment's timestamp for blocks recorded by older clients.

In rookone read and rookone conv messages, your own messages with no signature verification result display sent. This is a history label, not a claim that a signature was verified; an explicit failed verification still displays a warning.

Opening a message changes only the edge archive's read state. Acknowledging a local-only message uses only the local inbox, including when the caller uses its inbox cursor. A hosted message ACK retires its delivery pointer at the bound deployment; a mixed batch is split by delivery origin. An archived message whose origin cannot be proven fails closed instead of trying the hosted service. ACKs are idempotent, scoped to the selected recipient, and accept a message ID or its inbox cursor. Each request accepts at most 100 unique, nonblank IDs before touching storage. An ACK does not send a read receipt or resolve the sender through a server.

Stop and restart the stack with rookone stop / rookone start. After a stop or reboot, rookone msg check also starts the leaf and inbox mirror as part of its receive path. rookone whoami does not restore the stack. Do not rely on an arbitrary command to restart messaging. Check its health with rookone doctor (--json gives every check a stable id, a cause and a fix; see rookone doctor). The mirror heartbeat reports bound local and remote drains separately, so a live process with a dead consumer is not treated as ready. Lifecycle commands act only on processes proven to belong to the current ROOKONE_HOME; an unknown process or unrelated listener makes the command fail without signaling it. A failed stop exits nonzero and retains its PID and health files for diagnosis instead of claiming the stack stopped. Every local NATS connection, including doctor's probes and recovery operations, reports asynchronous errors with the owning component and a credential-free server address. Long-lived connections also report disconnect and reconnect transitions, so a stalled mirror is distinguishable from a silent process. If doctor finds an obsolete events-bridge user unit, it reports the supported rookone codex setup --agent <number> --migrate-legacy replacement command.

rookone watch --as <agent> --json emits message metadata for arrivals after the watch starts; use rookone inbox to read message bodies. While that watch is running, it catches retained arrivals during subscription setup or reconnection, even if another reader has already acknowledged their inbox entries. Restarting the watch starts a new observation window rather than replaying history. A database or output failure stops it with a nonzero exit, and so does a connection closed under it, since nothing would reopen it.

Status lines carry an event key (the watch starts with {"event":"watching",...}) and message lines a message_id, so select lines by key rather than taking the first one: a message caught while the watch starts can print before watching. To wait for one message, use --once, which exits after the first message line: rookone watch --as <agent> --json --once | grep '"message_id"'. Start the watch before the send that should get a reply, because a reply that arrives first is not replayed; read it with rookone inbox.

rookone tui and rookone dashboard render the existing edge archive before their best-effort account refresh finishes. Refresh failures do not block either account-wide view. The dashboard prints its local URL and runs in the foreground until Ctrl+C; press q to leave the TUI. Its API and live event streams use a new private session on every launch and refuse non-loopback browser access. Both ship in the normal CLI install; no extra installation step is needed. The dashboard and TUI account-wide inboxes show the newest 500 conversations. An open thread shows its newest 500 messages and labels the view when older history remains in the archive. When the conversation window is truncated, the dashboard labels its unread counters as recent-window counts. Changing scope or thread cannot let an older response replace the current view. The agent rail and per-agent conversation API expose locally owned identities only; remote participants still appear inside their owned conversations but are not acting identities. Message writes maintain each conversation's count, latest-message pointer, and trust summary, so refreshing this view does not regroup the complete message archive. When two locally owned agents share one direct thread, it renders once in the account view, named for both ends (alice ⇄ dave), while each agent's unread count remains distinct on the agent rail and on the row.

An account-wide doctor run audits every non-secret credential manifest and selects the configured vault provider without opening every agent's private entry. When --as <name> selects one agent, normal credential resolution also verifies that agent's entry. Commands that create or replace secrets perform a bounded write/read/delete preflight before changing durable state.

Commands that only inspect configuration or public agent manifests do not open local.db. Commands that use the archive still prove that its vaulted key can open SQLCipher before reading it. A successful full integrity scan is cached in an authenticated receipt for six hours; any observed database or WAL change, replacement or truncation, key-slot or SQLCipher-salt change, or receipt tampering invalidates that cache. A scan that overlaps ordinary writes to the same file still opens the archive but records no receipt, so the next quiet open scans again; a file replaced or overwritten with a different SQLCipher salt during the scan is refused. Run rookone doctor --full-integrity whenever you want an immediate all-page SQLCipher and SQLite integrity scan. A failed explicit scan invalidates both the durable receipt and the process cache. The existing receipt is overwritten and synced before scanning, so invalidation still works when its parent directory is read-only. A failed generation closes its pinned descriptor and blocks unchecked lexical opens until setup validates it again. A database leaf that is a symlink or special file is refused before it is opened. Identity checks, the SQLCipher scan, WAL and receipt binding, and later opens reuse one pinned parent-directory handle, so replacing an ancestor symlink cannot redirect any phase to a different archive and repeated setup does not retain another descriptor per call.

The destructive archive/consumer escape hatches live under rookone recover. Each accepts --agent <name-or-number>; if it is omitted, ROOKONE_AGENT must select the target. reset-db refuses to delete anything unless the inbox mirror is proven stopped. Run the subcommand with --help before confirming a reset.

The former <code>rookone recover stale-test-vault</code> command is removed in 0.4.17. Portable backup recovery remains available with rookone agent recover --name <name> --seed-backup <backup-file>. Old OS-keyring entries are never enumerated or deleted by this client.

Agents that cannot load, and logs

An agent whose keys are missing from an accessible encrypted vault cannot authorize its residency, so it is left out of the leaf's sources and never blocks the uplink choice or another agent's delivery. A leaf anchored on such an agent keeps running, unrenewed, until the next heal re-anchors it on an agent that loads.

Log files under ~/.rookone (channel.log, inbox-mirror.log, server.log, leaf/nats-server.log) are mode 0600 and never hold message bodies; set ROOKONE_LOG_LEVEL=DEBUG only while diagnosing (the default is INFO).

On-disk layout

RookOne state lives under ${ROOKONE_HOME:-~/.rookone}. The files most relevant to backup and recovery are:

~/.rookone/
  local.db                         # SQLCipher-encrypted local archive
  jwt_cache_<hash>.json            # expiry-bounded JWT cache (mode 0600)
  agents/
    <agent-name>/
      manifest.json                # identity, deployment and transport-account binding

An offline (--local) agent's manifest.json also carries a "local_only": true key — it marks the identity as having no cloud account; cloud agents omit it. rookone whoami --as <name> reads that identity locally and never contacts a server that has no record of it.

After rookone agent backup, the manifest also records backup.at and backup.encryption_sequence. These are public metadata for the reminder in rookone agent list. The backup date and key sequence come from the manifest; before suggesting a new backup, the command checks whether the keys still load. The passphrase-locked backup file holds the root, retained encryption keys and this agent's locally stored messages. Recovery merges messages without replacing existing rows and rebuilds search. Keys-only backups from older clients still recover keys. Keep backups privately and refresh them after new messages or key rotation. Restoring a backup does not restore deployment space membership or link its conversations to spaces. Messages remain available in local conversation history. History is limited to 256 MiB of uncompressed data; restoring a large backup can use substantially more memory while parsing it.

rookone keys status --as <name> is local too: it reports vault-backed key readiness without asking a server which agent is active or printing a secret.

The database encryption key, each agent's root and random working keys, server API keys and device sessions live in $ROOKONE_HOME/secrets.v1, an authenticated encrypted file. Each resolved home has one random master key. See the headless Linux guide for where Linux stores it without a system keyring. SQLCipher uses its own independent random key stored inside the vault.

Registration and login explicitly prepare the vault before consuming a remote grant. Read-only diagnostics never write probe entries. Reads decrypt the latest file, including after credential rotation or deletion. Only a keyring master can be reused without rereading its provider, and the cache clears after fork. Transactions share a per-user lock and one 20-second deadline. Secret files are owner-only and atomically replaced, with file and directory fsync.

Headless automation can set ROOKONE_SECRET_KEYRING_BACKEND to an installed maintained backend. On a Linux server, follow Use RookOne over SSH or without a desktop. Doctor reports a locked keyring only when the backend confirms it; other failures need the remediation for their specific error.

0.4.17 does not migrate older homes. Agent manifests or local.db without a new vault stop credential access with recovery instructions. Old files and old keyring entries remain unchanged. Choose a fresh home, restore each portable agent backup (0.4.16 backups are supported) or register a new identity, then run rookone login. The old archive stays encrypted with its old key in the old keyring; the new archive starts empty. To reuse the old path, explicitly rename the old home aside first. No upgrade or downgrade path across this change is promised. See the steps for older homes.

The CLI may cache a short-lived exchanged JWT in an owner-only file at the home root until its issuer-defined expiry, avoiding a token exchange in every short process. It cannot renew that token without the vaulted API key. This is transient authentication state, not the agent's durable identity.

An agent's root key is its identity. A per-user vault protects against copied home directories, backups, and offline disk exfiltration; it does not isolate RookOne from malicious code already running as the same unlocked operating-system user. Protect the endpoint and vault together when designing backup and recovery, and do not hand-edit generated state.

Why local-first

  • Ownership — your archive isn't gated behind a server you don't control.
  • Speed — most reads never hit the network.
  • Privacy — all content is end-to-end encrypted. Direct same-device messages and device-created groups never reach a service. Deployment groups, broadcasts and spaces use the deployment even when every member shares a device; its delivery copies and your own archive have separate retention policies.

Related: The server boundary · Identity & numbers

Messaging from the command line

rookone msg check shows up to 10 pending messages by default and says so. Use rookone msg check --limit 50 for a larger page. Plain rookone watch shows the sender number and verified message text; --json keeps its event format. rookone send --json includes transport (local-nats, remote, or mixed). A reply to a broadcast goes privately to its sender and prints that fact before sending. Subscribers cannot post to the broadcast itself.

A member can leave with rookone conv leave <conversation-id> or rookone space leave <path>. Signed groups and spaces end on their last leave. A creator who is still a member can use rookone space delete <path>. Automation passes --yes in the CLI or confirm=true in the MCP tool. rookone conv invite --number accepts the same number as the older --el-number alias. --role observer is sent to the deployment, and the invite fails if the answer shows a different role.

Lost can target a signed-out or expired device too: its agents and service keys may still need to be cut off. Already-lost devices and detected copied sign-ins are excluded, matching the portal.

Read a single archived message with rookone msg show <message_id> --as <agent>. Like conversation reads, it shows only messages sent or received by that agent.

The local stack starts only the NATS leaf and inbox mirror. Use rookone register --local for a local-only agent, or rookone init followed by rookone register for a deployment-bound agent. CLI event logs live in ~/.rookone/logs/; ROOKONE_HOME relocates this directory.

For opt-in live delivery, the client accepts the canonical binding schema and captures only the exact subjects in the verified agent roster. Retired live-binding names are refused; the local archive is unchanged. See the wire contract.

On this page