Notes
Standing facts about this codebase that neither the code nor git log holds.
Not a decision log. Replaced the numbered ADRs — see retired/adr-system.md for why, and don't re-propose them.
Commit or note?
Ask: will this still be true after the next ten commits?
- No — it explains one diff → commit body. Frozen with the code it describes.
The
commitskill enforces this. - Yes — it constrains all future work → a note here. Edited in place when it stops being true.
Four things belong here and nowhere else: measurements (with date and method), rejected options (with the reason they lost), external-world constraints (upstream policy, licence, platform limit), and directions abandoned without a diff — the last have no commit to attach to at all.
What does not belong
- What the code says.
- What a commit says — why a change was made.
- Plans and proposals. Those are issues until they land.
- Anything a code change would falsify. That is a comment, next to the thing.
Example: the wasm
IoTaskPoolrule lives atlod22.rs:349, not here.
Format
One topic per file, named for the topic. Free prose — no mandatory sections; a template is a shape you fill when you have nothing to say. The only structure:
---
topic: routing
triggers: [routing.rs, navigation.rs, "A*", "turn list"] # when to read this
updated: 2026-07-26
---
Name the files. .claude/hooks/note-triggers runs after an agent reads or
edits a file — with the Read and Edit tools or through a Bash command naming it
(sed -n, cat, sed -i) — and lists the notes whose triggers match it, the
most specific first. It matches only three shapes: a file name (routing.rs,
water.wesl), a path of two or more segments (crates/atlas,
assets/shaders/patched/), and a module path by one of its last two segments
(systems::water → water.rs, free_camera::setup_camera → free_camera.rs).
Keywords and prose ("turn list") are for grep and reach nobody on their own. A
note with no file-shaped trigger is read only by someone who already knew to
look, which is how CLAUDE.md came to hold a copy of half of them. Never a bare
lib.rs or Cargo.toml: every crate has one.
A claim may carry a check: line — a shell one-liner in backticks that fails
when the claim goes stale (e.g. check: ! grep -rqi "osrm" Cargo.toml).
bun tools/notes-lint.ts holds all of this, and runs in the landing gate's
fmt step: an unquoted file trigger naming no tracked file (a rename leaves
the note silently unnamed), a bare lib.rs, a note with no live trigger, a
failing check:, a missing updated:. Quote a trigger to make it a keyword.
If a note passes ~100 lines it is probably narrating. Cut it.