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/schemas/cultnet
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Meta Vens b4f88d2980 Close Soul's Cut 3a findings and land rulings 10-12
One store per clone, numeric attempt and pass, and identity enforced by the
profile that owns the commit. The three files change together because the
profile's validator signature, the documents that implement it and the store
that installs it are one interlocking contract; no smaller split builds.

Ruling 10, one store per clone. `main_work_tree` resolves the clone's main
working tree from any worktree through the git common dir, and both
`PipelineStore::open` and `PipelineWriter::attach` go through it, so a caller
in a worktree reads and admits into the main tree's store. A bare clone or any
layout without one main tree refuses `NoMainWorkTree`; there is no
worktree-only mode. `require_branch` binds to the main tree, so a campaign
whose branch is checked out only in a linked worktree is refused rather than
quietly given a second store.

Ruling 11, numeric labels. `attempt` and `pass` are `u32`, keyed
`cut-<cut>.h<N>` and `cut-<cut>.s<N>`.

Ruling 12, identity on first write. `TypedCommitStore` now validates a whole
batch against the image it will be applied to (`validate_writes`), replacing
the per-envelope hook rather than adding a second one. The pipeline profile
refuses a first write that does not carry the identity, so the single owner can
never admit a store its own opener refuses (F1).

F2: a finding label carries no dot and parent locals parse strictly, so two
documents cannot compose one key. Soul's collision pairs are tested.
F3: parent ids are parsed with an exact segment count, a campaign match, a kind
match, a validated local, and a marker followed by digits.
F4: a resolution's subject id is validated as a full id of its declared kind,
by `PipelineRef` itself, so kind and id cannot disagree anywhere.
F5: the ten document wrappers, the identity, provenance and holder wrappers and
their value fields are crate-private, and the crate's only commit path to a
pipeline store is a `cfg(test)` helper taking `&PipelineWriter`. Binding the
owner to the lease is Cut 3b.
F6: covered by ruling 10, with the previous claim corrected: a worktree does
not keep its own store, and a second attach from any tree is refused.
F7: the holder record is written only under the lock and removed on drop, and a
refusal names a holder only when it is plausibly current, matching host and
live process incarnation. A record left by a crash names nobody.
F8: the git checks read the committed blob at HEAD, so they answer the same on
every machine. Attribute and exclude files are nulled on every git child. The
working tree and `.git/info/exclude` deliberately do not count, because the rule
is about what the repository commits.

Low items: `value_types!` is the single field list, emitting each struct and its
`Bounded` impl from the same tokens, and format rules moved into the field types
(`Label`, `Slug`, `OrgRepo`, `FullSha`, `Sha256Hex`), so a field cannot be
declared without being validated and a list without a cap does not compile. That
applies the `Org/Repo` check to every repo field. `LandedNameKind` is deleted and
`LandedName` is a name and a path. The schemas carry `maxLength` and `maxItems`.

Builds clean with no warnings; `cargo test -p epiphany-core --lib` passes
179/179.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-15 22:55:00 +02:00
..
epiphany.pipeline.campaign.v1.schema.json Close Soul's Cut 3a findings and land rulings 10-12 2026-09-15 22:55:00 +02:00
epiphany.pipeline.cut_report.v1.schema.json Close Soul's Cut 3a findings and land rulings 10-12 2026-09-15 22:55:00 +02:00
epiphany.pipeline.cut_spec.v1.schema.json Close Soul's Cut 3a findings and land rulings 10-12 2026-09-15 22:55:00 +02:00
epiphany.pipeline.finding.v1.schema.json Close Soul's Cut 3a findings and land rulings 10-12 2026-09-15 22:55:00 +02:00
epiphany.pipeline.follow_up.v1.schema.json Close Soul's Cut 3a findings and land rulings 10-12 2026-09-15 22:55:00 +02:00
epiphany.pipeline.question.v1.schema.json Close Soul's Cut 3a findings and land rulings 10-12 2026-09-15 22:55:00 +02:00
epiphany.pipeline.resolution.v1.schema.json Close Soul's Cut 3a findings and land rulings 10-12 2026-09-15 22:55:00 +02:00
epiphany.pipeline.ruling.v1.schema.json Close Soul's Cut 3a findings and land rulings 10-12 2026-09-15 22:55:00 +02:00
epiphany.pipeline.target.v1.schema.json Close Soul's Cut 3a findings and land rulings 10-12 2026-09-15 22:55:00 +02:00
epiphany.pipeline.verdict.v1.schema.json Close Soul's Cut 3a findings and land rulings 10-12 2026-09-15 22:55:00 +02:00
epiphany.work_organ_state.v0.schema.json Rename Face to Persona and Proprioception to Modeling 2026-06-15 16:38:09 +01:00
gamecult.persona_state.v0.schema.json Rename Face to Persona and Proprioception to Modeling 2026-06-15 16:38:09 +01:00
index.json Add pipeline documents, store opener, writer lease and schemas 2026-09-15 21:55:04 +02:00
README.md Add pipeline documents, store opener, writer lease and schemas 2026-09-15 21:55:04 +02:00

CultNet Schemas

This folder contains Epiphany's JSON Schema publication artifacts for typed CultNet boundaries. Typed Rust documents registered in CultCache remain the runtime authority; these files help foreign consumers inspect the wire shape.

The product direction is project-native agency: clients should speak to a project or one of its Personas/Personas, then watch typed scheduling, memory, evidence, and authority surfaces do the structuring work. Aquarium is the most direct client, but Discord, voice/WebRTC rooms, stream overlays, native CLIs, and other trusted tools should discover the same contracts instead of inventing private command verbs.

What Lives Here

  • index.json: publication manifest for providers that expose these contracts.
  • *.schema.json: top-level JSON Schema receipts for payload/document shapes.

The catalog contains only contracts that cross an owned boundary. Runtime-local CultCache documents are discovered from the runtime's native registration and projected by their owning CultMesh provider. They are not copied into a second hand-maintained JSON registry.

Main Families

  • gamecult.persona_state.v0: portable public Persona state.
  • epiphany.work_organ_state.v0: portable state for lean work organs.
  • epiphany.pipeline.*.v1: Eureka pipeline state (campaign, target, question, ruling, cut spec, cut report, verdict, finding, follow-up, resolution), stored per repo at .epiphany/pipeline/pipeline.cc.

Pipeline wire note: each document payload is [value], a one-element MessagePack array whose element is the named map the schema describes. These contracts cross to Eureka MCP clients and the voidbot projection. The files are derived from the Rust value types and checked byte-for-byte by pipeline_published_schemas_match_derivation; text bounds are UTF-8 bytes and enforced by admission, not by the schema. Evolution is additive: a new named field with a serde default keeps epiphany.pipeline.epoch.v1; a breaking change bumps the epoch, and the new binary refuses the old store.

Provider request contracts are owned by their provider boundary. The shared Codex contract lives in GameCult/CodexConnector; Epiphany's closed durable provider-request document is private Mind state, not a public CultNet promise.

The catalog publishes contracts the executable body actually produces or consumes. Editor capabilities are provider-owned CultMesh/Eve surfaces, not Epiphany-owned Rider or Unity command families. Brokkr owns Unity editor inspection and actuation; a future Rider daemon will own Rider integration.

Publication Path

The provider that owns a live CultMesh/CultNet surface owns its schema-catalog response. This directory supplies publication artifacts; it is not a second runtime registry and no standalone Epiphany catalog command impersonates a service. The native model preflight derives its accepted document types from the same CultCache registrations used to open the runtime Mind store.