Skip to content

[DRAFT IC1] Cancel broker-tracked in-flight xdotool input on STOP_NOW - #168

Merged
mark-e-deyoung merged 6 commits into
mvp/ic1-integration-20261117from
fix/ic1-async-input-stop-cancel-20261119
Nov 19, 2026
Merged

mark-e-deyoung merged 6 commits into
mvp/ic1-integration-20261117from
fix/ic1-async-input-stop-cancel-20261119

Conversation

@mark-e-deyoung

Copy link
Copy Markdown
Collaborator

Critical-path asynchronous input cancellation slice

Based on owning draft IC1 e99d9e85cb9c708d0e9ef4fa7a000b293cb40665. Adds task-scoped broker registry of only active asynchronous input operations, cancels those tasks on agent revocation/STOP_NOW (thread-safe scheduling), and translates cancellation into HTTP 423 in explicit xdotool keyboard and mouse paths. Keeps last-moment policy revalidation. Regression falsifiers hold a synthetic asynchronous backend, revoke ownership mid-command and require interruption, no completion, and no leaked registry entries; mandatory scripts/ci/test.sh enrollment.

Strict limits

This interrupts Python async command waits and causes underlying async_subprocess_context to attempt termination/reaping; does NOT undo X11 events already emitted or promise atomic keyboard/mouse action, hardware emergency-stop latency, live human UI arbitration, or synchronous AHK/auto-backend cancellation. Independently source-qualify exact-head public CI before integration; no private runner minutes, real user assets, production or release promotion. Keep parent MVP draft and avoid changing WinInspect workcell #166.

Copy link
Copy Markdown
Collaborator Author

2026-11-19 new independent bounded in-flight cancellation workcell based on owner draft e99d9e85cb9c708d0e9ef4fa7a000b293cb40665. Source head 9a8064fef04e02844aba8cd6cc9a95bd78d05743. Broker now tracks task-scoped asynchronous input operations and schedules cancellation on revocation (including STOP_NOW) across loops thread-safely; explicit xdotool keyboard path and mouse click path register around last policy check and async execution; cancellation maps to HTTP 423. New synthetic regression tests/test_mvp_inflight_cancel.py tests broker registry and held in-flight key/mouse backend, enrolled in mandatory unit lane. This is not atomic X11 rollback, not synchronous AHK/auto backend cancellation, and not proof of process termination latency. Current public CI 44611966341 IN_PROGRESS and focused gates running; remains DRAFT unmerged. Exact head must pass, plus real Wine STOP_NOW overlap acceptance before release.

Copy link
Copy Markdown
Collaborator Author

2026-11-19 follow-on execution and first CI failure: original head 9a8064fef04e02844aba8cd6cc9a95bd78d05743 public CI 44611966341 FAILED at first mandatory containerized lint because of exactly two Ruff I001 import-order violations in api/core/broker.py and tests/test_mvp_inflight_cancel.py; not a functional test failure. Both fixed at current head 647c678c602c3a4a730f0e1b621582608192fdb8 (Ruff-specified order), preserving cancellation behavior and mandatory falsifiers. Fresh public CI 44612373300 IN_PROGRESS, focused workflows running. Keep DRAFT and separate from WinInspect observer. No in-flight live Wine proof yet.

@mark-e-deyoung
mark-e-deyoung marked this pull request as ready for review November 19, 2026 21:07
@mark-e-deyoung
mark-e-deyoung merged commit 8a62299 into mvp/ic1-integration-20261117 Nov 19, 2026
11 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