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:
parent
31f2c4675d
commit
68c8c18d0d
@ -1,6 +1,6 @@
|
||||
---
|
||||
type: Blueprint
|
||||
status: locked
|
||||
status: implemented
|
||||
traces-to: user request 2026-09-23
|
||||
sounded: 2026-09-23
|
||||
cites:
|
||||
|
||||
@ -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
|
||||
|
||||
|
||||
@ -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.
|
||||
|
||||
@ -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.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user