Skip to content

[DRAFT IC1] Exercise real Wine keyboard input through broker and STOP_NOW - #165

Merged
mark-e-deyoung merged 19 commits into
mvp/ic1-integration-20261117from
rdte/ic1-live-keyboard-wine-20261119
Nov 19, 2026
Merged

mark-e-deyoung merged 19 commits into
mvp/ic1-integration-20261117from
rdte/ic1-live-keyboard-wine-20261119

Conversation

@mark-e-deyoung

Copy link
Copy Markdown
Collaborator

Critical-path live input acceptance slice

Starts from combined input-fence PR #164 at 947a647771ba0da71f6cd93eace63c545005e0d9 without modifying the parent. Augments actual layered Wine11/Notepad++ public-runner workload with an in-container FastAPI TestClient acceptance: deny pregrant key; challenge+grant; real _send_keys→xdotool→visible Notepad++ ctrl+End, z, ctrl+s; verify actual saved file postcondition; send STOP_NOW; reject next key. Session path and event writers are isolated via patches, not keyboard dispatch or Wine. Only bounded receipt leaves disposable runner.

Evidence and limits

Requires exact-head public GitHub-hosted Actions MVP IC1 real Windows GUI and OpenTTD on layered Wine11 terminal PASS. No assumed success at creation. This is an in-process HTTP route and actual OS input acceptance, not proof of independent live Uvicorn process, multiple concurrent readers, in-flight command cancellation or real human access. No private minutes, paid resources, raw screenshots/log uploads, merge, production or hardware use. Retain drafts and parent DLE until accepted.

Copy link
Copy Markdown
Collaborator Author

2026-11-19 first-failure reconciliation / bounded diagnostic rep

Exact previous head 42bcc12897e4b5501c55aa7b05f80b4a47871ab9: public real workload run 44529853918, job 135579976410 FAILED after MVP_WORKLOAD stage=wine11_layered_ready and MVP_WORKLOAD stage=real_windows_editor_gui_save, specifically at newly added MVP_WORKLOAD stage=broker_real_keyboard. Asset checksum/syntax/install and real editor gate were SUCCESS. The in-container raw traceback was not uploaded and the prior harness published no internal failure category; root cause therefore not yet classified, not presumed to be Wine or input policy.

Corrective source now 990fca0a7c070a28521180107e9d9fe0526269f9: bounded allowlisted IC1_BROKER_CAUSE stage emitted only when broker slice fails (raw subprocess logs remain ephemeral), plus Python compile preflight before expensive Wine build. Workcell remains draft; require new exact-head public workload terminal result and first classified cause before further changes. No relaxation of real keyboard, grant/STOP_NOW or file postcondition. #164 combined fences remains independent authority at its own source. Zero private minutes, no release/merge/hardware.

Copy link
Copy Markdown
Collaborator Author

2026-11-19 follow-on source-level correction: API lifespan and middleware in api/server.py call their own read_session_dir and may rebind the singleton broker to the real active recorder session; earlier in-process real-Wine gate isolated only api.routers.control.read_session_dir and input._require_active_session, so test session identity could diverge from middleware/authority. Latest draft head 59dcfb485237c87508aa623fdb8ad48592dd4dc7 now pins api.server.read_session_dir to the same invented IC1 acceptance session, without mocking keyboard dispatch. Separate change at prior head 990fca0a7c070a28521180107e9d9fe0526269f9 adds allowlisted stage diagnostics. New exact-head public workload 44531968180 and CI 44531968136 PENDING at observation; no PASS claimed. Previous workload 44529853918 failed broker gate after actual Wine/editor success; older in-progress run may be superseded. Hold draft, no private minutes, release/hardware or merge.

Copy link
Copy Markdown
Collaborator Author

2026-11-19 corrective result: prior exact-head live Wine run 44531968180 FAILED at new broker slice after real editor GUI save, with IC1_BROKER_CAUSE=unclassified (private runner traceback intentionally not uploaded). Analysis of api.server shows in-process with TestClient(app) enters unrelated production lifespan (state writes, discovery, background tasks). New head dbafc44394d6f78c8094716f18aa36ee46bebac8 uses in-process TestClient without lifespan, matching prior passing API unit-test technique. Also adds allowlisted unexpected_harness_exception to separate uncaught setup exceptions from known input/lease failures. Real _send_keys and X11→Wine remain unmocked. Require NEW exact-head public Windows workload success before integration; old failed receipt remains authoritative for its own source.

Copy link
Copy Markdown
Collaborator Author

2026-11-19 source-first corrective rep: real Windows workload 44533074838 FAILED after Wine11-ready and real Notepad++ GUI-save, at broker stage IC1_BROKER_CAUSE=unclassified, still before any explicit broker substage. Shared with observer #166: acceptance Python launched by absolute path /scripts/ci/*.py, while WineBot API lives at filesystem root /api. Python script-mode import path may exclude /; both failures occurred ~0.5s after calling Python, consistent with an import/setup failure (hypothesis, not proven). Current head eba833d2d20796119af92893ed4c791196c00610 explicitly passes PYTHONPATH=/ to docker compose exec for real-Wine broker harness; public workload 44534327972 IN_PROGRESS at observation. Preserve actual input/STOP_NOW/saved-file gates, no pass claimed or merge.

Copy link
Copy Markdown
Collaborator Author

2026-11-19 exact source failure resolved: real workload 44534327972 emitted broker real keyboard+STOP_NOW acceptance, OpenTTD game validation/reopen and bounded_qualification_pass, then FAILED on leftover duplicated code after that terminal marker (broker_receipt_missing). This was a generated shell-tail defect, not the real broker-control test. Current head c1efe69bdcce609232c7a457fd3e036bef1f1eb6 truncates duplicated 157 lines and adds pre-build syntax/structural singleton/final-line guards. Exact-head workload 44557876748 IN_PROGRESS. Source parent #164 was independently qualified and squash-merged to draft IC1 as 1addefa2ed57d970e373bfc7187159682ce1c3c8; do not treat this child as already integrated. Hold live run acceptance to terminal.

@mark-e-deyoung
mark-e-deyoung changed the base branch from integration/ic1-input-lease-fences-20261119 to mvp/ic1-integration-20261117 November 19, 2026 20:18
@mark-e-deyoung
mark-e-deyoung marked this pull request as ready for review November 19, 2026 20:20
@mark-e-deyoung
mark-e-deyoung merged commit e99d9e8 into mvp/ic1-integration-20261117 Nov 19, 2026
5 checks passed
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