Repository navigation
[DRAFT RDTE] Model persistent active-session owner across disposable restart - #185
Conversation
…estarts Document /tmp-only owner pointer and unreachable old handover intent; add bounded blue durable-owner model, mandatory unsafe orphaned-intent TLC counterexample, and independent offline deterministic state search. No production pointer/generation changes or false recovery release claim.
2026-11-22 R035 — bounded owner-pointer model first exact-head proofCurrent Nonclaim: This verifies an abstract desired persistent pointer protocol and reproduces an abstract dangerous ephemeral /tmp fallback, not a measured WineBot runtime failure, not a migrated persistent owner record, and not monotonic generation CAS. Early process-family lock source #184 is separate and must be exact-head system-qualified before durable pointer production implementation. Strict DRAFT and NOT_READY_FOR_HARDWARE_TEST. |
Source-rooted release gap
Owning MVP #181
eda01696f297b930185546993a2f5184e340603chasapi/utils/files.py::SESSION_FILE = "/tmp/winebot_current_session", and itswrite_session_dir()only writes that volatile location.scripts/init/10-setup-infra.shchooses and writes a fresh session when no explicit session environment is supplied;api/core/handover_recovery.pychecks only markers reachable via the active pointer. Across disposable container replacement, persisted handover intent may exist without the pointer required to find it. This is a source-proven refinement gap, not a claimed observed production failure.Independent formal/red-team workcell ($0 public GHA)
Base is exactly qualified #181, new head
56d06dcbd1055fd0fe8c18abe6a85d722cb8aeb3, one commit ahead, zero behind, seven source-only formal paths; no Wine runtime API, shell entrypoint, pointer or durable user data changed:formal/tla/PersistentSessionOwner.tla+ cfg: proposed persistent owner with volatile cache rebuilt during crash recovery,NoFalseReadyand no split visible owner.formal/tla/PersistentSessionOwnerUnsafe.tla+ cfg: adversarial/tmppointer loss after durable prepare, then a fresh default session is reported despite an orphaned marker; TLC MUST prove the expectedNoOrphanAtRestcounterexample (parser/timeout do not count).formal/tests/test_persistent_session_owner.py: independent bounded stdlib red/blue state enumeration, safe synthetic owner names; no user files/Wine/secret inputs.formal/PERSISTENT_SESSION_OWNER.md: current source lines, production persistent-owner record and monotonic CAS plan, marker/profile/broker refinement, crash-point and two-container test gates.Follow-up dependency ordering
This design/testing branch is independent of #184 and can qualify in parallel while early entrypoint admission is fixed. Production refinement is sequential after #184's lock/FD admission and shared mount custody are proven, then implement generation-CAS active owner storage, startup replay/quarantine and cross-container failure injection. No claim of durable pointer fix, native release, closed #166 WinInspect HWND, or multi-host distributed consensus. Preserve DRAFT/NOT_READY_FOR_HARDWARE_TEST and no private Actions spend, paid cloud, local hardware, secret/raw source projection, main merge or release.