How rdy is built v0.57.0

System

The site

The site is how people read the documentation. rdy renders it from canon, or from any view, proposal version, tag or landing, as plain pages with nothing of rdy's machinery in them. The daemon serves it live, and rdy render writes it to a folder. This page says what every rendered page promises a reader, what a reader can do on a page, and what the site never shows.

The site
The site is the rendered documentation, for people. It shows the folder tree with a breadcrumb and a neighborhood sidebar, and the version label on every page rendered without a profile. Nothing on it is addressed to agents: no ids in visible text, no status badges, no calls to action. Supporting blocks appear only through the "Why?" trail, the open-questions page and decision permalinks, and the documentation can be built from the folder tree alone.

What every page promises

The site is a first-in-class documentation experience, and the promise is a set of testable rules. The rules below are the promise in reader terms. The quality gate checks them on every change to the renderer.

Site quality bar
The site quality bar is what every rendered page promises: no storage artifact in visible text, designed navigation, a system light and dark theme, a responsive and accessible layout, and the decision trail off by default. The QA gate's render_quality area and a visual review enforce it on every renderer change.
Requirement

No storage artifact appears in the visible text of any page.

The forbidden list is exact: block ids, hashes, landing and proposal refs, order keys, field names, file paths, raw status words, type names and debug output.

A page's title is its doc's title, never an id or a file name. Its URL is the folder path in lower-case slugs, such as wallets/transactions. A term, a question or an entity lives under a human segment, and no _-prefixed directory holds a page a reader can reach. A rename changes a page's URL, and a permalink page keeps old links alive.

Every content type has a designed rendering. Examples and notes are callouts with a heading word in the project's language. Requirements and constraints are tinted blocks with a small eyebrow that reads "Requirement", never the engine type id. Terms form a definition list, and every use of a term links to it.

The generated glossary page lists every term, and its fixed intro says that each term links to the page that defines it. It groups the terms by the top-level folder of their doc, in the navigation's folder order, and lists them A to Z in each group. Terms in a doc outside any folder form a last group named for the project, and the page's "On this page" list names the groups. A term in a top-level doc named glossary, which has no page, appears there without a link.

A drawn diagram renders in both themes, with its alt text and its source behind a disclosure. Code blocks are highlighted at build time, with a copy control and a language label in a human name. A pack type with no rendering falls back to a paragraph with no type label. A body's inline Markdown subset renders, and underscores are always literal.

A reference written as {{id}} in a body renders as a link whose text is the target's title, name or summary. A key-typed reference to a doc, folder or section shows the target's title, and a reference to another keyed block shows the key. A dangling reference renders as the text the author wrote, with a muted "unresolved" marker, never as the raw id. A top-level doc named glossary has no page. A reference to a block in it reads as its label in plain text, with no marker.

A label that rdy supplies drops its final period when the next visible character is a period, so a sentence never ends with two. The next visible character counts across closing inline markup, so **{{id}}**. loses the label's period too. An author's display text and an authored double period stay. The same rule holds in disagreement quotes and in link text.

The site draws Mermaid diagrams to SVG in Rust at build time, with no client script. The drawing crate is mmdflux 2.6.1, which draws flowchart, class, sequence and state diagrams. The SVG inside a page reads the site's color tokens as CSS custom properties, so it follows the site's theme toggle. Each drawing's full-size file carries its own light and dark colors under prefers-color-scheme, because an SVG opened on its own cannot read the page's tokens. In a ref's label inside a diagram, rdy writes each character that Mermaid reads as syntax as a #<code>; escape. After drawing, rdy decodes that escape and Mermaid's entities in the SVG's text, so every label reads as written.

Before it draws a diagram, rdy replaces each CRLF line ending with LF and drops each blank line that directly follows a subgraph header. A source shown as a code block keeps its original bytes. The site carries no Mermaid script. A diagram that does not parse shows as its code block, and the render warns W_DIAGRAM_INVALID. A diagram of another type shows its source as a code block, and the render warns W_DIAGRAM_UNSUPPORTED. When the drawing library fails, or a drawn SVG fails rdy's checks, the source shows as a code block, and the render warns W_DIAGRAM_FAILED. D2 shows as its code block until a Rust D2 renderer exists.

When a flowchart's top-level subgraphs each set a direction, rdy also draws it with hidden arrows between them. rdy stacks such subgraphs along the diagram's direction, with hidden arrows that it adds only to the drawing input. It keeps that drawing only when it removes a subgraph overlap and adds none. So the four-case diagram on the canon, views and proposals page draws whole. rdy keeps each drawing in the store's derived cache and draws it again only when its source, the drawing crate or the renderer changes. A first draw may take up to 10 seconds.

Every page has the same navigation. A sidebar tree shows the page's neighborhood: ancestors, siblings and the current folder's children, with the current page marked. Each folder that the sidebar shows on a page also lists its own first-level entries, up to 50 and then "+N more". So each of those folders opens in place. On one page, these lists hold at most 79 entries in total. They fill first for the folders on the current path, then their siblings, then the rest. A folder past the cap is a plain link to its page. So the largest sidebar of a 10,000-doc site stays under 50 KB. Each folder level is indented. A folder opens and closes with no script, and the "↗" link beside it, whose accessible label reads "Go to <folder title>", opens its page.

A folder inside a first-level list is a plain link to its page. The top-level folders and the folders above the current page start open. For the browser session, the sidebar keeps which folders are open, at most 256, and it stores no scroll offset. It scrolls the current entry into view.

Breadcrumbs run from the project's name down to the page. A doc with three or more headings has an on-page table of contents that follows its section tree and marks the section in view. In review mode, a changed doc always has it, headed by its changes. Previous and next links sit at the foot of every doc page, in tree order. The home page lists the tree as cards, the project description and the versions. A doc type with nav: false in the pack keeps its page, and the sidebar, the folder index, the home page, the pager and search leave it out.

A collapsed section shows as a fold, closed when the page loads. Its heading is the fold's label, and it keeps its level, its id and its Link, Copy ref and Copy controls. A link, a search result, an "On this page" entry or the browser's history opens the target's fold and every fold around it. A review page opens a fold that holds a changed, new or removed block. Without JavaScript, the reader opens the fold, and folds inside folds work. Its text is reader text for search and the llms files, which add no fold marker, and a print shows the section open.

