This repository has been archived on 2026-10-29. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
Epiphany/epiphany-pipeline/Cargo.toml

27 lines
834 B
TOML
Raw Normal View History

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
[package]
name = "epiphany-pipeline"
version = "0.1.0"
edition = "2024"
publish = false
autobins = false
license-file = "../LICENSE"
[lib]
name = "epiphany_pipeline"
path = "src/lib.rs"
Cut 8, Epiphany half: the leaf's write path goes live for the organ `epiphany-pipeline` was the organ's type library with its prepare, decode, register and validate path gated `cfg(test)` "until the organ prepares writes (Cut 8)". This is Cut 8. The four are `pub` and un-gated: `register_pipeline_document_types` registers the thirteen kinds and nothing else, `PipelineDocument::prepare` and `::decode` are the one door to the crate-private wrappers, and `validate_pipeline_write_envelope` returns `PipelineRefusal` directly, which drops the `downcast_ref` in the key test. `anyhow` and `rmp-serde` move from dev to normal dependencies; both were already in the lock, so the lock is unchanged. The test stand-in `ForeignDocument` stays `cfg(test)` and is registered by the tests' `schema_cache`, no longer by the live registrar. `PIPELINE_SCHEMA_EPOCH` returns as one `pub const` beside the schemas it names, with the README's evolution rule as its doc comment: additive keeps it, a widened `PipelineKind` is additive, a breaking bump refuses the old store. `every_kind_is_at_the_epochs_version` reads the version off the constant and holds every type id to it, and counts the live registrar's types against `PipelineKind::ALL`. Verification: `cargo check -p epiphany-pipeline --lib --tests` and `cargo test -p epiphany-pipeline --lib` (27 passed, 0 warnings); `cargo check -p epiphany-core --lib --tests` untouched; `cfg(test)` in lib.rs is now only `derived_schema`, `ForeignDocument` and `mod tests`; `schemas/cultnet/` and `Cargo.lock` unchanged. Mutations `tools/eureka-cut8-epiphany-mutations.psd1`: M0 green, E1 (epoch `.v2`), E2 (one kind fewer registered), E3 (the stand-in registered again under `cfg(test)`) all killed by the new test. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-16 16:21:34 +02:00
# A leaf type library. Every dependency here is one the document types or the
# write path need in a non-test build: the organ prepares, decodes and
# validates envelopes through this crate, so `anyhow` (the cache's error type)
# and `rmp-serde` (the payload decode) are normal dependencies. Only the
# schema-publication check needs JSON.
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
[dependencies]
Cut 8, Epiphany half: the leaf's write path goes live for the organ `epiphany-pipeline` was the organ's type library with its prepare, decode, register and validate path gated `cfg(test)` "until the organ prepares writes (Cut 8)". This is Cut 8. The four are `pub` and un-gated: `register_pipeline_document_types` registers the thirteen kinds and nothing else, `PipelineDocument::prepare` and `::decode` are the one door to the crate-private wrappers, and `validate_pipeline_write_envelope` returns `PipelineRefusal` directly, which drops the `downcast_ref` in the key test. `anyhow` and `rmp-serde` move from dev to normal dependencies; both were already in the lock, so the lock is unchanged. The test stand-in `ForeignDocument` stays `cfg(test)` and is registered by the tests' `schema_cache`, no longer by the live registrar. `PIPELINE_SCHEMA_EPOCH` returns as one `pub const` beside the schemas it names, with the README's evolution rule as its doc comment: additive keeps it, a widened `PipelineKind` is additive, a breaking bump refuses the old store. `every_kind_is_at_the_epochs_version` reads the version off the constant and holds every type id to it, and counts the live registrar's types against `PipelineKind::ALL`. Verification: `cargo check -p epiphany-pipeline --lib --tests` and `cargo test -p epiphany-pipeline --lib` (27 passed, 0 warnings); `cargo check -p epiphany-core --lib --tests` untouched; `cfg(test)` in lib.rs is now only `derived_schema`, `ForeignDocument` and `mod tests`; `schemas/cultnet/` and `Cargo.lock` unchanged. Mutations `tools/eureka-cut8-epiphany-mutations.psd1`: M0 green, E1 (epoch `.v2`), E2 (one kind fewer registered), E3 (the stand-in registered again under `cfg(test)`) all killed by the new test. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-16 16:21:34 +02:00
anyhow = "1"
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
chrono = "0.4.44"
cultcache-rs = { git = "https://github.com/GameCult/CultLib.git", rev = "a0813c6eed24d30bf88073ef615b633c77ebfcd6", package = "cultcache-rs" }
Cut 8, Epiphany half: the leaf's write path goes live for the organ `epiphany-pipeline` was the organ's type library with its prepare, decode, register and validate path gated `cfg(test)` "until the organ prepares writes (Cut 8)". This is Cut 8. The four are `pub` and un-gated: `register_pipeline_document_types` registers the thirteen kinds and nothing else, `PipelineDocument::prepare` and `::decode` are the one door to the crate-private wrappers, and `validate_pipeline_write_envelope` returns `PipelineRefusal` directly, which drops the `downcast_ref` in the key test. `anyhow` and `rmp-serde` move from dev to normal dependencies; both were already in the lock, so the lock is unchanged. The test stand-in `ForeignDocument` stays `cfg(test)` and is registered by the tests' `schema_cache`, no longer by the live registrar. `PIPELINE_SCHEMA_EPOCH` returns as one `pub const` beside the schemas it names, with the README's evolution rule as its doc comment: additive keeps it, a widened `PipelineKind` is additive, a breaking bump refuses the old store. `every_kind_is_at_the_epochs_version` reads the version off the constant and holds every type id to it, and counts the live registrar's types against `PipelineKind::ALL`. Verification: `cargo check -p epiphany-pipeline --lib --tests` and `cargo test -p epiphany-pipeline --lib` (27 passed, 0 warnings); `cargo check -p epiphany-core --lib --tests` untouched; `cfg(test)` in lib.rs is now only `derived_schema`, `ForeignDocument` and `mod tests`; `schemas/cultnet/` and `Cargo.lock` unchanged. Mutations `tools/eureka-cut8-epiphany-mutations.psd1`: M0 green, E1 (epoch `.v2`), E2 (one kind fewer registered), E3 (the stand-in registered again under `cfg(test)`) all killed by the new test. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-16 16:21:34 +02:00
rmp-serde = "1"
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
schemars = "1"
serde = { version = "1", features = ["derive"] }
[dev-dependencies]
serde_json = "1"