rdy documentation v0.53.0

Reference

CLI

since 0.47.0 rdy is one binary with one command per task. People use it at the terminal, and an agent may run it as a tool. This page is the exact reference: every command, its arguments and flags, what it prints, and its exit code. Where a command is designed but not built, one line says so.

since 0.47.0

Conventions

since 0.32.0

Every command reads as rdy [global flags] <command> [arguments] [flags]. rdy --help and rdy <command> --help print the usage. rdy --version prints the binary version, such as rdy 0.47.0. From rdy 0.15.0 until Release 1, every build printed the preview mark, such as rdy 0.15.0 (preview), a build from source included. From Release 1 (rdy 0.47.0), no build prints it. rdy -V and rdy --json --version print the same text. Every version field that a program reads stays plain, such as 0.15.0. These are MCP serverInfo.version, the daemon hello, a dump's header, the adapter's format facts and the PDF producer. Each released change to the store format or the dump format raises the version. The first release with a dump format is rdy 0.3.0, which writes dump format 1 with store format 10. rdy 0.4.0 writes store format 11, and it reads dumps of both store formats. rdy 0.5.0 writes store format 12, and it reads dumps of all three store formats. rdy 0.6.0 writes dump format 2 with store format 13, and it reads dumps of all four pairs. rdy 0.7.0 writes store format 14 in dump format 2, and it reads dumps of all five pairs. rdy 0.10.0 writes store format 15 in dump format 2, and it reads dumps of all six pairs. rdy 0.13.0 writes dump format 3 with store format 16, and it reads dumps of all seven pairs. rdy 0.18.0 writes dump format 3 with store format 17, and it reads dumps of all eight pairs. rdy 0.20.0 writes dump format 3 with store format 18, and it reads dumps of all nine pairs. rdy 0.26.0 writes dump format 4 with a feature store, and it reads dumps of all nine pairs and of format 4.

Table 1
Global flagEffect
--jsonPrint the result as one JSON value on stdout instead of text.
--project <dir>Use this project. Default: the nearest ancestor of the working directory that holds .rdy/.
--no-daemonOpen the store in this process instead of through the project's daemon. RDY_NO_DAEMON=1 does the same. Refused with E_LOCKED while a daemon runs.

Text output goes to stdout. A warning is one line that starts with warning: or warning <CODE>:. An error goes to stderr as two lines, error <CODE>: <message> and fix: <fix>, followed by one indented line per issue. With --json, the error is one JSON object on stderr: {code, message, fix, issues, corrected?}. Every code is listed in Errors and warnings.

since 0.32.0

A command that writes also prints the write's report; each part prints only when it has something to show. The consequences: section has one <kind> <block>: <follow_up> (<edge> <changed>) line each. Indented lines under an entry show its evidence when it has any: edges:, values:, values omitted:, one match <value> at <field>:<line> bytes <start>..<end>: <text> line per match, and matches omitted:. A fix: line comes last.

The intents on these blocks: section lists other sessions' intents on the written blocks. Each line reads intent <id> by <actor> (run <run>) in <view>: <angle> (until <time>) on <n> block(s), with the actor alone when the intent has no run. Then come the tension changes, the rule checks, the coverage change, the suggestions, the related decisions and a not worked out: <part> (<error>) line per part rdy could not work out. rdy new, rdy edit, rdy commit, rdy import, rdy view include, rdy view exclude, rdy undo, rdy propose and rdy approve print the report.

since 0.32.0

Each rule check prints as <code>: <message>, with an indented fix: <fix> line. When rdy cannot read the rule checks, the report prints check results unavailable: <code>: <message>.

since 0.4.0

The coverage change reads coverage: <before> → <after>. One <path>: <before> → <after> line follows for each page whose score moved. The part prints only when a score moved.

Table 2
Exit codeMeaning
0The command succeeded. Warnings do not change the code.
1The command failed with an error, or rdy check found at least one error-severity diagnostic.
2The arguments did not parse: an unknown command or flag, or a missing value. Also rdy serve when another rdy process holds the store.

A read command takes --scope. The scope names the state it reads.

since 0.14.0

Table 3
Scope textReads
canonThe accepted documentation. The default for every read command.
<name>The view with that name. Not with --profile on rdy render or rdy export.
view:<name>The same, with the view: prefix. A view name never contains : (E_RESERVED_VIEW). Not with --profile on rdy render or rdy export.
tag:<version>Canon at the landing the version names. tag:1.2.0 and tag:v1.2.0 are the same version.
landing:<hash>Canon at that landing. The hash may be a unique prefix of at least 6 characters.
proposal:P-x@nOne proposal version: its base plus its changes. proposal:P-x reads the latest version. Read-only, and rdy coverage refuses it. Not with --profile on rdy render or rdy export.
inflightCanon plus every live view's changes. Read commands that analyze accept it. rdy brief --code, rdy export, rdy render and rdy site refuse it, and no view takes this name.

since 0.22.0

Wherever a command takes a block, an id and a path such as wallets/transactions are interchangeable. A hash in text output is cut to its first 12 characters; --json carries the full hash. Every print that shows an actor and a run writes <actor> (run <run>), and the actor alone when there is no run. Log, blame and trace lines also leave out the person's run cli.

since 0.22.0

A CLI session is the human's. The actor comes from the user or local configuration, else human:$USER shaped into rdy's actor form. An agent that runs the CLI as a tool sets $RDY_ACTOR and $RDY_RUN, and its session is an agent session: writer, never approver. $RDY_ACTOR must be in rdy's actor form and $RDY_RUN in its run form, else E_BAD_INPUT. A $RDY_ACTOR that names a human: actor other than the human actor is E_PERMISSION. A write command takes --view. Without it, the human writes in work, and an agent writes in the view named after its run.

since 0.22.0

An agent session relays a person's act with --relayed-by <actor>, its own actor alone, never <actor>/<run>. rdy compares the value with the session's actor, and the relay records the session's own run. A value outside the actor form is E_BAD_INPUT, and another actor is E_PERMISSION.

Project

These commands set up a project and check or show its configuration.

rdy init

since 0.46.0

rdy init [<dir>] [--pack <name>] creates a project in <dir>, default the working directory. It writes the store under .rdy/ and the project config, .rdy.yaml, and pins the pack. It writes nothing else outside .rdy/. Until the meta project and both stubs are in place, it also prints Run rdy setup to prepare your rules project and this project's agent instruction files., and JSON adds it as setup_hint. --pack defaults to rdy-standard. A directory that is already a project, or that has a store but no .rdy.yaml, is refused with E_ALREADY_EXISTS, and init writes nothing. .rdy.yaml without a store is E_NO_PROJECT, and a .rdy/store that this rdy cannot open is E_STORE_FORMAT.

since 0.10.0

Repo id
The repo id is 16 random bytes written at rdy init as meta/repo_id. A clone keeps it; a fork gets a new one and records forked_from.

since 0.46.0

Prints Initialized rdy project in <dir> (pack <name>). JSON: {project, pack, setup_hint?}. The store gets its repo id at this moment.

rdy setup

since 0.49.0

rdy setup [--code-hook <repo>] [--edit-hook claude-code] prepares a project for agents. It creates the meta project and writes the stub, as below. Then it installs only the optional warning hooks that you ask for, the code hook first. Bare rdy setup installs no hook.

--code-hook <repo> installs the Git commit-msg hook in the checkout of <repo>, a code_repos name with a local checkout. It warns when a commit touches code anchored to a decision and the message has no Implements: value. --edit-hook claude-code installs the edit hook in .claude/settings.local.json of the project root. It warns when an agent edits working-copy files directly, and it sees only successful Edit and Write calls. A hook only warns: it never refuses a commit or an edit. Setup installs no skill file and no Stop hook.

since 0.46.0

rdy setup creates your own rules project, the meta project, and writes the three-line stub that tells agents to call rdy_instructions.

The meta step comes first. When nothing stands at the configured path, rdy creates an empty project there with the rdy-standard pack. It adds no rule, no policy and no copy of rdy's guide. An existing meta project stays as it is.

The stub goes into CLAUDE.md and AGENTS.md of --project, else of the root of the nearest project. Outside a project, it writes no stub and prints No project is open. No agent instruction files were written. In the meta project, it writes no stub, because that project holds the rules. The stub goes first, and the file's own text follows byte for byte. A file that already holds the stub stays as it is, so a second run changes nothing.

since 0.46.0

rdy checks both files before it writes either. A target that is not a regular file, such as a link, is E_IO, <path> is not a regular instruction file, fix replace it with a regular file, then run rdy setup again. A failed write names each file already written, and a repeat completes the rest. rdy reads each file before it writes it, so an edit saved in between is lost. A meta step that fails is a warning, Cannot create your rules project at <path>: <reason>, and the stubs still go in. A failed stub step keeps a finished meta step, and the message says so. JSON: {files, meta, stub, warnings}. meta has path, result (created, kept or warning) and message. stub has result, and a reason when it is skipped. Setup does nothing else: no harness detection, MCP configuration, skill or rule import, and no hook unless a hook flag asks for one.

since 0.49.0

A hook goes only into a project whose stubs setup processed. Outside a project, in the meta project, or for a repo that is not linked, setup skips the hook. That result names no file and carries one W_HOOK_UNAVAILABLE warning, and setup writes nothing elsewhere. With a hook flag, JSON adds hooks, one install result per hook, as rdy hook gives it. Text adds one line per file, <kind> hook <result>: <path>, and then the warning lines. Bare setup has no hooks member.

rdy hook

since 0.49.0

rdy hook checks, installs and removes the two optional local warning hooks, as rdy_hook does. A hook warns and changes nothing in the project. It never refuses a commit or an edit, and it never approves, proposes or lands. The chat path is rdy_hook, and these commands are its fallback.

since 0.49.0

rdy hook check --kind <code|edit> --input <file> runs the shared check. The file is a JSON object of at most 1048576 bytes. It holds the form's other fields, as rdy_hook takes them: repo, checkout, head, paths and message for code, and paths for edit. A file that names op or kind is refused, because the command line gives them. Text is checked <kind>: no warning for a clean check, else each warning.

rdy hook install --kind code --repo <repo> installs the code hook. rdy hook install --kind edit --harness claude-code [--worktree <name>] installs the edit hook, in the project root or in a registered worktree. rdy hook remove takes the same flags. Text gives one line per file, <kind> hook <result>: <path>, and then the warnings. JSON is the reply of rdy_hook. A refused form exits 1.

A warning prints as <code>: <message> and fix: <fix>. Each path that it names follows on an indented line, at most 20, and then and <n> more. An unavailable check adds its underlying error as (<code>: <message>).

since 0.49.0

The code hook is a commit-msg launcher in the effective hooks folder of the repo's checkout, as git rev-parse --git-path hooks names it. rdy never changes core.hooksPath. A hooks folder outside the checkout's Git folder is a conflict, external hooks path. The launcher is a short sh script that rdy owns. It names the rdy binary by its absolute path and the project explicitly, runs rdy hook run-code and always exits 0.

The edit hook is one PostToolUse entry in .claude/settings.local.json of the project root or the worktree. Its matcher is Edit|Write. Its one command has the exec form, with no shell: the rdy binary's absolute path, the arguments --project <root> hook run-edit --harness claude-code, and onFailure: continue. rdy creates the file and its .claude folder when they are absent. In a settings file that stands, it adds its entry and keeps every other key and entry.

since 0.49.0

An install creates only an absent file, or adds its entry, and keeps an exact copy of its own as it is. It never overwrites a person's file or entry. A remove takes away only rdy's exact launcher or its exact settings entry. It removes the settings file only when the file holds nothing else. Each file's result is written, kept, removed or skipped. A file that rdy leaves as it is gets skipped and a W_HOOK_CONFLICT warning. Its reason is existing hook, changed owned file, external hooks path, invalid settings, unsafe path, file changed or installer busy. One lock, .rdy/hooks.lock, lets one install or remove of a project run at a time, for at most 2 seconds. rdy opens no file through a link.

since 0.49.0

On Windows, the launcher names each path with / and without the \\?\ prefix. Git for Windows runs the extensionless commit-msg with its own sh, which starts the native rdy.exe. The edit hook's settings name the native paths without the \\?\ prefix, and Claude Code starts rdy.exe directly. A path that a launcher or a settings entry cannot name, such as a long path that needs the prefix, is a conflict, unsafe path.

since 0.49.0

The installed hooks run two entry points. Git's launcher runs rdy hook run-code --repo <repo> --message-file <path>. Claude Code runs rdy hook run-edit --harness claude-code, with the event on standard input. Each entry point always exits 0, and each failure becomes a W_HOOK_UNAVAILABLE warning. One run takes at most 2 seconds. run-code prints its warnings on standard error, and nothing for a clean check. run-edit prints {"hookSpecificOutput": {"hookEventName": "PostToolUse", "additionalContext": <the warning lines>}}, and nothing for a clean check.

rdy rule

since 0.46.0

rdy rule is the CLI fallback for rdy_rule, with the same engine and the same reply. An agent session relays the person's words:

  • rdy rule add --scope <person|project> --text <text> --why <reason> --evidence <words> --relayed-by <actor> [--ruleset <doc>] [--applies-to <selector>...] [--question <text>] [--session <ref>]
  • rdy rule edit <id> --scope <person|project> --text <text> --why <reason> --evidence <words> --relayed-by <actor> [--ruleset <doc>] [--applies-to <selector>...] [--question <text>] [--session <ref>]
  • rdy rule remove <id> --scope <person|project> --why <reason> --evidence <words> --relayed-by <actor> [--question <text>] [--session <ref>]
  • rdy rule answer <ref> <option> --scope <person|project> --card <hash> --evidence <words> --relayed-by <actor> [--question <text>]

--relayed-by takes your actor alone. --session defaults to cli. The CLI has no Later: the option later is E_BAD_INPUT, the CLI has no Later.

since 0.46.0

rdy checks the form before it starts a daemon or opens a store. A person's rule from another project, or from none, goes straight to the meta project. A project rule goes through this project's daemon, and outside every project it is E_NO_PROJECT.

since 0.46.0

A landing prints Saved to <place>: "<text>" or Removed rule <id> from <place>., where <place> is your own rules or project <name>. A card stop prints each card as it is, the primary one first. A version that is not ready prints not ready: <ref>, then one <code>: <message> (fix: <fix>) line for each issue. An answer that did not land prints answered <ref>: <label>, then the cards that wait. --json prints the reply of rdy_rule.

rdy pack check

rdy pack check resolves the project's pack and reports problems. It prints pack <name> <version> ok, then one <type> <class> line per block type, with the class doc_asset or supporting. One area <name>: <paths> line follows per area, with (<description>) when the area has one. JSON: {pack, version, types, classes, areas}, where types is the number of block types, classes maps each type to its class, and areas is [{name, description, paths}]. The daemon never loads a pack that fails this check. It keeps the previous pack and reports the error on every response until someone fixes the file.

rdy config

since 0.4.0

rdy config --show-origin prints every setting with its value and the file it came from: local config, project config, user config or the default. It then prints one warning W_CONFIG_UNKNOWN: <message>; <fix> line per key rdy does not know. A known key in a file that may not set it gets the same warning, which names the file the key belongs in. "Configuration" in How rdy is built describes the levels.