An image in block text, ![alt](url) with an HTTPS URL, shows as its alt text, inside its link when it has one. So the site still loads nothing from another host. A figure can carry a dark image beside its image, and one alt text describes both. The site shows the dark image while its theme setting, Auto, Light or Dark, selects the dark theme, and the light image otherwise.

Search runs in the browser over a prebuilt index, and no search query reaches a server. The index holds only text a reader can see on a page; text a page hides never enters it. The / key focuses the search field, and each result names the doc and the section. In a profiled output, the index holds only the selected pages, and a profile block adds no words.

Light and dark themes

Both themes ship on every page. The default follows the system setting, and a three-state toggle (Auto, Light, Dark) stores a choice that applies before the first paint, so nothing flashes. Without JavaScript the system theme still applies. Dark mode is designed, not inverted: diagrams, highlighting, callouts, images and the focus ring all have dark values.

Every color is a theme token, and the default theme is Tide. Text and background pairs meet WCAG 2.2 AA contrast in both themes: 4.5:1 for text and 3:1 for interface parts.

Responsive and accessible

At every width from 360 pixels up, a page never scrolls sideways. Only a code block, a wide table's wrapper or a diagram's wrapper scrolls inside itself. The sidebar collapses to a disclosure on narrow screens, and the table of contents does the same, and both work without JavaScript. On a narrow screen, the theme toggle sits in the sidebar instead of the header. The version pill shows at every width. Tap targets are at least 40 by 40 pixels on a phone.

Each page has one h1, heading levels that never skip, landmarks and a skip link. Everything is reachable by keyboard with a visible focus ring. Reduced-motion settings disable every animation. Every image has alt text, every icon control has a name, and color is never the only carrier of meaning.

Pages work without JavaScript. Script serves only these:

  • search;
  • the theme toggle and the copy controls;
  • the "Show changes" button in review mode;
  • the "Show diff" button in review mode;
  • the highlight in the "On this page" index;
  • opening the fold that holds a link's target, and the folds around it;
  • the sidebar's open folders for the session, and scrolling the current entry into view;
  • updates, on the live site;
  • the version menu as a popover, on the live site.

Without JavaScript, a static page says "Search needs JavaScript." A live page says "Search and live updates need JavaScript." The versions page says "Live updates need JavaScript." Each adds "Everything else on this page works without it." No font, script or style loads from another host, so the site works offline and behind a firewall.

The "Why?" trail

The decision trail is off by default. A page shows content, not decisions. There are no decision pages, no decision status badges and no suspect marks. A block's only label is its as-built status, as Publications and profiles describes. Supporting blocks, such as decisions, questions and rationale, are off the site. Two pages are the exceptions: the open-questions page lists open questions, and "Where the docs disagree" lists open disagreements in canon, both in plain words. In a profiled output, both pages hold only what the profile selects.

The open-questions page groups open questions by their doc. The questions outside a doc follow the doc groups. Each folder that holds one gets a group under its title, in tree order. Then the project root gets a group under the project's name. Such a row has no "from" line, because the question is on no page. A link to such a question leads to its row on the open-questions page. A review site marks no block outside a doc, because none is on a page.

The "Why?" trail
The "Why?" trail is the site's one opt-in content. A quiet "Why?" pill inside a block expands into a dated trail of supersessions, rejected alternatives, rulings and open tensions, in plain words for readers. It is collapsed by default. Apart from the as-built label, content carries no badge or status chip.

The one opt-in content is the "Why?" trail. A quiet "Why?" pill inside a block expands into a dated trail in plain words: the decisions behind the block, supersessions, rejected alternatives and open tensions. It is collapsed by default. Its decisions are those that govern the block itself, and a closing line names the entities that other decisions are about, as below. A decision citation an author wrote in a doc never shows in the text; it becomes a link that the trail shows.

A profiled output shows the trail only when its profile allows it, and only for the decisions in the profile's filtered view. These are the decisions in a selected doc or folder, and the decisions outside a doc that Publications and profiles adds. So the trail shows a decision with no doc that governs a selected block, and each decision outside a doc that supersedes or revokes it. A decision that the view holds only through an entity that the profile leaves out shows on no trail.

Constraint

No call to action appears on the site: no queue, no approval cards, no answer prompts. A review render shows only the changes of its own view or proposal.

A page called "Where the docs disagree" lists each open tension whose sides are all in canon and that no one has dismissed. Each entry is the plain sentence for its kind from the table below, with a link to each block involved. It shows no id, kind name, severity, count, date or action, so it informs and asks nothing of the reader. rdy renders it for canon and for a tag at canon's head, and only when it has an entry. A view or a tag at an earlier landing gets no such page, because rdy computes tensions for the current state only. The site has no page for alternatives, because those are in-flight views. In a profiled output, an entry shows only when every block it involves is selected and has a page.

Table 1
Tension kindReader sentence
ForkThese pages give two versions of one point.
Duplicate definitionThese pages define the same thing twice.
Deprecated referenceThis page still points to something that was retired.
Value disagreementThese pages state different values for the same thing.
Restatement driftThis page restates a point that has since changed.
Semantic tensionA reviewer found that these statements contradict each other.

One disagreement can repeat in many places, such as a term defined in every doc. Entries with the same sentence on the same pages show once, with one link per page. An entry shows its first five links, and a "Show all" fold holds the rest. When two links of an entry would read the same, each one starts with its folder path, such as "Guides › Install". rdy cuts a summary in a link at a word boundary to 80 characters, and adds "…". It drops a space, comma, semicolon, colon, period or hyphen at the cut, and keeps a quote mark. The page never says how many times a disagreement repeats.

A content block that its output marks as planned shows a quiet "Planned" label, and a planned note uses the word as its heading word. A since pill can show the release that first shipped a block. Publications and profiles gives the rules.

Copy ref and the block toolbar

A reader who wants to send a block to an agent does not copy an id by hand. Every block, heading and page title has a small toolbar with up to three controls: "Link", "Copy ref" and "Copy". The toolbar appears on hover, on keyboard focus or on tap, at every width, and never as a permanent row.

Copy ref
Copy ref is a button on the site, shown on hover, focus or tap, that copies a block's or heading's ref as [id] Doc › Section: "snippet…" for an agent chat. On a frozen page the ref is version-pinned, id@vX, and you can cite a selection. It is the only place an id reaches a reader.

