Skip to content

[SUPERSEDED / UNMERGED] Formal broker and TLC source carried by MVP #176 - #173

Closed
mark-e-deyoung wants to merge 15 commits into
mvp/ic1-integration-20261117from
formal/mvp-control-reconciliation-20261121
Closed

mark-e-deyoung wants to merge 15 commits into
mvp/ic1-integration-20261117from
formal/mvp-control-reconciliation-20261121

Conversation

@mark-e-deyoung

Copy link
Copy Markdown
Collaborator

Authority and scope

This is a stacked PR on the previously qualified MVP PR #158, not another main-based broker fork. The same frozen external contracts commit 205666f7f0235cb0fc51ca8a5af84f9f67831a74 was used by the prior green MVP run (62 passed / 0 failed / 9 skipped) and the main-based red baseline (55 / 7 / 9). The conformance mismatch is not contract drift and is not caused exclusively by #170/#171; #158 contains distinct implementation fixes.

Imports the three public-safe TLC finite-state safety models, both mandatory red-team counterexample models, unit contract test harness and free-tier GHA workflow from analysis PR #170. Applies only the still-missing absolute STOP_NOW veto ahead of agent-only/headless broker shortcuts in the real MVP broker. Adds synthetic headless emergency-stop and in-flight task cancellation regressions in the existing MVP unit manifest. All native input effect tests remain synthetic.

Mandatory gates

  • TLC blue invariants plus both expected negative-control counterexamples and Python tests PASS.
  • Exact-head owning MVP unit, conformance, real Wine GUI, and other public source/provenance workflows PASS; preserve frozen contract source SHA.
  • Source review confirms no conflict with MVP's already-present track_async_input cancellation and lease enforcement; no in-flight OS atomicity claim.
  • Keep as DRAFT; no merge/release/production promotion or private WinInspect source transfer without explicit approval.

Supersession plan: After qualification, reconcile or close redundant main-based #170 in favor of this stacked implementation. Independent #171 handover work requires separate source-level rebase/refinement onto MVP before admission. DLE home: #158.

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 — DLE lineage reconciliation / source supersession, no merge

This isolated source workcell is fully represented in the canonical MVP cross-layer integration #176 at exact 3cdfdc2299f732d2d2e23139b6a05a919e4106b5. Independent source evidence: all original 15 source/test files are byte-identical within #176 except the TLC workflow deliberately widened to cover production safety and persistence changes. Original independent exact-head public acceptance: CI #44843910364, TLC #44843910305, terminal SUCCESS. Combined #176 at exact target subsequently passed full CI #44872891236 and TLC #44872891144 alongside its focused public guards.

Original head d254dd9a6912d0a37929710588aff76d08245aaa is preserved in immutable GitHub commits and PR discussion. Close this PR UNMERGED, superseded, retaining source custody and reproducible evidence but eliminating duplicate merge candidates; do not delete branches or rewrite history. The owning MVP #158 is still DRAFT, and combined #176 plus the downstream consumer+reap candidate #181 are not promoted to public main, hardware or production. No release gate waived, no paid/private Actions minutes or private C++ source disclosed.

@mark-e-deyoung mark-e-deyoung changed the title [DRAFT] Integrate checked cross-layer models and STOP_NOW veto on qualified MVP [SUPERSEDED / UNMERGED] Formal broker and TLC source carried by MVP #176 Nov 21, 2026
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