How rdy is built v0.56.0

System

Architecture

rdy is one Rust workspace that builds one static binary, rdy. The same binary is the CLI, the MCP server for agents and the daemon that owns a project's store. This page names the parts, says what each one does, and shows how a command or a tool call reaches the store and comes back.

One binary

The rdy-core repository is a Cargo workspace. Every crate in the workspace carries the license MIT OR Apache-2.0, so a user takes the code under either one. Its crates build one binary. There is no separate server, library or plugin to install. rdyhub, the hosted service, is a separate repository. It embeds core through one crate, rdy-adapter, and adds sync, identity and publishing on top. Core never requires it.

The release tools in rdy-qa build one .tar.gz archive for each native target: macOS arm64, Linux amd64 and, from Release 1 (rdy 0.47.0), Windows amd64, whose archive holds rdy.exe. Each archive holds rdy, LICENSE-MIT, LICENSE-APACHE and THIRD-PARTY-NOTICES.txt. A preview archive also holds the preview note as PREVIEW.txt; from Release 1, no archive has it. From rdy 0.48.0, each release also offers tally.rdydump, the frozen dump of a small sample project named Tally. One SHA256SUMS file lists the archives and then the sample dump, and its SSHSIG in SHA256SUMS.sig uses namespace rdy-release-v1 and principal rdy-release. A person may check the download: first the signature with ssh-keygen -Y verify, then the archive's hash, both before extraction. The check is offered, but it is optional. The downloaded rdy never checks itself.

THIRD-PARTY-NOTICES.txt gives each third-party crate that the target's rdy binary links, with its version, declared license and license files. The release tools generate it from Cargo.lock at packaging. A crate that ships no license file takes its text from a checked-in override in rdy-qa. Since rdy 0.49.0, no crate needs one, because rmcp 3.9.0 ships its own license file.

qa-release-sources copies the crates.io crate files of the crates used under MPL-2.0 and checks each against Cargo.lock. It also prints the release notes part that names them. With --check-notes <file>, it first checks that the notes hold that part once, exactly, after "Feedback" and before the two collapsed parts. Since rdy 0.20.0, each release attaches those crate files outside SHA256SUMS and unsigned, as it did the agent guide until the first release that embeds it.

The rdy-core README's trust section lists each release key with its key type, fingerprint, versions and state. Each version selects exactly one key, and a signature by any other key is refused. The list holds two keys. SHA256:Baa52ZPJSzazbmd2KDEkzUM6OYTnl8mznJXsmnwvvJc (sk-ssh-ed25519@openssh.com) is for v0.17.0 to v0.41.0: a historical key that is retired for new releases, with its allowed-signers line. The machine release key SHA256:Tj8hfra0U07asaeSZkt1b5e1HGJ+w8vMzLrn+G6/+/M (ssh-ed25519) is for v0.46.0 and later, and it is current. No other version has a release key. The generated verified install commands repeat the selected key's line byte for byte. A README with no confirmed key shows the key as pending and prints no verified install commands. One command source gives the README's verified commands and the install check's commands. The check runs them in order and installs rdy into a new version prefix, with no root. Then it runs the installed rdy through the CLI and MCP.

rdy 0.17.0 is the first preview release, with tag v0.17.0 at commit 8944d3b, released on 2026-10-22. The repository adrenickchrome/rdy-core is public, and its GitHub Issues take problem reports. Its GitHub Releases page offers v0.17.0 as a prerelease with six files: the two archives, SHA256SUMS, SHA256SUMS.sig, AGENTS.md and CLAUDE.md. The maintainer signed SHA256SUMS once with the release key, a FIDO key of type sk-ssh-ed25519@openssh.com. The two guide files hold one text, outside SHA256SUMS and unsigned. SHA256SUMS holds the archive digests, and the release notes print the guide's SHA-256. rdy 0.20.0 is the second preview release, with tag v0.20.0 at commit d976d5b, released on 2026-10-23. It offers eight files: the same six, and the crate files imbl-7.0.2.crate and imbl-sized-chunks-0.2.0.crate. The crate files are outside SHA256SUMS and unsigned, as the guide is. Its archives are the first with THIRD-PARTY-NOTICES.txt, and the maintainer signed its SHA256SUMS with the same release key. Its notes name three security fixes: rustls-webpki 0.103.16 (RUSTSEC-2026-0381 and RUSTSEC-2026-0382), skrifa in place of ttf-parser (RUSTSEC-2026-0192), and tokio 1.53.3 (RUSTSEC-2026-0386).