"Copy" copies text as Markdown, as the page shows it. On a block, it copies the block. On a heading, it copies the whole section: the heading and every block under it. On the page title, it copies the whole page: the title, the lead paragraph or folder description, and every block. The lead paragraph has no Copy of its own. A block or heading with no text has no Copy control.

A ref becomes a Markdown link: its shown label, and the absolute URL of its page with the slug anchor. So no id is copied. The Markdown follows the export's writer, with three differences: links are absolute, nothing goes in front matter, and no anchor lines are written. Copying works offline, also on a static site opened from disk, with no network request. A code block keeps its own copy control, which copies the code alone.

Selecting words in the page title or lead paragraph offers "Cite" with a reference to the doc. The folder label above the title offers no "Cite".

Versions on the site

Every page rendered from a scope without a profile carries the version label in its header, as a pill and up to two +N chips. Every page of a profile route on the live site carries it too. The not-found page has none. The pill shows only the version tag, such as v1.2.0, or unversioned.

A neutral chip beside it counts the landings since that tag, with the hover text "3 landings since v1.2.0". A project with no tag, or with no landing since its tag, shows no neutral chip. On a review render, an accent chip counts the blocks the view or proposal changes, with the hover text "4 changes, not landed". Each chip opens the diff summary of what it counts. On a profile route with more than 100,000 landings since the tag, rdy omits the neutral chip and its summary page, and the build warns.

A view or proposal that changes no block shows no accent chip. A page rendered from a tag shows a lock icon, the version and the word "snapshot" in the pill. On the live site, the pill opens the version menu. On a static render, the pill links to the Versions list on the home page. A local profiled render of a tag shows only the name of the tag you chose, with the lock icon and no "snapshot" word, link, menu or chip. A local profiled render of canon or a bare landing shows no pill. On a profile route of the live site, the pill adds the profile's title, such as v1.2.0 · User guide. Its chips count only what the profile shows. A profile-only site has the header of a local profiled render of canon: no pill, chip or menu.

The colophon at the foot of each page, except the not-found page, keeps the label as text, and so do llms.txt and llms-full.txt. The text reads v1.2.0, v1.2.0, 3 updates since or unversioned. Here "updates" counts landings, and "changes" counts the blocks a view or proposal changes. A review render adds · view: work, 4 changes, not landed, or · proposal: Guest mode, 4 changes, not landed with the proposal's title. With no changed block, the end reads · view: work, no changes yet. On a page rendered from a tag, the colophon reads "A snapshot of <project> at v1.2.0." A local profiled render, a profile route and a profile-only site name the profile's title instead of the project. Its colophon reads "A snapshot of <title> at v1.2.0." for a chosen tag, and only "<title>." at canon or a bare landing. A profile route of a view or a proposal adds the review part, such as User guide. · proposal: Guest mode, 4 changes, not landed.

Version label
The version label says where the state of a page stands among the versions. The site's header shows it as a pill with the version, such as v1.2.0, or unversioned, and +N chips beside it. The colophon and the llms files show it as text, such as v1.2.0, 3 updates since. A page rendered from a tag shows a frozen snapshot. The CLI shows the same state in its own words, such as v1.2.0 + 3 landings. The site gives the full wording.

The home page lists versions newest first, each with its date and message, never a landing hash. A version whose history holds removed content shows the word redacted beside its name. A local profiled render has no Versions section. A published version never changes; a correction ships in the next one. You render a frozen site of any version with rdy render --out <dir> --scope tag:v1.2.0. "Tags and versions" in the rdy documentation has the rules.

On the live site, the pill opens the version menu, a popover with four lists. The same lists form the page /~versions/, titled "Versions, proposals, views and profiles". The page uses the site's layout, with the header, the breadcrumb "Home › Versions, proposals, views and profiles" and the footer. From a scope other than canon, or through a profile, the page's link names that scope and profile in its query.

  • Versions: "Latest" for canon, with its label, then each tag, newest first, with its date and message. A tag whose history holds removed content adds the word redacted.
  • Proposals: each open proposal version, with its title, its author and the docs it changes, such as "by ana · 3 docs changed". A withdrawn proposal is not listed.
  • Views: each open view that holds a change, with its name, its owner and the docs it changes. Proposals and views always count the docs they change in the full source.
  • Profiles: "All docs" first, for the full source, then each publication profile that the scope on screen holds, by title. Each shows its title, then its audience and doc count, such as "public · 10 docs". The profile on screen reads "(current)". The list shows at most 100 profiles, and a line such as "3 more profiles: ask your agent for their links" counts the rest. A scope with no stored profile has no Profiles list.

Each item opens that scope's pages, and a proposal or a view opens in review mode. A version, proposal or view opens through the profile on screen when it holds that profile, else in full. A profile opens the scope on screen through it. An empty list says "None open." Without JavaScript, the pill is a link to the page. The page and the popover update by themselves as versions, proposals and views change. The menu shows no approve control and nothing that waits on a person. A static render or a publication lists versions only, on its home page. A local profiled render lists none, and a profile-only site has no menu.

On the live site, each version has its own site at /~tag/<version>/, such as /~tag/v1.2.0/. The path holds the version name exactly as the tag stores it. A tag's pages are a frozen snapshot, with no review marks. rdy tag refuses a new version name over 256 bytes. A longer tag that an older release stored still loads, lists and passes rdy fsck, but it has no site. The menu lists such a tag as text, with no link, and rdy_site refuses it.

Publications and profiles

One project can produce several publications. A publication profile selects whole docs and folders, and each publication is a tag rendered for one profile. rdyhub controls who may read each one. Everyone with source access still reads the whole project.

Publication
A publication is a tag rendered for one profile and made readable on rdyhub by the audience its profile names. Its record holds the profile revision, the resolved selection, the artifact's manifest hash, the rendering inputs and the disclosure authorization. The stored artifact is the record of what readers received.
Publication profile
A publication profile is a versioned block that selects whole docs and folders of a project for one publication. A tag pins its revision, and the profile names its audience, org or public. The implicit profile, implicit:org, needs no block. It selects every doc, has no profile id, and its audience is always org.

