diff --git a/notes/fresh-workspace-handoff.md b/notes/fresh-workspace-handoff.md index 14cc8ad3..67466cc6 100644 --- a/notes/fresh-workspace-handoff.md +++ b/notes/fresh-workspace-handoff.md @@ -2288,3 +2288,35 @@ vectors, so Qdrant's inherited Modeling collection remained at 22 points and the hour of partial work was discarded. This is the live falsification of the current execution/deployment contract. Do not reinterpret it as an Ollama or GPU failure and do not repair it by lengthening the total wall timeout. + +## Live projector checkpoint integration landed (2026-07-17) + +Epiphany main commit `7362e54b` replaces the production monolithic workspace +executor. The live path now processes sealed plan-order batches of at most 128 +points, performs a waited Qdrant upsert, reads those exact IDs back with payload +and vector, admits a provider-signed Body checkpoint, and publishes progress +only from that admitted checkpoint. Restart authenticates the complete +genesis-to-head checkpoint chain against current Body, claim, attempt, plan, +launch, and host authority; it re-observes every checkpointed batch before +resuming at the next ordinal. + +Terminal receipt/head proof remains separate. It reconstructs independent +payload/vector expectations from the authenticated full checkpoint chain, +requires complete contiguous plan coverage, and rejects cycles, gaps, +overlaps, duplicate checkpoint or Qdrant rows, missing/extra points, and any +payload/vector substitution during the final whole scroll. The previous +circular final-vector comparison was found by Soul and cut before commit. + +The provider heartbeat is now an independent signed 10-second nerve and keeps +publishing while projection blocks. Heartbeat publication, sequence, or local +projection-lock failure terminates the whole provider process; a projector may +not continue acting after losing its liveness organ. Pulse refusal remains an +operator projection and no longer contaminates heartbeat status. + +Focused proof: 10 checkpoint tests, 17 projector tests, 3 service tests, the +reserved supervisor-argument test, and production checks for both projector and +supervisor binaries pass. The old all-at-once executor survives only under +`cfg(test)` for legacy pre-embedded invariant tests; it is absent from the +deployed body. The next authority cut is Idunn and aggregate health: consume the +exact provider progress document with a no-advance lease, never a generic job +progress noun or total projection wall clock. diff --git a/state/ledgers.msgpack b/state/ledgers.msgpack index 20d34c48..090f906d 100644 Binary files a/state/ledgers.msgpack and b/state/ledgers.msgpack differ diff --git a/state/map.yaml b/state/map.yaml index 779e3063..2d644853 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. 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." + 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. Idunn still must derive warming from the authenticated heartbeat+provider-progress join with a no-advance deadline and must never use a total projection wall clock as 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." 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." @@ -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: Integrate the now-typed workspace batch checkpoint and projection-progress contracts into the real execution path. Add one bounded waited Qdrant upsert and exact retrieve-by-ID readback; only its verified point/payload/vector bindings may enter the Body checkpoint CAS. Refactor monolithic embedding into checkpointed batches, derive Verse progress from admitted checkpoint envelope digests, and keep an independent signed process heartbeat alive during work. Then make Epiphany aggregate health and Idunn deployment waiting consume the provider-owned exact progress document directly, using a no-advance lease while reserving active/Current for the terminal receipt/head. Remove the deploy script's total projection wall-clock verdict, reauthorize the resulting exact upstream SHA through Bifrost, and redeploy only through live Idunn on Yggdrasil. Local Starfire execution is development-only. Do not reboot any host without explicit live operator approval. + next_action: Make Epiphany aggregate health and Idunn deployment waiting consume the exact provider-owned workspace projection progress document directly. Derive warming only from a fresh authenticated heartbeat plus monotonically advancing exact-lineage checkpoint progress; use a per-operation no-advance lease, reserve active/Current for the terminal receipt/head, and remove the deploy script's total projection wall-clock verdict. Add negatives for frozen progress with live heartbeat, stale heartbeat with progress, 100 percent without receipt/head, and cross-release/launch/Body replay. Then reauthorize exact Epiphany commit `7362e54b` or its reviewed successor through Bifrost and redeploy only through live Idunn on Yggdrasil. Local Starfire execution is development-only. Do not reboot any host without explicit live operator approval.