From c3193c3469da3f425e3343b94284b192b0c97a5b Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Sun, 12 Jul 2026 18:59:09 +0100 Subject: [PATCH] Audit conceptual authority substitutions --- ...onceptual-substitution-audit-2026-07-12.md | 75 ++++++++++++++++++ state/ledgers.msgpack | Bin 427247 -> 427906 bytes state/map.yaml | 3 +- 3 files changed, 77 insertions(+), 1 deletion(-) create mode 100644 notes/conceptual-substitution-audit-2026-07-12.md diff --git a/notes/conceptual-substitution-audit-2026-07-12.md b/notes/conceptual-substitution-audit-2026-07-12.md new file mode 100644 index 00000000..1396d531 --- /dev/null +++ b/notes/conceptual-substitution-audit-2026-07-12.md @@ -0,0 +1,75 @@ +# Conceptual Substitution Audit — 2026-07-12 + +## Objective + +Find places where an Epiphany projection, bootstrap fixture, local receipt, or +compatibility mouth has silently inherited the name or authority of the body it +describes. This is a Modeling report, not an implementation plan. + +## Detection rule + +A substitution is confirmed when all three are true: + +1. the code names or reports an external/runtime consequence; +2. the named owner does not participate in producing the result; and +3. Epiphany can create the supposedly observed/accepted result from defaults or + caller assertions alone. + +## Confirmed substitutions + +| Severity | Claimed reality | Actual writer | Evidence | Correct owner boundary | +|---|---|---|---|---| +| Critical | Bifrost/GitHub publication, artifact acceptance, public-proof publication, and metrics receipts | `epiphany-verse-query` constructs and persists the receipts from CLI cargo, including default accepted/published statuses and caller-provided URLs, ledger ids, reviews, and commit ids | `epiphany-core/src/bin/epiphany-verse-query.rs` publication command families; constructors/writers in `cultmesh_integration.rs` | Epiphany may write a publication request. Bifrost/GitHub/Maintainer responses must be ingested from their owning bodies and cannot be authored locally. | +| Critical | Seven deployed daemons are ready | `seed_epiphany_local_verse_context` creates missing daemon-status documents from `epiphany_cultmesh_daemon_statuses`, which hard-codes `status="ready"` and stamps the seed time as heartbeat time | `cultmesh_integration.rs:5780-5811`, `6824+`; introduced by `d7b92101` | A daemon or Idunn-owned native observation writes liveness. Missing evidence remains unknown/missing. | +| High | Active, daemon-live provider advertisements and daemon-owned Eve surfaces | Central static builders synthesize all seven advertisements/surfaces; compatibility advertisements unconditionally publish `status="active"` and `mode="daemon-live"`; narrow loaders fall back to generated advertisements/surfaces when records are absent | `epiphany_gamecult_eve_provider_advertisements`, `epiphany_cultmesh_eve_surface_states`, `load_epiphany_cultmesh_eve_surface_directory` | Each provider publishes its surface and status. Discovery may report absence; it must not materialize the provider. | +| High | A daemon tool was invoked and accepted | `invoke-tool` writes local intent/receipt documents and returns readbacks/routing summaries; the hosting daemon does not receive or author the receipt | invocation path and `default_daemon_tool_receipt_status/result_ref/result_summary` in `epiphany-verse-query.rs` | The caller writes an intent. The host daemon executes/refuses and authors the result receipt. | +| High | An Eve connection was accepted | `connect-eve` selects a local advertisement, then constructs both the connection intent and an `accepted-for-consensus-discovery` receipt in the same process without contacting the target provider | `epiphany-verse-query.rs:1688+`; introduced by `d7b92101` | The requester authors the intent. The target/provider boundary authors acceptance or refusal. | +| High | A lifecycle poke happened and produced a resulting status | `poke-daemon` accepts `--resulting-status`, defaults it to the already observed status, and writes both intent and receipt locally; `poke-down-daemons` repeats the pattern | `epiphany-verse-query.rs:655+`, `write_daemon_poke_receipts`; introduced by `d7b92101` | Operator/Self authors poke intent. Idunn or the target lifecycle owner authors execution/result and fresh observation. | +| High | Daemon liveness is current telemetry | `daemon-status` / `set-daemon-status` lets the local query CLI set arbitrary status, defaults to `ready`, and stamps the current time as `last_heartbeat_utc` | `epiphany-verse-query.rs:926+` | Daemon heartbeat or Idunn process observation owns telemetry; operator annotations are separate documents. | +| Medium | Read-only diagnostics are reads | `swarm-status`, `swarm-overview`, topology, Eve directory, tools, and many receipt commands call the broad seeder before loading; observation therefore creates topology, advertisements, surfaces, capabilities, default liveness, operator status, and contracts | command arms calling `seed_epiphany_local_verse_context` | Bootstrap/migration is an explicit write command. Diagnostics use narrow readers and preserve missing state. | + +## Plausible risks requiring a later focused audit + +- `bifrost-ledger` is presently a local aggregation over locally writable + Bifrost-shaped receipts. Its report logic is harmless only after receipt + provenance is repaired; until then the name overstates its authority. +- Static cluster topology equates seven logical faculties with seven deployed + daemons and private Verses. This may be an intended deployment model, but + current source proves the topology declaration, not seven running bodies. +- `swarm-overview` contains recommendations and action queues. These are + currently non-mutating hints, but the report must not become a second Self or + Idunn merely because it can derive a command string. +- The large `state/map.yaml` retains historical claims from the contaminated + June swarm-surface campaign. Live corrections take precedence, but a later + distillation should remove obsolete authority prose rather than relying on + readers to notice the newest paragraph. + +## Clean boundaries inspected + +- Canonical thread state has one transaction writer and explicit stale checks. +- Repo-work Modeling generation/route admission uses typed immutable evidence + and current-generation validation rather than display artifacts. +- Managed-service reconciliation delegates process launch to Idunn's lifecycle + primitive and uses native process observation. +- The retained OpenAI/Codex layer is described and tested as transport/ + compatibility rather than Epiphany workflow authority. + +## Provenance + +The largest cluster originated in commit `d7b92101` (`Grow typed swarm state +surfaces`, 2026-06-18). That pass made many useful schemas but collapsed four +different authorities into one convenience mouth: bootstrap, observation, +request routing, and provider receipt authorship. Later commits strengthened +the receipts and projections without first separating those writers. + +## Recommended cut order + +1. Stop read commands from seeding; missing state must remain missing. +2. Replace fabricated daemon readiness with Idunn/daemon-authored observation. +3. Split every request/response pair so Epiphany cannot author the provider's + response receipt. +4. Demote local Bifrost/GitHub receipt constructors to request fixtures or + tests, then ingest real provider-authored receipts. +5. Make provider-owned Eve publication explicit; remove generated fallback + surfaces from discovery loaders. + diff --git a/state/ledgers.msgpack b/state/ledgers.msgpack index cbb4ef010380fb607d6b667cc097edc696fa2fee..8eb07df0163c41e1123226707eb70aee9dd3672e 100644 GIT binary patch delta 702 zcmZuvv2GJV5XFY1qoAP(%}6vLa=x>r;NTVoi3l2mDAJ(0y>YzC-tJ{**1|NFf&`+X z!QvO7L!v9} z(ab)f2zjx=|LE6`LqpE`V=%!R>Lj5nIMpmxQf>iEjTM-NS4(3DhxQ11=bJ@Qfl8Fj137OtFsEpb$fAnKRTNwK{|aC9&ej5DA;b zE*M=gDn*^FYm}y(qH{Hx6Q#xsK&wpAqO&gv(1@KAEHC&9mp{4~=2kn)gE^HFf&)%* ziiUU>te=MyDl%HCa!*DI(zY(6>!mQsEJUb-%yg;KL@a>n!iLw`DVc?Fq`$cfo@u0S zhHNK%VSrO1`N%)LKYFO{ zFvXk-58w%PA<6`NP(QPV|D{))r&s*D6N9!Hzyljqib(>NL4xLU*kM#RfnIdZ8qK>7 gL3Bav;Cy&v@z@8w6uK6NO?s+8z0vR%n?whH00bibNdN!< delta 59 zcmZqbmwMkRwLy%L*UZY$*viB#>KFrC^O?=cjD?Jh-