A profile sits directly under a doc and has a key. It holds a title, an audience and a select list of 1 to 1024 doc or folder ids, with an optional description. The audience sets the check policy and the trail default: an org profile offers the "Why?" trail, and a public profile leaves it out. A trail field overrides that default. A planned field, hide or mark, and a since field, show or off, set how the output shows as-built status. Output for both audiences needs two profiles. rdy new profile creates one. You propose and land it like any block, and a tag pins its revision.

Every output of a publication reads one filtered view of canon: pages, navigation, permalinks, the decision trail, the glossary, open questions, search, figures, the version list and the agent-readable files. Nothing reads the full source. A profile that hides planned blocks drops them from this view first, as below. The view holds each selected doc and folder with every block below it, and each ancestor folder's own record without its other children. The view holds a decision in a doc only when that doc is selected. A block outside a doc in a selected folder comes with that folder. The rules below add other blocks outside a doc.

The view also holds each decision outside a doc that governs a selected block, by any route and whatever its status or built. The decision comes with every block under it, but without its folder or any other parent outside a doc. So a decision under an unselected folder, or under a question at the project root, is published without that parent. The view also holds each decision outside a doc that supersedes or revokes a decision it holds, along the whole chain. So a published trail never shows a replaced or withdrawn ruling as current.

Each decision that the view holds, in a selected doc or not, also brings the blocks outside a doc that it links to. These are the decisions, questions, findings and sources it names through answers, depends_on, supersedes or revokes. This goes one link deep, and each such block comes without the blocks under it. The reference check scans their links as usual. So a public profile whose decisions sit at the project root can pass the check.

The selection reads the routes in the source state. So a decision kept through an entity that the profile leaves out is published, but no trail shows it. A removed decision outside a doc stays in the view when a selected block links to it through decided_by, implements or affects. It is published as "Content removed.", as a removed decision in a selected doc is.

A ref from a selected doc to content outside the publication shows the author's display words as plain text. With no display words, it shows the words "unavailable reference". It has no link and no hint of the target. A ref that names a decision outside the selection by its id is the exception. With no display words it shows nothing, and a pair of parentheses left with only space, commas or semicolons goes too, with the space before it. In a field that is not Markdown, such as diagram source or a code block's language, it reads as empty and no parentheses go. Outputs without a profile keep every citation.

The reference check counts each ref in the body or a field of a selected block whose target is outside the selection, and each ref to no block at all. A block that the profile hides as planned is outside the selection, even in a selected doc. A link edge to it counts in links_outside. A ref that names a decision outside the selection by its id never counts. A link edge to a target outside the selection, such as decided_by or describes, never counts either, because no output shows it. The edge stays in the source, so a change to its target still makes the selected block suspect. The check runs before every profiled output and before a publication is authorized. In core the audience fixes the policy: the check blocks a public profile and warns on an org profile.

Before a publication is authorized, rdyhub shows what it newly discloses against the previous publication of the same profile. The list holds new docs, a new doc inside a selected folder included, and changed docs and attachments. It also holds changed blocks outside docs and new refs and link edges outside the publication. Core makes the same comparison against a baseline you name, with rdy publication check --against, and keeps no publication record. Anyone may propose a publication. A separate act on rdyhub authorizes it, and that act records accepted disclosure, not correctness.

rdyhub reads a held tag's profiles through rdy-adapter, pinned to that tag. The list starts with implicit:org, whose audience is always org, then gives each stored profile by key. A holder has no config, so the implicit profile's title is the holder directory's name. The disclosure check takes the previous publication that the hub recorded: its tag, profile version and selection identity. Core checks that binding, and it finds no previous publication itself.

A profile read reports a selection identity beside the selection hash. The identity hashes each selected block's id and version hash, and nothing else, so a redaction never changes it. A version hash already commits to every field, a figure's blob included. The selection hash stays the record of the selection with its redaction state at that time. Inside one store, the comparison shows the block id of a doc or folder whose name a redaction removed. It matches the removal by block version, marks the row redacted, and lists the redaction requests it applied.

A doc's digest covers the decisions inside it, but a decision at the project root sits in no doc. So the comparison also lists each block outside a doc that a side keeps, other than a doc or a folder, whose version differs. It also lists such a block that only one side keeps. The row is marked redacted when a side holds a removed version of the block. A block that the baseline kept and a removal took out since shows its removed version, even when the profile no longer keeps it. So a removal shows as a removal, never as a block that left the publication. The comparison reads versions only. So a block outside a doc that turns from a shell into its full text, with no new version, gets no row, although the selection hash changes.

The review labels each such row and names what a reader sees change, by the parts of . A block's place among its siblings outside docs does not count, because no page shows it. A block whose version changed but no part differs keeps its row, with change null and record_only true. It counts nothing.

The stored artifact is the record of what readers received, and a re-render is only a check. rdyhub keeps the full history privately for its trust summary and re-render checks, and readers of a publication receive only the artifact.

rdy publish and rdy_publish upload one tag's publication to a publish remote. Core resolves the site's profile at that tag, never in current canon, and the audience is the tagged profile's own. It runs the reference check, renders the site from captured inputs, and checks the artifact against the hub's limits. It then sends the tag's full history, the site's files by hash and the record's inputs. The hub makes a candidate, and its own disclosure review authorizes publication. A publish call makes no local receipt or record, and it authorizes nothing.

The record's inputs are the repo id, the tag's name and landing, and the profile's id and version. They also hold the selection rows, the selection hash, the manifest recipe and hash, and the render inputs. They name no audience, because the hub reads it from the tagged profile.

The manifest lists each file's path, hash, media type, size and notice offset. Recipe 1, the only recipe, hashes that list in path order as one fixed byte sequence, with BLAKE3. No tag, site, actor, time or render input enters it. Core and the hub compute the hash with the same code.

The render inputs are everything besides the tagged source that decides the artifact's bytes. They are the rdy version, the theme, the effective pack, the project's title and description, and a disagreement list. With no configured name, the title is the project directory's name, so two unnamed clones may differ. The disagreement list is the reader's view of the open tensions: one of six fixed sentences, its blocks and its lead block. It holds no review text.

The uploader asserts the list, and the hub renders it as given, because the hub's store cannot check the tension state. Equal inputs over the same tag give the same bytes on every render path, whatever the store's path, canon or tension state.

