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>
170 lines
6.3 KiB
JSON
170 lines
6.3 KiB
JSON
{
|
|
"schemaVersion": "epiphany.cultnet_catalog.v0",
|
|
"schemas": [
|
|
{
|
|
"schemaId": "https://gamecult.dev/cultnet/gamecult.persona_state.v0.schema.json",
|
|
"kind": "document_payload",
|
|
"wireContracts": [
|
|
"cultnet.schema.v0"
|
|
],
|
|
"schemaVersion": "gamecult.persona_state.v0",
|
|
"documentType": "gamecult.persona_state.v0",
|
|
"title": "GameCult Persona State v0",
|
|
"path": "gamecult.persona_state.v0.schema.json"
|
|
},
|
|
{
|
|
"schemaId": "https://gamecult.dev/epiphany/cultnet/epiphany.work_organ_state.v0.schema.json",
|
|
"kind": "document_payload",
|
|
"wireContracts": [
|
|
"cultnet.schema.v0"
|
|
],
|
|
"schemaVersion": "epiphany.work_organ_state.v0",
|
|
"documentType": "epiphany.work_organ_state.v0",
|
|
"title": "Epiphany Work Organ State v0",
|
|
"path": "epiphany.work_organ_state.v0.schema.json"
|
|
},
|
|
{
|
|
"schemaId": "https://gamecult.dev/epiphany/cultnet/epiphany.pipeline.campaign.v1.schema.json",
|
|
"kind": "document_payload",
|
|
"wireContracts": [
|
|
"cultnet.schema.v0"
|
|
],
|
|
"schemaVersion": "epiphany.pipeline.campaign.v1",
|
|
"documentType": "epiphany.pipeline.campaign.v1",
|
|
"title": "Epiphany Pipeline Campaign v1",
|
|
"path": "epiphany.pipeline.campaign.v1.schema.json"
|
|
},
|
|
{
|
|
"schemaId": "https://gamecult.dev/epiphany/cultnet/epiphany.pipeline.target.v1.schema.json",
|
|
"kind": "document_payload",
|
|
"wireContracts": [
|
|
"cultnet.schema.v0"
|
|
],
|
|
"schemaVersion": "epiphany.pipeline.target.v1",
|
|
"documentType": "epiphany.pipeline.target.v1",
|
|
"title": "Epiphany Pipeline Target v1",
|
|
"path": "epiphany.pipeline.target.v1.schema.json"
|
|
},
|
|
{
|
|
"schemaId": "https://gamecult.dev/epiphany/cultnet/epiphany.pipeline.question.v1.schema.json",
|
|
"kind": "document_payload",
|
|
"wireContracts": [
|
|
"cultnet.schema.v0"
|
|
],
|
|
"schemaVersion": "epiphany.pipeline.question.v1",
|
|
"documentType": "epiphany.pipeline.question.v1",
|
|
"title": "Epiphany Pipeline Question v1",
|
|
"path": "epiphany.pipeline.question.v1.schema.json"
|
|
},
|
|
{
|
|
"schemaId": "https://gamecult.dev/epiphany/cultnet/epiphany.pipeline.ruling.v1.schema.json",
|
|
"kind": "document_payload",
|
|
"wireContracts": [
|
|
"cultnet.schema.v0"
|
|
],
|
|
"schemaVersion": "epiphany.pipeline.ruling.v1",
|
|
"documentType": "epiphany.pipeline.ruling.v1",
|
|
"title": "Epiphany Pipeline Ruling v1",
|
|
"path": "epiphany.pipeline.ruling.v1.schema.json"
|
|
},
|
|
{
|
|
"schemaId": "https://gamecult.dev/epiphany/cultnet/epiphany.pipeline.cut_spec.v1.schema.json",
|
|
"kind": "document_payload",
|
|
"wireContracts": [
|
|
"cultnet.schema.v0"
|
|
],
|
|
"schemaVersion": "epiphany.pipeline.cut_spec.v1",
|
|
"documentType": "epiphany.pipeline.cut_spec.v1",
|
|
"title": "Epiphany Pipeline CutSpec v1",
|
|
"path": "epiphany.pipeline.cut_spec.v1.schema.json"
|
|
},
|
|
{
|
|
"schemaId": "https://gamecult.dev/epiphany/cultnet/epiphany.pipeline.cut_report.v1.schema.json",
|
|
"kind": "document_payload",
|
|
"wireContracts": [
|
|
"cultnet.schema.v0"
|
|
],
|
|
"schemaVersion": "epiphany.pipeline.cut_report.v1",
|
|
"documentType": "epiphany.pipeline.cut_report.v1",
|
|
"title": "Epiphany Pipeline CutReport v1",
|
|
"path": "epiphany.pipeline.cut_report.v1.schema.json"
|
|
},
|
|
{
|
|
"schemaId": "https://gamecult.dev/epiphany/cultnet/epiphany.pipeline.verdict.v1.schema.json",
|
|
"kind": "document_payload",
|
|
"wireContracts": [
|
|
"cultnet.schema.v0"
|
|
],
|
|
"schemaVersion": "epiphany.pipeline.verdict.v1",
|
|
"documentType": "epiphany.pipeline.verdict.v1",
|
|
"title": "Epiphany Pipeline Verdict v1",
|
|
"path": "epiphany.pipeline.verdict.v1.schema.json"
|
|
},
|
|
{
|
|
"schemaId": "https://gamecult.dev/epiphany/cultnet/epiphany.pipeline.finding.v1.schema.json",
|
|
"kind": "document_payload",
|
|
"wireContracts": [
|
|
"cultnet.schema.v0"
|
|
],
|
|
"schemaVersion": "epiphany.pipeline.finding.v1",
|
|
"documentType": "epiphany.pipeline.finding.v1",
|
|
"title": "Epiphany Pipeline Finding v1",
|
|
"path": "epiphany.pipeline.finding.v1.schema.json"
|
|
},
|
|
{
|
|
"schemaId": "https://gamecult.dev/epiphany/cultnet/epiphany.pipeline.follow_up.v1.schema.json",
|
|
"kind": "document_payload",
|
|
"wireContracts": [
|
|
"cultnet.schema.v0"
|
|
],
|
|
"schemaVersion": "epiphany.pipeline.follow_up.v1",
|
|
"documentType": "epiphany.pipeline.follow_up.v1",
|
|
"title": "Epiphany Pipeline FollowUp v1",
|
|
"path": "epiphany.pipeline.follow_up.v1.schema.json"
|
|
},
|
|
{
|
|
"schemaId": "https://gamecult.dev/epiphany/cultnet/epiphany.pipeline.resolution.v1.schema.json",
|
|
"kind": "document_payload",
|
|
"wireContracts": [
|
|
"cultnet.schema.v0"
|
|
],
|
|
"schemaVersion": "epiphany.pipeline.resolution.v1",
|
|
"documentType": "epiphany.pipeline.resolution.v1",
|
|
"title": "Epiphany Pipeline Resolution v1",
|
|
"path": "epiphany.pipeline.resolution.v1.schema.json"
|
|
},
|
|
{
|
|
"schemaId": "https://gamecult.dev/epiphany/cultnet/epiphany.pipeline.instance.v1.schema.json",
|
|
"kind": "document_payload",
|
|
"wireContracts": [
|
|
"cultnet.schema.v0"
|
|
],
|
|
"schemaVersion": "epiphany.pipeline.instance.v1",
|
|
"documentType": "epiphany.pipeline.instance.v1",
|
|
"title": "Epiphany Pipeline Instance v1",
|
|
"path": "epiphany.pipeline.instance.v1.schema.json"
|
|
},
|
|
{
|
|
"schemaId": "https://gamecult.dev/epiphany/cultnet/epiphany.pipeline.stewardship.v1.schema.json",
|
|
"kind": "document_payload",
|
|
"wireContracts": [
|
|
"cultnet.schema.v0"
|
|
],
|
|
"schemaVersion": "epiphany.pipeline.stewardship.v1",
|
|
"documentType": "epiphany.pipeline.stewardship.v1",
|
|
"title": "Epiphany Pipeline Stewardship v1",
|
|
"path": "epiphany.pipeline.stewardship.v1.schema.json"
|
|
},
|
|
{
|
|
"schemaId": "https://gamecult.dev/epiphany/cultnet/epiphany.pipeline.hand_off.v1.schema.json",
|
|
"kind": "document_payload",
|
|
"wireContracts": [
|
|
"cultnet.schema.v0"
|
|
],
|
|
"schemaVersion": "epiphany.pipeline.hand_off.v1",
|
|
"documentType": "epiphany.pipeline.hand_off.v1",
|
|
"title": "Epiphany Pipeline HandOff v1",
|
|
"path": "epiphany.pipeline.hand_off.v1.schema.json"
|
|
}
|
|
]
|
|
}
|