Skill names must be lowercase a-z, 0-9, hyphens; pi rejected the uppercase name. Folder, frontmatter name and all references renamed.
97 lines
4.6 KiB
Markdown
97 lines
4.6 KiB
Markdown
---
|
|
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 for what the code says, open files only where nostos cannot answer, and stamp `sounded: <date>`. 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
|
|
|
|
The recon pass that precedes a lock. A blueprint locks on a human's yes,
|
|
and that yes rests on knowledge nothing checked — sounding is what checks
|
|
it. Ports mattpocock's `research`, re-founded on the OKF.
|
|
|
|
## The spine
|
|
|
|
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`, **stop**. Nothing else runs.
|
|
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 (`/write-okf`'s `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
|
|
|
|
The same skill, two modes, and which one is decided by *how the run
|
|
started* — see [019](../../../OKF/decisions/R-019-recon-may-self-fire.md).
|
|
|
|
| Reached | Behaviour |
|
|
|---|---|
|
|
| **By name** — user, or `blueprint` at its lock step | refine the blueprint sounded; stamp `sounded: <date>` |
|
|
| **Self-fired** — routed by description | **report only; write nothing** |
|
|
|
|
The stamp is what a lock leans on, so a run nobody asked for may not
|
|
make it. A stamp a self-fire cannot make is a stamp a lock can trust.
|
|
Self-fired and the findings matter → say so and name `/sound`; the user
|
|
decides whether it becomes a write.
|
|
|
|
## The mark
|
|
|
|
`sounded: YYYY-MM-DD`, fourth frontmatter field, after `traces-to` (see
|
|
`/blueprint`'s `blueprint-format.md`). Sounding is a precondition of lock: `okf-check` warns `<path>: locked without
|
|
sounded:` on a `locked` blueprint carrying no stamp. Warning, not error
|
|
— exit status stays 0.
|
|
|
|
**Idempotence.** Already stamped and no cited file changed since →
|
|
report `sounded <date>, unchanged` and stop. Re-sound anyway only when
|
|
the user asks, or when a cite no longer resolves.
|
|
|
|
## Output / done criteria
|
|
|
|
- Findings in the calling context: what held, what drifted, what has no
|
|
owner — each with its cite.
|
|
- Reached by name → the blueprint refined and stamped.
|
|
- Self-fired → the report, and the working copy byte-identical.
|
|
|
|
## Guardrails
|
|
- **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
|
|
research is upstream `research`, not this.
|
|
- **Never** edit a locked blueprint's Contract or Verify — a sounding
|
|
that contradicts them supersedes, per
|
|
`/blueprint`'s status discipline.
|
|
|
|
## See also
|
|
- `/blueprint` — the caller; sounding
|
|
gates its lock step.
|
|
- `/write-okf` — no `OKF/` → there
|
|
first; `okf-check` owns the warning.
|
|
- `/rig` — executes what a sounded
|
|
blueprint locked.
|