Every HTML page of a publication holds one empty notice slot, the bytes <!--rdy-notices-->, right after its opening main element. Its manifest entry records the slot's byte offset, and the hub writes its notices there. No other file has a slot, and a local render or export has none. The standard theme's stylesheet also styles the hub's notices, so every site carries those styles.

A holder keeps no pack or config, so rdyhub renders a held tag from the stream. rdy-adapter writes a render request: the profile's full id or implicit:org, the format, the render inputs and the tag's complete history stream. A render process, rdy render-stream, reads that request on standard input with no store, project, config or working directory. It checks the whole stream before it renders, then writes the manifest and the files. The formats are site, markdown and techdocs. The adapter can also render one page of a held tag, with its notice offset and the files it needs.

Table 2
CodeMessageFix
E_BAD_INPUTrender request names against with no scopeadd scope, or omit against
E_BAD_INPUTrender request scope "<text>" is not landing:<64 hex digits> or view:<name>@<64 hex digits>name the landing or the view head by its full hash
E_BAD_INPUTrender request scope "<text>" is not landing:<64 hex digits> (an against that is not a landing)name the landing by its full hash
E_BAD_INPUTa review render request builds a site onlyuse format site, or omit against
E_BAD_INPUTrender request stream <n> has root <found>, not <want> (also a tag stream)write the request with the adapter's scope render request
E_BAD_INPUTrender request stream <n> has root <op> of view "<found>", not of view "<want>"write the request with the adapter's scope render request
E_BAD_INPUTrender request state list <n> names block <id>, which no included change toucheswrite the request with the adapter's scope render request
E_BAD_INPUTrender request state list <n> has no row for block <id>, which an included change toucheswrite the request with the adapter's scope render request
E_BAD_INPUTrender request state list <n> names block <id> twicewrite the request with the adapter's scope render request
E_BAD_INPUTrender request state list <n> names block <id> after block <prev>write the request with the adapter's scope render request
E_BAD_INPUTrender request state list <n> gives block <id> version <hash>, which stream <n> does not holdwrite the request with the adapter's scope render request
E_LIMITrender request stream <n> declares <len> bytes, over 2147483648render a smaller scope
E_LIMITrender request state list <n> declares <len> bytes, over 2147483648render a smaller scope
E_BAD_INPUTrender process input is invalid (a third side, a trailing byte, a missing part, a short side, a bad row byte)send a render prelude followed by one complete tag stream
E_IOrender process input could not be readsend the render request again

A publication take adds an upload to a holder only after the host's verdict, all under the holder's one writer. Core first runs the take's own checks of the batches, the tag, the records, the landings and the signatures. It then reads the root tag's landing through the checked upload and resolves the requested profile there. Core refuses a selector other than a full profile id or implicit:org, a block that is no valid profile, and a blocked public profile. A full id that the tag lacks is no refusal: the facts name no profile, and the host judges.

The host's verdict then reads the facts once, and a verdict that panics is E_INTERNAL. Only then does core append and seal, and it returns the outcome with the same facts. Any refusal leaves the holder unchanged. A retry with unchanged input resolves the facts and asks the verdict again, then appends nothing.

Profiles work without rdyhub. rdy render --profile, rdy export --profile and the live site's profile routes read the same filtered view and run the same reference check. So one project can yield a PDF of its user guide and a Markdown tree of its architecture handbook. --profile implicit:org selects every doc. A profiled render or export shows a version label only for a tag you name, and it lists no versions. Without --profile, both commands keep the full-source output, even when the project stores profiles. That output marks planned blocks and shows no since pill. A local render, an export or a live profile page is not a publication. It has no access control and no record, and rdy cannot control who reads the file once it leaves.

The live site shows any scope through a profile. /~profile/<key>/ serves canon through the profile with that key. The same route sits under a version, a view or a proposal version, such as /~tag/v1.2.0/~profile/user-guide/ or /~proposal/P-3f9a1c@1/~profile/user-guide/. The key is one percent-encoded path segment, and implicit:org selects every doc. The route takes a key in any case, never an id, and the links that rdy gives spell the key in lower case. Each profile route is its own build, and it updates live like its scope.

The pages, navigation, search, permalinks, trail, glossary, figures and llms files read the profile's filtered view, as a profiled render does. A ref to an excluded page shows its display words as plain text, with no link. Each scope reads its own revision of the profile, so a profile that only a proposal holds serves under that proposal. The version menu's Profiles list switches between profiles. The site never refuses a public profile whose check is blocked: it serves the pages, and rdy_site relays the check as a warning.

rdy serve --profile <key> and rdy_site {profile, only: true} start a profile-only site: canon through one profile, on a second port of the same daemon. The full site keeps running beside it. The port comes from the project path and the profile's key. With serve.site_lan on, the LAN address serves the profile port too. One daemon serves at most 32 profile-only sites, and each lasts until the daemon exits.

The profile-only site serves the profile's pages, search and llms files. It serves no /~ route: no versions, views, proposals, other profiles, version menu or changes pages. Every /~ path answers as a path with no page. Its header has no pill, chip or menu, as in a local profiled render of canon. The port that a request arrives on sets the mode, never a path, a Host header or a link.

A profile-only site is a presentation choice, not access control. Anyone with the project still reads every doc and its history through the tools, the CLI or the full site. When a landing removes the profile from canon, every path answers as a path with no page. The site never falls back to the full source. The daemon logs a W_SITE_PROFILE warning, and rdy_site for that profile fails with E_NOT_FOUND. When the profile lands again, the site serves at the same link.

A profile's planned setting is hide or mark. hide is the default for a public profile, so a publication states only what its release ships. mark is the default for an org profile and for implicit:org. A hidden block leaves the view with every block under it. Status filtering covers content blocks only, so a decision, a question or another supporting block stays whatever its built. A supporting block outside a doc keeps the closure above, even when it governs only hidden blocks.

A planned doc or section that still holds a shown block keeps a shell: its title, name, key and route, so the block has a page and a nav row. The shell shows no body, no other field, no links and no Planned label. A planned doc or section with nothing shown under it goes. A doc is planned only by its own planned: true. A section is planned when its as-built status is planned.

A marked block shows a quiet Planned label at its start, and a planned note shows Planned as its heading word instead. A since pill reads since <version>, with the full version and no leading v. When a profile omits since, the pill shows in docs of type reference only. An explicit show or off applies to every selected block. An unversioned block shows no label. Static sites, single-file HTML, PDF, Markdown trees, TechDocs, llms files and copied text show the same labels.

