Commit graph Epiphany/epiphany-core/src/lib.rs
Author SHA1 Message Date
Meta Vens
7ab838f167 Extract epiphany-pipeline, and add the three kinds a mind is keyed by
Ruling 1 keeps schema ownership in Epiphany; ruling 17 puts admission in
Huginn. Huginn must not take on epiphany-core -- about 41,000 lines and 295
lock packages -- to use about 1,000 lines of document types. So the documents
leave as a leaf library, and epiphany-core keeps no pipeline surface at all:
its consumption is campaign two.

`epiphany-core/src/pipeline_documents.rs` moves whole to
`epiphany-pipeline/src/lib.rs`, with its nine tests. Only three things changed
in the move: the module doc now describes a package rather than a cut map
section; `anyhow` joins `rmp-serde` behind `cfg(test)`, because the write path
has been test-only since 186dbc62 and the live library's errors are all
`PipelineRefusal`; and the decode refusal, which was pinned against
epiphany-core's Mind commit receipt, is pinned against a local `ForeignDocument`
carrying that receipt's type id, since the receipt belongs to the harness.

The package declares four dependencies. chrono parses a Date, cultcache-rs
supplies DatabaseEntry, schemars derives the published schemas (Q5), and serde
is the document format. anyhow, rmp-serde and serde_json are dev-dependencies:
every use of them is `cfg(test)`. `autobins = false`, as a leaf library must.
The workspace lock grows by exactly one entry, the member itself; no new
third-party package.

Deleted rather than re-exported: epiphany-core's `mod pipeline_documents;` and
`pub use pipeline_documents::*;`, and `schemars` from its manifest, whose only
user was this module. No shim, no duplicate type.

`runtime_spine_cache_refuses_a_pipeline_store` stays in epiphany-core, because
the rule is the spine registry's: it registers its own types and nothing else.
It now builds its foreign envelope from a `cfg(test)` stand-in carrying
`epiphany.pipeline.campaign.v1` rather than from the moved documents, so the
rule keeps its test without the package keeping a dependency.

D2's three new kinds arrive with the move, each with a live consumer in the
organ: `instance` is a mind's identity document, `stewardship` records the
repos an instance is assigned, and `hand_off` records a reassignment in both
minds. All three hang off an instance rather than a campaign, so they compose
their own keys instead of borrowing the `<campaign>:<kind>:<local>` tail. A
repo inside a key is escaped to `Org_Repo`, because `/` is not a Label byte.

Thirteen schemas now derive. The five that embed `PipelineKind` gained three
enum variants, which is additive, so Q2 keeps `epiphany.pipeline.epoch.v1`.

epiphany-pipeline: 12 tests, 0 warnings. epiphany-core: 163 tests -- 172 minus
the nine that moved -- 0 warnings. epiphany-state.exe is byte-identical.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-16 11:40:12 +02:00
Meta Vens
ca275c7b35 Delete the repo-owned pipeline store, lease and git layers
Cut 4. Rulings 14 and 15 moved the state off the repo: an instance owns its
mind and a service owns that state. Every layer that existed only to make a
repo-resident, git-committed, multi-clone store safe is now dead weight.

`epiphany-core/src/pipeline_store.rs` goes whole, 1,251 lines: the commit
profile, the epoch/foreign-type opener, the committed-blob checks, the
main-work-tree resolution, the read handle, the writer lease and its branch
binding, the holder record, and the 20 tests that pinned those rules. With it
go `PipelineWriterHolder` and its wrapper, `validate_pipeline_writes`, the two
`lib.rs` lines, the `.gitattributes` binary marker and the `.gitignore` lock
line. No Epiphany code can now open a pipeline store, take a lease, or read
git for pipeline purposes.

`pipeline_documents.rs` gains a local `PipelineRefusal` in place of the import.
D2 splits the landed thirteen variants: the six repo-store refusals
(`NotRepoRoot`, `NoMainWorkTree`, `StoreNotMarkedBinary`, `LockNotIgnored`,
`WrongBranch`, `WriterLeaseHeld`) die here, and so do `MissingIdentity` and
`Unavailable`, which lost their last raiser with the opener and the lease.
`ForeignEpoch` and `ForeignStore` stay because `decode` and
`validate_pipeline_write_envelope` still raise them; D2 hands them to the organ
when admission moves.

