docs: name only live tools; recipes are huginn verbs; changelog entry for skill-tools-off-mcp

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
Eureka 2026-11-07 13:32:50 +01:00
commit 05ae3b2368
6 changed files with 79 additions and 153 deletions

View file

@ -96,8 +96,7 @@ admission. The committed prose keeps only body facts, the model page and
rationale.
The skill needs the `huginn` CLI on PATH, with `EUREKA_INSTANCE` and
`HUGINN_ENDPOINT` in the environment, and a reachable daemon. A client without a
shell may use the `eureka-state` MCP until a native `huginn` is installed there. Without one,
`HUGINN_ENDPOINT` in the environment, and a reachable daemon. Without one,
the pipeline stops rather than keeping state anywhere else.
Maps and postmortems are public artifacts from the first cut, with the scars

View file

@ -107,9 +107,7 @@ specialized for their task."
- **Check that `huginn` runs in this session** (`huginn --version`; on
Yggdrasil it is `/opt/gamecult/huginn/current/huginn`, and `EUREKA_INSTANCE`
and `HUGINN_ENDPOINT` name the mind). If it is absent, stop and tell the
operator. Never fall back to prose. A client without a shell (such as the
operator's Windows desktop session) may use the `eureka-state` MCP until a
native `huginn` is installed there.
operator. Never fall back to prose.
- **Run `huginn whoami`.** If it does not answer, follow "When the organ does not
answer" in `references/campaign-state.md`: one retry, then stop. Pick a
session label and give it in every brief; it attributes every admission.

View file

@ -80,7 +80,7 @@ Odin-class architecture doctrine:
## Persona State Standard
<!-- new:begin -->
Persona state uses `gamecult.persona_state.v0`. Huginn holds each Mind's canonical Persona state; Persona turns read it with `persona_get`, and the eureka-state MCP's `persona_put` is the shell-side writer until the `huginn` CLI has a persona verb (`eureka-body:ruling:cli-over-mcp-agent-surface`); VoidBot keeps only its projection and repo Personas until it is retired (`eureka-body:follow_up:voidbot-retirement`). Read `F:\Projects\gamecult-ops\docs\persona-state-standard.md` before any Persona-state work.
Persona state uses `gamecult.persona_state.v0`. Huginn holds each Mind's canonical Persona state; Persona turns read it through HuginnClient, and `huginn persona get|put` is the shell-side door; VoidBot keeps only its projection and repo Personas until it is retired (`eureka-body:follow_up:voidbot-retirement`). Read `F:\Projects\gamecult-ops\docs\persona-state-standard.md` before any Persona-state work.
<!-- new:end -->
<!-- moved to F:\Projects\gamecult-ops\docs\persona-state-standard.md (Persona State Standard body) -->

View file

@ -61,9 +61,9 @@ TooLarge are the same: fix the call (or narrow it) and retry. Retrying an admit
is safe (AlreadyAdmitted). Unavailable after one retry, any other isError, or
the mind going away mid-pass: stop where you are and report the step; never
send your record as prose.
A denial headed "This is a deliberate hold" is the near-neighbour check, not a
refusal: read the listed records; if none is the same decision send the identical
call again, otherwise revise the batch.
Exit 6 Held is the near-neighbour check, not a refusal: it lists the neighbours
and a `--seen <token>`. Read them; rerun with `--seen <token>` only if none is
the same decision, otherwise revise the batch.
```
## Self: open a campaign, rule, triage
@ -200,8 +200,9 @@ The cut_spec's fields are the spec standard. Beyond filling them:
- file_changes are Hands' context pack. Each range is exact at base and is the
window Hands needs for that change, at most 100 lines (split a longer site). A
new file goes in adds, never as a line-1 anchor. Write no prose about lines
moving. After admitting, run `py -3 tools/context-pack.py <spec id> <worktree
at base>`: every anchor must read SAME and each window must show what its
moving. After admitting, save the spec with `huginn view --raw <spec id> >
<scratchpad>/spec.json` and run `py -3 tools/context-pack.py
<scratchpad>/spec.json <worktree at base>`: every anchor must read SAME and each window must show what its
change names, or admit a revision.
- code Hands must see but not change goes in `reads` (path and line range at
base, at most 100 lines, a `why` of at most 200 bytes, at most 16 per spec),
@ -250,8 +251,8 @@ ends there: report the question id and its receipt, and admit no cut_report
Repo/branch: <repo> <branch> at HEAD <sha>. Check that git status is clean
first. Pinned siblings: <repo@sha>. Do not change them.
Before any grep or Read, expand the pack: `py -3 tools/context-pack.py <cut_spec
id> <worktree>`. An anchor that reads NEW for a path the spec does not create,
Before any grep or Read, expand the pack: `huginn view --raw <cut_spec id> > <scratchpad>/spec.json`,
then `py -3 tools/context-pack.py <scratchpad>/spec.json <worktree>`. An anchor that reads NEW for a path the spec does not create,
OUT_OF_RANGE, UNRESOLVED, a MISSING read, SYMBOL_MISSING, or GONE outside
deletes is a spec discrepancy: record it in deviations. The pack lists the
callers of every symbol; grep beyond them only for what the pack names as cut.
@ -341,12 +342,12 @@ one head (SKILL.md, step 3); keep it fitting:
the final sweep will not. One job carries the build, the scoped tests and the
mutation run, so the queue and the compile are paid once.
- **Orient in one script.** One Bash call prints git status, the base and the
pack (`tools/context-pack.py`). Independent
pack (`tools/context-pack.py` on the saved spec file). Independent
reads, views and greps go in one parallel message.
- **Bound every observation.** No command prints more than about 150 lines.
Logs go to a file; read `tail -n 60` or `grep -n -m`, and read windows of a
file, never the whole of anything over about 300 lines. After editing,
`py -3 tools/context-pack.py <cut_spec id> <worktree> --since <the HEAD you
`py -3 tools/context-pack.py <scratchpad>/spec.json <worktree> --since <the HEAD you
started from>` reprints only the changed windows; re-read only files you
edited.
- **Read the spec by id, not the map.** The cut_spec is bounded and holds only
@ -528,8 +529,8 @@ below. Admit one verdict and its findings, and nothing else.
Scope: <cut_report id>. Rehydrate (recipes: target in force, rulings in force,
one cut's record for <cut>), then view the report (its range and its promises), the cut_spec it
cites, and every ruling the spec cites. `py -3 tools/context-pack.py <cut_spec id>
<worktree at the report's head>` prints the cut's sites at that head. Admitting your verdict is a write to
cites, and every ruling the spec cites. `huginn view --raw <cut_spec id> > <scratchpad>/spec.json`, then
`py -3 tools/context-pack.py <scratchpad>/spec.json <worktree at the report's head>` prints the cut's sites at that head. Admitting your verdict is a write to
the mind, not to a repo.
Hands' promises are one input, not the boundary of the pass. Falsify every
@ -664,8 +665,7 @@ answer. Read the campaign's mind with the Rehydrate block (recipes: <as needed>)
`huginn schema research` prints the fields and bounds: `claim` (1000 bytes), `detail`
(4000), `sources` (16), and required `serves`, `detail`, `observed_on`.
Admit what you find as `research` notes through `huginn admit` (the strict door,
not the MCP tool), faculty Eyes: one document per claim, nothing else admitted.
Admit what you find as `research` notes through `huginn admit`, faculty Eyes: one document per claim, nothing else admitted.
Label each `<pass>.<label>`: the local part is 64 bytes in all, so the pass is at
most about 24 bytes and the label at most about 38. The first note is labelled
`scope`: your method and what you did not search. Every note has a source (a repo

View file

@ -20,15 +20,16 @@ the tools are right and this page is stale.
The instance and the daemon are the environment (`EUREKA_INSTANCE`,
`HUGINN_ENDPOINT`), never an argument. The table names each tool's input and
answer; the CLI form is in the first column. `huginn --help` and
`huginn schema [kind]` are the source. A client without a shell may use the
`eureka-state` MCP, whose tools these are, until a native `huginn` is installed.
`huginn schema [kind]` are the source.
| CLI | Input | Answer |
|---|---|---|
| `huginn whoami` | none | `{ instance, endpoint, reachable, status }`. `status` is `{ instance, schema_epoch, documents, receipts, index }`, and `index` is `Current`, `Reconciling`, `Behind`, `Failing` or `Refused`. When unreachable, `error` says why. |
| `huginn admit --faculty F --agent A --session S <file or ->` | a JSON array of 1 to 64 `{kind, value}` documents (file or stdin) | `Committed { receipt_id, committed_at, writes }`, `AlreadyAdmitted { receipt_id }`, `Conflict { identities }` or `Refused(<refusal>)`. One to 64 documents, admitted whole or not at all. |
| `huginn view <root:kind:local> [--raw]` | the document id | `{ id, document, admission, status }`, or `null`. |
| `huginn admit --faculty F --agent A --session S [--seen <token>] <file or ->` | a JSON array of 1 to 64 `{kind, value}` documents (file or stdin) | The text the CLI prints: `Committed` with its receipt id and writes, `AlreadyAdmitted`, `Conflict` or `Refused(<refusal>)`, then `read back <n> equal` (exit 5 names what differs). Admitted whole or not at all. A batch whose rulings or questions have in-force neighbours is held once: exit 6 Held lists them with a token, and nothing is sent; rerun with `--seen <token>` only if none is the same decision. |
| `huginn view <root:kind:local> [--raw]` | the document id | The id and status, the admission line and the document as `{ kind, value }`; `absent <id>` (exit 1) when there is none. `--raw` prints the `{ kind, value }` alone: the form context-pack reads. |
| `huginn query '<selection json>' [--near TEXT --top-k N] [--documents]` (or `@file`, or `-`) | the selection alone; `--near` is `semantic` | `{ matched, as_of, next, items, edges }`. `items` is `Headers([...])` or `Documents([...])`. |
| `huginn persona get` / `huginn persona put --faculty F --agent A --session S <file or ->` | the whole `gamecult.persona_state.v0` document (put) | get prints the stored document with its `updatedAt` and receipt, or `absent` (exit 1) until the first put; put replaces it whole. |
| `huginn recall dispatch` | Claude Code's hook JSON on stdin | A `PreToolUse` hook on the Agent matcher (`huginn recall dispatch \|\| true`), not a verb for agents: it appends the in-force neighbours of the rulings, questions and follow-ups a brief cites. |
- `faculty` is one of `SelfFaculty`, `Imagination`, `Hands`, `Soul`,
`Life`, `Eyes`, `Operator`. It is attribution, not authority.
@ -201,122 +202,55 @@ or `view` one id, to read the prose fields.
## Recipes
These are the campaign's progress view. `<c>` is the campaign slug. Each recipe is
the `selection` value of `huginn query`; the CLI takes the object inside the `selection` key, and `--near`/`--top-k` replace `semantic`. Named verbs (`huginn campaigns`, `rulings`, `open`, `findings`, `unreported`, `unjudged`, `cut`, `precedent`) run the common recipes. Agents run them from the Rehydrate block in
`briefs.md`, which is the one definition of rehydration.
These are the campaign's progress view. `<c>` is the campaign slug. Each recipe
is a named verb of the CLI; `huginn --help` lists them and `huginn query` takes
any selection the verbs do not cover. Agents run them from the Rehydrate block
in `briefs.md`, which is the one definition of rehydration.
**Campaigns:**
- **Campaigns:** `huginn campaigns`.
- **No campaign at all:** the mind is new. Self opens one (SKILL.md step 0).
Any other faculty stops and reports it.
- **`<c>` is not in the list:** the slug is wrong or the campaign is in
another mind. Stop and report; never create a campaign to fit a brief.
- **Repos in force:** `huginn target <c>`. Its `repos` when non-empty, else the
campaign's `repos` (`huginn campaigns`, the opening set). A cut spec's repo
must be in this set.
- **Target in force:** `huginn target <c>`.
- **Rulings in force**, operator directions included: `huginn rulings <c>`.
- **Open questions and follow-ups:** `huginn open <c>`. A question's header
carries `raised_in`. A spec named there is **blocked on the operator**, not
waiting on Hands; `huginn blocked <c>` lists those specs.
- **Open findings**, admitted by Soul: `huginn findings <c>`. `faculty` is
declared attribution, not checked by admission (see the gaps below), so a
finding or verdict from any other faculty is a defect to raise, not a record
to use.
- **Specs with no report:** `huginn unreported <c>`. Before briefing Hands on
one of them, check `huginn blocked <c>`: a spec it lists waits on a ruling.
- **Reports with no verdict** (Soul's queue): `huginn unjudged <c>`.
- **A subject's history**, newest first: `huginn history <id>`. A withdrawn
resolution is listed with the withdrawal as its status.
- **One cut's record:** `huginn cut <c> <label>`: the spec, reports, verdicts,
findings and resolutions. When reading its verdicts and findings, check that
`admission.provenance.faculty` is `Soul`.
- **The ledger:** `huginn ledger <c>`. Compare each spec's `estimate` with its
reports' `structural_delta`. A miss gets its explanation in the next report's
`deviations`, or in the prose map if it spans cuts.
- **Precedent** (before raising a question or recommending a mechanism):
`huginn precedent <c> "<the question in plain words>"`: rulings, resolutions
and findings nearest it.
- **Research and ideas:** `huginn known <text>` finds the nearest notes and
ideas in every campaign, closed ones included, with their status; `huginn
pass <campaign> <pass>` lists one pass whole; `huginn ideas <campaign>` lists
the ideas in force. Known is cross-campaign and shows closed notes; precedent
is rulings, resolutions and findings. Neither a note nor an idea stores a
status: its resolutions say what became of it. `huginn schema research|idea`
prints the shape.
```json
{ "selection": { "schemas": ["epiphany.pipeline.campaign.v2"] } }
```
- **No campaign at all:** the mind is new. Self opens one (SKILL.md step 0).
Any other faculty stops and reports it.
- **`<c>` is not in the list:** the slug is wrong or the campaign is in another
mind. Stop and report; never create a campaign to fit a brief.
**Repos in force:** `huginn target <c>`. Its `repos` when non-empty, else the
campaign's `repos` (`huginn campaigns`, the opening set). A cut spec's repo must be
in this set.
**Target in force:** `target`, with `root` = `<c>`, `in_force` = `true` and
`projection: document`.
**Rulings in force**, operator directions included:
```json
{ "selection": { "schemas": ["epiphany.pipeline.ruling.v2"],
"fields": [{ "index": "root", "op": "any_of", "values": ["<c>"] },
{ "index": "in_force", "op": "any_of", "values": ["true"] }] } }
```
**Open questions and follow-ups:**
```json
{ "selection": { "schemas": ["epiphany.pipeline.question.v2", "epiphany.pipeline.follow_up.v2"],
"fields": [{ "index": "root", "op": "any_of", "values": ["<c>"] },
{ "index": "in_force", "op": "any_of", "values": ["true"] }] } }
```
A question's header carries `raised_in`. A spec named there is **blocked on the
operator**, not waiting on Hands.
**Open findings**, admitted by Soul:
```json
{ "selection": { "schemas": ["epiphany.pipeline.finding.v2"],
"fields": [{ "index": "root", "op": "any_of", "values": ["<c>"] },
{ "index": "in_force", "op": "any_of", "values": ["true"] },
{ "index": "faculty", "op": "any_of", "values": ["Soul"] }] } }
```
Add `severity` any of `Blocker` and `High` for the blocking ones. `faculty` is
declared attribution, not checked by admission (see the gaps below), so a
finding or verdict from any other faculty is a defect to raise, not a record to
use.
**Specs with no report.** This is one query: `cited` with `exists: false` is
the substrate's absent inbound hop.
```json
{ "selection": { "schemas": ["epiphany.pipeline.cut_spec.v2"],
"fields": [{ "index": "root", "op": "any_of", "values": ["<c>"] },
{ "index": "in_force", "op": "any_of", "values": ["true"] }],
"cited": { "role": "cut_spec", "exists": false } } }
```
Before briefing Hands on one of them, check whether it is blocked: `question`,
`in_force` = `true`, with `"cites": { "target": { "schemaId":
"epiphany.pipeline.cut_spec.v2", "recordKey": "<spec id>" }, "role":
"raised_in" }`. A match means the spec waits on a ruling.
**Reports with no verdict** (Soul's queue): the same shape, over
`epiphany.pipeline.cut_report.v2`, with `"cited": { "role": "cut_report",
"exists": false }` and no `in_force`, because reports are never resolved. The
hop cannot filter the citing verdict's faculty.
**A subject's history**, newest first:
```json
{ "selection": { "schemas": ["epiphany.pipeline.resolution.v2"],
"cites": { "target": { "schemaId": "epiphany.pipeline.<kind>.v2", "recordKey": "<id>" }, "role": "subject" },
"descending": true } }
```
A withdrawn resolution is listed with the withdrawal as its status.
**One cut's record:** `schemas` set to `cut_spec`, `cut_report`, `verdict`,
`finding` and `resolution`, with `root` = `<c>` and `cut` = `<label>`. When
reading its verdicts and findings, check that `admission.provenance.faculty` is
`Soul`.
**The ledger:** `cut_spec` and `cut_report` with `root` = `<c>` and
`projection: document`. Compare each spec's `estimate` with its reports'
`structural_delta`. A miss gets its explanation in the next report's
`deviations`, or in the prose map if it spans cuts.
**Precedent** (before raising a question or recommending a mechanism):
`ruling`, `resolution` and `finding` with `root` = `<c>`, plus
`"semantic": { "text": "<the question in plain words>", "top_k": 10 }`.
**Research and ideas:** `huginn known <text>` finds the nearest notes and ideas
in every campaign, closed ones included, with their status; `huginn pass
<campaign> <pass>` lists one pass whole; `huginn ideas <campaign>` lists the
ideas in force. Known is cross-campaign and shows closed notes; precedent is
rulings, resolutions and findings. Neither a note nor an idea stores a status:
its resolutions say what became of it. `huginn schema research|idea` prints the
shape.
Once the operator installs the hook, `tools/recall.py` also puts the nearest in-force
rulings, questions and follow-ups into every prompt; the recipe remains the
deliberate check before raising a question.
With its `PreToolUse` hook installed, `tools/recall.py admit` holds an admit that
carries rulings or questions once and lists their nearest in-force neighbours; the
identical retry is admitted. With its `PreToolUse` hook on `Agent|Task` installed,
`tools/recall.py dispatch` appends to each Agent brief the in-force neighbours of the
rulings, questions and follow-ups the brief cites, and lists their ids to the dispatcher. Each cited
id is checked on its own: one failing costs only its neighbours and gets a status line naming the failure kind.
The near-neighbour hold lives in `huginn admit` (exit 6 Held, rerun with `--seen
<token>`). Dispatch recall is `huginn recall dispatch` on the Agent matcher: it
appends to each Agent brief the in-force neighbours of the rulings, questions and
follow-ups the brief cites, and each cited id is checked on its own, so one
failing costs only its neighbours and gets a status line naming the failure.
## Substrate gaps
@ -330,13 +264,7 @@ of a claim, and the retry on `Unavailable`.
Substrate gaps live under the standing campaign `eureka-substrate`
(operator ruling `eureka-substrate:ruling:gap-home`), with labels starting
`gap-`. That campaign is also where the substrate is fixed. Every campaign
reads its gaps with this query:
```json
{ "selection": { "schemas": ["epiphany.pipeline.follow_up.v2"],
"fields": [{ "index": "root", "op": "any_of", "values": ["eureka-substrate"] },
{ "index": "in_force", "op": "any_of", "values": ["true"] }] } }
```
reads its gaps with `huginn gaps`.
- **When a run works around a gap that is not there,** Self admits a new
`gap-<name>` follow-up under that root. Its source is the document where the
@ -388,10 +316,3 @@ invariants, not-in-scope list and canonical implementations are the typed
- **Prefer normalizers that parse the format.** Ones that split on text leave
false diffs, as the census normalizer did when it split on `, ` and glued the
first maker to its kind column.
## Known CLI gap
The `eureka-state` MCP also offers `persona_get` and `persona_put`. The `huginn`
CLI has no persona verb (`huginn --help` lists none). Persona state stays on the
MCP until Huginn grows one; this is a Huginn follow-up, not something to fake
with `admit`.

View file

@ -2,6 +2,14 @@
Record each change to the skill together with the evidence that motivated it.
## 2026-11-07: Eureka tools stop reaching the mind
Hands, cut `eureka-substrate:cut_spec:cut-skill-tools-off-mcp.r2`, base `54b3cfd` (the spec named `6485496`; main moved by `dotnet-self-env.sh` only).
Evidence. Operator, 2026-11-07: "Why am I still hearing about MCP when Eureka has CLI for everything we need" and "Why do we need JSON in our CLI". Rulings `eureka-substrate:ruling:recall-lives-in-huginn-no-cli-json`, `admit-hold-owner-ruled` and `recall-prompt-verb-ruled`; Huginn PRs 9 (persona verbs) and 10 (admit hold, recall dispatch) are merged and installed.
What changed. `tools/mind.py`, `tools/recall.py` and `tools/fixtures/context-pack/fake-eureka-state.py` are deleted with the recall, admit-hold and mind-client sections of `tools/test-tools.sh`: dispatch and the admit hold are `huginn recall dispatch` and `huginn admit` (exit 6 Held, `--seen <token>`); prompt mode is dropped. `tools/context-pack.py` takes the spec document `huginn view --raw <id>` prints, a file or `-` for stdin (`--spec-json`, `mcp_view` and the mind import are gone); an unreadable or non-cut_spec input exits 4 and the header names `<campaign> cut-<cut>.r<revision>` from the value. The fixtures are the raw `{kind, value}` form. `references/campaign-state.md` recipes are the CLI verbs; the briefs save the view to a file before context-pack; the shell-less MCP fallback sentences are deleted from `SKILL.md`, `README.md` and `campaign-state.md`.
## 2026-11-06: dispatch recall, anchored on the ids a brief cites
Hands, cut `eureka-substrate:cut_spec:cut-dispatch-recall-anchored.r1`.