Skip to content

[DRAFT MVP-IC1] Integrate Wine11 disposable runtime with frozen API conformance - #158

Draft
mark-e-deyoung wants to merge 108 commits into
mainfrom
mvp/ic1-integration-20261117
Draft

mark-e-deyoung wants to merge 108 commits into
mainfrom
mvp/ic1-integration-20261117

Conversation

@mark-e-deyoung

Copy link
Copy Markdown
Collaborator

MVP-IC1 integrated candidate — draft, no production promotion

Authority: reviewed accepted main@f5ba0256f330958dcf35710a822508cdb31fc40b; exact merge commit cff1ff7429fbbd6f604100061e03e3b2ccec8e1e, parent #154 913f08b517a580484c7b1a55ced0c17e98e92c1b, second parent #123 3acc219a1627a74bdcea6388144cc391ec2b57b4. This branch merges only the previously source-qualified layered runtime and frozen API conformance PRs, retaining both real commit parents. The sole code conflict scripts/ci/test.sh is resolved with the complete union of 34 test paths; scripts/ci/resolve-conformance-units.py import order adjusted exactly for Ruff I001. No other source files changed beyond the exact #123 blobs on the #154 tree.

Why: Previous isolated #154 and #123 merged source-only frozen conformance #43893738333 PASS, #154 actual Wine11 layered HIL #43893738355 PASS, six-volume synthetic backup #43893738349 PASS and #123 full CI #43800228689 PASS on their individual source hashes. This new candidate is UNQUALIFIED until its own exact-head CI, frozen v1, startup, 55m/fault and restore run PASS.

MVP gates: one actual rights-cleared Windows GUI application + OpenTTD game install/start/observe/control/save/relaunch in this layered candidate; exclusive writer lease, concurrent readers, human emergency takeover and automated keyboard/accessibility checks; wine-generated disposable prefix backup/restore/rollback; candidate image hash/provenance, release/install/security review and explicit distribution approval. #155 rights-cleared WinAPI recipe and Go snapshot tooling are separately qualified on distro Wine; include only tested minimum later. #157 reversing research remains out of critical path.

Constraints: protected main unchanged; original #123, #150, #154, #155 held/draft, no force or waivers. Public standard GHA only, zero private Actions minutes, no paid inference/GPU, no private host/profile/tunnel, no unapproved raw logs/artifacts or GHCR image publication, no production or hardware execution. DLE = Durable, Legible, Executable, see MVP-IC1 plan. Keep NOT_READY_FOR_HARDWARE_TEST until all accepted gates.

Use the existing 120s initial conformance health budget for isolated slice restarts; preserve fail-closed diagnostics and add a source guard for this temporal mismatch.
… stdout

Leave raw contract names and response data job-local and artifact upload opt-in; synthesize a regression with private sentinels to prove the projection boundary.
Freeze the accepted public contract fixture in the provisional qualification branch and test the SHA-based source-custody invariant.
… domain

Report aggregate counts for ten allowlisted contract test modules while withholding raw node IDs, responses and runtime data. Include synthetic leakage and invalid-inventory regressions; preserve original public artifact schema.
…nventory count

Handle pytest rootdir-relative node IDs through fixed allowlisted domain mapping. Add portable window count without changing entries or error disclosures; register synthetic unit and public redaction regressions.
… result

Use supported x11.sh focus subcommand, accept exact visible-title targeting, reject untrusted IDs and empty targets without mutation, and preserve control-denial guard. Register synthetic X11-independent regressions.
…test

First failure was stale assertion for x11.sh focus-window, which is not implemented, plus legitimate 0x1234 XID. Accept decimal/hex XIDs with strict regex and keep actual success/denied semantics.

Copy link
Copy Markdown
Collaborator Author

2026-11-21 00:46+0100 — shared conformance provenance diagnostic and exact-head qualification

Confirmed: both unrelated independent correction PR heads reached Pre-flight (Lint & Unit) SUCCESS and Integration (Smoke Test) SUCCESS but terminal Conformance (Contracts) FAILURE: broker #170 542f7bc8771a15912253ebe987145370598f38aa CI 44793837531, recovery #171 720f1dbe73b51f3bad5b85caddf62f168f359e2a CI 44795909932. In both, conformance job checks out a separate moving default branch of mark-e-deyoung/winebot-contracts in .github/workflows/ci.yml without a recorded exact contract SHA. Current contracts main 205666f7f0235cb0fc51ca8a5af84f9f67831a74 has recent vNext assertion classification changes (fe3efd1f, 34d1c87a, etc.). Historical MVP #158 at 9809519b had CI 44666519926 SUCCESS, but its actual external contracts SHA was not pinned in source. This is a confirmed reproducibility deficiency and possible common cause of changed conformance verdict, NOT proof that the new contract revision caused the failures. Conformance log deliberately redirects full private/sensitive test details to local only and publishes sanitized summary artifact; do not expose raw failed test IDs or edit conformance to hide failure. Next method: explicitly qualify an exact contract ref on a separate diagnostic branch, compare exact contract SHA from successful vs failing run if available, and use a controlled same-SHA run to isolate source vs contract drift. Keep failed gating visible.

The unit/fixture defects in #171 have been addressed at exact head 720f1dbe73b51f3bad5b85caddf62f168f359e2a CI 44795909932 terminal aforementioned conformance FAIL (unit/smoke SUCCESS). No merge or release. Preserve PR #170/#171 independent authority and product gates, no private GHA spend.

Copy link
Copy Markdown
Collaborator Author

2026-11-21 00:46+0100 independent diagnosis: exact external conformance source admission