Each release's notes lead with use, and so does the rdy-core README. The notes give the pitch, a features list, a quick install with curl, tar and mv, and a first project with an agent. Since rdy 0.20.0, a changes part follows, "What changed since <previous>". Its groups are New features, Changes, Fixes, Security, and Project and build, each left out when empty, and breaking changes lead. The release check refuses notes that lack it, or that leave out the generated line for a store or dump format move. A store format move's line gives the dump-and-load step. A dump format move alone says that the new rdy opens the old store as it is and loads every earlier dump, and that the previous rdy cannot load the new dumps. The feedback link comes next, then the part "Third-party source (MPL-2.0)", with each crate file's download URL and SHA-256. Collapsed sections follow at the bottom. A preview's notes have "About this preview", which holds the preview note; from Release 1 (rdy 0.47.0), "About Release 1" takes its place. "Verify the download (optional)" holds the key line and fingerprint, the targets with their tested OS versions and the verified install commands.

The README ends with collapsed sections of the same names, with "About Release 1" in place of "About this preview" from Release 1. Its verify section holds the key line and fingerprint, the targets and the verified install commands. The README's License part, before those two, names the MPL-2.0 crates and points to THIRD-PARTY-NOTICES.txt.

Under the headline, the README shows three badges, each linking the latest release, the docs or the license. Under the Release 1 line, the getrdy.dev social card links to getrdy.dev. In "How it works", a picture of the review loop, light and dark, sits after the three points and before the tagline. The "Install" part gives one getrdy.dev installer line per platform, with the archive install collapsed under it. A "Documentation" part links the getrdy.dev docs pages through /docs/latest/. Upgrade from a preview and build from source sit collapsed after it. The "Report problems" part says that, before 1.0, rdy takes issues, not pull requests.

The binary embeds the agent guide. A release commit holds the guide's public export as release/agent-guide.json, with its digest in release/agent-guide.sha256, and the build embeds that export. So the guide is final before the release commit. A guide fix after that commit needs a new commit, a new build, a new rehearsal and new signatures. A release attaches no AGENTS.md and no CLAUDE.md. A development build embeds the export of the profile agent-guide-dev, which keeps its Planned marks. A release bundle refuses a mark.

From rdy 0.26.0, a store lists its features in place of a format number, so the notes check has a third generated line. It reads as the store-move line, with to feature-based stores (dump pair (<pd>, <ps>) to dump format <cd>) in place of the target pair. rdy 0.26.0 refuses a store of format 18 with E_STORE_FORMAT, so a project moves by dump and load. In-place upgrades start from feature stores.

The binary runs in three ways. rdy <command> is the human porcelain. rdy mcp is the tool surface an agent harness starts over stdio. A client can also reach the same tools over HTTP, on the live site's loopback port, while serve.mcp_http is on. rdy serve is the daemon that holds the store for one project and serves its live site. The daemon has its home in The daemon and concurrency.

The crates and their roles

Each crate has one responsibility, and the dependencies run one way: down toward rdy-model. No crate reaches around another.

Table 1
CrateResponsibilityDepends on
rdy-modelThe core types: block, document tree, change, decision, proposal, landing record, tag. Ids and content hashing. No I/O.nothing
rdy-schemaLoads schema packs. Validates blocks and documents. Pack extension, areas, tension severities and path globs.model
rdy-storeThe append-only, content-addressed store: segments, the index, views as chains, the conflict-aware merge, the atomic landing. The only crate that writes to disk.model
rdy-graphThe in-memory graph of one scope: edges, decision status, governing decisions, impact and suspects.model
rdy-engineThe one transactional surface for every operation: reads on published snapshots, writes, the gate, sessions and roles, events, export and import.all of the above
rdy-adapterThe one crate rdyhub depends on. A store handle with no daemon, captured snapshots, the sync batch check, export and take, and holders. The profile, history and signature reads, the publication take, render requests and one-page renders. It re-exports core's error-code check, core_error_code, so the hub needs no other core crate. Store compaction, and the seed, follow and reads of a read-only follower. It adds no record or rule of its own.model, store, schema, engine, render
rdy-renderBlocks to HTML through pack templates: the static site, the live site's builds in memory, prints, publication artifacts and the render process. A test-only probe feature counts render entry points, and only rdy-adapter's tests turn it on.schema, engine
rdy-mcpThe MCP tools, resources and server instructions, over the engine.engine
rdy-daemonThe daemon: the socket, the hello, the ctl protocol, sessions, the writer thread, the live site's HTTP server and the client side.engine, mcp, render
rdy-cliThe human porcelain: every command, as a client of the daemon.daemon
rdy-qardy's own quality gate: fixtures, invariants, perf tiers and the test areas. It ships no product code.all

The store is the only source of truth, as the principles say. The graph, the index, the rendered site and every other derived state can be rebuilt from it. Packs have their home in "Blocks, docs and folders" in the rdy documentation. The quality gate has its home in Quality gate.

rdy-adapter carries the exchange and the reads of repo links. The cited side calls Snapshot::link_export, and Snapshot::tag_deliveries lists the deliveries of a tag. The citing side calls StoreHandle::take_delivery, revoke_link and take_foreign_removal. The reads are Snapshot::foreign_refs, selection_changes, foreign_blast_radius and foreign_bytes. foreign_bytes counts every entry and named version of a repo, revoked and erased ones included, so it never returns to 0 after a first delivery. The signals are foreign_signals and foreign_tension_gate, and link_adoption gives each repo link's newest delivery and the delivery that its baseline holds. No CLI or MCP tool exports or takes a delivery, and the citing store is a project store, never a holder.

