Skip to content

docs: add sequence diagram to how-ways-works model#191

Merged
aaronsb merged 2 commits into
mainfrom
docs/how-ways-works-sequence-diagram
Jun 29, 2026
Merged

docs: add sequence diagram to how-ways-works model#191
aaronsb merged 2 commits into
mainfrom
docs/how-ways-works-sequence-diagram

Conversation

@aaronsb

@aaronsb aaronsb commented Jun 24, 2026

Copy link
Copy Markdown
Owner

What

Adds a Mermaid sequence diagram to docs/explanation/how-ways-works/how-ways-works-the-model.md (01.017.E), in a new "One turn, in order" subsection.

Why

The page already had a structural flowchart of the four observable behaviours. A flowchart shows which behaviours exist; it can't show the temporal claim the prose makes — that the cheap matcher runs to completion before Claude sees anything, and that a way_nearmiss lands in events.jsonl but is never injected into Claude. The mermaid way's rule applies directly: content with a time axis is a sequence diagram.

Details

  • Actors: User → Matcher → events.jsonl → Claude. Every event type writes to the record first; only cleared premises are injected into Claude.
  • The near-miss is a dashed arrow to the record only — the visual encoding of "recorded, never injected," which is why the conversation can't reveal it but the JSON dump can.
  • Followed the mermaid way: dropped <br/> from participant labels (broke the terminal renderer, fragile on GitHub) and moved the cheap/expensive-substrate distinction into notes.
  • Validated with mmaid -t blueprint; catalog lint passes (0 errors, 0 warnings).

https://claude.ai/code/session_01KDHroTCYH3VuCG3npY6Dzj

aaronsb added 2 commits June 29, 2026 01:33
Claude Code repeatedly prompted to enable tui mode; tried it, hit bugs,
turning it back off explicitly so it stops asking.

Claude-Session: https://claude.ai/code/session_01TFyiQNDZ8RTMHX4Tnmp1wY
The model page carried a structural flowchart of the four observable
behaviours, but a flowchart can't show the one thing that makes them
matter: the matcher runs to completion before Claude sees anything, and
a near-miss reaches events.jsonl but never reaches Claude. That
asymmetry is temporal, so it wants a sequenceDiagram.

Adds a "One turn, in order" subsection: User -> Matcher -> events.jsonl
-> Claude, with the near-miss as a dashed arrow to the record only.
Per the mermaid way, dropped <br/> from participant labels (fragile)
and validated the render with mmaid.

Claude-Session: https://claude.ai/code/session_01KDHroTCYH3VuCG3npY6Dzj
@aaronsb aaronsb force-pushed the docs/how-ways-works-sequence-diagram branch from 1efdd32 to 77fe089 Compare June 29, 2026 06:38
@aaronsb aaronsb merged commit ff9bb6c into main Jun 29, 2026
3 checks passed
@aaronsb aaronsb deleted the docs/how-ways-works-sequence-diagram branch June 29, 2026 06:38
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.

1 participant