Give the instance check one owner and drop the dead serde mirror

Ruling 14's comparison moves out of `admit_steps` into
`Mind::require_instance`, so admission and the CultNet surface's reads ask one
function rather than two copies of one rule. A1 calls it where the inline
comparison was and behaves as before.

The leaf derives `Serialize`, `Deserialize` and `JsonSchema` for
`PipelineRefusal` at the pinned revision, so serde's remote definition of it
is deleted and `MindRefusal::Document` wraps the leaf's value directly.
`PipelineAdmissionBatch` derives the same three and loses the doc sentence
that claimed it could not.

The crate re-exports `epiphany_pipeline` and the owned redb store type, so the
daemon and the client name the leaf's types and the store through one
dependency entry at one revision instead of declaring the git dependency
twice.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
Meta Vens 2026-09-16 22:49:49 +02:00
commit f7170fadf9
6 changed files with 57 additions and 33 deletions

View file

@ -36,14 +36,18 @@
# and H67 by file alone, and H47 and H60 re-anchored on the scope selectors
# `assignments_of` and `resolutions_of` the move extracted. Their rules are
# unchanged.
#
# Cut 10 moved A1's comparison into `Mind::require_instance`, which admission
# and the daemon's reads now share, so H1 anchors on `mind.rs`. One mutant,
# two suites, one owner: the same edit is `D1` in `eureka-cut10-mutations.psd1`.
@{
Mutations = @(
@{
Id = 'H1'
Rule = 'Ruling 14: admission refuses another instance''s identity (A1).'
Test = 'admission::tests::admission_refuses_a_foreign_instance_whatever_the_transport'
File = 'crates/huginn-mind/src/admission.rs'
Old = ' if instance != self.instance() {'
File = 'crates/huginn-mind/src/mind.rs'
Old = ' if declared != self.instance() {'
New = ' if false {'
}
@{