Reading

These commands read a project's content, history and state.

rdy status

since 0.46.0

rdy status prints the project's position. While the meta project is missing, it adds Your own rules project is missing. Run rdy setup., and JSON adds it as setup_hint. It repeats W_STOP_BEFORE_REDACTION while a carried record names a payload that the store holds. That warning prints as warning: W_STOP_BEFORE_REDACTION: <message>; <fix>, with a target: <target> line for each target. JSON has the same text in warnings, and redaction_warnings lists each one as rdy load gives it. Text:

since 0.35.0

Text
pack rdy-standard
daemon: rdy 0.35.0 build 3f2a9c1e5b7d0846
repo 3c9e5a1f7b2d4e6a8c0f1b3d5e7a9c2b
canon: v1.2.0 + 3 landings (14 landings, 2 suspects)
coverage: 72 (grounded 60, consistent 90, current 95, connected 80, complete 70, governed 40); 41 coverage issues, listed by rdy coverage
mcp http: disabled
views:
  work: v1.2.0 + 3 landings · view work, 1 unlanded change

since 0.48.0

A warning line follows for each view whose name contains :. The views: lines and JSON views list only the open views that hold at least one change; rdy view ls lists every open view. JSON: {pack, daemon, repo_id, origin?, forked_from?, landings, suspects, version_position, views: [{name, changes, owner, version_position}], warnings, seq, open_report, quarantine, coverage, setup_hint?, links?, kungfu?, kungfu_counts?, mcp_http?}. A version_position is {version: {name, landing} | null, landings_since, view: {name, unlanded_changes} | null, frozen, label}. origin and forked_from are {repo_id, tag, landing}, and tag and landing are null when absent. open_report is what the last store open repaired, and quarantine names the files it set aside.

since 0.46.0

While a retained count of missed values is above zero, the text adds kungfu: <n> not loaded, <n> lost, <n> wrong, in <n> sessions.. JSON adds that line as kungfu, and kungfu_counts lists the rows, each {day, actor, run, ruleset, not_loaded, lost, wrong}. W_KUNGFU says what rdy counts.

since 0.4.0

The coverage: line gives canon's score, its dimensions and the number of coverage issues. A kinds: line follows when canon has open entity kinds, and a similar kinds: line when some differ only in spelling. JSON coverage is {score, dimensions, issues_total, kinds, similar_kinds}. When rdy cannot read it, the text says coverage not read: <error>, and JSON has coverage_error instead.

since 0.10.0

The repo line gives the project's repo id. A clone adds cloned from <id> at version <version>, and a fork forked from <id> at version <version>. The id and the version are the source's. When the source had no version, the line names its canon head instead: at landing and 12 hex digits.

With a working copy, the same command also lists the modified, added, deleted, moved and renamed docs and folders, staged or not. It lists untracked files with a lint hint, and unresolved conflicts. After a recovery it adds open: caught up <n> frames, and a warning: quarantine: line names any file the open set aside.

since 0.35.0

The daemon: line reads rdy <version> build <id>. Under --no-daemon it reads daemon: none, and JSON daemon is null. rdy status --json adds log_bytes, removed_bytes and by_kind, as rdy compact gives them. Only that command sets the log_bytes argument of the status op in the ctl protocol. So rdy status --json waits for a running write, and plain rdy status and a plain status op read the published state. A store past the report's bounds makes rdy status --json refuse with E_LIMIT.

since 0.48.0

rdy status prints one line per live repo link, before the warning lines: link <alias>: <state>, tag <tag>, <n> pins behind. The state is none, delivered or revoked, and the tag part shows only after a delivery. A <n> delivered repos have no repo link (rdy links) line counts the delivered repos that no live link names. JSON links is {links: [{alias, state, pins_behind, tag?, delivered_at?}], unlinked}, where unlinked is that count. A project with no link and no delivered repo has no links member. When rdy cannot read the links, it leaves the lines out, and the status still succeeds.

since 0.53.0

since 0.49.0

While a daemon serves the project, the text adds an mcp http: line after the coverage: line and before views:. It reads mcp http: disabled while serve.mcp_http is off, and mcp http: unavailable while the endpoint cannot serve. While it serves, the line reads mcp http: <url>, and mcp http activity: <n> calls, <n> streams follows. JSON mcp_http is {enabled, url, active_calls, listen_streams}, where url is null when the endpoint is unavailable. active_calls counts the HTTP calls admitted now, and listen_streams the open subscriptions/listen streams. Without a daemon, the status has neither the lines nor the member. The status never shows the token.

rdy instructions

since 0.46.0

rdy instructions [--load <id>...] [--full] prints the agent instructions as rdy_instructions gives them. It prints the required instructions of the built-in rdy layer, the project and the meta project in full, then the menu of every ruleset with its estimated tokens. --load takes one or more menu ids and may repeat, and it adds those rulesets in full. --full adds every rdy: ruleset. A stored optional ruleset still needs --load, and the two options may go together. Only landed rules arrive. --json prints the shared reply unchanged. The chat path is rdy_instructions.

since 0.46.0

Text output gives each instruction as instruction <id> (<layer>, ruleset <ruleset>), with , locked for a locked one. Its whole body follows, then one reason <id>: <statement> line per reason. A rdy row has no reason line. The menu comes next, one <id> <name> (<layer>, required, ~<n> tokens) line per ruleset, with optional for a ruleset that is not required. when: and hints: lines follow an entry that has them. Warnings and the hint come last.

since 0.46.0

Without --project, the command reads the nearest project, as rdy mcp finds it. With no project, it reads the person's meta project. With no meta project either, it prints the rdy layer, its menu and the setup hint. The reply carries the user config's warnings, and the other config warnings go to stderr.

rdy ls

rdy ls [<path>] [--scope <scope>] [--depth <n>] prints the folder and doc tree from <path>, default the top level. One line per node: the name (a folder ends in /), the type, the id, and for a doc its doc_type and · <lifecycle>. Children past --depth are summed as (+<n> more). JSON: a list of nodes {path, name, id, type, title?, doc_type?, lifecycle?, children, collapsed}.

rdy show

since 0.31.0

rdy show <id> [--scope <scope>] prints one block, one proposal version or one landing. For a block, <id> is an id, a path, id@version, or a whole copied ref line [id@version] …. A pinned version reads under that version, and a different explicit --scope is E_BAD_INPUT.

since 0.41.0

Text: <id> <type> (version <hash>), then for a decision status: <words>, such as superseded by D-3K0TY, and effective from: <time>. A content block adds as-built: <status>, and an override adds (override <field> on <block>; its decisions derive <status>). A type with tracking fields adds tracking: <names>. A source adds source: <state> after the header line, with found, missing or unchecked. Then come the fields as pretty JSON and the body. A stub of removed content ends with Redaction: <hash>.. Each W_AS_BUILT_OVERRIDE adds warning <code>: <message> and fix: <fix> lines after the suspects. JSON: {id, block_type, version, fields, body, doc, parent, children, outgoing, incoming, status, governing, suspects, conflict?, effective_from?, areas?, tracking?, inflight?, alternatives?, redaction?, as_built?, warnings?}, where the last eight are as rdy_context gives them. An edge is {from, to, kind, part?, pin?}; a suspect is {block, target, reason}.

since 0.22.0

In the inflight scope, rdy show prints no last change: line unless --blame asks for history. It ends with an in flight: block that lists each in-flight change that writes the block. Each line reads <change> <who> in <views>, where <who> is <actor> (run <run>), or the actor alone without a run. A line adds ; intent <id>, ; alternative <member> of <set> and ; proposed in <P-x@n>, … when they apply.

since 0.4.0

rdy show P-x@n prints one proposal version instead of a block. A state: line gives landed in <landing>, superseded, withdrawn (view <name> closed) or open, as rdy_read gives state. A versions: line lists the chain, oldest first, with (latest) and (landed) after the versions they fit. JSON: {proposal}, the record that rdy_read returns. A version that carries a removal request prints its removal card whole, then card hash: <hash>, before the approve line. When rdy cannot read the card, it prints removal card: not read (<code>: <message>) (fix: <fix>).

For an open version it adds one advised: <tension> by <reviewer>: <advice> line per advised tension, with (accepted) after an accepted one. While an advice waits, it ends with accept the advice with: rdy resolve --accept <ref> --digest <digest>. When rdy cannot read the tensions, it prints advised: not read (<error>).

since 0.48.0

rdy show also prints a landing. rdy reads <id> in this order:

  1. P-… is a proposal, as above.
  2. landing:<id> and tag:<name> are that landing.
  3. A full hash is a proposal version, then a landing on canon's chain. Anything else is E_BAD_INPUT.
  4. From 6 to 63 hex digits, in any case, name the proposal versions and landings that start with them. A prefix that names both is E_NOT_FOUND, with the message <prefix> names a proposal version and a landing and the fix give more characters, or landing:<id>. A prefix that names none reads as a block.
  5. <alias>:<id>, <alias>:<key> or <repo id>:<id> is a block cited from a linked project, as below.
  6. Anything else is a block.

So a block key of 6 or more hex letters that also starts a hash reads as the hash. Pass the block's id in that case. rdy does not refuse the repo link aliases tag and landing. Step 2 reads tag:<name> and landing:<id> first, so rdy show reads a block cited through such an alias only as <repo id>:<id>.

since 0.31.0

Text for a landing: the landing's rdy log row, then its change list in the text of rdy diff, a compact diff from its previous landing. JSON: {landing, diff}, as rdy_log with landing returns it, with the whole diff. --scope does not apply to a landing. --blame with a landing is E_BAD_INPUT.

since 0.22.0

A conflicted block prints conflict <id>: reads as base <version>; sides: <change> by <actor>, … after the body. --blame adds, per block version, the change, its author, the landing and its approver. A relayed approval ends the landing line with , relayed by <actor>, with (run <run>) when the run is not cli. The blame and the last change: line add imported by <actor> (run <run>) when rdy import wrote the change, with the actor alone when the run is absent or cli. When a redaction removed a version's content, the blame and the last change: line add content removed by redaction <hash>, with the request's full hash.

since 0.32.0

The blame and the last change: line name the change's justification: implements <id>, …, editorial <class>: <reason> or reflects <id>, …. A reflects that cites the code ends with , code, and a code-only one reads reflects code. JSON governing lists the live decisions that govern the block by the four routes, as rdy_context gives it.

since 0.48.0

<id> may also name a block cited from a linked project: <alias>:<id>, <alias>:<key> or the stored <repo id>:<id>. rdy tries this form after the proposal and landing forms, and the read is read-only. The text is the cited block's YAML, then a cited: list: provenance: delivered by the hub (link <id>), delivered: <version> in <tag>, a derived: line with the delivered status, lifecycle and successors, and one pinned: <version> (<blocks>) line per version that the scope's pins hold. A block that no delivery selects any more shows delivered: no longer delivered. JSON: {id, cited: true, read_only: true, text}. --blame with a cited block is E_BAD_INPUT. An unknown alias is E_UNKNOWN_REF, as is a block that the link does not deliver and no pin holds.

rdy log

since 0.32.0

rdy log [--limit <n>] [--since <landing>] lists landings, newest first. --limit keeps only the newest <n> landings. --since keeps only the landings after the one it names: a landing id of at least 6 hex characters, landing:<id> or tag:<version>. A --limit of 0 is E_BAD_INPUT. An unknown landing or version is E_NOT_FOUND.

Text: <landing> <at> <title> proposed by <who> approved <P-x@n> by <actor>. <who> is <actor> (run <run>), or the actor alone when there is no run or the run is cli. A relayed landing adds , relayed by <who>. A landing with tags adds them in brackets, as [<version>, …]. Indented lines follow when they apply:

  • chose <member> of <set>, for a landing that chose a member of an alternative set;
  • evidence (<kind>): "<quote>" (asked: "<question>"; session <ref>), for a relayed landing;
  • assessment <short>, for a landing that records an assessment;
  • policy <ap-id>@<short>, for a policy landing;
  • dispute <state>: <n>, for a landing whose dispute state is not none;
  • rebased from <landing>, …, for a rebased landing.

JSON: one row per landing, {landing, prev, proposal, approved, approved_version, title, summary, approved_by, proposed_by, assurance, relayed_by, relay_evidence, evidence, assessment, policy, dispute, rebased_from, at, at_ms, changes, tags, chosen?}. proposed_by is {actor, run}, the author of the proposal version that landed. summary is the summary of that version. chosen is {set, member}, present only on a landing that chose a member of an alternative set. assessment is the stored assessment the landing recorded, or null for a landing with none, such as a re-affirmation card's landing. policy is {block, version} on a policy landing. dispute is {state, disputes}, where state is open, upheld, dismissed or none, and disputes lists the dispute ids, oldest first. at is RFC 3339, and any other field that does not apply is null.

since 0.10.0

A landing's displayed state comes from the landing and any dispute that names it. Approvals and assurance levels defines the levels.

rdy log --verify checks each signature of each landing and tag offline. It adds one line per signature: signed <kind> <valid|invalid> by <key> (<key type>), key <trusted|unknown>, presence <present|absent>. An invalid signature shows its code in place of the key state. A statement that does not match its landing or tag adds , statement mismatch. A landing or tag with no signature adds signed: no. It reads signing.allowed_signers for trust, and it asks no SSH agent and no hub. JSON adds signatures to each row, and tag_signatures for its tags, as rdy_log gives them.

since 0.30.0

rdy log --verify reports a landing accepted under the authority policy as signed: policy. The next line reads policy <ap-id>@<short> landed in <short>: signed <state>, or policy <ap-id>@<short>: no landing holds it. JSON adds signed and policy_check: {landing, signed}. landing is the landing that carried the policy version, or null. signed there is valid, invalid or no.

rdy impact

rdy impact <id> [--depth <n>] [--scope <scope>] lists the blocks that depend on <id> through references or dependency links, by depth. --depth defaults to 3. Text: depth <n> <id> <type>: <summary> [<edge kind> <from>], then areas: <area> (<n>), … when any item is in an area. JSON: the result of rdy_impact, {items, by_area?}. "The graph" in How rdy is built explains which edges count.

since 0.31.0

rdy trace

since 0.31.0

rdy trace <id> [--scope <scope>] [--depth <n>] [--detail] prints the decision chain of one block, as rdy_trace returns it. Text:

  • <id> <type>: <summary>, then ungrounded: no decision, source or reflects globs when it applies;
  • governed by:, then one indented line <decision> <status> via <via>[ <entity>]: <statement> per row;
  • reflects:, then one indented <source> <kind>: <title> line per source;
  • one line per decision, <depth> <id> <status>, <authority_basis>, decided <decided_at>: <statement>. The line drops its comma clause when the basis or the date is absent;
  • each edge as <kind> <from> -> <to>[ (<part>)], and the decision's accepted in <landing> <P-x@n> by <actor> line, plus relayed by and imported by when they apply, and (dispute <state>) when the landing has a dispute;
  • premise <id> <type>: <summary> for each premise that is not a decision;
  • answers <question>: <prompt> for each question;
  • introduced: <landing> <P-x@n> "<title>" by <author>, and more: <ids> for the frontier.

