octobot/OKF/decisions/R-022-prose-cites-carry-a-register-prefix.md
Lukasz Boryn b6bc88ca29 docs(blueprint): implement blueprint 030
Filename search needs the prefix on disk, not just in prose; a bare
NNN can't tell decisions and blueprints apart by ls or grep.

* refactor(okf): rename decision and blueprint files to R-/B- prefix
* fix(write-OKF): recognize R-/B- filenames in register_numbers
* docs(blueprint): fix numbering step and filename-pattern docs
2026-09-23 14:50:22 +02:00

2.3 KiB

type, purpose, answers, cites, status, reversible
type purpose answers cites status reversible
Decision Stop a bare three-digit number meaning two different pages at once.
How is a register entry cited in prose?
OKF/CONTEXT.md
OKF/decisions/index.md
skills/loop/blueprint/blueprint-format.md
OKF/ferries/python-siblings/MAP.md
superseded-by-024 yes — drop the prefixes; numbers, filenames and links never moved

022 — a prose cite carries its register's prefix

Blueprints and the why-register number independently, so the same three digits already name two unrelated pages three times over: 013, 017 and 019 each exist in both. A markdown link is safe — its path says which — but a bare number in prose is not, and B-019 (the render lint) against R-019 (recon may self-fire) is the kind of collision a reader resolves wrongly without noticing. In prose: B-NNN for a blueprint, R-NNN for a why-register decision, D-n for a ferry decision. Filenames, link targets, index.md labels and superseded-by-NNN status values are untouched — the prefix is a reading aid, not an identity.

Considered options

D- for the why-register was the first proposal and is unavailable: D-<n> already names a ferry decision, on disk at ferries/python-siblings/D-1..D-3 and canonical in CONTEXT.md. Reusing it would fuse two namespaces that today collide only in type:. R- for why-Register keeps them apart.

Renaming the files (B019-…md, D020-…md) was rejected: it breaks every link, the register index, blueprint-format's NNN-<slug> contract and blueprint's numbering step, and contradicts numbers are permanent — supersede, never renumber.

Applying it only to new prose was rejected as the cheaper half of the same idea. A convention adopted forward-only leaves two dialects, which is the defect phase 10 already exists to remove; the live pages were retrofitted in the same change.

Consequences

  • LEARNINGS.md is not retrofitted — it is append-only by its own header, so its bare numbers stand as written and new entries carry the prefix.
  • Nothing enforces this yet. A bare three-digit number outside a link and without a prefix is a lint the okf-check blueprint should carry, or the rule decays exactly as R-020's prune did.