Commit graph Epiphany/schemas
Author SHA1 Message Date
Meta Vens
3ee78e05a4 State that enum widening keeps the epoch
The operator ruled on 2026-09-16 that widening a `PipelineKind` enum is
additive. The README's additive rule named only a new field with a serde
default, which is true and stays, but did not cover the case.

The clause says why in the README's own voice: these readers are ours and each
ships with the variants it knows, so a reader that meets a kind it has never
heard of refuses it on the kind, not on the epoch. That is also the answer to
the tension with the wire note two sentences earlier -- the contracts do cross
out of this repo, and the rule holds because the readers on the other side are
still ours. If that stops being true, the rule needs revisiting.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-16 12:19:14 +02:00
Meta Vens
d17cc4415f Stop telling readers pipeline state lives in a repo
The Main Families entry still said pipeline state is "stored per repo at
`.epiphany/pipeline/pipeline.cc`", which Cut 4 deleted, and the wire note still
sent these contracts to the voidbot projection. Both describe a machine that no
longer exists.

Pipeline state now lives in an instance's mind, owned by the Huginn memory
organ, and the contracts cross to that organ and its `eureka-state` client. The
three kinds this branch added are named, since the list is the entry's point.
The `[value]` payload sentence, the derivation sentence and the Q2 evolution
sentence stand; the derivation sentence now says which package runs the check.

Documentation only: no build, no test.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-16 11:40:25 +02:00
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
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
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
87ea81db2a Retire obsolete provider request publication 2026-08-24 23:52:00 +02:00
Meta Vens
8bb0719bc6 Collapse CultNet catalog to earned boundaries 2026-08-24 07:03:42 +02:00
Meta Vens
dbed11b3e9 Delete dead runtime CultNet contracts 2026-08-24 06:50:03 +02:00
Meta Vens
fe118e13c3 Delete duplicate provider stream persistence 2026-08-24 06:43:33 +02:00
Meta Vens
2a435eb5ab Delete duplicate Persona and tool receipt cargo 2026-08-24 06:03:28 +02:00
Meta Vens
0091e0e122 Delete unread model adapter status families 2026-08-24 05:03:45 +02:00
Meta Vens
196222d991 Minimize runtime lifecycle documents 2026-08-24 03:46:29 +02:00
Meta Vens
63d2991e63 Minimize coordinator terminal receipts 2026-08-24 03:15:12 +02:00
Meta Vens
bfeda461af Record runtime registry ownership cut 2026-08-23 16:29:33 +02:00
Meta Vens
03140a47db Delete false runtime catalog authority 2026-08-23 16:24:53 +02:00
Meta Vens
beb9fd32a9 Delete producerless tool capabilities 2026-08-23 12:40:11 +02:00
Meta Vens
ab3cacfbf7 Delete fictional contracts and dead prompt surfaces 2026-08-23 11:40:39 +02:00
Meta Vens
f10f7fb3bd Delete counterfeit surface schemas 2026-08-23 11:17:24 +02:00
Meta Vens
78836f3b45 Delete unconsumed status tableaux 2026-08-23 11:08:48 +02:00
Meta Vens
2ce9146131 Delete duplicate operator policy surfaces 2026-08-23 10:58:26 +02:00
Meta Vens
4d0db2c7b4 Delete the heartbeat scheduler authority 2026-08-23 06:21:38 +02:00
Meta Vens
ca05684412 Split Persona social authority from heartbeat 2026-08-23 05:34:57 +02:00
Meta Vens
2164bd0a21 Collapse heartbeat to owned physiology 2026-08-23 04:31:28 +02:00
Meta Vens
39dd9fdba9 Delete aggregate role-memory authority 2026-08-23 04:02:50 +02:00
Meta Vens
387afe4941 Remove parallel executable control planes 2026-08-23 01:51:24 +02:00
Meta Vens
1d5a1f1793 Delete unowned executable surfaces 2026-08-23 01:32:47 +02:00
Meta Vens
ab321b3434 Add decision-auditable OpenRouter transport 2026-08-22 07:39:46 +02:00
Meta Vens
c40aa286d4 Unify terminal tool receipt authority 2026-08-14 03:11:07 +02:00
Meta Vens
8fb61ac236 Bind public Eyes evidence to exact source authority 2026-08-11 22:07:02 +02:00
Meta Vens
c137e16ba5 Archive completed model generations 2026-08-10 01:51:52 +01:00
Meta Vens
f565ad6a73 Bind tool executions to runtime ownership 2026-08-10 01:18:23 +01:00
Meta Vens
2d817522ce Bind model executions to runtime sessions 2026-08-10 01:01:54 +01:00
Meta Vens
2f22dbbca7 Bind repo work adoption to Mind authority 2026-07-13 19:38:35 +01:00
Meta Vens
fcbab316e6 Bind Modeling memory to live source truth 2026-07-13 18:51:38 +01:00
Meta Vens
6544562389 Rebuild the typed Persona projection 2026-07-13 18:09:32 +01:00
Meta Vens
7e4564a34f Type the Persona chat artifact contract 2026-07-13 17:58:35 +01:00
Meta Vens
59fd800702 Align Persona artifacts with typed contracts 2026-07-13 17:51:17 +01:00
Meta Vens
4e1b80c98a Derive Persona bubble projection status 2026-07-13 17:22:59 +01:00
Meta Vens
e30f91167f Delete writerless operator status schema 2026-07-12 22:09:38 +01:00
Meta Vens
aade4f4980 Add Bifrost-backed Persona Reddit mouth 2026-06-22 14:45:49 +01:00
Meta Vens
b791f8b315 Route Persona Discord speech through Bifrost 2026-06-22 14:35:17 +01:00
Meta Vens
8c2b08b463 Rename Face to Persona and Proprioception to Modeling 2026-06-15 16:38:09 +01:00
Meta Vens
18751933e0 Project Face as Persona state 2026-05-29 02:19:53 +01:00
Meta Vens
91fb98e32d Type Persona candidate actions 2026-05-29 02:02:42 +01:00
Meta Vens
ebd5ee2a3b Canonize Persona state v0 2026-05-29 02:00:06 +01:00
Meta Vens
ac822e002a Tighten Persona state contract 2026-05-29 01:49:54 +01:00
Meta Vens
d04cde2c5e Split organ state from Persona state 2026-05-29 01:23:43 +01:00
Meta Vens
552cd11680 Document Epiphany anatomy and notes index 2026-05-29 00:16:05 +01:00
Meta Vens
795b231e61 Make continuity a protocol instead of Life 2026-05-29 00:09:40 +01:00
Meta Vens
47c010ba13 Split Body from Proprioception and Substrate Gate 2026-05-28 22:50:50 +01:00