The doc digest and the selection hash add one row for each shell and for each shown status other than unversioned. So a change in what readers see, such as a block that ships or a shell that fills, changes the doc in the disclosure comparison, with no new block version. A selection with no shell and only unversioned content hashes as before. The selection identity does not change. The disclosure review counts a block whose shown status changed as updated, with status in its what.

A live profile route refreshes after a landing that changes only a decision's built, also for a decision that the profile leaves out. Its review page marks a block whose shown status changed as edited, and the count of landings since a tag counts that landing. A block that the review shows as removed has no Planned or since label, even when the old side showed one.

Review mode

A render of canon or of a tag shows only the published documentation. A page rendered from a view or a proposal version is a review render. It also shows what the view or proposal changes against the canon it is based on, so a person can review it. A review bar under the header names the view or proposal and its author:

  • "Reviewing view · work · by ana";
  • "Reviewing proposal · Guest mode · by claude (agent)".

A person reads by name and an agent as "<name> (agent)", and an underscore in a name shows as a space. When a view has no owner, the bar omits the "by" part.

The navigation marks each changed doc with a dot and the word edited, and each new doc with new. It lists removed docs under Removed. The home page lists the docs the view or proposal changes, with plain counts, under "Changes in this view" or "Changes in this proposal". Each changed block carries a margin bar labeled Edited or New. A removed block shows as a collapsed Removed line that opens to its old text.

A changed doc keeps one row in the sidebar. The dot and the word follow its title, inside the row, so the row still opens the page. The dot is the accent for edited and green for new, as the New margin bar is. The marker is not a link of its own. Only the current page's row is highlighted.

In the "On this page" index, each section that holds a change carries the same marker: edited, new or removed. A section that holds changes of more than one kind carries edited. A "Changes on this page" group heads the index. It lists each change in page order: its word, then its label. A change to the doc's title or its lede comes first and belongs to no section. The label is the block's title or name, or the first words of its text, cut at a word boundary to 40 characters, with "…" where it is cut. A code span in those words stays code. A code block reads as its language and number, such as "Python code 3", and a diagram as its alt text or its number, such as "Diagram 2". A label never shows a block id. A redacted block reads "Content removed.", and a redacted term keeps its anchor, so its entry and its Copy link still work. Each entry jumps to the change. A removed block's entry jumps to its Removed line.

In review mode, every changed doc page has this index, even a doc with fewer than three sections. The section list still needs three sections, so a short doc's index holds only the group. Show changes hides the markers and the group. Without JavaScript they show.

The disclosure review of rdy_publication_check labels its rows by this rule, and its change rows follow the order of this group. So a review label is always the site's label for the same block.

The Show changes and Show diff toggles sit at the end of the review bar, and under it on a narrow screen. Show changes hides the markers; it is on by default. Show diff shows each edited block's old and new text, word by word, in place of its text; it is off by default. While Show changes is off, Show diff is disabled, and its own choice applies again when the markers return. Each choice lasts for the browser session. Without JavaScript the markers show, and the toggles and the inline diffs stay hidden.

Every marker is a word, so color is never the only signal. The llms.txt and llms-full.txt of a review render carry its text without the markers. The needs-you queue never appears on any render.

Each +N chip opens a diff summary page for its scope. A review render's chip opens changes.html, headed "Changes in this view" or "Changes in this proposal". That page opens with a sentence such as "4 changes in 2 docs, not landed." The neutral chip opens changes-since.html, headed "Changes since v1.2.0", with a sentence such as "3 landings since v1.2.0 changed 4 blocks in 2 docs." Each page lists the changed docs, then each changed block under its doc, with its word Edited, New or Removed and its word-level diff. A top-level doc named changes or changes-since keeps its page, and the render warns that the site omits the summary.

A word-level diff strikes through the removed words and underlines the added words. Each marked run starts with a hidden word, "removed:" or "added:", for a screen reader. A new block shows its whole text as added, and a removed block its whole text as removed. A diff keeps its block's kind of text: a code block diffs by lines and stays code, and a code span stays code. A block whose type changed reads "Type: prose → note" before its diff, and it counts once, as Edited. The disclosure review's short diff takes its pieces from this word diff, over the block's reader text, as plain text.

The accent chip, the label's review part and the summary pages count changed blocks by one rule, so their numbers agree. A block counts when a reader sees it change: its text, its links, its type, a custom field or its place among its siblings. Custom fields stay apart from the block's own structure, so a custom field named type never reads as a type change. A doc or folder that is added or removed counts as one block, and each block inside it counts too. A doc or folder also counts when its title, name, description or place changes. Decisions, rationale and a change of pins alone never count.

The disclosure review of rdy_publication_check counts blocks by this rule too. There a change of a block's shown status also counts. Decisions count apart, in their own counts, when a reader sees a title, statement or status change.

A review render through a profile shows only what the profile shows. Each side reads its own revision of the profile, matched by profile id, and a side with no such profile selects nothing. So a doc that the proposal brings into the selection reads New, and a doc that it takes out reads Removed. A profile that only the proposal holds shows every selected doc as New. The review bar ends with " · as <profile title>", such as "Reviewing proposal · Guest mode · by ana · as User guide". The accent chip and the review summary count only the blocks the profile shows. The neutral chip counts the landings since the tag that change what the profile shows.

llms.txt

Two machine-readable files sit beside the site. llms.txt is an index: the site's name and description, and each page's title with the start of its text. llms-full.txt holds the full reader text of every page, in reading order, as Markdown.

Both carry exactly what a reader sees on the page and nothing else: no ids, types, statuses or other metadata. A reader control adds no words: a button's label and a diagram's "open full size" link are left out. Authored text with the same words stays. An outside agent that reads the site gets the same treatment as everyone else. The not-found page is in neither file.

llms.txt
llms.txt is the one machine-readable output beside the site. It carries exactly the text a reader sees on the page, with no ids, types, statuses or other metadata. Outside agents get the same treatment as everyone else.

Branding and project themes

The site shows the project's own name in the header, breadcrumbs and page titles, never the literal "rdy". A project sets its name and description, and may set a logo and a favicon, in the project config. rdy appears only as a quiet "Built with rdy" credit in the colophon. The project can turn the credit off. rdy's mark is also the default favicon when the project sets none.

