feat(skills): add moor — close out delivered ferries

- feat(moor): four-phase close-out (orient, gather signal, consolidate, prune+index)
- docs(loop): extend metaharness spine with moor in CLAUDE.md, README, steer
- docs(ferry): hand off to moor from the Arrive step
This commit is contained in:
Łukasz Boryń 2026-07-20 00:51:48 +02:00
parent 82b0b65663
commit 93e78734d3
5 changed files with 87 additions and 7 deletions

View File

@ -6,7 +6,7 @@ instructions as needed.
**The loop.** Octobot is a loop-engineering metaharness over an OKF
(open-knowledge-format) wiki: `write-OKF → architect → blueprint →
ferry → weave → review+verify → commit-atomic-jj`. This repo dogfoods it —
ferry → weave → review+verify → commit-atomic-jj → moor`. This repo dogfoods it —
knowledge in [`OKF/`](OKF/index.md), agent directions in
[`AGENTS.md`](AGENTS.md), skill index in
[`skills/loop/steer/`](skills/loop/steer/SKILL.md).

View File

@ -46,10 +46,10 @@ Octobot's core: a loop-engineering metaharness over an **OKF**
(open-knowledge-format) wiki at each project's `./OKF/`.
```
write-OKF → architect → blueprint → ferry → weave → review+verify → commit-atomic-jj
(knowledge) (plan) (blueprints) (decompose) (execute) (seal)
write-OKF → architect → blueprint → ferry → weave → review+verify → commit-atomic-jj → moor
(knowledge) (plan) (blueprints) (decompose) (execute) (seal) (close out)
▲ │
└────────────── OKF refreshed ◀────────────────┘
└────────────────────────────── OKF refreshed ◀──────────────────────────────────────┘
```
- **write-OKF** — scaffold or refresh the OKF wiki; wires `AGENTS.md` so
@ -62,6 +62,9 @@ write-OKF → architect → blueprint → ferry → weave → review+verify →
edge-declared decision files; resolve one per sitting.
- **weave** — execute one locked blueprint: bdd at its seams, four-axis
review, run its Verify with pasted output, seal citing the blueprint.
- **moor** — close out a delivered ferry: reconcile the wiki with what
shipped, extract loose ends into new blueprints/ferries, shrink
index.md; status flips, nothing deleted.
- **steer** — router over every skill; most are user-invoked, steer is
the index.

View File

@ -40,7 +40,8 @@ directory is what crosses the session boundary.
`OKF/CONTEXT.md` per model-domain.
6. **Arrive**: every decision resolved → update `MAP.md` with the blueprint
numbers produced; the ferry directory stays as the decision record
(supersede, don't delete).
(supersede, don't delete). Once the spawned blueprints are woven and
sealed, close out with [moor](../moor/SKILL.md).
## Session boundary
End of sitting → `MAP.md` *is* the handoff for this work: next session
@ -68,3 +69,5 @@ state into HANDOFF.md — reference the directory
resolution.
- [../architect/SKILL.md](../architect/SKILL.md) — phases too big to
blueprint directly get ferried.
- [../moor/SKILL.md](../moor/SKILL.md) — closes out the ferry after its
blueprints ship.

73
skills/loop/moor/SKILL.md Normal file
View File

@ -0,0 +1,73 @@
---
name: moor
description: Close out a delivered ferry — reconcile the OKF wiki with what shipped, promote durable knowledge to its one home, extract loose ends into new blueprints/ferries, and shrink index.md; status flips, nothing deleted.
disable-model-invocation: true
---
# moor
What you do when the [ferry](../ferry/SKILL.md) has arrived: tie it up.
Runs **after** weave + review-blueprint + commit-atomic-jj, once every
decision is resolved and the spawned blueprints are done. Consolidates
the wiki so the next cold-start agent reads reality, not history.
## When to use
- User says "moor", "/moor", "close out the ferry", "the ferry is done".
- [weave](../weave/SKILL.md)'s done-gate passes on the last blueprint of
a ferry-traced chain.
## Process
1. **ORIENT** — read `OKF/index.md`, the ferry's `MAP.md`, and
`grep -r "^status:" OKF/blueprints/`. Map claimed state before
touching anything. If any decision is open or a spawned blueprint is
not done, stop — this is a ferry sitting, not a mooring.
2. **GATHER SIGNAL** — collect delivery evidence, targeted only: `jj log`
since the ferry started, each blueprint's Verify section (must have
pasted output), review-blueprint verdicts. No full-transcript rereads.
3. **CONSOLIDATE** — promote durable knowledge out of the ferry into its
one home, cross-linked back:
- spawned blueprints → `status: done` (or `superseded`);
- `MAP.md` → mark arrived, record the blueprint numbers produced;
- shipped architecture changes → `ARCHITECTURE.md` reconciled with
reality, every claim citing a file path (the ferry keeps the *why*,
ARCHITECTURE.md holds the current *what*);
- generalizable rationale from resolved decisions → `LEARNINGS.md`
(append, never edit);
- terms that recurred beyond the ferry → `CONTEXT.md` per
model-domain; the delivered phase → checked off in `ROADMAP.md`;
- relative dates → ISO 8601; dead cross-links fixed.
4. **PRUNE + INDEX** — sweep the arrived ferry for unextracted
follow-ups; every open thread gets a home + backlink:
- small and implementable → new blueprint `NNN-<slug>.md` with
`traces-to` citing the source decision;
- big or multi-session → a new ferry, or a `ROADMAP.md` entry;
- neither → a `LEARNINGS.md` note, so it stays findable.
Then rebuild the touched `index.md` lines (`<topic> — arrived →
MAP.md`; blueprint status lines) and run the conformance check:
`grep -rL "^type:" OKF/ --include='*.md'` returns only `index.md`.
## Output / done criteria
- The arrived ferry contains no forward-looking work — every follow-up
has a new home with a backlink.
- `index.md` matches reality: ferry marked arrived, blueprint statuses
current, no dangling links.
- Ferry directory and blueprints intact — status flipped, zero deletions.
## Guardrails
- **Never delete** a ferry directory, decision file, or blueprint — they
are the why-record. Supersede, don't delete.
- **OKF files only** — moor never touches source code, configs, or
skills.
- **Never auto-promote to ADR** — an architecturally load-bearing
decision is only *flagged* as a candidate; model-domain's
three-of-three rule gates `OKF/adr/`.
- **Never moor a ferry with open decisions** — that's resolving by
neglect. Go back to the ferry skill.
## See also
- [../ferry/SKILL.md](../ferry/SKILL.md) — upstream; its "Arrive" step
hands off here.
- [../weave/SKILL.md](../weave/SKILL.md) — moor runs after its
done-gate on the ferry's last blueprint.
- [../write-OKF/okf-layout.md](../write-OKF/okf-layout.md) — the page
contracts moor reconciles against.

View File

@ -13,7 +13,7 @@ just read the table.
## The loop (the metaharness spine)
```
write-OKF → architect → blueprint → ferry → weave → review+verify → commit-atomic-jj
write-OKF → architect → blueprint → ferry → weave → review+verify → commit-atomic-jj → moor
```
| Situation | Skill |
@ -23,6 +23,7 @@ write-OKF → architect → blueprint → ferry → weave → review+verify →
| discussed work needs a justified, verifiable blueprint | `/blueprint` |
| feature too big for one session — map decisions | `/ferry` |
| a locked blueprint is ready to execute | `/weave` |
| ferry delivered — close it out, consolidate the wiki | `/moor` |
## By situation