Blueprint 004. A `cites:` entry now takes three shapes: `path`, `path:line` (the number is a reading aid, never validated), and `path:symbol`, which resolves only if the symbol is a literal substring of the file — so a cite breaks when the thing it cites moves. Cite drift belongs to okf-check, not refresh: a cite needs only the working tree, so decision 017's visibility split leaves refresh's DRIFT rule covering `sealed:` pins alone. okf-check also validates derived-zone shape — at most one begin/end pair per page, begin first — with each marker anchored to its whole line, so a page that documents the markers is not fenced by mentioning them. The warrant contract and the `sealed:` block move to page-warrant.md, buying okf-layout.md the headroom for the two new contracts. ROADMAP phase 6 records its split into 004 (cites + fences) and 005 (taxonomy scan) and corrects the two Verify clauses this change made false. Blueprint 004's Verify: PASS. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
38 lines
1.2 KiB
Markdown
38 lines
1.2 KiB
Markdown
# Page warrant contract
|
|
|
|
Why a page is admitted, and how a moored ferry pins what it dropped. The
|
|
page set and the rest of conformance: [okf-layout.md](okf-layout.md).
|
|
|
|
## Warrant
|
|
|
|
Durable pages carry `purpose`, `answers[]`, `cites[]` after `type`. Zero
|
|
`answers`, or a question another page owns, makes the page inadmissible;
|
|
an unresolvable `cites` path is drift.
|
|
|
|
Scope: the root pages and `decisions/`. `blueprints/` and `ferries/`
|
|
carry their own frontmatter contracts and are exempt.
|
|
|
|
Cite grammar — the three shapes and what each one detects — lives with
|
|
the layout contract, in [okf-layout.md](okf-layout.md).
|
|
|
|
## `sealed:` — the moored-ferry pin
|
|
|
|
A moored page carries `sealed:` after its `type`, pinning the
|
|
deliberation it dropped to the commit *before* the collapse:
|
|
|
|
```yaml
|
|
sealed:
|
|
change: <jj change id>
|
|
commit: <git hash>
|
|
date: <ISO date>
|
|
```
|
|
|
|
Pin drift splits by what each tool can see: `okf-check` validates the
|
|
**shape** (all three fields, hex hash, ISO date), because it must exit 0
|
|
on a tree copied outside its jj repo; **refresh** has the repo in hand
|
|
and validates **resolution**, reporting DRIFT when the change id no
|
|
longer resolves.
|
|
|
|
A cite needs no repo, so cite drift does not split the same way — it
|
|
belongs to `okf-check` whole.
|