# Fresh Workspace Handoff ## Current orientation — 2026-07-12 Epiphany is in an authority-provenance purification pass. The live question is not whether a command can produce a plausible document; it is whether the subsystem writing that document owns the fact it asserts. The confirmed conceptual substitutions have been cut: - read-only Verse diagnostics no longer seed or promote the state they inspect; - Bifrost publication, public-proof publication, artifact acceptance, and metrics callers submit requests without manufacturing provider receipts; - daemon tool invocation, Eve connection, and daemon poke callers submit intents without manufacturing provider acceptance or lifecycle results; - Persona feedback no longer manufactures Imagination consensus; - arbitrary operator-snapshot JSON cannot be promoted into canonical tool intent or receipt state; - operator-run completion is derived from a fresh, contained result artifact rather than caller status; - daemon service plan/execute authority is encoded by explicit command identity; - synthetic receipt smokes are confined beneath `.epiphany-smoke`. - generic local Verse bootstrap no longer publishes provider advertisements, Eve surfaces, or hosted tools; provider absence survives bootstrap. - the central `provider-advertisements` / `publish-odin` compatibility mouth is deleted; only provider-owned bodies may publish presence to Odin. - bulk provider-state writers are deleted. Each `epiphany-cluster-daemon` heartbeat publishes only its own advertisement, Eve surface, and hosted tools; unknown daemon identities are refused before writes. - cluster daemons do not bootstrap or query the full Verse. Missing persisted topology is a pre-write refusal; explicit operator bootstrap owns shared policy, topology, contracts, and brake initialization. - daemon-supervisor production commands likewise require persisted bootstrap and cannot create shared state. Its two audit-smoke fixture initializers are hard-confined beneath `.epiphany-smoke`. - query-CLI requester/operator mutations also require persisted bootstrap. Only explicit seed commands and the fixed aggregate smoke may initialize the shared local Verse. - worker launch-context rendering requires the existing Verse and cannot seed it. The prompt-context smoke accepts no destination and is fixed beneath `.epiphany-smoke`. - orphaned Bifrost/GitHub/Maintainer response and Imagination consensus constructors/writers are test-only. The aggregate smoke proves requests stay pending; production keeps readers for externally provider-authored documents. - bulk seven-daemon readiness construction/writing is test-only. Production loaders enumerate topology; the aggregate smoke owns a fixed-store local fixture helper, while real liveness remains single-daemon authored. - topology-derived provider builders are private, explicitly named templates. Consumers can load persisted provider documents but cannot request seven plausible advertisements/surfaces/tools from topology. - bootstrap no longer writes default operator status. The dedicated writer was a dead `ready` template, so the writer and its now-ownerless schema/context/ prompt/reader family are deleted. Source-derived operator snapshots remain. - agent-state SoA sync requires bootstrap; report preserves missing filesystem state. The wrapper explicitly composes sync then report rather than hiding a refresh inside readback. - query, cluster-daemon, and daemon-supervisor argument parsing no longer creates store parents. CultCache's single-file backing store returns empty before taking a lock when its file is absent, so all readers preserve filesystem absence without per-loader guards. Full context projection refuses a missing Verse; explicit bootstrap or a real writer owns CultMesh body creation. - the generic `epiphany-eve-provider` CLI is deleted: caller-supplied provider identity/status was not provider participation. Eve requests remain pending; local response construction/writing is test-only until a real target daemon or authenticated ingest boundary owns the receipt. - daemon-tool response construction/writing is also test-only. No shipped host daemon currently responds; the aggregate smoke proves a pending intent and a missing host receipt rather than fabricating Hands acceptance. - the deployment-config family smoke and its aggregate MVP-gate row are deleted: they fabricated Idunn `deployed`/`complete` receipts. Epiphany exposes config audit/runbook requests and typed Idunn readers, but no local deployment or aftercare response writer. - the artifact-acceptance/metrics response-closing smokes, Bifrost accounting bundle, wrapper mode, and aggregate green gate are deleted. Their request cargo remains open until genuine Bifrost/Maintainer response ingest. - generic repo-work readiness approval is deleted. The former command accepted four arbitrary strings as Maintainer/Soul/Mind/Bifrost reviews; readiness remains sight-only and the request family awaits genuine reviewer evidence. - the aggregate repo-swarm MVP gate and wrapper are deleted. It painted green rows from prior smoke summaries and local fixtures rather than exercising one live end-to-end organism. Use focused tests plus live-fire evidence instead. - the fresh-repo MVP smoke is deleted. Its disposable Git operations were real, but its PR, maintainer-review, merge, Bifrost, and Soul evidence was supplied by the same local caller rather than those owning bodies. - `epiphany-work publish` and `sync` are deleted. The first promoted arbitrary receipt strings into publication authority; the second promoted arbitrary merge strings plus Git ancestry into merge authority. Bifrost intent, provider receipts, and read-only ancestry are separate paths. - legacy `work-publish-*.json` and `work-sync-*.json` are no longer read by overview, readiness, scheduling, receipt-chain, or proof-bundle paths. Dead writer artifacts cannot remain living authority; closed work waits at `awaiting-publication` until an owner-aligned provider projection exists. - `epiphany-hands-action record-pr` is deleted. Caller-transcribed PR and Bifrost fields cannot create Hands publication proof; PR construction and persistence are test-only pending an authenticated adapter owner. - ownerless provider-result actuators are no longer public production API. Eve/daemon-tool acceptance, Bifrost publication/GitHub/public-proof/artifact/ metrics results, and Imagination consensus constructors/writers are `cfg(test)`; production retains their typed readers for real ingest. - repo closure no longer accepts caller echoes of Modeling model ref, verdict, finding, authorship, or summary. The scheduler no longer transcribes them. Full closure reads the immutable runtime-spine Modeling finding directly. - repo closure no longer accepts caller-selected verification commands or an optional source-grounding flag. Soul uses fixed Git consequence inspection, mandatory grounding, and fails when typed plan/family evidence is absent. - callers cannot overwrite Soul verdict narration or choose Mind's immutable admission revision. Soul derives the explanation; initial map admission is revision zero and later evolution uses typed Modeling route generations. - Hands binaries no longer construct Substrate Gate grant structs inline. Grants are non-exhaustive externally and come from narrow fixed-policy constructors owned by the `substrate_gate` module. - Hands persistence resolves its grant rather than trusting an ID label. Grant identity/scope/operations/paths and approved review must match each intent and patch/command/commit consequence; grants are immutable. - cluster-daemon heartbeat no longer accepts caller liveness or note fields. A successful owning-body heartbeat derives `ready`; degraded/down require observed supervisor or timeout evidence. - verse-query's mega-smoke no longer writes synthetic Idunn service runbooks or lifecycle receipts into its selected store and then verifies its own state. Focused daemon-supervisor smokes own quarantined lifecycle fixtures. - daemon-supervisor smoke confinement is real containment, not component-name matching: parent traversal and stores outside workspace `.epiphany-smoke` are refused before fixture seeding. - Thirty-two repo-family and survival smokes no longer accept an independent deletion root. They derive `.epiphany-smoke` only after canonicalizing the selected repo root; `--smoke-root` is rejected before creating its target. - Idunn lifecycle receipts no longer accept caller-transcribed executable/schema hashes, witness identity, required types, or a preflight-pass bit. Repo work consumes the runtime's real preflight directly; Idunn reports process facts. - Windows service install exit zero is `install-command-succeeded`, not `installed`. Single-service completion requires SCM status/reconcile; cluster completion requires the observed cluster service audit and cannot cite an earlier copy of its own execution-audit verdict. - Service lifecycle projection selects the actual latest family event. An old attention receipt no longer masquerades as current state after recovery; newer failures still surface immediately. - The lifecycle `latest` mirror is event-time-owned, not last-writer-wins. Invalid/reversed timestamps are refused and delayed old receipts cannot move the mirror backward. - Scheduler `latest` is likewise completion-time-owned. Tick timestamps are validated, reversed intervals are refused, and delayed replay cannot rewind the scheduler projection. - `hands-action-gate/latest` is creation-time-owned. Delayed mirror replay cannot advertise obsolete actuator scope or record-pass commands as current. - `role-review-event/latest` is creation-time-owned. Delayed acceptance or supersession readbacks cannot rewind Self/operator coordination context. - `coordinator-run-receipt/latest` is creation-time-owned. Delayed runs cannot replace the current final action or artifact projection. - Work-loop telemetry is now validated internal evidence and production-time ordered. Delayed or wrong-Verse packets cannot replace Soul/Modeling's current Hands consequence chain; future receipt lower bounds are refused. - Repo-work map `latest` is Mind-admission-time-owned. Delayed older projections cannot rewind the queue map, and mirroring before admission is refused. - Repo-work overview global `latest` is generation-time-owned. Delayed overview transport cannot make an obsolete queue gate or next move current. - Repo-work readiness global `latest` is generation-time-owned. Delayed sight-only reports cannot replace current proof visibility. - The writerless `repo_work_readiness_review` document family is deleted from schema registration, exports, loaders, receipt directory, swarm overview, TUI, and Bifrost accounting. Real review receipts retain their owners. - Repo-work public-proof global `latest` is generation-time-owned. Delayed proof transport cannot replace the current commit/hash evidence projection. - Agent-state SoA `latest` is generation-time-owned and local-area confined; delayed summaries cannot rewind prompt/swarm self-knowledge. - Operator snapshots are validated internal-Verse observations and `latest` is generation-time-owned; delayed status transport cannot rewind the observed coordinator/runtime surface. - Operator-run receipt admission resolves its intent by `run_id`, not by the unrelated global latest mirror. Intent/receipt mirrors are validated and owner-time ordered; concurrent runs retain independent identity. - Prompt assembly joins Eve and daemon-tool receipts to intents only by matching `intent_id`; independent latest mirrors can no longer fabricate a causal completion in model context. - Bifrost prompt/accounting chains follow typed intent -> publication -> GitHub receipt identity. Independent latest documents cannot close publication, lend review/credit counts, or supply a counterfeit public reference. - Collaboration accounting follows consensus `feedback_id`; unrelated latest consensus cannot close another Persona feedback lane or lend public refs. - Artifact-acceptance and metrics receipts still lack an explicit repo-work request/map identity. Do not infer it from item/workspace/branch/commit; accounting keeps these lanes open with `requestIdentity=missing` while still showing provider receipt proof completeness. Repair the Bifrost-owned contracts before claiming concurrent-safe closure. - Repo-work queue receipts carry typed queue/selected row objects. Swarm stop classification no longer reparses `QUEUE-RUN | key=value` TUI prose; legacy or hostile strings cannot steer gate, blocker, item, branch, or next move. - Receipt-directory runbook selection uses typed `service_id` only. It no longer recovers service ownership by splitting human route prose at `::`. - Deployment operational audit and runbook read one typed TOML model. Substring presence, comments, wrong sections, and silent watched-ref/script defaults no longer substitute for valid deployment configuration. - Repo-work deployment closure uses that same typed model and semantic predicates; the duplicate substring validator is deleted. - Secret-policy request closure parses typed TOML and validates request, antecedent, receipt, security-packet, and authority semantics. Comment prose cannot counterfeit secret/write/deployment denials. - Dependency-policy request closure parses typed TOML for supply-chain scope, receipts, evidence requirements, and authority seals; comment prose cannot counterfeit package/lockfile/network/CI denials. - Deployment-request closure parses typed TOML for Idunn ownership, antecedents, receipts, deployment packet, and authority seals; comment prose cannot counterfeit SSH/push/deployment denials. - Verse-query smoke reset proves the exact built-in path and canonical strict containment beneath `.epiphany-smoke` immediately before recursive deletion. - The four typed closure contract families live in `epiphany_work/closure_contracts.rs`; `epiphany-work` is their orchestrator. The module is parent-private and preserves family-specific predicates rather than exporting generic policy machinery. - Bifrost provider receipt contracts still lack provider timestamp/revision. Do not invent consumer-side ordering; repair that in a Bifrost-owned schema. The presentation boundary is now plain: `swarm overview` is a generic compact read-only projection. Gjallar is a downstream TUI application on Nightwing and is not an Epiphany organ, provider, owner, runtime, or architectural dependency. Eve/CultUI graphs may be lowered or composited downstream without Epiphany caring which presentation client does it. ## Authority map - Request owners write intents and requests. - Provider bodies write acceptance, execution, lifecycle, and result receipts. - Diagnostics read persisted facts; absence remains absent or unknown. - Adapters may project edge state but cannot promote it into canonical provider truth. - Smoke fixtures may manufacture synthetic state only inside fixed disposable roots. - `swarm overview` owns no operational fact and performs no scheduling, publication, deployment, lifecycle, admission, or provider acceptance. ## Rehydrate Read, in order: 1. `state/map.yaml` 2. `notes/epiphany-current-algorithmic-map.md` 3. `notes/conceptual-substitution-audit-2026-07-12.md` 4. `notes/receipt-writer-provenance-audit-2026-07-12.md` 5. `notes/epiphany-fork-implementation-plan.md` Then run: ```powershell cargo run --manifest-path .\epiphany-core\Cargo.toml --bin epiphany-state -- status ``` Historical implementation detail belongs in git history, smoke artifacts, and the evidence ledger. Do not restore deleted writers or requester-authored receipts from old proof prose. ## Next real move Continue the modeling pass beyond receipt writers. Tool-request, metrics-request, artifact-acceptance-request, and credit-request closure now use typed family contracts and cannot accept comment-counterfeit execution, spend, acceptance, or credit seals. Inventory remaining substring closure families and production paths where a projection, cache, adapter, scheduler, coordinator, or compatibility surface asserts a fact owned elsewhere. For each candidate, name the owner, allowed inputs, emitted state, forbidden writers, and negative proof before changing code. Also audit remaining non-receipt smoke binaries for path escape or destructive scope. `epiphany-repo-personality-smoke` reset is now canonically confined beneath `.epiphany-smoke`; fixed default provenance no longer authorizes recursive deletion. Continue the same resolved-containment audit across remaining smoke reset helpers. The 32 repeated timestamped family/lifecycle smokes no longer reset occupied leaves. They atomically claim a fresh directory with `create_dir` and fail on collision, removing their recursive-delete authority entirely. Seven UUID-scoped temp helpers now use exclusive `create_dir`, not `create_dir_all`; a pre-existing leaf is refused before work and can no longer be adopted and later deleted. Three coordinator launch-context test leaves were corrected as well. The full Rust source search now contains no generated `temp_dir()` leaf adopted through `create_dir_all`. Publication-request closure is now typed and guarded against regaining substring authority. Current structural count: nine typed high-authority families, 704 remaining closure substring assertions, and 1,458 contract-organ lines. The former 1,458-line `closure_contracts.rs` slab is now a two-line private facade over `closure_contracts/external_governance.rs` and `closure_contracts/operations.rs`. Keep new contracts with their consequence owner; do not reunify the slab or widen its parent-private API. Sync-request closure is now typed within external governance and guarded against substring fallback. Current count: ten typed high-authority families and 667 remaining closure substring assertions. External-governance counterfeit fixtures now live in the dedicated lexical `external_governance_tests.rs`; production contract anatomy is 668 lines and the six semantic counterfeit tests remain private and passing, including the explicit sync push-grant attack fixture. Provider chronology remains externally blocked for a precise reason: Bifrost receipt contracts expose no provider timestamp or monotonic revision, so local `latest` mirrors only know arrival order. Do not invent chronology locally. The 33 duplicate `#[cfg(test)]` residues found around provider writers/re-exports were removed; one test gate remains on every test-only item. All seven Bifrost/GitHub mirror loader APIs are now named `load_arrival_latest_*`; no misleading `load_latest_*` aliases remain. The persisted `/latest` key spelling is retained as external storage compatibility, not interpreted as provider chronology. The Bifrost ledger report also uses `arrival_latest_*` typed fields and `arrivalLatestBifrost*` JSON keys; no old report aliases remain. `EpiphanyCultMeshContext`, prompt assembly, and Verse consumers now also use `arrival_latest_bifrost_*`; only persisted key constants retain `LATEST_KEY`. The latest structural count is 32 closure family branches, 744 remaining substring assertions in the closure region, and 1,284 lines in `closure_contracts.rs`. Do not blindly generate a struct forest for every presentation-only family. The eight converted high-authority families are covered by `typed_closure_families_have_no_substring_authority`; prioritize the next consequence-bearing request and require a named owner. ## Verification baseline The last completed code pass had 258 library tests passing and all binaries compiling. Re-run focused checks for the next touched surface; use the full library/binary baseline before committing a new architectural cut.