Concepts
Coverage and confidence
Coverage measures how much of the documentation's meaning rdy holds and can vouch for. rdy computes it live from records, and a landing records the coverage at its approval. Its main use is confidence: every assertion rdy gives an agent carries a level drawn from the coverage around it. Every lost point is a coverage issue that names its fix. This doc describes what coverage measures, how confidence works, where both show, and what they never do.
What coverage measures
rdy scores every block that is not presentational, from 0 to 100. It combines the block scores for each page, each area and the corpus. The score has six dimensions. By default they weigh the same, and a pack may weight them.
- Coverage
- Coverage is a 0 to 100 score of how much of the documentation's meaning rdy holds and can vouch for. rdy computes it from the current state for every block that is not presentational. It combines the block scores for each page, each area and the corpus. Its six dimensions are Grounded, Consistent, Current, Connected, Complete and Governed. It is the basis of confidence, and it never blocks a landing by default.
| Dimension | What lowers it |
|---|---|
| Grounded | Content tied to no entity (untied_content); on a normative block, an unlinked entity mention (unlinked_mention), once per block and entity, unless a review dismissed it or the entity is everyday. The issue names the words in text |
| Consistent | An open tension that the scope counts (open_tension); a dismissed tension, at a reduced weight (dismissed_tension) |
| Current | An open suspect (open_suspect) |
| Connected | A doc that no block outside it links to (unlinked_doc); a reference or link to a block that does not exist (dangling_ref), except an accepted decision's kept citation of a block it re-affirmed as deleted |
| Complete | A stub section (stub_section); a required skeleton section that the doc lacks (missing_section); an open question (open_question); a doc in a level with too many docs (crowded_level); a prose or note block that is one question (question_as_prose) |
| Governed | A stable normative block with no governing decision, no reflects link to a held source and no reflects globs (ungrounded); a live decision that no content applies (unapplied_decision) |
Grounded keeps one check on each content block, and untied content costs it (untied_content). A mention adds a check only on a normative block. On a block that is not normative, an unlinked mention is a link suggestion. It adds no check, no unlinked_mention issue and no confidence reason. The mention still gives the suggestion, a search match and a row in the entity's fact sheet.
Each dimension checks these blocks:
- Grounded: one check on content, plus one check for each entity that a normative block's text names.
- Consistent, Current and Connected: one check on every scored block.
- Complete: one check on a doc, a section, a prose or note block, or a question.
- Governed: one check on a stable normative block that is not a decision, and one on a live decision without
needs_content: false.
Content is a block that can describe an entity. A mention adds a check only on a normative block that can link to the entity, such as a requirement or a proposed decision. An unlinked mention of a deprecated entity adds no check, because the fix is to reword it. An unlinked mention of an everyday entity adds no check either. A section with no child other than sections is a stub. A block is governed through decided_by, implements or a direct affects, or through a live decision that affects an entity the block describes. It is also governed when it has a reflects link to a source that the scope holds, or a nonempty list of valid reflects globs.
rdy scores by checks. An open coverage issue costs one check, and a dismissed tension costs the pack's dismissed_weight percent of one, 50 by default. In every dimension but Grounded, the issues of one block cost at most one check. A dimension scores its checks minus their cost, as a percentage of its checks, rounded down. The overall score is the weighted mean of the dimensions present, rounded down. A dimension with weight 0 is still reported, but the overall score omits it.
Grounded counts how well content ties to the entities of Entities and fact sheets, and how well normative blocks link the entities they name. Governed is one dimension of six, so the score does not lean on decisions. A set of blocks with nothing to check scores 100. The same store always gives the same score.
A deleted source governs nothing, and neither does a reflects link to a block that is not a source. Globs count without a linked checkout. governing still lists decisions only.
Coverage issues
A coverage issue is one reason a block loses points. It names the block, the dimension, a code, the subject and the fix. The subject is what the issue is about, such as an entity, a tension or a section title. The issue clears when its fix lands.
- Coverage issue
- A coverage issue is one reason a block loses coverage points. It names the block, the dimension, a code such as
unlinked_mention, and the fix. rdy computes it from the current state, and it clears when the fix lands. It is not a finding.
The fourteen codes and their fixes are:
untied_content: "link <block> to the entity it describes, with describes or a ref".unlinked_mention: "link this mention to <name> (<entity>), or dismiss it as a passing mention".open_tension: "resolve <tension> (<kind>) with a change, or dismiss it with a reason".dismissed_tension: "<tension> is dismissed for the gate; resolve it with a change to clear it here".open_suspect: "confirm this suspect: update <block>, or repin it to <target>".unlinked_doc: "link to <path> from another doc".dangling_ref: "fix the reference to <target>, which does not exist".stub_section: "write content under <title>, or remove the section".missing_section: "add the required section <title>".open_question: "answer <block> with a decision (answers), or remove the question".crowded_level: "group the docs of <folder> into folders", or "group the docs of the top level into folders".question_as_prose: "change the type of <block> to question".ungrounded: "link <block> to the decision that governs it, with decided_by or implements, or justify its next change with reflects; rdy_trace shows the landing that introduced it".unapplied_decision: "apply <block>: write the content that carries it with implements: <block>, or link that content to it with decided_by; for a process ruling, set needs_content: false".
An accepted decision may keep a reference or link to a deleted block. It keeps one when its reaffirmed field records deleted for exactly that block. Such a kept reference or link raises no dangling_ref issue and no fix, and it does not lower Connected. Every other reference or link to a block that does not exist keeps the issue and its fix.
A missing source with a linked checkout adds the issue source_not_found in Connected. Its fix reads check the source's locator, or point the source at a tag or commit that exists. It sits on each scored block that reflects or cites the source. It counts in the coverage that people read: reports, search, fact sheets, onboarding and briefings. The coverage gate, the assessment, readiness, confidence and rule checks leave it out, because it depends on the machine.
Two structure issues sit in Complete. crowded_level marks each doc in a level that holds more docs directly than the pack key coverage.max_docs_per_level, 8 by default. Its subject is the folder's path, or / at the top level. question_as_prose marks a prose or note block whose body is one sentence that ends in ?. Each unlinked_mention issue also carries text: {field, line, span, words}, and the card's confidence line names the words, such as unlinked_mention on D-MYEW8 ("store").
Each scope counts its own tensions in Consistent:
- Canon counts the tensions whose sides are all in canon.
- A view counts those, plus the tensions with a side among the view's changes.
- The in-flight scope counts every tension.
No scope counts an intent overlap. Each counted tension puts one issue on every block it involves.
A dismissed tension stays a coverage issue, marked dismissed, with who dismissed it and why. It costs fewer points than an open one, at a weight the pack sets: half by default. When a side changes, the dismissal lapses and the issue counts in full again.
An agent or a person dismisses a passing mention with rdy_resolve or rdy resolve, with a reason. The dismissed mention is settled in every scope. It stays settled when the block is edited, because the dismissal judges the word, not the sentence. On a normative block, the mention counts again only when someone restores it. On any other block the mention never counts, so the dismissal only hides its link suggestion.
rdy computes coverage live, for canon, a view or the in-flight scope. Each ready proposal version stores its coverage in an assessment snapshot, and its landing names that snapshot. So history comes from records, not from a replay. rdyhub builds trends from those records, and it marks where the method or scope changed. An assessment snapshot is not the state snapshot that each landing records today, which holds only block ids and version hashes. A redaction report lists the state snapshots that name a removed version. It also scans every stored assessment and dispute reason, and it never erases them.
Each assessment snapshot names the computation that produced it, as a method number. rdy computes method 2, in which only a normative block's mentions add Grounded checks. A method-1 snapshot keeps the scores it recorded, and rdy never recomputes it. So the same content can score higher under method 2 with no edit. That rise is a change of method, not better documentation.
Coverage describes the current state only, so rdy never computes it at a past landing or in a proposal version:
rdy coverageandrdy_coveragerefuse such a scope withE_BAD_INPUT.rdy_overviewomits coverage there, and a briefing, a search and a fact sheet omit coverage and confidence.- A search there refuses
coverage_belowandsortwithE_BAD_INPUT.
A landing that is canon's head counts as canon. A proposal version's coverage is its view's, or canon's.
Confidence
A fact sheet, each search hit and each briefing carry a confidence level: high, medium or low, with its reasons. A proposal gets one for what it affects with the decision intake. The level tells the agent how far to trust the answer.
- Confidence
- Confidence is the level, high, medium or low, that rdy attaches to a fact sheet, a search hit or a briefing, with its reasons. rdy draws it from the coverage of the answer's neighborhood. An open tension or suspect there makes it low. It never blocks.
rdy draws the level from the coverage of the answer's neighborhood:
- For a fact sheet: the entity, each block tied to it by a ref,
describesoraffects, and each block whose text names it. - For a briefing: the covered blocks and the blocks in its
governs,dependentsandwill_go_stalelists, taken before the page cut. - For a search hit: the hit block and each entity it ties to by a ref,
describesoraffects.
| Level | When |
|---|---|
| High | No coverage issue in the neighborhood |
| Medium | Any coverage issue, but no open tension or suspect |
| Low | An open tension or suspect on any block of the neighborhood, or a search hit on content with no entity behind it |
Each reason is a coverage issue with its fix. The issues that set the level come first, and at most five are listed; reasons_omitted counts the rest. rdy cannot know facts it was never given. It knows where its knowledge is thin, and it says so.
An agent acts on a high-confidence answer. On a medium or low one, it widens the search, fixes the coverage issues it can, or asks the person before it acts.
Where coverage shows
Coverage and confidence reach people and agents in the replies they already read:
- A briefing shows the coverage of its covered blocks and their pages, and its confidence.
- A write response shows the change in the view's coverage, and the score of each page the write touched.
- A propose report shows the change from canon's coverage to the proposal view's, page by page.
rdy statusandrdy_overviewshow the current coverage, its dimensions and the number of coverage issues.- A search hit shows its block's coverage, its open coverage issues and its confidence.
A reply that cannot read the coverage still stands: it omits the coverage, and coverage_error says why.
The agent fixes what it can in the session and brings the rest to the person. A corpus built in rdy keeps its coverage high from the first write, because suggestions arrive while the agent writes. An import reports a baseline coverage, page by page, as the target list for a linking pass.
The site, static or live, shows no coverage or confidence. Coverage history, trends and dashboards belong to rdyhub.
Onboarding an existing corpus
An import ends with the corpus's coverage and an onboarding path. The path turns the baseline into four phases in a fixed order. A phase scores the weighted mean of its dimensions' corpus scores, and a phase with no dimension to score reaches 100. A phase is done when its score reaches the target coverage. The next phase is the first one that is not done. rdy coverage and rdy_coverage show the path at any time, not only after an import.
| Phase | Raises | What the agent does |
|---|---|---|
| Structure | Connected, Complete | Fix references to absent blocks, and link docs that nothing links to. Fill stub sections, add required skeleton sections and answer open questions |
| Entities | Grounded | Define terms and values. Tie each content block to what it is about. Link the entities a normative block names, or dismiss a passing mention with a reason. Elsewhere, accept a link suggestion when the block is about that entity; ignore a passing mention. Do not add links just to raise the score. |
| Decisions | Governed | Record the decisions behind normative statements, and apply each one with decided_by |
| Consistency | Consistent, Current | Resolve the tensions and clear the suspects that the import surfaced |
rdy has no model, so it infers no meaning. An agent makes the connections that need judgment. It works one phase in a view and proposes it, and a person approves each phase. The rdy:project-ops ruleset gives the agent these steps, in phase order. In the entities phase, the agent links the entities that normative blocks name, because only those mentions count against Grounded.
A project sets its target coverage as coverage.target in .rdy.yaml, 80 by default. Onboarding is done when the corpus score reaches the target, and then the path names no next phase. Each phase counts its open coverage issues per dimension and omits dismissed ones. rdy computes the path from the current state and stores no progress record. rdyhub tracks onboarding progress over time.
Unapplied decisions
A decision is applied when a block that is neither a decision nor a supporting block links to it by decided_by, implements or a ref. A write that carries implements: D-x writes that implements link from each content block it creates or rewrites. A decision is applied too when it affects a block that is neither a decision nor a supporting block. A live decision with neither is unapplied, even when other decisions cite it: the docs a person reads do not carry it. Coverage puts an unapplied_decision issue on the decision, which counts toward its area, the corpus and, for a decision in a doc, its page. When a proposal creates a decision that nothing applies, the propose report warns with W_UNAPPLIED_DECISION, and the warning never blocks.
- Unapplied decision
- An unapplied decision is a live decision that no content carries. Coverage puts a coverage issue on it, and the propose report warns when a proposal creates one. A process decision with
needs_content: falseis exempt.
Some decisions rule on process and have no documentation to carry them. Such a decision sets needs_content: false and raises no coverage issue.
Coverage and the gate
Coverage never blocks a landing by default, and confidence never blocks at all. A project setting can refuse a proposal that lowers the coverage of a page or of the corpus. That check leaves out ungrounded content, because content that predates rdy is ungrounded by nature. It counts unapplied decisions, so a project that opts in cannot land a decision that no content carries. Blocking tensions block as they always do.
The setting is the project key coverage.gate, off or no_lower, and off is the default. It is set in .rdy.yaml only; another value is out of range, and rdy uses off. With no_lower, readiness adds E_COVERAGE_LOWERED when a version lowers a page's or the corpus's coverage. The check leaves out every ungrounded issue, and Governed except for decisions. It compares each doc the version touches that exists in canon, and then the corpus. A new page has no earlier score, so only the corpus counts it.