Both independent cross-layer patches remain DRAFT and not merged: formal/broker #170 exact 542f7bc8 and crash-handover #171 exact 720f1dbe. Each has Pre-flight Lint+Unit SUCCESS, Integration Smoke SUCCESS, but Conformance (Contracts) FAILURE on full CI. The conformance job currently checks out mark-e-deyoung/winebot-contracts without ref, thus its evolving default-branch contents are not bound to the WineBot commit, compromising reproducibility. Historical owning #158 9809519b full CI 44666519926 SUCCESS does not establish the same external contract revision. Recent external contracts commits changed vNext test classification, but causal responsibility is not yet established.

Created separate public DRAFT diagnostic PR #172 based on otherwise unchanged main f5ba0256f330958dcf35710a822508cdb31fc40b, source exact HEAD 541f9765f4e6ba2469671646b66277b1d9a1d7a8. It only pins the external conformance checkout ref: 205666f7f0235cb0fc51ca8a5af84f9f67831a74 and disables persisted credentials. No contract assertions modified, no test skipped, no raw failure details published. New free public CI #44839445266 queued; source-independent public-safety workflows also queued. Compare exact SHA baseline verdict with same exact external contract SHA on #170/#171 before deciding contract authority and remedial code. Existing sensitive logs remain local/sanitized.

Release status unchanged: #158 baseline qualified but draft, #166 native WinInspect repaired executable not yet admitted; private #468 cloud-source C++ test/projection still blocked. Do not merge #170/#171/#172 or treat pinned ref as final authority without qualification. No paid/private runner, sovereign hardware, credentials, or private code used.

Copy link
Copy Markdown
Collaborator Author

2026-11-21 ~00:50+0100 — second broker authorization bypass fixed, exact conformance baseline isolated

At prior formal/broker PR #170 542f7bc8, source inspection of api/core/broker.py::check_access revealed new tickets could still be issued after STOP_NOW in headless or agent-only sessions: after a human emergency stop the function returned through the implicit not interactive / policy shortcut before STOP_NOW veto. This is independent of the earlier stale-queued-ticket race; generation invalidation alone was insufficient to prevent a fresh post-revoke ticket.

Actual corrective changes on the same DRAFT #170 branch current exact head d00d2110c5d40d7f8862063a3d7901f215da96bd: check_access now checks STOP_NOW first, prior to any human-only/agent-only/headless shortcuts, revoking lingering agent state and returning false. tests/test_input_revocation_interleaving.py adds synthetic direct broker regression asserting headless/HYBRID and headless/AGENT_ONLY access permitted before STOP_NOW, then new ticket denied and old ticket invalid after STOP_NOW. Documentation updated. This is the bounded in-process input admission fix; not a claim of native in-flight cancellation/OS effect linearizability. Exact-head CI #44839600357, formal #44839600564 and BuildKit #44839600398 newly queued/in progress, no new exact-head PASS claim.

To diagnose common conformance failure without suppressing tests, created independently scoped DRAFT PR #172 from unchanged main@f5ba0256, exact head 541f9765f4e6ba2469671646b66277b1d9a1d7a8; only change to CI checkout is ref:205666f7f0235cb0fc51ca8a5af84f9f67831a74 for external mark-e-deyoung/winebot-contracts, plus no persisted credentials. This is diagnostic pin, NOT frozen contract authority or proposed test relaxation. Baseline CI #44839445266 in progress; record exact comparison when terminal before attributing #170/#171 conformance failures. Both prior PRs passed full pre-flight unit+lint and integration smoke but failed conformance on moving default contract source. Historical #158 baseline prior green but no external contract SHA attested. No private Actions, paid compute, local hardware, private source declassification, merges or releases.

Copy link
Copy Markdown
Collaborator Author

2026-11-21 00:46+0100 — independent exact-contract baseline reproduced failure; custody admission implemented

Actual terminal baseline evidence: the source-only diagnostic draft PR #172, original candidate 541f9765f4e6ba2469671646b66277b1d9a1d7a8 based on otherwise unchanged main f5ba0256f330958dcf35710a822508cdb31fc40b, tested fixed external mark-e-deyoung/winebot-contracts@205666f7f0235cb0fc51ca8a5af84f9f67831a74. Real public CI #44839445266 terminal FAILURE with Pre-flight Lint/Unit SUCCESS, Integration Smoke SUCCESS, Conformance Contracts FAILURE. Its other independent public safety gates passed. Thus the baseline conformance failure is reproducible without any broker #170 or handover #171 runtime changes. This falsifies the hypothesis that either of those diffs is a necessary cause of the current common conformance failure. Exact underlying conformance assertion failure remains unclassified; do not presume contract source drift is the sole cause, or suppress any failures.

New exact-source custody improvement on PR #172 HEAD 7e6597eb8e31b677ae60e6c04f3ab9e838eeba1c: after checkout, CI explicitly compares git -C contracts rev-parse HEAD with authoritative diagnostic exact 205666f7f0235cb0fc51ca8a5af84f9f67831a74, checks a clean contracts checkout, fails closed on mismatch, and emits public-safe CONTRACTS_SOURCE=EXACT_COMMIT_VERIFIED / exact SHA plus a GitHub job summary. The test verdict remains separate and can still fail. New CI #44841649732 in progress at checkpoint; no claim of passed custody step yet. Do not treat chosen pin as approved permanent contractual authority. Pinning is a reproducibility diagnostic, not a workaround.