The seven document tests the cut map names, plus the schema derivation test,
move into `pipeline_documents.rs` rather than waiting for Cut 6, so no rule
sits unpinned in between. They lose the git scaffolding that has nothing left
to set up, and the key test now validates one envelope directly instead of
going through the deleted batch validator. Sample payloads that named the
deleted file were rewritten so the negative greps are honest.

This cut removes an owner and installs no replacement; the organ becomes the
owner in Cut 8.

Builds clean with no warnings: `cargo check -p epiphany-core --lib --tests`
and `cargo check -p epiphany-release-bundle --bin epiphany-state`.
`cargo test -p epiphany-core --lib` passes 168/168, down from 180: 20 tests
died with the file and 8 came back with the documents.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-16 01:24:28 +02:00
Meta Vens
ad18c385dc Add pipeline documents, store opener, writer lease and schemas
Cut 3a of the Eureka pipeline state campaign (cut map D1-D3).

- pipeline_documents.rs: the ten kinds as serde + JsonSchema values in
  one-slot DatabaseEntry wrappers (epiphany.pipeline.<kind>.v1), the
  identity, provenance and writer-holder documents, UTF-8 byte bounds,
  semantic key derivation, and the pipeline write validator (bounds, then
  key recomputation).
- pipeline_store.rs: PipelineStore::open (read-only, no lease),
  PipelineWriter::attach (fs2 lock in the git common dir, display-only
  holder file, binary/ignore checks), require_branch, PipelineRefusal,
  and PIPELINE_COMMIT_STORE on the one commit owner. The opener refuses
  foreign types, missing identity and foreign epochs before attaching.
- schemars 1 is an unconditional core dependency (Q5-A); the ten published
  schemas are derived and checked byte-for-byte, with index.json entries.

The profile and the prepare path carry expect(dead_code) naming Cut 3b as
their consumer, so the attribute fails the build once admission uses them.

Builds: yes. cargo test -p epiphany-core --lib: 171/171, 0 warnings.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-15 21:55:04 +02:00
Meta Vens
616a2c8e74 Finish the interrupted rustfmt pass
The worktree had been sitting on a partial `cargo fmt` run: 15 files reflowed,
mostly multi-line derive attributes collapsed onto one line, with no semantic
change anywhere in the diff. It was never finished -- `cargo fmt --check` still
flagged resident_readiness.rs, which the pass had not reached.