With --detail, detail: follows each decision's line and holds the decision's other fields as JSON indented four spaces. Landing evidence prints under evidence:, after the acceptance lines and after the introduced: line. The text shows each landing by its first 12 characters. The command has no --max-tokens and uses the tool's default of 1000 tokens. JSON: the result of rdy_trace.

since 0.2.0

rdy search <query> [--regex] [-i] [--scope <scope>] [--type <type>] [--trait <trait>] [--path <prefix>] [--lifecycle <state>] [--changed-since <ref>] [--exclude-history] [--governed-by <id>] [--describes <id>] [--linked-to <id>] [--mentions linked|unlinked] [--suspect] [--tension] [--coverage-below <n>] [--sort coverage] [--max-tokens <n>] [--page <token>] searches as rdy_search does. Text output prints the totals first, then the entity fact sheets, then the text matches with their block ids. A fact sheet's first line ends with confidence <level>. A hit's first line ends with coverage <score> issues <n> <level>.

since 0.2.0

The text starts with <n> matching blocks, then by doc: <path> <hits>, … and by type: <type> <hits>, …. Each hit's first line reads <path> <id> (<type>), with [all words] or [history] when it applies. Each line that matches follows as <field>:<line>: <text>, and … +<n> more lines counts the rest. also: <path> <id>, … lists the hits that collapsed into it. A cut page ends with next page: --page <cursor>. --json prints the result as rdy_search gives it.

rdy suspects

rdy suspects [--scope <scope>] lists the suspects in the scope, as rdy_suspects does. One line per suspect: the block, the target and the reason.

since 0.18.0

A deferred suspect adds an indented deferred by <actor>: <reason> line. A code_changed suspect adds one indented line per changed path.

since 0.48.0

A suspect on a block cited from a linked project prints its target as <alias>:<id>, as rdy_suspects shows it.

rdy tensions

since 0.2.0

rdy tensions [<filter>...] lists tensions with their sides. The filters match rdy_tensions:

  • --scope <scope>, --kind <kind>, --severity blocking|advisory and --status open|dismissed;
  • --area <area> and --view <view>;
  • --involving <block|change>: a block by id, key or path, or a change by hex prefix;
  • --reviews, which also lists the dismissal reviews;
  • --max-tokens <n>, which cuts tensions from the end of the list.

With --view, an unjustified change is judged on that view's net change, as the view's proposal judges it. A resolved tension leaves the list; the inbox of each session with a change on one of its sides reports the resolution.

since 0.20.0

A semantic tension adds a judged by <reviewer>: <first note> line, with (+<n> more) when it has more citations. Advice adds advises blocking: <advice>. An acceptance adds accepted by <actor>. When an agent relayed it, the line adds (relayed by <actor> (run <run>)), or the relayer's actor alone, and then the quoted words.

rdy coverage

since 0.2.0

rdy coverage [--scope <scope>] [--max-tokens <n>] [<path>] prints the coverage report that rdy_coverage returns. The scope defaults to canon. The text has these parts:

  • coverage <score> (<scope>), then a line of dimension scores.
  • lowest pages:, with one <score> <path> line per page.
  • areas:, with one <score> <area> line per area.
  • issues (<total>):, with one <block> <dimension> <code> <fix> line per issue. A dismissed tension's line ends with (dismissed by <actor>: <reason>).
  • The onboarding line: coverage <score> of a target <target>; next phase: <phase> (<dimension> <n>, …), or …; onboarding is done.

With a path, the onboarding line starts with corpus coverage, because it covers the whole scope. JSON: the result of rdy_coverage.

rdy q

since 0.31.0

rdy q <filter> [--scope <scope>] [--json] filters blocks with an expression in the filter grammar of rdy_query, the same grammar that a pack's rule checks use. The first line is <total> matching blocks, or 1 matching block. Then each match prints one line, <path or -> <id> (<block type>) <summary>, and the command prints every match, with no token budget. --scope defaults to canon. rdy q --help prints the filter guide. JSON: the shape of rdy_query. A parse error is E_BAD_INPUT, with the fix read the filter guide in rdy_schema, or run rdy q --help.

rdy diff

since 0.31.0

rdy diff <from> [<to>] [--doc <id|path>] [--detail] [--json] compares two scopes block by block, older to newer. With one scope, rdy supplies the other side. A view diffs from its base landing, tag: or landing: diffs to canon, canon diffs from its previous landing, and proposal:P-x@n diffs from the version's base to the version. inflight has no single older side, so it needs both scopes, else E_BAD_INPUT. A side with no base or previous landing is the empty state. --doc limits both sides to one doc or folder subtree. It takes an id, a key or a path. rdy resolves it in the newer side, then in the older side. A root on neither side is E_UNKNOWN_BLOCK, and a root that is not a doc or a folder is E_BAD_INPUT. The command prints the whole diff, with no token budget. JSON: the shape of rdy_diff.

since 0.31.0

A block that moved into or out of the --doc root shows as added or removed, with moved naming the other side. The blocks under it show as added or removed without moved. rdy view compare stays, and a person also reads word-level differences on the site's diff summary pages.

since 0.31.0

Text: the first line is <from> to <to>[ in <root id>]: <a> added, <r> removed, <u> updated, <m> moved. A label reads canon, view:<name>, tag:<name>, landing:<12 hex>, proposal:P-x@n, inflight or the empty project. With no entries, the second line is no changes. Then each entry prints one line, <change> <id> (<block type>) <where>: <summary>, where <where> is the entry's path, else its doc, else -.

Under an entry, these lines follow when they apply, each indented 4 spaces:

  • type <from> to <to>;
  • moved from <from path or -> to <to path or ->, with (order only) when only the order changed;
  • fields <name>, <name>, or with --detail one field <name>: <from JSON or (none)> to <to JSON or (none)> line per field;
  • one links <rel> +<id>, -<id> line per link kind;
  • status <from> to <to>;
  • repinned <id>, <id>;
  • with --detail, body <text>, with removed words marked [-old-] and added words {+new+}, and each line break indented 8 spaces.

Writing

These commands create and change content.

rdy new folder

rdy new folder <path> [--view <view>] creates a folder at <path> as one change. Missing parent folders are created in the same change. The last path segment becomes the name. Prints created folder <path> (<id>). JSON: {change, created, names, warnings}. Anything already at the path is E_PATH_CLASH.

rdy new doc

rdy new doc <path> [--type <doc_type>] [--title <title>] [--view <view>] creates a doc from its pack skeleton. --type defaults to the pack's default_doc_type; a pack without one requires it. --title defaults to the last path segment. Prints created doc <path> (<id>). JSON: as rdy new folder.

rdy new profile

since 0.11.0

rdy new profile <key> --parent <doc> --title <title> --audience org|public --select <id> [--select <id>...] [--description <text>] [--trail true|false] [--view <view>] creates a publication profile as one change. The profile sits directly under the doc --parent. Each --select names a doc or folder. --trail defaults to on for org and off for public. --view defaults as for rdy new doc. Prints created publication profile <key> (<id>), then the write's report and one warning <CODE>: <message> line per warning.

since 0.11.0

The command sends the same create op that rdy_write takes, and every rule of the write holds. A profile is a supporting block, so it writes no working-copy file. Propose, land and tag it like any change. rdy edit changes it later. JSON: the write's result.

rdy new instruction

rdy new instruction --parent <doc or section> --text <text> --applies-to <selector> [--applies-to <selector>...] --reason <decision> [--locked] creates an instruction block. --text writes its whole body. --reason takes a decision id or key and writes the decided_by link. --applies-to is required and repeats, and --applies-to all makes the instruction required. Each other selector is a hint in the rdy_instructions menu, and rdy never filters by it. --locked stores the instruction as locked.

The block goes to the session's view: work for the human, or the view the working copy is bound to. It passes the same checks as rdy_write, which is the chat path.

rdy new finding and rdy new source

since 0.28.0

rdy new finding --statement <text> [--quote <text> [--question <text>] [--session <ref>]]... [--source <id>]... [--parent <id>] [--view <view>] records a finding. Each --quote starts an evidence entry, and each --question and --session joins the latest --quote before it. Each --source adds a source entry of its own, by id, key or path, and the finding needs at least one entry. rdy new source --title <text> --kind release|commit|spec --locator <text> [--version <text>] [--parent <id>] [--view <view>] records a source. Each command sends the same create op that rdy_write takes. Without --parent, the block goes to the decision home, or to the project root when the project names none. rdy edit changes either block later.

Each command prints created finding <id> or created source <id>, then the write's report and one warning <CODE>: <message> line per warning. JSON: the write's result. A --question or --session with no --quote before it is E_BAD_INPUT, --<flag> needs a preceding --quote, with the fix pass --quote before --<flag>. A second one for one quote is E_BAD_INPUT, --<flag> is repeated for one --quote, with the fix give each quote at most one --question and one --session. Neither command writes a working-copy file.

rdy edit

since 0.33.0

rdy edit <id> [--view <view>] [--reason <text>] [--reflects <source>]... [--reflects-code] opens the block's YAML in $EDITOR (default vi), validates it on save, and commits it as one change in the view. It prints change <hash>, then one new key <id>: <key> line for each key that rdy derives again after a rename or a new top-level name. Then come the consequences, as a write's report prints them, then briefing: <token> when the edit creates blocks, then one warning <CODE>: <message> line per warning. JSON: {change, created, keys?, briefing?, warnings, consequences}, plus code_recorded and justification with --reflects or --reflects-code. --reason gives the edit an editorial reason; a tracking field of an accepted or rejected decision changes only with one. An editor that exits with an error changes nothing (E_BAD_INPUT).

since 0.32.0

--reflects names a source the edit follows, by id, key or path, and may repeat. --reflects-code records the block's code state again when it declares reflects globs, which clears its code_changed suspect. Neither flag goes with --reason. The edit sends them as the reflects of rdy_write.

since 0.2.0

The command fetches the briefing itself, shows it as a comment header in the buffer, and sends its token with the write, so a person takes no extra step. The write's base is the version the editor read. A block that changed while the editor was open refuses the edit: E_BRIEF_STALE on stable content, E_STALE_BASE on a draft. A conflict that changed meanwhile is E_STALE_BASE, so a stale buffer never reverts a change or resolves a conflict. After the save it prints the write's consequences. When the write fails, the edited file is kept, and the error names it under saved_edit.

rdy reaffirm

rdy reaffirm <id>… --reason <text> [--targets <id>,…] [--view <view>] re-affirms decisions, as the reaffirm op does. rdy reaffirm --because <id> --reason <text> re-affirms every decision in the view that is suspect on that block. The command fetches the briefing itself, as rdy edit does. It prints reaffirmed <id> (after <cause>, …) per decision, with the causes in id order, then the write's report. JSON: the rdy_write result.

since 0.48.0

rdy adopt-upstream

since 0.48.0

rdy adopt-upstream <old> <alias>:<id> [--view <view>] supersedes a local decision by its adopted copy, as rdy_supersede {old, adopted_as} does. <old> is an accepted local decision in force, by id or key. <alias>:<id> names the cited decision that the home project delivered back, by id or key. The command fetches the briefing itself, as rdy reaffirm does, and a person's working copy writes to the view it is bound to. The old decision becomes superseded by the cited decision, and its dependents get rebind items. A person approves the landing, because the authority policy never accepts a version that writes adopted_as.

since 0.48.0

It prints change <hash>, then the write's consequences and one warning <CODE>: <message> line per warning. JSON: the rdy_write result, with view. A cited or external <old> is E_FOREIGN_READ_ONLY. An <old> that is proposed, rejected, superseded or revoked is E_BAD_INPUT. A target that is no cited decision is E_BAD_INPUT, and an unknown alias or a block that the link does not deliver is E_UNKNOWN_REF.

rdy repin

rdy repin <id> [--targets <id>,…] [--code] [--view <view>] repins a block, as the repin op does. --code records the current code state of a reflects block. The command fetches the briefing itself. It prints repinned <id>: <n> pin(s), then the write's report. JSON: the rdy_write result.

since 0.2.0

rdy keys assign

since 0.2.0

rdy keys assign [--view <view>] gives every doc and folder in the view that has no key the key derived from its path, in one change. Each key carries key_auto: true, as a key rdy derives on create does. The command briefs the blocks it changes and cites that briefing itself.

It prints assigned <n> keys in view <view>, then one <id> <key> line per key. JSON: the write's result, with view and keys. A view in which every doc and folder has a key is E_BAD_INPUT. There is no MCP tool for it.

rdy redact

since 0.48.0

rdy redact <target>… --reason-class secret|personal|legal|retraction --reason <text> [--dry-run] [--view <view>] [--max-tokens <n>] records a redaction request in the view. A target is a block id for every stored version, <id>@<full version hash> for one version, <alias>:<id>@<full version hash> for one version of a cited block, or blob:<full manifest hash>. It takes 1 to 256 targets, each at most 256 bytes, and a reason of 1 to 4096 UTF-8 bytes. --view names the view for the request: by default the session's, work for the human. rdy finds the targets in the whole project. --dry-run prints the blast radius and records nothing, and any role may run it. Recording a request erases nothing. The redaction lands like any proposal, and only with a human approval: propose the view, then approve it with rdy approve. The chat path is rdy_redact, and this command is its fallback.

since 0.29.0

The text has one line for each element, in this order:

  • the title, Redaction dry run or Redaction request;
  • one Target: <target> line for each target;
  • Versions: <n>; blobs: <n>; shared blobs: <n>. and Payloads: <n>; bytes: <n>.;
  • one <kind>: <record> (<relation>) line for each record in the store, and one <kind>: <record>: "<quote>" (erasable: <bool>). line for each quote;
  • one <copy kind>: location unknown. line for each kind of copy: render, export, dump, clone, published and working_copy;
  • one Quarantine: "<name>" (possible copy; not erased). line for each quarantine file;
  • Recorded assessments: scanned. and Reason (<class>): "<reason>";
  • each warning, as <code>: <message>;
  • the result.

A dry run ends with No request was recorded. A request ends with Recorded redaction <hash> in change <hash>., then Propose the view to ask for approval. When every target was removed already, it ends with The selected content was already removed. No request was recorded.

since 0.6.0

--max-tokens sets the text's budget: 256 to 20000 tokens, 4000 by default. When the whole report does not fit, one line replaces the rows: The row list was omitted. Increase max_tokens to read it. The targets are listed while they fit. Then comes … and <n> more targets; the full list is in the JSON report (--json) and bound by report <hash>, or Report: <hash>. when every target fits. No warning is ever cut, and a budget too small for them is E_REDACTION_BUDGET. JSON: {dry_run, reason_class, reason, change, redaction, report, warnings, text}, with truncated: true when the rows were cut. A request also carries the keys of a write's reply, such as consequences.

since 0.48.0

A target that names a cited version erases only the bytes of the project's foreign copy of that version, never local content. It takes the cited block's id, not its key, and the stored form <repo id>:<id>@<full version hash> works too. The report names such a target by the repo id: Target: <repo id>:<id>@<version>.