Broker PR #170 HEAD d00d2110c5d40d7f8862063a3d7901f215da96bd: fixed newly found STOP_NOW bypass for fresh tickets via non-interactive / agent-only mode early returns; check_access() now checks STOP_NOW before shortcuts. Added direct synthetic ticket issuance and invalidation tests for both headless HYBRID and AGENT_ONLY modes. Formal/TLC #44839600564 terminal SUCCESS. CI #44839600357 terminal FAILURE at Conformance Contracts with Pre-flight Unit/Lint and Integration Smoke both SUCCESS; independent unchanged baseline fails similarly. This still does not guarantee cancellation of an already-running external native input.

Handover PR #171 HEAD 720f1dbe73b51f3bad5b85caddf62f168f359e2a: independent fail-closed startup marker reconciliation and filesystem crash-point tests; exact CI #44795909932 unit/lint + smoke SUCCESS, conformance FAIL. All drafts unmerged; no private source/runner, hardware, paid compute, release, or bypass of WinInspect #468 C++/projection native admission gate.

Copy link
Copy Markdown
Collaborator Author

2026-11-21 00:27+0100 — authoritative conformance root cause and stacked formal integration

Important correction to earlier causal hypothesis: archived sanitized results and full GHA checkout traces now establish the SAME exact external contracts source mark-e-deyoung/winebot-contracts@205666f7f0235cb0fc51ca8a5af84f9f67831a74 for historical MVP #158 CI 44666519926 62 passed, 0 failed, 9 skipped, and for unmodified main + diagnostic #172 CI 44841649732 55 passed, 7 failed, 9 skipped, broker #170 CI 44839600357 55/7/9, and recovery #171 CI 44795909932 55/7/9. The prior narrative that contract-branch drift could explain these exact verdicts was not supported: #158's workflow already pins the same SHA and its logs prove checkout. #172 exact-source attestation also PASSED. The common seven failures reproduce on main in both unrelated branches and disappear in MVP's 108-commit integration diff. This does not identify exact failed assertions because the approved public summary deliberately redacts them. Never bypass sanitization or weaken contract assertions.

Architectural implication: PR #158 9809519b94b9074ed681b297237f6dec89d43186 already implements separate broker fixes: grants refuse stale challenges and duplicate active leases, session handover revokes ownership, and track_async_input() cancels registered asynchronous mouse and xdotool key operations on revocation. Main-based PR #170 had independently reimplemented some of this logic via epoch tickets and omitted the MVP's existing in-flight cancellation implementation, creating an integration fork rather than a safe replacement. Must integrate on canonical qualified #158 instead of attributing conformance failures to both PRs.

Actual integration executed: NEW stacked DRAFT PR #173, base mvp/ic1-integration-20261117@9809519b94b9074ed681b297237f6dec89d43186, head d254dd9a6912d0a37929710588aff76d08245aaa. Includes source-provenance copy of three blue TLA+ models (ControlLease, SessionHandover, ReleaseAdmission), two unsafe red-team TLC counterexample models, finite Python model contracts, pinned TLC public-GHA workflow, and a rewritten refinement/authority README. Minimal production api/core/broker.py correction puts STOP_NOW above headless/AGENT_ONLY shortcuts; synthetic regression additions in existing MVP tests/test_mvp_control_safety.py prove no fresh post-stop headless agent admission even if session policy toggles and an already-tracked async input task is cancelled. Preserves original MVP broker/native cancellation and 62/0/9 contract source; avoids duplicate main-based route rewrite.

First exact-head public GHA receipts: formal run #44843910305 terminal SUCCESS including all blue TLC models, both expected counterexample gates, and independent Python contracts; BuildKit #44843910200 SUCCESS. full CI #44843910364 IN_PROGRESS, no unit/conformance verdict yet. Other MVP native workflows may require separate qualified exact-head trigger; do not claim 14/14 on new head.

Disposition: #173 remains draft, unmerged; #170 becomes analysis/supersession source and should not merge into main, #171 needs independent crash-recovery source reconciliation against canonical MVP lifecycle (not blindly merged), #172 baseline diagnostic completed and may close after confirmed DLE/PR disposition. #166 live native WinInspect still requires private #468 C++ admission, authorized projection, pinned rebuilt ZIP and real HWND observation. No private GHA minutes, private source publishing, paid compute, physical input, merge or release.

Copy link
Copy Markdown
Collaborator Author

2026-11-21 00:31+0100 R3 integration — independent crash-recovery source admission stacked on MVP

After proving historical MVP #158 conformance PASS 62/0/9 and unchanged main FAIL 55/7/9 at identical external contracts SHA 205666f7f0235cb0fc51ca8a5af84f9f67831a74, recovery also needed source reconciliation; simply merging main-based #171 would fork 108-commit-qualified lifecycle state/cancellation and keep a known unqualified conformance base.

New independent DRAFT stacked PR #174 based on authoritative MVP head 9809519b94b9074ed681b297237f6dec89d43186, new exact head 7b1712481dc6f3120fbab45a6dfbf5c1330bd58f. Ports fail-closed api/core/handover_recovery.py and tests from prior analysis #171, integrates api/server.py startup reconciliation before readiness, and minimally patches the MVP's api/routers/lifecycle.py for verified Wine profile link/compensating rollback and durable fsync after marker rename. Rewrites only two legacy mock seam references to use _link_profile_checked. All synthetic temp-file path/marker/id/rollback tests included. Found and corrected an important qualifier defect: scripts/ci/test.sh is an explicit allowlist and original main-based #171 had NOT included tests/test_handover_restart_recovery.py; earlier #171 green unit job did not actually run its 9 new crash scenarios. #174 adds the file to the mandatory runner. Exact-head CI #44844330166, CI unit isolation #44844330143 are in progress. Public source/provenance, WinInspect RPC redaction, disposable, public-safe evidence guards already successful; do NOT declare new recovery tests passed yet.

