From 68c8c18d0d04e31c08e9c127de8b26db9056d5c9 Mon Sep 17 00:00:00 2001 From: Lukasz Boryn Date: Wed, 23 Sep 2026 10:05:28 +0200 Subject: [PATCH] feat(lints): error when a mustered blueprint reaches implemented on matches: no MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- .../027-error-on-implemented-with-matches-no.md | 2 +- OKF/index.md | 2 +- OKF/learnings/validators.md | 5 +++++ skills/loop/write-OKF/scripts/okf-check | 14 +++++++++----- 4 files changed, 16 insertions(+), 7 deletions(-) diff --git a/OKF/blueprints/027-error-on-implemented-with-matches-no.md b/OKF/blueprints/027-error-on-implemented-with-matches-no.md index ad94bef..952c9f4 100644 --- a/OKF/blueprints/027-error-on-implemented-with-matches-no.md +++ b/OKF/blueprints/027-error-on-implemented-with-matches-no.md @@ -1,6 +1,6 @@ --- type: Blueprint -status: locked +status: implemented traces-to: user request 2026-09-23 sounded: 2026-09-23 cites: diff --git a/OKF/index.md b/OKF/index.md index c4e9502..2ddc78b 100644 --- a/OKF/index.md +++ b/OKF/index.md @@ -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 - [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 -- [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 diff --git a/OKF/learnings/validators.md b/OKF/learnings/validators.md index 540803b..94ee1ce 100644 --- a/OKF/learnings/validators.md +++ b/OKF/learnings/validators.md @@ -40,3 +40,8 @@ status: live 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. diff --git a/skills/loop/write-OKF/scripts/okf-check b/skills/loop/write-OKF/scripts/okf-check index a4a3b12..d98173d 100755 --- a/skills/loop/write-OKF/scripts/okf-check +++ b/skills/loop/write-OKF/scripts/okf-check @@ -284,13 +284,17 @@ def main(argv): warnings.append(f"{rel}: locked without sounded:") # muster is opt-in: a blueprint carrying `muster: true` may not - # reach `implemented` without its `tally:` — the human verdict the - # gate exists to force. Blueprints without the field are untouched. + # reach `implemented` without its `tally:`, and never on a known + # miss — the human verdict the gate exists to force. Blueprints + # without the field are untouched. if ("blueprints" in rel.parts and str(fields.get("muster", "")).lower() == "true" - and fields.get("status") == "implemented" - and not tally(text)): - errors.append(f"{rel}: muster: true, implemented without tally:") + and fields.get("status") == "implemented"): + verdict = tally(text) + 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 # every status — a blueprint's `cites:` are not frozen by lock.