Add skills/loop/write-OKF/scripts/link-check, a fourth lint mirroring okf-check / render-check / skill-check: same argv shape, ERROR prefix, closing tally and 0/1/2 exit codes. It walks every *.md from the repo root — dot-directories and OKF/blueprints/ out, render-check's walk exactly — skips fenced blocks, and errors on any inline link whose target does not resolve against its containing file's directory. Register it in write-OKF's run-and-paste line, and unmake the two ellipsis placeholders the lint catches: architect/SKILL.md's [NNN](…) and revise.md's [NNN](blueprints/…) become prose, without which the lint cannot reach green. Satisfies ROADMAP phase 12's precondition — that rename moves 26 of the 421 link targets, and a grep for the old names proves absence, not that the new paths resolve. blueprint 023
1.9 KiB
1.9 KiB
architect — revision loop
For a roadmap that exists and reality that moved. Formerly
update-project.
Process
- Read first.
OKF/ROADMAP.mdandOKF/CONTEXT.mdin full. Diff reality against them: repo state, test results, session learnings. - Collect the deltas. From the user and the session: phases verified or failed, decisions contradicted by new facts, fresh gotchas, scope changes. Ambiguous delta → grill, one question at a time.
- Apply, smallest edit per delta:
- Phase done → replace its verify line with
✅ verified <date>, blueprints/NNN-<slug>.md, 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
OKF/LEARNINGS.mdif project-wide): what was believed, what is true, source. - Decision overturned → strike nothing silently. Mark the old one
~~…~~ superseded by Nand add the new decision with rationale. Decisions are append-only history, not a wiki page. - Scope change → move items between Phases and Out of scope explicitly, never delete.
- Blueprint implemented (weave hand-back) → tick the phase item citing the blueprint number.
- Phase done → replace its verify line with
- Sync vocabulary. New or shifted terms → one inline
OKF/CONTEXT.mdedit each. Roadmap and glossary keep matching exactly. - Re-check prior art only when asked, or when a delta names a new competing tool — then refresh the gap table with sources.
- Show the diff. Summarize what changed and why; structure must still match the skeleton in SKILL.md — sections stable, contents evolve.
Done
- Every applied delta traces to a stated fact (verify result, user answer, or source); superseded decisions visible; user saw a summary of every section touched.