Parallel formal authority: stacked PR #173 exact head d254dd9a6912d0a37929710588aff76d08245aaa preserves MVP's existing cancellation and only adds missing absolute STOP_NOW veto ahead of noninteractive/agent-only shortcuts with targeted regressions, bringing over three blue/ two adversarial red TLC models. Formal #44843910305 terminal SUCCESS, BuildKit successful, CI #44843910364 in progress. Both new branches are independently stacked on #158 (not on each other); no automatic merge, product release or native observer promotion. Existing #170/#171 main-based work remains reference/supersession material and must not overwrite the qualified MVP implementations. Diagnostic #172 closed unmerged after proving causal baseline and pin custody.

Remaining proof: run exact-head #173/#174 conformance against same frozen external contract source, TLC and all real unit tests; red-team the recovery behavior if prior old owner session.state remains active after target commit, inactive orphan intent, live process/recorder effects and directory durable markers. Do not conflate the synthetic recovery tests with real cross-process/host/guest atomicity. WinInspect private #468 and real HWND observation #166 still held. Free public GHA only, no private minute spend, source disclosure, local host, or release.

Copy link
Copy Markdown
Collaborator Author

2026-11-21 00:34+0100 crash-recovery R4 — persisted two-owner invariant corrected, replay ordered

New stacked DRAFT #174 now exact HEAD 0e6b8d16f0ceee422853e77d26d20f26a1eef9b9, base qualified MVP #158 9809519b94b9074ed681b297237f6dec89d43186. Detailed code review confirmed a concrete cross-layer split ACTIVE state defect independent of host crash: resume_session shut down previous session processes via atomic_shutdown but did not write prior session.state = suspended before setting new target ACTIVE. The recovery prototype likewise could accept target ACTIVE while leaving prior session.state ACTIVE. Main-based PR #171 lacked its new crash tests in the mandatory explicit scripts/ci/test.sh manifest. Stacked #174 added that manifest entry.

Implemented:

  • Live MVP lifecycle now marks previous owner SESSION_STATE_SUSPENDED after broker switches and before removing durable intent when prior state was implicitly/explicitly ACTIVE, preserving completed/suspended previous states. Caught-exception rollback restores previous state; interrupted commits remain replayable.
  • api/core/handover_recovery.py validates matching reciprocal phase+operation peer marker before mutating either state. Target-side and outgoing-side recovery both demote a peer marked ACTIVE or with implicit missing active state to SUSPENDED, converge current pointer to ACTIVE, then clean markers. Missing reciprocal intent before state convergence fails closed; after already-converged state, absent peer marker can be safely replayed (crash between peer unlink and active-side cleanup).
  • Durable intent filenames are fsynced after rename; marker unlink now refuses symlink, does directory fsync, and errors are not swallowed. Successful cleanup orders peer marker first and current active marker last so a crash after peer removal leaves current marker for verified idempotent replay.
  • Expanded mandatory tests/test_handover_restart_recovery.py with explicit dual-active states, missing peer before commit denial, post-cleanup replay success, incomplete cleanup quarantine, malformed/out-of-root and stale-profile failure. Native Wine processes not started by synthetic tests. Separate tests verify actual silent-link failure is caught.

Current public cloud: source HEAD 0e6b8d16... generated CI #44844739774 and isolation #44844739725, focused safety runs in progress at checkpoint. No exact-head unit or conformance PASS yet claimed; earlier runs of prior #174 commits may be cancelled by the sequential safety patches. Parallel DRAFT #173 d254dd9a formal TLC SUCCESS, unit SUCCESS, conformance/vNext and integration still in progress on CI #44843910364.

This is single-host crash recovery under a canonical active pointer, not fully linearizable multi-process or distributed host/guest transactions. Explicit remaining: orphan inactive markers, generation CAS across multiple writers, running Wine/process state, recorder finalization and native effect recovery, private WinInspect C++ #468. No auto-merge, release, private source, paid minutes or hardware.

Copy link
Copy Markdown
Collaborator Author

2026-11-21 ~00:36+0100 repo hygiene and exact qualification checkpoint

Authority consolidation completed without merge: obsolete main-based draft #170 (duplicate broker/epoch implementation), main-based #171 (incomplete recovery test manifest) and diagnostic #172 (contract-SHA experiment) are CLOSED UNMERGED with reason/receipts preserved in their own DLEs. Two source-owned independent stacked drafts remain:

  • #173 d254dd9a6912d0a37929710588aff76d08245aaa: same frozen contract fixture as prior green MVP; actual formal #44843910305 SUCCESS; exact-head CI #44843910364 Pre-flight lint/unit SUCCESS and Run conformance tests step SUCCESS (7 failures of main-based PRs resolved by correct 108-commit MVP base). vNext evidence and integration smoke phases still in progress at check; full CI not terminal.
  • #174 0e6b8d16f0ceee422853e77d26d20f26a1eef9b9: mounted on same qualified MVP; unit manifest now explicitly executes new handover tests. On CI #44844739774, exact-head Containerized Linting SUCCESS and Containerized Unit Tests (runtime-independent) SUCCESS; unit isolation #44844739725 terminal SUCCESS. Source-provenance, public-safety, identity-redaction and disposable contract focused guards also SUCCESS. Interactive E2E, external conformance and smoke still in progress.

Both remain DRAFT with exact source lineage to owning #158 9809519b94b9074ed681b297237f6dec89d43186. Neither is merged or released; #166 native WinInspect + private #468 cloud executor/projection remains a separate MVP release hold. Unproven residuals: multiple independent process writers, directory fsync after generic atomic file updates, orphan inactive intent, running native input/Wine process and recorder finalization. Tests prove bounded single-process assertions and synthetic crash/rollback, not global distributed atomicity. Public free GHA only; no private GHA minutes, unauthorized projection, user hardware or paid resources.

