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
This commit is contained in:
Łukasz Boryń 2026-09-23 10:05:28 +02:00
parent 31f2c4675d
commit 68c8c18d0d
4 changed files with 16 additions and 7 deletions

View File

@ -1,6 +1,6 @@
--- ---
type: Blueprint type: Blueprint
status: locked status: implemented
traces-to: user request 2026-09-23 traces-to: user request 2026-09-23
sounded: 2026-09-23 sounded: 2026-09-23
cites: cites:

View File

@ -49,7 +49,7 @@ your task needs. Humans welcome too.
- [024](blueprints/024-rename-the-spine-and-give-chart-its-ferry-edge.md) — rename the spine to chart and rig, and give chart its ferry edge — implemented - [024](blueprints/024-rename-the-spine-and-give-chart-its-ferry-edge.md) — rename the spine to chart and rig, and give chart its ferry edge — implemented
- [025](blueprints/025-rule-muster-on-every-blueprint.md) — rule muster on every blueprint — implemented - [025](blueprints/025-rule-muster-on-every-blueprint.md) — rule muster on every blueprint — implemented
- [026](blueprints/026-walk-only-what-git-does-not-ignore.md) — walk only what git does not ignore — implemented - [026](blueprints/026-walk-only-what-git-does-not-ignore.md) — walk only what git does not ignore — implemented
- [027](blueprints/027-error-on-implemented-with-matches-no.md) — error when a mustered blueprint reaches implemented on matches: no — locked - [027](blueprints/027-error-on-implemented-with-matches-no.md) — error when a mustered blueprint reaches implemented on matches: no — implemented
## Ferries ## Ferries

View File

@ -40,3 +40,8 @@ status: live
follows the symbol. Repointing has a trap of its own: the phrase wrapped 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, across two lines in its new home, and a wrapped symbol never resolves,
so the obvious repoint stays red. Source: rig of B-026. 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.

View File

@ -284,13 +284,17 @@ def main(argv):
warnings.append(f"{rel}: locked without sounded:") warnings.append(f"{rel}: locked without sounded:")
# muster is opt-in: a blueprint carrying `muster: true` may not # muster is opt-in: a blueprint carrying `muster: true` may not
# reach `implemented` without its `tally:` — the human verdict the # reach `implemented` without its `tally:`, and never on a known
# gate exists to force. Blueprints without the field are untouched. # miss — the human verdict the gate exists to force. Blueprints
# without the field are untouched.
if ("blueprints" in rel.parts if ("blueprints" in rel.parts
and str(fields.get("muster", "")).lower() == "true" and str(fields.get("muster", "")).lower() == "true"
and fields.get("status") == "implemented" and fields.get("status") == "implemented"):
and not tally(text)): verdict = tally(text)
errors.append(f"{rel}: muster: true, implemented without tally:") if not verdict:
errors.append(f"{rel}: muster: true, implemented without tally:")
elif verdict.get("matches") == "no":
errors.append(f"{rel}: muster: true, implemented with tally: matches: no")
# A cite is a working pointer, so every page carries the rule at # A cite is a working pointer, so every page carries the rule at
# every status — a blueprint's `cites:` are not frozen by lock. # every status — a blueprint's `cites:` are not frozen by lock.