Views

since 0.26.0

A view is where work happens; Canon, views and proposals explains the model. The first write into a new name also creates a view. Every session may read any view. A change to a view needs ownership: a non-human session commits, includes, excludes, undoes and closes only in views it owns, and a human may do so anywhere. A replay needs an open view that the session owns, for a human too. The refusal is E_VIEW_OWNER.

rdy view new

rdy view new <name> [--base canon|tag:<version>|landing:<hash>] [--pin] creates a view at canon's head. A base that names a tag or a landing pins the view; --pin pins it at canon. Prints view <name> (0 changes, base <hash>, pinned, owner <actor>). JSON: the view's record. An existing name is E_VIEW_EXISTS; canon, inflight, a name that starts with reaffirm- and a name with : are E_RESERVED_VIEW.

since 0.48.0

A name that starts with adopt- is E_RESERVED_VIEW too, with the message view names that start with adopt- are reserved for adopt cards. rdy keeps such names for the views that adopt cards land in.

rdy view fork

rdy view fork <from> <name> creates a view with the same base, pin and included set as <from>. Output as rdy view new. A fork that would make two blocks each other's ancestors is E_BAD_INPUT.

rdy view include

rdy view include <view> <change>… adds changes from any view into <view>, plus every dependency not already in it. Prints included <n> change(s) into <view> (+<k> dependencies), then conflict <block>: <n> sides per new conflict. A change that already landed is E_BAD_INPUT. On a pinned view, a dependency that landed after the pin is added too; rdy undo never adds one. An include that would make two blocks each other's ancestors is E_BAD_INPUT, and the message names the change and both blocks.

since 0.26.0

rdy view replay

since 0.26.0

rdy view replay <view> <change>... replays changes from any view into <view>, an open view you own. Its help reads Replay selected changes into your open view. It prints replayed <n> change(s) into <view>, then the conflict lines of rdy view include and the consequences. JSON is the result of rdy_view with op replay. It takes no option of its own, and rdy undo removes the whole replay. Replaying changes gives the rules, and Errors and warnings gives each refusal.

rdy view exclude

rdy view exclude <view> <change>… [--cascade] removes changes. A change that other included changes depend on is refused with E_HAS_DEPENDENTS, which lists them; --cascade excludes the dependents too. Prints excluded <n> change(s) from <view> (+<k> dependents).

rdy view resolve

since 0.6.0

rdy view resolve <view> <block> --landed resolves a conflict on an accepted or rejected decision by taking the landed side. --landed is required, because it is the one side that resolve takes. <block> is an id, a key or a path. The view's block then reads canon's frozen version, and the change depends on every side. Prints resolved conflict <conflict> on <id> in <view>: took the landed side <version> (change <change>), with each hash shortened. A block with no conflict in the view is E_BAD_INPUT: <id> has no conflict in view <view>. A conflict with no accepted or rejected decision is E_BAD_INPUT: conflict <conflict> on <id> holds no accepted or rejected decision, so it has no landed side to take. A redacted landed side is E_REDACTED. The usual write checks apply too: E_KEY_CLASH, E_UNKNOWN_REF, E_VALIDATION, and E_BAD_INPUT for a parent loop.

rdy view compare

rdy view compare <a> [<b>] lists block-level differences; <b> defaults to canon's head. Text: a header <a> vs <b>, then one line per entry, or no differences.

Table 4
LineMeaning
+ <id> <type> <path>Added.
- <id> <type> <path>Removed.
~ <id> <type> <fields>Changed, with the fields named.
> <id> <type> <from> -> <to>Moved.
! <id> conflict <hash>Conflicted.

rdy view ls

rdy view ls [--all] [--stale <days>] lists live views as a table with the columns VIEW OWNER BASE CHANGES BLOCKS CONFLICTS LAST WRITE FLAGS. Flags are pinned, closed and idle. --all includes closed views. Under the table, it then prints one closed <view>: <reason> line for each closed view with a reason, and JSON gives it as the view's close_reason. --stale overrides the project's views.idle_days for the idle flag.

rdy view show

since 0.26.0

rdy view show <view> prints the view's head line first. Then come changes:, one line per change as <hash> <actor> <message> [<blocks>], and conflicts: lines. A replayed change's line ends with replayed from <source>, the short hash, and JSON gives replayed_from, a full hash or null. Last come ops: lines, <hash> <kind> (undone) <actor>, for the chain since its last checkpoint. An op with a reason adds : <reason>, so a close reads <hash> close <actor>: <reason>, and JSON gives it as the op's reason. An unknown view is E_NOT_FOUND.

rdy view close

since 0.22.0

rdy view close <view>… [--reason <text>] closes a view: it no longer rebases or takes commits or proposals. Nothing is deleted; rdy undo reopens the view, but not the proposal that the close withdrew. rdy view close --stale <days> closes every idle view and lists them, or prints closed 0 views. It is a person's act: an agent session relays it with --relayed-by <actor> --evidence <quote>, and --question and --session need them. The relayed close runs as the person, keeps the person's default view open, and adds a relayed by <actor> (run <run>) line. Without a run, the line names the actor alone. Prints closed <view> (<reason>) per view.

rdy view own

since 0.22.0

rdy view own <view> <actor> [--run <run>] | --none reassigns or clears a view's owner. rdy checks the owner's actor against the actor form and its run against the run form. --run without an owner is E_BAD_INPUT. An old three-part agent value, such as agent:a/b/c, fails the actor form, with the fix pass the run with --run.

It is a person's act: an agent session relays it with --relayed-by <actor> --evidence <quote>, and --question and --session need them. The relayed act runs as the person. Prints view <name> owner <actor> (run <run>), with the actor alone for an owner with no run, or view <name> owner none. A relayed act adds , relayed by <actor> (run <run>), with the actor alone when the relayer has no run.

rdy undo

rdy undo [--view <view>] [<op>] [--cascade] appends the inverse of a view operation. Without <op> it undoes the session's latest undoable op on the view; <op> is a hash prefix of 7 or more characters on the view's chain. Prints undid <kind> <hash>: <effect>, rebased onto canon, then any conflict lines. An undo that would orphan dependents is E_UNDO_BLOCKED unless --cascade; a rebase, or an undo that would re-include or exclude landed work, is E_UNDO_LANDING; nothing to undo is E_NOTHING_TO_UNDO. A closed view takes no undo but the undo of its close (E_VIEW_CLOSED). The changes of one import undo and redo together, as one group; rdy view exclude takes out one of them.

rdy intent

rdy intent post|renew|withdraw|list manages intents: post takes --area <area> or --blocks <id>…, --angle <text> and an optional --ttl; list filters by area, block, actor or view. Expired intents are hidden unless --include-expired. Renewing or withdrawing an expired intent is E_INTENT_EXPIRED.

rdy alt

rdy alt create|add|remove|ls|compare|abandon manages alternative sets. create takes a title, an optional question and the member views; compare shows each member against canon side by side with its tensions; abandon takes a reason and closes every member view. add and remove change only an open set, and a set keeps at least two members.

Proposals and approval

These commands take a change from proposal to landing, and settle what comes up on the way.

rdy propose

since 0.32.0

rdy propose --title <title> [--view <view>] [--summary <summary>] [--alt <set> --chosen <member>] puts the view's changes forward for canon. --summary sets the author's summary that leads the approval card. --alt names the alternative set, as as-<id>, and --chosen names the view's own member of it. Pass both or neither, else the command fails with E_BAD_INPUT. It prints proposal <ref> (<n> changes), then these lines when they apply:

  • summary: <summary>.
  • chooses <member> of <set>, for a member view of an alternative set.
  • blocking: <k> conflict(s) on blocks this proposal writes.
  • tensions: <n> (<k> would refuse the landing), with the refusing ids after a colon when there are any.
  • The write's report, with the coverage change, and a not worked out: line for the tensions or the coverage change.
  • new key <id>: <key> (another block holds the key rdy derived).
  • warning <CODE>: <message> per warning, such as W_UNAPPLIED_DECISION. A W_RULE_CHECK warning adds an indented fix: <fix> line, in rdy approve too.

It ends with ready, then policy: <the Policy fact>. When the policy accepts the version, land with: rdy land <ref> follows. Last comes approve with: rdy approve <ref>. A version that is not ready ends with not ready: <n> issue(s) instead, then one line per issue, <code> <block or ->: <message> (fix: <fix>), and no approve with: line. JSON: the result of rdy_propose, with ready, issues, assessment and policy. A view with nothing to propose is E_BAD_INPUT.

After the tensions: line, the report names each advised tension that no person has accepted. Each gets an advised to block: <tension> by <reviewer>: <advice> line. Advised tensions past the cut give and <n> more advised to block (rdy show <ref> lists them). Then accept the advice with: rdy resolve --accept <ref> --digest <digest> gives the command for the set shown.

since 0.34.0

An agent session proposes the person's own view on their word: rdy propose --title <title> --relayed-by <actor> --evidence <quote> [--question <text>] [--session <ref>], under its own $RDY_ACTOR. The person's view is one they own, or work. The proposal then records the person, and an ANSWER record holds the relay. The first line ends with , relayed by <actor> (run <run>), or the actor alone when the relayer has no run. A relay of any other view is refused.

since 0.32.0

A second rdy propose on the same view makes a new version under the same stable id, written P-x@n. The report says whether the version is ready for approval. If it is not, it lists each issue with its fix: unresolved conflicts, blocking tensions, unjustified changes, a failed pack check, a change with no briefing, a missing summary, open change-plan items or unanswered tension items. It also lists the consequences for canon of landing it, with a follow-up each.

since 0.29.0

The report adds a change plan: <open> open, <closed> closed, <deferred> deferred line, then one line per open item. The CLI has no plan_answers flag: rdy plan records the answers first.

rdy plan

since 0.29.0

rdy plan [--view <view> | --proposal <P-x@n> | --landing <hash> | --decision <id>] [--max-tokens <n>] [--page <cursor>] prints a change plan, as rdy_plan reads it, with the same max_tokens and page. Each item prints as <id> <kind> <subject>: <state> (<cause>), with its outcome in place of the state when sealed, and an answer's reason follows, indented. With --decision, each seal prints <landing> <version>: <n> items, then an indented <outcome>: <n> line for each outcome it holds. It ends with a <kind>: <open> open, <closed> closed, <deferred> deferred line per kind. Then comes code: <n> files or code: unavailable, and next: <cursor> on a cut page. JSON: the result of rdy_plan.

since 0.32.0

rdy plan confirm|defer|done|dismiss <item>… [--reason <text>] [--view <view>] records answers, as rdy_plan with answers does. An item is a pi- id, the tn- id of a tension item or a cq- id. confirm, defer and dismiss need --reason, and only a tension item takes dismiss. It prints answered <id>: <act> per item. An item outside the plan fails with E_PLAN_ITEM.

since 0.32.0

In place of items, --kind, --follow-up, --doc and --edge name a group, as the group of rdy_plan does. The act then answers every open item that matches each flag given, and the command prints answered group: <act>. --repin with confirm and a group also repins each matched subject in one change. With --repin, the command takes the justification flags of rdy edit: --implements, --editorial <class> <reason>, --reflects and --reflects-code. On stable normative content a repin without one is refused, and nothing is written.

rdy approve

since 0.22.0

rdy approve <proposal> [--relayed-by <actor> --evidence <quote> [--question <text>] [--session <ref>]] [--strict] lands a proposal. A human session approves as the human actor, and may not pass --relayed-by. An agent session approves only to relay a person's approval, under its own $RDY_ACTOR, with --relayed-by set to that actor. <proposal> is P-x, which resolves the latest version, P-x@n, which pins one, or a full version hash. The chat path is rdy_answer, and this command is its fallback.

since 0.22.0

Text: approving P-x@n: <title> (<k> change(s)), then summary: <summary> when the version has one. Then comes landed <hash> (P-x@n), with , relayed by <actor> (run <run>) when relayed, or , relayed by <actor> when the relayer has no run. A landing that chose an alternative adds chose <member> of <set>, then ; closed <view>, … for the member views it closed. Then come the consequences, one rebased <view>: <n> conflict(s) line per rebased view with conflicts, the new key lines as rdy propose prints them, and warning <CODE>: <message> lines.

JSON: {landing, approved, version, title, summary, changes, assurance, warnings, rebased: [{view, dropped, conflicts}], chosen?, closed?, keys?, consequences, relayed_by?}. chosen is {set, member}, and closed lists the member views that the landing closed. keys maps a block id to the key rdy derived again, because a block that landed since the proposal holds the first one. relayed_by is {actor, run}, the relayer as recorded.

since 0.22.0

--relayed-by and --evidence go together; --question and --session need them. A relay must name an exact version; P-x alone is E_BAD_INPUT. The landing records assurance: relayed, the human actor as approved_by, the session's actor and run as relayed_by, and the relay evidence. --session defaults to cli. Without the flags the landing records assurance: local.

since 0.41.0

A version that is no longer the latest is refused with E_PROPOSAL_MOVED, which names the newer version. Canon that moved under the approval is accepted when no landing since the version's assessment changed a block in its reach. The pack and the gate config must also be unchanged, and each key that the landing would assign must equal the assessed key. Otherwise the command refuses with E_PROPOSAL_MOVED. When the version is still ready, rdy writes a fresh assessment, and the error prints its card for the person to approve again. --strict, or require_up_to_date in the project configuration, refuses every moved base, with no fresh card. The gate's checks are in The gate and approvals.

A version that is not ready is refused with E_PROPOSAL_NOT_READY. Its issues list each failed check in the queue's order, each with its own code and fix, such as E_CONFLICT_UNRESOLVED or E_BLOCKING_TENSION. A version with no stored assessment, such as one proposed before rdy 0.29.0, gets the issue <P-x@n> has no stored assessment. The command reports the landing only: everything to address appeared on the card. A merge that clashes at the landing is an issue of E_PROPOSAL_NOT_READY on the other approval paths. Until a fix ships, rdy approve refuses it with E_VALIDATION instead.

since 0.4.0

A withdrawn version is refused with E_VIEW_CLOSED: <ref> was withdrawn when view "<view>" closed. Propose again from the reopened view, or from another view.

since 0.32.0

Every approval waits for the exceptions. A version with an exception that has no confirm answer is refused with E_EXCEPTION_OPEN, which names each exception and carries its card. A version that holds a decision the person rejected is not ready. E_PROPOSAL_NOT_READY refuses it, with an E_VALIDATION issue that reads <id> was rejected; drop or revise it, then propose again. A version that writes no decision skips both checks. The defer card check applies to every version.

since 0.32.0

A version whose defer card has no answer is refused with E_DEFERRAL_OPEN, which carries the card. A version whose deferrals the person refused is not ready, as for a rejected decision. E_PROPOSAL_NOT_READY refuses it, with an E_VALIDATION issue that reads the deferrals of P-x@n were refused, with the fix close the items and propose again. A rejected re-affirmation of a one_way decision is an E_VALIDATION issue too. It reads <id>'s re-affirmation was rejected, with the fix drop the re-affirmation and propose again. An advice that the person accepted on a tension of the version after its assessment is a later refusal too. Each accepted tension gives one E_BLOCKING_TENSION issue, with the text and fix of the landing check. A check verdict that the person accepted as blocking for the version is a later refusal too, with one E_VALIDATION issue.

