| State | Accepted |
| Architectural Significance | MEDIUM |
| Domain | Inference |
| Document version | 1.4 |
crates/rto-faithful/src/lib.rs#check.spec draft: crates/rto-spec/src/spec.rs#draft_coverage.spec draft sends: crates/rto-spec/src/spec.rs#draft_prompt.crates/rto-graph/src/prose.rs#lint.crates/rto-spec/src/spec.rs#repair_accepts.crates/rto-graph/src/reviewer.rs#build_verdict_prompt,
crates/rto-serve/src/tools.rs#system_prompt.Prose a model writes for Roteiro is measured on three axes, each by a deterministic function of the text and the inputs the model was given, and each reported separately:
rto-faithful already does this.No model grades a model. The axes are never folded into one score, because each can be gamed by the others: the shortest answer has the best style score, the longest the best coverage.
rto-faithful bounds fabrication and says plainly what it does not bound:
"A rendering that silently drops half the findings is faithful by this
definition. Coverage is a different property with a different check." Nothing
implemented that check.
Separately, a model asked to write tersely writes less. webSTE100 measured exactly this: a 430-word answer that scored poorly became a 32-word one that scored well and lost the steps that mattered. Its author's conclusion — measure style, completeness and correctness separately — is the shape of this decision. Roteiro is better placed than a general tool to do it, because it knows the exact set of graph nodes it handed the model, so completeness is set membership rather than a judgement.
The Roteiro Project Team (owner decision, 2026-11-12).
Coverage applies to spec draft, whose prompt hands the model a known set of
symbols and governing decisions to write about. After drafting, Roteiro reports
which of them the document never mentions. It is a report, never a gate: a
section of two to four sentences cannot name every symbol, and an omission is a
prompt for the author, not a defect.
It does not apply to:
review --llm. Its prompt asks for the ONE
most important thing, so dropping the rest is the instruction, not an
omission.A mention is decided by text alone: a symbol's name as a whole identifier, or a
decision's key (adr:0018) or number (ADR-0018).
The style lint reads prose and skips code spans, fenced blocks, wiki links, graph keys and paths — which is most of what a Roteiro answer carries. It uses Roteiro's own word list. The official ASD-STE100 dictionary is ASD's and is not shipped. It approximates the standard; it does not certify against it.
spec draft may rewrite a section against its lint findings, at most three
passes, only when asked. A rewrite that mentions fewer of the supplied symbols
and decisions than the draft it replaces is discarded however well it scores,
and the best surviving version is kept. Every pass is another model call — and,
against a hosted provider, another copy of repository content sent (ADR-0028) —
which is why it is never the default.
The spec draft, review --llm verdict and Ask prompts gain a few of the
standard's rules: short sentences, one instruction per sentence, one name per
concept. Not the whole standard: its dictionary is too strict for prose that
must name code.
The same lint can be run over the ADRs and other authored documents. It reports
and never fails roteiro check: authored prose is a person's, and a heuristic
that is wrong sometimes must not block a merge.
| Option | Outcome |
|---|---|
| An LLM judge for quality | Rejected: non-deterministic, and a model grading a model is what rto-faithful exists to avoid. |
| One combined quality score | Rejected: each axis is gamed by the others; a combined score hides which one moved. |
| Gate on style or coverage | Rejected: both are heuristics over prose. A gate that is wrong sometimes blocks people for nothing. |
| Three deterministic axes, reported separately | Chosen. |
spec draft prints a coverage line and a style line on stderr. Its stdout
document is unchanged.Accepted (2026-11-12). Implemented in full (§1–§5); see the version history.
| Version | Date | Change |
|---|---|---|
| 1.0 | 2026-11-12 | Initial. Accepted with the coverage report for spec draft (§1). |
| 1.1 | 2026-11-12 | §2 and §4 implemented: rto_graph::prose::lint, a style: line from spec draft beside the coverage line, and the partial controlled-English rules in the spec draft, verdict and Ask prompts. The prompt rules are not yet measured against a model. |
| 1.2 | 2026-11-12 | §5 implemented: roteiro docs prose [PATH…] lints authored Markdown (default docs/), skipping frontmatter, and prints path:line: rule — message and a score per file. It always exits 0 and is not part of roteiro check. Issues now carry the line their sentence starts on, and an un- participle after be (is unchanged) is no longer read as passive. |
| 1.3 | 2026-11-12 | §3 implemented: spec draft --repair N (0–3, off by default) rewrites each section against its style findings and keeps the best version. rto_spec::repair_accepts takes a rewrite only if it scores better and mentions every symbol and decision the draft did. A failed or unanswered pass ends the loop and keeps the best so far. |
| 1.4 | 2026-11-13 | §4 measured: the plain-English sentence in the shared tool prompt does not change tool choice. scripts/tool-choice-accuracy.py against roteiro serve on Ollama qwen3.8:27b, with tools sent natively (#971), scored 13/13 with and 13/13 without the sentence. Measured on tool choice only; answer quality is not measured. |