Soul held the deletion line and the no-consumer claim, and found the fixture's owner recorded in a third repo that now disagrees, three more Huginn-naming fields, and AGENTS describing unbuilt cuts in the present tense. Two errors were the map's own: a follow-up number used twice, and a negative grep that ripgrep cannot parse. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
168 KiB
Eureka pipeline state: cut map
Date: 2026-09-15 (first Imagination pass), remapped 2026-09-16 after the operator rejected the repo-owned store.
Status: cut map. The ends are owned by notes/eureka-pipeline-state-target.md;
this document owns the means. Self updates this header in every landing commit.
Cuts 1-6 landed and are Soul-verified, with two fix batches on Cut 6. Cut 6b (the key grammar) is in Hands. Cut 6c (the Ghostlight shapes) is specified and waits on 6b. Everything from Cut 7 on is unbuilt, and none of it is in this repo. The old Cuts 3b-7 described a repo-owned store and are dead; they are kept, clearly marked, under "History" at the end of this file. Nothing above that section describes the old model.
Ordering against the other campaigns. Operator rulings, 2026-09-16:
- First ruling: the StreamPixels rescue is the portfolio piece, so CultLib's
TypeScript QUIC realtime plane goes ahead of Huginn, and the schema work
here stops at Cut 6c so that
epiphany-pipelineis a clean leaf with published schemas and no half-built service. - Correction, same day, in the operator's words: "I'm fine with doing the
CultLib cut without Huginn, but I want the StreamPixels migration to run
with it. If it's to be our portfolio piece, we want full Eureka capabilities
demonstrated." So this campaign does not pause after Cut 6c. The QUIC
cut runs without Huginn; Huginn (Cuts 7-16) lands before the StreamPixels
migration starts, so that migration runs on typed pipeline state end to end.
Sequence: Cut 6c → QUIC (CultLib) and Cuts 7-16 (Huginn, a different repo,
may run alongside) → StreamPixels on Eureka with
eureka-state.
Self still writes a postmortem at the Cut 6c boundary, because it closes the schema-ownership phase inside Epiphany, not because the campaign stops.
- Cut 1 landed at
2b76c2e7,df82992c. CultLib re-pinned toa0813c6. - Cut 2 landed at
00991c1b,46460efc,cb6ef5d2. One commit owner, parameterised by aTypedCommitStoreprofile. - Cut 3a landed at
a1473c45,ad18c385, then fixes atb4f88d29,187e01e7,a317d4cf. Ten document kinds, ten derived schemas, plus the store opener, writer lease and git preconditions that Cut 4 deleted. - Cut 4 landed at
ca275c7b,a9f06c2a, fixes at43a08baa,8a598ebb,186dbc62. The repo-owned store died whole. - Cut 5 landed at
1758ad50,4c091f57, fixes at617c397d. One commit owner, no profile. - Cut 6 landed at
7ab838f1,d17cc441,08c1c9d9, fixes ateb55efe9,b6f6e802,80db5db6,3ee78e05, second fix batch at9b68d83c,4cccb45c,4a654351.epiphany-pipelineis a leaf library Huginn can depend on withoutepiphany-core. - Cut 6b landed at
602ffd9f(deletes),1bddd2ac(grammar),95ee551a(mutation suite); fix batch in Hands. The second fix batch's Soul pass had found the same invariant open one level up for the third time, so the key grammar was redesigned rather than patched a fourth time. Soul's first pass on the grammar found no collision in 212,450 adversarial keys and four unpinned checks. - Cut 6c specified against
95ee551a; waits on the 6b fix batch. - Cut 7 landed on Huginn
eureka/memory-organat1320fc4(retire),f63c0f2(workspace),e20c786(docs), and Evemainate777e4c(fixture provenance). Soul in flight. Started in parallel on the operator's instruction; it has no dependency on the Epiphany cuts. - Target rewritten at
5fb4eb22.
Cut 6c is the last cut inside Epiphany. Cuts 7-16 build Huginn's Rust
workspace and the eureka-state MCP client; this repo's remaining stake is
schema ownership through epiphany-pipeline.
Pins for this pass. Code anchors are file:line against Epiphany
5fb4eb22, tree clean, branch codex/eureka-pipeline-state.
- CultLib
maina0813c6. - Huginn
main91b7fcfatF:\Projects\Huginn(upstream public, default branchmain, last pushed 2026-06-21). - VoidBot
main. gamecult-opsmain. - The Eureka skill is now a git repo:
GameCult/Eureka, public,mainat6ca7882, checked out at~/.claude/skills/eureka.
What the rewrite changed
The first model made a repo own the store. Nothing owned the state, so the machinery grew to compensate. The operator's correction is that an instance owns its mind, a service owns that state, and minds leave git.
The mechanical consequence, which drives Cut 4: every layer that existed only to
make a repo-resident, git-committed, multi-clone store safe is now dead
weight. That is the writer lease, the main-work-tree resolution, the committed
.gitattributes / .gitignore preconditions, the branch binding, and the merge
tool that was never built.
Rulings in force
Numbering follows the target. Rulings 5, 6, 10, 11 and 13's store clauses are superseded by 14-17; see History.
-
Epiphany owns the schemas for pipeline state.
-
Searchable state serves agents first. Rehydration and precedent checks come before operator browsing.
-
Two campaigns. This one covers schemas, the memory organ, admission, the MCP client and a proof. Epiphany adopting Eureka's habits is the second.
-
Re-pin first. Landed.
-
Eureka is published as
GameCult/Eureka, MIT. -
Q2 and Q5 survive the rewrite. Additive schema changes keep the epoch and a breaking bump refuses the old store (Q2).
schemarsis an unconditional dependency and published JSON schemas are derived from the Rust types (Q5).Amended 2026-09-16 by operator ruling: widening a
PipelineKindenum is additive and keeps the epoch. Soul was right that a widened enum is additive for a writer and a hard validation refusal for a reader pinned to the old file. The ruling accepts that, because the readers of these schemas are ours: a reader ships with the kinds it knows, and a document of a kind it has never heard of is not addressed to it. The cost of the other answer decided it — every new kind would rev the five schemas that embedPipelineKind, and adding kinds is most of what this campaign still does. A reader that must refuse an unknown kind refuses it on the kind, not on the epoch. -
The operator channel is the Claude Code session. Eureka has no Persona. Blocking questions may be pushed through any notification MCP; Eureka owns no transport and names no provider. Answers come back in the session.
-
Numeric attempt and pass.
attemptandpassare numeric, and attempts count up per cut across spec revisions. (Survives; it is a key rule, not a store rule.) -
An instance owns its mind. A store is canonical to exactly one instance. Identity lives in the state, not in a path. Admission refuses a write carrying another instance's identity, whatever the transport. Stewardship over repos is an assignment recorded in that mind, and one instance may steward several repos. Reassignment is an explicit typed hand-off recorded in both minds.
-
A service owns the state, on Yggdrasil. The memory organ is a daemon. No per-clone lease, no git-attribute precondition, no divergence between clones.
-
The organ depends on Qdrant directly, not on voidbot. It owns its own collections and indexes at admission time. Embeddings come from Ollama.
-
Huginn is the memory organ. The dormant
.cc-to-Eve CLI is retired and generic.ccinspection belongs to CultCache Studio in CultLib. -
Instance identity is declared, not signed (Q6 A). On a single-operator LAN this is attribution, not authentication. Hands does not invent a credential system; the trust boundary is the network and the host.
-
The workstation reaches the organ over WireGuard (Q7 A), because the organ speaks RUDP over UDP and the existing SSH forward carries TCP only.
-
TypedCommitStorecollapses (Q8 A). Its second profile moved to another repo, leaving a one-implementation abstraction. Cut 5 must preserve the Mind path's fail-closed order and validation before replay (finding S6). -
The organ shares voidbot's Qdrant (Q9 A), with the coupling declared as an Idunn dependency rather than left implicit.
Landed
Cut 4 landed at ca275c7b (deletion) and a9f06c2a (mutation suite).
Soul is verifying.
- Removed 1,302 lines, added 549.
pipeline_store.rsdied whole (1,251), plus 47 inpipeline_documents.rs, twolib.rslines,.gitattributes:1and.gitignore:37. Retired: one store format, one lease, two git preconditions. - Eight tests moved into
pipeline_documents.rsrather than waiting for Cut 6, so no rule sits unpinned between cuts. Tests 168, 0 warnings, and all eight mutations killed. - Orphans removed:
MissingIdentityandUnavailablelost their last raiser with the opener and lease. The three named helpers all kept live callers.
Spec corrections from this cut, which stand against the sections above:
- The local
PipelineRefusalkeeps five variants, not three.ForeignStoreis raised bydecodeandForeignEpochbyvalidate_pipeline_write_envelope, so the spec's three-variant line does not compile. Both leave with admission, as D2 already assigns them tohuginn-mind. - The deleted module held 20 tests on Windows, not 15, so the arithmetic is 180 − 20 + 8 = 168, not 165.
- Cut 6's estimate must grow. Its
epiphany-core−623 should read about −1,060, because the test module now travels with the code. schemas/cultnet/README.md:30still describes a per-repo store path. Cut 6 owns that rewrite, so Cut 4's negative grep cannot be empty yet.
Cut 4's Soul findings are closed at 43a08baa and 8a598ebb. Soul is
verifying the fix batch.
Soul found that the deletion had taken a live rule's only test with it: the
epoch guard survived a if false mutation, and no test could even construct an
identity envelope to reach it. Self ruled deletion over testing what nothing can
construct, since admission, identity and the epoch refusal belong to the organ
and D2 already assigns those refusals to huginn-mind.
- Deleted: the epoch branch,
ForeignEpoch,EpiphanyPipelineIdentity,EpiphanyPipelineProvenance,PipelineProvenance,Faculty, andPIPELINE_SCHEMA_EPOCH, whose only reader was that branch. Each was confirmed producer-free first. Cut 8 writes them in the organ, with tests that can reach them. - Pinned instead: a foreign-typed envelope is refused on decode with
ForeignStorespecifically, and the runtime spine cache refuses a pipeline store. Both die under their own mutation. - No schema consequence: identity and provenance were never published, and all ten schemas still derive byte for byte.
Further corrections to the sections above:
- Cut 4's Keeps list is wrong in two places.
PipelineProvenanceandFacultyfell under "every value type", and are gone. register_pipeline_document_typesis now#[cfg(test)], which Cut 6 must account for when it moves the module.- Test arithmetic is 170, not 168.
- The pipeline write path is test-only, and now says so.
186dbc62convertedprepareandvalidate_pipeline_write_envelopefromexpect(dead_code)waivers to#[cfg(test)], after Soul proved both dead in a non-test build.decodeand theCultCacheimports came with them: they had looked live only because dead code mentioned them.- Cut 6 arithmetic: it now relocates four
cfg(test)items plus a gated import, not two live ones. The Keeps list still holds, andvalidate_pipeline_write_envelopestill moves. - Cut 6 must refresh its Keeps citation for
validate_pipeline_write_envelope; the line range no longer matches. - Refusal picture unchanged: none of the four variants has a reachable non-test raiser. The conversion made the existing state literal rather than waiver-shaped. Cut 8 owns it.
- Cut 6 arithmetic: it now relocates four
- The mutation suite is runnable and its anchors are exact (
06100d8e). It documents the interpreter this host actually has, refuses an unsupported one up front, and asserts each anchor matches exactly once, since a replace hits every match. All ten mutations still die by their own test, including the two that mutate code inside the newly gated functions.
Cut 5 landed at 1758ad50 (collapse) and 4c091f57 (mutation suite). Soul
is verifying.
- Deleted:
TypedCommitStore,MIND_COMMIT_STORE,validate_mind_writes, the parameter and all five call-site arguments, plus one orphan import. No part of the profile shape survived. One commit owner remains, and two receipt construction sites: the owner's, and a test that plants one on purpose to pin the replay rule. - Unchanged behaviour, proven against the base: the pinned receipt digest
was checked by running the base test in a detached worktree at
cda36541, not by a value captured from the new code. - Tests 171, 0 warnings. Two profile tests retired because they tested the profile through the profile; their rules were re-expressed as three new tests.
- Five mutations, all killed, including both halves of S6: uniqueness before validation, and validation before replay.
Cut 5 corrections:
- Ruling 20's second half had no named test. The Keeps list named only validation-before-replay, so the uniqueness-ordering half of S6 was unpinned. Cut 5 added a test for it rather than leaving half the invariant on trust.
- The Deletes table's line anchors were stale by 26 lines, written against
5fb4eb22. Matching was done by content. Later cuts should re-anchor before trusting a line number in this map. - The subtraction estimate was −46/+8; the actual is +172/−122. The owner-side collapse matched; the overshoot is the test rewrite the ledger never priced, because the Keeps list demanded three rules stay pinned while the tests that pinned them died with the abstraction. Carrying cost still falls: one struct, one const, one fn, one parameter and five arguments gone.
Soul's Cut 5 pass confirmed the collapse changed no Mind behaviour: it read
the full owner diff, including the places the pinned digest is blind to
(committed_at, companions, conflict re-read, replay lookup), and found nothing
reordered or re-worded. Both renamed tests assert what their names claim, and
byte-identity on refusal is now asserted in three places rather than base's two.
It found four gaps, which a Hands batch is closing:
- S7 (medium, a regression from base). Re-deriving the backing store at the CAS from the same path survives the suite. The replacement test only asserts "one file in this directory", which a re-derivation satisfies; the retired profile test had caught it by putting the store somewhere else. It matters beyond style, because the planned redb store permits one writable handle per path.
- S8 (low-medium, pre-existing). Validating only the first write of a batch survives, because no test commits a batch of two distinct writes.
- S9 (low). The claim of exactly one receipt construction site is false: there are two, the owner's and the planted receipt that makes the replay test work.
- S10 (cosmetic). Profile vocabulary survives in a renamed test's fixture data.
Cut 5's findings are closed at 617c397d. Tests 172, 0 warnings; seven
mutations, every one killed by its own test.
- S7: a
RuntimeSpineBackingStorecarries only its path, so a same-path re-derivation is invisible to any assertion about files, contents or receipts. The test now counts resolutions through a#[cfg(test)]log and requires exactly one per commit, with a comment saying why the file assertions below it cannot see this. MS1 dies withleft: 2, right: 1. - S8: a new test commits two writes with distinct identities, the second refused, and requires the store byte-identical, so the valid first write lands nowhere. MS2 dies. M2's rule string was corrected: it pins that the batch is validated at all, and MS2 owns "every write".
- S9: corrected above. Two construction sites, one deliberate.
- S10: fixture data renamed; the pinned digest does not depend on it.
Soul's second pass corrected Self's record. Self had written that a mutation reported a verdict it never earned. The committed script already threw on a missing anchor, the affected mutation existed only in a working copy, and every committed verdict was real. The Eureka changelog carries the correction.
Cut 6 landed at 7ab838f1 (extract), d17cc441 (docs) and 08c1c9d9
(mutation suite). The last cut inside Epiphany.
epiphany-pipelineexists. Four direct dependencies, 36 transitive againstepiphany-core's 93, and zero new packages in the workspace lock — the lock gains exactly one entry, the member itself.cargo treeover normal, dev and build finds no path back toepiphany-core. The leaf is a leaf.epiphany-corenet −1,034, and lost a dependency:schemarsleft with the code, the module having been its only user in the package.- Tests 12 and 163, both 0 warnings, the arithmetic exactly 172 − 9 moved. Twelve mutations, all killed.
- The move is verbatim in the library code, confirmed by Soul reading the full base-to-head diff.
Cut 6 corrections:
- Cut 4's Keeps list said
schemarsstays. It did not. The pipeline documents were its only user, so it left with them. The Q5 reason to keep it now lives inepiphany-pipeline. - The add-side estimate was never raised. Correction 3 raised the removal figure to −1,060 when the test module joined the move, and left the addition figure on its pre-Cut-4 623-line base: spec +700, actual +1,292. The two numbers always move together. Second ledger drift after a correction this campaign; the first was Cut 5's correction 12.
rg -n "pipeline" epiphany-core/srccannot be empty, and should not be. Sixteen hits remain, all inside one#[cfg(test)]spine test that Cut 4's fix batch put there deliberately. The intent holds —epiphany-corehas no pipeline surface — so the negative grep is the narrower one over the type names. Hands refused to weaken the test to satisfy a grep, and Soul confirmed that was the right call.- Ten schemas changed, not three added. The five that embed
PipelineKindgained three variants. Ruling 8's amendment settles that as additive. epiphany-state.exe"byte-identical" is withdrawn as false, not merely unverified. It is 94,720 bytes smaller at head, which is what taking ~1,000 lines of schemars-derived types and theschemarsdependency out ofepiphany-coreshould do. No receipt for the original claim exists anywhere. Soul also showed the same source hashes three ways from three different roots, so the honest replacement is no hash claim at all: that artifact's hash is not a comparison this branch can make.7ab838f1's message says three things changed in the move; the diff carries five. The two omissions are test fixture path literals, mechanical and harmless. Self's first relay of this was wrong in its other half: theremove_dir_allline was introduced by08c1c9d9, whose message devotes a paragraph to it.
Cut 6's Soul findings are closed at eb55efe9, b6f6e802, 80db5db6 and
3ee78e05. Tests 13, 0 warnings; the suite is now M1-M15 and every one is
killed by its own test, including both of Soul's survivors.
- S1, the escape was not injective.
GameCult_Epiphany/thingandGameCult/Epiphany_thingboth keyed toGameCult_Epiphany_thing; an instance stewarding both would silently have lost one document. The test above it claimed the property in a comment and checked one half of the pair. Both special bytes are now escaped to two-byte codes starting with_, which is reversible and therefore injective, and the test keys both halves. - S2, the instance key segment was unpinned. The validation call was in the source; nothing would have noticed its removal. Soul's survivor is now M14.
- S3,
pipeline_keymadeInstancea root andpipeline_iddid not, so an instance could be written but never referenced and no resolution could take one as its subject. The key writer had been extended for the new kind and the id reader left behind. - S6, the derivation test's temp directory is per-run, named by pid and
nanos. The best-effort clear and its
.ok()are gone rather than hardened: with no directory shared between runs there is nothing to defend. The mutation suite had been leaving mutated schemas in the shared one. - Recorded, not fixed: S5, the
ForeignDocumenttype-id literal can drift fromepiphany-core's real one and nothing connects them; the strong fix is a dev-dependency that crosses this cut's deletion line. Cut 8 owns it. - Informational for Cut 8: the leaf pulls
redbandfs2throughcultcache-rs, so Huginn gets an embedded database in its graph from this leaf whatever else it chooses.
The test shape was the common cause. S2 and S3 were both invisible because
the three new kinds' tests asserted key strings and never parsed them back.
keys_read_back_as_ids_of_their_kind is the pin that would have caught both,
and it is now in the Keeps list for every kind added after this.
Cut 6's second fix batch landed at 9b68d83c (one composer,
KeyParts::key, for every non-root, non-resolution key, with . escaped to
_d), 4cccb45c (a resolution reads back by the key it has; declared_kind
added) and 4a654351 (the per-run schema directory's cost stated). It closed
Soul's second-pass findings:
- F-A, the composed hand-off key was still not injective. S1's fix made the
repo segment injective and left the composition open: a dotted
to_instanceand a dotted date could trade bytes across the.separator. Fixed at the composer, not the segment. - F-B, a resolution was unreferenceable. Soul's mutation adding
| PipelineKind::Resolutionto the root case survived, because nothing read a resolution's key back. Fixed with a Resolution arm inpipeline_id.
Soul's third pass, on that batch, found the same invariant open again, one
level higher, and Self stopped the patch sequence. Three consecutive fixes had
each made one composition site injective (segment, then composed local, then
root namespace) and left the site above it ambiguous. Per doctrine, escalating
guards mean the ownership is wrong. The three CONFIRMED High findings, all
epiphany-pipeline/src/lib.rs at 4a654351, became Cut 6b:
- Campaign and instance share one root namespace (
:693-700,:553-556). Campaignyggdrasiland instanceyggdrasilkey identically. Soul measured 254 documents keying to 234 distinct keys, 20 colliding, 10 from this pair. - A resolution's key discards its subject's root kind (
:703-707with:529-538).declared_kindhardcodesCampaignfor a bare slug; a mutation flipping it toInstancesurvived because the information was already gone. - A resolution of a resolution composes
resolution:resolution:…(:564-568), whichpipeline_idreads back asInvalidFormat. The comment beside it names the path as live.
Three medium survivors go into the same cut: the composed local's total length
check is unpinned (a hand-off local reaches about 140 bytes against a
documented 64); the root check inside the composer is unpinned (pipeline_key
is pub and a colon in a root yields four segments); and "a kind's tail arity
is fixed by the arm" is enforced by a doc comment, not the type.
Cut 6 corrections, continued:
<Org_Repo>escapes three bytes, not two. The Keys paragraph below said_and/;9b68d83cadded.→_dso that an escaped repo can sit inside a.-separated local without trading bytes with its neighbours. Cut 6b generalises the escape to every slug entering a local and the paragraph is superseded there.- The key table never stated the resolution key.
resolution:<subject id>was the shape since Cut 3a and appeared in no table. Pre-existing; Cut 6b's grammar table is the first complete one. rg -n "std::process" epiphany-pipeline/srcis not empty, and should not be: the per-run temp directory from S6 readsstd::process::id()under#[cfg(test)]. The intent (no process is spawned, no socket is opened) holds; the grep is narrowed toCommand|UdpSocket|BackingStore. Second negative grep this campaign to drift from its intent; the first was correction 15.- The shared cargo target directory was left at 8,642 paths against an
8,284 baseline, and that is ruled acceptable for this pass. The growth is
one debug profile of this package's dependency tree, with no new package,
target, profile or platform, and deleting it would evict a cache the next
build re-creates. This is a judgment per pass, not a loosening of the rule:
the path list is still recorded and compared every time. (
find | wc -lcounts the root directory and PowerShell'sGet-ChildItem -Recursedoes not, so 8,642 and 8,641 are the same count.) - Cut 5's Soul addendum carries a second "byte-identical" claim about
epiphany-state.exe. Its other half is stronger than claimed and stands: the negative greps are empty across the whole tree including untracked and ignored files. But the binary claim has the shape correction 17 withdrew, and that artifact's hash is build-root dependent. Marked suspect, not evidence; no hash replaces it. schemas/cultnet/README.md:5promises the folder helps "foreign consumers inspect the wire shape", and:40-44now says a widened enum is additive because "these readers are ours". Both sentences are true today and they will contradict each other the day Eureka has an outside reader. Recorded, not resolved: it needs a real answer if a foreign consumer appears, and the answer is a versioning policy, not a README edit.
Mutation harness audit (Eyes, 2026-09-16). Soul's third pass ran a no-op
control mutation and it "killed" bounds_refuse_in_utf8_bytes: the harness's
text round-trip had collapsed the test's é literal to one byte, so every
mutation through that path would have reported a kill whatever it changed.
Soul caught it only because it ran the control. Eyes then audited every suite
in this repo and in Ghostlight:
- No committed suite has the defect.
tools/eureka-cut4-mutations.ps1(ata9f06c2a),cut5andcut6all use[IO.File]::ReadAllText/WriteAllText, measured byte-identical on every live target. The corrupting harness was Soul's own inline one and is not on disk anywhere; its text is unrecoverable. That is the shape finding S9 under History already names as Standing: a mutation with no artifact on disk is unverifiable. - Cut 1's M1-M3 are suspect for a different reason. The ad-hoc
eureka-c1-mutate.ps1joined lines with\n, rewriting two CRLF files to LF for the whole file while mutated;core.autocrlf=truehid the rewrite fromgit diff. Whether that changed a verdict is unknown and was not re-run. Cuts 3a, 4, 5, 6, the Cut 2 fix pass and all Ghostlight verdicts are not suspect. - No suite in either repo has a no-op control, and the committed suites
structurally forbid one: each throws when a replacement changes nothing
(
cut4:86,cut5:216,cut6:237). Ghostlight has never had a scripted harness; its mutations are hand edits restored bygit checkout. - The measured rule is encoding symmetry and end-of-line preservation, not
-Encoding utf8by itself: mixed-encoding round-trips corrupt theé, and any non--RawGet-Contentcorrupts line endings regardless of encoding.
Cut 6b's suite is the first with a control (M0) and the rule is now in the Eureka skill.
Cut 6b landed at 602ffd9f (the three key-shape exceptions deleted;
does not build, by design), 1bddd2ac (one grammar for every kind; 20 tests,
0 warnings) and 95ee551a (tools/eureka-cut6b-mutations.ps1, the first
suite with a no-op control). Source outside tests 774 → 726, tests 734 → 881,
no schema, dependency, kind, field or epoch moved. Hands' spec discrepancies,
all kept: local takes &[&str] rather than a fixed array because the
Resolution and Finding arms carry a parent's parts; the whole-local bound
refuses InvalidFormat to match the reader; key_segment is a pure escape
and each caller validates its own field first; two "unchanged" tests carried
literal keys that moved; and {CAMPAIGN}:resolution:R8 is now asserted
accepted with the Q11 rationale in its doc comment, so a future runtime
guard is visible.
Soul's first pass on the grammar (Fable, script
soul-cut6b-mutations.ps1 in the session scratchpad, M0 green twice) built a
whole-key injectivity probe: 212,450 distinct keys across all thirteen kinds
with adversarial slugs, repos, labels and dates and resolutions nested to
depth four, zero collisions, every key three segments, every key reading
back to its own kind and identity, 157,010 resolution keys recovering exactly
their subject. self collides with nothing as a slug, a label or a campaign.
Hands' M1-M6 all killed on rerun; Soul's own S1, S6, S7, S8, S9 killed; S3
(splitn(3, ':')) survived as an equivalent mutant because label_text
refuses a colon in the third segment anyway. Three survived for real:
- F2 (medium): the escape's
_→__half is pinned only through anOrgRepo. A mutant escaping only.when the value has no/survives, and hand-offs toa_dband toa.bthen share a key. That is the pass-2 collision class, one edit from reopening. - F3 (medium-low): the composer's root check is pinned for one byte. Under
trim_end_matches('.'), campaign slugeureka-state.composes a key the reader refuses, and the write validator recomputes and compares without reading back, so a document is admitted under an id noPipelineRefcan name. - F4 (medium-low): the 64-byte boundary is unpinned on both sides.
Fixtures sit at 55 and 66+, so a
> 65mutant survives and the writer admits a 65-byte local the reader refuses. The code is right; the pin was missing.
And four findings that are not code defects: F1, the "depth at most five"
claim is false (corrected above); F5, a dotted finding label now refuses as
finding.key rather than finding.label, consistent with every other kind
and accepted as the behaviour; F6, the authority map overstated the escape
rule for Date (corrected above); F7, Hands' "twelve fixed call sites" is
eleven literal slices plus two computed vectors, the Finding one fixed in
practice by parent_cut pinning the verdict local to two parts. F8,
pre-existing and informational: a cut-report key drops the spec revision
(a standing ruling) and a verdict key drops the report attempt (implied, not
stated). pipeline_id accepting c:campaign:notself and the like is grammar
versus reachability, admission's job, as the spec says.
The stale Cut 6 script entries M5 and M12-M15 match zero anchors at HEAD and the script throws at its line 234 rather than reporting a kill. Loud, as the rule requires. Target dir: Hands' growth to 9,279 was one debug profile; Soul left 8,991 because cargo rotated out one of Hands' incremental sessions, which cannot be recreated and is not a deletion.
The first fix batch landed at 4b85dd2d (F1-F4 pinned; Soul's S2, S4 and
S5 now die; the depth test computes its expectation from the formula) and
d03a32df (one harness, tools/eureka-mutations.ps1, with per-cut entries
files eureka-cut5-, -cut6-, -cut6b-mutations.psd1; the three old scripts
deleted; tools/ net −24 lines). The harness runs each entry with
--exact <test> and reports TEST NOT RUN for a name that runs nothing,
where the old scripts would have said SURVIVED. Cut 6's stale entries M5 and
M12-M15 were deleted with notes, on Self's instruction, which was a mistake;
see F3 below.
Soul's second pass (Fable; scripts soul-cut6b-fix-*.ps1 in the session
scratchpad) attacked the harness directly and reran every entry with the
whole suite: no verdict was borrowed from a collateral kill. Held: S2/S4/S5
die, the four pins are as promised, all three suites report the same verdicts
through the new harness, refusal value is the failing part and asserting
field alone cannot hide a wrong-reason refusal. Found:
- F1 (medium): the control could damage what it protects. M0 wrote the target before comparing, having read it as text, so on a broken harness or a BOM-bearing target it reported "harness broken" and left the file changed with no restore source but the checkout the rules forbid.
- F2 (low): "exactly once" counted non-overlapping matches, so a
self-overlapping anchor like
}\n}\nin a run of three braces passed as one. - F3 (low-medium): the deletion notes for Cut 6's M12/M13 named the wrong
pinning entry.
key_segmentstill exists and nothing in the committed suite removes its escape or breaks its injectivity; the tests do pin the rule (Soul's N7/N8 die), the suite claimed coverage it lacked. Self's brief ordered "delete, do not re-anchor"; the coherent fix was to re-anchor. - F4 (medium): dotted roots were unpinned on writer and reader. No test
used a campaign or instance slug with a dot, so
label_texton the root in eitherpipeline_keyorpipeline_idsurvived the whole suite. - F5 (low): the reader's kind check was unpinned for root kinds. A mutant
excusing
Instancefrom the kind-segment comparison survived: exactly the "reader excuses a root" shape Cut 6b existed to kill. - F6 (low): the depth test restated the literal 64 rather than referencing the bound, so moving both to 60 passed it; the bound itself is pinned by F4's fixtures.
- F7 (recorded):
-Testsplits on whitespace, so a path with spaces cannot be expressed. Not reachable on this host.
The second fix batch landed at 9370aa0f (harness: the original is read
as bytes and is the restore source on every path; M0 compares the re-encoded
bytes to the original before writing anything, then still writes through and
hashes so a broken write path is caught, restoring the original bytes before
any throw; anchor occurrences are counted overlapping; the offset reverse-edit
path is deleted; a BOM-bearing target is now tolerated rather than refused)
and f00062db (dotted_roots_key_and_read_back;
keys_read_back_as_ids_of_their_kind extended by three root-kind asserts, its
first change since Cut 6; const LOCAL_MAX: usize = 64 shared by local and
the depth test; entries N3, N6, N7, N8, N9, N10 in the 6b file, M4 and S5
re-anchored on the constant; the Cut 6 notes corrected to M5→N3+M6, M12→N7,
M13→N8, M15→N6+M1). Tests 21, 0 warnings. Soul's attack script rerun against
the fixed harness: every variant leaves every target byte-identical and runs
no entry.
Soul's third pass (Fable; soul-cut6b-fix2-* in the session scratchpad)
reran all three suites through the committed harness (every entry killed, M0
green on every target, 0 warnings unmutated) and closed the grammar
pins: the dotted-roots test asserts exact tuples, the root-kind asserts are
appended to the read-back test with nothing weakened, a BOM-bearing target
round-trips byte-identically and rustc accepts a leading BOM, and its own
non-revert mutations died or were equivalent (swapped escape codes remain
injective; chars().count() equals len() for ASCII parts). What survived
is the harness under failure, not the grammar:
- The multi-target write loop sits outside the
trywhosefinallyrestores, so a write that throws on the second target leaves the first mutated with no message. Low for today's single-target entries, medium against the harness's stated contract. - M0's write-through has no
finally: a write that dies after truncation leaves a truncated target, and only the hash-mismatch branch restores. - A killed process runs no
finally, and the harness has no timeout of its own, so a tool-enforced timeout is exactly the path that leaves the tree mutated. The next M0 would catch it without saying why. - The reader accepts a trailing dot on the root and on the local
(
pipeline_id,:556-557); only the writer refuses, so aPipelineRefwith trailing junk passes the reader against its own doc comment. One fixture closes it. LOCAL_MAXnames the writer's bound; the reader's isdotted_text's literal 64, which is also theSlugbound. Redundant, not split: the writer refuses first. A comment at:651still says "the 64-byte bound".- Hands' line counts were +6/−1 and +73/−6, not +5/−1 and +68/−6.
The third fix batch is in Hands (writes inside the finally, a
sidecar holding the original bytes so a killed run is repaired at the next
start, a harness-owned command timeout, the trailing-dot fixture with X1 and
X11 as entries, the stale comment), followed in the same tree by Cut 6c.
Probes and source reads this pass
No cargo build ran this pass. Every new mechanism claim below was settled by a source read; the one build-dependent claim (rmcp as a stdio server) was settled by P4 in the first pass and is unchanged. No build outputs were created, so none were deleted. Claims are marked (source read) or (probe).
| # | Claim | Evidence |
|---|---|---|
| R1 | No Rust Qdrant client exists anywhere under F:\Projects. |
(source read) grep -rn qdrant --include=Cargo.toml --include=Cargo.lock --include=*.rs over F:\Projects returns nothing in any live tree. |
| R2 | Epiphany had one, and deleted it. 856648de "Delete unused semantic projection subsystem" removed semantic_backend.rs (1,018 lines), "Typed boundary around the Qdrant and Ollama HTTP APIs", plus 8,800 more lines of projector. |
(source read) git show 856648de --stat; git show 856648de^:epiphany-core/src/semantic_backend.rs. |
| R3 | That client was plain reqwest::blocking against Qdrant's REST API, not a Qdrant crate: PUT/GET/DELETE {base}/collections/{name}, PUT {base}/collections/{name}/points, POST .../points/query, .../points/scroll, .../points/delete. Embeddings were POST {base}/api/embed returning .embeddings. |
(source read) 856648de^:.../semantic_backend.rs:116,130,157,207,244,262,287,318,351,397,535,560; deps at 856648de^:epiphany-core/Cargo.toml:37 (reqwest = { version = "0.12", features = ["blocking","json"] }). |
| R4 | Epiphany has no CultNet server for documents. Its live cultnet_rs:: usage is service identity and trust anchors only. Its only UDP binds are the Persona Discord permit issuer, the Persona delivery client and Atlas publication. |
(source read) grep cultnet_rs:: over epiphany-core/src yields only ServiceIdentitySigner, GameCultServiceTrustAnchorRecord, open/enroll_service_identity_at, derive_service_identity_id. UdpSocket::bind appears only at atlas/transport.rs:245, bin/epiphany-persona-discord-permit.rs:38, persona_discord_crossing.rs:322. |
| R5 | The permit issuer is a hand-rolled request/response loop, not a reusable document server: serve_persona_discord_permit_rudp loops transport.receive_once(), matches one DocumentPutRaw, and replies with another. |
(source read) persona_discord_permit.rs:330-400. |
| R6 | Odin is the real harness to copy. odin-daemon runs CultMeshRudpDocumentServer::new(socket, SinkHandle, SnapshotHandle, CultMeshSystemClock, options) and a poll_once loop, with Idunn activation, a process write lease, signal handling and presence-health publication. |
(source read) Odin/crates/odin-daemon/src/main.rs:14-40,542-560,600-700. |
| R7 | CultMesh's document server is port-shaped and mockable. CultMeshRudpRawDocumentSink::accept_raw_document(receipt) and CultMeshRudpSnapshotSource::raw_snapshot(&query) are traits with blanket impls for closures; the clock is a trait. |
(source read) CultLib/packages/cultmesh-rs/src/rudp_document_server.rs:51-95. |
| R8 | A lean CultNet daemon needs six dependencies. odin-daemon is signal-hook, anyhow, chrono, cultcache-rs, cultmesh-rs, cultnet-rs, fs2, rmp-serde, serde, and Odin's whole lock file is 156 packages. Epiphany's is 295. |
(source read) Odin/crates/odin-daemon/Cargo.toml; grep -c '^\[\[package\]\]' Cargo.lock in both repos. |
| R9 | epiphany-core is 40,941 lines across 37 modules with 39 mod declarations, and pulls Ghostlight, ed25519-dalek, ignore, semver, cultmesh-rs, cultnet-rs and windows-sys. |
(source read) wc -l epiphany-core/src/*.rs; epiphany-core/Cargo.toml. |
| R10 | Epiphany's commit owner and its profile are crate-private, so no external crate can reuse admission as it stands. | (source read) reasoning_context.rs:1590 pub(crate) struct TypedCommitStore, :1606 pub(crate) const MIND_COMMIT_STORE, :1613 pub(crate) fn commit_authorized_mind_mutation. |
| R11 | RedbMessagePackBackingStore stores one redb row per (type, key), transactionally, and creates parent directories. redb permits one writable handle per path, and the CultCache lock owns the open/transaction/close interval. |
(source read) cultcache-rs/src/lib.rs:960-1013, :979-982. |
| R12 | Nothing consumes @gamecult/huginn. The only package.json naming it is Huginn's own. Eve's Huginn entry points at a checked-in fixture file, not the package. |
(source read) Grep over every package.json under F:\Projects; Eve/web/local-provider-catalog.json:72-83 gives "url": "./fixtures/huginn-cc-surface.eve". |
| R13 | Eve's Huginn fixture is static and already stale. It describes E:\Projects\CultCacheTS\.voidbot\state\huginn.cc and declares "freshness": {"state": "fixture"}, "splitTarget": "Huginn". |
(source read) Eve/web/fixtures/huginn-cc-surface.eve:16; huginn-cc-surface.conformance.json. |
| R14 | CultCache Studio exists as a Unity editor surface in CultLib. | (source read) CultLib/src/GameCult.Unity/Assets/Caching/Editor/CultCacheStudioWindow.cs, CultCacheStudioDrawers.cs. |
| R15 | Qdrant on Yggdrasil is voidbot's container, qdrant/qdrant:v1.17.1, host network, bound 127.0.0.1, storage /srv/voidbot/qdrant, started by voidbot-retrieval.service. |
(source read) gamecult-ops/compose/voidbot-retrieval.yggdrasil.yaml; systemd/voidbot-retrieval.service. |
| R16 | Two Ollama endpoints exist, and the Yggdrasil precedent is the local one. epiphany.service embeds against http://10.77.0.1:11435 with qwen3-embedding:0.6b; voidbot's indexer uses Nightwing 10.77.0.3:11434 with the same model. |
(source read) gamecult-ops/systemd/epiphany.service:14-15; runbooks/yggdrasil-replacement-2026-07.md:184,193; runbooks/voidbot-retrieval-recovery-yggdrasil.md:42-62. |
| R17 | Idunn v2 is recipe-plus-binding. A repo publishes deployment/idunn/recipe.toml (gamecult.idunn.target_declaration.v1: steps, artifacts, [service], [state.slots], [[provides]], [[dependencies]]); Yggdrasil admits a paired gamecult.idunn.operator_binding.v2 naming runners, workload roots, route, brakes, rollout and placement. |
(source read) Odin/deployment/idunn/recipe.toml; Ghostlight/deployment/idunn/recipe.toml:168-187; gamecult-ops/idunn/yggdrasil/bindings/odin.toml.in, bindings/README.md. |
| R18 | Idunn brakes are typed and already separated. idunn.deployment_brake.v1 (scope deployment) and idunn.lifecycle_brake.v1 (scope continuity-restart) are distinct records with distinct authorities. |
(source read) cultnet-rs/src/idunn_deployment_brake.rs:9-15; idunn_lifecycle_brake.rs:4-7. |
| R19 | The authority backup is an explicit path list, daily at 03:20 UTC. It tars a fixed set including var/lib/gamecult/epiphany and srv/voidbot/state; a path not listed is not backed up. |
(source read) gamecult-ops/scripts/backup-gamecult-authority-yggdrasil.sh:80-105; systemd/gamecult-authority-backup.timer. |
| R20 | The workstation reaches Yggdrasil by a supervised SSH tunnel with a fixed forward table, scheduled task GameCult-Yggdrasil-Tunnel. It already forwards 17875 (voidbot MCP) and 16333/16334 (Qdrant). |
(source read) gamecult-ops/scripts/start-yggdrasil-tunnel.ps1:13-26; runbooks/yggdrasil-ssh-tunnel.md:86-88. |
| R21 | Allocated 178xx RUDP/service ports are 17870 Idunn health, 17871 Odin rendezvous, 17873 VoidBot swarm publisher, 17874 Hermodr, 17875 voidbot MCP, 17876 Epiphany permit listener, 17877 Starfire permit requester, 17878 dings. 17872 and 17879 are unallocated. |
(source read) gamecult-ops/inventory.md:247,455,502,537; runbooks/yggdrasil-replacement-2026-07.md:315-321; idunn/yggdrasil/bindings/*.in. |
Carried forward from the first pass and still load-bearing:
- P4 (probe). rmcp 2.2.0 with
features = ["server","macros","transport-io"]serves stdio JSON-RPC, handshakes at2025-06-18, emits bothinputSchemaandoutputSchemafrom schemars, returnsstructuredContent, mapsErrorData::invalid_paramsto-32602, and spawns nothing. - P7 (probe). cultcache-ts
inspectCultCacheBytesdecodes a Rust-writtencultcache.store.v1record; Rust writes an empty member catalog, so the TS decode is generic.
Superseded probes: P5, P6, P8, P9, P10 and P11 all measured git layout, store locking at session scope, or git attribute classification. They were evidence for a repo-committed store and no longer bear on any live design. P1-P3 were Cut 1 and landed.
D1. Package boundaries and where admission lives
This is the decision the brief asks for, so it is stated first.
Ruling 1 says Epiphany owns the schemas. The target's End state assigns admission, queries and the index to the organ ("The organ (Huginn). One service owns every mind it hosts: admission, with per-document rules and typed refusals; ... queries ...; semantic search ...; a typed hand-off"). Those are consistent, and together they settle the split:
- Epiphany owns the document types, their keys, their bounds and the published JSON schemas.
- Huginn owns admission rules, receipts, storage, queries, the index, the hand-off and the CultNet surface.
Admission does not live in epiphany-core, and Huginn does not depend on it.
Three source-grounded reasons:
- It cannot. The commit owner, its profile and the wrappers are all
pub(crate)(R10). Exposing them would publish Epiphany's Mind commit machinery as a public API to make an unrelated service compile. - The weight is absurd. Huginn would compile 40,941 lines and 295 lock
packages, including Ghostlight and
ed25519-dalek, to use about 2,000 lines of it (R9). Odin's comparable daemon costs 156 packages total (R8). This is exactly the build fan-out AGENTS.md's Source And Build Economy forbids. - The rules are not the same rules. Epiphany's admission is bound to a scheduler: launch requests, sealed reasoning bases, decision contexts. Pipeline admission is bound to an instance and a campaign. Sharing the function would mean sharing none of the interesting part.
So a third package owns the shared half. New leaf library
epiphany-pipeline, in the Epiphany repo, workspace member, autobins = false:
| Owner | The ten document kinds plus the three new ones, their value types, bound aliases, format rules, key derivation, and the derived JSON schemas. |
| Dependencies | cultcache-rs, schemars, serde, rmp-serde, chrono, anyhow. Nothing else. |
| Consumers | Huginn's huginn-mind (admission) and eureka-state (typed tool schemas), both by git rev. Epiphany itself does not consume it in this campaign; that is campaign two. |
| Why a new crate | A live cross-repo consumer needs these types without Epiphany's 295-package graph. F:\Projects\CLAUDE.md says authority separation alone does not justify a crate; this is not authority separation, it is a named external consumer and a hard dependency boundary. |
| Why in the Epiphany repo | Ruling 1. The schema publication path, schemas/cultnet/index.json and the derivation test stay where they are. |
epiphany-core keeps the schema-derivation test's outputs — the committed
schemas/cultnet/epiphany.pipeline.*.v1.schema.json files are Epiphany's
publication artifact — but the test that derives and compares them moves into
epiphany-pipeline, reading ../schemas/cultnet the way it already does
(pipeline_store.rs:1173).
Huginn's package boundary, applying AGENTS.md's one-package-per-production- entrypoint rule. Two entrypoints, so two binary-owning packages plus one library:
| Package | Kind | Owns |
|---|---|---|
huginn-mind |
library | Mind storage, admission rules, receipts, queries, derivations, the index port and the embedding port. No process, no socket. |
huginn-daemon |
binary huginn-daemon |
The CultNet surface, the Idunn lifecycle, Qdrant and Ollama adapters, the serve loop. |
eureka-state |
binary eureka-state |
The stdio MCP client. |
The daemon test (F:\Projects\CLAUDE.md). huginn-daemon earns its process:
it outlives every Claude Code session, owns an independent resource dependency
(Qdrant, a redb store), and isolates a dead session from a corrupted mind. That
is lifecycle, resource and failure isolation, and it protects the named
invariant "exactly one writer per mind". eureka-state earns a separate
entrypoint but is not a daemon: it is a per-session stdio child with a
different dependency set (rmcp, tokio) and a different lifecycle. huginn-mind
earns no process at all.
Why eureka-state lives in Huginn, not Epiphany. The client and the server
share the request and response document types. Putting the client in Epiphany
would make the wire contract have two owners in two repos. It also keeps rmcp
and tokio out of Epiphany's release bundle, which was the original Cut 4's
reason for a separate package anyway (construction.rs:82-98 lists the nine
packaged binaries; none changes).
D2. Documents
Unchanged from the landed Cut 3a except as noted: the value-wrapper pattern, the
value_types! single field list, the bound aliases (Short 200, Line 1,000,
Para 4,000 UTF-8 bytes), the format types (Label, Slug, OrgRepo, Sha,
FullSha, Sha256Hex, Date), key derivation, and the ten kinds all survive
verbatim. The epoch stays epiphany.pipeline.epoch.v1. Adding the three kinds
widens the PipelineKind enum in the five schemas that embed it, which ruling
8's 2026-09-16 amendment settles as additive.
Deleted from the set: PipelineWriterHolder and its wrapper
EpiphanyPipelineWriterHolder (pipeline_documents.rs:334-349,492-497). They
were the display record of the per-clone lease.
Added: three kinds, each with a live consumer.
| Kind | Type id | Value fields | Live consumer |
|---|---|---|---|
instance |
epiphany.pipeline.instance.v1 |
instance: Slug, display_name: Short, created_at: Date, host: Short |
The mind's identity document. Admission's identity check (ruling 14); whoami in eureka-state; the hand-off's from/to. |
stewardship |
epiphany.pipeline.stewardship.v1 |
instance: Slug, repo: OrgRepo, assigned_on: Date, note: Line |
Ruling 14's "stewardship is an assignment". Query "which repos does this instance steward"; the Rehydrate brief; admission's campaign-repo check. |
hand_off |
epiphany.pipeline.hand_off.v1 |
from_instance: Slug, to_instance: Slug, repo: OrgRepo, documents: Vec<Short>[256], reason: Para, handed_on: Date |
Ruling 14's "reassignment is an explicit typed hand-off recorded in both minds". Cut 12's import path. |
Keys. Superseded by Cut 6b's grammar (correction 19, 20). Kept as the shape Cut 6 landed; the live table is in Cut 6b.
| Kind | Key as landed by Cut 6 | Key after Cut 6b |
|---|---|---|
instance |
<instance slug> |
<instance>:instance:self |
stewardship |
<instance>:stewardship:<Org_Repo> |
unchanged |
hand_off |
<from>:hand_off:<to>.<repo>.<date> |
<from>:hand_off:<to escaped>.<repo>.<date> |
| campaign | <slug> |
<campaign>:campaign:self |
| resolution | resolution:<subject id> (never stated here before) |
<subject root>:resolution:<subject kind>.<subject local> |
| everything else | <campaign>:<kind>:<local> |
unchanged |
<Org_Repo> is the OrgRepo with _, / and . escaped: _ → __,
/ → _-, . → _d (the third added at 9b68d83c, correction 19). / is
not a Label byte, . is the local separator, and the key must segment
unambiguously. Every other byte passes through and is never _, so a reader
going left to right takes each _ with the byte after it and never has a
choice: the encoding is reversible, therefore injective. Admission recomputes
it and refuses a mismatch with the existing InvalidIdentity.
Corrected 2026-09-16, after Soul. This read "/ replaced by _", which is
not injective: GameCult_Epiphany/thing and GameCult/Epiphany_thing are both
well-formed OrgRepo and both keyed to GameCult_Epiphany_thing. An instance
stewarding both would have silently lost one document. The doubling trick alone
(_→__, /→_) does not fix it either — a_/b and a/_b both give
a___b. Sample keys move accordingly: …:stewardship:GameCult_-Epiphany.
Resolution matrix additions. stewardship resolves by
Superseded{by: stewardship} or Withdrawn. instance and hand_off are not
resolvable. Everything else is unchanged.
PipelineRefusal splits. The landed enum (pipeline_store.rs:41-55) mixes
document refusals with store, git and lease refusals. It becomes two:
epiphany-pipelinekeeps the document half:FieldBound,InvalidFormat,InvalidIdentity.huginn-mindowns the service half:MissingIdentity,ForeignEpoch,ForeignStore, plus every admission-rule refusal (MissingReference,WrongReferenceKind,IdentityCollision,AlreadyResolved,IncompatibleResolution,CitesResolvedDocument,RevisionWithoutSupersession,InvalidOptions,InvalidChoice,RepoNotInCampaign,DuplicateLabel,CutReportWithoutSpec,RangeOutsideCommits,FalsifiedClaimWithoutConfirmedFinding,UnprovenClaimWithConfirmedFinding,FindingWithoutRange,FindingWithoutEvidence,UnknownInvariant), plusForeignInstance { declared, mind }(ruling 14) andUnavailable.
Deleted refusals: NotRepoRoot, NoMainWorkTree, StoreNotMarkedBinary,
LockNotIgnored, WrongBranch, WriterLeaseHeld. Every one of them is a
statement about a repo-resident store.
D3. The organ's storage and admission
One mind per instance, one redb store per mind.
<state_root>/minds/<instance>/mind.cc as a RedbMessagePackBackingStore
(R11). Redb, not the single-file store, because a mind grows without bound and
the single-file backing store rewrites the whole snapshot on every write; that
is the monolithic-store footgun ~/.claude/CLAUDE.md names under
Infrastructure. Odin uses the single-file store, but its topology store is small
and bounded.
Identity. The first write to a mind carries both the
EpiphanyPipelineIdentity (epoch) and the instance document, in one batch.
The opener refuses records-without-identity (MissingIdentity), a foreign epoch
(ForeignEpoch) and any unregistered type (ForeignStore), exactly as the
landed pipeline_cache does (pipeline_store.rs:87-120) — that logic moves
almost verbatim; only its backing store changes.
Admission. One public entry:
admit(&mut Mind, PipelineAdmissionBatch) -> PipelineAdmissionOutcome
with PipelineAdmissionBatch { instance, provenance, documents (1..64) } and the
outcome one of Committed { receipt_id, committed_at, writes },
AlreadyAdmitted { receipt_id }, Refused(PipelineRefusal) or
Conflict { identities }.
Steps, in order:
- Identity check (ruling 14).
batch.instancemust equal the mind'sinstancedocument, orForeignInstance. This is the check that replaces the whole lease. - Validate bounds and formats.
- Recompute keys.
- Check references against the store image plus the batch.
- Apply the per-kind rules (unchanged from the old D4, minus the campaign
origincheck, which no longer has a repo to inspect —repomust instead be one the instance stewards, givingRepoNotInCampaigna new source). - Derive writes (the
Answeredresolution for a ruling that answers a question; the pairedstewardshiprecords on ahand_off). - Commit.
Receipts stay, and Huginn owns its own commit primitive. huginn-mind
defines HuginnCommitReceipt with its own type id
huginn.mind_commit_receipt.v1, carrying the same shape that earned its keep in
Epiphany: authority, invariant owner, strong reads, writes, a content-digest
receipt id, and committed_at. It replays idempotently on an exact match and
returns typed Conflict on a lost CAS.
This is deliberately not a reuse of EpiphanyMindCommitReceipt. The landed
Cut 3a reused it with store_id = "epiphany-pipeline" because both lived in one
crate; across a repo boundary that reuse would drag the whole crate (D1).
Roughly 120 lines of receipt/replay/CAS logic are re-implemented. That is a real
duplication and it is the honest price of the service boundary — it is named
here, in the subtraction ledger, and as follow-up FU-3, rather than hidden.
Admission time lives on the receipt, never in a document, so exact replay stays byte-identical. Unchanged.
Concurrency. The organ is the only writer to any mind it hosts, and it is single-process. CAS stays as defence in depth against its own bugs and against the import path. The old session lease has no successor: there is nothing left for it to exclude.
D4. Queries
huginn-mind owns every derivation; no client re-derives status.
get(id) -> Option<PipelineDocumentView>query(&PipelineQuery) -> Vec<PipelineDocumentView>open_items(campaign) -> PipelineOpenItemsrulings_in_force(Option<campaign>) -> Vec<PipelineDocumentView>stewardship(instance) -> Vec<OrgRepo>
PipelineDocumentView is
{ id, kind, document, resolution: Option<(id, PipelineResolution)>, receipt_id, admitted_at, faculty },
its admission fields joined from the receipts naming the document.
PipelineQuery keeps its landed field set — campaign, repo, cut, kinds,
status, outcome, faculty, admitted_after/before, text_contains,
limit ≤ 200 — and gains instance and semantic: Option<{ text, top_k }>.
When semantic is set the query runs through the index (D5) and the hit ids are
resolved back through the typed store, so the store stays the truth.
Derived state, never stored, unchanged from the landed design: a document is in force when no resolution names it; open items are unresolved questions, findings and follow-ups, in-force cut specs with no report, and cut reports with no verdict.
D5. The index
Owner: huginn-daemon, through two ports defined in huginn-mind so the
library stays testable without either service:
trait EmbeddingPort { fn embed(&self, texts: &[String]) -> Result<Vec<Vec<f32>>>; }
trait IndexPort { fn upsert(&self, points: Vec<IndexPoint>) -> Result<()>;
fn search(&self, vector: Vec<f32>, top_k: u32, filter: IndexFilter) -> Result<Vec<IndexHit>>;
fn delete(&self, ids: Vec<String>) -> Result<()>; }
Adapters. QdrantIndex and OllamaEmbedding, both plain reqwest::blocking
against the REST endpoints R3 establishes, ported in shape from the deleted
semantic_backend.rs. That module is the precedent: it confined JSON to one
xenos-facing boundary and treated Qdrant as "a rebuildable projection rather
than canonical authority", which is exactly this design's relationship to it.
Collections. huginn_pipeline_documents, one point per document, vector
size 1,024 (qwen3-embedding:0.6b, R16). Payload { instance, campaign, repo, kind, doc_id, admitted_at }, with payload indexes on instance, campaign,
repo and kind. Receipts, identity and provenance are never indexed.
In-force status is never indexed; clients resolve it through get.
Indexing is at admission, in the same call, but not in the same transaction.
The typed commit lands first; the index upsert follows. If the upsert fails the
admission still succeeded, and the organ records the document id in a
pending_index slot and retries on its next poll. The index is a projection, so
a stale index is a degraded read, never a lost write. The reverse order would
let an index failure reject an admitted document.
Rebuild. huginn-daemon --reindex <instance> drops and rebuilds the
collection from the typed store. This is the affordance that makes the
projection disposable, and it is the negative proof that the index is not truth.
D6. The CultNet surface
Copy Odin's harness (R6, R7). huginn-daemon binds one loopback UDP socket
from GAMECULT_IDUNN_CANDIDATE_BIND, constructs
CultMeshRudpDocumentServer::new(socket, sink, snapshot, CultMeshSystemClock::default(), options),
and runs a poll_once loop with signal-hook handling SIGTERM/SIGINT.
Requests arrive as DocumentPutRaw and replies go back as DocumentPutRaw,
the shape Epiphany's permit issuer already uses (R5) and that the document
server routes natively. Two request documents and two response documents:
| Document | Type id | Payload |
|---|---|---|
| request | huginn.mind_request.v1 |
instance, operation: Admit | Get | Query | OpenItems | RulingsInForce | Stewardship | HandOff | Import, and the operation's typed argument |
| response | huginn.mind_response.v1 |
request_id, outcome: Ok(payload) | Refused(PipelineRefusal) |
Read operations are also served through CultMeshRudpSnapshotSource, so a
plain CultNet snapshot client can read a mind without speaking the request
document at all. That is the affordance that keeps the MCP surface swappable.
Schema publication. huginn.mind_request.v1 and huginn.mind_response.v1
are Huginn's contracts and are published from Huginn, not Epiphany. Ruling 1
covers pipeline state schemas, which stay in schemas/cultnet/. The organ's
transport contracts belong to the provider that owns the boundary, which is
exactly what schemas/cultnet/README.md:52-56 already says.
Port. rudp://10.77.0.1:17872, the lower of the two unallocated 178xx
ports (R21), with a private candidate range 27880-27887 by analogy with
Odin's 27872-27879.
D7. eureka-state
A stdio MCP server that is a thin CultNet client. It owns no state, no cache and no fallback.
| Tool | Input | Output |
|---|---|---|
admit |
{ instance, provenance, documents } |
PipelineAdmissionOutcome |
get |
{ instance, id } |
{ found, view } |
query |
{ instance, query: PipelineQuery } |
{ views } |
open_items |
{ instance, campaign } |
PipelineOpenItems |
rulings_in_force |
{ instance, campaign? } |
{ views } |
stewardship |
{ instance } |
{ repos } |
whoami |
{} |
{ instance, organ_endpoint, reachable } |
Input and output types are the epiphany-pipeline types deriving JsonSchema,
returned as Json<T>, so tool schemas equal the published schemas (P4).
Refusals are typed outcomes, not JSON-RPC errors; malformed input is
invalid_params.
No repo_root anywhere. The old design threaded it through every tool
because the store was a file in a repo. The mind is now addressed by instance.
Configuration. Two environment variables, EUREKA_ORGAN_ENDPOINT (default
rudp://127.0.0.1:17872) and EUREKA_INSTANCE. No config file.
Unreachable organ (target, "Availability is honest"). Every tool returns
{ refused: Unavailable { detail } } naming the endpoint and the failure. The
server never spools, never caches, never degrades to a local file. whoami
exists so an agent can check reachability in one call before starting a
campaign, and the Rehydrate brief calls it first.
Registration is the operator's, not Hands'. After Hands reports the binary path, the operator runs:
claude mcp add --scope user --transport stdio eureka-state --env EUREKA_INSTANCE=<slug> --env EUREKA_ORGAN_ENDPOINT=rudp://127.0.0.1:17872 -- C:\Users\Meta\.eureka\bin\eureka-state.exe
Unprobed: the exact --env spelling on CLI 2.1.268. Hands confirms it from
claude mcp add --help and reports it; the operator runs the confirmed line.
D8. The trust boundary
State it plainly: on a single-operator LAN there is no authentication here, and the design does not pretend otherwise.
The organ binds loopback on Yggdrasil and is reached from the workstation over
the existing supervised SSH tunnel (R20). Anything that can open that socket can
declare any instance. ForeignInstance is therefore a collision and
attribution control — it stops instance A writing into B's mind by mistake,
and keeps history attributable — not an access control.
This matters because the alternative is available and already used in this
codebase: cultnet-rs ships ServiceIdentitySigner, enroll_service_identity_at
and trust anchors, and Epiphany's permit path signs with them (R4). Enrolling a
per-instance identity would make ForeignInstance enforceable. It would also
mean distributing and rotating a key to every workstation that runs Claude Code.
This is a real fork; see Q6. Do not let Hands invent a credential system.
Cut 4. Delete the repo-store, lease and git layers
- Repo/branch: Epiphany
codex/eureka-pipeline-state. No dependencies. - First: confirm
git statusis clean at5fb4eb22.
Deletes first.
| Path | Lines | What dies |
|---|---|---|
epiphany-core/src/pipeline_store.rs |
1,251 | The whole file. See below. |
epiphany-core/src/pipeline_documents.rs:334-349 |
16 | PipelineWriterHolder and its Bounded impl |
epiphany-core/src/pipeline_documents.rs:492-497 |
6 | EpiphanyPipelineWriterHolder wrapper |
epiphany-core/src/pipeline_documents.rs:602-617 |
16 | validate_pipeline_writes, the commit-profile validator |
epiphany-core/src/lib.rs:21 |
1 | mod pipeline_store; |
epiphany-core/src/lib.rs:132 |
1 | pub use pipeline_store::{...}; |
.gitattributes:1 |
1 | /.epiphany/pipeline/pipeline.cc binary |
.gitignore:37 |
1 | /.epiphany/pipeline/*.lock |
Yes, pipeline_store.rs dies whole. Every one of its parts is a repo-store
part:
PIPELINE_COMMIT_STORE(:76-81) — the commit profile, dead with Cut 5.pipeline_cache(:87-120) — the epoch/foreign-type opener. Its logic survives, but it is re-authored against redb in Cut 8; it is not moved, because its signature takes aRuntimeSpineBackingStore.git,git_line,committed_line(:125-162) — the committed-blob checks.require_repo_root,main_work_tree,common_dir_of(:165-201) — ruling 10's resolution.PipelineStore(:204-226) — the read path, now CultNet.PipelineWriter,attach,require_branch,Drop(:230-331) — the lease and branch binding.live_holder,current_holder,holder_cache,read/write_writer_holder(:334-387) — the holder record.mod tests(:389-1251, 863 lines) — 15 tests, all of which pin a deleted rule. The four that pin document rules —every_pipeline_kind_round_trips_through_named_slot_zero,bounds_refuse_in_utf8_bytes,repo_fields_must_be_org_slash_repo,keys_are_derived_and_mismatch_refuses,composed_keys_cannot_collide,parent_ids_are_parsed_strictly,resolution_subject_is_a_full_id_of_its_kind— move to Cut 6, not deleted. They are listed here as moves so the count is honest.
Keeps.
- Every document kind, value type, bound alias, format rule and key derivation
in
pipeline_documents.rs. validate_pipeline_write_envelope(:621-645), bounds plus key recomputation.- All ten
schemas/cultnet/epiphany.pipeline.*.v1.schema.jsonfiles and theirindex.jsonentries. Ruling 1 keeps them; Cut 6 adds three more. .gitattributes:2,/schemas/cultnet/epiphany.pipeline.*.schema.json text eol=lf.process_observation::capture_process_instance— other callers atbin/epiphany-mvp-coordinator.rs:257,1703andbin/epiphany-swarm.rs:211,723.repository_body_observer::repository_git_command— other callers atrepository_body_observer.rs:734,745,1041,1054,1063,1077.fs2inepiphany-core/Cargo.toml— still used bypackaged_release/construction.rs.schemars— Q5 keeps it; Cut 6 needs it.
Per-file changes. pipeline_documents.rs:19 drops
use crate::pipeline_store::PipelineRefusal; and gains a local PipelineRefusal
holding only FieldBound, InvalidFormat and InvalidIdentity, with its
Display and Error impls carried from pipeline_store.rs:57-63. This is a
temporary home; Cut 6 moves the whole module out.
Authority map.
- Owner: nothing. This cut removes an owner and installs no replacement; the organ becomes the owner in Cut 8.
- Inputs / outputs: none.
- Derived state: none. The holder file is gone.
- Forbidden writers: after this cut, no Epiphany code may open a pipeline store, take a lease, or read git for pipeline purposes.
- Shared paths: none remain.
- Deletion line: the table above.
Verification.
- Builds:
cargo check -p epiphany-core --lib --tests, thencargo check -p epiphany-release-bundle --bin epiphany-state. One at a time,CARGO_TARGET_DIR=C:\Users\Meta\.cargo-target-codex. - Tests:
cargo test -p epiphany-core --lib. Expect 180 − 15 = 165, and the report states the exact number. The surviving document tests are re-added in Cut 6, so this cut legitimately reduces coverage; Soul checks that only the named 15 disappeared. - Negative greps, all empty:
rg -n "PipelineWriter|PipelineStore|WriterLeaseHeld|main_work_tree|check-attr|git-common-dir" epiphany-core/srcrg -n "\.epiphany/pipeline" -- . ':!notes'rg -n "pipeline" .gitattributes .gitignorereturns only the schemaeol=lfline.
- Operator: none.
Subtraction ledger: −1,291 lines, +about 20 (the reduced refusal enum). No dependency, format or target change.
Cut 5. Collapse TypedCommitStore back into the Mind commit owner
- Repo/branch: Epiphany, same branch. Depends on Cut 4.
- Why this cut exists. Cut 2 generalised the commit owner so a second
profile could use it. Cut 4 deletes that second profile, and D3 puts the
organ's receipts in another repo.
TypedCommitStoreis now a one-implementation abstraction surviving only because it exists — a named STOP condition in~/.claude/CLAUDE.md. Honest accounting: Cut 2's generalisation did not pay off, and leaving it in place to avoid admitting that is the failure mode the doctrine warns about. - Why it is a separate cut. It is pure subtraction on the Mind path, and Soul must be able to falsify "Mind behaviour is unchanged" without pipeline code in the diff.
Deletes first.
| Path | Lines | What dies |
|---|---|---|
reasoning_context.rs:1590-1597 |
8 | struct TypedCommitStore |
reasoning_context.rs:1599-1604 |
6 | fn validate_mind_writes (inlined) |
reasoning_context.rs:1606-1611 |
6 | const MIND_COMMIT_STORE |
reasoning_context.rs:1614 |
1 | the store: &TypedCommitStore parameter |
reasoning_context.rs:1435,1466,1516,1540,1566 |
5 | the &MIND_COMMIT_STORE argument at each of the five wrappers |
reasoning_context.rs:2521-2530, :2599-2610 |
~20 | TEST_COMMIT_STORE, NOW_REFUSING and the profile-parameterised test harness at :2540 |
Per-file changes. In commit_authorized_mind_mutation
(reasoning_context.rs:1613-1622), re-inline the three choices the profile
carried: runtime_spine_backing_store at :1641,
crate::runtime_spine::open_runtime_spine_cache at :1642,
validate_mind_write_envelope at :1644, and the literal "epiphany-mind" at
:1665 and :1669.
Keeps — and this is the part that must not be lost. Cut 2's tests proved real rules and stay, re-expressed against the concrete owner:
- the Mind epoch refusal is pinned (mutation M2b dropped the check and failed);
- validation-before-replay is pinned;
- the owner reads and writes one store, never two.
Do not delete a verifier to make this cut smaller. AGENTS.md's Verification Guardrails: preserve the claim in the smallest owning surface.
Authority map.
- Owner:
commit_authorized_mind_mutation, still the only production code that builds receipts, replays, and runs batch CAS — now concretely, for Mind only. One test plants a receipt on purpose, which is how the replay rule is pinned; that is the second construction site and it is deliberate. - Inputs: authority, invariant owner, strong reads, writes, companions, time.
- Outputs:
EpiphanyMindCommitOutcome. - Derived state:
store_idinside the receipt's document versions, now the constant"epiphany-mind". - Forbidden writers: any new function building an
EpiphanyMindCommitReceiptor callingcompare_and_swap_batchwith a receipt. - Shared paths: the five Mind wrappers. There is no sixth.
- Deletion line: the table above.
Verification.
- Tests:
cargo test -p epiphany-core --libpasses at the Cut 4 count.disjoint_mind_mutations_merge_and_same_identity_conflicts(reasoning_context.rs:2482) pins Mind CAS and replay unchanged. - Behaviour-unchanged proof, per the Hands brief: a Mind receipt id captured
by running the pin test at base
5fb4eb22must equal the id after this cut. A value captured from the new code is not evidence. - Mutations: drop the epoch check from the opener; make the validator a no-op; make the owner read one store and write another. Each must fail its named test.
- Negative greps:
rg -n "TypedCommitStore|MIND_COMMIT_STORE" epiphany-core/srcis empty.
Subtraction ledger: −46 lines, +about 8 re-inlined. No dependency change.
If Soul or Hands finds a live second consumer this cut is wrong — stop and
report rather than deleting. The map asserts there is none; rg is the check.
Cut 6. Extract epiphany-pipeline
- Repo/branch: Epiphany, same branch. Depends on Cut 4.
Adds: package epiphany-pipeline/.
Cargo.toml:autobins = false,license-file = "../LICENSE", dependenciesanyhow,chrono,cultcache-rs(pinneda0813c6),rmp-serde,schemars = "1",serde. Dev-dependenciesserde_json,tempfile.src/lib.rs: the whole ofpipeline_documents.rs(623 lines after Cut 4), moved verbatim apart from the module doc's cut-map references, plus the reducedPipelineRefusal.- The three new kinds from D2, their keys, and their entries in the
pipeline_kinds!macro.
Moves.
epiphany-core/src/pipeline_documents.rs→epiphany-pipeline/src/lib.rs.- The seven document tests named in Cut 4 →
epiphany-pipeline/src/lib.rstests, minus their git-repo scaffolding (campaign_repo,git_ok,attach,holder), which has nothing left to set up. pipeline_published_schemas_match_derivation(pipeline_store.rs:1172-1203) →epiphany-pipeline, still reading../schemas/cultnetviaenv!("CARGO_MANIFEST_DIR").
Deletes. epiphany-core/src/lib.rs:20 (mod pipeline_documents;) and
:131 (pub use pipeline_documents::*;). epiphany-core then has no pipeline
surface at all, which is correct: its consumption is campaign two.
Per-file changes.
- Root
Cargo.toml:2-8: add"epiphany-pipeline"to workspace members. It is not added to[dependencies], and no[[bin]]references it. schemas/cultnet/index.json: three new entries in the existing shape (kind: document_payload,wireContracts: ["cultnet.schema.v0"]) forinstance,stewardshipandhand_off.- Three new
schemas/cultnet/epiphany.pipeline.<kind>.v1.schema.jsonfiles, derived, never hand-written. schemas/cultnet/README.md:29-31: the Main Families entry currently says pipeline state is "stored per repo at.epiphany/pipeline/pipeline.cc". Replace with: stored in an instance's mind, owned by the Huginn memory organ; name the three added kinds.schemas/cultnet/README.md:33-41: the wire note says these contracts "cross to Eureka MCP clients and the voidbot projection". Replace the voidbot half: they cross to the Huginn organ and itseureka-stateclient. Keep the[value]payload sentence, the derivation sentence and the Q2 evolution sentence.
Authority map.
- Owner:
epiphany-pipeline, for document shape, bounds, formats, keys and derived schemas. - Inputs: none; it is a pure type library.
- Outputs: typed documents, derived JSON schemas,
pipeline_key. - Derived state: the published schema files.
- Forbidden writers: nothing in this package may open a store, spawn a
process, or reach a network. It has no
std::process, no socket and no backing-store dependency beyondcultcache-rstypes. - Shared paths:
huginn-mindandeureka-state, both by git rev. - Deletion line:
epiphany-core's two pipeline modules and their exports.
Verification.
- Builds:
cargo check -p epiphany-pipeline --lib --tests, thencargo check -p epiphany-core --lib --tests. - Tests:
cargo test -p epiphany-pipeline --lib. The nine moved tests (seven plus the derivation test plusdecode_refuses_an_envelope_of_a_foreign_type, which Cut 4's fix batch added after this was written), plus four new ones:instance_stewardship_and_hand_off_round_trip,stewardship_key_escapes_the_repo_slash,hand_off_names_both_instances, andkeys_read_back_as_ids_of_their_kind. Thirteen in total. - Key⇄id round-tripping is the test shape this cut was missing. The first
three key tests assert key strings and never parse them back, which is why
Soul found an unvalidated instance segment and a reader that refused the new
root kind.
keys_read_back_as_ids_of_their_kindwalks every sample, keys it and parses it back. Resolution is the one kind whose key is not an id of itself; the test states that rather than skipping it. - The derivation test is the schema gate. On mismatch it writes the derived
file to a per-run directory under
std::env::temp_dir()named by pid and nanos, and fails naming the path. There is no bless flag, and no directory is shared between runs. Thirteen schemas must now match. - Mutations: add a variant to one value type's enum without regenerating its
schema — the derivation test fails. Change
<Org_Repo>escaping to keep the slash — the key test fails. (A field cannot be added to those macro-built value types without failing the whole target, which would prove nothing about the derivation test in particular; the variant changes exactly one derived schema.) - Negative greps:
rg -n "serde_json::Value|Vec<u8>" epiphany-pipeline/srcempty (serde_jsonis a dev-dependency only).rg -n "std::process|UdpSocket|BackingStore" epiphany-pipeline/srcempty. Corrected (21):process::Command|UdpSocket|BackingStore; the per-run test directory readsstd::process::id()under#[cfg(test)].rg -n "pipeline" epiphany-core/srcempty. Corrected (15): the narrower grep over the type names.
- Operator: none.
Subtraction ledger: Epiphany-core −623 lines; new package +about 700 including the three kinds, +about 400 derived JSON. Net repo change is small; the point is the dependency boundary, not the line count.
Cut 6b. The key grammar
Anchor: epiphany-pipeline/src/lib.rs at 4a654351, 1,508 lines. Lands
before Cut 6c and does not absorb it. Spec by Imagination 2026-09-16;
in Hands.
Why a grammar and not a fourth fix
Three passes each made one composition site injective and left the site above
it ambiguous. The key space had four shapes and no single reader: <slug>
for campaign and instance (two early returns at :693-700), <root>:<kind>:<local>
for ten kinds (KeyParts::key, :671-683), resolution:<subject id> (a third
early return at :703-707), and recursively resolution:resolution:…. Three of
the four are written by an early return that never reaches the composer, so
the reader pipeline_id (:545-586) needs a match kind with a root arm and a
recursive arm to undo them, plus declared_kind (:529-538) to guess the kind
of a string that does not carry one. Every confirmed defect lives in one of
those exceptions. A fourth pass would guard an arm that should not exist.
The grammar
key ::= root ":" kind ":" local
root ::= slug
kind ::= one of the thirteen `PipelineKind` names, literally
local ::= part ( "." part )*
part ::= label
slug ::= label ( "." label )* ; total <= 64 bytes
label ::= [A-Za-z0-9_-]{1,64}
Two byte facts already in the source: label_text (:118-126) admits neither
. nor :; dotted_text (:131-139) is label ("." label)* bounded at 64
bytes with no empty parts. Two rules the cut adds:
- R1. Every key has exactly three segments. Roots included.
- R2. No local part is a
Slug. ASlugorOrgRepoentering a local is escaped to one label first. Solocal.split('.')recovers its parts exactly at any arity.
Unambiguity then follows from the alphabet, not from checks: : is in no part,
so segment recovery is forced; the kind is a literal segment, so nothing is
inferred; . is in no part, so local recovery is exact. declared_kind has no
successor because there is nothing left to guess.
| Kind | Key |
|---|---|
campaign c |
c:campaign:self |
instance y |
y:instance:self |
resolution of c:question:Q1 |
c:resolution:question.Q1 |
resolution of campaign c |
c:resolution:campaign.self |
| resolution of that resolution | c:resolution:resolution.question.Q1 |
| hand-off | <from>:hand_off:<to escaped>.<repo escaped>.<date> |
| stewardship | <instance>:stewardship:<repo escaped> |
| the nine others | <campaign>:<kind>:<local>, unchanged |
Roots take the reserved constant self as local; a reader recovers a root's
identity from segment 1 and never consults it. A resolution is keyed inside its
subject's root with the subject's kind and local as its own local. Nesting is
bounded by construction, not by a guard: a nested local is
11 * (depth - 1) + len(subject local) bytes against the 64-byte bound, so a
one-byte subject local nests six deep and question.Q1 five, and
pipeline_id does not recurse. (Corrected after Soul F1: this first said
"at most five"; the bound is the local, and the depth follows from the subject.)
The one escape, generalised. repo_segment (:619-636, _→__,
/→_-, .→_d, injectivity verified by Soul) becomes key_segment and
gains one caller: hand_off.to_instance, the only place a raw Slug reached a
local (:720) and exactly Soul's pass-2 collision pair, closed from the other
side. Its output is not assumed to be a label; Game Cult/x escapes and is
refused downstream by label_text, which is already tested.
Where the total length bound lives: in one function,
local<const N: usize>(field, parts: [&str; N]), which runs every part through
label_text and the join through one 64-byte bound. It is not a type fact and
is not dressed as one; it is pinned by M4. Today the total check (:681) is the
second of two dotted_text calls on overlapping data, which is why deleting it
was invisible to every sample.
Where tail arity lives: local takes an array, not a chainable builder, so
a conditional tail cannot be written as a quiet extra chain call. That does
not prove one arm emits one arity, and after this cut arity is no longer
load-bearing: under R2 a local reads back at any arity. The property the doc
comment at :663-670 defended is retired, and the invariant that replaces it,
"no local part carries the separator", has a runtime mutation (M6).
Deletes first
| Path | Lines | What dies |
|---|---|---|
lib.rs:526-538 |
13 | declared_kind. Defect 2's hardcoded Campaign dies with the function. |
lib.rs:550-570 |
21 | pipeline_id's match kind: the root arm, the resolution arm and its recursion, and the comment defending them. |
lib.rs:638-684 |
47 | KeyParts, its constructors and key. Replaced by a free function, not renamed. |
lib.rs:692-707 |
16 | pipeline_key's three early returns. The cut is not done until they are gone. |
97 lines. No file, schema file or type dies. The deletes go before local
is written; if they coexist with the new composer at any commit the cut has
produced a fourth shape.
Keeps, moves, adds
Keeps: every kind, type id, field, bound and format type; no value_types! or
pipeline_kinds! entry moves; PipelineRef and its Bounded impl
(:365-370) unchanged. repo_segment → key_segment, same body.
parent_local (:589-600) unchanged. parent_cut (:605-617) keeps both
rules; rsplit_once('.') becomes an index into the split, net −4. The
outcome-invariance assertion in keys_are_derived_and_mismatch_refuses
(:1077-1084) and the !key.starts_with("<campaign>:") assertion in
instance_stewardship_and_hand_off_round_trip (:1311-1315) stay true.
Adds: const ROOT_LOCAL: &str = "self" and fn local. pipeline_id is
replaced whole, one shape with no match kind: exactly three segments, kind
segment equals kind.name(), root through dotted_text, every local part
through label_text, local bounded whole, returns (root, local).
Per-file changes, epiphany-pipeline/src/lib.rs
| Line | Change |
|---|---|
:12-13 |
Module doc states the grammar in four lines. |
:117 |
Label's doc comment retargets KeyParts::key to local. |
:526-538 |
Delete declared_kind. |
:540-586 |
Replace pipeline_id whole. |
:605-617 |
parent_cut: index into local.split('.'). |
:619-636 |
Rename repo_segment → key_segment; generalise its doc comment. |
:638-684 |
Delete KeyParts; add local and ROOT_LOCAL. |
:687-752 |
pipeline_key: thirteen arms, one exit. Campaign/Instance emit local(field, [ROOT_LOCAL]). Resolution parses its subject id once, then local(field, [subject_kind.name(), subject_local_parts…]). HandOff gains key_segment on to_instance. |
:780-781, :824-934 |
Thirteen expected sample keys move. |
:1088-1166 |
composed_keys_cannot_collide: the probe built KeyParts directly and moves to local; the hand-off pair keeps its conclusion with a dotted receiver now escaping to thought-cage_dGameCult. |
:1256-1291 |
a_resolution_is_named_by_the_key_it_has: {CAMPAIGN}:resolution:R8 becomes well-formed grammar and leaves the refused list; reachability is admission's rule. Said in the doc comment. |
:1329-1363 |
keys_read_back_as_ids_of_their_kind: body unchanged. |
:1419-1455 |
hand_off_names_both_instances: add a dotted-receiver assertion. |
schemas/cultnet/: no file changes. notes/eureka-pipeline-state-cut.md:
the Keys table above is marked superseded and the scar at the old :483-488
stays.
Authority map
- Owner:
pipeline_key(:687), through the single composerlocal. No arm has a path to a key the composer never saw. - Inputs: the document's own fields. No clock, store, registry or counter.
- Outputs: one
String, or aPipelineRefusalnaming the field. - Derived state: the key is derived, never stored.
pipeline_idis the key read backwards and holds no state.declared_kind's inference is deleted. - Forbidden writers: no arm of
pipeline_keymayreturna key; no local part may be a rawSlug,ShortorOrgRepo(a validatedDateis[0-9-]{10}, already a label, and passes raw; Soul F6 corrected the first wording, which claimed every non-label value was escaped); nothing may infer a kind from an id's shape; reachability ("does this document exist", "may this kind be resolved") stays with admission inhuginn-mindper the resolution matrix above. Cross-field rules stay out ofBounded. - Shared paths:
pipeline_key,pipeline_id,PipelineRef::validate(:365-370),validate_pipeline_write_envelope(:759-772). Four paths, one grammar, no fifth. - Deletion line: the 97 lines above, before
localis written.
Verification
Builds: cargo check -p epiphany-pipeline --lib --tests, then
cargo check -p epiphany-core --lib --tests (untouched; its only mention of
the package is a doc comment at runtime_spine.rs:8754-8758).
CARGO_TARGET_DIR=C:\Users\Meta\.cargo-target-codex, path-list baseline.
Tests: cargo test -p epiphany-pipeline --lib, thirteen existing plus six.
| Test | Rule it pins |
|---|---|
every_key_has_exactly_three_segments |
R1, over every sample plus a nested resolution: three segments, segment 1 a Slug, segment 2 in PipelineKind::ALL by name, each local part a Label. Also asserts a Target whose campaign is Slug("a:b") is refused by the pub pipeline_key (M5). |
roots_of_different_kinds_do_not_share_a_key |
Defect 1: campaign yggdrasil and instance yggdrasil, assert_ne!. |
a_resolution_names_its_subjects_kind |
Defect 2: resolutions of c:question:Q1 and c:ruling:Q1 key differently, as do resolutions of campaign c and instance c, and each reads back recovering its subject kind. |
a_resolution_of_a_resolution_reads_back |
Defect 3: a resolution whose subject is a resolution validates, keys, reads back; five nestings key, six refuse on the local bound with field == "resolution.key". |
a_composed_local_is_bounded_whole |
The total bound: a hand-off whose escaped receiver is 60 label bytes composes about 80 and is refused InvalidFormat { field: "hand_off.key" }. |
no_local_part_carries_the_separator |
R2: local("probe", ["a.b"]) and local("probe", ["a", "b.c"]) both refused; a hand-off with a dotted to_instance keys to an escaped local. |
Unchanged in name and assertion: keys_read_back_as_ids_of_their_kind,
keys_are_derived_and_mismatch_refuses,
every_pipeline_kind_round_trips_through_named_slot_zero,
pipeline_published_schemas_match_derivation,
decode_refuses_an_envelope_of_a_foreign_type, bounds_refuse_in_utf8_bytes,
repo_fields_must_be_org_slash_repo, parent_ids_are_parsed_strictly,
resolution_subject_is_a_full_id_of_its_kind.
Negative checks: rg -n "declared_kind|KeyParts" epiphany-pipeline/src empty;
no return Ok( inside pipeline_key; rg -n "match kind" empty;
git diff --stat 4a654351 -- schemas/cultnet/ empty;
rg -n "to_instance.0.clone\(\)" empty. If Hands finds any consumer of a
pipeline key outside epiphany-pipeline/src/lib.rs, the cut is wrong; stop.
Mutations
Committed as tools/eureka-cut6b-mutations.ps1 with byte-exact UTF-8 I/O,
anchors that must match exactly once, and M0, a no-op control that rewrites
the file through the same path and must leave every test green. A redesign's
mutations restore the old permissiveness rather than break a check.
| # | Survivor | Mutation, exactly | Killed by |
|---|---|---|---|
| M1 | Roots share a namespace | Campaign arm returns Ok(value.slug.0.clone()) |
roots_of_different_kinds_do_not_share_a_key; collaterally the three-segment test and the read-back test |
| M2 | Resolution key drops the subject kind | Resolution arm omits subject_kind.name() from the parts |
a_resolution_names_its_subjects_kind (both pairs key c:resolution:Q1) |
| M3 | Nested resolution unnameable | Resolution arm returns format!("resolution:{}", subject.id) |
a_resolution_of_a_resolution_reads_back; the three-segment test |
| M4 | Total bound unpinned | In local, delete the bound on the join, keep per-part label_text |
a_composed_local_is_bounded_whole |
| M5 | Root check unpinned | In pipeline_key, drop dotted_text on the root |
the refusal assertion in every_key_has_exactly_three_segments |
| M6 | Head may carry a dot | In local, dotted_text on parts[0] instead of label_text |
no_local_part_carries_the_separator |
M6's stated limit: the array type is a compile fact with no runtime mutation, and one-arm-one-arity is not proven and no longer needs to be.
Ordering against Cut 6c
Cut 6c's central keep ("no key moves") is false after this cut, its retyping of
ResolutionOutcome's referents to PipelineRef rests on the pipeline_id
this cut replaces whole, and this cut is the smaller diff in the shared sample
block. So 6b lands first, and Imagination reissues 6c against the landed
grammar with three edits: re-anchor by content (everything from :526 shifts
by about −60 lines); replace "no key moves" with "keys moved in 6b and are
settled; 6c moves none further, checked by git diff -- schemas/cultnet/
naming exactly six files"; and add one fixture the new grammar makes available,
a Superseded entry naming a resolution (c:resolution:question.Q1).
Subtraction estimate
−97 source, +38 outside tests, +110 tests; net −59 outside tests. Zero schema
files, types, kinds, dependencies, targets, formats or epoch. Every key
moves, which is the cut's whole cost and is free exactly once: nothing reads
these keys yet. Once huginn-mind reads them, the same change is a
stored-document re-key.
Cut 6c. The Ghostlight shapes
- Repo/branch: Epiphany
codex/eureka-pipeline-state. Depends on Cut 6b (landed at1bddd2ac, mutation suite at95ee551a) and its fix batch. Blocks Cut 8. Lands before Cut 8 (ruling C) and is the last cut inside Epiphany before the pause. - Anchors. Every
file:linebelow is againstepiphany-pipeline/src/lib.rsat95ee551a, 1,608 lines, twenty tests, re-found by content after the key grammar shifted everything from the old:526down. The 6b fix batch lands onlib.rsbefore Hands starts, so re-anchor by content again: every anchor is astruct,impl,fnor sample opener that greps cleanly. - Reissued 2026-09-16 by Imagination against the landed grammar. Three
edits from the first issue: anchors re-found; the Keeps claim about keys
rewritten; one fixture added that only the new grammar makes available, a
Supersededentry naming a resolution by the key it has. Deletes, adds,Promise, the two unit enums,StructuralDelta, M17/M19/M20/M21, the authority map and the subtraction estimate carry over; M16 and M18 keep their rule and gain sharper forgeries; M22 is new.
Why this cut exists, and why now. Ghostlight's independently run campaign
(D9) named six pains. Four were already built: finding identity, the ledger
derivation, cut status and the direction of the supersession relation are
covered by keys, joins and PipelineResolution as they stand. What is left is
one genuine hole (promises), two fields wearing one shape (ruling authority,
finding origin), and four retypings that are breaking, not additive. Under
ruling 8 a retyping costs an epoch bump the moment a pinned reader exists.
Nothing reads these schemas today: a grep for SubtractionEstimate,
MutationRecord, ResolutionOutcome, VerdictClaim, StructuralDelta and
subtraction_estimate over Epiphany finds lib.rs, the four schema files
that embed them, and one prose mention in this map; over F:\Projects\Huginn
and the Eureka skill checkout it finds nothing (source read). A whole-drive
search timed out, so any other tree is unchecked. Cut 8 pins a git rev and
closes the window. The four retypings cost nothing today and an epoch
tomorrow.
Rulings carried in: A, Soul measures every promise and Unproven carries
the ones it could not reach; B, Fixed { commit: Sha } is admitted with its
referent outside the document set; C, this lands before Cut 8.
Multi-supersession is Vec<PipelineRef>[8], cardinality being admission's
(Q10 asked against Cut 8). Q11 A: nesting stays. Q12: OrgRepo untouched; the
tightening is its own commit and is not folded in. No kind widens, so
epiphany.pipeline.epoch.v1 holds. Zero new kinds.
Deletes first
| Path | Lines | What dies |
|---|---|---|
lib.rs:290-294 |
5 | SubtractionEstimate and the two-line comment on its list default. Its consumer becomes StructuralDelta. |
lib.rs:388-396 |
9 | impl Bounded for ResolutionOutcome. Replaced whole, not patched: every arm changes referent type, and a patched impl is how a length-only check survives. |
lib.rs:826-828 |
3 | The cut-spec sample's SubtractionEstimate { … } literal. |
lib.rs:296 |
1 | MutationRecord's mutation: Line field, rewritten in place as location/before/after. |
The comment at :298-299 names the dead type and is reworded to stand alone.
No file or schema file dies; index.json is untouched because no kind is
added and no type id renamed. Deletes go before any field is added: if
SubtractionEstimate and estimate: StructuralDelta coexist at any commit,
the cut has two estimate shapes.
Keeps
- All thirteen kinds,
pipeline_key,pipeline_id,local,key_segmentand the epoch. Keys moved in Cut 6b and are settled; this cut moves none further, because it adds, retypes or removes no field a key is derived from. The check is mechanical:git diff --stat <base> -- schemas/cultnet/at the end names exactly the six regenerated schema files.index.jsoncarries no hashes (its entries are id, kind, wire contracts, version, type, title and path, and the derivation test asserts that shape), so it is byte-identical. PipelineRefand itsBoundedimpl (:363-376). It becomes load-bearing for four more referents. It already parses the id against its declared kind throughpipeline_id, whose kind-segment check (:553-555) refuses a mismatch; that is why retyping 1 is cheap and what the new fixture rides on.- The whole key suite,
keys_read_back_as_ids_of_their_kindincluded. All twenty tests stay unchanged in name and assertion. They are blind to this cut, which is why it carries its own tests. Shortstays the type for full-id fields already parsed at key derivation (cut_report.cut_spec,verdict.cut_report,finding.verdict,cut_spec.rulings,ruling.answers). Retyping those is a larger cut.- The outcome-invariance assertion in
keys_are_derived_and_mismatch_refuses(:1029-1037): a subject has one resolution key whatever the outcome.
Adds
Two unit_enums! entries and one value_types! entry. No kind, module,
dependency or target.
RulingAuthority { Operator, Standing, Defaulted }
FindingOrigin { Introduced, PreExisting }
pub struct Promise { label: Label, text: Line }
Promise is not a document and has no key; it is identified by its report's
id plus its label, as TargetInvariant is by its target's (:276). It is not
resolvable and does not enter the resolution matrix.
Per-file changes, epiphany-pipeline/src/lib.rs
| Line | Change |
|---|---|
:262-267 |
Add RulingAuthority and FindingOrigin to the unit_enums! block. |
:290-294 |
Delete SubtractionEstimate and its comment. |
:296 |
pub struct MutationRecord { label: Label, rule: Line, location: CodeLocation, before: Line, after: Line, commit: Sha, failed_as_expected: bool } |
:298-299 |
Reword the comment so it no longer names SubtractionEstimate. |
after :307 |
pub struct Promise { label: Label, text: Line } beside LandedName. |
:308 |
VerdictClaim gains promise: Option<Label> and mutations: Vec<Label>[8]. |
:319-322 |
PipelineRuling gains authority: RulingAuthority. |
:327 |
subtraction_estimate: SubtractionEstimate → estimate: StructuralDelta. |
:330-335 |
PipelineCutReport gains promises: Vec<Promise>[64]. |
:337-341 |
PipelineFinding gains origin: FindingOrigin. |
:378-386 |
ResolutionOutcome: Superseded { by: Vec<PipelineRef> } with #[schemars(extend("maxItems" = 8))] on by, because the enum is outside value_types!, the only place [max] is emitted automatically (:236); Answered { by: PipelineRef }; Fixed { commit: Sha, by: Option<PipelineRef> }; Deferred { to: PipelineRef }. Recorded/Withdrawn unchanged. |
:388-396 |
Replace impl Bounded for ResolutionOutcome whole: Superseded → list(&format!("{field}.by"), by, 8); Answered → by.validate("{field}.by"); Fixed → validate commit as {field}.commit then by as {field}.by; Deferred → to.validate("{field}.to"); Recorded/Withdrawn → reason.validate("{field}.reason"). Option<PipelineRef> validates through the blanket impl (:68-72); list (:99-105) checks the maximum and validates every item. |
:800-808 |
Ruling sample gains authority: RulingAuthority::Operator. |
:826-828 |
Cut-spec sample: estimate: StructuralDelta { … } on its own lines opening with estimate: StructuralDelta {, carrying Cut 3a's real numbers lines_added: 900, lines_removed: 0, not transposed (M21). |
:835 |
Report sample's MutationRecord literal gains label, location, before, after, commit. |
:831-845 |
Report sample gains promises: vec![Promise { label: l("P1"), text: "One derived key per document.".into() }]. |
:846-852 |
Verdict sample: the claim gains promise: Some(l("P1")) and mutations: vec![l("M1")]. |
:853-859 |
Finding sample gains origin: FindingOrigin::Introduced. |
:866-870 |
Resolution sample: Answered { by: PipelineRef { kind: Ruling, id: id("ruling", "R8") } }. Its key stays eureka-state:resolution:question.Q1. |
tests, after :1510 |
Five new tests, named under Verification. No sample is added, so every samples().remove(N) index (:889-926) is unchanged. |
schemas/cultnet/: six of thirteen files regenerate: ruling, cut_spec,
cut_report, verdict, finding, resolution. Derived, never hand-written:
pipeline_published_schemas_match_derivation writes the derivation to a
per-run temp directory and names it in the failure; copy from there. The other
seven, index.json, README.md and the two non-pipeline schemas are
byte-identical.
The fixture the grammar made available
Before 6b a resolution's key was resolution:<subject id>, which pipeline_id
could not read back as an id of kind Resolution, so no PipelineRef could
name one. After 6b it is an ordinary <root>:resolution:<subject kind>.<subject local> and reads back. This cut is the first to put such a reference inside
another document's outcome, pinned in
resolution_outcome_referents_are_parsed_ids_of_their_kind:
- Positive. A resolution of
eureka-state:ruling:R8with outcomeSuperseded { by: [Ref{Ruling, ruling:R9}, Ref{Resolution, <the sample resolution's key>}] }validates. The resolution id is derived frompipeline_key(&resolution_sample()), not spelled. That is Ghostlight's own case: a ruling partly overturned by two later records. - Forgery. The same list with the resolution entry's kind changed to
Rulingis refusedInvalidFormatwithfield == "resolution.outcome.by[1].id". Well-formed, right length, right root, wrong kind. This is M16's killer; a length-only check passes it.
Stated limit: a Superseded entry naming eureka-state:resolution:R8 also
validates. That id is well-formed grammar no resolution derives; whether a
document with an id exists is admission's rule. Hands must not make the
library refuse it.
Authority map
- Owner, inputs, outputs, derived state: unchanged.
epiphany-pipelineowns shape, bounds, formats and keys. No status, ledger row or cut state is stored by this cut, and none may be added by it. - Moved: a resolution's referent stops being an unparsed string and becomes
a parsed
PipelineRef(or aSha). Before,ResolutionOutcome's referents were length-bounded only, alone among referents in the library. After, they are validated where every other referent is,PipelineRef::validate, one of the four grammar paths 6b named. - Forbidden writers: cross-field and cross-document rules stay out of
Bounded. Hands must not implement any of these in this package:operator_quoteonly withauthority: Operator; every promise in a cited report named by exactly one claim (ruling A); amutationslabel existing in the cited report; aSupersededlist being non-empty; aSupersededreferent existing. They are admission and belong tohuginn-mind(:97-98,:706-708). - Shared paths: none new. Nothing consumes these types yet.
- Deletion line: the deletes table, before any field is added.
Cut 8 inherits five named refusals and its verification table grows by
five rows: QuoteWithoutOperator, PromiseWithoutVerdict,
UnknownMutationLabel, EmptySupersession, UnknownSupersessor.
The multi-supersessor hole
D9 found that one resolution per subject cannot hold Ghostlight's two partial
supersessors, and the key permits exactly one resolution per subject. The
shape half closes here: Superseded takes Vec<PipelineRef>[8]. Cardinality
is an admission rule, not a shape, so a permissive list in the schema plus a
restrictive rule in Cut 8 costs nothing whichever way Q10 is ruled; the
reverse ordering costs an epoch.
Verification
Builds: cargo check -p epiphany-pipeline --lib --tests, then
cargo check -p epiphany-core --lib --tests. CARGO_TARGET_DIR=C:\Users\Meta\.cargo-target-codex,
one package, the workstation as host and target; this library has no
platform-specific code.
Tests: cargo test -p epiphany-pipeline --lib. The existing tests plus
five, all existing unchanged in name and assertion.
| Test | Rule it pins |
|---|---|
resolution_outcome_referents_are_parsed_ids_of_their_kind |
A resolution's referent is a full id of the kind it declares. Covers Superseded (positive and forgery), Answered, Deferred, and Fixed's optional by, each with a wrong-kind forgery asserting the refusal's field. |
fixed_resolution_requires_a_commit_sha |
Ruling B: a fix names the tree where the finding stopped being true. Forgery: uppercase hex of legal length. |
mutation_records_carry_a_dot_free_label_and_a_commit |
A mutation has a key-safe identity and is pinned to a tree. Forgeries: label: "M1.a", commit: "dirty-worktree". |
a_verdict_claim_names_the_promise_and_the_mutation_it_measured |
Ruling A's shape half: promise and mutations exist, are Label-typed, and mutations is bounded at 8 (nine refused FieldBound { field: "verdict.claims[0].mutations", limit: 8, actual: 9 }). |
the_sample_cut_spec_estimates_a_net_addition |
The estimate's two u32 fields are not interchangeable: lines_added == 900, lines_removed == 0. A tripwire with stated limits (M21). |
Negative greps over epiphany-pipeline/src:
rg -n "SubtractionEstimate|subtraction_estimate" empty;
rg -n "Superseded \{ by: Short|Answered \{ by: Short|Fixed \{ by: Short|Deferred \{ to: Short"
empty; rg -n "operator_quote|promise|mutations" shows no if, match or
?-chained condition on another field; git diff --stat <base> -- schemas/cultnet/
names exactly six .schema.json files; rg -n '"maxItems": 8' schemas/cultnet/epiphany.pipeline.resolution.v1.schema.json
matches once under Superseded.by. If schemars 1 rejects extend on a
variant field, stop and report; do not drop the bound from the schema.
Operator: none blocking.
Mutations, M16-M22
Entries file tools/eureka-cut6c-mutations.psd1, run through the shared
tools/eureka-mutations.ps1 harness from the 6b fix batch (built-in M0,
byte-exact I/O, anchors matching exactly once, hash-checked restore).
A retyping is the mutation-hostile case: the compiler catches the type change,
so the tempting test is "construct a valid value, assert Ok(())", which stays
green under every mutation below. The key suite is structurally blind here
because a resolution's key is outcome-invariant. Where the cut's content is
types, the mutation is a type-level mutation (M19, M20, M22).
| # | Mutation, exactly | Killed by | The careless test it survives |
|---|---|---|---|
| M16 | Superseded arm: list(&format!("{field}.by"), by, 8) → bound(&format!("{field}.by"), 8, by.len()), length only. |
the referents test, via the wrong-kind forgery in a two-entry list | any test superseding with a good id |
| M17 | The whole match self { … } body → let _ = field; Ok(()). |
the same test's Answered and Deferred forgeries |
every existing test |
| M18 | commit.validate(&format!("{field}.commit"))?; → let _ = commit; |
fixed_resolution_requires_a_commit_sha via Sha("5F98228D9C"); hex requires lowercase (:114-120) |
a test using Sha("notacommit"), which a length check also rejects |
| M19 | MutationRecord { label: Label, → label: Short, |
mutation_records_carry_a_dot_free_label_and_a_commit via label: "M1.a" |
a test asserting label: "M1" validates |
| M20 | commit: Sha, failed_as_expected: bool } → commit: Short, … |
the same test via commit: "dirty-worktree" |
any test supplying a real sha |
| M21 | Two-line anchor estimate: StructuralDelta { + lines_added: 900, lines_removed: 0, → numbers transposed. The anchor must include the opener; the numbers alone also match the report sample (:839). |
the_sample_cut_spec_estimates_a_net_addition |
every round-trip, bounds and schema test |
| M22 | VerdictClaim: mutations: Vec<Label>[8] → [16] |
the verdict-claim test via nine labels | any test supplying one label |
Stated limits: M21 is a fixture assertion and the only test-visible hazard in
retyping 4; once both estimate and delta are StructuralDelta, six-axis
comparability is a type fact. Promise and promises: Vec<Promise>[64] have
no mutation: a promise is two bounded strings, and the rule that matters
(every promise measured) is Cut 8's.
Subtraction estimate
Removed: 17 source lines (one value type with its comment, one hand-written
Bounded impl, one sample literal, one field rewritten in place) and one
unvalidated-referent class. Added: about +125 source, about 85 of them the five
tests; about +23 outside tests. Derived JSON: six files regenerate, about +130
/ −45. Value types net zero. Kinds, dependencies, targets, formats, epoch: all
zero. Liability retired: the one field class whose referent was never parsed,
and a pair of estimate/actual types that could not be compared on four of six
axes, both of which would have been paid for at an epoch bump the moment Cut 8
pinned a rev.
If Hands finds a consumer of any of the five names outside
epiphany-pipeline/src/lib.rs and the four schema files, this cut is wrong:
stop and report rather than retyping.
Cut 7. Retire Huginn's TypeScript body
- Repo/branch: Huginn
mainat91b7fcf, on a new brancheureka/memory-organ. No dependency on the Epiphany cuts.
Deletes first.
| Path | Lines | Note |
|---|---|---|
src/cli.ts |
23 | the huginn <file> CLI |
src/huginn-eve-dsl.ts |
57 | buildHuginnEveDsl |
src/index.ts |
8 | package entry |
dist/ (9 tracked files) |
88 | tracked build output |
package.json |
35 | @gamecult/huginn |
package-lock.json |
70 | |
tsconfig.json |
26 |
Total 307 tracked lines and 16 files.
This is safe to delete outright because nothing consumes it (R12). The
census's one hesitation — src/index.ts:2 re-exporting inspectCultCacheBytes
— is resolved: a grep of every package.json under F:\Projects finds no
dependant.
Nothing needs to move to CultCache Studio. Ruling 17 says generic .cc
inspection belongs to CultCache Studio, and CultCache Studio already exists
and already inspects and edits .cc state (R14). buildHuginnEveDsl is a
57-line string builder over CultLib's inspectCultCacheBytes; CultLib owns the
inspector, and the Studio owns the presentation. Porting a stale text projection
into a working editor would be additive work that buys nothing. Record the
retirement; move no code. If the operator later wants a headless .cc-to-Eve
projection, it is a CultLib cut with its own consumer.
Eve's fixture and catalog entry stay, with a provenance correction.
Eve/web/fixtures/huginn-cc-surface.eveand its.conformance.jsonare conformance material for Eve's own lowering path, exercised bydocs/renderer-parity.md:58. They do not import or execute Huginn (R13). Deleting them would remove an Eve test to tidy another repo.- But the conformance file's
"ownerRepo": "Huginn"and"exitCriteria": "Move to Huginn when .cc schema inspection ... become runtime-owned"are now false: Huginn will never own that surface. Cut 7 changes those two fields —ownerRepotoEve,exitCriteriato a sentence saying the surface is a retired-projection fixture retained for lowering conformance — and adds one line todocs/renderer-parity.md:58marking it as such. Eve/web/local-provider-catalog.json:72-83keeps its entry; it already declares"freshness": {"state": "fixture"}and points at the file, not the package. No change.
Huginn's legacy .voidbot Persona state is out of scope and stays untouched.
Recorded, not solved, per the target's Not-in-scope list:
.voidbot/state/huginn.cc(35,297 bytes) holds eight legacyvoid.*document types and zerogamecult.persona_state.v0documents, and identifies its jurisdiction asrepo:CultCacheTS..voidbot/voice/identity.jsonsays the Persona and repo are Huginn, and carries the lost pathE:\Projects\Huginn.- These two disagree about who the Persona is. That contradiction predates this
campaign, survives it, and belongs to whoever owns the portable-Persona
migration. Hands does not touch
.voidbot/in any cut. Recorded as FU-1.
Adds. An empty Rust workspace: root Cargo.toml with
members = ["crates/huginn-mind", "crates/huginn-daemon", "crates/eureka-state"],
resolver = "3", [workspace.package] edition = "2024", license = "MIT",
publish = false, following Odin's layout. .gitignore gains target/ and
drops the four stale entries the census flagged (dist-test/, dist-inspector/,
release/, release-inspector/, .gitignore:2-5).
Docs. README.md (74 lines) and AGENTS.md (81 lines) are rewritten, not
deleted: Huginn is the memory organ that owns instance minds. Both currently
describe the E: drive body and deleted EpiphanyAgent commands. The rewrite
states the new invariant, the CultNet surface, the Qdrant dependency, and that
.cc inspection is CultCache Studio's.
Authority map.
- Owner: Huginn becomes the memory organ. Before this cut it owned a projection; after it, it owns state.
- Inputs: none yet; Cut 8 adds them.
- Outputs: none yet.
- Derived state: none.
- Forbidden writers: after this cut nothing in Huginn emits Eve DSL, reads
.ccfor inspection, or publishes an npm package. - Shared paths: Eve's fixture is now Eve's alone.
- Deletion line: the table above, plus the two corrected Eve fields.
Verification.
- Builds:
cargo check --workspacein Huginn succeeds on an empty workspace (three stub crates with emptylib.rs/main.rs). - Negative greps:
rg -n "buildHuginnEveDsl|@gamecult/huginn|cultcache-ts" F:\Projects\Huginnempty;rg -n -F 'E:\Projects' F:\Projects\Huginn --glob '!.voidbot/**'empty. (Corrected after Soul: the original regex form was a ripgrep parse error, not an empty result.) - Unchanged check:
.voidbot/is byte-identical.git diff --stat 91b7fcf -- .voidbotis empty. - Eve: its renderer-parity fixture check still passes.
- Operator: confirm
npmpublication of@gamecult/huginnis not expected to continue. The package was never published to a registry consumer this map can find, but unpublishing is the operator's call. Ruled 2026-09-16: not publishing, nothing to unpublish. The operator first said npm was unreachable ("our entire subnet is blocked"), then corrected it the same day: "apparently that was true yesterday, but I was able to get to npm signup just now, so we're not actually blocked on publishing. Still for a later pass." So registry publication is deferred by choice, not impossible; the QUIC map's Q5 stays on C for that campaign on that reason. Huginn itself publishes nothing either way.
Subtraction ledger: −307 lines, −16 files, −1 npm package, −1 CLI
entrypoint, −1 sibling file: dependency. +about 30 lines of workspace
scaffolding. Two Eve fields corrected.
Landed 2026-09-16 at Huginn 1320fc4, f63c0f2, e20c786 on
eureka/memory-organ and Eve e777e4c on main. Hands verified the
spec's Body claims before deleting: no package.json under F:\Projects
depends on @gamecult/huginn but its own; the Eve fixture neither imports
nor executes Huginn; the catalog entry needs no change. Corrections:
- The deletes table sums to 15 files and 315 lines, not 16 and 307. The
seven paths were unambiguous, so Hands deleted exactly those;
dist/is 96 lines by numstat, not 88. Spec arithmetic, not a Body fault. Cargo.lockis committed, following Odin's layout, though the spec's adds did not list it. Kept..gitignorekeepsnode_modules/, which the spec did not name and which is now stale too. One-line follow-up.- The conformance fixture also carries
"splitTarget": "Huginn". The spec named two fields; the third is as false as the two. Soul is asked whether anything reads it.
Verification: cargo check --workspace clean (three stub crates, zero
dependencies); both negative greps empty; .voidbot diff empty; Eve's four
web/*.test.mjs pass (13 tests), the fixture compiles through
compileEveDsl, and the edited conformance JSON validates against Eve's
schema. Huginn net +118 / −444 across 26 files; README 74 → 47, AGENTS
81 → 48. No mutation suite: nothing here is a rule a unit test pins.
Consumer grep over the whole tree found no live consumer of the package, CLI
or DSL builder. The surface id cultcache.huginn.inspector survives in
Ghostlight's vendored Eve copy and the Eve-aetheria-authority worktree,
both of which still say "ownerRepo": "Huginn" until re-vendored, and in
VoidBot's provider-advertisement prose describing the old inspection role.
Recorded as FU-7: re-vendor, and retire the VoidBot hand-off prose when
VoidBot's Persona doc is next touched. (First written as FU-2, which was
already taken; Soul caught the collision.)
Soul on Cut 7 (default model) held the deletion line (.voidbot tree
hash identical at both ends, so no mode or EOL flip is possible), the
no-consumer claim over every manifest, lockfile, import string and runbook
under F:\Projects, the workspace (cargo 1.95.0; resolver = "3" and
edition 2024 both satisfied; --locked clean), and every Eve check. Found:
- A second
ownerRepoauthority disagrees with the first.EveConformance/tools/parity/parity-manifest.json:466still says Huginn, andrun-parity.mjs:826compares it to Eve's metadata, so the parity check for this fixture now fails. The spec named only Eve's two fields; the reader lives in a third repo. Nobody would have seen it, because the harness cannot reach a report anyway: the manifest wants an Aetheria conformance file that has not existed since July. Pre-existing hole, recorded here, not this cut's. - Three more Huginn-naming fields in the fixture material:
purpose,splitTarget, and the.evefile's first-line comment. No programmatic reader; four consecutive fields that contradict each other. - AGENTS.md describes Cuts 8-10 in the present tense with no stub
caveat; README carries one at
:33-35. AGENTS is the surface an agent rehydrates from. The spec asked for that content, so it is a tension between the spec and the "describe the live system" invariant. - The spec's second negative grep is unrunnable as written: the escaped backslashes are a Unicode-property error to ripgrep. Corrected below to a fixed-string search.
- Committed blobs carry CRLF, including
Cargo.lock; no.gitattributes; the predecessor blobs and Odin's lock are CRLF too, so house pattern, not a deviation. The first cut that adds a dependency will rewrite the lock as LF and produce a whole-file diff. Recorded.
The first three are in a Cut 7 fix batch across EveConformance, Eve and Huginn.
Operator ruling on the npm check: not publishing, nothing to unpublish, and npmjs is unreachable from this network (see Verification above).
Cut 8. huginn-mind: storage, identity and admission
- Repo/branch: Huginn
eureka/memory-organ. Depends on Cuts 6 and 7. - Deletes first: none. This is the first new capability.
Adds: crates/huginn-mind. Dependencies anyhow, chrono, cultcache-rs,
epiphany-pipeline (git rev, pinned to the Cut 6 commit), rmp-serde, serde.
No network dependency, no reqwest, no socket — the ports in D5 are traits, so
this crate is testable with mocks (F:\Projects\CLAUDE.md: dependency injection
should be boring).
src/mind.rs:Mind::open(state_root, instance)overRedbMessagePackBackingStoreat<state_root>/minds/<instance>/mind.cc;register_huginn_document_types; the epoch and foreign-type refusals ported frompipeline_store.rs:87-120.src/receipt.rs:HuginnCommitReceipt, the digest, idempotent replay, batch CAS and typedConflict.src/admission.rs:admit, the identity check, the per-kind rules, derived writes.src/refusal.rs: the service half ofPipelineRefusal(D2).
Authority map.
- Owner:
huginn-mind, for every per-kind rule, every derivation, and the receipt. - Inputs: the mind image and the batch.
- Outputs: outcomes, receipts, views.
- Derived state: in-force status, open items, admitted time, the index (Cut 11).
- Forbidden writers:
huginn-daemon,eureka-stateand the index may not validate documents, derive status, or write a mind except throughadmit. Nothing outsidehuginn-mindconstructs aHuginnCommitReceipt. - Shared paths:
admitis the single write path for the CultNet surface (Cut 10) and the import path (Cut 12). - Deletion line: n/a (new), but the replaced liability is named: the writer lease, the git preconditions and the merge tool, all deleted in Cut 4.
Verification. Every rule gets a test that fails under its own mutation.
| Test | Rule it pins |
|---|---|
first_write_must_carry_identity_and_instance |
Ruling 14; the mind is never left un-owned |
admission_refuses_a_foreign_instance |
Ruling 14's refusal, ForeignInstance |
cut_report_without_spec_refuses |
A report cites its spec |
cut_report_citing_superseded_spec_refuses |
— |
finding_without_range_or_evidence_refuses |
A finding names its range and evidence |
falsified_claim_requires_confirmed_finding / unproven_claim_refuses_confirmed_finding |
Verdict vocabulary |
ruling_supersedes_by_resolution_never_overwrite |
Re-putting a ruling key is IdentityCollision; the superseded ruling stays queryable |
subject_resolves_at_most_once |
— |
supersession_cycle_refuses |
— |
ruling_answering_question_derives_answered_resolution_atomically |
Inspect the receipt writes |
revision_requires_supersession_in_batch |
— |
batch_is_all_or_nothing |
A refused third document leaves the store byte-identical |
exact_replay_returns_already_admitted_across_provenance |
— |
hand_off_derives_stewardship_on_both_sides |
Ruling 14's hand-off |
opener_refuses_foreign_epoch_missing_identity_and_foreign_type |
Three refusals, bytes unchanged |
two_minds_in_one_state_root_stay_separate |
Instance isolation on disk |
- Mutations: delete each rule's check and confirm exactly its test fails;
make
in_forceignore resolutions; make the identity check compare against the batch instead of the storedinstancedocument. - Negative greps:
rg -n "reqwest|UdpSocket|qdrant" crates/huginn-mind/srcempty.rg -n "prepare_entry\(" crates/huginn-mind/srcempty — onlyprepare_entry_named. - Builds:
cargo check -p huginn-mind --lib --tests.
Subtraction ledger: +about 1,400 lines, of which about 120 are the receipt
duplication named in D3. No new dependency beyond epiphany-pipeline.
Cut 9. huginn-mind: queries and derivations
- Repo/branch: Huginn, same branch. Depends on Cut 8.
- Deletes first: none.
- Adds:
src/query.rswith the five functions andPipelineDocumentViewfrom D4.semanticis accepted inPipelineQuerybut returnsUnavailable { detail: "index not wired" }until Cut 11 — a typed refusal, never a silent empty result.
Authority map. Owner huginn-mind; the same forbidden writers as Cut 8. The
new statement is that status is derived at read time, never stored, so no
admission writes an in_force field and no client computes one.
Verification.
| Test | Pins |
|---|---|
open_items_and_rulings_in_force_follow_resolutions |
The derivations |
query_filters |
One assertion per filter, including instance |
cut_filter_walks_spec_report_verdict_finding |
The cut chain |
views_join_admission_facts_from_receipts |
receipt_id, admitted_at, faculty |
semantic_query_refuses_typed_until_wired |
No silent empty result |
limit_is_capped_and_ordering_is_stable |
≤ 200, ordered by admitted_at then id |
- Mutations: make
in_forceignore resolutions; drop thelimitcap; order by id only. - Builds:
cargo check -p huginn-mind --lib --tests.
Subtraction ledger: +about 600 lines.
Cut 10. huginn-daemon: the CultNet surface
- Repo/branch: Huginn, same branch. Depends on Cut 9.
- Deletes first: none.
Adds: crates/huginn-daemon. Dependencies mirroring Odin's lean set (R8):
anyhow, chrono, cultcache-rs, cultmesh-rs, cultnet-rs, fs2,
huginn-mind, rmp-serde, serde, signal-hook.
src/wire.rs:HuginnMindRequestandHuginnMindResponse(D6), asDatabaseEntrydocuments with derived schemas.src/main.rs:parse_optionsfor--state-root,--idunn-projection,--idunn-anchor; bindGAMECULT_IDUNN_CANDIDATE_BIND; construct the document server;signal-hookfor SIGTERM/SIGINT; thepoll_onceloop.src/serve.rs:SinkHandleimplementingCultMeshRudpRawDocumentSink(request →admit/query → response) andSnapshotHandleimplementingCultMeshRudpSnapshotSource(read-only snapshot of one instance's mind).
Copy Odin's shape deliberately (R6): the loopback-only candidate bind
assertion, the signal handler with its PID-namespace comment, the bootstrap
activation wait, the heartbeat, and poll_server mapping
CultMeshRudpPollOutcome::ApplicationRejected to a logged non-fatal.
Authority map.
- Owner:
huginn-daemonowns the socket, the process and the lifecycle. It owns no rule: every request becomes ahuginn-mindcall. - Inputs: CultNet
DocumentPutRawrequests and snapshot queries. - Outputs:
DocumentPutRawresponses, snapshot responses, presence health. - Derived state: session table, the
pending_indexretry slot (Cut 11). - Forbidden writers: the daemon may not call
cultcache_rsput/CAS directly, may not construct a receipt, and may not derive status. - Shared paths:
admitfrom Cut 8; the import path in Cut 12. - Deletion line: n/a.
Verification.
| Test | Pins |
|---|---|
request_round_trips_through_the_sink_and_returns_a_typed_outcome |
Wire shape |
a_refusal_returns_as_a_response_not_a_transport_error |
Refusals are data |
snapshot_source_serves_only_the_named_instance |
Instance isolation on the wire |
a_malformed_request_document_is_rejected_without_touching_a_mind |
Store bytes unchanged |
foreign_instance_on_the_wire_is_refused |
Ruling 14 across the transport |
- Mutations: make the sink bypass
admitand write directly; let the snapshot source ignore the instance filter. Each fails its test. - Builds:
cargo check -p huginn-daemon --bin huginn-daemon. - Pipeline smoke: start the daemon on an ephemeral loopback port against a
temp state root, drive one
admitand onequeryfrom a CultNet client in the same test, assert the typed outcomes. This is the "typed handoff between adjacent organs" tierF:\Projects\CLAUDE.mdasks for. - Process-probe rule: the smoke spawns only
huginn-daemonwith explicit argv and an ephemeral port; it never re-launches the test binary. Hands confirms this by reading the spawn site before running it. - Negative grep:
rg -n "compare_and_swap|put_prepared_batch|HuginnCommitReceipt \{" crates/huginn-daemon/srcempty.
Subtraction ledger: +about 900 lines. +1 binary, +cultmesh-rs,
cultnet-rs, signal-hook, fs2.
Cut 11. Qdrant collections and Ollama embeddings
- Repo/branch: Huginn, same branch. Depends on Cut 10 and Q5.
- Deletes first: none.
Adds.
crates/huginn-mind/src/index.rs: theEmbeddingPortandIndexPorttraits andIndexPoint/IndexFilter/IndexHitfrom D5, plus thepending_indexdocument and the retry rule.crates/huginn-daemon/src/qdrant.rsandsrc/ollama.rs:reqwest::blockingadapters over the endpoints R3 establishes.reqwestis added here, in the daemon only, never inhuginn-mind.- Daemon flags
--qdrant-url,--ollama-base-url,--ollama-model,--embedding-dimensions, followingepiphany.service's existing spelling (R16) so the unit reads like its neighbour.
Collection compatibility. Port the deleted CollectionCompatibility idea
(856648de^:semantic_backend.rs:47-57): the collection stores its
managed_by, corpus_kind, projection_version, embedding_model and
vector_size, and the daemon refuses to write into a collection whose
compatibility record disagrees. That is what stops a model change silently
mixing 1,024-dim and other-dim vectors.
Authority map.
- Owner: the typed mind owns truth; Qdrant owns nothing.
- Inputs: admitted documents' bounded text fields.
- Outputs: Qdrant points; semantic hits resolved back through
get. - Derived state: the entire collection. It is rebuildable by
--reindex. - Forbidden writers: nothing writes a Qdrant point except the daemon's post-admission path; nothing reads a pipeline document from Qdrant as truth; in-force status is never indexed.
- Shared paths: the
semanticbranch ofquery(Cut 9). - Deletion line: n/a.
Verification.
| Test | Pins |
|---|---|
admission_succeeds_when_the_index_is_unreachable_and_records_pending |
The index never rejects a write |
pending_index_is_retried_and_cleared |
— |
reindex_rebuilds_the_collection_from_the_store |
The projection is disposable |
semantic_hits_resolve_through_the_typed_store |
Qdrant is not truth |
incompatible_collection_is_refused |
The compatibility record |
receipts_identity_and_provenance_are_never_indexed |
— |
The first four run against mock ports; huginn-mind has no network
dependency, which is the point of the trait boundary.
- Live adapter check (operator or Hands, on Yggdrasil): one end-to-end admit-then-semantic-query against the real Qdrant and the real Ollama, confirming 1,024 dimensions.
- Mutations: index before committing; index the in-force status; drop the compatibility check.
- Negative grep:
rg -n "reqwest|qdrant|ollama" crates/huginn-mind/srcempty.
Subtraction ledger: +about 800 lines. +reqwest (daemon only), +1 Qdrant
collection.
Cut 12. Stewardship hand-off and mind import
- Repo/branch: Huginn, same branch. Depends on Cut 11.
- Deletes first: none.
- Adds:
crates/huginn-mind/src/handoff.rs.hand_off(&mut Mind from, &mut Mind to, HandOffRequest)admits thehand_offdocument into both minds in one logical operation, with the supersedingstewardshipon the source side and the newstewardshipon the target side.import(&mut Mind, foreign: &Path, HandOffRef)replays the named documents' exact envelopes throughadmitagainst the target mind. Envelope bytes are carried, not reserialised, so additive fields written by a newer binary survive.
Not a merge tool. The deleted D5 merge tool existed because two clones could diverge. Two minds cannot diverge: each has one owner. Import is a transfer of named documents under a recorded hand-off, and it refuses anything not named in the hand-off.
Authority map.
- Owner:
huginn-mind's hand-off module, but it writes only throughadmit, so the per-kind rules still apply to imported documents. - Inputs: the source mind, the target mind, a
HandOffRequest. - Outputs: a
hand_offin both minds, twostewardshipwrites, two receipts. - Derived state: the stewardship assignments.
- Forbidden writers: import may not bypass
admit, may not reserialise an envelope, and may not import a document the hand-off does not name. - Shared paths:
admit. - Deletion line: n/a. This replaces the never-built merge tool, which Cut 4 deleted from the design.
Verification.
| Test | Pins |
|---|---|
hand_off_writes_both_minds_or_neither |
Atomicity across two stores |
import_replays_envelope_bytes_exactly |
No reserialisation |
import_refuses_a_document_the_hand_off_does_not_name |
— |
imported_documents_still_pass_every_admission_rule |
No bypass |
hand_off_is_idempotent |
Replay returns AlreadyAdmitted |
hand_off_between_the_same_instance_refuses |
— |
- Mutations: import without re-validating; reserialise on import; write the target before the source and fail the source.
- Builds:
cargo check -p huginn-mind --lib --tests.
Subtraction ledger: +about 500 lines.
Cut 13. eureka-state
- Repo/branch: Huginn, same branch. Depends on Cut 10 (the wire) and Q6.
- Deletes first: none.
- Adds:
crates/eureka-state. Dependenciesanyhow,cultnet-rs,epiphany-pipeline,rmcp = { version = "2.2.0", default-features = false, features = ["server","macros","transport-io"] },schemars,serde,tokio = { features = ["macros","rt-multi-thread","io-std"] }. It does not depend onhuginn-mind: it is a client, and linking the rule engine into the client would invite a second validator.src/lib.rs:EurekaStateServerwith aToolRouterand the seven tools.src/main.rs:EurekaStateServer::from_env()?.serve(rmcp::transport::stdio()).await?.waiting().await.
Authority map.
- Owner: none over state. The server is a transport shim.
- Inputs: JSON-RPC requests; two environment variables.
- Outputs: typed JSON.
- Derived state: none. No lease cache, no store handle, no local file.
- Forbidden writers: the package may not open a CultCache store, may not validate a document, may not derive status, and may not write anything to disk. This is the structural guarantee behind "it never writes a second copy".
- Shared paths: the CultNet surface from Cut 10.
- Deletion line: n/a.
Verification.
| Test | Pins |
|---|---|
every_tool_round_trips_against_a_live_daemon |
Pipeline smoke on an ephemeral port |
an_unreachable_organ_returns_typed_unavailable_from_every_tool |
The target's honesty invariant |
tool_schemas_equal_the_published_schemas |
Compare tools/list with schemas/cultnet/ |
whoami_reports_unreachable_without_failing |
Rehydration can check first |
a_refusal_is_an_outcome_not_a_jsonrpc_error |
P4's structuredContent path |
- Negative greps:
rg -n "BackingStore|CultCache::|std::fs::write" crates/eureka-state/srcempty. - JSON-RPC exchange: pipe
initialize,notifications/initialized,tools/listand onequeryinto the built binary, as P4 did. - Build and install (Hands):
cargo install --locked --path crates/eureka-state --root C:\Users\Meta\.eurekawith the sharedCARGO_TARGET_DIR. Unprobed: whethercargo installhonoursCARGO_TARGET_DIR; Hands confirms from the build log and reports the path. - Registration: the operator's, not Hands'. Hands reports the binary path
and the confirmed
claude mcp addline from D7; the operator runs it.
Subtraction ledger: +about 600 lines. +1 binary, +rmcp, +tokio.
Cut 14. Deployment
- Repos: Huginn
eureka/memory-organ(the recipe) and gamecult-opsmain(the binding, unit inputs, backup and tunnel). Depends on Cut 11 and Q7. - Deletes first: none.
Adds, Huginn: deployment/idunn/recipe.toml, gamecult.idunn.target_declaration.v1,
modelled on Odin's (R17):
[[steps]]test then build, runnerrust-build,cargo test --locked -p huginn-mindandcargo build --locked --release -p huginn-daemon --bin huginn-daemon.[[artifacts]]huginn-daemonfromtarget/release/huginn-daemon.[service]with--state-root,--idunn-projection,--idunn-anchor,--qdrant-url,--ollama-base-url,--ollama-model;transport = "rudp";route_required = true; required environmentGAMECULT_IDUNN_CANDIDATE_BIND,GAMECULT_IDUNN_PROCESS_WRITE_LEASE,GAMECULT_IDUNN_RUNTIME_BUNDLE.[service.health] contract = "huginn.runtime-health.v1".[state] schema_generation = "huginn-v1"with one slot:minds, relative pathminds, kindcultcache-directory, writerprocess-bound-single-writer, recoverypreserve, startupcreate-or-open-after-write-lease.recovery = "preserve"is the load-bearing line: a mind is never reconstructible from a release.[[provides]]capabilityhuginn.instance-mind, schemahuginn.mind_response.v1.[[dependencies]]— this is where Qdrant and Ollama are declared, following Ghostlight's shape (Ghostlight/deployment/idunn/recipe.toml:168-187): ashared-infrastructuredependency on the Qdrant endpoint and one on the embedding endpoint, bothstartup = "before-promotion", so a candidate that cannot embed is never promoted.
Adds, gamecult-ops: idunn/yggdrasil/bindings/huginn.toml.in,
gamecult.idunn.operator_binding.v2, modelled on odin.toml.in:
[repository]originhttps://github.com/GameCult/Huginn.git,admitted_refthe campaign branch until it merges, thenrefs/heads/main;minimum_revision = "PROVISIONED_HUGINN_MINIMUM_REVISION";recipe_path = "deployment/idunn/recipe.toml".[runners.rust-build]identical to Odin's pinned rust image and caps.[workload]state_group = "huginn-v1-state",unit_prefix = "idunn-huginn",release_root = "/srv/gamecult/idunn-releases/huginn",state_root = "/var/lib/gamecult/huginn-v1",network = "host-private",hardening = "strict".[route]stable_endpoint = "rudp://10.77.0.1:17872", private range27880-27887(R21).[brakes]both, separately, perF:\Projects\CLAUDE.mdand R18:deployment_store = "/var/lib/gamecult/idunn-brakes/huginn-deployment-brake.cc"andlifecycle_store = ".../huginn-lifecycle-brake.cc". Changing the artifact is deployment; restarting the admitted body is continuity. One brake must not gate both.[rollout] strategy = "candidate-then-promote",retain_releases = 2.drain_secondsis raised above Odin's 10 to let an in-flight admission finish; Hands proposes a value and reports it.[placement]desired_replicas = 1,nodes = ["yggdrasil"]. One replica is an invariant, not a capacity choice: two replicas would be two writers to one mind.
Backup owner — the target requires one, and this is it. The daily authority
backup is an explicit path list (R19); a path not named is not backed up.
One edit, not two: scripts/backup-gamecult-authority-yggdrasil.sh:81-105
gains var/lib/gamecult/huginn-v1 to the tar path list.
systemd/gamecult-authority-backup.service:15 needs no change — its
ReadOnlyPaths already grants the whole /var/lib/gamecult tree, so the new
state root is readable the moment it exists. Hands must not add a redundant
line there.
The script freezes named writers before tarring (:72-74, currently
epiphany-swarm.service and epiphany.service); the idunn-huginn unit is
added to that loop so a mind is never captured mid-commit.
Named owner: gamecult-authority-backup.service, daily at 03:20 UTC.
Workstation reach. scripts/start-yggdrasil-tunnel.ps1:13-24 gains one
entry: @{ Name = "huginn-organ"; LocalPort = 17872; RemoteHost = "127.0.0.1"; RemotePort = 17872 },
and runbooks/yggdrasil-ssh-tunnel.md:86-88's port table gains the row.
Caveat, and it is a real one: the existing forwards are TCP local forwards,
and the organ speaks RUDP over UDP. runbooks/yggdrasil-ssh-tunnel.md:32-39
already records this exact limitation and recommends WireGuard rather than SSH
forwards when raw UDP must cross. See Q7: the workstation almost certainly
reaches the organ over the existing WireGuard mesh (10.77.0.1), not the SSH
tunnel. The tunnel row is only added if Q7 chooses a TCP transport.
Adds, gamecult-ops: runbooks/huginn-yggdrasil.md, following
runbooks/odin-yggdrasil.md's five headings: Authority map, Release body,
Initial admission, Verification, plus a Recovery section naming the backup and
the --reindex rebuild.
Authority map.
- Owner: Idunn owns deployment and continuity actuation. Huginn owns its own state and health.
- Inputs: the admitted revision, the binding, the brakes.
- Outputs: a running
idunn-huginnunit, published presence health. - Derived state: the release root; the Qdrant collection.
- Forbidden writers: no operator script deploys Huginn directly; nothing but Idunn writes the release root; nothing but the daemon writes the state root.
- Shared paths: the Qdrant container (Q7), the embedding endpoint, the backup timer.
- Deletion line: n/a.
Verification.
- Operator, and only the operator: admit the binding, run
idunn up, confirm the unit reaches Ready, confirm health publishes, confirm the route answers on10.77.0.1:17872, then run oneeureka-state whoamifrom the workstation. - Restart-preserves-state check: admit a document, restart the unit through
Idunn, query it back. This is the check that
recovery = "preserve"is real. - Backup check: run the backup unit once and confirm
var/lib/gamecult/huginn-v1is in the archive listing. - Brake check: set the deployment brake and confirm a redeploy is refused while a restart still succeeds. This falsifies the one-brake conflation.
- Hands does not deploy. Deployment is an Idunn actuator gated on root and
IDUNN_ACTUATOR=1(scripts/deploy-epiphany-yggdrasil.sh:4-8).
Subtraction ledger: +about 250 lines of ops configuration. +1 systemd workload, +1 route, +2 brake stores, +1 backup path, +1 runbook.
Cut 15. Skill wiring
- Repo:
GameCult/Eurekamainat6ca7882, checked out at~/.claude/skills/eureka. It is now a git repo, so Cut 15's edits land as commits there. Depends on Cut 13 being registered.
SKILL.md — exact edits.
:8-18, the substrate paragraph. Replace. Eureka keeps rulings, specs, reports, verdicts, findings and follow-ups in an instance's mind, owned by the Huginn memory organ and reached through theeureka-stateMCP tools. Delete the claim that Epiphany findings are "queried semantically" — Epiphany has no semantic query since856648de. Delete the sentence pointing semantic search at voidbot; the organ owns its own index (ruling 16).:57-70, §0. Add: at campaign start Self callswhoami, then admitscampaignandtarget. Delete nothing about the target document: campaign prose stays in the repo (target, Invariants).:72-125, §1. "Imagination produces the cut map" becomes: Imagination admitscut_specrevisions andquestions withfaculty: Imagination. "Commit the map" (:122-123) becomes: nothing to commit — the mind is not in git. This is the line that must change, or agents will keep trying to commit a store that no longer exists.:126-145, §2. Rulings are admitted withanswers,choiceandoperator_quote. Supersession is an explicitresolution { Superseded }, never an edit.:146-168, §3. The Hands brief carries thecut_specid and the in-force ruling ids. Hands admits itscut_report.:169-188, §4. Soul admits oneverdictplus itsfindings, each withrangeandevidence.:189-212, §5. Triage outcomes areresolutiondocuments.:213-228, §6. The status header becomesopen_itemsplusquery. Self still reconciles the subtraction ledger, fromcut_report.structural_delta.:230-252, Self's discipline. "Keep the maps committed and current" becomes: keep the target committed; never restate typed state in prose. Delete the one-runner rule and theWriterLeaseHeldline — there is no lease. Add: when the organ is unreachable, stop and say so; never keep a second copy.
references/briefs.md — exact edits.
:16-58, Imagination. Read first:rulings_in_force,open_items, and the priorcut_specandcut_report. Output: admitted documents plus a short report of ids.:60-113, Hands. "The spec is<section>of<map>" (:63) becomes "get <cut_spec id>". The report becomesadmit cut_report; the prose report shrinks to the receipt id and blockers. Keep every git and mutation scar at:74-95— those are about code, not state.:115-148, Soul. Scope is thecut_reportid and itsrange. Report isadmit verdictplus findings.:150-166, Mind Steward. Candidates come fromqueryover resolutions admitted since the last boundary. The steward never writes the mind.- New section, "Rehydrate." A fresh agent calls, in order:
whoami,rulings_in_force,open_items,query { kinds: [cut_report], campaign }— and nothing else.
references/cut-map.md — rewrite, do not delete. It becomes "Typed campaign
state": the document set, the keys, the resolution matrix, and query recipes,
pointing at the Epiphany schemas as owner. The markdown cut map is retired for
new campaigns, and the reason stands unchanged from the old Cut 5: a committed
rendering needs a renderer and a regeneration discipline, which is a second
owner that goes stale exactly the way this file did. The target document stays
prose. Past cut maps, including this one, remain history.
references/changelog.md gains a dated entry with this cut map's evidence.
Verification (Soul, by reading).
rg -n "cut map|status header|repo_root|WriterLeaseHeld|lease" ~/.claude/skills/eurekahits only history and changelog lines.- Every kind in D2, including
instance,stewardshipandhand_off, is named by at least one brief. - No brief asks for prose relay of a typed artifact.
Subtraction ledger: prose shrinks; references/cut-map.md is replaced rather
than extended.
Cut 16. Proof campaign
- Task: the two CultLib follow-ups on
CultRecordRefFormatterrecorded inF:\Projects\Aetheria\docs\cultcache-migration-cut.md:77-83. Collapse the dead empty check atsrc/GameCult.Caching.MessagePack/CultRecordRefFormatter.cs:15-16, whereCultRecordKeyalready equates null and""; and make the contract's reason for accepting nil also name code from before452f928. - Why this task, unchanged: real and small, one genuine operator question
(whether nil stays accepted on read indefinitely or gets a sunset, which
changes the collapsed reader), Soul-falsifiable at the wire layer by decoding a
1.0.58 nil store, and CultLib is public with
mainas its default branch. - Repo/branch: CultLib
eureka/cultrecordref-followupsfrommaina0813c6. Depends on Cuts 14 and 15.
Run. Note what is absent compared with the old Cut 6: no attribute lines to commit, no store to commit, no branch binding.
- Self calls
whoamiand confirms the organ is reachable. - Self admits
campaignandtarget. The campaign's repo must be one the instance stewards, so Self admits astewardshipforGameCult/CultLibfirst if absent. - Imagination admits
cut_spec cut-1.r1andquestion Q1-1. - The operator rules; Self admits the
rulinganswering Q1-1. - Hands admits
cut_report cut-1.h1. - Soul admits
verdict cut-1.s1and its findings. - Self admits
resolutions andfollow_ups.
Pass criteria. All must hold.
-
Every artifact exists in the instance's mind with a receipt. No
*-cut.mdexists for this campaign, and the Hands and Soul briefs contain ids, not spec prose. -
Nothing about this campaign is committed to CultLib except the code change.
git statuson the branch shows no.epiphany/path and no store file. This is the negative proof that minds left git. -
At least one refusal is exercised live and returned typed — for example a
verdictwhoseFalsifiedclaim lacks aConfirmedfinding, or acut_reportbefore its spec is admitted. -
At least one resolution is admitted, and
open_itemsafterwards equals exactly the unresolved set Self states from its own records. -
Rehydration. A fresh agent with no transcript, no repo docs and no memory, given only the instance slug and the campaign slug, answers a fixed questionnaire using only
whoami,rulings_in_force,open_items,queryandget:- Which rulings are in force, and what did the operator say?
- What landed, at which SHAs?
- Which findings were Confirmed, and how was each resolved?
- What follow-ups remain, and why can each wait?
A Soul pass grades the answers against the mind and git. The proof fails on any factual miss.
-
Unreachable is loud. The operator stops the
idunn-huginnunit; the nextadmitreturns a typedUnavailablenaming the endpoint, the agent stops, and no local file appears anywhere.git statusand the scratchpad are both clean. This is the target's availability invariant, proved by a deliberate outage rather than asserted. -
Semantic recall. A
querywithsemanticset returns the Cut 16 ruling from a paraphrase that shares no exact words with it, and the hit resolves throughget.
Fail:
- any criterion misses;
- any agent relays a typed artifact as prose to the next agent;
- Self reads source to verify instead of routing to Soul;
- any agent writes a local copy of state when the organ is unreachable.
Subtraction ledger: the CultLib diff is about −3 lines of C# plus one contract sentence.
Subtraction ledger
Estimates. Self reconciles each at its landing; a miss is allowed but must be explained.
| Cut | Removed | Added | Deps / formats / targets |
|---|---|---|---|
| 4 | ~1,291 | ~20 | −1 store format, −1 lease, −2 git preconditions |
| 5 | ~46 | ~8 | none |
| 6 | ~623 from epiphany-core |
~700 Rust, ~400 JSON | +1 package epiphany-pipeline; +3 schemas |
| 7 | ~307, 16 files | ~30 | −1 npm package, −1 CLI, −1 sibling dep |
| 8 | 0 | ~1,400 | +epiphany-pipeline |
| 9 | 0 | ~600 | none |
| 10 | 0 | ~900 | +1 binary; +cultmesh-rs, cultnet-rs, signal-hook, fs2 |
| 11 | 0 | ~800 | +reqwest (daemon only); +1 Qdrant collection |
| 12 | 0 | ~500 | none |
| 13 | 0 | ~600 | +1 binary; +rmcp, tokio |
| 14 | 0 | ~250 ops | +1 workload, +1 route, +2 brakes, +1 backup path |
| 15 | prose shrinks | — | cut-map.md replaced |
| 16 | ~3 C# | 1 sentence | none |
Epiphany's net change across this campaign is negative: it loses 1,960 lines and gains a leaf package it does not itself depend on. The growth is in Huginn, and it buys the capability the target names. The liability retired lives outside the line count: prose cut maps, header bookkeeping, relayed reports, transcript crawls at postmortem, and — new with this rewrite — a per-clone lease, git preconditions and an unbuilt merge tool.
Operator questions
Each has a recommendation. Q6 and Q7 are real forks; Q8 is a subtraction the operator may simply want recorded.
-
Q6. Instance identity: declared, or signed? Depends on: Cuts 8 and 13, and D8.
- A. Declared.
eureka-statesends its configured instance slug; admission refuses a mismatch against the mind'sinstancedocument. Attribution and collision control, not authentication. - B. Signed. Enrol a per-instance CultNet service identity
(
enroll_service_identity_at, already used by Epiphany's permit path) and verify the signature at admission.
Recommended: A, with B as a named later cut. On a single-operator LAN behind WireGuard and loopback binds, B protects against an attacker who already has the machine. It also needs key distribution and rotation to every workstation that runs Claude Code, and the target already defers identity binding to a later campaign (ruling 9: answering over a chat channel "needs identity binding first"). Choosing A means saying out loud, in the README and the runbook, that instance identity is not authentication.
- A. Declared.
-
Q7. How does the workstation reach the organ? Depends on: Cuts 13 and 14.
- A. WireGuard.
eureka-statetalks RUDP to10.77.0.1:17872over the existing mesh. No tunnel change. - B. SSH tunnel. Add a forward to
start-yggdrasil-tunnel.ps1.
Recommended: A. The organ speaks RUDP over UDP, and
runbooks/yggdrasil-ssh-tunnel.md:32-39already records that SSH local forwards cannot carry raw UDP and recommends WireGuard for exactly this case. B would require giving the organ a TCP transport it does not need. The cost of A is that the workstation must have the mesh up, which it already does for other services; the check belongs inwhoami. - A. WireGuard.
-
Q8. Does
TypedCommitStorego (Cut 5)? Depends on: Cut 5 existing at all.- A. Collapse it, as Cut 5 specifies.
- B. Keep it.
Recommended: A. It was generalised for a second profile that this rewrite moves to another repo, so it is now a one-implementation abstraction — a named STOP condition. Keeping it costs a parameter on every Mind commit and an indirection in the owner. The honest counter-argument, which is why this is a question rather than a silent cut: Cut 2 was three commits and a Soul pass, and deleting it reads as churn. It is not churn; it is the correct response to the ownership change. If the operator prefers B, Cut 5 is dropped and the map says why.
-
Q9. Qdrant: share voidbot's, or run Huginn's own? Depends on: Cuts 11 and 14.
- A. Share. Huginn connects to
127.0.0.1:6333and owns thehuginn_pipeline_documentscollection. - B. Own. A second Qdrant under Idunn with its own storage and port.
Recommended: A. Qdrant already runs on Yggdrasil, host-networked on loopback, and collections are the isolation unit; ruling 16 says the organ owns its own collections, which A satisfies. The honest cost: the container is started by
voidbot-retrieval.serviceand defined in voidbot's compose file (R15), so Huginn's index availability is coupled to a unit Idunn does not own, and that coupling must be declared as a[[dependencies]]entry rather than left implicit. B removes the coupling and costs a second Qdrant's memory and storage for one small corpus. - A. Share. Huginn connects to
-
Q10. May one record be superseded by several? Depends on: Cut 8's admission rules. Cut 6c ships
Superseded { by: Vec<PipelineRef> }bounded at 8, so the shape admits it. Recommended: yes, each named. Cardinality is an admission rule; the library carries the shape. -
Q11. Does a resolution of a resolution stay expressible? Depends on: Cut 6b, and the resolution matrix.
- A. Nesting stays. The grammar reads it back, bounded by the 64-byte local (five or six deep depending on the subject); no arm, no guard, no check.
- B. A
SubjectKindtype with twelve variants, so the case stops compiling. About +25 lines and one schema file moves. - C. Runtime refusal in
pipeline_key, +3 lines.
Recommended: A. B and C move a row of the resolution matrix out of admission and into the library, and the matrix is admission's. The incoherence was the key shape, and it is gone; deleting the capability is right only when the capability is the incoherence. If the operator wants nesting refused, admission is the coherent place, beside
instanceandhand_off. Hands lands 6b under A. -
Q12. Should
OrgRepobe tightened? Depends on: nothing in a cut. Soul measured thata/b.,./.anda/.bused to be refused as key segments and now key, because.is escaped rather than refused. That is injective, so not a collision, but./.is not a repository. The widening's real location isorg_repo_text(:141-150), which imposes no byte class at all; the key layer had been acting as its format check by accident.- A. Tighten
org_repo_textto refuse an org or repo part that is exactly.or... About +4 lines, closes it everywhereOrgRepoappears, mutation M7 killed bya_repo_part_is_not_a_bare_dot. - B. GitHub's full rule,
[A-Za-z0-9._-]. Not verified from a source, and it would refuse repos that key fine today. - C. Leave it.
Recommended: A, as a four-line follow-up after 6b lands, with no key moving. B is a separate small cut with its own evidence if wanted. 6b lands with C in place.
- A. Tighten
Target contradictions for Self to reconcile
- "Embeddings come from Ollama on Nightwing" (target, ruling 16). The Body
disagrees for a Yggdrasil daemon:
epiphany.serviceembeds againsthttp://10.77.0.1:11435, a Yggdrasil-local Ollama, with the sameqwen3-embedding:0.6bmodel (R16). Only voidbot's indexer uses Nightwing10.77.0.3:11434. Recommendation: follow the Epiphany precedent and embed locally at10.77.0.1:11435, which removes a cross-host dependency from the admission path. The target's sentence should name the endpoint, not the host. - "Huginn is the memory organ ... which also ends the standing authority
vacancy where doctrine named Huginn the Persona-state steward" (ruling 17).
It ends the vacancy only for pipeline state.
F:\Projects\CLAUDE.mdnames Huginn the runtime steward ofgamecult.persona_state.v0inspection and migration, and this campaign builds none of that; VoidBot keeps that path. The doctrine paragraph still needs a correction, and it is not this campaign's. Recorded as FU-2. - "Cut 3a code: keep the document kinds, keys, validation and typed refusals" (target, Shape decided). Accurate, but the typed refusals split: six of the thirteen landed variants are repo-store refusals and die (D2).
- Document set. The target's End state lists ten kinds. Ruling 14 requires
three more —
instance,stewardship,hand_off— each with a live consumer (D2). The target's Documents bullet should name thirteen. - "a typed hand-off for reassigning stewardship, and an import path for another instance's mind" (target). Built in Cut 12, but note it is not a merge: two minds cannot diverge, so import is a transfer of named documents, not a reconciliation.
Follow-ups outside this campaign
- FU-1. Huginn's legacy
.voidbotPersona state..voidbot/voice/identity.jsonsays the Persona is Huginn;.voidbot/state/huginn.ccsays the jurisdiction isrepo:CultCacheTSand holds eight legacyvoid.*types and zerogamecult.persona_state.v0documents. Out of scope by the target. No cut touches.voidbot/. Owner: whoever runs the portable-Persona migration. - FU-2. Doctrine names Huginn the Persona-state steward. After this campaign
Huginn is a real runtime, which makes the doctrine paragraph in
F:\Projects\CLAUDE.mdmore tempting to believe and no more true. Either build the Persona path in Huginn or correct the doctrine to name VoidBot. Owner: the operator, via a Mind Steward proposal. - FU-3. The receipt is implemented twice.
EpiphanyMindCommitReceiptin Epiphany andHuginnCommitReceiptin Huginn share a shape and about 120 lines of digest, replay and CAS logic (D3). This is the price of the service boundary. If a third consumer ever appears, extract the primitive into CultLib rather than adding a third copy. - FU-4.
EpiphanyMindCommitReceiptnaming scar is now resolved by accident: with the pipeline profile gone, the type serves only Mind again. No action. - FU-5. The Epiphany map's epoch claim is stale.
state/map.yaml:76-77says runtime/Mind "v45/v11"; code hasepiphany.runtime_spine.v47(runtime_spine.rs:58). Mind Steward's surface. - FU-6.
state/map.yaml:261carries a long prose summary of this campaign that already describes the organ model. It will go stale as the cuts land. Mind Steward's surface, at each phase boundary. - FU-7. Vendored Eve copies and VoidBot prose still name Huginn as the
inspector. Ghostlight's
vendor/evesubmodule (pinned at672c0c1) and theEve-aetheria-authorityworktree carry the fixture with"ownerRepo": "Huginn"until re-vendored; VoidBot'sscripts/export-voidbot-provider-advertisements.mjs:224-233advertises ahuginnInspectionHandofffor.ccinspection that Huginn no longer does. No code calls Huginn, so nothing breaks. Owners: whoever next bumps the vendored Eve, and VoidBot's Persona doc. - FU-8. EveConformance's parity harness cannot reach a report.
tools/parity/parity-manifest.json:250wantsF:\Projects\Aetheria\conformance\eve\aetheria-world-surface.json, absent since the manifest was last changed 2026-07-11. Found by Soul on Cut 7; outside every campaign here. Owner: Eve/EveConformance.
History
Everything below is the record of superseded design. Nothing here is live. It is kept because the rulings and probes that produced it explain why the current design looks the way it does.
Landed: Cut 1. Re-pin CultLib to a0813c6
Landed at 2b76c2e7 (re-pin) and df82992c (pin tests). Passed Soul.
Replaced rev = "e171eca3..." with rev = "a0813c6..." in six manifests,
converted twelve load_envelope sites to put_envelope (the API was deleted by
CultLib 4ed9871; every site used a storeless cache, so semantics were
identical), and added ? at eight add_generic_backing_store sites.
- Verification: core tests 156/156 with zero warnings; four library packages and all nine bins check.
- Soul found no drift on a live path. Recorded: F1 (medium, latent) —
under cultcache-rs 0.2.0 a cache with no store accepts
put/deletein memory only, wheree171eca3refused; Epiphany's four read caches have no mutating caller today. F2 (low) — the pin tests proved "this store file is not rewritten", not "no store is attached"; fixed in Cut 2. F5 (gap) — typed reads of current-epoch stores are unproven because no current-epoch store exists locally.
Landed: Cut 2. One commit owner, two store profiles
Landed at 00991c1b (F2 fix: storeless reads pinned by directory snapshot),
46460efc (the TypedCommitStore profile) and cb6ef5d2 (the fixes). Passed
Soul at 160/160, with every mutation caught including two of Soul's own.
Deleted three hard-coded Mind choices from commit_authorized_mind_mutation and
replaced them with a profile: store_id, backing_store, open_cache,
validate_writes. The profile owns its backing store, so an opener cannot pick
a different one; the Mind epoch refusal and validation-before-replay are pinned.
Cut 5 now collapses this. The second profile it was built for moved to another repo. Recorded honestly rather than quietly kept.
Open decisions it left for the old Cut 3b, both now moot: replay under a changed
validator, and mapping a lost race between identical commits to AlreadyAdmitted.
The organ's receipt (D3) should handle the second case from the start.
Landed: Cut 3a. Documents, opener, lease, schemas
Landed at a1473c45 and ad18c385, with fixes at b4f88d29, 187e01e7 and
a317d4cf. Tests 180/180, 27 mutations defined and caught.
Surviving into the new design: the ten document kinds, the value_types!
single field list, the bound aliases, the format types, key derivation,
validate_pipeline_write_envelope, and the ten derived schemas with their
byte-for-byte derivation test.
Deleted by Cut 4: pipeline_store.rs entire — the opener, the writer lease,
the holder record, main_work_tree, the committed-blob attribute checks, branch
binding, and six refusal variants.
Soul's Cut 3a findings F1-F8 were all fixed before the rewrite. Their disposition under the new model:
| Finding | Was | Now |
|---|---|---|
| F1 identity-less first commit bricks the store | Fixed by ruling 12 | Survives as Cut 8's first_write_must_carry_identity_and_instance |
| F2 key collisions through dotted labels | Fixed by ruling 11 | Survives into epiphany-pipeline (Cut 6) |
| F3 parent ids only prefix-checked | Fixed | Survives into epiphany-pipeline |
| F4 resolution keys skip label validation | Fixed | Survives into epiphany-pipeline |
| F5 store writable without lease or admission | Fixed | Moot. There is no lease; admit is the only write path |
| F6 a worktree takes its own lease | Fixed by ruling 10 | Moot. No worktrees, no lease |
| F7 a stale holder is named after a crash | Fixed | Moot. No holder record |
| F8 git reads local excludes and global attributes | Fixed | Moot. No git reads |
A later Soul pass was in flight when the operator rejected the ownership
model. Its findings are referred to elsewhere as S1-S4 and S8. That
pass's report is not on disk in this workspace — the only S-labelled
artifacts in the scratchpad are Soul's mutation labels from the Cut 3a fix
pass (c3afix-mutations-run.log:15, mutation S1 against
parent_ids_are_parsed_strictly and resolution_subject_is_a_full_id_of_its_kind;
mutation S3 against the marker rule). So this map classifies by layer
rather than by label, and Self should bind the labels before briefing Hands:
- Findings against key parsing, identity, bounds, formats or the resolution
matrix survive, and their tests move to
epiphany-pipelinein Cut 6. - Findings against the store opener's refusals survive in substance, and are re-tested against redb in Cut 8.
- Findings against the lease, the holder,
main_work_tree, the committed-blob checks, branch binding, or the merge tool are moot with the layer, and Cut 4 is the fix.
If any S-labelled finding does not fall into one of those three buckets, it is not covered by this map and Self should route it back to Imagination.
Self's binding (2026-09-16). The pass's report was in Self's context, not on disk. Its findings bind as follows:
| Finding | Layer | Disposition |
|---|---|---|
S1 main_work_tree resolves into a foreign work tree (--separate-git-dir <holder>/.git) |
git resolution | Moot. Cut 4 deletes it |
S2 the parent-toplevel check is unpinned (a bare exists() survived the suite) |
git resolution | Moot with S1 |
S3 the attribute rule reads the HEAD blob, not what git consults |
committed-blob checks | Moot. No git reads |
| S4 no-commits and detached-HEAD edge cases of that rule | committed-blob checks | Moot with S3 |
S5 the API guard is not a file guard: a scratch crate wrote pipeline.cc with a forged record |
store file | Moot as written (no local store), but its substance survives: the organ must be the only writer of its mind on disk. Cut 8 owns refusing foreign records on open; Cut 14 owns volume ownership and permissions |
| S6 ruling 12 moved Mind write validation after identity-uniqueness and after the store opens | Mind commit path | Survives. Untouched by subtraction, and Cut 5's collapse must preserve validation before replay and the current fail-closed order |
| S7 the target and D6 contradicted ruling 10 | docs | Resolved by the 2026-09-16 target rewrite and this map |
| S8 a lease held by another user's process reports "unknown holder" | lease | Moot. No lease |
| S9 Hands' 27 mutations had no artifacts on disk, so the claim was unverifiable | process | Standing. The Eureka Hands brief now requires each mutation to be defined exactly in the report and reproducible from a committed script |
Nothing fell outside the map, so nothing routes back to Imagination.
Superseded: the repo-owned store design
The following are dead and are not reproduced: the old D2 (store path
<repo_root>/.epiphany/pipeline/pipeline.cc, required .gitattributes and
.gitignore lines, repo_root work-tree checks, branch binding), the old D3
(the per-clone session lease in the git common dir, the holder record, who holds
it), the old D5 (the merge tool and pipeline-merge subcommand), and the old
D6 (sharing across repos by foreign read, ForeignRef citation and voidbot
discovery — of which only ForeignRef survives, as a field on ruling and
finding).
Dead cuts: old Cut 3b (admission and queries in epiphany-core — replaced by
Cuts 8 and 9 in Huginn), old Cut 3c (the merge command — replaced by Cut 12's
hand-off), old Cut 4 (eureka-state as an Epiphany package — replaced by
Cut 13 in Huginn), old Cut 5 (skill wiring against repo_root — replaced by
Cut 15), old Cut 6 (the proof campaign with attribute commits and a lease
check — replaced by Cut 16), and old Cut 7 (the voidbot semantic projection,
its crawler exclusion, its vendored cultcache-ts replacement and its
search_pipeline_state tool — replaced by the organ's own Qdrant collections in
Cut 11, per ruling 16).
Dead rulings: 5 (the store lives in the repo where the task runs), 6 (one runner per repo plus a merge tool), 10 (one store per clone, in the main working tree), 12 (the profile owns identity-on-first-write — the rule survives in Cut 8, the profile does not), and Q1, Q3, Q4 (store layout, merge settlement, voidbot index scope), all of which asked questions about a store that no longer exists.
Dead operator question Q2 survives as ruling 8's epoch rule; Q5 survives
as the schemars dependency, now in epiphany-pipeline.