From 7559419f1422226ec2ef2555cc073f67b35fb7c7 Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Fri, 17 Jul 2026 08:22:20 +0100 Subject: [PATCH] Map workspace coverage storage cut --- notes/epiphany-current-algorithmic-map.md | 65 ++++++++++++++++++++--- notes/fresh-workspace-handoff.md | 51 ++++++++++++++++++ state/map.yaml | 6 +-- 3 files changed, 111 insertions(+), 11 deletions(-) diff --git a/notes/epiphany-current-algorithmic-map.md b/notes/epiphany-current-algorithmic-map.md index a9a9453d..7c4781d5 100644 --- a/notes/epiphany-current-algorithmic-map.md +++ b/notes/epiphany-current-algorithmic-map.md @@ -905,23 +905,72 @@ publish the receipt/head. Until then coverage remains absent. ### Projector authority map -Coverage state belongs in the Repository Body CultCache store. That is the only -existing lock domain able to CAS the exact Body head and its immutable evidence -with coverage obligation, plan, claim, attempt, receipt, and head. The runtime -store remains only the immutable route to that Body store. Qdrant mutation stays -outside the transaction; a lost terminal CAS leaves disposable orphan vectors, -not counterfeit readiness. +Repository Body owns observed substrate only: its binding, immutable +observations/manifests, and current Body head. Projection activity must not +rewrite `body.cc`. Live Yggdrasil candidate `c94fa580` falsified the old shared- +store ownership by attributably rewriting `body.cc` while projection ran; it +remains rejected. -The sealed execution path is acquire against the exact current Body chain, +Commit `261c7bc8` adds the pinned transactional store foundation. The runtime +record `epiphany.runtime.workspace_coverage_store_binding.v0` selects one +canonical store path and file identity while sealing the exact repository Body +route/envelope and Body-binding hash. The store-local +`gamecult.epiphany.workspace_coverage_store_binding.v0` repeats runtime, swarm, +workspace, file identity, Body-binding hash, repository source identity, +projection scope, and backend. `open_workspace_coverage_authority` validates +both bindings and returns the owned transactional store together with exact +read-only Body authority. A naked path is never sufficient. + +The workspace-coverage store owns obligation, plan, immutable claim/attempt and +recovery history, current-claim authority, checkpoint events/head, progress +events/latest, terminal receipt, coverage head, and retirement history. Qdrant +is disposable derived state. This ownership is the target, not yet the live +implementation: commit `261c7bc8` provides bindings and transactional keyed +storage, but existing projector writers still persist projection records in +Body or local Verse. + +Inputs are the exact pinned Body route/binding and current observation basis, +sealed policy/plan/model identity, authenticated managed launch and provider +incarnation, exact Idunn recovery evidence, and waited Qdrant readback. Outputs +are the typed lifecycle/proof records above. Current claim, progress, coverage, +warming, active, readiness, and query eligibility are derived joins; none may +be manufactured by a path, heartbeat, Qdrant count, or stale head. + +Forbidden writers are explicit: Body observer/bootstrap never writes projection +state; projector/checkpoint/recovery never writes Body; local Verse retains +managed process lifecycle but not coverage progress; Idunn, deploy scripts, +health, heartbeat, Qdrant, Eve, and swarm overview cannot advance coverage +authority. + +The shared execution path resolves the runtime coverage binding, opens exact +Body read authority, then acquires against the exact current Body chain, verify every included live file against its historical length and SHA-256, derive deterministic chunks and UUIDv5 point descriptors, embed and write into a claim/epoch-fenced plan collection, scroll the whole collection with typed -payloads, then terminal-CAS success against the still-current Body head. Plans +payloads, then terminal-CAS success in the coverage store after reopening and +reauthenticating the still-current Body head. Plans must seal an ID-to-payload binding root; equal counts or equal IDs do not prove the indexed content. Receipt/head constructors and writers remain projector- private. Live query eligibility re-observes Qdrant; a stored receipt proves only that one exact observation completed. +Each waited batch/readback must transactionally admit its checkpoint event/head +and derived progress event/latest together in the coverage store. Cross-store +atomicity is not invented: Body is authenticated before the coverage CAS and +reopened afterward; if it moved, the projection evidence remains historical and +cannot become current. Claim authority is scoped to Body generation so an old +running claim cannot block new Body work. Same-Body abandoned-owner recovery +remains possible only through exact Idunn predecessor termination and +replacement authority. + +Migration/cut line: quiesce projection, create and bind the coverage store, +copy projection envelopes from Body and progress envelopes from Verse while +preserving exact envelopes/digests, validate every chain, activate the runtime +binding as the single authority switch, then CAS-remove legacy records. After +activation legacy residue is inert. Missing binding, divergent sources, or +partial migration fail closed. No dual-read or fallback path survives. Every +bootstrap/deploy path must create the bound store before service start. + The execution path is reachable only through the reserved packaged workspace- coverage projector managed by Idunn. It validates plan-sealed text hashes and vector dimensions, creates or authenticates one exact managed claim/epoch Qdrant diff --git a/notes/fresh-workspace-handoff.md b/notes/fresh-workspace-handoff.md index 4e5ef017..d379d942 100644 --- a/notes/fresh-workspace-handoff.md +++ b/notes/fresh-workspace-handoff.md @@ -1,5 +1,56 @@ # Fresh Workspace Handoff +## Workspace coverage storage cut is founded, not migrated — 2026-07-17 + +Live Yggdrasil evidence rejects `c94fa580` as a deployment candidate. During +that candidate, `body.cc` was rewritten by workspace-projection activity rather +than repository observation. The rewrite is attributable to the surviving +coverage writers sharing the Body store; it is not evidence that the Body +observer changed repository substrate. Body owns observed substrate only: +binding, immutable observations/manifests, and the current Body head. + +Commit `261c7bc8` lands the replacement foundation. A runtime-side immutable +`epiphany.runtime.workspace_coverage_store_binding.v0` route and store-local +`gamecult.epiphany.workspace_coverage_store_binding.v0` bind a separate +transactional `workspace-coverage` store to runtime, swarm, workspace, +canonical path and file identity, exact repository Body route/envelope, +Body-binding hash, and repository source identity. Transactional keyed +CultCache admission is pinned beneath it. This is routing and storage +foundation, not completion: obligation, plan, claim, attempt, recovery, +checkpoint, progress, terminal receipt, coverage head, and retirement writers +have not yet been migrated from Body/local Verse. + +Authority map: + +- Owner: the workspace-coverage store owns projection lifecycle and proof; + repository Body owns observations only. +- Inputs: the exact pinned Body route/binding and current observation basis, + sealed inclusion/projection/model plan, authenticated launch/provider + incarnation, Idunn recovery authority, and waited Qdrant readback. +- Outputs: immutable obligation/plan and claim/attempt/recovery history, + checkpoint/progress events and heads, terminal receipt/coverage head, and + retirement history. +- Derived state: current claim, progress, coverage, warming, active, and query + eligibility are joins over those records plus freshly revalidated Body and + Qdrant; no store path or old head is truth by itself. +- Forbidden writers: Body observer/bootstrap cannot write projection state; + projector/checkpoint/recovery cannot write Body; local Verse, Idunn, + heartbeat, health, deploy scripts, Qdrant, and presentation cannot advance + coverage heads. +- Shared path: prepare, acquire, each waited batch/readback, resume/recovery, + final whole-scroll, health, and readiness resolve the same runtime binding, + reopen exact Body read authority, and transact only through the pinned + coverage store. Checkpoint and progress must admit atomically. +- Cut line: migrate every projection envelope and bootstrap the binding, switch + authority once, then remove Body/Verse writers and readers. Preserve exact + signed envelope identities where predecessor digests depend on them. There + is no dual-read or missing-binding fallback. + +Next: perform that writer/bootstrap migration, prove Body bytes remain unchanged +through projection, and only then build a new live Yggdrasil candidate. Keep +`c94fa580` rejected; do not lengthen a timeout or reinterpret its rewrite as an +observer fault. + ## Signed Yggdrasil deployment admission cut complete locally — 2026-07-17 The failed GPU pressure run was a pipeline-contract failure, not a CUDA diff --git a/state/map.yaml b/state/map.yaml index 028bf3cc..d79ba606 100644 --- a/state/map.yaml +++ b/state/map.yaml @@ -3,8 +3,8 @@ experiment: repository_body_observer: "Native Rust explicitly binds caller workspace ID to an existing validated runtime/swarm/source identity plus canonical Git root/object format/scope/policy. Bind also installs one immutable runtime-side RuntimeRepositoryBodyStoreBinding naming the canonical external Body-store locator and exact Body-binding hash; every read revalidates runtime/swarm/workspace/path/body identity and refuses a second store. Two equal sanitized temporary-index scans enumerate ignore-aware UTF-8 paths, Git modes, and nonrecursive gitlinks with global excludes disabled; raw regular bytes/lengths and non-followed symlink-target bytes are SHA-256 hashed. The domain-separated ordered raw manifest root, not the clean-filtered auxiliary tree OID, is authoritative Body identity. Every Git subprocess strips ambient repository/worktree/object/ref/index/namespace/replacement/graft/shallow and config-injection authority. Observe cannot mint identity. CultCache MessagePack atomically commits immutable manifest+observation and a manifest-root head by exact CAS. Canonical store-path checks precede writes; corrupt HEAD, sparse checkout, unsafe/unrepresentable paths, racing reads, and repo/runtime substitution fail closed. Only accepted stable observations persist; errors advance no head. Unchanged raw manifest preserves generation; status is read-pure. The observer owns bounded current-state identity, makes no historical continuity claim, and has no Ready field. The runtime route is locator authority only, not proof of model grounding." modeling_body_grounding: "Every coordinator-owned Modeling launch observes and carries one typed RepositoryBodyObservationBasis before worker thought. The immutable launch binds runtime/swarm/workspace/scope, Body-binding hash, observation generation/id/root, and scan interval. Modeling output contract v3 requires the exact worker-authored echo; ingress reloads the immutable launch and rejects missing/swapped basis, while non-Modeling cargo is forbidden. Mind admission review v1 and receipt v5 preserve that basis; admission validates exact launch/result/review equality plus the immutable historical Body artifacts, then copies it into the CAS receipt. Admission never samples current Body as a substitute. Direct Mind plan adoption and legacy migration remain explicitly ungrounded." workspace_retrieval_coverage: "The production-unwired retrieval.rs oracle is deleted. Legacy EpiphanyRetrievalState is presentation-only: clean Ready projects Missing and its indexing job is unavailable/unowned. Native coverage binds an authenticated Repository Body manifest, exhaustive versioned inclusion policy, deterministic chunks/point payloads, immutable Ollama tag+artifact digest identity, vector dimensions, exact Qdrant point/payload/vector observations, and one terminal-CAS receipt/head. A read-only live evidence reader now re-scrolls the exact compatible collection, recomputes payload/vector bindings, and byte-revalidates the entire authority chain after the external read. Coverage success proves only this exact Body projection; Mind alone may join it with the other repository authorities." - workspace_coverage_projector: "The dedicated workspace-coverage projector is the only coverage writer. Its reserved supervisor/CultMesh policy fixes the packaged sibling binary and exact runtime/Verse/Qdrant/Ollama args; generic policy, arbitrary command, workspace, Body-store, collection, and dimension inputs are forbidden. The binary authenticates current policy-bound launch, exact process identity, runtime, host, and provider key before installing narrow execution authority. One persisted Body basis plus one authenticated read session prepares verified UTF-8 chunks; an exact Current fast path reads no worktree files. Claims/attempts bind exact managed-process launch and executor incarnation. Execution follows sealed plan order in batches no larger than 128: embed, waited Qdrant upsert, exact ID payload/vector readback, provider-signed Body checkpoint CAS, then exact checkpoint-derived Verse progress. Restart reconstructs the full authenticated genesis-to-head checkpoint chain against current Body/claim/attempt/plan/launch authority, re-observes every checkpoint batch live, reconciles missing progress idempotently, and resumes at the next sealed ordinal. Terminal success reconstructs independent expected payload/vector bindings from that full chain, requires complete nonoverlapping plan coverage, whole-scrolls Qdrant, rejects cycles/gaps/duplicates/missing/extra/substituted/nonfinite/wrong-dimension points, and only then terminal-CASes receipt/head. Heartbeat is a separate 10-second signed nerve; loss of heartbeat publication terminates the provider process. Heartbeat proves liveness, checkpoint-derived progress proves advancing work, and receipt/head alone prove Current. Body history owns bounded retirement of terminal non-current collections. Idunn recovery remains specialized exact process authority with predecessor termination, replacement launch/heartbeat, new epoch-fenced collection, and immutable recovery receipt. Aggregate runtime health is active only for exact terminal current authority; warming requires current managed process lineage plus fresh signed heartbeat and authenticated checkpoint advancement inside a 300-second no-advance lease. Idunn promotion consumes only a fresh signed admission bound to the exact monotonic current deployment-request head and release tuple; generic health is observation-only and no total projection wall clock owns readiness. Query admission remains absent." - workspace_coverage_checkpoint: "The durable batch checkpoint belongs in the repository Body CultCache beside obligation/plan/claim/attempt authority; local Verse progress only references its exact CultCache envelope digest. The projector embeds one canonical contiguous plan batch, performs one waited Qdrant upsert, reads exactly those IDs back with payloads and vectors, compares exact payload and submitted-vector hashes, then provider-signs and Body-CAS-admits a checkpoint containing the exact ordered point/payload/vector bindings. A claim-scoped checkpoint head chains exact sequence, predecessor id+envelope digest, plan ordinals, cumulative/total count, collection, Body/plan/model/claim/attempt/launch authority, and provider incarnation. The CAS expects unchanged Body, obligation, plan, running claim, running attempt, and prior checkpoint head. Batch checkpoints never replace terminal whole-scroll verification or receipt/head. Same-claim retry resumes only from an authenticated contiguous chain re-observed live in Qdrant; an acknowledged write lacking a checkpoint is retried idempotently. Recovery always uses a new epoch-fenced collection: after exact predecessor termination and recovery authority, the successor may re-observe and copy authenticated predecessor batches into its new collection and issue new-claim checkpoints citing their source checkpoint envelopes. Missing or changed external evidence restarts from zero. No successor mutates or inherits the predecessor collection." + workspace_coverage_projector: "The dedicated workspace-coverage projector is the only coverage writer. Repository Body owns observed substrate only: binding, immutable observations/manifests, and the current Body head. Commit 261c7bc8 adds the pinned transactional workspace-coverage-store foundation: an immutable runtime route plus store-local binding jointly seal runtime/swarm/workspace, canonical path and file identity, exact repository Body route/envelope, Body-binding hash, and repository source identity. The separate store is not operational authority yet: obligation/plan/claim/attempt/checkpoint/progress/receipt/head writers still target Body or Verse and must be migrated together with no fallback. The projector authenticates policy-bound launch, exact process identity, runtime, host, provider key, current Body authority, and the pinned coverage store before acting. Execution follows sealed plan order in bounded batches: embed, waited Qdrant upsert, exact ID payload/vector readback, transactional checkpoint plus progress admission, then resume from the authenticated chain. Terminal success independently whole-scrolls Qdrant before terminal receipt/head. Heartbeat is a separate liveness nerve. Idunn owns deployment admission and recovery routing, not projection truth. Aggregate health is active only for exact terminal current authority and warming only for current lineage plus fresh heartbeat and advancing authenticated checkpoints. Query admission remains absent." + workspace_coverage_checkpoint: "Target ownership is the separately pinned transactional workspace-coverage store, not repository Body and not local Verse. It owns obligation, plan, claim and attempt history/current heads, recovery receipts, checkpoint events/head, progress events/latest, terminal receipt, coverage head, and retirement history. Each checkpoint binds one contiguous plan batch and exact post-wait Qdrant payload/vector readback; checkpoint and its derived progress must commit in one coverage-store transaction. Body is reopened as read-only authority before and after the coverage CAS; a changed Body leaves evidence historical and unable to become current. Same-Body abandoned-owner recovery may advance the claim epoch only through Idunn's exact predecessor termination/replacement authority. A stale running claim for an old Body cannot contend with the current Body generation. Qdrant remains disposable derived state. Commit 261c7bc8 supplies the store/binding and keyed transactional primitives only; projector writers are not migrated yet." repository_readiness_join: "Mind owns the implemented race-bounded RepositoryReadinessProjection operation. It freshly observes Body R1; derives canonical RepoModel, the unique current v5 Body-grounded admission, and the complete succeeded Modeling semantic chain from one raw opening CultCache snapshot; authenticates live semantic vectors and live workspace coverage bound to R1; observes Body R2 and requires the same content identity/root; repeats both live reads; derives the closing authority from one raw full snapshot; and atomically appends a historical observed-ready-at projection only if that complete snapshot is unchanged. Stored projections never grant current readiness. A→B→A is acceptable only as equal content-addressed endpoints. CultCache now fences full-snapshot cardinality with tuple (type,key) identity. Legacy retrieval Ready, timestamps, watcher silence, Git OIDs, collection existence/counts, Hands receipts, Eve/Gjallar, and prior readiness projections are forbidden substitutes." coordinator_grounding_loop: "Cold start is owned by one typed UserObjectiveIntake that atomically seeds thread state and refuses objective replacement; a missing checkpoint routes to Modeling rather than a fictional prepareCheckpoint actuator. Explicit local-Verse path authority flows into launch context without sibling-path inference. Eyes and Modeling receive bounded source tools. Accepted CRRC regather findings hand source gathering to Eyes instead of recursively relaunching the continuity judge. Runtime/display/coordinator reads share the canonical typed role and reorient result readers. Failed or completed-unreviewable role outputs may be explicitly superseded by a typed review receipt; JSON null is not a state patch. Provider output schema is formatting guidance only, while canonical typed ingress and Mind remain admission authority. Modeling's provider schema now describes tagged patch operations, closed node/edge/profile vocabularies, canonical node/edge fields, anchors, code refs, observations, evidence, frontier items, and Body-basis echo. Live dogfood has accepted one code-grounded Eyes result, but no current Body-grounded Modeling admission yet: the latest Modeling run used eleven source-tool rounds then failed at the provider request boundary before publishing typed output." modeling_admission_dogfood: "Source-grounded Modeling now completes with typed Body-basis ingress and substantial RepoModel node/edge proposals, proving the source/tool/output path. Mind first refused an ordinary Evolution patch that attempted unrequested frontier mutation, then refused a nodes/edges-only patch whose invented workspace-derived domain and Active lifecycle violated the canonical aggregate. Both were superseded through typed admission-rejection review. Modeling launch context now carries the current model revision/hash and exact existing domain ids plus legal repo lifecycles; Evolution mutates nodes/edges only and frontier mutation remains request-bound. A fresh run against the post-fix Body is still required before repository readiness can join." @@ -739,4 +739,4 @@ current_status: - Release `sha256-c94109f94ee42c1257089830f399cb87cd5ad672772c274194371995ce4df923` is the first deployed immutable sibling generation. Native packaging builds from detached exact source commit `dd80f4a51c18425a6665710698a357be61154abf`, initializes pinned submodules, uses the tracked lockfile under `--locked`, and publishes four exact binaries plus a typed CultCache witness/head only after atomic directory publication and byte verification. Task Scheduler pins release id/digest and the witnessed supervisor path; Idunn reauthenticates the complete set and reserved policy role paths. Current-boot proof: reconciler PID 21228 launched direct child 22736; witnessed Mind/Modeling queries ranked semantically; killing that exact-path child caused Idunn to launch PID 19748 with receipt `86a42d51-9930-4b5d-9e61-e74c82a0d808`, ready heartbeat `4fc91977-b635-474b-812b-c364847e2b4b`, and witnessed executable digest `sha256-1060dd64e8c2b520ec8744b67e8306db04a6618d463fc2117c352adf9e30e6b0`. This closes current-boot artifact generation and recurrence, not reboot/logon survival. - Release `sha256-6f9ab4848207a110e7e3836f41e6a74c0f463369ad4b04ce2d0d3831a6b262ae` packages repository-readiness source commit `360dcb433dda9599fca14282592608d26b8b6cc8`; witnessed Idunn PID 29476 directly owns witnessed projector PID 22840 with launch receipt `50879209-b65f-4411-ae3f-6f647d37bf42` and ready heartbeat `134df620-9e20-4220-ad4e-117ea4ca8188`. Deployment exposed receipt-v2 migration pressure: v1 receipts became correctly ineligible, but the old Succeeded pulse shortcut kept both partitions idle. The shortcut is now cut in source. Valid v2 terminal evidence derives Ready; an exact same-obligation succeeded claim opens Repair only after its consumed grant/recovery authority and exact succeeded attempt are authenticated. Failed repair retries through execute at the next epoch. Forged predecessor authority cannot be laundered by a repair grant. - Yggdrasil exact-SHA pressure release `586147a751c6eec2d59cd8dc10bd17ce0d02a4d1` proved useful GPU work but failed deployment honestly. GTX 1080 stayed near saturation at 2,419 MiB; bounded four-text requests completed continuously. Mind published 215 vectors, while workspace coverage completed 3,389 Ollama HTTP calls total (about 13.3k workspace chunks after Mind) before Idunn's 50-minute candidate-health deadline at 2026-07-17T01:23:50+02:00. Idunn then stopped the service, published no deployment witness, and reported no exact-candidate daemon-health proof; the Modeling collection remained at the inherited 22 points because the monolithic executor had not yet published its accumulated vectors. This is failure evidence for the execution/deployment contract, not for GPU acceleration. Total wall-time extension is forbidden as the repair. - next_action: Finish the reviewed commits in Epiphany, Odin, and gamecult-ops; merge/deploy the updated Yggdrasil Idunn authority body first. Then authorize the exact reviewed Epiphany main commit through Bifrost and let Idunn deploy it. Observe signed warming only while authenticated checkpoints advance, Qdrant count growth, GTX 1080 duty/model residency, terminal active admission for the exact request, and restart-safe checkpoint resume. Local Starfire execution is development-only. Do not reboot any host without explicit live operator approval. + next_action: Migrate workspace projection obligation/plan/claim/attempt/recovery/checkpoint/progress/receipt/head ownership into the pinned transactional workspace-coverage store, bind/bootstrap it on every deployment path, and cut all Body/Verse projection writers and fallback reads. Preserve Body as observations only. Do not redeploy c94fa580 or any descendant as a live candidate until that cut is complete and verified against body.cc rewrite, store-substitution, stale-Body claim, atomic checkpoint/progress, restart, and terminal-proof negatives. No reboot is authorized.