System
Configuration
rdy reads settings from four places. Two are shared with the project: a project file and an ignore file. Two are personal: a local file for one person on one project, and a user file for one person across projects. Each setting has a level it belongs to, and the most specific level wins. This page says what goes where, why, and how to see where a value came from.
The four levels
| File | Level | Shared? | What it holds |
|---|---|---|---|
.rdy.yaml at the project root | Project | Yes, with the project | The pack, the project's name and description, preferences, ADR sources (in a later release), linked code repos, remotes, site branding and theme |
.rdyignore at the project root | Project | Yes, with the project | Files that import and the working copy skip |
.rdy/local.yaml | Local | Never | One person's overrides for this project, local checkout paths, a per-project actor, signing settings, remotes and hub origin lists |
~/.config/rdy/config.yaml | User | Never | One person's actor, defaults, checkout paths, signing settings, remotes and hub install settings; hub sign-ins sit beside it in credentials.yaml |
The split follows one rule. A setting is shared when every clone needs the same value, and local when it names a person, a machine or a secret. Clone and dump carry .rdy.yaml and .rdyignore, and a dump and a clone also carry the packs in .rdy/packs/. None of them carries the local file.
Project config
- Project config
.rdy.yamlat the project root is the shared project configuration: preferences, ADR sources (in a later release), linked code repos, the packs the project uses, site branding and theme, and each remote's name, URL and mode. It never holdsactor, tokens or key pins, and the working copy never treats it as a doc.
rdy reads the config when it opens the project and when a reload succeeds. A reload of a config that does not load keeps the config rdy loaded before, and rdy reports the error. So a broken file never turns require_up_to_date or another setting back to its default.
Three kinds of outside things are named here. The first kind, ADR sources, comes with a later release. ADR sources are the local checkout and folder that rdy mirrors as external decisions. A pin to a revision is a foreign pin in canon, never a config entry. Linked code repos are the code repositories whose git history builds the code index. This file names them, and each person's local or user config gives their checkout paths. rdy reads git and never writes it. Remotes, under remotes, are the rdyhub repositories the project talks to, each with a name, a URL and a mode, share or publish. A shared remote means a team agrees on its hub.
remotes maps each remote's name to its url and its mode, share or publish, and both are required. A name has 1 to 64 letters, digits, dots, underscores or hyphens, and starts with a letter or digit. The URL is an HTTPS address with no user name, password, query or fragment, and its origin names the hub install. Any level may set remotes. A whole entry at a more specific level replaces the entry of that name: user config, then .rdy.yaml, then .rdy/local.yaml. A missing or invalid url or mode is a W_CONFIG_UNKNOWN warning, and rdy drops that entry.
A hub command refuses more than 64 remotes in effect with E_LIMIT, and a second share remote in effect with E_REMOTE_EXISTS. rdy config --show-origin prints each remote with the file that sets it.
code_repos lists the linked code repos by name: at most 16 names. A name starts with a letter or digit, then has up to 63 letters, digits, dots, underscores or hyphens. Only .rdy.yaml may set the key. No key, a null value and an empty list link no repo.
code_paths gives each linked repo's checkout path by name: the top folder of a git checkout. Only .rdy/local.yaml and the user config may set it. It is the one key whose entries merge by name: for each repo, the local entry wins over the user entry. A relative path in .rdy/local.yaml starts at the project root. A path in the user config must be absolute, because one user config serves every project. A project that lives inside its code repo writes code_repos: [app] in .rdy.yaml and code_paths: {app: .} in .rdy/local.yaml.
A name or path that rdy cannot use is a W_CONFIG_UNKNOWN warning, and the project opens:
- an entry of
code_reposthat is not a name, such as a path, and rdy ignores it; - a name listed twice, and rdy uses it once;
- a name with no checkout path at either level, and rdy skips that repo;
- a
code_pathsentry for a name thatcode_reposdoes not list, and rdy ignores it; - a relative path under
code_pathsin the user config, and rdy ignores it.
rdy checks the rest only when a code briefing runs, so a bad entry fails that briefing, not the project. A bad entry is E_CONFIG, and the fix line names the cause:
code_reposis not a list, holds more than 16 entries, or holds an entry that is not text;code_pathsis not a mapping of names to paths;- a path names no directory;
- the folder is not a git repository, or not its top folder;
- the repository is a shallow clone or a partial clone, because rdy reads every commit and never fetches.
E_IO means that git cannot run, or that a git command failed in the repo.
decisions.home names the doc or folder where new decisions go, as its path, key or id. It is optional, and only .rdy.yaml may set it. rdy_decide, rdy_supersede, rdy_revoke and a create of a decision, a finding or a source without a parent record the block there. With no home, such a block sits at the project root, in the store only. rdy resolves the home at that call, in the view of the write. A home that names no block, or a block that is neither a doc nor a folder, is E_CONFIG.
coverage.target is the coverage at which onboarding is done: a whole number from 0 to 100, 80 by default. Only .rdy.yaml may set it. A number outside 0 to 100 is a W_CONFIG_UNKNOWN warning, and rdy uses 80. A value that is not a whole number is E_CONFIG. "Onboarding an existing corpus" in the rdy documentation describes the path to the target.
coverage.gate is off or no_lower, and off is the default. It is a project key, set in .rdy.yaml only; another value is out of range, and rdy uses off. With no_lower, a version that lowers a page's or the corpus's coverage is not ready, with E_COVERAGE_LOWERED.
reviews.lease_ttl is how many minutes a claimed review request stays leased to its reviewer: a whole number, 10 by default. 0 disables leases. Only .rdy.yaml may set it. In another file it is a W_CONFIG_UNKNOWN warning, and leases keep the default of 10 minutes. A misspelt key whose nearest match is reviews.lease_ttl warns the same way. A value that is not a whole number is E_CONFIG.
serve.site_port pins the live site's port: a whole number from 1024 to 65535. Without it, rdy derives a port from the project path. It pins the full site only: a profile-only site always derives its port from the project path and the profile's key. A number outside that range is a W_CONFIG_UNKNOWN warning, and rdy derives the port. serve.site_lan: true also serves the site on this machine's private network address, and it is false by default. Any level may set either key. A value of the wrong type is E_CONFIG.
propose.cadence says when agents propose:
break, the default: at a natural break, such as the end of a task or an iteration;task: after each task;changes: afterpropose.changeschanges in the view;asked: only when the person asks.
propose.changes is a whole number from 1 to 1000, 10 by default. Any level may set either key, so a person's preference overrides the project's. A word that is not a cadence, or a number outside 1 to 1000, is a W_CONFIG_UNKNOWN warning. rdy then uses the key's default at that level, so a lower level never answers instead. A value of the wrong type is E_CONFIG.
Site settings live here too. Branding is the project's name, an optional logo and favicon, and whether the "Built with rdy" credit shows. site.theme holds token overrides per mode, or names a theme directory. site.theme.strict turns a contrast warning into an error. site.base_path names the path a static site is served under, / by default; only its not-found page reads it. Theme files and self-hosted fonts sit beside the config in .rdy-theme/. The key names for ADR sources and branding are fixed when those features ship; "File formats" in the rdy documentation lists the keys that are.
Only .rdy.yaml may set site.base_path. A value outside its range is a W_CONFIG_UNKNOWN warning, and rdy uses /. The message reads site.base_path must be / or an absolute path that ends with /, at most 2048 bytes, with only letters, digits, -, _, . and ~ between the slashes; using /. Fix: set site.base_path to / or to an absolute path that ends with /, such as /docs/, in .rdy.yaml.
pack: rdy-standard
name: Tally
description: The design of a shopping-list app.
require_up_to_date: true
site:
credit: false
theme:
light:
accent: "#2456c9".rdy.yaml never holds an actor, a token or a key pin.
The ignore file
.rdyignore lists, in gitignore syntax, the files that rdy import and the working copy skip. A project root often holds other things: source code, a README, CI files. The working copy already ignores dot entries, files that are not YAML and directories without _folder.yaml. The ignore file is for the rest, such as a YAML file that is not a doc.
Local config
.rdy/local.yaml is one person's configuration for one project. It holds overrides of project settings for this checkout. It holds the local paths where this person has the ADR sources checked out. It holds code_paths, the checkout path of each linked code repo. It holds a per-project actor when the person acts under a different handle here. It also holds any signing settings, remotes and hub pinned_origins for this project.
- Local config
.rdy/local.yamlis this user's configuration for this project. It holds overrides, local checkout paths such ascode_paths, a per-projectactor, signing settings, remotes and hub origin lists. Clone and dump never carry it.
serve.site_lan_address names the private IPv4 address the live site uses while serve.site_lan is true. Only the local and user files may set it, because an address belongs to one machine. A value that is not a private IPv4 address is a W_CONFIG_UNKNOWN warning, and rdy uses the default route's address. While serve.site_lan is false, the key has no effect, and rdy warns. The daemon cannot bind an address this machine does not hold, so the site then stays on this machine with W_SITE_LAN.
The local file is never carried by clone or dump.
User config
~/.config/rdy/config.yaml is one person's configuration across every project. It holds their actor, personal defaults, checkout paths for named sources and linked code repos, signing settings, remotes and hub install settings. Signing settings name the person's key, this machine's agent key, when rdy signs, and the allowed signers file.
- User config
~/.config/rdy/config.yamlis one person's configuration across projects. It holds their actor, personal defaults, checkout paths for named sources, signing settings, remotes and hub install settings. This person's hub sign-ins live beside it, incredentials.yaml.
Four settings hold the signing settings. Only the user and local files may set them. In .rdy.yaml each is a W_CONFIG_UNKNOWN warning, and rdy ignores it.
signing.keyis the person's key, which signs approvals and tags: a public key line or itsSHA256:fingerprint.signing.agent_keyis this machine's agent key, which signs relays, in the same form. It belongs in the user config, because every agent on the machine shares it.signing.signisnever,autooralways.auto, the default, signs each act with the key it needs, when that key is set.alwaysrefuses an act that rdy cannot sign. It never refusesrdy_land, because rdy signs no policy landing.signing.allowed_signersnames an OpenSSH allowed signers file, which the check reads to trust a key. A relative path in.rdy/local.yamlstarts at the project root. A path in the user config must be absolute: a relative one is aW_CONFIG_UNKNOWNwarning, and rdy ignores it. rdy uses the path as written, with no~or variable expansion.
An agent key that equals signing.key is a W_CONFIG_UNKNOWN warning, and rdy ignores the agent key. "Signing" in the rdy documentation lists the codes.
A UI approval is unsigned, because the daemon holds no person's agent socket. Under auto, it lands with no W_SIGNING_FAILED. With signing.sign: always, the UI refuses the approval and names rdy approve. A person can sign a UI landing later with rdy sign, and an agent session can with rdy_sign, using the configured person's key. An elicited approval signs with signing.key through the caller's SSH agent, with no relay.
instructions.person names the person's meta project, the rdy project that holds their own agent instructions. Only the user config may set it, as the nested key instructions: {person: <path>}. The value must be an absolute path, and rdy uses it as written, with no ~ or variable expansion. Without it, the meta project is .rdy/meta in the home directory. XDG_CONFIG_HOME moves the user config, never the meta project. The meta project follows the person across projects and harnesses, and rdy never copies it into a shared project.
A relative, blank or non-text value is a W_CONFIG_UNKNOWN warning, and rdy uses the default. The message reads instructions.person in <file> must be an absolute path; rdy ignores it, with the fix set instructions.person to an absolute project path in <file>. A misspelt key warns with its nearest known key, as for any key. In .rdy.yaml or .rdy/local.yaml the key is a W_CONFIG_UNKNOWN warning that names the user config, and rdy ignores it there. With no absolute home and no valid value, the person layer is empty, and rdy never resolves the default against the working directory.
A user config that does not parse, is too large or cannot be read keeps its E_CONFIG, E_LIMIT or E_IO, and rdy_instructions refuses the call. The rdy_instructions reply carries the user config's warnings. It does not carry a warning about instructions.person in a project or local file; the CLI prints that one on stderr.
Hub installs and sign-in
hub.installs holds the settings of each hub install, keyed by its HTTPS origin in canonical form: lower-case host, no default port, no trailing slash. rdy accepts at most 32 installs. ca_file is an absolute path to a PEM bundle of 1 to 64 certificates. rdy trusts it beside the platform's roots for that install. Only the user config may set ca_file.
pinned_origins lists up to 16 other HTTPS origins for that install. The user and local files may set it, and a local list replaces the user list. Sign-in and the key commands go to the install's own origin only. rdy publish also trusts the pinned origins: the sync address that the hub's discovery returns may sit on one, and the uploads go there. The candidate's link must still be on the install's own origin. rdy push, rdy pull, a URL clone and a dump fetch use the list too. .rdy.yaml may set neither field. A field that is unknown, invalid or at the wrong level is a W_CONFIG_UNKNOWN warning. rdy drops it before it combines the levels.
rdy keeps each hub sign-in in credentials.yaml, beside the user config, and never in a config file. The file belongs to one OS user and serves every project of that user, so one sign-in per install covers them all. It holds one record per install: a pending sign-in, a sign-in with its tokens, or one that must start again. rdy makes the file mode 0600, and only rdy's sign-in service reads or writes it. rdy config, the config warnings and every settings read leave it closed. Clone and dump never carry it.
Every read and write of credentials.yaml holds the lock of credentials.yaml.lock, and a second caller waits until the first one is done. There is no busy error, lease or retry. A remote edit at any level holds the user config's lock, config.yaml.lock, and also the lock of the file it changes. Each save replaces the whole file durably, so a crash leaves the old file or the complete new one.
When rdy edits a config file or opens credentials.yaml, it trusts the config home as given. The user home is $XDG_CONFIG_HOME, else $HOME/.config, and a project file's home is the project root. Below the home, every folder, the file and its lock must belong to this user, and none may be a symbolic link. rdy makes a missing folder with mode 0700. A settings file may sit in a group-writable folder, because a group that can write .rdy/ can already change the store. rdy refuses a folder that every user may write, unless its sticky bit is set.
The credential file is stricter: the group and others may write no folder below the home. A path that breaks a rule is E_IO, the config path is not private to this user.
Config messages never quote a secret. A settings file that does not parse is E_CONFIG, config is not a valid bounded mapping in <file>, and rdy quotes no line from it. When a key under hub or remotes is spelled credential, access_token, refresh_token or device_code, rdy reports it as hub.installs.credential and drops its value. A remote name or an origin appears in a warning only after it passes its check. rdy reads at most 1 MiB of a config file, and it refuses aliases.
No token or device code appears in a config file, a tool reply, an error or a log. Only rdy auth token prints an access token, and the refresh token never leaves rdy.
Who you are: the actor
The actor says who acts, and it is set at the user level or per project in the local file, never in the shared file. A CLI session is a human session when its actor is the configured human actor. Without a configured actor, the human actor is human:$USER, shaped into the actor form below. A human session may take the approver role for rdy approve and rdy tag. A writer session runs rdy import.
- Actor
- An actor is who acts:
human:<name>for a person,agent:<name>oragent:<handle>/<name>for an agent, orci:<repo_id>/<name>for a CI job. A human session takes its actor from user or local config; an agent that uses the CLI as a tool sets$RDY_ACTOR.
Every new actor must be in rdy's actor form, and every new run in its run form, both given below in ABNF. A name is 1 to 64 characters of a-z, 0-9, -, _ and ., with a letter or digit at each end. A run takes the same characters and upper case too, because a run is never a trust principal. A run is never none, work, canon, inflight or a name that starts with reaffirm- or adopt-. A hub handle is always a valid name, so a local name may later become a handle.
rdy checks the form at every new session: $RDY_ACTOR and $RDY_RUN at the CLI, the daemon handshake, rdy_session and a call's _meta claim. It also checks every actor that a person or agent names, as in rdy view own and --relayed-by. It never checks a stored actor or run. An actor or run outside the form is E_BAD_INPUT. An agent session never claims a human: actor, locally or over MCP, and that claim is E_PERMISSION.
A configured actor outside the form is E_BAD_INPUT wherever rdy resolves the person, on every entry point. The fix names the file that holds the value: set actor in <file> to human:<name>, agent:<name>, agent:<handle>/<name> or ci:<repo_id>/<name>. rdy reads the actor of .rdy/local.yaml first, so a valid local actor wins over an invalid one in the user config. An actor that is not a string, such as an empty actor:, is E_CONFIG. rdy config shows an invalid actor as written, so you can see and fix it.
actor = human-actor / agent-actor / ci-actor
human-actor = %s"human:" name
agent-actor = %s"agent:" name [ "/" name ]
ci-actor = %s"ci:" repo-id "/" name
name = alnum [ *62 name-char alnum ]
name-char = alnum / "-" / "_" / "."
alnum = %x61-7A / %x30-39
run = run-end [ *62 run-char run-end ]
run-end = alnum / %x41-5A
run-char = run-end / "-" / "_" / "."
repo-id = 32( %x30-39 / %x61-66 )- Handle
- A handle is a hub account's unique, lowercase name. A person's actor is
human:<handle>.
On a hub request, a human session claims human:<handle>, with the handle of the account signed in to that install. Its local actor may differ. An agent or CI session claims its own actor and run, byte for byte. rdy never changes the local session or a stored actor for a claim. Just before each hub request, rdy checks the claim's actor and run against their forms, and a claim outside them is E_ACTOR_UNBOUND.
An agent that uses the CLI as a tool sets $RDY_ACTOR, and optionally $RDY_RUN. A CLI request under another actor opens an agent session. It writes, it approves only to relay a person's approval, and it commits only into views it owns. An agent over MCP names its actor in a call's _meta or in rdy_session instead. The daemon and concurrency describes sessions.
Precedence and origin
Settings are read most specific first: local, then project, then user, then rdy's defaults. A key is valid only at some levels. A known key in a file of a level that may not set it is a W_CONFIG_UNKNOWN warning, and rdy ignores its value. A key rdy does not know is a W_CONFIG_UNKNOWN warning, and the project still opens. That covers a misspelt key, a key written as one dotted key, and a review setting outside reviews. The warning names the nearest known key, the nested form to write, or the file the key belongs in.
- Configuration precedence
- Settings are read from four levels, most specific first: local config, then project config, then user config, then defaults. rdy ignores a key valid only at some levels elsewhere, with a warning that names the file it belongs in, and
rdy config --show-originshows each value and its file.
rdy config --show-origin prints every effective value with the file it came from.
When a site renders differently than you expect, the origin is the first thing to check. Only project config affects rendering; user and local config never change the output, so one tag renders the same site for everyone.
The older layout, .rdy/config.yaml, is not read, and nothing keeps compatibility with it.