diff --git a/notes/fresh-workspace-handoff.md b/notes/fresh-workspace-handoff.md index 22729537..26ff88f1 100644 --- a/notes/fresh-workspace-handoff.md +++ b/notes/fresh-workspace-handoff.md @@ -2190,3 +2190,68 @@ root-seals immutable source/application releases, starts Epiphany against Ygg-local Qdrant and Ollama, requires post-candidate Idunn RUDP acceptance, and only then publishes the v2 deployment witness. These source bodies are not yet live on Ygg; bootstrap and deployment remain the next phase. + +## Yggdrasil GPU pressure exposed missing progress authority (2026-07-17) + +The live authority chain now reaches Yggdrasil. Bifrost authorized exact +Epiphany main commit `586147a751c6eec2d59cd8dc10bd17ce0d02a4d1`; Idunn fetched that exact +upstream commit, built it in the pinned Rust container, installed immutable +release `sha256-a5a43af6d2502377d2078dcb42ab98088f4a812487217436ec1af0ddd0d26b3d`, +and started both local projectors against Ygg-local Qdrant and GPU-backed +Ollama. Mind completed its first pulse, reported `providerStatus=ready`, and +published 215 vectors. Workspace coverage is a real 3,956-file Body pressure +run; a local line-based estimate is 14,734 UTF-8 chunks. + +The GTX 1080 is genuinely used: the workspace projector sustains roughly +93-100% compute utilization at 2,419 MiB VRAM. The prior 32-text HTTP batches +could monopolize one request for more than thirty minutes. Commit `586147a7` +bounds batches at four; live Ollama receipts now complete continuously in +roughly 0.7-1.7 seconds per call at about 53-63 calls/minute. This proves useful +forward GPU work, not merely allocation. It also proves the full first pass is +roughly an hour at the current hardware ceiling, longer than Idunn's 50-minute +deployment-health wall clock. + +Do not fix that by increasing the wall clock. The current execution primitive +embeds the entire sealed plan into memory, then performs Qdrant publication and +verification, and only returns to the binary afterward. The binary therefore +emits no signed provider heartbeat during the long pulse. Ollama logs, +`nvidia-smi`, process existence, elapsed time, and Qdrant point counts cannot +become progress authority. + +Authority map for the repair: + +- Owner: the authenticated workspace-coverage projector owns domain progress; + Idunn owns deployment admission, and the supervisor only derives aggregate + health. +- Inputs: exact packaged release/policy/managed launch, provider incarnation, + claim and attempt epoch, sealed plan, Body observation/generation, immutable + embedding artifact/dimensions, and acknowledged durable Qdrant checkpoint. +- Outputs: an append-only provider-signed + `epiphany.workspace_coverage.projection_progress.v0` event plus CAS latest + pointer. It binds sequence/time, exact authority identities, phase, + completed/total units, and the currently bounded backend operation. +- Derived state: `warming` requires a fresh independent process heartbeat and + fresh monotonically advancing exact-lineage progress. `stalled` follows an + expired named operation/no-advance deadline. `active` still requires the + canonical receipt/head and live verification; progress at 100% is not + readiness. +- Forbidden writers: Idunn, deploy scripts, supervisor, Ollama logs, GPU + telemetry, stdout, Qdrant counts, running claims, and free-running heartbeat + churn cannot advance progress. +- Shared path: first projection, ordinary Body change, retry, and authenticated + successor recovery use the same durable batch/checkpoint primitive. +- Cut line: split monolithic embed/upsert/verify execution at deterministic + durable boundaries; keep liveness heartbeat independent; remove total wall + duration as the health verdict. A successor launch cannot inherit work + without an explicit authenticated resume/checkpoint contract. + +Negative proof must cover frozen progress with live heartbeats, stale heartbeat +with advancing progress, replay across launch/Body/plan/model/release, sequence +or count regression, mutable totals, progress without acknowledged Qdrant +durability, 100% without a valid receipt, deleted/substituted collections, +restart inheritance without recovery authority, concurrent owners, clock +hostility, and Idunn accidentally treating warming as active. + +The current live run remains diagnostic evidence only until its terminal +workspace receipt, exact aggregate RUDP health, and deployment witness land. +No reboot is authorized. diff --git a/state/ledgers.msgpack b/state/ledgers.msgpack index b03ec574..37a9a71a 100644 Binary files a/state/ledgers.msgpack and b/state/ledgers.msgpack differ diff --git a/state/map.yaml b/state/map.yaml index a8675d7d..987a5c1e 100644 --- a/state/map.yaml +++ b/state/map.yaml @@ -3,7 +3,7 @@ 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 receipt, PID, executable hash, runtime id, and host singleton before the service derives the immutable Body route. 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. Every pulse re-resolves the mutable Ollama tag to its installed artifact digest, probes dimensions, embeds only after claim acquisition, writes an epoch-fenced managed Qdrant collection, whole-scrolls typed payloads and unnamed vectors, rejects cyclic offsets and duplicate/extra/missing/substituted/nonfinite/wrong-dimension/wrong-vector points, then terminal-CASes receipt/head against exact Body/plan/claim/prior-head authority. Body history owns bounded retirement of terminal non-current collections; running/current collections are preserved and deletion requires exact managed metadata. Idunn recovery uses specialized process authority only: immutable exact predecessor termination must exist before a host-signed replacement launch can claim the one replacement slot; the replacement's latest signed heartbeat must be ready; one Body CAS then terminalizes the abandoned claim/attempt, advances the fencing epoch, and persists an immutable recovery receipt binding old claim, termination, replacement launch, ready heartbeat, and successor claim. Query admission remains absent." + 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 receipt, PID, executable hash, runtime id, and host singleton before the service derives the immutable Body route. 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. Every pulse re-resolves the mutable Ollama tag to its installed artifact digest, probes dimensions, embeds only after claim acquisition, writes an epoch-fenced managed Qdrant collection, whole-scrolls typed payloads and unnamed vectors, rejects cyclic offsets and duplicate/extra/missing/substituted/nonfinite/wrong-dimension/wrong-vector points, then terminal-CASes receipt/head against exact Body/plan/claim/prior-head authority. Body history owns bounded retirement of terminal non-current collections; running/current collections are preserved and deletion requires exact managed metadata. Idunn recovery uses specialized process authority only: immutable exact predecessor termination must exist before a host-signed replacement launch can claim the one replacement slot; the replacement's latest signed heartbeat must be ready; one Body CAS then terminalizes the abandoned claim/attempt, advances the fencing epoch, and persists an immutable recovery receipt binding old claim, termination, replacement launch, ready heartbeat, and successor claim. Live Yggdrasil pressure exposed one remaining authority split: execution is monolithic, accumulates every embedding before durable Qdrant publication, and emits its signed provider heartbeat only after the potentially hour-long pulse returns. Ollama logs and GPU utilization are observation only. The next owner is a separate provider-signed projection-progress document bound to exact launch, claim/attempt epoch, sealed plan, Body generation, model artifact, and durable checkpoint; heartbeat remains liveness, progress proves advancing work, and receipt/head alone prove Current. Idunn must derive warming only from the authenticated join and a per-operation no-advance deadline, never from a larger total wall timeout. Query admission remains absent." 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." @@ -737,4 +737,4 @@ current_status: - The 2026-07-16 deployability audit replaced `notes/epiphany-swarm-readiness-plan.md`'s obsolete June queue with the live evidence matrix. Brake, initiative recovery, Persona speech eligibility, memory lifecycle, CultNet-first operation, and branch-local Hands/Soul/Mind gates are landed. The installed after-login host is operational and real Mind/Modeling semantic queries pass against Yggdrasil, but it is not yet deployable as one proven machine: installed binaries predate recovery commit `34802407`; mutable sibling lookup permits mixed build generations; Mind lacks the race-bounded whole-repository readiness join; and reboot/logon lineage remains permission-bound. Health, heartbeat, Task Scheduler state, Qdrant existence, legacy retrieval Ready, and Eve/Gjallar rows cannot substitute for either query admission or repository readiness. Sight surfaces no longer publish the foreign constant `queryAdmission=false`; they report only facts they observe. - 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. - next_action: Build the first live deployment only on Yggdrasil. Close the authority chain in order: Epiphany supervisor publishes aggregate daemon-owned Idunn RUDP health and replaces stale child lineage; Bifrost emits exact repository/ref/commit release authority; Idunn validates and freezes that authority before either automatic or manual deployment; gamecult-ops installs the immutable Epiphany release/state/service body and deployed-revision witness. Then publish through Bifrost, request deployment through Idunn, and prove local Ygg Body, Mind, Qdrant, Ollama, health, and deployment receipts. Local Starfire execution is development-only. Do not reboot any host without explicit live operator approval. + next_action: Finish the live exact-SHA `586147a751c6eec2d59cd8dc10bd17ce0d02a4d1` Yggdrasil pressure run without granting GPU/log observations authority. Then split monolithic workspace coverage execution into resumable durable batch checkpoints and publish a separate launch-bound signed `epiphany.workspace_coverage.projection_progress.v0` stream. Keep process heartbeat independent, derive warming from fresh exact-lineage heartbeat plus monotonically advancing durable progress, and reserve active/Current for the authenticated terminal receipt/head. Replace Idunn's total projection wall clock with bounded per-operation/no-advance failure while retaining exact Bifrost release authority. Redeploy only through live Bifrost -> Idunn. Local Starfire execution is development-only. Do not reboot any host without explicit live operator approval.