Branding
Branding is a project's own name, optional logo and favicon, set in the project config. The site never shows rdy's mark in the header; rdy appears only as a quiet, removable "Built with rdy" credit and as the default favicon.

rdy render checks every documented text and background pair and warns on a failing pair with W_THEME_CONTRAST; a strict setting makes the warning an error. Theme tokens live in the project config, and theme files and self-hosted fonts live in .rdy-theme/, a dot folder never read as docs. Only project config affects rendering, so one tag renders the same site for everyone. A theme is not versioned in the store, so a theme change restyles older versions too. Configuration says where these settings live.

Nothing for agents on the site

The site is for people. Agents read and write only through tool calls, never the rendered pages or the working-copy files. Everything a page could tell an agent has a tool-call home. rdy_context gives a block's fields and governing decisions. rdy_read gives a page's blocks. rdy_overview gives the tree and the version position. The agent guide describes the tools.

Constraint

No control, panel or data on a page is addressed to agents; ids live only in element attributes and inside a copied ref.

How the site is built

rdy render --out <dir> writes a static site from canon. --scope renders a view, a proposal version, a tag or a landing instead. The output directory is replaced as a whole on each render, so a site is never half old. The site can be built from the folder tree alone; the store is needed only for writing and reasoning. rdyhub reuses the same renderer, so a published site keeps every promise on this page.

Live site
The live site is the rendered site that the daemon serves, and its open pages update by themselves after each write. It shows canon, each version, and any view or proposal version in review mode, and its version menu lists them. Each shows in full or through a publication profile. A profile-only site shows one profile of canon and nothing else. Its pages are read-only. The approver's local UI is a separate set of pages on the site's loopback listeners.
Local UI
The local UI is the approver's pages on this machine: the needs-you queue and its cards. They are not site pages, and an answer made there records local. The live site's loopback listeners serve them.

The approver UI runs on the live site's loopback listeners, with no login, while serve.ui is on. /~ui/ shows the pending items, /~ui/item/<id> shows one card, and POST /~ui/answer takes an answer. The items and cards are those of rdy_pending, with the same card_hash, and an answer records local with evidence card. Pages are server-rendered HTML in the site's theme. For a question under stable content, the item page shows the briefing for the decision's destination and sends its token with the answer.

On the pending page, a question has a link to its item page and no form. The briefing shows below the card, outside the card and its card_hash. A missing token is E_BRIEF_REQUIRED, and an old one is E_BRIEF_STALE. rdy never fetches a new token during an answer. A reload of the item page fetches a fresh briefing.

Forms and error details work with no script. A page may load the site's theme scripts. The site's live script reloads it after each write to the project and each rebuild of the site config. A publish that writes nothing sends no reload, so a form on its way keeps its page. A form on its way closes the page's stream, so no reload can cancel its navigation. The next page opens its own stream. A UI page sets its referrer policy to same-origin, because the site's no-referrer header makes a browser send Origin: null with a form, and the answer route refuses that.

A write to the project reloads an open UI page, and a note not yet sent is lost. An answered question stays in the queue until its decision lands, and its item page keeps the form, because a person may change their mind. On the item page and the pending page, a line shows below the card, outside the card and its card_hash. It reads You answered this in view <view>: <decision id>. It lands with that view's next proposal. Another answer records a second decision. rdy checks only the person's latest answer, so no line shows when that answer's decision left its view. rdy_pending, rdy_answer and the CLI do not show the line.

Later on a UI page leaves the item open, with no record. The pending page then shows Later keeps <ref> open. It stays on this page until you answer it. The card keeps its one Later line, because the card and its card_hash are the same on every surface. Accepting advice there keeps its plain record, with the person as actor.

UI pages are no site pages: no static render, llms file, search, navigation or page count holds them. Any local process can approve through the UI, a process of another OS user or an agent on this machine included, because TCP carries no peer check. rdy records that approval as the person's own local one. A UI approval is unsigned.

POST /~ui/answer and, while serve.mcp_http is on, POST /~mcp are the site's only POST routes and the only routes that take a request body. The answer route takes at most 4 MiB. It needs an Origin equal to the loopback origin and the form's media type. POST /~mcp refuses every Origin, needs the project's token and takes at most 16 MiB, as transport and attach says. Every other route keeps GET and HEAD, and every request keeps the Host check. The LAN and profile-only listeners, and every listener with serve.ui off, answer a UI path as any path with no page: the themed 404 for GET and HEAD, and the site's 405 for POST.

A refusal on a UI page reads in plain words, and an info icon beside it opens a popover with the error code and its fix, with no script. A moved card comes back with the fresh card and status 409. E_PERMISSION and E_NO_AGENT get 403. E_BAD_INPUT, E_UNKNOWN_REF, E_NOT_FOUND, E_RESERVED_VIEW and E_LIMIT get 400. E_IO and E_INTERNAL get 500, and every other code gets 422. When that page does not render, the answer is the site's plain 500.

The route's own checks answer in plain text, because they fire before any page. A wrong method on a page reads This page answers GET and HEAD only., and on the answer route This address answers POST only. A body past the limit reads The answer is too large. Send at most 4 MiB. Another media type reads Use a form to answer this card. A form that does not parse reads E_BAD_INPUT: <message>, then fix: <fix> on the next line.

Renderer
The renderer turns blocks into HTML through pack templates, as a static site with rdy render --out or as the live site. It is built for readability first: navigation, search, typography, a table of contents, cross-references and content types. Four types of Mermaid diagram render in both themes, and the other types and D2 show as code.

The quality gate enforces the promise. A scan of every page's visible text fails on one storage artifact. Static checks cover the theme tokens, contrast and sideways scroll. A visual review scores every renderer change in both themes, at desktop and phone widths.

The daemon serves the live site from the moment it starts, on a port derived from the project path. It builds a scope's pages when someone asks for one, and a live page in view keeps the daemon up. Canon serves at the root, a version at /~tag/<version>/, a view at /~view/<name>/ and a proposal version at /~proposal/P-x@n/. The version menu serves at /~versions/. Under canon and under each of those prefixes, ~profile/<key>/ serves the same scope through a publication profile, such as /~profile/user-guide/. A profile-only site serves one profile of canon on a second port, and nothing else. A view or a proposal version shows in review mode, with Show changes and Show diff. An agent gets the link with rdy_site and gives it to the person; rdy site is the CLI twin.