since 0.30.0

An approval from a person outside the policy role that the authority policy requires is refused with E_PERMISSION. This covers who may accept the deferrals of a version.

rdy resolve

rdy resolve <tension> --dismiss <reason> dismisses a tension: it writes a review with verdict dismiss. A blocking tension, or a semantic one a reviewer advised to block, needs a reviewer-role or human session. Another session gets E_PERMISSION. An actor who wrote a side gets E_SELF_REVIEW. A change that removes its trigger resolves a tension. Prints dismissed <id> (review <short>).

since 0.34.0

An agent session relays a person's dismissal with --relayed-by <actor> --evidence <quote>, and --question and --session need them. The dismissal then runs as the person, so the rules judge the person. An ANSWER record holds the relay, and the command prints dismissed <id> (review <short>, relayed by <actor> (run <run>)), with the actor alone when the relayer has no run.

since 0.2.0

rdy resolve --mention <block> <entity> --dismiss <reason> dismisses a passing mention, and --restore <reason> restores a dismissed one. --scope <scope> names where rdy checks the mention, by default your view. Prints dismissed the mention of <entity> in <block> (review <short>) or restored the mention of <entity> in <block> (review <short>). The rules are those of rdy_resolve.

since 0.34.0

rdy resolve --accept <P-x@n> --digest <digest> [--tensions <tn>,…] accepts the reviewers' advice to block, as rdy_resolve with accept does. It is the fallback for the chat path, where an agent relays the person's answer. --digest is the advised digest that rdy propose or rdy show P-x@n printed. A human session accepts plainly, as itself. An agent session relays the person's answer under its own $RDY_ACTOR, with --relayed-by <actor> --evidence <quote>. --question and --session need them, and --session defaults to cli.

It prints one accepted <id> (was <old id>); it blocks until a side's content changes line per tension. Then it prints one now blocking in view <view> (<proposal>): <tension> line per place, without the proposal when the view has none.

rdy review

since 0.32.0

rdy review checks | run <check> <subject> [<second>] | request <check> <subject> [<second>] [--reason <text>] | list [--subject <subject>] [--open] is the CLI twin of rdy_review. Its help reads List, run or request authoring checks, and list their requests and verdicts. Checks inform the approval card. A subject is one block, change or P-x@n. Two values are a pair of block ids, or for diff_contradicts the decision and the code range <repo>@<from>..<to>. rdy check stays the working-copy check.

since 0.32.0

checks prints one <name> <subject> line per check. run writes an author-run request and request an independent one. Each prints requested <rq> (<check>, author-run), or independent, then case <hash> and the case as indented JSON. A decision's contradiction prints these lines for each pair. With no pair it prints no related decision pairs, and then <n> related pairs omitted when the cut left pairs out.

since 0.32.0

An agent that requests for a person passes --relayed-by <actor> --evidence <quote>, with --question <text> and --session <ref> when it has them. run takes no relay flags. list prints one <rq> <check> <mode> <status> line per request, then one indented <review> <verdict> <actor> line per verdict, with : <reason> when it has one. It ends with <n> requests omitted past 256 rows. --subject takes one value.

since 0.32.0

The wire value of the mode is author or independent. The CLI and the approval card show author as author-run, the word people read. JSON: the reply of rdy_review.

rdy pending

since 0.30.0

rdy pending [--max-tokens <n>] [--session <ref>] prints the needs-you queue for the human actor: each card, one blank line between them. Then it prints one not ready: <ref>: <message> (fix: <fix>) line per issue of each version that is not ready. When more items wait than it lists, it prints <n> more items wait: answer these first, then run rdy pending again. It ends with <n> snoozed: the cards that Later answers hide in the --session chat session. It prints the items whose required policy role holds the human actor, and every item when no policy role applies. JSON: the result of rdy_pending. Decision intake describes the queue.

since 0.48.0

The queue also holds one adopt item per live repo link whose deliveries since its last adopt or keep answer change what canon cites, or the link's instructions or set. A revoked link has none. Each adopt item is a group of its own, after the re-affirmation cards, and it never blocks. Its ref is adopt:<repo>@<entry>: the repo's 32 hex digits and the first 12 hex digits of the newest delivery's entry. Its title is Adopt the delivery from <alias>, and its facts list each changed pinned block with its old and new version and a word diff, the suspects it clears, the rebinds, the instruction changes and the open plans. Its options are adopt and keep, as rdy answer describes.

rdy answer

since 0.22.0

rdy answer <ref> <option> [--card <hash>] [--note <text>] [--brief <token>] answers one card of the queue, as rdy_answer does in chat. A human session answers as itself and records local. Its --card is optional, and without it the answer binds to the version only. An agent session answers only when it relays the person's words, with --relayed-by <actor> --evidence <quote> under its own $RDY_ACTOR. --question, --session and --kind card|text need them, and a relay needs --card. rdy answer --all-recommended <ref>… [--card <hash>]… takes each item's recommended option, and still records each item on its own.

since 0.32.0

It prints answered <ref>: <label> per item, and an approval adds the landing lines of rdy approve. The CLI has no Later. A moved item or a changed card fails with E_ITEM_MOVED, or E_PROPOSAL_MOVED for a proposal, and corrected holds the fresh card. An approval with an open exception fails with E_EXCEPTION_OPEN. An approval or answer from a person outside the policy role that the authority policy requires fails with E_PERMISSION. An approving answer to a version that is not ready, alone or in --all-recommended, fails with E_PROPOSAL_NOT_READY, and issues lists why. JSON: the result of rdy_answer. An answer on the card of a withdrawn version fails with E_VIEW_CLOSED, with no fresh card.

since 0.18.0

rdy answer reaffirm:<block>@<version> o1 lands the re-affirmation and prints the landing lines of rdy approve. o2 needs --note. rdy answer defer:P-x@n o1|o2 accepts or refuses the deferrals. --all-recommended refuses either kind with E_BAD_INPUT.

since 0.32.0

rdy answer <P-x@n> accept_verdict:<review>:<version> accepts a concern or fail check verdict as blocking, as rdy_answer does. The option id comes from the card that rdy pending prints. rdy writes an ANSWER with the act accept_verdict and the item verdict:<review>.

since 0.48.0

rdy answer adopt:<repo>@<entry> adopt adopts a delivery, as rdy_answer does. It moves the pins that the card lists to the delivered versions in one landing, in the view adopt- and the first 12 hex digits of the card hash. The answer is the approval: the landing records the person as approver and carries card evidence, as a re-affirmation card's landing does, and it checks only readiness and freshness. It prints answered <ref>: <label>, then the landing lines of rdy approve when it wrote a landing. rdy answer adopt:<repo>@<entry> keep --note <text> keeps the pins with the person's reason, 1 to 2000 characters, and moves nothing. A keep with no note is E_BAD_INPUT, and so is an adopt item in --all-recommended.

When the delivered baseline locks an instruction that a live deviation departs from, the answer is E_INSTRUCTION_LOCKED. Its fix is revoke the deviation <id> first, then answer the adopt item again.

rdy inbox

since 0.2.0

An agent shows the person's inbox in chat with rdy_inbox {person: true}. rdy inbox [--ack] is the CLI fallback. It prints one line per entry, the event then its line, and then cursor: <cursor>. --ack advances your cursor past the entries shown and prints acked. When more entries wait, it prints more entries: run rdy inbox --ack, then rdy inbox again. JSON: the result of rdy_inbox, without the person key.

since 0.2.0

The command reads the inbox of its own session: the person's, inbox/<human>/cli, or the agent's when $RDY_ACTOR is set. The first call starts the inbox at the head of the log. It prints inbox started: events from now on show here.

rdy land

since 0.30.0

rdy land <proposal> lands a ready version that the authority policy accepts, for an agent session, as rdy_land does. <proposal> is P-x@n, P-x for the latest version, or a version hash. It prints the landing lines of rdy approve, with assurance policy after the landing line. A human session is refused with E_BAD_INPUT, and the fix reads approve with rdy approve. With no policy block, it fails with E_POLICY_HUMAN.

rdy dispute

since 0.30.0

rdy dispute opens, resolves and lists disputes, as rdy_dispute does. Its forms are:

  • rdy dispute open <landing> --reason <text>;
  • rdy dispute resolve <dispute> --outcome <outcome> [--correction <landing>];
  • rdy dispute list [--landing <landing>] [--open].

A landing or a dispute is a full hash or a unique prefix of 6 or more hex digits. Each row prints <id short> <state> landing <short>: <reason>, then resolved <outcome> by <actor> when it has a resolution. list prints at most 1,000 rows, oldest first, then <n> more. An agent session adds the relay flags --relayed-by and --evidence, with --question and --session, else E_PERMISSION.

rdy policy

since 0.30.0

rdy policy init --doc <doc> [--view <view>] starts the authority policy, as rdy_policy {op: "init"} does. <doc> is the doc that holds the block: a path, a key or an id. In the session's view, it writes a proposed decision, "Adopt the <pack> authority policy", with no parent. It then writes the policy block that implements it, and proposes the view. A person approves it like any proposal.

Versions

These commands name, list and sign versions.

rdy tag

rdy tag <version> [--landing <hash>] [-m <message>] names a landing as a version; the approver role is required. <version> is a Semantic Versioning name with an optional leading v, such as v1.2.0. Build metadata is refused, and a new version name holds at most 256 bytes. The default target is canon's head; --landing targets an earlier landing by hash or a unique prefix of at least 6 characters.

since 0.34.0

A human session tags as itself. An agent session tags only to relay the person's words, with --relayed-by <actor> --evidence <quote> under its own $RDY_ACTOR. --question and --session need them. The tag then records the person as tagged_by, and an ANSWER record in the same batch holds the relay. The chat path is rdy_tag.

since 0.22.0

Prints version <name> → landing <hash>, with , relayed by <actor> (run <run>) for a relayed tag, or the actor alone when the relayer has no run. JSON: {name, tag, landing, message, tagged_by, at_ms}, and a relayed tag adds relayed_by and answer. A version whose history holds removed content also adds redacted: true and redactions. Tags and versions explains the rules.

Table 5
ErrorWhen
E_BAD_TAG_NAMEThe name is not a version, or carries build metadata.
E_BAD_INPUTThe name is longer than 256 bytes.
E_TAG_EXISTSA tag already names that version.
E_VERSION_ORDERThe version does not sort above every existing one, or its landing is earlier than the current version's.
E_NOT_FOUNDCanon has no landing, or --landing matches none.
E_PERMISSIONThe session is not an approver: an agent session passes no relay, or a human session passes one.

rdy tags

since 0.5.0

rdy tags lists versions, oldest first: <name> <landing> <message>, with (current) on the highest, or no versions yet. A version whose history holds removed content adds redacted by <hashes>. JSON: {versions: [{name, tag, landing, message, tagged_by, at_ms, redacted?, redactions?}], current}.

rdy sign

since 0.10.0

rdy sign <target> [--kind approval|relay|tag] signs an existing landing or tag through ssh-agent. <target> is a landing id, a unique prefix of at least 6 hex characters, or tag:<version>. It works when signing.sign is never. With signing on, rdy approve, rdy answer and rdy tag sign in the act's own batch. This command is for a record you sign later.

A human session signs an approval or a tag with signing.key, and must be its approver or tagger. An agent session signs the relay of a relayed landing or tag with signing.agent_key. In an agent session, --kind approval or --kind tag signs a relayed landing or tag with signing.key. It also signs a local approval that the configured person made on a card, in the UI or by elicitation. rdy then also signs the relay with the agent key, when no valid relay signature of that key is stored. --kind defaults to the person's own kind in a human session and for an agent that signs the person's card approval, and to relay for any other agent session. A policy approval is never signed (E_PERMISSION).

It prints signed <kind> of <hash> with <key>, or already signed when that key already signed that kind. JSON: the signature's check, as rdy log --verify gives it. The codes are in Signing.

since 0.9.0

Signature
A signature is an optional, detached object over one statement that rdy reads off a landing or a tag. A person signs an approval or a tag with their own key. An agent signs a relay with the machine's agent key. Each signature goes through ssh-agent, and core checks it offline. A signature never changes a landing or its assurance, so a signed relay stays relayed.

Working copy

since 0.2.0

The working copy is the project root as a tree of YAML files bound to a view. It is for people; an agent reads and writes through tool calls. "Working copy" in How rdy is built explains the layout. Every command here refuses with E_WC_NOT_BOUND outside a checkout. A command under a .rdy-worktree file that does not parse refuses with E_BAD_INPUT, and never falls back to the main working copy. A working-copy state file that does not read is E_IO.

rdy checkout

rdy checkout <view> [--force] binds the tree to a view and writes its files. It is refused with E_WC_DIRTY over uncommitted edits, and with E_WC_OCCUPIED when it would overwrite an untracked or ignored file, unless --force.

rdy add

rdy add <path>… stages files and directories, including deletions and renames, for the next commit.

rdy commit

since 0.32.0

rdy commit -m <message> [--implements <D-x> | --editorial <class> <reason> | [--reflects <source>]... [--reflects-code]] validates the staged files and records them as one atomic change in the bound view. --editorial is given once, with one class (typo, restructure or clarify) and one reason; a second one is E_BAD_INPUT. Each op's base is the version checked out. --implements names a decision by id, key or path, and may repeat. The commit links each content block it creates or rewrites to that decision, as rdy_write does.

Table 6
ErrorWhen
E_WC_STALEA block the commit touches moved in the view since checkout. Run rdy update first.
E_WC_CONFLICTA conflict is unresolved.
E_WC_INVALIDA staged file fails rdy check, holds a store-only field or link, or holds a supporting block. The diagnostics name the tool to use instead.

since 0.2.0

After the daemon acknowledges, the command rewrites every committed file in canonical form, with new ids filled in and comments dropped. The command then prints the consequences. For each stable block it touches, it cites the briefing token rdy brief recorded; a human session fetches the briefing itself, so there is no extra step. A link kind missing from a file means "not stated", so a commit never drops a store-only link.

since 0.32.0

--reflects names a source by id, key or path, and may repeat. --reflects-code records the code state of each written block that declares reflects globs. Neither goes with --implements or --editorial. The commit sends them as the reflects of rdy_write, and its JSON carries code_recorded when --reflects-code is given.

since 0.33.0

A commit that creates blocks prints briefing: <token>, after the result and before the warnings. The token covers the created blocks and records what they depend on, so a follow-up write on them needs no new briefing. In rdy commit --json, briefing holds that receipt, {token, covers}. A person's commit returns the briefing the CLI fetched before the write as cited_briefing. An agent's commit has none, and a commit that creates no block has no briefing.

rdy update

rdy update brings the bound view's changes made elsewhere, and its rebases onto new canon, into the files. A block changed on both sides is a conflict: the local file stays, the store's doc is written beside it as <doc>.theirs.yaml, and rdy status lists it. You resolve it by editing the doc, deleting the .theirs.yaml file and running rdy add.

