Skip to content

docs: typed-fault consistency pass (ADR-0011, rpc, migration, house-style)#436

Open
lgahdl wants to merge 1 commit into
nullislabs:developfrom
bleu:docs/289-typed-fault-consistency-pass
Open

docs: typed-fault consistency pass (ADR-0011, rpc, migration, house-style)#436
lgahdl wants to merge 1 commit into
nullislabs:developfrom
bleu:docs/289-typed-fault-consistency-pass

Conversation

@lgahdl

@lgahdl lgahdl commented Jul 16, 2026

Copy link
Copy Markdown
Collaborator

Summary

Fixes #289. Docs pass over the typed-fault vocabulary (epic #206) catching up with #219's restoration of the cow rejection's data payload, plus a house-style pass.

  • ADR-0011: the orderbook rejection was described as {errorType, description}; fix(runtime): whole-train hardening for the typed-fault stack #219 restored data, so it's {errorType, description, data} — fixed the one place this said otherwise.
  • docs/07-rpc-namespace-design.md: same fix, two spots — the WIT record's own doc comment, and a code comment referencing the parsed shape. The actual record definition two lines below the first fix already had the correct 4-field shape (status, error-type, description, data).
  • docs/migration/0.1-to-0.2.md: the data payload wasn't called out here at all. Added a cow-api WIT snippet mirroring the existing chain-error one, spelling out order-rejection's full shape.
  • docs/production.md: house-style pass, 22 em-dashes → ASCII hyphens (matching the - convention used throughout docs/*.md and the ADRs).

Not fixed: the issue's fourth bullet — stale committed diagram .png renders needing regeneration, blocked on mermaid-cli — no longer applies. Grepped the whole tracked tree for any committed .png/.svg/.jpg: none exist. Diagrams render inline via mermaid code blocks in docs/diagrams/diagrams.md (GitHub renders these natively, no build step, no pre-rendered image to go stale). Separately, the standalone .mmd files under docs/diagrams/ are now orphaned — they no longer match diagrams.md's inline content — but reconciling or removing them is a distinct problem from what this issue asked for (image-vs-source sync), so left as a follow-up rather than folded in here.

No code changes — pure documentation.

Test plan

  • Grepped every fixed file to confirm no other stale {errorType, description} references remain
  • Grepped the whole tracked tree for .png/.svg/.jpg to confirm the diagram-regeneration bullet is moot

…tyle)

- ADR-0011: the orderbook rejection description was {errorType,
  description}; nullislabs#219 restored the data payload, so it's
  {errorType, description, data} - fixed the one place this doc said
  otherwise.
- docs/07-rpc-namespace-design.md: same fix, two spots (the WIT
  record's own doc comment, and a code comment referencing the
  parsed shape). The record definition two lines below the first fix
  already had the correct 4-field shape.
- docs/migration/0.1-to-0.2.md: the data payload was never called out
  here at all - added a cow-api WIT snippet mirroring the existing
  chain-error one, spelling out order-rejection's full shape.
- docs/production.md: house-style pass, 22 em-dashes to ASCII hyphens.

Not fixed: the issue's fourth bullet (stale committed diagram .png
renders needing regeneration, blocked on mermaid-cli) no longer
applies - grepped the whole tree for any committed .png/.svg/.jpg and
found none. Diagrams render inline via mermaid code blocks in
docs/diagrams/diagrams.md (GitHub renders these natively, no build
step), not from pre-rendered images. Separately, the standalone .mmd
files under docs/diagrams/ are now orphaned - they no longer match
diagrams.md's inline content - but reconciling or removing them is a
distinct problem from what this issue asked for, so left as a
follow-up rather than folded in here.

Fixes nullislabs#289.
@lgahdl
lgahdl requested a review from mfw78 as a code owner July 16, 2026 17:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

docs: typed-fault doc consistency pass (ADR-0011, rpc, migration, house-style)

1 participant