After each write, the daemon rebuilds canon, a tag, or a profile route of one, when it has an open page, unless the write changed nothing the scope shows. A review target renders again only its open pages, as the note below says. A page whose bytes changed reloads and keeps its scroll position. When only the version label changed, the page updates the pill, the chips and the colophon in place. A page in a background tab closes its stream. When the reader returns, the page reconnects and reloads if it changed meanwhile. Without JavaScript, a live page still reads correctly and only lacks the updates.

One ledger counts what the site keeps, against one cap of 256 MiB. It counts the builds of canon and tags, and each review target's pages, shared parts and warnings. rdy counts a review target's preparation by the renderer's estimate of the bytes it holds. It counts a part that review targets share once, but it can count some parts inside it more than once, so the estimate can be high. The rule that lets one eager canon build pass the cap stays.

When the cap is full, rdy drops review pages first, least recently used across every review target. A request makes only its own page recent. Then rdy drops the preparation of review targets that keep no page. To meet the cap, it never drops a build of canon or a tag, or of their profile routes, for a review target. But the limit of 8 targets with no open page counts every kind of target, so many review targets can push out a build of canon or a tag that has no open page. The next request builds it again. An open stream does not keep its page from being dropped. A page larger than the whole cap is served and not kept. Preparation that cannot fit serves the current request, and then rdy drops it and keeps only the small facts it needs to compare streams. After rdy drops a whole target, a later request prepares the same state again.

The cap counts what the site keeps. It does not limit the process's resident memory, the buffers of a render in progress, or the eager canon build that passes it. The site keeps at most 32 open streams, 8 targets with no open page, and 8 queued events for each stream.

A live review target has the publication manifest's limit of 2 GiB for each file, and no limit for the whole target. A review through a publication profile also keeps the limit of 32,000 files, which its preparation checks; a review of a view or a proposal version has no file-count limit. rdy never renders pages that nobody asked for to measure them. The other paths keep their limits. A publication artifact, its one-page form, the live profile routes of canon and tags, and the profile-only site keep the limit of 2 GiB for the whole artifact, 2 GiB for each file and 32,000 files. Live canon and tags, and rdy render, have no artifact limit. rdy_publication_check reads the source and caps its report at 8 MiB.

The warnings that rdy logged for a review target stay with the target, also after a write. A complete check replaces them with its own warnings. They count in the cap. When rdy drops only pages, it keeps them, so a check never logs again a warning that a page logged. When rdy drops the whole target, they go. A later check of the same state can then log each warning again, at most once in each check.

/~proposal/P-x/ follows the proposal's latest version. The link percent-encodes a view's name, so a name with / stays one path segment. A view named . or .. has no link, because a browser reads that name as a step in the path. A proposal version made before the first landing shows its changes against the empty project while canon is empty. After the first landing, such a version shows no review marks or toggles, but its bar and chip still name and count it. A view that no longer exists, or a path with no page, answers with the site's not-found page, with status 404.

The site has its own not-found page, in its layout and theme. rdy render writes it as 404.html at the site's root, and a static host serves it for any missing path. The live site sends the same page, with status 404, for every path that has no page. A path under an open version, view, proposal or profile route uses that scope's layout, navigation and search. A link to a version, view or proposal that is not open uses canon's layout. The page never shows the path or the name the link holds. When the layout itself does not build, the answer is the plain text "Not found. Ask your agent for the site's link (rdy_site), or run rdy site." On a profile-only site, every /~ path answers as a path with no page, in the profile's layout. So the page never hints at a version, view or proposal. Every other refusal of a site route keeps its status and its plain-text answer. A UI page has its own refusals, which the approver UI text above lists. The 500 answer reads "This page could not be built. The person who runs this site can find the reason in rdy's log."

Table 3
CaseTitleTextLinks
A path with no pagePage not foundThere is no page at this address. It may have moved, or the link may be wrong.Search these pages, or go to the home page.
A link to a version, view, proposal or profile that is not open (live site only)Page not foundThis link names a version, view, proposal or profile that is not on the site now. A view or proposal leaves the site when its work lands or stops.See the latest docs, or open the list of versions, proposals and views.

The browser title reads "Page not found · <site name>", and a profiled render uses the profile's title as the site name. The header keeps the brand, search and the theme toggle, and the sidebar shows the home page's neighborhood. Every link and asset starts at the site's base path: the scope's prefix on the live site, and / or site.base_path in a static render. So the page works at any depth. Its message sits in the control that UI pages use: an info icon opens a popover with the code 404 and the fix, which is the text of the table's Links column. The page carries noindex. It is in neither llms file, the search index, the navigation, the pager, the permalinks nor the page count. It shows no version label, chips or review bar, holds no block toolbar, and does not update by itself.

A publication carries no generated 404.html, because every link inside it is relative and it works at any address. The hub serves its own not-found answer. It is the one promise on this page that a published site does not take from the renderer. In rdy render, a top-level doc whose page is 404.html keeps its page. The render then warns the top-level doc named 404 has the page 404.html: the site's not-found page is left out. Rename the doc to publish it. The live site does not warn, because it still sends the not-found page for every other path that has no page.

Render warnings reach the live path too. The daemon logs each new warning of a scope once, as site: <scope>: warning: <text>. A profile route or a profile-only site gives its root path as the scope, such as /~profile/user-guide/ or /. rdy_site and rdy site carry the scope's warnings with the link, so the agent can relay them to the person. For a review target, these warnings come from one complete check of the target, as below. A profile route with more than 100,000 landings since its tag warns Profile history exceeds 100000 landings. The landings chip and since link are omitted. Open a tagged profile scope to read that version.

The site stays on this machine by default. serve.site_lan: true also serves it on the machine's private network address, and rdy warns that anyone on that network can read the docs. serve.site_lan_address names the address when the default route's address is the wrong one. rdy never serves the site on every interface or a public address. The LAN listener answers only reads, and both write routes, the UI answer and MCP over HTTP, are on the loopback listeners only. The server checks the Host header of each request. On a shared machine, other users can read the site too, because a loopback port admits every user.

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