references/cut-map.md becomes references/campaign-state.md: the eureka-state tools, the typed document set with its keys, the admission rules that shape a batch, the resolution matrix, the selection vocabulary (aliases, roles, hops, projection, paging, semantic), and the recipes that replace the status header and the deleted open_items, rulings_in_force and history presets. The prose-map template shrinks to body facts, the model page and rationale. Huginn Cut 15 (Epiphany notes/huginn-organ-cut.md at 74804d83), under Q-H6 A. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
13 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
eureka-stateMCP tools. 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 tools
The instance and the daemon are the server's configuration
(EUREKA_INSTANCE, HUGINN_ENDPOINT), never an argument.
| Tool | Input | Answer |
|---|---|---|
whoami |
{} |
{ 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. |
admit |
{ faculty, agent, session, documents } |
Committed { receipt_id, committed_at, writes }, AlreadyAdmitted { receipt_id }, Conflict { identities } or Refused(<refusal>). One to 64 documents, admitted whole or not at all. |
view |
{ id: { kind, id } } |
{ id, document, admission, status }, or null. |
query |
{ selection, semantic? } |
{ matched, as_of, next, items, edges }. items is Headers([...]) or Documents([...]). |
facultyis one ofSelfFaculty,Imagination,Hands,Soul,MindSteward,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
RepoNotStewarded,CitesResolvedDocument,ResolutionOutOfSequenceorPromiseWithoutVerdict. Fix the batch and admit again. An exact replay answersAlreadyAdmitted, so retrying a batch is safe. isError: truemeans no answer:Unavailable(the daemon is down or unreachable),Rejected(it refused the envelope),Misconfigured,TooLarge,Unencodable,InvalidInputorInternal. When this happens, stop and say so. Never keep the record somewhere else meanwhile.
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 (each stewarded), working branch, target doc | |
target |
r<rev> |
Self | invariants (label, statement), not in scope, canonical implementations, doc |
|
question |
<label> |
Imagination; Hands or Soul for a fork | title, question, options (≥2), recommended, depends, raised in | raised_in |
ruling |
<label> |
Self | answers, choice, ruling, operator quote, date, authority | answers |
cut_spec |
cut-<cut>.r<rev> |
Imagination | repo, branch, base, depends on, first, deletes, keeps and moves, adds, file changes, authority map, verification, estimate | rulings, questions |
cut_report |
cut-<cut>.h<attempt> |
Hands | commits, range, verification evidence, mutations, 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 | source, repo, locations, item, why it can wait, owner | source |
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. 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.
Rules that shape a batch (the rest arrive as refusals):
- A campaign's repos must each have a stewardship in force. A cut spec's repo must be one of its campaign's repos.
- 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. - 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. - 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 }, Recorded { reason }, Withdrawn { reason } |
| follow_up | Fixed { commit, by?: cut_report }, Superseded { by: [follow_up] }, Withdrawn { reason } |
| stewardship | Superseded { by: [stewardship] }, Withdrawn { reason } |
| resolution | Withdrawn { reason }, which reopens its subject. It cannot itself be withdrawn: resolve the subject again. |
Campaigns, cut reports, verdicts and instances have no resolution.
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
the query tool's whole input.
Rehydrate. Run whoami, and stop if reachable is false. Then:
{ "selection": { "schemas": ["epiphany.pipeline.stewardship.v2"],
"fields": [{ "index": "in_force", "op": "any_of", "values": ["true"] }] } }
{ "selection": { "schemas": ["epiphany.pipeline.campaign.v2"] } }
Then run the campaign's rulings in force and open items (below), and view its
target, or query target with root = <c>, in_force = true and
projection: document.
Rulings in force:
{ "selection": { "schemas": ["epiphany.pipeline.ruling.v2"],
"fields": [{ "index": "root", "op": "any_of", "values": ["<c>"] },
{ "index": "in_force", "op": "any_of", "values": ["true"] }] } }
Open items (questions not answered or withdrawn, findings and follow-ups not closed):
{ "selection": { "schemas": ["epiphany.pipeline.question.v2", "epiphany.pipeline.finding.v2", "epiphany.pipeline.follow_up.v2"],
"fields": [{ "index": "root", "op": "any_of", "values": ["<c>"] },
{ "index": "in_force", "op": "any_of", "values": ["true"] }] } }
Specs with no report. This is one query: cited with exists: false is
the substrate's absent inbound hop.
{ "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 } } }
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.
A subject's history, newest first:
{ "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>.
Blocking findings: finding, with root, in_force = true, and
severity any of Blocker and High.
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 }.
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.
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
- 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.