An open PR, a pushed branch or a local commit is not done (finding cut-brief-done-means-landed.s1.skill-table-no-recorded; ruling dropwork-waiting-for-ruled). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
21 KiB
Campaign state
A campaign keeps its state in two places, and nothing lives in both.
- The mind. Questions, rulings, cut specs, reports, verdicts, findings,
follow-ups and resolutions are typed documents in the instance's mind, held by
Huginn and reached through the
huginnCLI. Status is derived from them on every read; nobody writes it. - The prose. A target document and a map document, committed in the repo
the campaign changes. They keep only what no kind carries: body facts (probes
and their results), the model page (step 0b), and rationale. The typed
targetpoints at the target document throughtarget.doc.
The shapes below are the leaf's (epiphany-pipeline, pinned by Huginn) and the
organ's (huginn-mind). Where this page and the tools' own schemas disagree,
the tools are right and this page is stale.
The CLI
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.
| 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 [--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. |
facultyis one ofSelfFaculty,Imagination,Hands,Soul,Life,Eyes,Operator. It is attribution, not authority.agentnames the admitting agent.sessionis the campaign session label Self gives in every brief, so that sessions sharing one mind stay tellable apart.- A document on the wire is
{ "kind": "<kind>", "value": { ... } }, with the kind in snake case (cut_spec). A reference is{ "kind": "<Kind>", "id": "<full id>" }, with the kind in Pascal case (CutSpec). - A refusal is an answer. It names the rule, for example
CitesResolvedDocument,ResolutionOutOfSequenceorPromiseWithoutVerdict. Fix the batch and admit again. An exact replay answersAlreadyAdmitted, so retrying a batch is safe. A key, format or bound error arrives asRefused(Document(..))with the field and value: fix it and resend.Refused(Unavailable)means a store fault: retry once, as forisErrorUnavailable. The retired faculty name forLifeis refused in query selections; stored receipts that carry it still decode. isError: truemeans no answer:Unavailable(the daemon is down or unreachable),Rejected(it refused the envelope),Misconfigured,TooLarge,Unencodable,InvalidInputorInternal.
When the organ does not answer
This is the one rule for every faculty.
huginndoes not run in the session's shell: stop and tell the operator (a subagent tells Self). Never fall back to prose.Unavailable: retry the same call once. A cold semantic embed after an idle spell took over 15 s live, which is the client's whole timeout. Retryingadmitis safe, because an exact replay answersAlreadyAdmitted.InvalidInputorTooLarge: the call is wrong, not the organ. Fix it (the arguments, or a narrower selection or smaller batch) and retry, as for a refusal.Unavailableafter the retry, or any otherisError: stop. A subagent reports the error and the step it stopped at, and stays resumable: Self continues it withSendMessageoncewhoamianswers. Never send the record to Self as prose, and never keep it anywhere else meanwhile. The mind is the only store.
The document set
A key is <root>:<kind>:<local>. The leaf derives it, and admission refuses a
mismatch. The root is the campaign slug, or the instance for instance,
stewardship and hand_off.
| Kind | Local | Admitted by | Carries | Cites |
|---|---|---|---|---|
instance |
self |
exists (eureka:instance:self) |
instance, display name, host | |
stewardship |
<repo>.n<seq> |
Self | instance, repo, sequence, note | |
campaign |
self |
Self | title, repos (the opening set), working branch, target doc | |
target |
r<rev> |
Self | invariants (label, statement), not in scope, canonical implementations, doc, repos (the whole set from this revision on; empty keeps the previous) |
|
question |
<label> |
Imagination; Hands or Soul for a fork | title, question, options (≥2), recommended, depends, raised in | raised_in |
ruling |
<label> |
Self | answers (none for an operator direction), choice, ruling, operator quote, date, authority | answers |
cut_spec |
cut-<cut>.r<rev> |
Imagination | repo, branch, base, depends on (cut labels, never revision ids; a spec may not depend on its own cut), first, deletes, keeps and moves, adds, file changes, reads (each a location and why; any location may carry a symbol), authority map, verification, estimate | rulings, questions |
cut_report |
cut-<cut>.h<attempt> (a fix batch is the next attempt) |
Hands | commits, range, verification evidence (mutation totals included), mutations (survivors and the ones Soul should rerun), deviations, forks, structural delta, landed names, undone, promises | cut_spec, forks |
verdict |
cut-<cut>.s<pass> |
Soul | range, claims (each with an outcome, evidence, findings, promise, mutations) | cut_report, findings |
finding |
cut-<cut>.s<pass>.<label> |
Soul, in the verdict's batch | confidence, severity, claim, invariants, locations, failure scenario, evidence, origin | verdict |
follow_up |
<label> |
Self; Imagination for work no cut owns | source, repo, locations, item, why it can wait, owner | source |
research |
<pass>.<label> |
Eyes | pass, label, claim, detail, inferred, sources (repo pin, web page, observed, document), serves, observed on; the pass's first note is scope |
serves, document sources |
idea |
<pass>.<label> |
Imagination | pass, label, title, idea, tradeoffs, rests on, toward, proposed on | rests_on, toward |
resolution |
<subject kind>.<subject local>.n<seq> |
whoever closes the subject | subject, sequence, outcome, rationale, date | subject, and the outcome's referents |
hand_off |
<to>.<repo>.<date> |
Self (parked: Cut 12) | from, to, repo, documents, reason | documents |
Bounds: Title and Short are at most 200 bytes, Line 1,000, and Para
4,000. A target's repos is at most 16, a campaign's 8. Narrative longer than that goes in the prose map, cited by a DocRef
(path, start and end line, commit). A Label is [A-Za-z0-9_-]{1,64}, and a
Date is YYYY-MM-DD. A subject's local key (the part after
<campaign>:<kind>:) is at most 64 bytes. A resolution's local is derived from
its subject's and is at most 111 bytes, so every admitted subject can be
resolved and withdrawn.
Rules that shape a batch (the rest arrive as refusals):
- A cut spec's repo must be in the repo set in force when the spec is admitted:
the target in force's
reposwhen it names any, else the campaign's. Specs already in force on a since-removed repo stay in force and can still be reported, withdrawn or superseded; a new revision of one is refused. Self adds or removes a repo with targetr<n+1>naming the whole set, plus the superseding resolution. A target revision may not empty areposlist its predecessor named (EmptyRepos). - A ruling that
answersa question derives that question'sAnsweredresolution in the same commit. Itschoicemust be one of the question's option labels.operator_quoteis allowed only withauthority: Operator. - An operator direction that answers no question is a ruling with no
answersand nochoice,authority: Operator, and the operator's own words inoperator_quote. Specs and briefs cite it by id, so every agent reads the operator's words rather than a paraphrase. - A revision above 1 (of a target or a cut spec) needs, in its own batch, a resolution that supersedes the previous revision by it.
- A cut spec cites only rulings in force, and a report only a spec in force.
The report's
range.headis one of its commits; it may be spelled short or full, and is matched by commit. depends_onentries are cut labels naming another cut that has acut_specin the same campaign. A dependency on another campaign's cut goes infirst.- A verdict measures each of its report's promises exactly once. A
Falsifiedclaim needs aConfirmedfinding, and anUnprovenclaim may not have one. A finding needs evidence and a location, and its invariant labels come from the target in force.
Resolutions
One resolution in force per subject. sequence is the previous one plus one.
Nothing is edited or deleted: a closure is a new document, and so is its
reversal.
| Subject | Allowed outcomes |
|---|---|
| target | Superseded { by: [target] } |
| question | Answered { by: ruling } (derived), Withdrawn { reason } |
| ruling | Superseded { by: [ruling] } |
| cut_spec | Superseded { by: [cut_spec of the same cut] }, Withdrawn { reason } |
| finding | Fixed { commit, by?: cut_report }, Deferred { to: follow_up or cut_spec } (the spec must be in force), Recorded { reason }, Withdrawn { reason } |
| follow_up | Fixed { commit, by?: cut_report } (the commit on the default branch that holds the change), Recorded { reason } (only for a follow-up that asked for an answer, or for an act with no commit, naming where it can be seen), Superseded { by: [follow_up] } (a change pushed but waiting on someone: her own follow-up names the PR and whom it waits on), Withdrawn { reason }. An open PR, a pushed branch or a local commit is not done. |
| stewardship | Superseded { by: [stewardship] }, Withdrawn { reason } |
| campaign | Moved { to: mind }: it freezes the campaign in the giver, and the receiver imports it with huginn import. A Moved is final and travels alone under its campaign in its batch. |
| resolution | Withdrawn { reason }, which reopens its subject. It cannot itself be withdrawn: resolve the subject again. |
Cut reports, verdicts and instances have no resolution.
Only Self closes a finding Fixed, and only after a Soul pass on the fix's
report holds the claim the finding broke. Hands never resolves a finding: a fix
that closes itself is the self-grading the pipeline exists to prevent.
Selection vocabulary
query.selection is CultNet's typed selection:
schemasis a list of type ids,epiphany.pipeline.<kind>.v2.keysis a list of full ids.fieldsis a list of{ index, op: "any_of", values: [..] }. No alias is numeric.citesis{ target: { schemaId, recordKey }, role? }: the rows that cite that document.citedis{ role, exists }: the rows that some document cites (or none cites) throughrole.projectionisheader(default) ordocument.descendingis a boolean.limitruns from 1 to 200, and 200 when absent.cursortakes the page'snextfor the page after. Every page of one walk is exact as of the first page'sas_of.
The aliases:
| Alias | On | Values |
|---|---|---|
root |
every kind | the campaign slug, or the instance |
in_force |
every kind | true, false |
faculty |
every kind | the admitting faculty |
repo |
campaign, cut_spec, cut_report, follow_up, stewardship, hand_off, resolution | Org/Repo, case-insensitive |
cut |
cut_spec, cut_report, verdict, finding, resolution | the cut label |
severity, confidence, origin |
finding | Blocker/High/Medium/Low; Confirmed/Plausible; Introduced/PreExisting |
authority |
ruling | Operator, Standing, Defaulted |
claim_outcome |
verdict | Holds, Falsified, Unproven |
outcome |
resolution | Superseded, Answered, Fixed, Deferred, Recorded, Withdrawn |
A resolution's repo and cut are its subject's. Roles are named after the
field that carries them: raised_in, answers, rulings, questions,
cut_spec, forks, cut_report, findings, verdict, source, subject,
superseded_by, resolved_by, deferred_to and documents.
A value outside an alias's domain is refused as SelectionInvalid, never
answered empty. A header carries the id, the admission facts, the status and
the kind's triage fields, but no Para text: ask for projection: document,
or view one id, to read the prose fields.
semantic: { text, top_k } ranks the selection's matches by nearness to
text. The index supplies candidates and the selection decides membership, so
in_force means what it means anywhere else. A semantic query carries no
cursor and no descending. It is refused Unavailable while the index is
Failing.
Recipes
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:
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>. Itsreposwhen non-empty, else the campaign'srepos(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>; it pages, so pass--cursor <next>until nonextis returned. A question's header carriesraised_in. A spec named there is blocked on the operator, not waiting on Hands;huginn blocked <spec>takes a spec id and prints the questions holding it. There is no one-command list of blocked specs: run it per spec fromhuginn unreported <c>. - Open findings, admitted by Soul:
huginn findings <c>.facultyis 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, checkhuginn blocked <spec>: a question it prints holds the spec for 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 thatadmission.provenance.facultyisSoul. - The ledger:
huginn ledger <c>; it pages, so pass--cursor <next>until nonextis returned. Compare each spec'sestimatewith its reports'structural_delta. A miss gets its explanation in the next report'sdeviations, 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|ideaprints the shape.
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
The known gaps in the mind's substrate are follow_ups in the mind, not a
list on this page. Each one names the gap, its owner, and in
why_it_can_wait the workaround the skill uses meanwhile. The workarounds
that steer agents are also written into the step or brief that applies them.
Examples are the mutation triage in deviations, the ruling id at the start
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 huginn gaps, which pages: pass --cursor <next> until
no next is returned.
- 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 run felt the gap, and its owner is the missing thing's owner. - When a run hits a gap that is already there, it admits nothing new. The
run records the recurrence where it happened: a report's
deviations, or the prose map. The count lives in that evidence until the follow-up kind can carry it. - Do not copy the list back here. A table on this page is a second copy, and it goes stale the day an owner fixes a gap.
The prose map
docs/<campaign>-map.md holds:
- Body facts: each probe, with what was run, where, when, and what it
returned. Cut specs cite them by
DocRefinstead of restating them. - The model page: one row per persistent kind, giving what names it, what happens to it over time, and who decides (SKILL.md step 0b).
- Rationale: why the cut order is what it is, why a design was rejected,
and anything longer than a
Para. - The cut order: why the cuts run in the order they do. The cuts not yet
mapped are
follow_ups in the mind (SKILL.md step 1), cited here by id; the prose never holds one the mind lacks.
It has no progress section, no per-cut sections, no rulings and no ledger table:
those are documents, and the recipes above read them. docs/<campaign>-target.md
keeps the target's rationale and the design truths the migration produces. Its
invariants, not-in-scope list and canonical implementations are the typed
target.
Notes from use
- Admit only the ruling that answers a question. Its
Answeredresolution is derived in the same commit; admitting that resolution by hand is refusedIdentityCollision. - Re-mapping a withdrawn cut takes two batches. First admit a
Withdrawnresolution on the spec's withdrawal resolution, which reopens the spec. Then, in a second batch, admit revision N+1 with aSupersededresolution on revision N. One batch holding both is refusedWouldReinstateOverLater(loot-2 r3, 2026-10-13). A fresh cut label at revision 1 needs neither. - A finding cannot be resolved
Superseded(IncompatibleResolution). Resolve itRecorded, naming its successor in the reason. - Test negative greps before publishing them in a spec's
verification.negative.\.loadout\bmatched the legitimate schema nameaetheria.loadout. - State the capture method with the capture. PowerShell
>writes a BOM and CRLF, and the comparison must use the same method on both sides. - 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.