Skip to content

Primers

A primer is one platform’s short list of what keeps going wrong there, in primers/<platform>.md: what people read before they touch that platform’s UI, next to the ledger. Its body is free prose; its front matter holds the structured lines.

---
platform: ios
lines:
- id: pin-to-safe-area
wrong: Pin a bar to the screen edge.
right: Pin it to the safe area.
defect: D-0001
---
What keeps going wrong on iOS.

A line can also carry a reference and a why. gantry generate puts each platform’s lines on its generated page, beside that platform’s answer to every ruling.

A line must cite a defect whose owes names that line (primer-line-without-defect). So a primer grows only from a real failure, never from a guess about what might go wrong, and every line can be traced to the frame that showed it.

It works the other way too: closing a mistranslated defect (the ruling is right, one platform’s port got it wrong) owes a primer line, so the fix leaves the lesson where the next person on that platform will read it:

Terminal window
gantry close --owes primer:ios:pin-to-safe-area D-0001

The platform must be one gantry.yaml configures (unknown-platform).