Audit conceptual authority substitutions

This commit is contained in:
Meta Vens 2026-07-12 18:59:09 +01:00
commit c3193c3469
3 changed files with 77 additions and 1 deletions

View file

@ -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.

Binary file not shown.

View file

@ -70,6 +70,7 @@ data_flow:
- move historical proof to git, commits, smoke artifacts, or distilled evidence rather than plan prose
active_subgoals:
- Use `notes/conceptual-substitution-audit-2026-07-12.md` as the current authority-corrosion audit. The June 18 typed swarm-surface pass collapsed bootstrap, observation, request routing, and provider receipt authorship into one local CLI. Highest-priority correction: read commands must not seed state, missing daemon/provider truth must remain missing, and only the named provider/lifecycle body may author response receipts.
- `swarm-overview` is an Epiphany-local, renderer-neutral diagnostic projection over provider-owned typed state. It owns no lifecycle, discovery, composition, or mutation authority. Epiphany publishes clean provider-owned Eve surfaces; Odin may discover them; downstream lowerers and compositors remain outside Epiphany's concern.
- Idunn owns daemon survival and service lifecycle physiology. Codex/operator sessions may inspect, generate runbooks, and route explicit operator authority, but keeping daemons alive belongs to Idunn-owned service lifecycle receipts, scheduler policy, audits, and aftercare. Do not let Self, diagnostic projections, or ad hoc wrapper summaries become a second daemon-keeper. Global tool readbacks for Self `service-health`, `service-policy-directory`, and `swarm-online-runbook` state `lifecycleOwner=Idunn` and `hostedBody=Epiphany` without service mutation or private-state exposure.
- Use `notes/epiphany-cultmesh-dreaming-roadmap.md` as the design authority for distributed Epiphany dreaming. Public dreams are separately authored typed documents distributed through CultMesh/CultNet; private state remains local and cannot be shared by flipping a visibility flag. Foreign dreams are external thought weather until a reviewed local adoption receipt digests them into memory, planning, doctrine, or governance.
@ -659,4 +660,4 @@ current_status:
- Service lifecycle receipt history is now event-only: `load_epiphany_cultmesh_daemon_service_lifecycle_receipts` filters out the `epiphany-local/daemon-service-lifecycle-receipt/latest` mirror, while `load_latest_epiphany_cultmesh_daemon_service_lifecycle_receipt` remains the latest-state reader. Focused unit test `service_lifecycle_receipt_history_excludes_latest_mirror` proves two per-receipt writes return exactly two history records and latest points at the second. Fresh smoke `verse-query-lifecycle-history-filter-smoke` and live overview/triage `local-20260618-145632-497-efac6f0d` / `local-20260618-145632-321-867947af` prove compact swarm sights still expose service lifecycle attention plus the present elevated runbook artifact without daemon pokes or service mutation. Do not use a broad unscoped cargo test filter for this check on Windows; it fans out across bin harnesses and hit a broken pipe during this pass.
- `epiphany-verse-query seed-compact` is the compact seed receipt for wrappers and read-only rites. The older `seed` command still prints the full local Verse context for explicit debugging, but compact wrapper modes now avoid full `seed`/final `query` readback after the combined overview proof exposed Windows debug stack overflow from full-context serialization pressure.
last_completed_repo_swarm_cut: Huginn live-fire has crossed the first real repo Body from Persona pressure to branch-local Hands commit and Soul/Mind closure, and now has repeatable closure and redacted-public-proof mouths. On `E:\Projects\Huginn` branch `epiphany/huginn/first-awakening`, `tools/epiphany_local_run.ps1 -Mode repo-persona-intake` accepted item `huginn-inspection-readback-livefire`, Weksa/Persona intake remained sealed, and `epiphany-work derive-plan` lowered it to model-authored safe family `repo.status_section` for `README.md` only. `tools/epiphany_local_run.ps1 -Mode repo-swarm-run` advanced four bounded pulses: run-from-plan, adopt-from-plan, execute-from-plan, and close-from-execute. Huginn commit `e9b07c38fceabbdc89ea35c2156326c80c0393a2` updated only `README.md`; closure receipt `.epiphany\work\work-close-huginn-inspection-readback-livefire.json` records status `closed`, Soul verdict `passed`, Mind state commit `repo-work-close-huginn-inspection-readback-livefire-mind-commit`, safe family `repo.status_section`, path scope `README.md`, Bifrost publication gate, and `privateStateExposed=false`. Verification also ran Huginn's TypeScript compiler through concrete Node path: `C:\Program Files\nodejs\node.exe E:\Projects\Huginn\node_modules\typescript\bin\tsc -p tsconfig.json` passed. Native verifier `epiphany-repo-livefire-closure-smoke --workspace E:\Projects\Huginn --item huginn-inspection-readback-livefire --expected-path README.md --expected-family repo.status_section --expected-gate awaiting-publication --expected-blocker bifrost-publication-missing` checks closure receipt, Mind map entry, overview gate/blocker, authority seals, and `git show` changed paths, returning `status=ok`, `soulVerdict=passed`, `publicationGate=Bifrost`, and `privateStateExposed=false`. Wrapper `tools/epiphany_local_run.ps1 -Mode repo-livefire-closure -Workspace E:\Projects\Huginn -RepoWorkItem huginn-inspection-readback-livefire -SkipBuild` exposes the same read-only proof through the local operator mouth; artifact `local-20260621-190156-803-2f85ba15` printed commit, path, gate, blocker, Soul verdict, Mind commit receipt, and `privateStateExposed=False` without push, merge, publication, or target mutation. New wrapper `tools/epiphany_local_run.ps1 -Mode repo-work-public-proof -Workspace E:\Projects\Huginn -RepoWorkItem huginn-inspection-readback-livefire -SkipBuild` exports the redacted proof bundle and repo-local Verse index without publishing; artifact `local-20260621-190645-345-4555b1dc` wrote `.epiphany\public\proof-bundles\repo-work-public-proof-huginn-inspection-readback-livefire.json`, proof id `repo-work-public-proof-huginn-inspection-readback-livefire`, SHA-256 `857545b199f3e37eb06c2e757e5cfc201958e46667bb1f8403fd333a22620f63`, nine artifact rows, zero publication rows, and `privateStateExposed=False`. Gjallar readback `local-20260621-190701-140-b9519ec6` sees the `REPO-WORK-PUBLIC-PROOF` row and action row from Huginn's repo-local Verse with the same SHA-256 while Bifrost publication remains missing. Launcher compact modes are now named compact operator-context modes instead of read-only modes, and `bifrost-public-proof` summaries print item, target public Verse, room, proof SHA-256, review receipts, and credit receipts so publication receipts are auditable without claiming upstream sync.
next_action: Publish the existing managed-service desired/observed projection as an Epiphany-owned Eve surface using the standard provider contract. Keep `swarm-overview` as a local diagnostic only; do not name or accommodate any downstream compositor, layout, host, or lowering runtime. Prove Odin can discover the provider surface while Epiphany retains no renderer-specific command, schema, owner, or state.
next_action: Cut broad seeding out of read-only Verse diagnostics. Separate explicit bootstrap/migration writes from narrow reads; make missing daemon status, provider advertisements, Eve surfaces, and tool capabilities remain missing/unknown; prove `swarm-status`, `swarm-overview`, `eve-surfaces`, and `tool-directory` cannot create or promote the state they claim to observe.