diff --git a/OKF/CONTEXT.md b/OKF/CONTEXT.md index e832e60..8cc9129 100644 --- a/OKF/CONTEXT.md +++ b/OKF/CONTEXT.md @@ -84,9 +84,9 @@ exist. Makes "recoverable from history" cashable. _Avoid_: ref, anchor. **Sounding**: The recon pass `sound` runs before a blueprint locks — the OKF, then the -nostos MCP server when configured, then live code, which is what catches -the first two going stale. Its mark is `sounded:` in the blueprint's -frontmatter. _Avoid_: research, investigation, spike. +nostos MCP server, then a file read only where nostos cannot answer: an +empty result, or a path with uncommitted changes. Its mark is `sounded:` +in the blueprint's frontmatter. _Avoid_: research, investigation, spike. **House cap**: 110 lines per SKILL.md; topic-named siblings load on demand and carry diff --git a/OKF/LEARNINGS.md b/OKF/LEARNINGS.md index 72c02d7..6dc15fd 100644 --- a/OKF/LEARNINGS.md +++ b/OKF/LEARNINGS.md @@ -66,3 +66,10 @@ status: live visibility principle it follows from. A decision that *extends* a live one without changing it is that one applied, not a new one. Source: warrant test, session 2026-07-22; 020 stays unspent. +- Believed: a confirm-against-the-code step is what catches a stale + index, so it must run for every claim. True: an index that returns + **source** rather than metadata makes that step a re-read of bytes + already in hand — its value survives only at the gaps where the index + cannot answer (nothing indexed, and the working copy). A verification + step earns its cost only where the step before it is blind. Source: + weave of blueprint 008. diff --git a/OKF/blueprints/008-make-nostos-primary-and-files-the-fallback.md b/OKF/blueprints/008-make-nostos-primary-and-files-the-fallback.md index a40b1ec..358768d 100644 --- a/OKF/blueprints/008-make-nostos-primary-and-files-the-fallback.md +++ b/OKF/blueprints/008-make-nostos-primary-and-files-the-fallback.md @@ -1,6 +1,6 @@ --- type: Blueprint -status: locked +status: implemented traces-to: user request 2026-07-23 sounded: 2026-07-23 --- diff --git a/OKF/index.md b/OKF/index.md index 18c1a02..ffcb4f3 100644 --- a/OKF/index.md +++ b/OKF/index.md @@ -29,7 +29,7 @@ your task needs. Humans welcome too. - [005](blueprints/005-propose-the-page-plan-from-a-repo-scan.md) — propose the page plan from a repo scan — implemented - [006](blueprints/006-rescan-the-page-plan-on-refresh.md) — rescan the page plan on refresh — implemented - [007](blueprints/007-add-sound.md) — add sound, the recon that precedes a lock — implemented -- [008](blueprints/008-make-nostos-primary-and-files-the-fallback.md) — make nostos primary and file reads the fallback — locked +- [008](blueprints/008-make-nostos-primary-and-files-the-fallback.md) — make nostos primary and file reads the fallback — implemented ## Ferries diff --git a/README.md b/README.md index 792d1e9..b6f14c3 100644 --- a/README.md +++ b/README.md @@ -59,7 +59,7 @@ write-OKF → architect → blueprint → ferry → weave → review+verify → - **blueprint** — synthesize discussed work into a justified, verifiable blueprint at `OKF/blueprints/NNN-.md` (status: draft → locked → implemented). - **sound** — verified recon before a lock: OKF, then the nostos MCP - server when configured, then live code; stamps `sounded:`. + server, then files only where nostos cannot answer; stamps `sounded:`. - **ferry** — work too big for one session becomes a directory of small, edge-declared decision files; resolve one per sitting. - **weave** — execute one locked blueprint: bdd at its seams, four-axis diff --git a/skills/loop/sound/SKILL.md b/skills/loop/sound/SKILL.md index d7da68f..c3c1d5b 100644 --- a/skills/loop/sound/SKILL.md +++ b/skills/loop/sound/SKILL.md @@ -1,6 +1,6 @@ --- name: sound -description: Verify what a blueprint is about to rest on, before it locks — read the OKF pages the question touches, query the nostos MCP server when one is configured, then confirm both against live code and stamp `sounded: `. Use when the user says "sound", "/sound", "sound this blueprint", "verify this before I lock it"; when blueprint reaches its lock step; or when you are about to act on a claim taken from an OKF page, a blueprint's Justification, or a cite that nothing has checked against the code. Not open-ended "how does this work" research — the trigger is an unverified claim about *this* repo, not a topic. +description: Verify what a blueprint is about to rest on, before it locks — read the OKF pages the question touches, query the nostos MCP server for what the code says, open files only where nostos cannot answer, and stamp `sounded: `. Use when the user says "sound", "/sound", "sound this blueprint", "verify this before I lock it"; when blueprint reaches its lock step; or when you are about to act on a claim taken from an OKF page, a blueprint's Justification, or a cite that nothing has checked against the code. Not open-ended "how does this work" research — the trigger is an unverified claim about *this* repo, not a topic. --- # sound @@ -11,22 +11,35 @@ it. Ports mattpocock's `research`, re-founded on the OKF. ## The spine -Three steps, in order, every run. Each feeds the next. +Three steps, in order. Steps 1 and 2 run every time; step 3 runs only +where step 2 came up short. 1. **OKF** — read the pages the question touches, starting at `OKF/index.md`. No `./OKF/` → say so in one line, name [`/write-OKF`](../write-OKF/SKILL.md), **stop**. Nothing else runs. -2. **nostos** — query the nostos MCP server when one is configured, via - its `find` / `provenance_of` tools. Presence comes from the agent's - MCP configuration, never from a filesystem path — never guess at a - checkout. Absent → one line naming `nostos install`, run from the - repo to be indexed, then continue. -3. **Live code** — confirm what steps 1 and 2 claimed against the files - themselves. Either can be stale; this step is what makes the run - worth its context. Cite `path:line` or `path:symbol` for every claim - that survives. A claim with no internal owner — a third-party API, a - spec — is followed to its primary source and cited. **Nothing else - leaves the repo.** +2. **nostos** — query the nostos MCP server, via its `find` / + `provenance_of` tools. It is the primary source for what the code + says, not a hint feeding a later read: what it returns is source, not + metadata. Presence comes from the agent's MCP configuration, never + from a filesystem path — never guess at a checkout. Absent or + unconfigured → every query comes back empty, which routes every claim + to step 3; say so in one line naming `nostos install`, run from the + repo to be indexed, and continue. +3. **File read — the fallback.** A file is opened for a claim in exactly + two cases: + - **Empty result** — nostos returned nothing. Empty means *not + indexed*, never *not there*. + - **Dirty path** — the claim touches a path with uncommitted changes, + per one `jj st` per run. + + Neither → the nostos answer stands, unread. + +Cite `path:symbol` where a symbol carries the claim — that is the shape +that breaks when the thing it cites moves, while a `path:line` suffix is +a reading aid nothing validates +([okf-layout.md](../write-OKF/okf-layout.md)). A claim with no internal +owner — a third-party API, a spec — is followed to its primary source +and cited. **Nothing else leaves the repo.** ## Two mouths @@ -66,6 +79,8 @@ the user asks, or when a cite no longer resolves. - **Never** write on a self-fire, in any form, however small. - **Never** skip step 1 to reach step 3 — an unread OKF is what makes a recon into research. +- **Never** shell out to `codegraph` — the MCP server is the only mouth; + keeping the index fresh is its job, not sound's. - **Never** run in a subagent, background or otherwise: the findings are the deliverable and belong in the calling context. - **Never** leave the repo past the no-internal-owner gap — general web