rdy brief

since 0.41.0

rdy brief <file|dir|block> prints the briefing for the covered blocks and records its token, keyed by the covered ids, for the next commit. The sections are the ones rdy_brief returns. The briefing text and the rdy edit header print a reaches section when the briefing has one. Each line reads <decision> <via> <target>: <blocks>, and and <n> more counts reaches_omitted. They also print coverage: <score> (<dimension> <score>, …); confidence <level>, then one <code> <block>: <fix> line per reason. When rdy cannot read the coverage, they print coverage not read: <error>. After the related decisions they print neighbors:, one <block> (<via> neighbor of <of>[ through <entity>]; doc <doc>) <summary> line per row. neighbors by doc: follows, one <doc>: <count> line per doc. Each prints only when it has rows. The text prints no as-built status and no W_AS_BUILT_OVERRIDE warning; --json carries both.

since 0.32.0

The briefing text and the rdy edit header also print sources:, with one <source> <kind>: <title> (<blocks>); source <state> line per source, the blocks joined by , . <state> is found, missing or unchecked. They print findings:, with one <for> depends on <finding>: <statement> line per row. Neither heading prints when its list is empty.

rdy brief --code <path> [--scope <scope>] [--max-tokens <n>] briefs on a file in a linked code repo, as rdy_brief does with code_path. The path is relative to the repo's top folder, absolute, or relative to the current directory when it names a file in a linked repo. --scope works only with --code, and inflight is E_BAD_INPUT. The text prints the code section first, then the briefing:

  • code <path> (repos: <names>), or code <path> (no code repo linked: set code_repos in .rdy.yaml and code_paths in .rdy/local.yaml);
  • implements:, then one <block> <n> commit(s) line per block; a decision's line reads <block> [<status>] <n> commit(s), <m> depend on it, plus , provisional or , rework;
  • reflects:, then one <block> <glob> line per match;
  • unresolved: <values>, when a trailer value names no block.

An empty list prints (none). --json prints the rdy_brief result.

rdy worktree

since 0.2.0

rdy worktree add <dir> <view> creates an extra checkout bound to its own view; rdy worktree ls lists them; rdy worktree rm <dir> [--force] removes the local checkout and never the view. rm refuses with E_WC_DIRTY over uncommitted edits, unless --force. It refuses with E_BAD_INPUT a directory that is not a worktree of this project, such as a copy of one. A worktree is a human checkout; there is no agent form.

Daemon

These commands run the project's daemon and the MCP server.

rdy serve

rdy serve runs the project's daemon in the foreground. It owns the store for its whole life, and every other command is its client. A foreground daemon never idles out. rdy serve --detach starts it in the background and prints daemon running (pid <pid>) once it is ready; a detached daemon exits after serve.idle_timeout with no connections. rdy serve --stop asks a running daemon to drain and exit, and prints stopped or no daemon running. It waits up to 120 s for the daemon to exit, and after 6 s prints waiting for the daemon (pid <pid>) to finish its work and close the store on stderr.

since 0.24.0

The exit code is 0, 2 when another rdy process holds the store, else 1. rdy serve --profile asks a running daemon instead, and exits 2 only when the holder is not a daemon. Every other command starts a daemon as needed and waits up to serve.start_timeout; a daemon that does not come up is E_DAEMON_START, citing the last lines of .rdy/run/daemon.log. rdy serve --stop fails with E_DAEMON_GONE when the daemon has not exited after 120 s. "The daemon and concurrency" in How rdy is built describes the process model.

since 0.2.0

A daemon of another rdy version with other clients refuses every hello, so rdy serve --stop cannot ask it over the socket. The command then sends a stop signal to the daemon's process. It does so only when the socket record names this project's .rdy, the refusal came on that socket, and .rdy/run/daemon.pid holds that process's pid. It prints the daemon is another rdy version and has other clients; sent a stop signal to its process <pid> on stderr, then waits as above. When it cannot tie the process to this project, it fails with E_DAEMON_VERSION.

since 0.24.0

The daemon also serves the live site, and a live page in view counts as a connection for serve.idle_timeout. A foreground daemon logs to stderr, and a detached one to .rdy/run/daemon.log. Each line starts with the time in milliseconds and rdy serve:. The site's lines are these:

  • site: <url>, the loopback link, such as site: http://127.0.0.1:51234/;
  • site: could not listen on 127.0.0.1 (<error>); the site is off until the daemon restarts;
  • site: could not listen on [::1] (<error>); the site answers on 127.0.0.1;
  • site: warning: anyone on your network can read these docs at <lan url>; fix: set serve.site_lan to false to keep the site on this machine;
  • site: <message>; fix: <fix>, when serve.site_lan is on but the site stays on this machine;
  • site: <scope>: warning: <text>, once for each new render warning of a scope, where a profile route or a profile-only site gives its root path as the scope;
  • site: profile <key>: <url>, when a profile-only site opens. Its W_SITE_LAN lines follow in the forms above, with the profile's wording, then site: warning: <message>; fix: <fix> for its W_SITE_PROFILE caveat;
  • site: warning: canon no longer holds the profile "<key>"; its profile-only site serves no page; fix: land the profile again, or run rdy serve --stop to end the site, when a landing removes the profile.

since 0.24.0

rdy serve --profile <key> starts a profile-only site: canon through that publication profile, on a second port of the daemon. The value is a key in any case, an id or implicit:org. When no daemon runs, it runs one in the foreground, as rdy serve does, with the full site and the profile-only site. When a daemon runs, it asks that daemon and exits 0. A second call for the same profile prints the same link. The site lasts until the daemon exits, and rdy serve --stop ends it.

Text: profile site <key>: <url>, with the profile's key in lower case or implicit:org. The LAN URL follows while the site is open to the network. Then one warning: line follows for each entry of warnings, with the profile-only caveat last. The W_SITE_LAN warning goes to stderr, as for rdy site. JSON: the rdy_site reply on one line.

It is the CLI twin of rdy_site with only. A key that canon does not hold is E_NOT_FOUND, and no port opens. --profile does not combine with --stop or --detach.

rdy mcp

rdy mcp serves the MCP tools over stdio for the project named by --project, until stdin closes. An agent harness is configured as rdy mcp --project <dir>. It prints nothing on stdout but the protocol. Its exit code is 0 when stdin reached end of file and the proxy closed its side of the socket before the daemon did. Otherwise it is 1.

The command is a proxy to the project's daemon, so many agents share one store. A request line over 16 MiB is refused with E_LIMIT before it reaches the daemon. rdy mcp --no-daemon serves the store in this process instead.

Without --project, rdy mcp serves the nearest project, found from a working-copy pointer, .rdy.yaml or a .rdy directory. The home directory, whose .rdy holds the default meta project, counts only with .rdy.yaml or a store. With no project, rdy mcp serves the person's meta project, and every tool acts on it as on any project. rdy_instructions then reads it once, as the person layer.

With no meta project either, rdy mcp serves only rdy_session and rdy_instructions, and it opens no store. rdy_instructions gives an empty reply with the creation hint. Every other tool, and rdy_session with areas, is E_NO_PROJECT. Once the person creates the meta project, a new connection gets the full server. An explicit --project, a damaged pointer or a partial project keeps its own error, and rdy never falls back to the meta project.

since 0.49.0

rdy mcp --http-config prints the endpoint of MCP over HTTP and the project's bearer for a client's configuration, then exits. The bearer is a secret, and this command is the one place where rdy shows it. Text is two lines: url: <url> and Authorization: Bearer <token>. With --json, it prints exactly {"url":"<url>","headers":{"Authorization":"Bearer <token>"}}, in that key order. The URL is http://127.0.0.1:<port>/~mcp, on the port that the full site has bound. Plain rdy mcp stays the stdio server.

since 0.49.0

The command needs the project daemon, and it starts one when none runs. It never turns the setting on. MCP over HTTP serves only while serve.mcp_http is true in the user or local config. rdy makes the token at the daemon's first start and keeps it in the private file .rdy/run/mcp-token. When the site takes a port that the operating system assigns, the URL changes at each start. Set serve.site_port for a URL that stays the same.

--no-daemon is E_BAD_INPUT, MCP over HTTP needs the project daemon. With the setting off, the command fails with E_SITE, MCP over HTTP is disabled for this project. Its fix is set serve.mcp_http to true in user or local config. A token file that is not valid is E_SITE, the project's MCP token is not a valid private token file. Its fix is stop rdy, remove .rdy/run/mcp-token, then run rdy mcp --http-config. With the site off, the command gives the site's own error. A failed print is E_IO, could not print the MCP configuration: <error>.

Render

These commands build pages from a scope and check a publication.

rdy render

since 0.8.0

rdy render --out <dir> [--scope <scope>] [--profile <profile>] writes the static site for the scope. <dir> must be new, empty, or a site rdy rendered before, which it replaces as a whole. Prints rendered <n> pages, <n> permalinks and <n> assets to <dir> and a warning: line for anything it left behind. JSON: {pages, assets, redirects, warnings}. The inflight scope is E_BAD_INPUT; render canon, a view or a version.

since 0.8.0

--profile renders only what a publication profile selects: its id or key, or implicit:org for every doc. A profile reads canon, a tag or a landing only. Without --profile, the site is the full source, even when the project stores profiles. A public profile with references outside its selection is E_PUBLICATION_REFERENCE, and the render writes nothing. An org profile with such references gives the first warning: line.

since 0.8.0

The site includes llms.txt, an index, and llms-full.txt, the full reader text; both carry only text a reader sees. A render of a tag: scope labels every page as that frozen version. With --profile, the label is the chosen tag's name alone, and a profiled render of canon or a landing has no label. "The site" in How rdy is built states what every page promises.

since 0.34.0

rdy site

since 0.34.0

rdy site [--scope <scope>] [--profile <profile>] prints the link to the live site, and the person opens it in a browser. It is the CLI twin of rdy_site. The scope is canon (the default), a version as tag:<version>, a view name, view:<name> or proposal:P-x@n. proposal:P-x follows the latest version. A view or a proposal version opens in review mode. --profile gives the scope's link through a publication profile: its key, its id or implicit:org. A view or a proposal version then opens in review mode through the profile. Pages update by themselves as the scope changes. A profile-only site starts with rdy serve --profile.

since 0.14.0

Text: the URL on one line, then changes: <url> when the site has a diff summary for the scope. The LAN URL follows while the site is open to the network. One warning: line follows for each entry of warnings, the profile's reference warning first, as rdy render prints them. The W_SITE_LAN warning goes to stderr as warning: <message> and fix: <fix>.

JSON: the result of rdy_site, {url, scope, profile?, changes?, lan_url?, lan_changes?, warning?, warnings?, mcp_url?}. rdy site never starts a profile-only site, so the reply has no profile_only. Without a daemon, or with the site off, the command fails with E_SITE. A landing, inflight, a view named . or .., or a version name over 256 bytes is E_BAD_INPUT. A profile that the scope does not hold is E_NOT_FOUND.

since 0.49.0

While MCP over HTTP serves, the JSON reply adds mcp_url, the full loopback endpoint that rdy mcp --http-config prints. A reply through a profile names the full endpoint too, never the profile site's own port. The reply of rdy serve --profile adds it the same way. The text output does not print it.

For example, rdy site --scope proposal:P-3f9a1c@1 prints the review link for that proposal version. An agent puts that link in the message that asks for the approval.

rdy publication check

since 0.41.0

rdy publication check --profile <profile> [--scope <scope>] [--against <baseline> | --against-baseline <file>] [--release <version>] checks a publication profile: the docs it selects and the references that leave the selection. <profile> is an id, a key or implicit:org. --scope is canon (the default), tag:<version>, landing:<hash>, a view or proposal:P-x@n. --against is canon, a tag or a landing. --against-baseline names a baseline file in its place. --release is the candidate's product version, as release is on rdy_publication_check. It is the CLI twin of rdy_publication_check, and it writes nothing.

since 0.47.0

since 0.41.0

Text: Publication profile <key>: <status>., or Implicit publication profile (org): <status>. The status is the report's aggregate status: clear, warning or blocked. Then come <n> blocks in <n> docs and <n> folders., References outside selection: <n>. and Links outside selection: <n>. The last counts link edges to targets outside the selection, which never change the status. With --release, Release: <version>., Blocks after release: <n>. and Decisions after release: <n>. follow. With --against, Profile revision changed: yes. or no. follows. Then Disclosure changes: gives the counts of added, removed and changed docs, changed folders, changed blocks outside docs, attachment changes and new references. When the report cut a list, the last line reads Some rows are omitted. Counts include every row. JSON: the report of rdy_publication_check. A blocked status is a result, and the command exits 0.

since 0.14.0

--against compares the profile with a baseline that you name. The baseline must hold the same profile id and audience. A baseline without that profile fails with E_NOT_FOUND, also for a profile that only a view or a proposal holds. The live site's review differs: there a side without the profile selects nothing, so every selected doc reads New. Core keeps no publication record, so the check cannot find the last publication, and it authorizes nothing. A local render or export of the same profile is still not a publication.

since 0.52.0

since 0.53.0

since 0.53.0

since 0.53.0

since 0.41.0

--release makes the check a release preflight. Run it on the tag before you publish. rdy publish takes no release and runs only the reference check. A bad --release value fails with the codes, messages and fixes of rdy_publication_check.

Export, dump and clone

These commands move content between a project and other places: files, dumps, clones and remotes. The section also holds the related key, ADR and upgrade commands.

rdy export

since 0.51.0

rdy export --out <path> --format pdf|html|md [--layout mkdocs|techdocs|single] [--assets <dir>] [--scope <scope>] [--profile <profile>] prints the docs for people to read: one PDF file, one HTML file, a Markdown tree, or one doc as one Markdown file. A print holds a title part, then every folder and doc page in tree order, then the glossary when the site has one. The title part names the project, its description, the version label and the scope, except in a profiled print. A print leaves out what acts on the site, such as navigation, search, review marks and "Why?" trails. A drawn diagram prints as its caption, then its source in a code block in the diagram's language, with no drawing. D2, and a Mermaid diagram that rdy does not draw, print as the site shows them: the language label, the source, then the caption.

The Markdown tree mirrors the folder tree, with one .md file per page. Refs become relative links, and ids appear only in front matter. --layout mkdocs puts the tree under docs/ and adds a mkdocs.yml whose nav follows the folders. --layout techdocs writes the same tree for Backstage TechDocs: its mkdocs.yml also names docs_dir: docs and the techdocs-core plugin. Each Markdown file of that tree carries the line <!-- generated by rdy, edit in rdy --> after its front matter. mkdocs.yml starts with # generated by rdy, edit in rdy, and figure files keep their bytes. The plain and mkdocs trees carry no such header. Core never writes to git; a team pushes the tree with its own CI.

For pdf and html, --out is a file that must not exist. For md, it is a directory that does not exist or is empty, and with --layout single it is a new file. --layout is valid only with --format md. A PDF is A4, and a character that its fonts lack prints as ?, with a warning. Except with --layout single, it prints exported <n> docs in <n> folders as <format> to <path> (<n> bytes), with , <n> pages for a PDF. A warning: <text> line follows for each warning.