The lock reads are lock_facts, lock_changes and unadopted_locked. lock_facts lists the new deviations from locked instructions that a landing request writes, and lock_changes lists its changes to locks or locked instructions. unadopted_locked lists, for each live repo link, the delivered lock changes that its adopted baseline does not hold.

One door

Every operation goes through rdy-engine. The CLI, the MCP server, the working copy and rdyhub are thin interfaces over it. No interface gets a shortcut; this is the first of the principles. The engine exposes two things. A read takes an immutable snapshot of the project and runs on it. A write is a closure the writer runs against the live project, in arrival order, and it publishes a new snapshot before it returns.

Constraint

No interface opens the store or edits the graph directly; every read and write is an engine operation.

This is why the same code serves a tool call, a command and a daemon request. The same rule gives every write the same provenance, the same checks and the same consequences, whoever made it. Error codes are the engine's too, so the CLI and MCP report the same code for the same fault. The codes have their home in "Errors and warnings" in the rdy documentation.

rdyhub reaches the engine through rdy-adapter, never through a daemon. A store handle owns one store under its exclusive lock, and the store's one writer orders its writes. A snapshot captures the store's identity, canon and tags when it is taken, and later writes never move them. A content read after a removal refuses with E_REDACTED_STATE, as every read state does. The adapter keeps no state between calls. The hub keeps the upload files, and core never renames or deletes them.

StoreHandle::take and take_publication take a shared handle, &self. So a host can share one handle between threads with no lock of its own. The store's one writer orders the writes, and a dump does not wait for a take. StoreHandle::compact takes &self too, and a write through that handle waits for it.

How a request reaches the store

Agents over MCP and humans at the CLI connect to the daemon's socket. The daemon runs reads on snapshots and sends writes to one writer thread, which appends to the store and publishes a new snapshot. Events fan out to the graph and the inbox; the renderer reads canon to build the site.

open full size

Diagram source
flowchart LR
    A["agent harness<br/>rdy mcp (proxy)"] -- "mcp" --> S["daemon<br/>rdy serve"]
    H["human<br/>rdy &lt;command&gt;"] -- "ctl" --> S
    S --> R["reads<br/>on a snapshot"]
    S --> W["one writer thread"]
    W --> ST["rdy-store<br/>.rdy/store/"]
    W -- "publish" --> R
    ST -- "events" --> G["graph, tensions, inbox"]
    R --> RN["rdy-render<br/>the site"]
Agents over MCP and humans at the CLI connect to the daemon's socket. The daemon runs reads on snapshots and sends writes to one writer thread, which appends to the store and publishes a new snapshot. Events fan out to the graph and the inbox; the renderer reads canon to build the site.

Each project has one daemon, and every other process is its client. A client connects to the project's Unix socket, .rdy/run/rdy.sock or a short socket under /tmp for a long project path, and sends one hello line. The hello picks a protocol. mcp turns the connection into an MCP session, which agents use. ctl is one JSON request per line, which the CLI and the working copy use. Both protocols call the same engine operations. rdy mcp is a stdio-to-socket proxy, so a harness configuration stays rdy mcp --project <dir>. An agent client can also call MCP over HTTP at the live site's /~mcp route, with the project's token. A CLI or stdio client that finds no daemon starts one, and an HTTP call never does. The details have their home in transport and attach.

Events

Every write batch emits events, numbered by the batch's position in the log. An event is derived from the batch's own frames, so a replay of the log reproduces the same events. The daemon's writer passes each sealed batch's events to its notifier, which tells the subscribed MCP sessions. The inbox reads the same events from the log when a session reads it. After each publish, the writer also wakes the live site's worker, which rebuilds the scopes that have open pages. Events have their home in events.

Where things live on disk

A project is a folder tree of docs with .rdy/ beside it. .rdy/store/ holds the store. .rdy/run/ holds the daemon's socket, pid file, log and start lock, and daemon.sock, the record of the socket it bound. It also holds kungfu-counts.json and its lock, the local counts behind the W_KUNGFU warning, and mcp-token, the private token of MCP over HTTP. When .rdy/run/rdy.sock is too long for the system, the socket itself lives under /tmp instead. .rdy/local.yaml holds this user's settings for this project, and .rdy.yaml at the project root holds the shared project settings. The working copy has its home in Working copy, settings in Configuration, and the store's layout in The store.

Project
A project is one rdy repository: a folder tree of docs with .rdy/ beside it, under one project config, .rdy.yaml at its root. A project has one source-access boundary and can produce several publications, each for one audience.

A snapshot of How rdy is built at v0.56.0.