Repository navigation
Style Guide
Kadyapam edited this page Nov 14, 2026
·
2 revisions
Seed rules; extend through discussion here and record changes in Decisions.
- Badge first. Every page opens with its REAL / PARTIAL / TARGET badge. A PARTIAL page says which parts are which.
- Label every number (MEASURED / DEPLOYED / DEFAULT / GUIDANCE / TARGET / NOT_YET_MEASURED), and for MEASURED give where, when and n.
- Version-stamp prod facts ("as of server vX.Y, date"); never write "currently".
- Say what exists today before what is planned.
-
Use the DSL's real keys (
workflow, notsteps), as defined byplaybook.schema.json. -
Examples are files in
examples/, run by CI; name the runtime each one needs. - Quizzes: 2–5 per section; distractors come from real misconceptions (add them to Appendix F); every answer has an explanation.
- Plain, direct prose. Short sentences; define a term before using it; no marketing tone.
Enabled in book#5. Use a fenced block whose info string is admonish <type>:
```admonish myth
"Local mode runs `loop:`." It does not: at CLI v6.4.0 the step runs once and exits 0.
```| Type | Use it for | Never for |
|---|---|---|
myth |
A belief readers (or older docs) hold that is wrong, followed by the verified fact and its source. Every myth also gets an Appendix F row. |
Opinions or style preferences |
not-yet |
A TARGET subject inside a page: designed (cite the RFC), not built. Say what exists today first. | Anything merged, even behind a flag (that is partial) |
partial |
Merged and released, but off by default, proven only on kind, or on one deployment. Name the flag and its default. | Things that are simply incomplete prose |
note, tip, warning
|
The built-ins, as usual. warning is for things that lose data or break prod. |
Status (use the three above) |
One TOML file per section, quizzes/chNN-MM.toml, embedded at the end of the section with {{#quiz ../quizzes/chNN-MM.toml}}. Sample: quizzes/ch00-01.toml.
[[questions]]
type = "MultipleChoice"
prompt.prompt = "In the local runtime (CLI v6.4.0), what does a step with `loop:` do?"
prompt.distractors = [
"Runs once per item, sequentially.",
"Fails validation before any step runs.",
]
answer.answer = "Runs once, ignoring `loop:`, and the run still ends `ok`."
context = """
The local runtime parses `loop:` but has no iteration code path
(`execute_step` in `cli/src/playbook_runner.rs` at v6.4.0). The example
`examples/ch08/loop-runs-once` asserts it in CI.
"""Rules:
- 2–5 questions per section, each testing one idea the section actually taught.
- Distractors are real misconceptions: things the old docs said, things an agent wrote confidently, things a reader would infer from another system (Airflow, Argo, GitHub Actions). Not jokes, not obviously wrong. A distractor drawn from a myth gets an Appendix F row.
-
Every question has
context: why the answer is right and why the tempting distractor is wrong, with the source (file, release) when the answer is a fact about the code. - Types:
MultipleChoice(default),ShortAnswer(one exact token, e.g. a key name),Tracingonly for Rust snippets (not used for playbooks; use a trace instead, T-05). -
No telemetry.
cache-answers = truekeeps answers in the reader's browser only. (Owner decision #51 item 3 may change this; until then, none.) - Facts in a quiz obey the same badge rules as the page: never quiz a TARGET subject as if it were real.
The trace visualizer (mdbook-noetl-trace, #7) is not built yet. Until it lands:
- Do not embed
{{#trace ...}}; it will not render. - Show state changes as a short table (event → state after it), and cite the event types from the real event log.
- If you capture a real event log for later, save it under
traces/<chapter>-<name>.jsononly if it contains no secrets, hostnames or customer data, and note the server version it came from.