JSON: {out, format, docs, folders, assets, pages, bytes, warnings}, where pages is null except for a PDF. --layout single also gives layout, as its paragraph below says. rdy export refuses the inflight scope with E_BAD_INPUT; it exports canon, a view or a version.

since 0.42.0

since 0.6.0

A print shows a removed block as the notice "Content removed." in its place. A removed doc or folder takes the notice as its title. The Markdown tree names its file or directory by its id. A figure prints as the same notice when its blob lost a chunk to a redaction. The chunk may be the blob's own, or one it shares with a removed blob. The print writes no file for that blob, and the export goes on.

since 0.8.0

--profile prints only what a publication profile selects: its id or key, or implicit:org for every doc. It reads canon, a tag or a landing only. The title part then holds the profile's title and description. Its only label is the name of a tag you chose with --scope tag:<version>, marked redacted when that tag's history holds removed content. At canon or a bare landing, the print has no label and no scope line. Without --profile, the print is the full source, even when the project stores profiles.

A public profile with references outside its selection is E_PUBLICATION_REFERENCE, and the export writes nothing. An org profile with such references gives the first warning: line.

since 0.51.0

--layout single writes the one doc that the selection holds as one Markdown file. --out is then a new file. Folders and the glossary do not count as docs, so select the doc with --profile. The file starts with # <doc title> and the doc's lede. It has no front matter, anchor lines, generated-by line, title part, captions or labels. A top section is ##, and each deeper level adds one #, up to six.

A ref, or a link to the doc's own page with a fragment, becomes a #slug link when its target is in the doc. The target must be outside every collapsed section. The slug is GitHub's slug of the nearest heading at or above the target, with -1, -2 and so on for a repeat. Any other ref is written as its label, with a warning.

A collapsed section is <details>, with its title in <summary><b>…</b></summary>. A figure with a dark image is a <picture> element, and an image from another host keeps its Markdown. The file is UTF-8 with LF line ends and one final newline, so equal inputs give equal bytes.

It prints exported 1 doc as md to <path> (<n> bytes), then one warning: line for each warning. The JSON reply is {out, format, layout, docs, folders, assets, pages, bytes, warnings}, with layout single, docs 1, folders 0 and pages null. assets counts the image files written. A selection of more than one doc is E_BAD_INPUT, a single-file Markdown export takes one doc; the selection holds <n>, fix choose a profile that selects one doc. An --out that exists is E_ALREADY_EXISTS, <path> exists; rdy export never overwrites a file. rdy_export takes the same layout: "single" and assets.

since 0.51.0

A figure needs --assets <dir>. <dir> is a relative folder below the folder of --out, absent or empty. It has no .. part and no part that is a link. It neither holds --out nor enters the project's .rdy. rdy checks both paths before it writes. It makes the folder, writes the images, and creates the Markdown file last, so it never replaces a file. On a failure, it removes only the files and folders that it made.

Each image file is named by the SHA-256 of its bytes and its media type's extension, such as .svg, and equal bytes share one file. A figure with a dark image writes both images. With no figure, --assets writes nothing. The refusals are E_BAD_INPUT:

  • a figure without --assets: figure <id> needs --assets <dir>, fix pass --assets with a folder beside the file;
  • a path that is not a folder below the folder of --out: --assets <path> must be a folder below the folder of --out, fix pass a relative folder path with no .. part, such as assets;
  • a folder that is not empty: <path> is not empty, fix choose an empty directory (or one that does not exist yet) so no stale files mix into the export;
  • a file at that path: <path> is a file: --assets names a folder, fix pass a folder path such as assets;
  • --assets with another format or layout: --assets applies to --format md --layout single only, fix drop --assets, or export with --format md --layout single.

A ref that is written as its label gives warning: <doc path>: <block id>: the ref to <target id> is not in this file; it is written as its label. The JSON reply holds the same string, and the text reply prints its warning: once.

since 0.5.0

Export
rdy export is print-like output of the documentation: PDF, single-file HTML, or a Markdown docs tree that mirrors the folder tree with relative links and an optional MkDocs layout. --profile limits it to what a publication profile selects. Core never writes to git; a team pushes exported Markdown with its own CI.

rdy import

since 0.34.0

rdy import <dir> --view <view> reads a format-3 tree into the view, in a writer session. It writes into a view, never into canon. Each change keeps its source author, and imported_by names the session that ran it. A proposal version that carries an imported decision status needs a person's approval. Prints imported <n> blocks into view <view>, with in <k> changes, one per author when there are several changes. Then it prints warning <CODE>: <doc title> (<id>): <message> per warning, and the write's report. JSON: the write's result, where changes lists every change the import wrote, oldest first, and change is the last. A file that fails the checks is refused with the diagnostics, and import skips what .rdyignore lists. File formats defines the tree.

Import
rdy import reads a format-3 tree, or a folder of Markdown with --md, into a project. A format-3 import writes one change per author that the export names, each with its author's time. A Markdown import names the importing session as the author of each block. Each message names the importer, and names the import directory by its name, never by its path. The Markdown import maps structure only and infers nothing. An agent then links facts to entities and decisions with the guide's migration steps and the write suggestions.

since 0.2.0

Import writes one change per author that authors.yaml names, oldest first, each with its author's time. Changes with the same time keep the order of authors.yaml. Blocks without an author go in a last change, the importer's. Each change's message names the importer, and the view stays the importer's.

since 0.20.0

Import checks each decision's time fields and its delegated attestation before it stores a blob or a change. A value of another form refuses the whole import with E_VALIDATION, as a write would.

Import ends with the view's baseline coverage. After the warnings, the text prints one onboarding line, as rdy coverage prints it, and then the write's report. JSON coverage is {score, dimensions, pages}, the baseline with the 20 lowest pages. JSON onboarding is the path as rdy_coverage gives it. When rdy cannot read either, JSON omits both and coverage_error says why; the import still stands.

since 0.49.0

rdy import --md <dir> --view <view> reads a folder of Markdown instead. Folders become folders and files become docs, with the key from the path. A doc's title comes from front matter, else the first heading, else the file name. Headings become sections, paragraphs and lists prose, fenced and indented code code, and tables tables. A relative link becomes a ref, and so does a link that starts with / and names one Markdown file from the source root. Import never infers a link, a decision or a block type that the source does not state, and it reports each element it could not map. An element it cannot map, a broken local link and an unknown front-matter key stay as literal text with an unmapped row.

since 0.49.0

--dry-run previews a Markdown import and writes nothing. It prints previewed <n> blocks for view <view>, nothing written. After that line, and after the line of a real import, the text adds source digest: <digest>, mapped: <files> files, <blocks> doc blocks and unmapped: <n>. One line, <path>:<line> <kind>, follows for each unmapped row.

--expected-source <digest> takes the source digest of a preview. When the source differs, the import refuses with E_BAD_INPUT, the Markdown source changed after preview. --dry-run and --expected-source need --md. Without it, the command is E_BAD_INPUT, dry_run and expected_source require md: true.

since 0.49.0

rdy reads the source once and checks every bound before it reads past it. A source over a bound is E_LIMIT, Markdown import exceeds <bound>: <limit>. File formats lists the bounds, the front matter and the source digest. Each new block names the importing session as its author. A refused import leaves the project unchanged; Errors and warnings gives the one exception.

JSON for a preview is {dry_run, source_digest, files, blocks, unmapped}. JSON for an import is the reply of a format-3 import, with source_digest, files and unmapped added. A files row is {path, doc_key, blocks}, and an unmapped row is {path, line, kind}.

rdy dump

since 0.10.0

rdy dump <file> writes the whole project as one verified stream of store objects, with its history, open views and tags. rdy dump --out <file> does the same, and the command takes exactly one of the two paths. A dump has no scope. rdy export prints the docs for people to read, and no command writes an export tree of export format 3.

since 0.13.0

It prints dumped <n> batches and <n> frames, with <n> project files, to <file> (<n> bytes). JSON: {out, dump_format, kind, store_format, repo_id, base, end, end_batch, digest, removals, first_removed, batches, frames, files, bytes}, where files lists the project files it carries. kind is full or increment, and store_format is the store's features, as {"features": {...}}. base, end and first_removed are {segment, offset}, and first_removed is null when the dump removes nothing. end_batch is the marker of the last batch, and digest is the trailer's digest. A host keeps repo_id, store_format, end, end_batch and digest to follow the dump with an increment. <file> must not exist, and its directory must exist outside the project's .rdy. An increment checks its <out> the same way, even one with no batch to write. The dump writes <file>.partial-<pid>, syncs it and links it into place, so <file> is a whole dump or nothing. The command runs through the daemon, and writes continue while it runs. The dump holds the state that the daemon last published.

since 0.13.0

rdy dump --after <file> <out>, or rdy dump --after <file> --out <out>, writes an increment of this project: the batches after the end of the dump or increment <file>, whose header and trailer alone it reads. It prints dumped <n> batches and <n> frames after <file>, with <n> project files, to <out> (<n> bytes). When the project took no batch after that end, it checks <out> as a full dump does, then prints nothing after <file>: the store ends at <segment>.<offset>. It then writes no file and exits with success, and JSON out is null. The other JSON fields then give that end as base and end, the end batch and digest of <file>, zero counts and no files. A file it cannot follow is E_DUMP_CHAIN, and a removal during the export is E_REDACTED_STATE.

rdy load

since 0.10.0

rdy load <file> [<dir>] rebuilds a project from a dump in a directory with no store. That is a new directory, or a project whose .rdy/store was moved aside. It verifies every object by hash and keeps every hash, landing and tag. It then builds the index and runs fsck. Loading into an existing project is planned for a later release.

since 0.13.0

rdy load <file> [<dir>] [--then <file>]... [--stop-at <position>] loads a dump chain. <file> is the full dump, and each --then names the next increment, in chain order, at most 4096. --stop-at takes landing:<hash>, tag:<name> or pos:<segment>.<offset>, and it works on a full dump of format 3 or 4 alone too. The load ends at that batch end and leaves no partial batch. A malformed stop is E_BAD_INPUT, and a stop over 1,048,580 bytes is E_LIMIT, before the load opens a file. A broken chain is E_DUMP_CHAIN, and a stop the load cannot keep is E_LOAD_STOP.

since 0.13.0

<dir> defaults to --project, else the working directory. The command runs in its own process, as rdy init does, because the target has no store yet. It prints loaded <n> batches and <n> frames into <dir>: <n> landings, <n> versions, <n> views; fsck ok, then next: run rdy checkout to bind a working copy; a dump carries none. A stopped load adds , stopped at <segment>.<offset> before ; fsck ok. JSON: {project, dump_format, store_format, batches, frames, files_written, files_kept, landings, tags, views, fsck, chain, stopped_at, next}. store_format is {"legacy": <n>} for a dump of a scalar store, or {"features": {...}}. chain lists each file as {file, kind, base, end}, and stopped_at is {position, landing, tag} or null. The load writes each project file that the target lacks, and keeps a file with the same bytes.

since 0.13.0

A load that stops before a removal prints one warning per carried record: W_STOP_BEFORE_REDACTION: <message>, fix: <fix>, and a target: <target> line per target. JSON adds warnings, a list of {code, message, fix, request, apply, landing, carried, issues}, only when there is one. request, apply and landing name the source's records, carried names the new store's record, and each issue is {target} in the selector form of rdy redact. chain lists every given file, the files after the stop included. A single file of dump format 1 or 2 gives one full row from 0.0. stopped_at.landing and stopped_at.tag are null for a pos: stop.

since 0.10.0

A holder's dump loads as a holder, with no project files. The load then prints next: read the holder through the adapter at a tag, because a holder has no working copy.

since 0.13.0

The load refuses, before it writes anything, in these cases:

  • a project file at the target has other bytes than the dump's;
  • a daemon still runs for the target;
  • .rdy/store.loading exists, because another load runs or one stopped;
  • the target is inside a project's .rdy directory;
  • the headers and trailers of a dump chain do not link;
  • a chain file has damaged framing, a removal proof fails, the stop names no batch end, or a file after the stop is damaged.

A load that fails later removes what it wrote, so the target is as it was. Errors and warnings gives each refusal.

since 0.3.0

To move a project across a store format change, close every session on it first. Then follow these steps:

  1. With rdy 0.3.0 or a later rdy that reads the store's format, run rdy dump --out <file>.
  2. Run rdy serve --stop.
  3. Move .rdy/store aside.
  4. With the new rdy, run rdy load <file> ..

The help of rdy load gives the same steps, and the E_STORE_FORMAT fix gives them in short.
The rdy-core README gives this move for a person who replaces the binary. The new rdy loads the dump into a new directory with no store. The person keeps the original project and the old binary.

rdy clone

since 0.10.0

rdy clone <path|file> [<dir>] [--fork] makes a new project from a local project or a dump, in a directory with no store. It keeps the full history, verified by hash. A clone keeps the repo id and records its origin: the source's repo id, its newest version and its canon head. --fork gives the clone a new repo id and records forked_from. Cloning from a hub repo comes with the sync client.

since 0.10.0

A source is a dump when it is a regular file, and a project when it is a directory with .rdy.yaml and .rdy/store. <dir> defaults to --project, else the working directory, as for rdy load. A project clones through its own daemon, and a dump clones in this process. The clone refuses a target as rdy load does. It carries .rdy.yaml, .rdyignore and the packs, but never .rdy/local.yaml.

It prints cloned <n> batches and <n> frames into <dir>: <n> landings, <n> versions, <n> views; fsck ok. Then come the repo line and the origin line, as rdy status prints them, and next: run rdy checkout to bind a working copy; a clone carries none. JSON: the JSON of rdy load, then repo_id, fork, and origin for a clone or forked_from for a fork. A dump older than store format 12 holds no repo id, so the clone refuses it with E_DUMP. Load such a dump, then clone the loaded project.

since 0.10.0

A clone refuses a holder, from its directory or its dump, with a holder dump cannot be cloned as a project. Fix: load the dump into a new holder directory.

since 0.5.0

Clone
rdy clone <path|file> creates a project from a local project or a dump, with full history verified by hash. A clone keeps the repo id and records its origin. Cloning from a hub repo comes with the sync client.

since 0.34.0

rdy stream check

since 0.34.0

rdy stream check <file|-> [--repo-id <id>] checks one sync batch without opening a store. It runs before project discovery, config reads and any daemon, so it works in any directory. - reads standard input, and a path is relative to the working directory. --repo-id refuses a batch of another repo with E_REPO_MISMATCH.

since 0.10.0

It prints checked <n> records and <n> bytes. When the batch lists prerequisites, the line adds ; it needs <k> prerequisites from other batches or the holder, with 1 prerequisite when there is one. JSON: {header, keys, records, bytes, digest}. header is {stream_format, features, repo_id, purpose, tag, prerequisites}, with full hex hashes. keys lists each object record's {kind, hash} in batch order, with the kind in decimal. Nothing prints until the whole batch passes, and a failed batch prints only the error.

since 0.10.0

