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>
1 line
61 B
Text
1 line
61 B
Text
/schemas/cultnet/epiphany.pipeline.*.schema.json text eol=lf
|