Copy link
Copy Markdown
Collaborator Author

2026-11-21 05:07 CET — unified MVP atomicity source convergence, free-tier exact-head qualification

Verified independent terminal results: formal/control PR #173, exact head d254dd9a6912d0a37929710588aff76d08245aaa, CI run 44843910364 SUCCESS, separate TLC+2 adversarial counterexample run 44843910305 SUCCESS; and crash-recovery PR #174, exact head 0e6b8d16f0ceee422853e77d26d20f26a1eef9b9, full CI 44844739774 SUCCESS, plus all six focused public source-provenance, isolation, identity and disposable/safety guards SUCCESS. Both source branches remain DRAFT and unmerged.

New integration: created DRAFT PR #176, based on canonical owning MVP #158 9809519b94b9074ed681b297237f6dec89d43186, exact combined head 3511a0c93f01a12c91cc8ddc873204b15d5d9f07. Branch begins exactly at previously qualified #173 source and applies the seven non-overlapping changed files from independently qualified #174; no main-based #170/#171 code was blindly merged. This qualifies both workstreams together against same frozen external contracts source. Initial combined exact-head GitHub checks: formal TLC 44864557848 terminal SUCCESS, BuildKit 44864557816 SUCCESS, RPC identity/redaction 44864557872 SUCCESS, Public Conformance Evidence Safety 44864557928 SUCCESS, Provisional vNext Evidence Safety 44864557891 SUCCESS, Trust Pack Provenance 44864557935 SUCCESS; full CI 44864557862, unit isolation 44864557929, disposable contract 44864557840 still IN_PROGRESS at checkpoint. Do not claim combined source full CI PASS yet.

Reconciliation decision: preserve #173 and #174 as individually green and unmerged until combined #176 qualifies; then retire duplicates in DLE (do not auto-merge). Source-of-truth remains MVP #158; exact external contracts mark-e-deyoung/winebot-contracts@205666f7f0235cb0fc51ca8a5af84f9f67831a74, prior 62/0/9 pass. Already superseded main-based #170/#171 and diagnostic #172 closed unmerged. Formally checked abstract safety models and synthetic crash/revocation tests do not establish distributed atomicity or native in-flight effect cancellation. Upstream WinInspect-private #468 actual C++ native qualifier and approved source projection remain blocked; winebot #166 live HWND release gating still intentionally held. No private Actions spend, paid cloud, local/sovereign hardware, native input or unauthorized private source disclosure.

Copy link
Copy Markdown
Collaborator Author

2026-11-21 05:05+0100 — green independent qualification, combined-candidate execution and formal-trigger correction

Verified terminal exact-head independence: formal/control stacked #173 d254dd9a6912d0a37929710588aff76d08245aaa CI #44843910364 SUCCESS, TLC #44843910305 SUCCESS, BuildKit SUCCESS; crash-handover stacked #174 0e6b8d16f0ceee422853e77d26d20f26a1eef9b9 CI #44844739774 SUCCESS, source provenance, CI unit isolation, RPC identity redaction, disposable-contract and public-evidence guards ALL SUCCESS. Both on canonical qualified MVP #158 rather than main. The frozen contracts fixture is mark-e-deyoung/winebot-contracts@205666f7f0235cb0fc51ca8a5af84f9f67831a74; historical 62/0/9 MVP vs 55/7/9 main was unrelated to contract drift.

Actual third integration batch: created DRAFT combined #175, base formal/mvp-control-reconciliation-20261121 (stacked #173) and head 4f7f9bd194198705216fe20c399586a9355474a2. Started exactly from individually green #173 head and transplanted ONLY seven independently green #174 file deltas: api/core/handover_recovery.py, api/server.py, api/routers/lifecycle.py, scripts/ci/test.sh, tests/test_api_contracts.py, tests/test_handover_restart_recovery.py, tests/test_lifecycle_hardened.py. Verified GitHub compare diff against #173 contains exactly those seven files and no broker/TLC model rewrite. Reproducible source ownership is preserved; no PR merged or released.