A checked batch is not a complete upload. The check proves the batch's framing and records, and that its prerequisites are exact. It does not prove that the upload holds every dependency, or that a removal is approved. A holder's take checks those over all the batches. File formats defines the batch.

rdy publish

since 0.11.0

rdy publish <tag> --to <remote> --site <site> [--keep-latest true|false] uploads one tag's publication to a publish remote. The site selects the profile, and rdy resolves that profile at the tag, never in current canon. The audience is the tagged profile's own. rdy sends the tag's full history, the rendered site's files and the record's inputs.

The hub makes a candidate publication for the named site. --keep-latest sends the publisher's choice to keep the site's latest version where it is. Without it, rdy sends none, and the hub applies its default. No option names a profile, an audience, a token or an approval. Publishing itself, audiences and authorization are rdyhub's.

since 0.11.0

Text: candidate <id>, then the candidate's link, profile: <id> or profile: implicit:org, audience: <audience> and selected: <n> blocks. Then comes disclosure review: <link>. Each settings or sign-in warning follows as warning <code>: <message>; <fix>, and each render warning as warning: <text>. JSON: the result of rdy_publish. The upload authorizes nothing: the hub's disclosure review does. A publish call makes no local receipt or record, and rdy never opens the link.

since 0.11.0

rdy never sends a request twice. A lost reply to a write, or a publish reply that breaks its contract, fails the command with E_UPSTREAM_UNCERTAIN. The error names the push id and the upload phase, because the candidate may exist. Check that push on the hub before you publish again. Through the daemon, the hub sign-ins come from the daemon's user config. After you change XDG_CONFIG_HOME, run rdy serve --stop. With --no-daemon, the upload runs in this process.

rdy remote

since 0.4.0

rdy remote list prints the remotes in effect, one line each: <name> <mode> <url> (<level>). rdy remote add <name> <url> --mode share|publish [--level project|local|user] records a remote at one config level, .rdy.yaml by default. rdy remote rm <name> [--level …] removes the entry at that level only, so an entry at another level may take effect again. rdy remote set-mode <name> share|publish [--level …] changes the mode at that level. Remote edits are offline: they change settings files and ask no hub. JSON is the result of rdy_remote.

An add or a mode change prints remote <name>: <mode> <url>, and a removal prints removed remote <name> from <level> config. An empty list prints no remotes. A second share remote in effect is E_REMOTE_EXISTS. A name already at that level is E_ALREADY_EXISTS, and a name missing at that level is E_NOT_FOUND. Warnings follow the lines. Through the daemon, a user-level edit changes the daemon's user config. After you change XDG_CONFIG_HOME, stop the daemon with rdy serve --stop.

Remote
A remote is a named rdyhub repository a project talks to, with a URL and a mode, share or publish. Name, URL and mode may be shared in the project config; hub sign-ins stay in the user's credentials.yaml. A project has at most one share remote and any number of publish remotes.

since 0.34.0

rdy auth

since 0.51.0

rdy auth sign-in --install <origin> [--machine-name <name>] starts a hub sign-in for this machine. The machine name has 1 to 64 characters, and its default is the host name, cut to 64 characters. Outside a terminal, the first call prints the sign-in card and its hash, and sends nothing. The person answers with the same flags plus --card-hash <hash> --answer confirm|cancel. An agent relays that answer with --relayed-by, --evidence and optional --question and --session-ref, as the relay table allows. A confirmed card ends this machine's saved sign-in for that install, then starts a device sign-in. A cancelled card prints sign-in cancelled for <origin>.

The pending sign-in prints sign-in pending for <origin>, code: <code> and open: <link>. The link holds no code: the person opens it and types the code there. Then run rdy auth state --install <origin> to finish.

since 0.51.0

On a terminal, rdy auth sign-in --install <origin> is one command. When stdin and stdout are both terminals, and the call has none of --json, --card-hash, --answer and --relayed-by, it prints the card and asks Sign in to <origin> as <machine>? [y/N]. y or yes, in any case, confirms, and any other answer cancels. After a confirm, it prints the pending lines and asks Open the link in your browser? [Y/n]. An empty answer, y or yes opens the link, but only a link on the install's own origin. Then it checks the sign-in at the hub's interval until it is signed in, denied or expired.

A stop between checks leaves the sign-in pending for rdy auth state. When the host name is not a valid machine name, a call without --machine-name is E_BAD_INPUT, fix pass a machine name with --machine-name, or machine_name in rdy_auth start. A hub call that finds a pending sign-in whose next check is due checks it once, as rdy auth state does.

rdy auth state --install <origin> prints the state, and checks a pending sign-in with the hub once when its next check is due. It prints signed in to <origin> as human:<handle>, signed out of <origin>, sign-in is required for <origin> or the pending lines. rdy auth sign-out --install <origin> removes the saved sign-in first, then ends it on the hub. When the hub does not confirm, it still prints signed out of <origin>, with W_UPSTREAM_SIGNOUT_LOCAL. rdy auth installs lists each saved sign-in as <origin> <state> <actor>, or prints no saved hub sign-ins. JSON is the result of rdy_auth.

rdy --json auth token --install <origin> is for a credential consumer, such as the rdyhub process. It prints one JSON line, {install, access_token, expires_at_ms, human_actor}. When the access token has a minute or less left, rdy renews it first, under the credential lock. The command runs only with --json and piped output; else it is E_BAD_INPUT, auth token needs --json and a pipe for its output. The refresh token never leaves rdy.

rdy auth reads only the user config and credentials.yaml: it needs no project, store or daemon. One sign-in per install serves every project of this OS user. Without RDY_ACTOR, the person acts as themselves. The user config's warnings follow the output, and a failure carries them as its issues.

rdy key

since 0.10.0

rdy key show prints the person's key and the machine's agent key, with each key's type and whether ssh-agent holds it. It prints three lines: person: <fingerprint> (<type>), held yes|no, the same line for agent:, then sign: <mode>. A key that is not set prints not set. An agent key that equals signing.key also prints not set, because rdy ignores it. Configuration warnings follow the three lines. JSON is the result of rdy_key_show. It asks no hub, and it asks the agent only when a key is set.

since 0.10.0

rdy key bind, rdy key retire and rdy key revoke work over the hub's key API, for a key bound to the person's hub account. Each takes --remote <name>, by default the share remote, else the only remote, else E_REMOTE_REQUIRED. Each needs a sign-in to that remote's install, from rdy auth sign-in. Through the daemon, each uses the daemon's sign-in. After you change XDG_CONFIG_HOME, stop the daemon with rdy serve --stop.

rdy key bind --kind person|agent [--label <text>] binds signing.key or signing.agent_key. The label has 1 to 64 characters; without one, the hub stores person key or agent key. rdy signs the hub's challenge under rdy-keybind-v1 through ssh-agent, checks the proof, and sends it once. It prints key <fingerprint>: pending, then confirm: <link>. The key stays pending until the person opens the link and confirms it on the hub. The person sets the key's expiry on that page, and rdy sends none.

rdy key retire <key> and rdy key revoke <key> [--compromised-since <time>] end a binding, where <key> is a public key line or its SHA256: fingerprint. rdy finds the key's hub id by its fingerprint, then asks the hub once.

Retire prints key <fingerprint>: <state>, and revoke adds revoked at: <time> and compromised from: <time>. --compromised-since is an RFC 3339 time; without it, the hub uses the time of the request. Neither command changes a local signature or a signing setting. The chat path is rdy_key_bind, rdy_key_retire and rdy_key_revoke. Core checks signatures offline; identity is rdyhub's.

rdy upgrade

since 0.26.0

rdy upgrade [dir] [--dry-run] [--json] inspects or upgrades a project's store. Its help reads Inspect or upgrade this project's store. dir names the project exactly. Without it, the command uses --project, else the nearest ancestor that holds .rdy/, and outside a project it is E_NO_PROJECT. A dry run starts or stops no daemon, and it writes no lock, backup or index. It prints store is current, or store upgrade needs <n> step(s) and one indented line per step.

since 0.26.0

A dry run of a sealed upgrade whose checks have not run prints store upgrade is pending: run rdy upgrade to finish it. An apply with work stops the project's daemon first, then runs the upgrade that "Store format and fix forward" in How rdy is built describes. It prints store upgraded; backup: <path>. An apply with no work prints store is current, and it stops no daemon. JSON gives the fields of rdy_upgrade, pending included.

since 0.52.0

Its errors are E_UPGRADE_MOVED, E_UPGRADE_BACKUP, E_UPGRADE_FAILED and E_STORE_READ_ONLY. The messages of E_UPGRADE_BACKUP and E_UPGRADE_FAILED end with ; backup: .store-upgrade-<hash>-<hash>, the backup's name beside the store, never a host path. A store of a scalar format gets E_STORE_FORMAT with the dump-and-load fix, and rdy makes no backup. rdy 0.52.0 and 0.53.0 register one step, snapshot_delta, so a dry run on a store without that feature prints store upgrade needs 1 step(s) and snapshot_delta.

Inspection

These commands check a project and maintain its store and index.

rdy check

rdy check [<path>] [--pack <name>] lints the files of a doc tree without touching the store: a doc file, a _folder.yaml or a directory. Inside a project it uses the project's pack; outside one, --pack is required. Each problem prints as <file>:<line>:<column>: <CODE> <message> (fix: <fix>); with no problems it prints ok. JSON: a list of {file, line, column, code, message, fix, severity}. The exit code is 1 when any diagnostic has severity error, else 0. Inside a checkout, the command with no path, or with a path in the working tree, lints the working copy against the bound view.

rdy fsck

since 0.52.0

rdy fsck verifies the store. It checks every hash, the dependency DAG of changes, and that every view's included set is closed under dependencies. It checks each tag record, the relay and evidence fields, and rebased_from and approved_version ids. It checks the snapshot of every project landing, off canon too. With snapshot_delta, each landing needs one canonical delta whose fold hashes to its state; without it, each SNAPSHOT must be canonical. It checks each inbox ref, and folds every TRANSITION record to check the index's open tensions and suspects. It checks each signature against its statement and its landing or tag, with no trust file. An invalid or mismatched signature fails the check with E_SIG_INVALID or E_SIG_OBJECT_MISMATCH. Past 1000 signature issues, the last issue is an E_LIMIT that counts the rest. It checks a payload that a redaction removed against its sealed apply, its foreign Removal entry or its carried record, and never hashes it. It warns with W_STOP_BEFORE_REDACTION while a carried record names a payload that the store holds. It checks that the index's assessment table and its first briefed change agree with the log. A difference fails the check with the assessment table differs from the assessment records; run rdy reindex or the first briefed change differs from the change records; run rdy reindex. It runs on the daemon's writer thread, so writes wait while it runs.

since 0.48.0

In a store with the foreign_copy feature, fsck also checks the foreign log:

  • no entry names the store's own repo;
  • each prev names an earlier delivery of the same source, a Revoked entry ends its source's chain, and each source's ref names the newest Delivery or Revoked entry of that chain; a Removal entry has no prev and is on no chain;
  • each delivery's selection equals the digest that its source's chain rebuilds;
  • each delivered version names a stored BLOCK, or a removed one that a Removal entry or the project's own redaction of that cited version authorizes;
  • no landing, change, proposal, view op, signature or tag names a foreign entry or a version that only an entry holds, except as the target of a ref, link or pin;
  • each foreign pin names the content of a version that a delivery of its repo holds, and each version that a Removal names is one that a delivery holds.

A broken rule fails the check.

since 0.10.0

It prints ok: <n> frames, <n> landings, <n> versions, then the open report's warnings. A note: line follows when the daemon recovered from an unclean shutdown. Last come log bytes: <n>, removed bytes: <n> and the kind lines of rdy compact. JSON: {frames, landings, versions, views, landed_changes, intents, alt_sets, reviews, transitions, unlogged_moves, open_report, quarantine, log_bytes, removed_bytes, by_kind}. unlogged_moves counts the transitions a reconcile would log now, after a change of the pack or the rdy build; it is not an error. With an active redaction, JSON adds redacted_objects, redacted_frames, redacted_bytes and checked_payloads: the removed objects, frames and payload bytes, and the intact payloads that fsck hashed. When the store holds signatures, JSON adds signatures, their count. On a passing check, --verbose adds a landing <hash> line after the ok: line for each canon landing, in log order. The landing's signature lines and its tags' lines follow, as rdy log --verify prints them, but with no trust file. JSON then adds signature_states, one {landing, signatures, tag_signatures} per landing.

since 0.13.0

A carried-removal warning prints as W_STOP_BEFORE_REDACTION: <message>, then fix: <fix>, then a target: <target> line for each target. JSON adds warnings only when there is one, each as rdy load gives it. The warning does not fail the check.

rdy fsck --clean-quarantine also removes the quarantine files that a crash left: .torn- segment tails and damaged indexes. It removes them only after the check passes, so a failed check removes nothing. It removes only regular files, and it skips a symlink or a directory with a quarantine name. Text adds one removed <name> line per file it removed and one skipped <name>: <reason> line per file it kept. JSON adds removed and skipped, a list of {name, reason}. Only a human may run it, and an agent session gets E_PERMISSION.

rdy reindex

rdy reindex rebuilds the index from the log, with its open-tension and open-suspect tables, and republishes the graph and tensions. When what is open changed, it logs those transitions with cause recheck. It never rewrites the log. The new index is built aside, so a failed reindex keeps the old one. Prints index rebuilt, and the JSON is {reindexed: true}. It runs on the daemon's writer thread, so writes wait while it runs.

rdy compact

rdy compact [--dry-run] [--json] punches every removed payload that still takes disk space. --dry-run reports the same fields, punches nothing and gives punched_bytes 0. A writer, reviewer or approver session may run it, because it changes no content. A reader is E_PERMISSION, for a dry run too. The command appends no frame, and it runs on the daemon's writer thread. The chat path is rdy_compact.

Text prints log bytes: <n>, removed bytes: <n>, punched bytes: <n> and on-disk bytes: <n>. One <name>: <bytes> bytes, <removed_bytes> removed line per kind follows, in numeric order, then each note. JSON: {log_bytes, removed_bytes, punched_bytes, on_disk_bytes, by_kind, notes}. Each by_kind row is {kind, name, bytes, removed_bytes}, for the kinds present. bytes holds headers, and removed_bytes holds only removed payloads. Duplicate hashes in different frames count separately. "Redaction" in How rdy is built gives the meaning of each count.

A filesystem that cannot punch still gives a successful report. notes then holds, in this order, each that applies:

  • hole punching is not supported for <n> removed spans; they keep their disk space, and their content stays removed
  • hole punching failed for <n> removed spans; they keep their disk space, and their content stays removed
  • disk allocation could not be read after punching; on_disk_bytes is the count before this call

since 0.52.0

Table 7
KindName
1block
2change
3proposal
4landing
5snapshot
6blob_chunk
7blob_manifest
8ref_update
9tag
10answer
11signature
13view_op
14batch_commit
15intent
16alt_set
17review
18tension
19transition
20redaction
21redaction_residue
22redaction_apply
23redaction_carried
24plan
25assessment
26dispute
27dispute_resolution
28check_request
29foreign
30snapshot_delta

A snapshot of rdy documentation at v0.53.0.