You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Explain native intervention refusals with source metadata and JS recovery names #208
/Users/new/Developer/GitHub/MAWS/plugin/cua/dogfood-feedback/l3-input.md §9 and l9-browser-delivery.md §4 could not tell whether -10016 followed real user input or their own action/app update. Confirmed diagnostic gap: Intervention.swift emits generic sentences and tells JS callers to use get_app_state instead of getAXState. Its ledger records attributed input events; it excludes events from the engine PID. Thus a panel Cancel or streaming redraw alone is not established as the trigger.
Constraints
Preserve immediate refusal and the user’s priority. No automatic retry after suspected user input. Do not label an attributed event proven human if another automation process could generate it; report only non-sensitive provenance.
Success criteria
Expose which intervention condition fired (active debounce versus sticky re-query), with available event type/source attribution and relative timing.
Give the correct public JS recovery method, getAXState(), without asserting a real person was definitely responsible.
Cover engine-generated events, other-process synthetic events, real attributed input and re-query clearing with injected tests.
If richer provenance is unavailable, say unknown explicitly.
Open questions
Which fields can be exposed without coordinates, typed data or private app contents? Preserve the distinction between event attribution and proof of human input.
Decision log
2026-10-23: All-state userChanged/Intervention.swift searches found #200’s diagnosis but no diagnostic owner; this does not expand #200’s activation repair. Category: enhancement; birth state: ready-for-implementer; parent N/A (dogfood follow-up, not a decomposition child); blocked-by N/A (can be investigated independently).
Sminos-Session: cua_repl#1ea561bc (MAWS on macbook)
Follow-up evidence from /Users/new/Developer/GitHub/MAWS/plugin/cua/dogfood-feedback/l1-sessions.md §8, l2-transcript.md §7, l4-approvals.md §§3–4 and l6-artifacts.md extra-slot §12. L6 explicitly found the guard valuable when the owner resumed work; preserve that guard. Other reports infer their own UI change caused -10016, but d95261f Intervention.swift responds to attributed input events and excludes the engine PID, not arbitrary UI redraws. Thus the proposed replacement “the UI changed since your last read” would be misleading.
External automation such as osascript is not automatically the same event origin as the engine. Likewise HIDIdleTime is not a trustworthy “human away” proof. A humanActivity/userActive query, if added, must expose bounded source-attributed observation/unknown, not promise certainty that a physical person did or did not type. Distinguish real/other-process/own-event attribution using evidence, not report inference.
Safety escalation #212 now owns the save-sheet case: pre-action refusal versus in-flight partial effects need separate model-facing outcomes. Link rather than duplicating its causal investigation here.
Sminos-Session: cua_repl#1ea561bc (MAWS on macbook)
Final-wave evidence from /Users/new/Developer/GitHub/MAWS/plugin/cua/dogfood-feedback/l7-shell.md §7 and l8-settings.md 23:08Z addendum: a click after AXPress or after closing a native select popup returned -10016. The owner may have been typing elsewhere in the latter report. Neither establishes that a popup redraw itself triggered the input-event guard. Preserve the attribution/unknown distinction and correct JS method name; do not whitelist all preceding agent actions or suppress genuine user intervention.
L7/L8 request a structured status/preflight (lock, frontmost, user idle) before taking a team lock. Consider safe read-only fields alongside intervention diagnostics, but distinguish physical-human certainty from attributed input and expose unknown rather than treating HID idle as proof. No safe-to-act reservation follows from a status snapshot.
Sminos-Session: cua_repl#1ea561bc (MAWS on macbook)
Evidence from #235's first attended sitting (2026-10-30, MacBook, cua's engine with Input Monitoring; records in docs/evidence/2026-10-30-macos-agent-cursor/sitting/, the classification in docs/doperpowers/specs/2026-10-30-macos-agent-cursor-report.md, "The refusals"). Thirteen actions in three items were refused with -10016, and classifying them ran straight into this issue's gap:
Nothing records what the ledger attributed. The ledger is in memory and the engine logs nothing about it. The one reading a refusal carries, cua/hidIdleMs in the response meta, reached no harness record. No refusal could be traced to its event's source pid or type. Each was classified from its sentence, its timing against the owner's cues, and an unrelated system log (DictationIM's key-focus lines).
"User changed" covers two conditions with different recoveries. In four cases it was the sticky re-query flag: the agent acted again without a getAXState() after an earlier event. In one it was an in-flight stop: a 7 s type_text stopped about 2 s in, after several hundred characters had gone in. Only the second has partial effects (Verify unintended save-sheet completion across native intervention and report partial effects #212), and the sentence is identical. The success criteria could name the in-flight stop as a third condition beside the active debounce and the sticky re-query.
The sitting's own kit misread it the same way. After the in-flight stop, the sitting's kit added a step labelled "observe (the engine asks for a fresh state after the document changed)". The engine never refuses because a document changed. All 13 refusals needed an attributed input event whose source pid was not the engine's. That supports this issue's point that "the UI changed since your last read" would mislead.
None was the engine's own input. Every action the engine posted while nobody touched the app completed: 40 × 200-character type_text, 40 × 30 press_key, 120 clicks and drags, and back-to-back scrolls with no observation between (an attributed first scroll would have set the flag for the second). The stopped type_text had posted hundreds of characters through the same poster before something else was attributed. Exclusion by source pid holds in practice.
Two triggers no cue explains, both in TextEdit while the owner watched (05:44:03–05:44:05Z and 05:45:52–05:45:58Z). By elimination they were the owner's own input, but nothing on disk can confirm it. The attribution fields this issue asks for would have settled it.
A concrete minimum: keep each app's last attributed event as a value-free record (time, event type, whether the window or the target pid attributed it, and the source pid's class where the event carries one), expose it on the refusal, and have harnesses record it.
Sminos-Session: cursor235#b93055dd (cua on macbook)
Activity
SSFSKIM commentedon Oct 23, 2026
Follow-up evidence from
/Users/new/Developer/GitHub/MAWS/plugin/cua/dogfood-feedback/l1-sessions.md§8, l2-transcript.md §7, l4-approvals.md §§3–4 and l6-artifacts.md extra-slot §12. L6 explicitly found the guard valuable when the owner resumed work; preserve that guard. Other reports infer their own UI change caused -10016, but d95261f Intervention.swift responds to attributed input events and excludes the engine PID, not arbitrary UI redraws. Thus the proposed replacement “the UI changed since your last read” would be misleading.External automation such as osascript is not automatically the same event origin as the engine. Likewise HIDIdleTime is not a trustworthy “human away” proof. A humanActivity/userActive query, if added, must expose bounded source-attributed observation/unknown, not promise certainty that a physical person did or did not type. Distinguish real/other-process/own-event attribution using evidence, not report inference.
Safety escalation #212 now owns the save-sheet case: pre-action refusal versus in-flight partial effects need separate model-facing outcomes. Link rather than duplicating its causal investigation here.
Sminos-Session: cua_repl#1ea561bc (MAWS on macbook)
SSFSKIM commentedon Oct 23, 2026
Final-wave evidence from
/Users/new/Developer/GitHub/MAWS/plugin/cua/dogfood-feedback/l7-shell.md§7 and l8-settings.md 23:08Z addendum: a click after AXPress or after closing a native select popup returned -10016. The owner may have been typing elsewhere in the latter report. Neither establishes that a popup redraw itself triggered the input-event guard. Preserve the attribution/unknown distinction and correct JS method name; do not whitelist all preceding agent actions or suppress genuine user intervention.L7/L8 request a structured status/preflight (lock, frontmost, user idle) before taking a team lock. Consider safe read-only fields alongside intervention diagnostics, but distinguish physical-human certainty from attributed input and expose unknown rather than treating HID idle as proof. No safe-to-act reservation follows from a status snapshot.
Sminos-Session: cua_repl#1ea561bc (MAWS on macbook)
SSFSKIM commentedon Oct 31, 2026
Evidence from #235's first attended sitting (2026-10-30, MacBook, cua's engine with Input Monitoring; records in
docs/evidence/2026-10-30-macos-agent-cursor/sitting/, the classification indocs/doperpowers/specs/2026-10-30-macos-agent-cursor-report.md, "The refusals"). Thirteen actions in three items were refused with -10016, and classifying them ran straight into this issue's gap:cua/hidIdleMsin the response meta, reached no harness record. No refusal could be traced to its event's source pid or type. Each was classified from its sentence, its timing against the owner's cues, and an unrelated system log (DictationIM's key-focus lines).getAXState()after an earlier event. In one it was an in-flight stop: a 7 stype_textstopped about 2 s in, after several hundred characters had gone in. Only the second has partial effects (Verify unintended save-sheet completion across native intervention and report partial effects #212), and the sentence is identical. The success criteria could name the in-flight stop as a third condition beside the active debounce and the sticky re-query.type_text, 40 × 30press_key, 120 clicks and drags, and back-to-back scrolls with no observation between (an attributed first scroll would have set the flag for the second). The stoppedtype_texthad posted hundreds of characters through the same poster before something else was attributed. Exclusion by source pid holds in practice.A concrete minimum: keep each app's last attributed event as a value-free record (time, event type, whether the window or the target pid attributed it, and the source pid's class where the event carries one), expose it on the refusal, and have harnesses record it.
Sminos-Session: cursor235#b93055dd (cua on macbook)