Discovered CI coverage gap and corrected immediately: prior formal-cross-layer-tlc.yml only triggered on formal/** and its own path, meaning real lifecycle/broker code could change without the model-oracle job firing on that candidate. Committed path filters on #175 exact head 4f7f9bd1 to include api/core/broker.py, api/core/handover_recovery.py, api/routers/input.py, api/routers/lifecycle.py, api/server.py, pertinent tests and scripts/ci/test.sh, plus existing formal paths. This triggered actual public GHA TLC run #44864642285, alongside full CI #44864642283, focused provenance, redaction and evidence runs all pending/in progress at checkpoint. Earlier combined-head acd9c6d2 runs may be cancelled by the PR update. No full-green claim for current combined head until terminal receipts.

Next gates: exact #175 combined-head TLC blue + unsafe expected counterexamples, mandatory crash-recovery tests, frozen external conformance, smoke, source/public safety; then decide whether to consolidate #173/#174 without losing their audit history. Independent native observer #166 with stale WinInspect public archive and private C++ #468 admission remain held. Formal models/synthetic tests do not prove whole-host/guest atomicity, in-flight native effects or user-data recovery. Public free-tier GitHub-hosted resources only; no private minutes, local sovereign hardware, unauthorized source, merge or release.

Copy link
Copy Markdown
Collaborator Author

2026-11-21 ~05:12 CET — first combined CI failure isolated and corrected, durable local-state batch launched

Combined integration draft #176 first exact head 3511a0c93f01a12c91cc8ddc873204b15d5d9f07: public full CI #44864557862 completed FAILURE in Pre-flight unit: 267 passed / 1 failed. Failure was tests/test_lifecycle_hardened.py::test_sessions_resume_concurrent_calls_idempotent, which still mocked link_wine_user_dir although production recovery deliberately uses _link_profile_checked. It is an integration transfer omission, not failure of the verified profile-link policy: six of the seven source blobs from independently passing recovery PR #174 matched exactly; the seventh test file remained the prior MVP version because a seven-file tool batch hit its call cap at the final operation. Measured source blobs individually. Corrected just that test file to the exact previously qualified PR #174 blob 993931f31a1c366b6eddd78aa1877aa4437973ed, producing new combined PR #176 HEAD 9a13d8b3da4df7517ebea43991fc034cdc1c62f3. No runtime check weakened; re-run triggered by normal PR push. All other prior combined exact-head focused workflows SUCCESS: Formal TLC+both mandatory negative controls #44864557848, BuildKit #44864557816, RPC redaction #44864557872, provenance #44864557935, public evidence #44864557928/#44864557891, disposable contracts #44864557840; unit isolation was still in progress at previous readback. Do not label current exact head fully green until verified.

Independent persistence durability defect batch: new DRAFT #177, based on qualified MVP #158, exact HEAD cee039d198dbe23c86696a3fd3e87e925dffd3be. api/utils/files.py::_atomic_write_text had fsync(tempfile)+os.replace but no fsync(parent directory), so success did not certify durable rename after power loss. Added dir fd open/fsync/close after rename, propagates failure (new destination bytes may already be visible so no fake rollback), and two synthetic tests in the existing explicit unit manifest's tests/test_invariants.py verifying file-before-directory sync, fail-closed directory-sync error and cleanup. Public CI #44864757163 in progress; no exact-head PASS assertion. Separate draft avoids restarting combined #176 Wine build while diagnosis proceeds.

Remaining: native in-flight guest/host effects, multi-process CAS/fencing, orphan inactive markers, real recorder finalization, source-qualified private WinInspect C++ #468 and real HWND #166 remain held. No merge, release, private GHA minutes, user hardware, paid compute, source disclosure, or fixture bypass.

Copy link
Copy Markdown
Collaborator Author

2026-11-21 05:16 CET — concurrent actor/source-custody reconciliation, no blind duplicate merge

Two independently authored combined candidates detected. #175 exact 4f7f9bd194198705216fe20c399586a9355474a2 (stacked on #173) and #176 exact 9a13d8b3da4df7517ebea43991fc034cdc1c62f3 (based directly on owning MVP #158). Read-only live GitHub source blob comparison established ALL SEVEN crash-recovery implementation/test blobs BYTE-IDENTICAL: api/core/handover_recovery.py, api/server.py, api/routers/lifecycle.py, scripts/ci/test.sh, tests/test_api_contracts.py, tests/test_handover_restart_recovery.py, tests/test_lifecycle_hardened.py. #176 already corrected its first known one-file mock transfer error and achieved native TLC+adversarial checks #44864855878 SUCCESS; #175 #44864642285 native TLC SUCCESS, full CI in progress. They are NOT two different safety implementations; avoid double merge/review.

One meaningful divergence: #175's .github/workflows/formal-cross-layer-tlc.yml blob fbb52287d303d3c32320861095fa954a90de4474 triggers TLC for api/core/broker.py, api/core/handover_recovery.py, api/routers/input.py, api/routers/lifecycle.py, api/server.py, pertinent tests and scripts/ci/test.sh, in addition to formal/**; #176's workflow blob 6bf7ad7b91788c50c3ddef7ba249fdab8d685cc2 is the original narrow formal-only filter. This coverage requirement should survive whichever integrated PR becomes authoritative: code-level safety changes must trigger formal qualification even when no TLA+ source changes.

Another concurrent scope collision: #177 cee039d198dbe23c86696a3fd3e87e925dffd3be fsyncs the parent directory for all api/utils/files.py::_atomic_write_text uses and adds 2 mandatory tests/test_invariants.py regressions. #178 720fd9c0630009818e7530be54df7a79b995af30 (stacked on #175) uses opt-in durable_directory=True ONLY on write_session_dir/ write_session_state to avoid changed fsync latency on unrelated high-frequency writers, with 3 explicit mandatory tests/test_session_state_durability.py cases (file+directory, interrupted replace, directory sync fail closed) and TLC trigger expansion for persistence. Neither version has terminal exact-head full CI yet. Decide a single authoritative durability path after performance/compatibility and proof comparison; avoid duplicate parent-directory fsync implementations or silent closure of active other-actor PRs.

Suggested repo hygiene: converge on ONE combined source branch (prefer directly MVP-based #176 if it incorporates #175's wider TLC trigger and reaches exact-head CI); preserve the standalone qualified #173/#174 as DLE source lineage. Keep independent durability tests until one design chosen, then close superseded other-actor drafts unmerged only with documented reason/receipts. All sources public-safe; WinInspect-native #468/#166 remains release-held; no merge/release/private Actions spend.

Copy link
Copy Markdown
Collaborator Author

2026-11-21 05:20 CET — concurrent branch convergence and durable metadata correction

Live GitHub source comparison confirmed #175 and #176 have byte-identical blobs for all seven recovery source+test files. #176 is directly based on canonical qualified MVP #158; #175 had one additional substantive improvement in .github/workflows/formal-cross-layer-tlc.yml: production safety source path triggers. Ported #175's exact workflow blob to #176, committed b44f2123d192e205becdafe1378e4a5a3605f66e. This triggered native exact-head TLC #44865113362 SUCCESS, all then-terminal focused BuildKit/provenance/public conformance evidence/RPC identity/disposable/vNext guards SUCCESS; full CI #44865113365 and unit isolation still in progress. #175's independent exact head 4f7f9bd1 passed all focused/TLC/isolated guards with full CI in progress. Prefer #176 as the one review candidate, close redundant #175 unmerged after exact-head qualification to preserve prior evidence until consolidated.

Second independent durability collision: #177 parent-directory fsync of all six low-frequency authoritative metadata paths vs #178 opt-in only pointer/state variant. After actual _atomic_write_text callsite inventory, chose #177's simpler universal metadata directory sync; extended mandatory tests/test_invariants.py to test current-session pointer fsync and crash-interrupted replace at exact head 1ad26d6ea66c44cc109baf99fed8ad2971c15eb9, CI #44865205705 in progress. #178 closed UNMERGED with supersession receipt, no two competing helpers. #177 remains independent of #176 until exact-head CI; before combining, preserve api/utils/files.py in TLC source-change path trigger.

Remaining release gates unaffected: real native WinInspect #166 still pins unqualified old archive and private C++ #468 lacks approved cloud nonpublic source executor, native CTest and reviewed projection; cross-process races, orphan inactive journals and already-committed X11/AHK effects not proven fully atomic. No merge/release/private Actions spend/sovereign or paid hardware/source disclosure.

Copy link
Copy Markdown
Collaborator Author

2026-11-21 05:25 CET — native input cancellation boundary readback (no redundant subprocess rewrite)

Reviewed current canonical combined #176 source api/utils/process.py, not just the TLA+ abstract model. run_async_command forwards to safe_async_command, which executes inside async_subprocess_context; its finally already sends proc.terminate() to a still-running child, awaits bounded reap, then escalates to proc.kill() and waits on timeout/lookup race. Consequently cancellation of a broker-tracked async xdotool coroutine is not merely cancelling a Python waiter; the existing path attempts to terminate and reap the direct subprocess. Do not introduce a redundant competing cancellation wrapper.

This still does NOT prove STOP_NOW can revoke an input event already delivered to X11/Wine, cancel grandchildren/independent process groups, or cancel synchronous AHK pathways. Existing tests/test_mvp_inflight_cancel.py exercises synthetic async input task cancellation and broker state; tests/test_process_timeout.py tests synchronous timeout but not an actual async child-reap under external cancellation. Future bounded source-to-behavior qualification should use a safe synthetic real subprocess with a traceable PID and explicit cancellation/reap observation on free public GHA; no real desktop input. Treat child process-group and AHK backend as separate follow-on failure domains.

Other current authority: one combined #176 exact b44f2123 with TLC + focused security/provenance all green and full CI in progress; one independent durability #177 exact 1ad26d6e lint/unit PASS full CI in progress. Duplicate combined #175 and opt-in durability #178 closed unmerged after source comparison. Avoid release/merge or semantic overclaim.

Copy link
Copy Markdown
Collaborator Author

2026-11-21 — autonomous critical-path execution / DLE reconciliation

Source/CI authority: owning MVP candidate #158 stays 9809519b94b9074ed681b297237f6dec89d43186 with earlier full CI + real layered Wine11/Notepad++/OpenTTD/backup green; unmerged DRAFT, hardware NOT_READY.

Primary convergence: canonical stacked combined #176 at 3cdfdc2299f732d2d2e23139b6a05a919e4106b5 now includes: exact-source previously qualified formal/control #173; crash-handover #174; exact independently CI-green durable file writer and four mandatory regression tests from #177; widened formal-workflow trigger for broker/recovery/persistence source and tests. The independent three-path Git tree update was committed once under expected-head lease, no force. Exact-head formal TLC #44872891144, unit-isolation #44872891142, disposable/source provenance/public evidence/BuildKit/RPC redaction all SUCCESS; full CI #44872891236 IN_PROGRESS at checkpoint. Do not merge on a partial matrix.

Independent source-to-behavior proof: DRAFT #179 adds bounded real benign child PID cancellation/reap regression on #176, exact 5271b6040d78de6cb3cf7a40e7ce612f70ebed7b; TLC and BuildKit checks SUCCESS, full CI pending. No source mutation to #176 from this separate branch.

Independent actual observer gate: DRAFT #166 source 1fc40fa93a1a979126e5950ee53817a5233c1806 fixes concrete Ruff import I001 in HWND oracle test without weakening visible same-HWND/PID acceptance; its real Windows test remains deliberately fail-closed on obsolete public WinInspect binary. Authoritative WinInspect-private #468 core C++ repair is source-only: private exact CTest execution at free nonpublic cloud admission and reviewed source projection are still BLOCKED. Agent Dispatch #561 confirms no eligible admitted executor; retired Jules/stale GARM cannot be used.

Release obligations remain: terminal exact-head combined CI, source/review convergence and owner promotion, native WinInspect release+actual HWND, process-group/grandchild and already-committed input effect limitations, cross-process ownership fencing, inactive orphan recovery and recorder finalization. Work is on MVP critical path, but NOT ready for hardware/production. Public free GitHub Actions only; no private hosted minutes, paid inference, local/sovereign hardware, unapproved public projection, GHCR publication or merge.

Copy link
Copy Markdown
Collaborator Author

R034 — 2026-11-21 canonical WineBot MVP status and DLE reconciliation

Owning layer: MVP #158 remains exact 9809519b94b9074ed681b297237f6dec89d43186, source-verified 14/14 historical public tests including layered Wine11 runtime, Notepad++/OpenTTD, actual prefix restore and frozen conformance. Protected main is unchanged.

One unified security/control review candidate: DRAFT #181 directly targets #158, exact code eda01696f297b930185546993a2f5184e340603c, 27 commits ahead/0 behind, 28 intended source paths. Contains formal STOP_NOW+TLC, crash-recoverable session handover, durable metadata file/parent sync, read-only WinInspect observer v0 consumer, and real async-child cancellation/reaping regression. Exact full CI #44912186223 and TLC #44912186227 terminal SUCCESS, eight focused source/provenance/publication/isolation/redaction gates SUCCESS. Source hash unaffected by PR base retarget. Draft, not a release, merge, hardware authorization or actual v0.5 native daemon proof.

Housekeeping: independent source PRs #173/#174/#177, duplicated integrated #176/#179/#180 and old main-based read-only consumer #167 closed SUPERSEDED / UNMERGED with exact source-hash custody, terminal CI receipts and one survivor #181. All original commits/branches/review evidence retained, no force/delete; this does not mean main contains them.

Independent cross-process risk correction: DRAFT #182 exact 638f3cacd0451009fa39371af4d4451e2cdd5a02 adds two-worker fenced and deliberately unfenced state machines; TLC #44912931173 verified four safety models, all three red expected counterexamples and stdlib checks PASS. Full conformance pending at checkpoint. asyncio.Lock in lifecycle is not cross-process fencing.

Production-facing but incomplete API mitigation: DRAFT #183 exact 04aa0061a008563d04dda5b4755b8bbe42d9a5c8 stages Linux exclusive API lifespan writer lock, two-process/SIGKILL/symlink tests and mandatory CI coverage; new exact TLC/public evidence/provenance/RPC guards success, broad CI in progress. Red-team release blocker: docker/entrypoint.sh and scripts/init/30-start-services.sh write instance/pid/config state, start infrastructure/recorder/trace and persist API credentials before background uvicorn lifespan gets API lock. Thus #183 is API-ONLY and does not enforce a single mutator from first container startup. Next sequential gate: early entrypoint admission, race-free lock FD transfer, shared root/namespace/mount qualification, real competing complete entrypoints/SIGKILL and durable generation CAS. No abstract model or Python unit substitutes for these source-to-behavior tests.

Native WinInspect blocker unchanged: private WinInspect #468 C++ response-id repair awaits admitted nonpublic cloud exact-source tests and reviewed constructive projection through Agent Dispatch #561; WineBot #166 native Notepad++ HWND acceptance intentionally fails on stale WinInspect v0.4.4. No private hosted Actions minutes, paid cloud, sovereign/user hardware, private-source projection, raw capture/artifact, GHCR image push, release or main merge. Hardware gate NOT_READY_FOR_HARDWARE_TEST.

DLE: Durable = Git PRs, exact source SHA, test receipts; Legible = source-bounded invariants and red/blue deviations; Executable = source-admission handoff, native HWND and runbook proof in sequential gates. GitHub Issues are disabled on this repository (HTTP 410), so PRs and committed docs are authoritative DLE worksets.

Copy link
Copy Markdown
Collaborator Author

2026-11-22 R035/R036 — independent parallel execution, exact-head receipts

Frozen owning MVP review candidate: #181 eda01696f297b930185546993a2f5184e340603c, directly based on qualified #158; terminal CI #44912186223 and TLC #44912186227 success. Unchanged, draft, not merged.

Independent system-wide writer-admission corrective batch: #184 current exact de024b17b2b7e2d51a9a746a494c6ab13c5de3a2, stacked on #183/#182, acquires one kernel Linux exclusive writer lock before entrypoint's root setup/state/Wine/tracing, hands the same high inherited FD across shell/gosu/API, refuses config-root/FD mutation and unadmitted /tmp fallback. Public first source exact had 302 unit PASS/5 FAIL due to root-only test image not providing winebot passwd entry; corrected one narrow owner-resolution conditional in new head without weakening the lock check. New head public TLC #44982148285, provenance, identity redaction, BuildKit, public evidence and layer guards SUCCESS; CI #44982148355, unit isolation #44982148356, real Wine11 layered HIL #44982148266 were still running at checkpoint. Do not promote until terminal and actual root/gosu inherited-FD/mount proof; even then FLOCK is no distributed CAS.

Independent persistent-state conceptual corrective batch: #185 exact 56d06dcbd1055fd0fe8c18abe6a85d722cb8aeb3, seven formal-only paths based on #181; source audit establishes api/utils/files.py::SESSION_FILE = /tmp/winebot_current_session and scripts/init/10-setup-infra.sh may create a new default session after a fresh container forgets that ephemeral owner, leaving durable handover intent outside active pointer's recovery reach. New formal TLC #44982261882 SUCCESS for added durable-owner model and mandatory red orphaned-intent counterexample; BuildKit #44982261755 SUCCESS; CI #44982261787 still in progress. This is a model and explicit production plan, not a runtime pointer or generation-CAS fix.

Critical dependency order: #184 terminal early admission and paired full-entrypoint/SIGKILL failures → #185 design refinement into durable owner pointer under persistent root and generation CAS → complete real Wine11 crash replay and orphan quarantine → independent native WinInspect-private #468 approved nonpublic $0 build/projection and WineBot #166 HWND acceptance → release owner approval. All other red/blue or smoke results remain supporting evidence only. Protected main unchanged, no branch force, paid cloud/private Actions minutes, user-owned compute, private source leakage, HIL false promotion or release. DLE = Durable, Legible, Executable.

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