Skip to content

[DRAFT RDTE] Model persistent active-session owner across disposable restart - #185

Draft
mark-e-deyoung wants to merge 1 commit into
integration/mvp-control-reap-observer-20261121from
rdte/mvp-persistent-owner-pointer-model-20261122
Draft

mark-e-deyoung wants to merge 1 commit into
integration/mvp-control-reap-observer-20261121from
rdte/mvp-persistent-owner-pointer-model-20261122

Conversation

@mark-e-deyoung

Copy link
Copy Markdown
Collaborator

Source-rooted release gap

Owning MVP #181 eda01696f297b930185546993a2f5184e340603c has api/utils/files.py::SESSION_FILE = "/tmp/winebot_current_session", and its write_session_dir() only writes that volatile location. scripts/init/10-setup-infra.sh chooses and writes a fresh session when no explicit session environment is supplied; api/core/handover_recovery.py checks 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, NoFalseReady and no split visible owner.
  • formal/tla/PersistentSessionOwnerUnsafe.tla + cfg: adversarial /tmp pointer loss after durable prepare, then a fresh default session is reported despite an orphaned marker; TLC MUST prove the expected NoOrphanAtRest counterexample (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.
  • Public TLC workflow expands to the additional BLUE model and mandatory RED invariant proof while retaining the previously green three models and two expected negative controls.

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.

…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.

Copy link
Copy Markdown
Collaborator Author

2026-11-22 R035 — bounded owner-pointer model first exact-head proof

Current 56d06dcbd1055fd0fe8c18abe6a85d722cb8aeb3 source is exactly one commit ahead of independently qualified canonical MVP #181 eda01696f297b930185546993a2f5184e340603c. All seven changes are formal-only and documented source. Public formal TLC #44982261882 TERMINAL SUCCESS: original three blue models plus new PersistentSessionOwner, both historical expected-red models plus new PersistentSessionOwnerUnsafe orphaned durable intent violation, and offline Python graph-search suite all passed. BuildKit #44982261755 SUCCESS. Full CI #44982261787 still in progress at last readback; do not claim terminal broad PASS.

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.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant