Reject bind-mounted mutable cognition

This commit is contained in:
Meta Vens 2026-08-10 21:01:03 +01:00
commit a475685714
5 changed files with 97 additions and 20 deletions

View file

@ -4710,9 +4710,18 @@ mod semantic_projector_authority_tests {
.map(|offset| start + offset)
.unwrap();
let branch = &source[start..end];
assert!(branch.contains(
"authenticate_current_workspace_coverage_terminal_sight(\n &runtime_store,\n &args.store,"
));
let terminal_call = branch
.split_once("authenticate_current_workspace_coverage_terminal_sight(")
.map(|(_, tail)| tail)
.unwrap();
assert_eq!(
terminal_call
.lines()
.take(3)
.map(str::trim)
.collect::<Vec<_>>(),
vec!["", "&runtime_store,", "&args.store,"]
);
let lineage = branch
.find("authenticate_workspace_coverage_replacement_lineage")
.unwrap();

View file

@ -3403,6 +3403,47 @@ The completed-session archive remains separate and accepts only terminal
per-attempt archive above; retry and fulfillment readers consume its tombstone
rather than inferring state from independently missing claim/result rows.
## CultCache single-file publication substrate
Single-file CultCache publication is owned by the exclusive writer. It encodes
one complete sorted snapshot, stages it beside the destination, syncs the staged
file, atomically replaces the destination, and then performs the parent
directory durability barrier. The committed destination is never deliberately
removed before replacement. A post-replacement durability error is ambiguous
commit evidence: callers must reread typed identity before considering any
retry; the error itself cannot authorize a duplicate consequence.
- Owner: `SingleFileMessagePackBackingStore::write_all_unlocked`, while holding
the destination's exclusive sibling lock.
- Inputs: the complete encoded snapshot, canonical destination, and existing
sibling directory.
- Outputs: one old-or-new complete destination snapshot; the next exclusive
write also removes abandoned regular staging siblings named exactly
`<destination>.<UUID>.tmp`.
- Derived state: staging files and the sibling lock are mechanics, never typed
recovery, replay, or work authority.
- Forbidden writers: destination truncation/removal, lockless repair, stale
staging publication, wildcard temp deletion, or error-code-driven retry.
- Shared paths: single-file push, delete, conditional replacement, append, and
compaction all converge on the same publisher and cleanup boundary.
- Cut line: cleanup is confined to the destination parent and exact destination
prefix plus valid UUID suffix; foreign names, other stores, directories, and
symlinks survive. The F: bind is not repaired by this cleanup and remains
rejected as a mutable authority substrate.
- Verification layer: exact packaged writers killed across randomized publish
boundaries, concurrent lockless decoding, reopen after every kill, monotonic
typed counts, file mode/ownership, abandoned-staging cleanup, and explicit
negative preservation of foreign siblings.
The exact Starfire Docker Desktop `F:` bind failed this layer: during packaged
writer interruption a lockless reader observed an empty published snapshot,
even though the later store decoded. Capability probes for rename and directory
fsync were therefore insufficient. A Docker named volume passed sixty
independent randomized writer kills and 5,000,000 concurrent lockless reads
without an empty, partial, undecodable, or regressing snapshot. Mutable resident
state must use the accepted Linux volume substrate; the Windows bind may carry
immutable package inputs and receipts, not live CultCache authority.
### Direct proposal Modeling closure
The Linux-native `53678374` fixture now constructs the remaining strong lane

View file

@ -26,10 +26,18 @@ or active resident turn exists.
Rejected fixture shapes remain preserved: missing model schema, revision-one
model without an exact self-hash, and a recovery timestamp earlier than its
coordinator start. Each failed closed. Actual c006 stayed untouched and remains
braked/stopped. Direct proposal fulfillment is accepted. Next map deployed
supervisor/projector stdout-stderr ownership, then run randomized packaged
CultCache interruption and concurrent-read proof on the Starfire bind substrate
before any c005 recovery. Yggdrasil never builds.
braked/stopped. Direct proposal fulfillment is accepted. Deployed
supervisor/projector stdout-stderr ownership was already accepted under
`gamecult-ops` `059821f`: both projector policies inherit `/dev/stdout` and
`/dev/stderr`, while systemd-journald is the sole deployed retention owner.
Exact packaged interruption falsified the Starfire `F:` bind as a mutable
authority substrate: a lockless reader observed an empty published snapshot
while an exact packaged writer was being killed. A Docker named volume instead
survived sixty randomized writer kills and five million concurrent lockless
reads with only parseable, monotonically nondecreasing snapshots. CultCache now
removes only its own UUID-shaped abandoned staging files on the next exclusive
write. Finish packaging and repeat that exact cleanup proof on the named volume
before migrating any resident state. Yggdrasil never builds.
## Exact packaged outer-worker retention accepted — 2026-08-10
@ -368,14 +376,33 @@ The source owner was CultCache's single-file publisher: it deleted the committed
destination before renaming a staged snapshot. Upstream CultCache `e8a9f2d`
now flushes a unique staging file, atomically replaces the sibling destination,
and performs the Unix parent-directory durability barrier; Windows uses
write-through replacement. Forty ordinary tests pass, with two explicit
operator crash probes ignored. Linux overlayfs and the exact writable Starfire
`F:` bind both pass replacement, failure-preservation, and directory-sync
checks. Thirty randomized writer SIGKILL/reopen passes on the bind and ten on a
Docker named volume always decoded one complete typed snapshot. The remaining
gate is to advance Epiphany to this dependency, package once, recover into a new
resident incarnation from surviving typed authority, and prove clean
restart/non-resurrection. The zero file is evidence, not a migration input.
write-through replacement. The individual replacement and directory-sync calls
work on Linux overlayfs and the writable Starfire `F:` bind, but the full
packaged interruption test rejected the bind. A concurrent lockless reader
observed an empty published snapshot while the exact packaged runtime writer was
killed; the store later decoded with 90 events. Two abandoned UUID staging files
remained. `F:` therefore cannot own mutable Epiphany state.
The same exact release on Docker named volume
`epiphany-cultcache-interruption-53678374` survived sixty independently named
writer containers killed at randomized 1-150 ms boundaries. Exact packaged
status decoded after every kill and the event count never rolled back. A
concurrent lockless reader completed 5,000,000 reads, observing 136-164
envelopes with no empty, partial, undecodable, or regressing snapshot. The final
store contained 163 events, retained mode 0644 and uid/gid 0, and hashed
`39026d9d5d432ab24ca3f2a737ed2498728006e89b794d18a4f9cf371f5fb9b7`.
Three abandoned UUID staging files remained after killed writers.
CultCache now assigns bounded staging cleanup to the next exclusive writer. It
deletes only regular siblings named exactly `<destination>.<UUID>.tmp`; unknown
suffixes, other destinations, directories, and symlinks are not cleanup
authority. Forty-one library tests and 664 core library tests pass. A stale
supervisor source-shape test was corrected to verify exact call arguments
without claiming indentation authority; all 25 supervisor tests pass. The
remaining gate is to commit/package this dependency, prove a final successful
named-volume write removes the killed writers' staging corpses without touching
foreign files, then migrate copied resident state and prove clean restart and
non-resurrection. The zero file is evidence, not a migration input.
## Cross-container resident ownership accepted — 2026-08-09

View file

@ -38,7 +38,7 @@ current_status:
summary: Epiphany is a supervised engineering alpha on Starfire, not deployment-ready. Exact b8138a6b active-child SIGTERM and restart, exact 9f369528 deterministic warm packaging, exact c930f505 cross-container ownership, exact ed15f83a resident lifecycle retention, exact 16c4b19f coordinator receipt and Heartbeat artifact retention, exact cce2b8ac narrow model-generation retention, exact eea15e82 model-turn JSON ingress, exact b1e8c89a semantic unattempted-generation retention, exact 6bc3ec3f semantic physical-epoch retirement, and exact 44230a05 Persona conversation retention are proven. Gamecult-ops 059821f owns Yggdrasil stream retention and exact 6ee08a4 owns stable Starfire Persona-permit firewall ingress. Exact 16c4b19f genuine idle and exact a987d2f7 active cognition completed 900-pulse bounded plateaus. Runtime-owned typed fulfillment is accepted live under exact 6dd9b132. Yggdrasil is the small public crossing body, never the release forge.
latest_phase: Exact pushed 53678374 release sha256-5d50fa7dab6bbfae78982d6dd8e8a21f2c3642bb6678686660c59fb42aa97d05 with witness sha256-1814d2b7ee0bd93ab93a2878beb6ab7916fa7e1a476b8bde6dc7e06cd79bda73 authenticates 24 binaries with zero warnings. Exact packaged swarm proves failed and fulfilled outer-worker retention on copied Body-bound Linux state. The same body now directly proves proposal Modeling: immutable proposal/request/payload, generation-one Body carrier, exact launch binding/hash, terminal Modeling result, accepted Evolution patch, and one proposal-citing Eyes frontier. Zero-receipt recovery closed the resident grant recovered-fulfilled; packaged retention removed its lifecycle; an eight-envelope worker archive preserved exact fulfillment while removing launch/job/claim. Heartbeat then issued only the causally new admitted-model-direction grant, not a proposal retry. Actual c006 remains braked and stopped.
operational_state:
local_worktree: exact_53678374_worker_retention_and_direct_proposal_modeling_accepted_log_and_interruption_audit_next
local_worktree: cultcache_named_volume_substrate_accepted_f_bind_rejected_cleanup_cut_under_test
operator_wireguard: restored
starfire_persona_permit_firewall: persistent_exact_gamecult_ops_6ee08a4
yggdrasil: canonical_small_public_crossing_body
@ -69,8 +69,8 @@ current_status:
starfire_linux_modeling_peak: 109887488_bytes_resident_body_plus_modeling_circuit
yggdrasil_epiphany_service_contract: repaired_in_gamecult_ops_812b427_not_installed
resident_physiology: c006_exact_c693aaea_settled_braked_no_active_lease_no_attempt_three_old_processes_stopped
unresolved_authority: Coordinator receipt, Heartbeat pulse-artifact, genuine-idle and active resource plateaus, exact-grant terminality, restart-persistent cooldown refusal, schedule/action issuance cardinality, runtime-owned typed fulfillment, all three packaged fulfilled-before-receipt lanes, narrow model-generation retention, published model-turn JSON ingress, semantic logical/physical retention, Persona conversation retention, stable Starfire firewall ownership, completed model-adapter session archival, normal coordinator lifecycle opening/error closure/legacy repair/archival, co-resident resident lifecycle retention, and authenticated outer-worker attempt retention are accepted live. Deployed supervisor/projector stdout-stderr ownership and randomized interruption/read-loop proof on mutable Starfire bind storage remain open. Historical migrated semantic attempts without recorded physical namespace remain durable and non-retirable. One completed Discord consequence remains blocked by the absent Yggdrasil credential.
next_action: Audit supervisor and projector stdout/stderr ownership, bounding, rotation, restart identity, and deletion authority before editing. Then run exact packaged CultCache read/write fault probes on the Starfire bind substrate: concurrent read loop plus randomized SIGKILL across publication boundaries must yield only old-or-new parseable snapshots, preserve permissions, and never resurrect typed authority. Do not recover c005 until the substrate proof is accepted. Keep actual c006 braked. Yggdrasil never builds.
unresolved_authority: Coordinator receipt, Heartbeat pulse-artifact, genuine-idle and active resource plateaus, exact-grant terminality, restart-persistent cooldown refusal, schedule/action issuance cardinality, runtime-owned typed fulfillment, all three packaged fulfilled-before-receipt lanes, narrow model-generation retention, published model-turn JSON ingress, semantic logical/physical retention, Persona conversation retention, stable Starfire firewall ownership, completed model-adapter session archival, normal coordinator lifecycle opening/error closure/legacy repair/archival, co-resident resident lifecycle retention, authenticated outer-worker attempt retention, deployed supervisor/projector journald ownership, and Docker named-volume atomic snapshot visibility are accepted live. Starfire's Docker Desktop F: bind is rejected for mutable authority after an exact packaged lockless reader observed an empty published snapshot during writer interruption. Historical migrated semantic attempts without recorded physical namespace remain durable and non-retirable. One completed Discord consequence remains blocked by the absent Yggdrasil credential.
next_action: Commit and package the CultCache exclusive-writer staging cleanup, then repeat the exact named-volume interruption matrix and require the next successful write to remove only exact UUID staging siblings while preserving foreign files, store mode/ownership, monotonic parseability, and typed authority. Migrate only copied resident state into the accepted named volume and prove restart/non-resurrection before touching actual c006. Yggdrasil never builds.
active_subgoals:
- Prove Persona, Self, Eyes, Modeling, Imagination, Hands, Soul, Mind, Continuity, and nervous-system behavior individually.
@ -87,7 +87,7 @@ organ_readiness:
hands: proven for bounded consequences; native patch, command, commit, push, and typed receipts bind reviewed path ceilings to exact changed-path subsets.
soul: proven for the current bounded route-chain consequence; exact d3bfbda0 launched Verification through typed plan-decision provenance, result f23fe2b6 was accepted at revision 57, and Self then derived Modeling before any repeated Hands authority.
mind: proven for launch-owned resident frontier adjudication; two historical attempts failed closed, exact bd96305e derived immutable identity from authenticated launch, authorized retry 2d2a3e8b completed, and Self atomically committed terminal adopt decision e7d7f3c7. Broader memory retention and long-duration behavior remain open.
continuity: partial; authenticated 55660d78 terminalized the copied v28 dead worker once and refused duplicate restart, while sealed v28 remained unchanged. Exact 100d8854 closes only all-terminal sessions, emits one deterministic event, and refuses post-close jobs. Exact 42bc665a proves bounded retention and restart sequence recovery. A digest-pinned Linux runtime-spine at b5140288 repeated closure invariants on Yggdrasil. Authenticated c005 proves typed resident state survives hard exit, executable-body replacement, runtime-topology correction, and restart while preserving awaitFrontierProposal. Exact b8138a6b proves active-child and idle SIGTERM closure with exit zero and final braked state. Exact c930f505 proves cross-container resident ownership refusal without state mutation while Heartbeat retains its distinct typed lock. Exact ed15f83a packages resident lifecycle retention. Exact 16c4b19f packages coordinator receipt retention without resurrection. Exact 75b84180 packaged Linux proves worker start gating, claimed/active orphan death recovery, canonical resident requeue, and one distinct same-request retry without dual live authority. Exact 7637b1cf packages and proves atomic generic job/result/event plus terminal-failure process closure, canonical resident settlement, and a distinct same-request retry with no dual live authority. Exact 2e66433f packaged Self proves admitted-model-direction valid-result-before-receipt closes once without retry. Exact 52ee6b53 packages the corrected full-backing resident retention fence. Exact 53678374 packages authenticated failed and fulfilled outer-worker archival: window one retires only the older exact seven-envelope family, retained authority stays live, archived failure cannot resurrect, and archived fulfillment remains queryable. Direct packaged proposal Modeling, deployed log retention, and randomized mutable-store interruption remain open.
continuity: partial; authenticated 55660d78 terminalized the copied v28 dead worker once and refused duplicate restart, while sealed v28 remained unchanged. Exact 100d8854 closes only all-terminal sessions, emits one deterministic event, and refuses post-close jobs. Exact 42bc665a proves bounded retention and restart sequence recovery. A digest-pinned Linux runtime-spine at b5140288 repeated closure invariants on Yggdrasil. Authenticated c005 proves typed resident state survives hard exit, executable-body replacement, runtime-topology correction, and restart while preserving awaitFrontierProposal. Exact b8138a6b proves active-child and idle SIGTERM closure with exit zero and final braked state. Exact c930f505 proves cross-container resident ownership refusal without state mutation while Heartbeat retains its distinct typed lock. Exact ed15f83a packages resident lifecycle retention. Exact 16c4b19f packages coordinator receipt retention without resurrection. Exact 75b84180 packaged Linux proves worker start gating, claimed/active orphan death recovery, canonical resident requeue, and one distinct same-request retry without dual live authority. Exact 7637b1cf packages and proves atomic generic job/result/event plus terminal-failure process closure, canonical resident settlement, and a distinct same-request retry with no dual live authority. Exact 2e66433f packaged Self proves admitted-model-direction valid-result-before-receipt closes once without retry. Exact 52ee6b53 packages the corrected full-backing resident retention fence. Exact 53678374 packages authenticated failed and fulfilled outer-worker archival: window one retires only the older exact seven-envelope family, retained authority stays live, archived failure cannot resurrect, and archived fulfillment remains queryable. Direct packaged proposal Modeling and deployed journald ownership are accepted. Exact packaged interruption rejects Docker Desktop F: bind for mutable authority and accepts Docker named-volume atomic visibility across sixty randomized kills and five million concurrent lockless reads; cleanup/repackage and copied-state migration remain open.
nervous_system: partial; detached scheduling, runtime jobs, typed feedback, ordinary Windows coverage-store identity, and operator projection work. Exact c0055772 proves Linux heartbeat acknowledgement/regrant, Self single-consumption launch, authenticated plan coordinator completion, and a persistent resident body. It also proves detached model workers cannot survive a one-shot container PID 1 exit. The accepted Linux Eyes-to-Modeling circuit proves detached role workers, native read-only tool loops, typed admission, and causal next-organ routing at a measured 109887488-byte peak. Modeling job commit spent 160183ms in two cold Repository Body scans. A source cut now reuses one private index across both equality scans; 25 focused observer tests pass and a live-worktree mechanism benchmark reduced the pair from 3832ms to 1537ms. Packaged coordinator timing remains open. Authenticated d910158f isolates Self policy behind one root-graph optional coordinator feature; warm policy invalidation is 6.02s. Root Linux packaging is 12m33s cold and 9.08s warm with persistent caches. Long-duration pressure and resource plateau remain open. Yggdrasil is not a release forge at its current memory budget.
forbidden_actions:

2
vendor/cultcache-rs vendored

@ -1 +1 @@
Subproject commit e8a9f2d016f596c2172b658c2ddf769185dfba22
Subproject commit 0ba87453115e3d44e8fcb7419866cd7dd70fb096