octobot/OKF/decisions/018-rescan-deletes-only-derived-pages.md
Lukasz Boryn e55f6e319b feat(write-OKF): rescan the page plan on refresh
Refresh proposes a plan delta instead of scanning once at birth: every
scan candidate and every modules/ or analyses/ line already in index.md
sorts into new, standing, or unwarranted, and the user locks the delta as
they lock the plan at scaffold. Jurisdiction stops at what a scan can
see.

Removal had no ruling, so it becomes decision 018: an unwarranted page is
deleted only when wholly derived, superseded otherwise. A wholly derived
page loses nothing a rescan cannot rebuild; for the rest 015 holds, and
history is the archive of record.

okf-scan gains the two clauses 005's weave flagged, both reproduced
first: a directory matched by name alone with a candidate beneath it
proposes nothing, and an unreadable directory yields no evidence rather
than raising and exiting 1.

Implements blueprint 006; ROADMAP gains phase 8, paid for by collapsing
the execution-order note.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-22 07:15:37 +02:00

973 B

type, purpose, answers, cites, status, reversible
type purpose answers cites status reversible
Decision Let a rescan drop a page it can rebuild, and only that one.
What happens to a page a rescan no longer proposes?
skills/loop/write-OKF/taxonomy-scan.md
OKF/decisions/010-two-zone-pages.md
live supersede every unwarranted page, delete none

018 — a rescan deletes only wholly derived pages

An unwarranted page — listed under modules//analyses/, no longer proposed — is deleted only if it is wholly derived: nothing outside its 010 okf:derived fences but frontmatter and title. Such a page loses nothing a rescan cannot rebuild. One byte of judgement and it is superseded instead, struck with a pointer per write-OKF/SKILL.md refresh step 3; either way 015 holds — history is the archive of record, not the OKF. Removal is proposed, never applied unasked: the user locks it as they lock the plan.