octobot/OKF/learnings/validators.md
Lukasz Boryn 68c8c18d0d feat(lints): error when a mustered blueprint reaches implemented on matches: no
okf-check only checked that a mustered blueprint carried a tally: block
before implemented, never what it said. tally: matches: no is a non-empty
block, so it passed the same check a missing block failed — the muster
gate silently let a known miss through.

The check now reads the verdict: matches: no on an implemented, mustered
blueprint is now an error distinct from the missing-tally: one; matches:
yes and everything else are untouched. Verified against a fixture and the
real tree per blueprint 027 §Verify.

027 traces to a user request, carries muster: false (the Verify proves
the exact fixed case, not just tree-green), and flips to implemented.
Filed as a learning at OKF/learnings/validators.md — presence of a field
is not a verdict on it.

implements blueprint 027
2026-09-23 10:08:17 +02:00

2.5 KiB

type, purpose, answers, cites, status
type purpose answers cites status
Learnings Keep what the check scripts turned out to see, and what their parsers are blind to.
What did we get wrong about the OKF check scripts?
skills/loop/write-OKF/scripts/okf-check
live

octobot — learnings: the validators

  • Believed: a marker-shape check can match its markers anywhere in the page. True: octobot's own blueprint 004 documents the okf:derived markers, so an unanchored match read them as a third fence and failed the repo's own OKF. A delimiter must be anchored to its whole line, or the page that specifies it becomes invalid. Source: weave of blueprint 004.
  • Believed: okf-check can read a new nested frontmatter block (like tally:) through its generic frontmatter() parser. True: that parser flattens a nested block to an empty list — its indented key: value lines match neither its list nor its scalar branch — so a block check needs a dedicated regex grab, the way pin() handles sealed:. Source: weave of blueprint 011.
  • Believed: a lint that proves three renders byte-identical protects the rendered shape. True: it proves identity only. A rename inside the box-drawing block shifts every copy the same way, so a name that shortens by two columns leaves the right-hand column and its arrows misaligned in all three at once and the check still passes. Re-pad the trailing columns by hand. Source: rig of B-024.
  • Believed: superseding a blueprint costs one status word, so extracting shared code cannot touch the page it supersedes. True: a cites: symbol is a substring of a named file, so moving the cited lines into a new helper breaks the cite — okf-check went red on B-023 for a docstring that had moved to _pages.py, after the diff was already sealed. Per B-022 a cite is a working pointer at every status, so the pointer follows the symbol. Repointing has a trap of its own: the phrase wrapped across two lines in its new home, and a wrapped symbol never resolves, so the obvious repoint stays red. Source: rig of B-026.
  • Believed: gating implemented on a tally: block's presence gates the muster verdict. True: not tally(text) only tests that the block exists — a tally: matches: no block is non-empty, so it passed the same check a missing block failed. A presence check is not a verdict check; the field inside still has to be read. Source: rig of B-027.