Completed rather than reverted, since the formatting is what rustfmt produces
and leaving it half-applied is the only bad option. 16 test binaries pass.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-04 15:12:23 +02:00
Meta Vens
9f189871bc Narrow internal cognition helpers 2026-08-25 03:36:02 +02:00
Meta Vens
e7b66b35d5 Demote causal work identity helpers 2026-08-25 03:29:16 +02:00
Meta Vens
e905dcd976 Inline canonical brake surfaces 2026-08-25 02:35:56 +02:00
Meta Vens
1e4fa53393 Narrow packaged release API 2026-08-25 02:31:33 +02:00
Meta Vens
200732e951 Delete producerless provider health store 2026-08-25 02:25:44 +02:00
Meta Vens
fab6a59a32 Delete producerless runtime health publisher 2026-08-25 02:21:10 +02:00
Meta Vens
125d77a266 Collapse reorientation result projection 2026-08-25 01:07:39 +02:00
Meta Vens
2bcbf2687d Unify coordinator work projection 2026-08-25 00:59:40 +02:00
Meta Vens
5f1bea3913 Reuse exact Mind snapshot for fulfillment 2026-08-25 00:45:10 +02:00
Meta Vens
7374be5ece Project current work from one Mind snapshot 2026-08-25 00:31:24 +02:00
Meta Vens
a01c684262 Delete counterfeit Hands review authority 2026-08-24 23:21:26 +02:00
Meta Vens
24023265f4 Remove live Hands receipt rereads 2026-08-24 22:50:59 +02:00
Meta Vens
dbb00c2bf9 Cut model-turn display cargo 2026-08-24 22:34:43 +02:00
Meta Vens
2c3335dcaf Delete generic runtime job results 2026-08-24 22:20:55 +02:00
Meta Vens
cabdd6c386 Split coordinator authority from model sessions 2026-08-24 20:16:31 +02:00
Meta Vens
07529fb521 Collapse semantic state contracts into core 2026-08-24 18:29:58 +02:00
Meta Vens
fdefb8898a Delete test-only runtime writers 2026-08-24 11:43:37 +02:00
Meta Vens
83611f9b71 Collapse Eyes acceptance into Mind commits 2026-08-24 11:06:25 +02:00
Meta Vens
e60b924f73 Delete model runtime schema self-certificate 2026-08-24 10:32:34 +02:00
Meta Vens
a4356d1f12 Collapse runtime child schema echoes 2026-08-24 10:06:53 +02:00
Meta Vens
952dcd9f65 Strip objective intake ceremony 2026-08-24 09:07:42 +02:00
Meta Vens
65bf044f5c Remove shadow Hands receipt metadata 2026-08-24 07:47:27 +02:00
Meta Vens
fed4b85780 Delete duplicate continuity recovery receipts 2026-08-24 05:20:45 +02:00
Meta Vens
3140d3054a Delete dead Resident Self receipt contract 2026-08-24 04:51:24 +02:00
Meta Vens
be611f2411 Delete dead Imagination review contract 2026-08-24 04:45:31 +02:00
Meta Vens
f6a2ad7f84 Delete unconsumed release and trust readers 2026-08-24 04:42:09 +02:00
Meta Vens
6ccaf93704 Delete unowned Mind projection helpers 2026-08-24 04:31:46 +02:00
Meta Vens
5a0479446e Delete callerless helper APIs 2026-08-24 04:20:27 +02:00
Meta Vens
cd2177e834 Delete lenient session ensure writer 2026-08-24 04:09:56 +02:00
Meta Vens
3ed1d5649f Delete duplicate frontier Modeling writer 2026-08-24 02:46:12 +02:00
Meta Vens
8dbfcf6365 Delete final duplicate launch bindings 2026-08-24 02:20:01 +02:00
Meta Vens
ce306e230a Collapse duplicate Atlas authoring authority 2026-08-24 00:29:40 +02:00
Meta Vens
7cf6d45c6e Minimize archived session tombstones 2026-08-23 23:17:11 +02:00
Meta Vens
5ed5ca88c7 Internalize typed fulfillment machinery 2026-08-23 22:52:54 +02:00
Meta Vens
27c8389c38 Collapse prepared heartbeat job wrapper 2026-08-23 22:31:09 +02:00
Meta Vens
3eca33949a Delete aggregate runtime status projection 2026-08-23 22:23:04 +02:00
Meta Vens
2dfd8c728c Delete test-only Eyes claim challenge authority 2026-08-23 21:59:34 +02:00
Meta Vens
6e600e8d64 Delete counterfeit proposal intake authority 2026-08-23 21:31:38 +02:00
Meta Vens
ac6455c53b Delete dormant transaction injection seams 2026-08-23 20:58:47 +02:00
Meta Vens
40d00bc5ab Collapse duplicate planning eligibility 2026-08-23 20:47:28 +02:00
Meta Vens
1fea7bdeec Delete unused Hands chain reader 2026-08-23 20:41:28 +02:00
Meta Vens
25d4d1fa75 Delete callerless runtime spine authority 2026-08-23 20:31:59 +02:00
Meta Vens
a276d0f44a Collapse host verification into Bifrost admission 2026-08-23 19:42:26 +02:00
Meta Vens
940982232d Reduce host identity to public verification 2026-08-23 19:18:58 +02:00
Meta Vens
3dda58a539 Collapse Persona feedback ingress into Resident Self 2026-08-23 18:59:01 +02:00
Meta Vens
63939fa282 Delete Persona keyword tribunal 2026-08-23 16:47:43 +02:00