diff --git a/OKF/blueprints/014-unify-skill-sibling-file-naming.md b/OKF/blueprints/014-unify-skill-sibling-file-naming.md index dd74fba..5ac8001 100644 --- a/OKF/blueprints/014-unify-skill-sibling-file-naming.md +++ b/OKF/blueprints/014-unify-skill-sibling-file-naming.md @@ -6,7 +6,6 @@ sounded: 2026-07-30 cites: - skills/productivity/conjure-a-skill/SKILL.md:topic-named siblings - skills/loop/write-OKF/scripts/okf-check:cite_resolves - - CLAUDE.md:EXAMPLES.md --- # 014 — unify skill sibling-file naming on lowercase-kebab topic names diff --git a/OKF/blueprints/017-add-a-line-cap-lint-over-skills.md b/OKF/blueprints/017-add-a-line-cap-lint-over-skills.md index dbe72bc..d087b2d 100644 --- a/OKF/blueprints/017-add-a-line-cap-lint-over-skills.md +++ b/OKF/blueprints/017-add-a-line-cap-lint-over-skills.md @@ -9,7 +9,7 @@ cites: - OKF/decisions/020-every-page-has-a-growth-path.md:twelve pages - OKF/blueprints/016-pull-two-skills-under-cap-and-level-commit-twins.md:A line-cap lint - skills/productivity/conjure-a-skill/SKILL.md:exceed 110 lines - - skills/productivity/conjure-a-skill/SKILL.md:is ≤ 110 lines + - skills/productivity/conjure-a-skill/SKILL.md:≤ 110 lines** — octobot's house cap - skills/loop/write-OKF/scripts/okf-check:CAP = 110 - skills/loop/write-OKF/scripts/okf-check:a check that cannot fail - skills/loop/write-OKF/SKILL.md:output pasted diff --git a/OKF/blueprints/018-own-the-loop-shape-in-flow-1.md b/OKF/blueprints/018-own-the-loop-shape-in-flow-1.md index 2c58d27..7092eb1 100644 --- a/OKF/blueprints/018-own-the-loop-shape-in-flow-1.md +++ b/OKF/blueprints/018-own-the-loop-shape-in-flow-1.md @@ -10,14 +10,12 @@ cites: - README.md:### loop — the metaharness spine - CLAUDE.md:**The loop.** - skills/loop/steer/SKILL.md:## The loop (the metaharness spine) - - skills/loop/steer/SKILL.md:zero context load - skills/loop/ferry/SKILL.md:more than one agent - skills/loop/call-charon/SKILL.md:implementation spans multiple blueprints - skills/loop/moor/SKILL.md:a ferry-traced chain - skills/loop/weave/SKILL.md:Close the loop - skills/loop/blueprint/blueprint-format.md:traces-to: - skills/loop/architect/SKILL.md:Owns `OKF/ROADMAP.md` - - OKF/ROADMAP.md:loop diagram in --- # 018 — own the loop's shape in ARCHITECTURE flow 1 diff --git a/OKF/blueprints/019-add-a-render-lint-over-the-loop-shape.md b/OKF/blueprints/019-add-a-render-lint-over-the-loop-shape.md index 71d0fa3..8e9dd07 100644 --- a/OKF/blueprints/019-add-a-render-lint-over-the-loop-shape.md +++ b/OKF/blueprints/019-add-a-render-lint-over-the-loop-shape.md @@ -4,7 +4,6 @@ status: implemented traces-to: ROADMAP.md phase 11 sounded: 2026-07-30 cites: - - OKF/ROADMAP.md:checked by script - OKF/blueprints/018-own-the-loop-shape-in-flow-1.md:**The lint.** - OKF/blueprints/017-add-a-line-cap-lint-over-skills.md:Why a sibling script - OKF/decisions/016-one-okf-check-validator.md:One `okf-check` validator @@ -13,9 +12,9 @@ cites: - README.md:### loop — the metaharness spine - skills/loop/steer/SKILL.md:## The loop - skills/loop/write-OKF/scripts/okf-check:a check that cannot fail - - skills/loop/write-OKF/SKILL.md:run and its output pasted + - skills/loop/write-OKF/SKILL.md:run and output pasted - skills/productivity/conjure-a-skill/scripts/skill-check:usage: skill-check - - OKF/LEARNINGS.md:Append-only + - OKF/learnings/index.md:Append-only --- # 019 — add a render lint over the loop's shape diff --git a/OKF/blueprints/020-enforce-the-prune-and-validate-every-cite.md b/OKF/blueprints/020-enforce-the-prune-and-validate-every-cite.md index 7b16df4..a487a0e 100644 --- a/OKF/blueprints/020-enforce-the-prune-and-validate-every-cite.md +++ b/OKF/blueprints/020-enforce-the-prune-and-validate-every-cite.md @@ -1,6 +1,6 @@ --- type: Blueprint -status: locked +status: superseded-by-022 traces-to: user request 2026-07-30 sounded: 2026-07-30 cites: @@ -13,7 +13,7 @@ cites: - skills/loop/write-OKF/split-page.md - skills/loop/architect/SKILL.md - skills/loop/architect/revise.md - - OKF/LEARNINGS.md:Append-only + - OKF/learnings/index.md:Append-only --- # 020 — enforce the roadmap prune and validate every page's cites diff --git a/OKF/blueprints/021-align-validator-and-doctrine.md b/OKF/blueprints/021-align-validator-and-doctrine.md index 324bd57..bd86981 100644 --- a/OKF/blueprints/021-align-validator-and-doctrine.md +++ b/OKF/blueprints/021-align-validator-and-doctrine.md @@ -9,7 +9,7 @@ cites: - skills/loop/write-OKF/scripts/okf-check - skills/loop/blueprint/blueprint-format.md - OKF/decisions/022-prose-cites-carry-a-register-prefix.md - - OKF/LEARNINGS.md + - OKF/learnings/index.md - OKF/index.md - OKF/decisions/020-every-page-has-a-growth-path.md:alone **splits** - OKF/blueprints/020-enforce-the-prune-and-validate-every-cite.md:declaring `cites:` diff --git a/OKF/blueprints/022-validate-every-cite-at-every-status.md b/OKF/blueprints/022-validate-every-cite-at-every-status.md index 4d2ce2f..ae60884 100644 --- a/OKF/blueprints/022-validate-every-cite-at-every-status.md +++ b/OKF/blueprints/022-validate-every-cite-at-every-status.md @@ -1,6 +1,6 @@ --- type: Blueprint -status: locked +status: implemented traces-to: user request 2026-07-31 (B-020 stranded by the learnings/ split) sounded: 2026-07-31 cites: diff --git a/OKF/index.md b/OKF/index.md index 4cff7e8..972d9f0 100644 --- a/OKF/index.md +++ b/OKF/index.md @@ -42,9 +42,9 @@ your task needs. Humans welcome too. - [017](blueprints/017-add-a-line-cap-lint-over-skills.md) — add a line-cap lint over skills/ — implemented - [018](blueprints/018-own-the-loop-shape-in-flow-1.md) — own the loop's shape in ARCHITECTURE flow 1 — implemented - [019](blueprints/019-add-a-render-lint-over-the-loop-shape.md) — add a render lint over the loop's shape — implemented -- [020](blueprints/020-enforce-the-prune-and-validate-every-cite.md) — enforce the roadmap prune and validate every page's cites — locked +- [020](blueprints/020-enforce-the-prune-and-validate-every-cite.md) — enforce the roadmap prune and validate every page's cites — superseded-by-022 - [021](blueprints/021-align-validator-and-doctrine.md) — align the validator and the doctrine on splits, prefixes and cites — implemented -- [022](blueprints/022-validate-every-cite-at-every-status.md) — enforce the roadmap prune and validate every cite at every status — locked +- [022](blueprints/022-validate-every-cite-at-every-status.md) — enforce the roadmap prune and validate every cite at every status — implemented ## Ferries diff --git a/OKF/learnings/loop.md b/OKF/learnings/loop.md index e0cebfa..b05fe0e 100644 --- a/OKF/learnings/loop.md +++ b/OKF/learnings/loop.md @@ -58,3 +58,10 @@ status: live any later blueprint can invalidate; supersession is the only exit, so a blueprint that moves a path owes a check of which locked Verify already names it. Source: weave of B-021. +- Believed: validating a blueprint's `cites:` is a cheap lint. True: a + blueprint cites the very text it is about to change, so the weave that + lands it breaks its own pointers and must then repair them — B-022 found + nine stale cites, five of them written by blueprints that had already + weaved. The durable practice is to cite a file the blueprint *edits* by + **path alone**, and spend `:symbol` only on text the change leaves + standing. Source: weave of B-022. diff --git a/skills/loop/architect/SKILL.md b/skills/loop/architect/SKILL.md index ca5015c..433800d 100644 --- a/skills/loop/architect/SKILL.md +++ b/skills/loop/architect/SKILL.md @@ -33,7 +33,7 @@ fill the missing sections as deltas, don't restart. ## Why (gap vs prior art) ← gap table with sources ## Locked decisions ← numbered; rationale + reversibility ## Architecture ← one ASCII sketch + main flow in words -## Phases ← each ends "**Verify:** " +## Phases ← each open one ends "**Verify:** " ## Risks & gotchas ← debunked claims: believed / true / source ## Out of scope ← explicit non-goals ``` @@ -51,7 +51,8 @@ fill the missing sections as deltas, don't restart. concrete enough that a blueprint can trace to them. ## Output / done criteria -- `OKF/ROADMAP.md` matches the skeleton; every phase has a verify step; +- `OKF/ROADMAP.md` matches the skeleton; every *open* phase has a verify + step and every discharged one is pruned to `✅ verified , [NNN](…)`; every locked decision traces to a user answer or sourced finding. - Revision: superseded decisions remain visible; every edit traces to a named delta. diff --git a/skills/loop/architect/revise.md b/skills/loop/architect/revise.md index 89dc910..6b32545 100644 --- a/skills/loop/architect/revise.md +++ b/skills/loop/architect/revise.md @@ -12,8 +12,8 @@ For a roadmap that exists and reality that moved. Formerly gotchas, scope changes. Ambiguous delta → grill, one question at a time. 3. **Apply, smallest edit per delta:** - - Phase done → mark `✅ verified ` on its verify line — never - without naming the observable check that passed. + - Phase done → *replace* its verify line with `✅ verified , + [NNN](blueprints/…)`, R-020's prune — never a tick beside a live step. - Verify failed → record what failed under the phase; do not delete the phase. Re-plan it only if the user agrees. - New gotcha/learning → append to *Risks & gotchas* (and mirror to diff --git a/skills/loop/write-OKF/scripts/okf-check b/skills/loop/write-OKF/scripts/okf-check index 8f42b0a..a4a3b12 100755 --- a/skills/loop/write-OKF/scripts/okf-check +++ b/skills/loop/write-OKF/scripts/okf-check @@ -2,10 +2,11 @@ """Validate an OKF bundle. Usage: okf-check Errors (exit 1): missing type, missing warrant, duplicate answer, -unresolvable cite, unprefixed register cite in prose, malformed -`okf:derived` fence, page unreachable from index.md, page over its line -cap, register index line disagreeing with its decision file, moored ferry -with a malformed `sealed:` pin or a surviving directory. Warnings +unresolvable cite, unprefixed register cite in prose, discharged roadmap +phase keeping a verify step, malformed `okf:derived` fence, page +unreachable from index.md, page over its line cap, register index line +disagreeing with its decision file, moored ferry with a malformed +`sealed:` pin or a surviving directory. Warnings (exit 0): page with no cites, blueprint locked without a `sounded:` stamp. Pin *shape* only — whether the change id still resolves needs the repo in @@ -172,6 +173,30 @@ def tally(text): return dict(re.findall(r"([a-z]+):\s*(\S+)", block.group(1))) if block else {} +def check_roadmap(text, rel, errors): + """A discharged phase keeps no verify step — R-020's prune, mechanised. + + A phase entry runs from its `^\\d+\\. ` line to the next such line or the + next `## ` heading, so a wrapped `**Verify:**` still belongs to the phase + above it. The tick says the step ran; where it ran is jj history. + """ + entry = [] + + def close(): + block = "\n".join(entry) + if entry and "✅" in block and "**Verify:**" in block: + errors.append(f"{rel}: discharged phase keeps a verify step: {entry[0][:40]}") + + for line in text.splitlines(): + phase = re.match(r"\d+\. ", line) + if phase or line.startswith("## "): + close() + entry = [line] if phase else [] + elif entry: + entry.append(line) + close() + + def check_ferries(okf, errors): """A page directly under ferries/ is a moored ferry: pinned, collapsed.""" ferries = okf / "ferries" @@ -267,6 +292,16 @@ def main(argv): and not tally(text)): errors.append(f"{rel}: muster: true, implemented without tally:") + # A cite is a working pointer, so every page carries the rule at + # every status — a blueprint's `cites:` are not frozen by lock. + cites = fields.get("cites") or [] + for cite in cites: + if not cite_resolves(cite, page, okf): + errors.append(f"{rel}: unresolvable cite: {cite}") + + if fields.get("type") == "Roadmap": + check_roadmap(text, rel, errors) + # The warrant contract covers durable synthesis pages; blueprints # and ferries carry their own frontmatter contracts. if {"blueprints", "ferries"} & set(rel.parts) or page.name == "index.md": @@ -280,12 +315,8 @@ def main(argv): errors.append(f"{rel}: answers a question {answered[answer]} owns: {answer}") else: answered[answer] = rel - cites = fields.get("cites") or [] if not cites: warnings.append(f"{rel}: no cites:") - for cite in cites: - if not cite_resolves(cite, page, okf): - errors.append(f"{rel}: unresolvable cite: {cite}") # A prose cite carries its register's prefix. Learnings pages are # exempt — append-only by their own header, so their bare numbers