octobot/OKF/decisions/017-pin-drift-splits-by-visibility.md
Lukasz Boryn 2e9e6a7f44 feat(moor): graduate ferry decisions and collapse the moored ferry
Implements blueprint 003, phase 7's second half. moor gains two steps:
every resolved D-<n> that passes the warrant test graduates into the
why-register at the next free number, resolution body verbatim and
blocked-by edges dropped; then ferries/<topic>/ collapses into
ferries/<topic>.md carrying a sealed: pin (jj change id, git hash, ISO
date) read off @-, since the sealing commit cannot name itself.
Directory means open, file means moored, so `ls OKF/ferries/` finally
answers what deliberation is in flight.

Both guardrails that contradicted decisions 14/15 narrow rather than
gain exceptions: never collapse without a resolvable pin, never graduate
a decision that fails the warrant test. Done-criteria gate on okf-check,
deferred from blueprint 002 pending this rule.

okf-check learns the ferry shape rule — a page directly under ferries/
carries all three sealed: fields with a hex hash and an ISO date, and
may not coexist with its directory. Shape only: resolving the pin needs
the repo in hand, so refresh owns it, and a validator that cannot exit 0
on a tree copied outside its jj repo trains people to ignore it. That
split earns decision 017.

Verified against a throwaway scratch jj repo moored by hand per the
rewritten SKILL.md: blueprint 003's Verify block PASS, okf-check clean
on the fixture and on OKF/, moor at 106 lines and ROADMAP at 106.

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

22 lines
872 B
Markdown

---
type: Decision
purpose: Stop the next agent from "fixing" okf-check to resolve sealed: pins.
answers:
- "Why doesn't `okf-check` verify that a `sealed:` pin resolves?"
cites:
- skills/loop/write-OKF/scripts/okf-check
- skills/loop/write-OKF/SKILL.md
status: live
reversible: yes — the resolution check is a few lines either side
---
# 017 — pin drift splits by what each tool can see
`okf-check` validates the **shape** of a moored ferry's `sealed:` pin —
three fields, hex hash, ISO date — and stops there. Resolving the change
id belongs to **refresh**, which has the repo in hand. The obvious
alternative, one tool doing both, breaks the rule that gives the
validator its teeth: an OKF tree copied out of its jj repo would fail a
check it cannot possibly satisfy, and a validator that cannot exit 0
outside its home repo trains people to ignore it.