Scale computer-use 2.0 with open-source drivers, cross-OS sandboxes, and benchmarks for training, evaluation, and data generation.
Rust agentai-agentapplecomputer-usecomputer-use-agentcontainerizationcuadesktop-automationhacktoberfestlumemacosmanusoperatorswiftvirtualizationvirtualization-frameworkwindowswindows-sandbox
feat(cua-driver): add jev-use density modes to the Windows harnesses (#4354)
Francesco Bonacci6888c56daca6
diff --git a/.github/scripts/tests/test_ci_jev_use_workflow.py b/.github/scripts/tests/test_ci_jev_use_workflow.pyindex 77f6d63961..278b4a1fe4 100644--- a/.github/scripts/tests/test_ci_jev_use_workflow.py+++ b/.github/scripts/tests/test_ci_jev_use_workflow.py@@ -175,6 +175,20 @@ def test_native_winui3_job_uses_released_driver_default_install_and_source_harneassert "libs/cua-driver/tests/fixtures/apps/windows/winui3/**" in triggers[event]["paths"]+def test_native_windows_jobs_run_distractor_density_24() -> None:+ """#4312: the WPF and WinUI3 jobs also verify the tasks past the 24-action cap."""+ triggers = load()[True]+ for harness in ("wpf", "winui3"):+ native = job_text(f"native-{harness}-windows")+ assert f"verify_native.py --harness {harness} --density 24" in native+ assert 'summary["density"] == 24' in native+ assert 'check["distractor_actions"] == 0' in native+ assert 'check["max_candidates"] == 26' in native+ assert "jev-use-native-density-window-state/*.json" in native+ for event in ("pull_request", "push"):+ assert f"libs/cua-driver/tests/fixtures/apps/windows/{harness}/**" in triggers[event]["paths"]++def test_native_gtk3_job_uses_released_driver_and_x11_stack() -> None:"""RFC #4268 Phase 2: native tasks on the GTK3 harness (Linux AT-SPI)."""jobs = load()["jobs"]diff --git a/.github/workflows/ci-jev-use.yml b/.github/workflows/ci-jev-use.ymlindex 3638c7b3bf..7cf2f9654f 100644--- a/.github/workflows/ci-jev-use.yml+++ b/.github/workflows/ci-jev-use.yml@@ -803,6 +803,25 @@ jobs:assert not any(value in text for value in forbidden), (path, [v for v in forbidden if v in text])'@ | uv run --frozen python - (Join-Path $env:RUNNER_TEMP "jev-use-native-proof")if ($LASTEXITCODE -ne 0) { throw "evidence audit failed" }+ # #4312: the opt-in distractor density fills the set past the 24-action+ # cap; the relevance cap must still offer every declared task step.+ - name: Run the native tasks at distractor density 24 with the mock agent+ run: |+ $density = Join-Path $env:RUNNER_TEMP "jev-use-native-density"+ $capture = Join-Path $env:RUNNER_TEMP "jev-use-native-density-window-state"+ uv run --frozen python verify_native.py --harness wpf --density 24 --output-dir $density --capture-dir $capture+ if ($LASTEXITCODE -ne 0) { throw "native density verification failed" }+ @'+ import json, pathlib, sys+ summary = json.loads((pathlib.Path(sys.argv[1]) / "summary.json").read_text(encoding="utf-8"))+ assert summary["complete"] is True and summary["density"] == 24 and summary["harness"] == "wpf"+ assert {c["task"] for c in summary["checks"]} == {"wpf-counter", "wpf-save-note", "wpf-choose-size"}+ for check in summary["checks"]:+ assert check["verified"] is True and check["runner_outcome"] == "verified", check+ assert check["density"] == 24 and check["distractor_actions"] == 0, check+ assert check["max_candidates"] == 26, check # 24 actions + reobserve + abstain+ '@ | uv run --frozen python - $density+ if ($LASTEXITCODE -ne 0) { throw "density evidence audit failed" }- name: Stop Driver and harness processesif: always()run: |@@ -816,6 +835,9 @@ jobs:${{ runner.temp }}/jev-use-native-proof/summary.json${{ runner.temp }}/jev-use-native-proof/*.jsonl${{ runner.temp }}/jev-use-native-window-state/*.json+ ${{ runner.temp }}/jev-use-native-density/summary.json+ ${{ runner.temp }}/jev-use-native-density/*.jsonl+ ${{ runner.temp }}/jev-use-native-density-window-state/*.jsonif-no-files-found: errorretention-days: 14@@ -927,6 +949,25 @@ jobs:assert not any(value in text for value in forbidden), (path, [v for v in forbidden if v in text])'@ | uv run --frozen python - (Join-Path $env:RUNNER_TEMP "jev-use-native-proof")if ($LASTEXITCODE -ne 0) { throw "evidence audit failed" }+ # #4312: the opt-in distractor density fills the set past the 24-action+ # cap; the relevance cap must still offer every declared task step.+ - name: Run the native tasks at distractor density 24 with the mock agent+ run: |+ $density = Join-Path $env:RUNNER_TEMP "jev-use-native-density"+ $capture = Join-Path $env:RUNNER_TEMP "jev-use-native-density-window-state"+ uv run --frozen python verify_native.py --harness winui3 --density 24 --output-dir $density --capture-dir $capture+ if ($LASTEXITCODE -ne 0) { throw "native density verification failed" }+ @'+ import json, pathlib, sys+ summary = json.loads((pathlib.Path(sys.argv[1]) / "summary.json").read_text(encoding="utf-8"))+ assert summary["complete"] is True and summary["density"] == 24 and summary["harness"] == "winui3"+ assert {c["task"] for c in summary["checks"]} == {"winui3-counter", "winui3-save-note", "winui3-choose-size"}+ for check in summary["checks"]:+ assert check["verified"] is True and check["runner_outcome"] == "verified", check+ assert check["density"] == 24 and check["distractor_actions"] == 0, check+ assert check["max_candidates"] == 26, check # 24 actions + reobserve + abstain+ '@ | uv run --frozen python - $density+ if ($LASTEXITCODE -ne 0) { throw "density evidence audit failed" }- name: Stop Driver and harness processesif: always()run: |@@ -940,6 +981,9 @@ jobs:${{ runner.temp }}/jev-use-native-proof/summary.json${{ runner.temp }}/jev-use-native-proof/*.jsonl${{ runner.temp }}/jev-use-native-window-state/*.json+ ${{ runner.temp }}/jev-use-native-density/summary.json+ ${{ runner.temp }}/jev-use-native-density/*.jsonl+ ${{ runner.temp }}/jev-use-native-density-window-state/*.jsonif-no-files-found: errorretention-days: 14diff --git a/libs/cua-driver/examples/jev-use/README.md b/libs/cua-driver/examples/jev-use/README.mdindex 162c7ade57..512da6e7e9 100644--- a/libs/cua-driver/examples/jev-use/README.md+++ b/libs/cua-driver/examples/jev-use/README.md@@ -169,8 +169,9 @@ until the step budget runs out.#### Measure accuracy at larger candidate setsThe task-mode harnesses show only a few controls, so each step offers 4 to 7-candidates. `CUA_APPKIT_TASK_DENSITY` or `CUA_GTK3_TASK_DENSITY` set to `12` or-`24`, together with the task-state variable, adds benign distractor controls+candidates. `CUA_APPKIT_TASK_DENSITY`, `CUA_WPF_TASK_DENSITY`,+`CUA_WINUI3_TASK_DENSITY`, or `CUA_GTK3_TASK_DENSITY` set to `12` or `24`,+together with the task-state variable, adds benign distractor controls(toolbar-style buttons, labeled text fields, checkboxes, and radio groups, someclose to a task control such as "Save draft" or "Note title") before the taskcontrols, which fills the set to about 12 or to the 24-candidate cap.@@ -191,6 +192,13 @@ uv run --frozen python measure_native.py replay --provider s1 --reps 5 \--out /tmp/jev-native-replay --group-by density,cap_order,order,bucket```+`fixtures/native/` has density 12 and 24 captures for all four harnesses+(`appkit`, `wpf`, `winui3`, and `gtk3`). Measured live with Cua Driver 0.30.4+on macOS, Windows, and Linux, with both the Python and TypeScript runners,+TypeSafe Jev and Cua-S1 chose correctly in all 1,680 decisions at about 4,+12, and 24 candidates. The per-harness tables are in the+[RFC 4268 decision record](../../../../rfcs/4268-jev-use-native-candidates.md).+#### Choose with Cua-S1The native runners also accept `--provider s1`, and `verify_native.py` acceptsdiff --git a/libs/cua-driver/examples/jev-use/fixtures/native/native-density-candidates-v1.json b/libs/cua-driver/examples/jev-use/fixtures/native/native-density-candidates-v1.jsonindex f53380bbe6..c1baeaf7d0 100644--- a/libs/cua-driver/examples/jev-use/fixtures/native/native-density-candidates-v1.json+++ b/libs/cua-driver/examples/jev-use/fixtures/native/native-density-candidates-v1.json@@ -1,6 +1,6 @@{"_fixture": {- "source": "python/native_tasks.py plan() over the AppKit and GTK3 density fixtures (#4312)",+ "source": "python/native_tasks.py plan() over the AppKit, GTK3, WPF, and WinUI3 density fixtures (#4312)","note": "Candidate IDs, in presented order, for each harness, task, density, and cap order. Python and TypeScript must both reproduce them."},"sets": {@@ -595,6 +595,590 @@"abstain"],"dropped": 4+ },+ "wpf-counter-d12-relevance": {+ "ids": [+ "ax:button:new-folder",+ "ax:button:refresh",+ "ax:button:undo",+ "ax:button:redo",+ "ax:button:zoom-in",+ "ax:button:zoom-out",+ "ax:button:save-draft",+ "ax:button:increase-font-size",+ "ax:button:increment",+ "ax:button:save-note",+ "reobserve",+ "abstain"+ ],+ "dropped": 0+ },+ "wpf-counter-d12-depth_first": {+ "ids": [+ "ax:button:new-folder",+ "ax:button:refresh",+ "ax:button:undo",+ "ax:button:redo",+ "ax:button:zoom-in",+ "ax:button:zoom-out",+ "ax:button:save-draft",+ "ax:button:increase-font-size",+ "ax:button:increment",+ "ax:button:save-note",+ "reobserve",+ "abstain"+ ],+ "dropped": 0+ },+ "wpf-save-note-d12-relevance": {+ "ids": [+ "ax:button:new-folder",+ "ax:button:refresh",+ "ax:button:undo",+ "ax:button:redo",+ "ax:button:zoom-in",+ "ax:button:zoom-out",+ "ax:button:save-draft",+ "ax:button:increase-font-size",+ "ax:text_input:search:set:note",+ "ax:button:increment",+ "ax:text_input:note:set:note",+ "ax:button:save-note",+ "reobserve",+ "abstain"+ ],+ "dropped": 0+ },+ "wpf-save-note-d12-depth_first": {+ "ids": [+ "ax:button:new-folder",+ "ax:button:refresh",+ "ax:button:undo",+ "ax:button:redo",+ "ax:button:zoom-in",+ "ax:button:zoom-out",+ "ax:button:save-draft",+ "ax:button:increase-font-size",+ "ax:text_input:search:set:note",+ "ax:button:increment",+ "ax:text_input:note:set:note",+ "ax:button:save-note",+ "reobserve",+ "abstain"+ ],+ "dropped": 0+ },+ "wpf-choose-size-d12-relevance": {+ "ids": [+ "ax:checkbox:show-ruler",+ "ax:checkbox:show-previews",+ "ax:checkbox:word-wrap",+ "ax:radio:light",+ "ax:radio:dark",+ "ax:radio:system",+ "ax:checkbox:i-agree",+ "ax:radio:small",+ "ax:radio:medium",+ "ax:radio:large",+ "reobserve",+ "abstain"+ ],+ "dropped": 0+ },+ "wpf-choose-size-d12-depth_first": {+ "ids": [+ "ax:checkbox:show-ruler",+ "ax:checkbox:show-previews",+ "ax:checkbox:word-wrap",+ "ax:radio:light",+ "ax:radio:dark",+ "ax:radio:system",+ "ax:checkbox:i-agree",+ "ax:radio:small",+ "ax:radio:medium",+ "ax:radio:large",+ "reobserve",+ "abstain"+ ],+ "dropped": 0+ },+ "wpf-counter-d24-relevance": {+ "ids": [+ "ax:button:new-folder",+ "ax:button:refresh",+ "ax:button:undo",+ "ax:button:redo",+ "ax:button:zoom-in",+ "ax:button:zoom-out",+ "ax:button:save-draft",+ "ax:button:increase-font-size",+ "ax:button:copy-link",+ "ax:button:duplicate",+ "ax:button:rename",+ "ax:button:print-preview",+ "ax:button:export-pdf",+ "ax:button:import",+ "ax:button:bold",+ "ax:button:italic",+ "ax:button:underline",+ "ax:button:align-left",+ "ax:button:align-center",+ "ax:button:align-right",+ "ax:button:insert-table",+ "ax:button:insert-image",+ "ax:button:spell-check",+ "ax:button:increment",+ "reobserve",+ "abstain"+ ],+ "dropped": 4+ },+ "wpf-counter-d24-depth_first": {+ "ids": [+ "ax:button:new-folder",+ "ax:button:refresh",+ "ax:button:undo",+ "ax:button:redo",+ "ax:button:zoom-in",+ "ax:button:zoom-out",+ "ax:button:save-draft",+ "ax:button:increase-font-size",+ "ax:button:copy-link",+ "ax:button:duplicate",+ "ax:button:rename",+ "ax:button:print-preview",+ "ax:button:export-pdf",+ "ax:button:import",+ "ax:button:bold",+ "ax:button:italic",+ "ax:button:underline",+ "ax:button:align-left",+ "ax:button:align-center",+ "ax:button:align-right",+ "ax:button:insert-table",+ "ax:button:insert-image",+ "ax:button:spell-check",+ "ax:button:word-count",+ "reobserve",+ "abstain"+ ],+ "dropped": 4+ },+ "wpf-save-note-d24-relevance": {+ "ids": [+ "ax:button:new-folder",+ "ax:button:refresh",+ "ax:button:undo",+ "ax:button:redo",+ "ax:button:zoom-in",+ "ax:button:zoom-out",+ "ax:button:save-draft",+ "ax:button:increase-font-size",+ "ax:button:copy-link",+ "ax:button:duplicate",+ "ax:button:rename",+ "ax:button:print-preview",+ "ax:button:export-pdf",+ "ax:button:import",+ "ax:button:bold",+ "ax:button:italic",+ "ax:button:underline",+ "ax:button:align-left",+ "ax:button:align-center",+ "ax:button:align-right",+ "ax:button:insert-table",+ "ax:text_input:note-title:set:note",+ "ax:text_input:note:set:note",+ "ax:button:save-note",+ "reobserve",+ "abstain"+ ],+ "dropped": 7+ },+ "wpf-save-note-d24-depth_first": {+ "ids": [+ "ax:button:new-folder",+ "ax:button:refresh",+ "ax:button:undo",+ "ax:button:redo",+ "ax:button:zoom-in",+ "ax:button:zoom-out",+ "ax:button:save-draft",+ "ax:button:increase-font-size",+ "ax:button:copy-link",+ "ax:button:duplicate",+ "ax:button:rename",+ "ax:button:print-preview",+ "ax:button:export-pdf",+ "ax:button:import",+ "ax:button:bold",+ "ax:button:italic",+ "ax:button:underline",+ "ax:button:align-left",+ "ax:button:align-center",+ "ax:button:align-right",+ "ax:button:insert-table",+ "ax:button:insert-image",+ "ax:button:spell-check",+ "ax:button:word-count",+ "reobserve",+ "abstain"+ ],+ "dropped": 7+ },+ "wpf-choose-size-d24-relevance": {+ "ids": [+ "ax:checkbox:show-ruler",+ "ax:checkbox:show-previews",+ "ax:checkbox:word-wrap",+ "ax:checkbox:auto-save",+ "ax:checkbox:line-numbers",+ "ax:checkbox:dark-mode",+ "ax:checkbox:show-hidden-files",+ "ax:checkbox:sync-on-startup",+ "ax:checkbox:compact-layout",+ "ax:checkbox:show-status-bar",+ "ax:checkbox:remember-window-size",+ "ax:checkbox:check-spelling-as-you-type",+ "ax:radio:light",+ "ax:radio:dark",+ "ax:radio:system",+ "ax:radio:list",+ "ax:radio:grid",+ "ax:radio:columns",+ "ax:radio:name",+ "ax:radio:date",+ "ax:radio:kind",+ "ax:radio:large-icons",+ "ax:checkbox:i-agree",+ "ax:radio:large",+ "reobserve",+ "abstain"+ ],+ "dropped": 4+ },+ "wpf-choose-size-d24-depth_first": {+ "ids": [+ "ax:checkbox:show-ruler",+ "ax:checkbox:show-previews",+ "ax:checkbox:word-wrap",+ "ax:checkbox:auto-save",+ "ax:checkbox:line-numbers",+ "ax:checkbox:dark-mode",+ "ax:checkbox:show-hidden-files",+ "ax:checkbox:sync-on-startup",+ "ax:checkbox:compact-layout",+ "ax:checkbox:show-status-bar",+ "ax:checkbox:remember-window-size",+ "ax:checkbox:check-spelling-as-you-type",+ "ax:radio:light",+ "ax:radio:dark",+ "ax:radio:system",+ "ax:radio:list",+ "ax:radio:grid",+ "ax:radio:columns",+ "ax:radio:name",+ "ax:radio:date",+ "ax:radio:kind",+ "ax:radio:small-icons",+ "ax:radio:medium-icons",+ "ax:radio:large-icons",+ "reobserve",+ "abstain"+ ],+ "dropped": 4+ },+ "winui3-counter-d12-relevance": {+ "ids": [+ "ax:button:new-folder",+ "ax:button:refresh",+ "ax:button:undo",+ "ax:button:redo",+ "ax:button:zoom-in",+ "ax:button:zoom-out",+ "ax:button:save-draft",+ "ax:button:increase-font-size",+ "ax:button:increment",+ "ax:button:save-note",+ "reobserve",+ "abstain"+ ],+ "dropped": 0+ },+ "winui3-counter-d12-depth_first": {+ "ids": [+ "ax:button:new-folder",+ "ax:button:refresh",+ "ax:button:undo",+ "ax:button:redo",+ "ax:button:zoom-in",+ "ax:button:zoom-out",+ "ax:button:save-draft",+ "ax:button:increase-font-size",+ "ax:button:increment",+ "ax:button:save-note",+ "reobserve",+ "abstain"+ ],+ "dropped": 0+ },+ "winui3-save-note-d12-relevance": {+ "ids": [+ "ax:button:new-folder",+ "ax:button:refresh",+ "ax:button:undo",+ "ax:button:redo",+ "ax:button:zoom-in",+ "ax:button:zoom-out",+ "ax:button:save-draft",+ "ax:button:increase-font-size",+ "ax:text_input:search:set:note",+ "ax:button:increment",+ "ax:text_input:note:set:note",+ "ax:button:save-note",+ "reobserve",+ "abstain"+ ],+ "dropped": 0+ },+ "winui3-save-note-d12-depth_first": {+ "ids": [+ "ax:button:new-folder",+ "ax:button:refresh",+ "ax:button:undo",+ "ax:button:redo",+ "ax:button:zoom-in",+ "ax:button:zoom-out",+ "ax:button:save-draft",+ "ax:button:increase-font-size",+ "ax:text_input:search:set:note",+ "ax:button:increment",+ "ax:text_input:note:set:note",+ "ax:button:save-note",+ "reobserve",+ "abstain"+ ],+ "dropped": 0+ },+ "winui3-choose-size-d12-relevance": {+ "ids": [+ "ax:checkbox:show-ruler",+ "ax:checkbox:show-previews",+ "ax:checkbox:word-wrap",+ "ax:radio:light",+ "ax:radio:dark",+ "ax:radio:system",+ "ax:checkbox:i-agree",+ "ax:radio:small",+ "ax:radio:medium",+ "ax:radio:large",+ "reobserve",+ "abstain"+ ],+ "dropped": 0+ },+ "winui3-choose-size-d12-depth_first": {+ "ids": [+ "ax:checkbox:show-ruler",+ "ax:checkbox:show-previews",+ "ax:checkbox:word-wrap",+ "ax:radio:light",+ "ax:radio:dark",+ "ax:radio:system",+ "ax:checkbox:i-agree",+ "ax:radio:small",+ "ax:radio:medium",+ "ax:radio:large",+ "reobserve",+ "abstain"+ ],+ "dropped": 0+ },+ "winui3-counter-d24-relevance": {+ "ids": [+ "ax:button:new-folder",+ "ax:button:refresh",+ "ax:button:undo",+ "ax:button:redo",+ "ax:button:zoom-in",+ "ax:button:zoom-out",+ "ax:button:save-draft",+ "ax:button:increase-font-size",+ "ax:button:copy-link",+ "ax:button:duplicate",+ "ax:button:rename",+ "ax:button:print-preview",+ "ax:button:export-pdf",+ "ax:button:import",+ "ax:button:bold",+ "ax:button:italic",+ "ax:button:underline",+ "ax:button:align-left",+ "ax:button:align-center",+ "ax:button:align-right",+ "ax:button:insert-table",+ "ax:button:insert-image",+ "ax:button:spell-check",+ "ax:button:increment",+ "reobserve",+ "abstain"+ ],+ "dropped": 4+ },+ "winui3-counter-d24-depth_first": {+ "ids": [+ "ax:button:new-folder",+ "ax:button:refresh",+ "ax:button:undo",+ "ax:button:redo",+ "ax:button:zoom-in",+ "ax:button:zoom-out",+ "ax:button:save-draft",+ "ax:button:increase-font-size",+ "ax:button:copy-link",+ "ax:button:duplicate",+ "ax:button:rename",+ "ax:button:print-preview",+ "ax:button:export-pdf",+ "ax:button:import",+ "ax:button:bold",+ "ax:button:italic",+ "ax:button:underline",+ "ax:button:align-left",+ "ax:button:align-center",+ "ax:button:align-right",+ "ax:button:insert-table",+ "ax:button:insert-image",+ "ax:button:spell-check",+ "ax:button:word-count",+ "reobserve",+ "abstain"+ ],+ "dropped": 4+ },+ "winui3-save-note-d24-relevance": {+ "ids": [+ "ax:button:new-folder",+ "ax:button:refresh",+ "ax:button:undo",+ "ax:button:redo",+ "ax:button:zoom-in",+ "ax:button:zoom-out",+ "ax:button:save-draft",+ "ax:button:increase-font-size",+ "ax:button:copy-link",+ "ax:button:duplicate",+ "ax:button:rename",+ "ax:button:print-preview",+ "ax:button:export-pdf",+ "ax:button:import",+ "ax:button:bold",+ "ax:button:italic",+ "ax:button:underline",+ "ax:button:align-left",+ "ax:button:align-center",+ "ax:button:align-right",+ "ax:button:insert-table",+ "ax:text_input:note-title:set:note",+ "ax:text_input:note:set:note",+ "ax:button:save-note",+ "reobserve",+ "abstain"+ ],+ "dropped": 7+ },+ "winui3-save-note-d24-depth_first": {+ "ids": [+ "ax:button:new-folder",+ "ax:button:refresh",+ "ax:button:undo",+ "ax:button:redo",+ "ax:button:zoom-in",+ "ax:button:zoom-out",+ "ax:button:save-draft",+ "ax:button:increase-font-size",+ "ax:button:copy-link",+ "ax:button:duplicate",+ "ax:button:rename",+ "ax:button:print-preview",+ "ax:button:export-pdf",+ "ax:button:import",+ "ax:button:bold",+ "ax:button:italic",+ "ax:button:underline",+ "ax:button:align-left",+ "ax:button:align-center",+ "ax:button:align-right",+ "ax:button:insert-table",+ "ax:button:insert-image",+ "ax:button:spell-check",+ "ax:button:word-count",+ "reobserve",+ "abstain"+ ],+ "dropped": 7+ },+ "winui3-choose-size-d24-relevance": {+ "ids": [+ "ax:checkbox:show-ruler",+ "ax:checkbox:show-previews",+ "ax:checkbox:word-wrap",+ "ax:checkbox:auto-save",+ "ax:checkbox:line-numbers",+ "ax:checkbox:dark-mode",+ "ax:checkbox:show-hidden-files",+ "ax:checkbox:sync-on-startup",+ "ax:checkbox:compact-layout",+ "ax:checkbox:show-status-bar",+ "ax:checkbox:remember-window-size",+ "ax:checkbox:check-spelling-as-you-type",+ "ax:radio:light",+ "ax:radio:dark",+ "ax:radio:system",+ "ax:radio:list",+ "ax:radio:grid",+ "ax:radio:columns",+ "ax:radio:name",+ "ax:radio:date",+ "ax:radio:kind",+ "ax:radio:large-icons",+ "ax:checkbox:i-agree",+ "ax:radio:large",+ "reobserve",+ "abstain"+ ],+ "dropped": 4+ },+ "winui3-choose-size-d24-depth_first": {+ "ids": [+ "ax:checkbox:show-ruler",+ "ax:checkbox:show-previews",+ "ax:checkbox:word-wrap",+ "ax:checkbox:auto-save",+ "ax:checkbox:line-numbers",+ "ax:checkbox:dark-mode",+ "ax:checkbox:show-hidden-files",+ "ax:checkbox:sync-on-startup",+ "ax:checkbox:compact-layout",+ "ax:checkbox:show-status-bar",+ "ax:checkbox:remember-window-size",+ "ax:checkbox:check-spelling-as-you-type",+ "ax:radio:light",+ "ax:radio:dark",+ "ax:radio:system",+ "ax:radio:list",+ "ax:radio:grid",+ "ax:radio:columns",+ "ax:radio:name",+ "ax:radio:date",+ "ax:radio:kind",+ "ax:radio:small-icons",+ "ax:radio:medium-icons",+ "ax:radio:large-icons",+ "reobserve",+ "abstain"+ ],+ "dropped": 4}}}diff --git a/libs/cua-driver/examples/jev-use/fixtures/native/winui3-window-state-density-12-v1.json b/libs/cua-driver/examples/jev-use/fixtures/native/winui3-window-state-density-12-v1.jsonnew file mode 100644index 0000000000..3c16038d57--- /dev/null+++ b/libs/cua-driver/examples/jev-use/fixtures/native/winui3-window-state-density-12-v1.json@@ -0,0 +1,740 @@+{+ "_fixture": {+ "sanitized": "Recorded by verify_native.py --capture-dir. Screenshot bytes, tree_markdown, local file paths, and Driver guidance notes removed.",+ "source": "CuaTestHarness task window with CUA_WINUI3_TASK_DENSITY=12 (initial), observed by get_window_state: Windows WinUI3 harness (CUA_WINUI3_TASK_STATE), released Cua Driver 0.30.4 from the canonical install.ps1 on an Azure Windows VM (interactive RDP session)"+ },+ "app_name": "CuaTestHarness.WinUI3.exe",+ "capture_id": "capture_4e329836024f46afb3ba8f1667e29216_0000000000000000",+ "element_count": 30,+ "elements": [+ {+ "actions": [+ "invoke"+ ],+ "depth": 3,+ "element_index": 0,+ "element_token": "s00000001:0",+ "enabled": true,+ "frame": {+ "h": 25,+ "w": 78,+ "x": 484,+ "y": 243+ },+ "label": "New folder",+ "role": "Button",+ "screenshot_frame": {+ "h": 25,+ "w": 78,+ "x": 16,+ "y": 46+ }+ },+ {+ "actions": [+ "invoke"+ ],+ "depth": 3,+ "element_index": 1,+ "element_token": "s00000001:1",+ "enabled": true,+ "frame": {+ "h": 25,+ "w": 59,+ "x": 568,+ "y": 243+ },+ "label": "Refresh",+ "role": "Button",+ "screenshot_frame": {+ "h": 25,+ "w": 59,+ "x": 100,+ "y": 46+ }+ },+ {+ "actions": [+ "invoke"+ ],+ "depth": 3,+ "element_index": 2,+ "element_token": "s00000001:2",+ "enabled": true,+ "frame": {+ "h": 25,+ "w": 48,+ "x": 633,+ "y": 243+ },+ "label": "Undo",+ "role": "Button",+ "screenshot_frame": {+ "h": 25,+ "w": 48,+ "x": 165,+ "y": 46+ }+ },+ {+ "actions": [+ "invoke"+ ],+ "depth": 3,+ "element_index": 3,+ "element_token": "s00000001:3",+ "enabled": true,+ "frame": {+ "h": 25,+ "w": 46,+ "x": 687,+ "y": 243+ },+ "label": "Redo",+ "role": "Button",+ "screenshot_frame": {+ "h": 25,+ "w": 46,+ "x": 219,+ "y": 46+ }+ },+ {+ "actions": [+ "invoke"+ ],+ "depth": 3,+ "element_index": 4,+ "element_token": "s00000001:4",+ "enabled": true,+ "frame": {+ "h": 25,+ "w": 64,+ "x": 484,+ "y": 272+ },+ "label": "Zoom in",+ "role": "Button",+ "screenshot_frame": {+ "h": 25,+ "w": 64,+ "x": 16,+ "y": 75+ }+ },+ {+ "actions": [+ "invoke"+ ],+ "depth": 3,+ "element_index": 5,+ "element_token": "s00000001:5",+ "enabled": true,+ "frame": {+ "h": 25,+ "w": 72,+ "x": 554,+ "y": 272+ },+ "label": "Zoom out",+ "role": "Button",+ "screenshot_frame": {+ "h": 25,+ "w": 72,+ "x": 86,+ "y": 75+ }+ },+ {+ "actions": [+ "invoke"+ ],+ "depth": 3,+ "element_index": 6,+ "element_token": "s00000001:6",+ "enabled": true,+ "frame": {+ "h": 25,+ "w": 73,+ "x": 632,+ "y": 272+ },+ "label": "Save draft",+ "role": "Button",+ "screenshot_frame": {+ "h": 25,+ "w": 73,+ "x": 164,+ "y": 75+ }+ },+ {+ "actions": [+ "invoke"+ ],+ "depth": 3,+ "element_index": 7,+ "element_token": "s00000001:7",+ "enabled": true,+ "frame": {+ "h": 25,+ "w": 112,+ "x": 711,+ "y": 272+ },+ "label": "Increase font size",+ "role": "Button",+ "screenshot_frame": {+ "h": 25,+ "w": 112,+ "x": 243,+ "y": 75+ }+ },+ {+ "actions": [+ "set_value",+ "text"+ ],+ "depth": 3,+ "element_index": 8,+ "element_token": "s00000001:8",+ "enabled": true,+ "frame": {+ "h": 32,+ "w": 180,+ "x": 484,+ "y": 301+ },+ "label": "Search",+ "role": "Edit",+ "screenshot_frame": {+ "h": 32,+ "w": 180,+ "x": 16,+ "y": 104+ }+ },+ {+ "actions": [+ "toggle"+ ],+ "depth": 3,+ "element_index": 9,+ "element_token": "s00000001:9",+ "enabled": true,+ "frame": {+ "h": 32,+ "w": 86,+ "x": 484,+ "y": 337+ },+ "label": "Show ruler",+ "role": "CheckBox",+ "screenshot_frame": {+ "h": 32,+ "w": 86,+ "x": 16,+ "y": 140+ },+ "selected": false+ },+ {+ "actions": [+ "toggle"+ ],+ "depth": 3,+ "element_index": 10,+ "element_token": "s00000001:10",+ "enabled": true,+ "frame": {+ "h": 32,+ "w": 109,+ "x": 576,+ "y": 337+ },+ "label": "Show previews",+ "role": "CheckBox",+ "screenshot_frame": {+ "h": 32,+ "w": 109,+ "x": 108,+ "y": 140+ },+ "selected": false+ },+ {+ "actions": [+ "toggle"+ ],+ "depth": 3,+ "element_index": 11,+ "element_token": "s00000001:11",+ "enabled": true,+ "frame": {+ "h": 32,+ "w": 88,+ "x": 691,+ "y": 337+ },+ "label": "Word wrap",+ "role": "CheckBox",+ "screenshot_frame": {+ "h": 32,+ "w": 88,+ "x": 223,+ "y": 140+ },+ "selected": false+ },+ {+ "actions": [+ "select"+ ],+ "depth": 3,+ "element_index": 12,+ "element_token": "s00000001:12",+ "enabled": true,+ "frame": {+ "h": 32,+ "w": 56,+ "x": 484,+ "y": 373+ },+ "label": "Light",+ "role": "RadioButton",+ "screenshot_frame": {+ "h": 32,+ "w": 56,+ "x": 16,+ "y": 176+ },+ "selected": false+ },+ {+ "actions": [+ "select"+ ],+ "depth": 3,+ "element_index": 13,+ "element_token": "s00000001:13",+ "enabled": true,+ "frame": {+ "h": 32,+ "w": 54,+ "x": 548,+ "y": 373+ },+ "label": "Dark",+ "role": "RadioButton",+ "screenshot_frame": {+ "h": 32,+ "w": 54,+ "x": 80,+ "y": 176+ },+ "selected": false+ },+ {+ "actions": [+ "select"+ ],+ "depth": 3,+ "element_index": 14,+ "element_token": "s00000001:14",+ "enabled": true,+ "frame": {+ "h": 32,+ "w": 67,+ "x": 610,+ "y": 373+ },+ "label": "System",+ "role": "RadioButton",+ "screenshot_frame": {+ "h": 32,+ "w": 67,+ "x": 142,+ "y": 176+ },+ "selected": false+ },+ {+ "actions": [+ "text"+ ],+ "depth": 3,+ "element_index": 15,+ "element_token": "s00000001:15",+ "enabled": true,+ "frame": {+ "h": 19,+ "w": 338,+ "x": 1044,+ "y": 243+ },+ "label": "counter=0",+ "role": "Text",+ "screenshot_frame": {+ "h": 19,+ "w": 338,+ "x": 576,+ "y": 46+ }+ },+ {+ "actions": [+ "invoke"+ ],+ "depth": 3,+ "element_index": 16,+ "element_token": "s00000001:16",+ "enabled": true,+ "frame": {+ "h": 32,+ "w": 90,+ "x": 1044,+ "y": 270+ },+ "label": "Increment",+ "role": "Button",+ "screenshot_frame": {+ "h": 32,+ "w": 90,+ "x": 576,+ "y": 73+ }+ },+ {+ "actions": [+ "invoke"+ ],+ "depth": 3,+ "element_index": 17,+ "element_token": "s00000001:17",+ "enabled": true,+ "frame": {+ "h": 32,+ "w": 90,+ "x": 1142,+ "y": 270+ },+ "label": "Reset",+ "role": "Button",+ "screenshot_frame": {+ "h": 32,+ "w": 90,+ "x": 674,+ "y": 73+ }+ },+ {+ "actions": [+ "toggle"+ ],+ "depth": 3,+ "element_index": 18,+ "element_token": "s00000001:18",+ "enabled": true,+ "frame": {+ "h": 32,+ "w": 120,+ "x": 1044,+ "y": 310+ },+ "label": "I agree",+ "role": "CheckBox",+ "screenshot_frame": {+ "h": 32,+ "w": 120,+ "x": 576,+ "y": 113+ },+ "selected": false+ },+ {+ "actions": [+ "select"+ ],+ "depth": 3,+ "element_index": 19,+ "element_token": "s00000001:19",+ "enabled": true,+ "frame": {+ "h": 32,+ "w": 62,+ "x": 1044,+ "y": 350+ },+ "label": "Small",+ "role": "RadioButton",+ "screenshot_frame": {+ "h": 32,+ "w": 62,+ "x": 576,+ "y": 153+ },+ "selected": false+ },+ {+ "actions": [+ "select"+ ],+ "depth": 3,+ "element_index": 20,+ "element_token": "s00000001:20",+ "enabled": true,+ "frame": {+ "h": 32,+ "w": 80,+ "x": 1114,+ "y": 350+ },+ "label": "Medium",+ "role": "RadioButton",+ "screenshot_frame": {+ "h": 32,+ "w": 80,+ "x": 646,+ "y": 153+ },+ "selected": false+ },+ {+ "actions": [+ "select"+ ],+ "depth": 3,+ "element_index": 21,+ "element_token": "s00000001:21",+ "enabled": true,+ "frame": {+ "h": 32,+ "w": 63,+ "x": 1202,+ "y": 350+ },+ "label": "Large",+ "role": "RadioButton",+ "screenshot_frame": {+ "h": 32,+ "w": 63,+ "x": 734,+ "y": 153+ },+ "selected": false+ },+ {+ "actions": [+ "set_value",+ "text"+ ],+ "depth": 3,+ "element_index": 22,+ "element_token": "s00000001:22",+ "enabled": true,+ "frame": {+ "h": 32,+ "w": 240,+ "x": 1044,+ "y": 390+ },+ "label": "Note",+ "role": "Edit",+ "screenshot_frame": {+ "h": 32,+ "w": 240,+ "x": 576,+ "y": 193+ }+ },+ {+ "actions": [+ "invoke"+ ],+ "depth": 3,+ "element_index": 23,+ "element_token": "s00000001:23",+ "enabled": true,+ "frame": {+ "h": 32,+ "w": 90,+ "x": 1292,+ "y": 390+ },+ "label": "Save note",+ "role": "Button",+ "screenshot_frame": {+ "h": 32,+ "w": 90,+ "x": 824,+ "y": 193+ }+ },+ {+ "actions": [+ "invoke"+ ],+ "depth": 3,+ "element_index": 24,+ "element_token": "s00000001:24",+ "enabled": true,+ "frame": {+ "h": 32,+ "w": 90,+ "x": 1044,+ "y": 430+ },+ "label": "Exit",+ "role": "Button",+ "screenshot_frame": {+ "h": 32,+ "w": 90,+ "x": 576,+ "y": 233+ }+ },+ {+ "actions": [+ "set_value"+ ],+ "depth": 1,+ "element_index": 25,+ "element_token": "s00000001:25",+ "enabled": true,+ "frame": {+ "h": 28,+ "w": 968,+ "x": 484,+ "y": 199+ },+ "label": "CuaTestHarness WinUI3 Tasks",+ "role": "TitleBar",+ "screenshot_frame": {+ "h": 28,+ "w": 968,+ "x": 16,+ "y": 2+ },+ "value": "CuaTestHarness WinUI3 Tasks"+ },+ {+ "actions": [+ "invoke",+ "expand"+ ],+ "depth": 3,+ "element_index": 26,+ "element_token": "s00000001:26",+ "enabled": true,+ "frame": {+ "h": 22,+ "w": 22,+ "x": 468,+ "y": 204+ },+ "label": "System",+ "parent_index": 25,+ "role": "MenuItem",+ "screenshot_frame": {+ "h": 22,+ "w": 22,+ "x": 0,+ "y": 7+ }+ },+ {+ "actions": [+ "invoke"+ ],+ "depth": 2,+ "element_index": 27,+ "element_token": "s00000001:27",+ "enabled": true,+ "frame": {+ "h": 30,+ "w": 47,+ "x": 1313,+ "y": 197+ },+ "label": "Minimize",+ "parent_index": 25,+ "role": "Button",+ "screenshot_frame": {+ "h": 30,+ "w": 47,+ "x": 845,+ "y": 0+ }+ },+ {+ "actions": [+ "invoke"+ ],+ "depth": 2,+ "element_index": 28,+ "element_token": "s00000001:28",+ "enabled": true,+ "frame": {+ "h": 30,+ "w": 46,+ "x": 1360,+ "y": 197+ },+ "label": "Maximize",+ "parent_index": 25,+ "role": "Button",+ "screenshot_frame": {+ "h": 30,+ "w": 46,+ "x": 892,+ "y": 0+ }+ },+ {+ "actions": [+ "invoke"+ ],+ "depth": 2,+ "element_index": 29,+ "element_token": "s00000001:29",+ "enabled": true,+ "frame": {+ "h": 30,+ "w": 47,+ "x": 1406,+ "y": 197+ },+ "label": "Close",+ "parent_index": 25,+ "role": "Button",+ "screenshot_frame": {+ "h": 30,+ "w": 47,+ "x": 938,+ "y": 0+ }+ }+ ],+ "elements_complete": false,+ "nodes_pending": 0,+ "nodes_visited": 34,+ "pid": 7096,+ "returned_element_count": 30,+ "screenshot_height": 633,+ "screenshot_mime_type": "image/png",+ "screenshot_width": 986,+ "snapshot_id": "s00000001",+ "timeout_ms": 1000,+ "total_element_count": 30,+ "truncated": false,+ "walk_elapsed_ms": 1,+ "window_bounds": {+ "height": 633,+ "width": 986,+ "x": 467,+ "y": 196+ },+ "window_id": 984126,+ "window_title": "CuaTestHarness WinUI3 Tasks"+}diff --git a/libs/cua-driver/examples/jev-use/fixtures/native/winui3-window-state-density-24-v1.json b/libs/cua-driver/examples/jev-use/fixtures/native/winui3-window-state-density-24-v1.jsonnew file mode 100644index 0000000000..fa8c74aa57--- /dev/null+++ b/libs/cua-driver/examples/jev-use/fixtures/native/winui3-window-state-density-24-v1.json@@ -0,0 +1,1610 @@+{+ "_fixture": {+ "sanitized": "Recorded by verify_native.py --capture-dir. Screenshot bytes, tree_markdown, local file paths, and Driver guidance notes removed.",+ "source": "CuaTestHarness task window with CUA_WINUI3_TASK_DENSITY=24 (initial), observed by get_window_state: Windows WinUI3 harness (CUA_WINUI3_TASK_STATE), released Cua Driver 0.30.4 from the canonical install.ps1 on an Azure Windows VM (interactive RDP session)"+ },+ "app_name": "CuaTestHarness.WinUI3.exe",+ "capture_id": "capture_56050d7a8e7b4f199794765654b7a228_0000000000000000",+ "element_count": 67,+ "elements": [+ {+ "actions": [+ "invoke"+ ],+ "depth": 3,+ "element_index": 0,+ "element_token": "s00000001:0",+ "enabled": true,+ "frame": {+ "h": 25,+ "w": 78,+ "x": 484,+ "y": 243+ },+ "label": "New folder",+ "role": "Button",+ "screenshot_frame": {+ "h": 25,+ "w": 78,+ "x": 16,+ "y": 46+ }+ },+ {+ "actions": [+ "invoke"+ ],+ "depth": 3,+ "element_index": 1,+ "element_token": "s00000001:1",+ "enabled": true,+ "frame": {+ "h": 25,+ "w": 59,+ "x": 568,+ "y": 243+ },+ "label": "Refresh",+ "role": "Button",+ "screenshot_frame": {+ "h": 25,+ "w": 59,+ "x": 100,+ "y": 46+ }+ },+ {+ "actions": [+ "invoke"+ ],+ "depth": 3,+ "element_index": 2,+ "element_token": "s00000001:2",+ "enabled": true,+ "frame": {+ "h": 25,+ "w": 48,+ "x": 633,+ "y": 243+ },+ "label": "Undo",+ "role": "Button",+ "screenshot_frame": {+ "h": 25,+ "w": 48,+ "x": 165,+ "y": 46+ }+ },+ {+ "actions": [+ "invoke"+ ],+ "depth": 3,+ "element_index": 3,+ "element_token": "s00000001:3",+ "enabled": true,+ "frame": {+ "h": 25,+ "w": 46,+ "x": 687,+ "y": 243+ },+ "label": "Redo",+ "role": "Button",+ "screenshot_frame": {+ "h": 25,+ "w": 46,+ "x": 219,+ "y": 46+ }+ },+ {+ "actions": [+ "invoke"+ ],+ "depth": 3,+ "element_index": 4,+ "element_token": "s00000001:4",+ "enabled": true,+ "frame": {+ "h": 25,+ "w": 64,+ "x": 484,+ "y": 272+ },+ "label": "Zoom in",+ "role": "Button",+ "screenshot_frame": {+ "h": 25,+ "w": 64,+ "x": 16,+ "y": 75+ }+ },+ {+ "actions": [+ "invoke"+ ],+ "depth": 3,+ "element_index": 5,+ "element_token": "s00000001:5",+ "enabled": true,+ "frame": {+ "h": 25,+ "w": 72,+ "x": 554,+ "y": 272+ },+ "label": "Zoom out",+ "role": "Button",+ "screenshot_frame": {+ "h": 25,+ "w": 72,+ "x": 86,+ "y": 75+ }+ },+ {+ "actions": [+ "invoke"+ ],+ "depth": 3,+ "element_index": 6,+ "element_token": "s00000001:6",+ "enabled": true,+ "frame": {+ "h": 25,+ "w": 73,+ "x": 632,+ "y": 272+ },+ "label": "Save draft",+ "role": "Button",+ "screenshot_frame": {+ "h": 25,+ "w": 73,+ "x": 164,+ "y": 75+ }+ },+ {+ "actions": [+ "invoke"+ ],+ "depth": 3,+ "element_index": 7,+ "element_token": "s00000001:7",+ "enabled": true,+ "frame": {+ "h": 25,+ "w": 112,+ "x": 711,+ "y": 272+ },+ "label": "Increase font size",+ "role": "Button",+ "screenshot_frame": {+ "h": 25,+ "w": 112,+ "x": 243,+ "y": 75+ }+ },+ {+ "actions": [+ "invoke"+ ],+ "depth": 3,+ "element_index": 8,+ "element_token": "s00000001:8",+ "enabled": true,+ "frame": {+ "h": 25,+ "w": 69,+ "x": 484,+ "y": 301+ },+ "label": "Copy link",+ "role": "Button",+ "screenshot_frame": {+ "h": 25,+ "w": 69,+ "x": 16,+ "y": 104+ }+ },+ {+ "actions": [+ "invoke"+ ],+ "depth": 3,+ "element_index": 9,+ "element_token": "s00000001:9",+ "enabled": true,+ "frame": {+ "h": 25,+ "w": 70,+ "x": 559,+ "y": 301+ },+ "label": "Duplicate",+ "role": "Button",+ "screenshot_frame": {+ "h": 25,+ "w": 70,+ "x": 91,+ "y": 104+ }+ },+ {+ "actions": [+ "invoke"+ ],+ "depth": 3,+ "element_index": 10,+ "element_token": "s00000001:10",+ "enabled": true,+ "frame": {+ "h": 25,+ "w": 62,+ "x": 635,+ "y": 301+ },+ "label": "Rename",+ "role": "Button",+ "screenshot_frame": {+ "h": 25,+ "w": 62,+ "x": 167,+ "y": 104+ }+ },+ {+ "actions": [+ "invoke"+ ],+ "depth": 3,+ "element_index": 11,+ "element_token": "s00000001:11",+ "enabled": true,+ "frame": {+ "h": 25,+ "w": 89,+ "x": 703,+ "y": 301+ },+ "label": "Print preview",+ "role": "Button",+ "screenshot_frame": {+ "h": 25,+ "w": 89,+ "x": 235,+ "y": 104+ }+ },+ {+ "actions": [+ "invoke"+ ],+ "depth": 3,+ "element_index": 12,+ "element_token": "s00000001:12",+ "enabled": true,+ "frame": {+ "h": 25,+ "w": 78,+ "x": 484,+ "y": 330+ },+ "label": "Export PDF",+ "role": "Button",+ "screenshot_frame": {+ "h": 25,+ "w": 78,+ "x": 16,+ "y": 133+ }+ },+ {+ "actions": [+ "invoke"+ ],+ "depth": 3,+ "element_index": 13,+ "element_token": "s00000001:13",+ "enabled": true,+ "frame": {+ "h": 25,+ "w": 55,+ "x": 568,+ "y": 330+ },+ "label": "Import",+ "role": "Button",+ "screenshot_frame": {+ "h": 25,+ "w": 55,+ "x": 100,+ "y": 133+ }+ },+ {+ "actions": [+ "invoke"+ ],+ "depth": 3,+ "element_index": 14,+ "element_token": "s00000001:14",+ "enabled": true,+ "frame": {+ "h": 25,+ "w": 43,+ "x": 629,+ "y": 330+ },+ "label": "Bold",+ "role": "Button",+ "screenshot_frame": {+ "h": 25,+ "w": 43,+ "x": 161,+ "y": 133+ }+ },+ {+ "actions": [+ "invoke"+ ],+ "depth": 3,+ "element_index": 15,+ "element_token": "s00000001:15",+ "enabled": true,+ "frame": {+ "h": 25,+ "w": 44,+ "x": 678,+ "y": 330+ },+ "label": "Italic",+ "role": "Button",+ "screenshot_frame": {+ "h": 25,+ "w": 44,+ "x": 210,+ "y": 133+ }+ },+ {+ "actions": [+ "invoke"+ ],+ "depth": 3,+ "element_index": 16,+ "element_token": "s00000001:16",+ "enabled": true,+ "frame": {+ "h": 25,+ "w": 71,+ "x": 484,+ "y": 359+ },+ "label": "Underline",+ "role": "Button",+ "screenshot_frame": {+ "h": 25,+ "w": 71,+ "x": 16,+ "y": 162+ }+ },+ {+ "actions": [+ "invoke"+ ],+ "depth": 3,+ "element_index": 17,+ "element_token": "s00000001:17",+ "enabled": true,+ "frame": {+ "h": 25,+ "w": 67,+ "x": 561,+ "y": 359+ },+ "label": "Align left",+ "role": "Button",+ "screenshot_frame": {+ "h": 25,+ "w": 67,+ "x": 93,+ "y": 162+ }+ },+ {+ "actions": [+ "invoke"+ ],+ "depth": 3,+ "element_index": 18,+ "element_token": "s00000001:18",+ "enabled": true,+ "frame": {+ "h": 25,+ "w": 84,+ "x": 634,+ "y": 359+ },+ "label": "Align center",+ "role": "Button",+ "screenshot_frame": {+ "h": 25,+ "w": 84,+ "x": 166,+ "y": 162+ }+ },+ {+ "actions": [+ "invoke"+ ],+ "depth": 3,+ "element_index": 19,+ "element_token": "s00000001:19",+ "enabled": true,+ "frame": {+ "h": 25,+ "w": 76,+ "x": 724,+ "y": 359+ },+ "label": "Align right",+ "role": "Button",+ "screenshot_frame": {+ "h": 25,+ "w": 76,+ "x": 256,+ "y": 162+ }+ },+ {+ "actions": [+ "invoke"+ ],+ "depth": 3,+ "element_index": 20,+ "element_token": "s00000001:20",+ "enabled": true,+ "frame": {+ "h": 25,+ "w": 79,+ "x": 484,+ "y": 388+ },+ "label": "Insert table",+ "role": "Button",+ "screenshot_frame": {+ "h": 25,+ "w": 79,+ "x": 16,+ "y": 191+ }+ },+ {+ "actions": [+ "invoke"+ ],+ "depth": 3,+ "element_index": 21,+ "element_token": "s00000001:21",+ "enabled": true,+ "frame": {+ "h": 25,+ "w": 86,+ "x": 569,+ "y": 388+ },+ "label": "Insert image",+ "role": "Button",+ "screenshot_frame": {+ "h": 25,+ "w": 86,+ "x": 101,+ "y": 191+ }+ },+ {+ "actions": [+ "invoke"+ ],+ "depth": 3,+ "element_index": 22,+ "element_token": "s00000001:22",+ "enabled": true,+ "frame": {+ "h": 25,+ "w": 79,+ "x": 661,+ "y": 388+ },+ "label": "Spell check",+ "role": "Button",+ "screenshot_frame": {+ "h": 25,+ "w": 79,+ "x": 193,+ "y": 191+ }+ },+ {+ "actions": [+ "invoke"+ ],+ "depth": 3,+ "element_index": 23,+ "element_token": "s00000001:23",+ "enabled": true,+ "frame": {+ "h": 25,+ "w": 82,+ "x": 746,+ "y": 388+ },+ "label": "Word count",+ "role": "Button",+ "screenshot_frame": {+ "h": 25,+ "w": 82,+ "x": 278,+ "y": 191+ }+ },+ {+ "actions": [+ "invoke"+ ],+ "depth": 3,+ "element_index": 24,+ "element_token": "s00000001:24",+ "enabled": true,+ "frame": {+ "h": 25,+ "w": 91,+ "x": 484,+ "y": 417+ },+ "label": "Show sidebar",+ "role": "Button",+ "screenshot_frame": {+ "h": 25,+ "w": 91,+ "x": 16,+ "y": 220+ }+ },+ {+ "actions": [+ "invoke"+ ],+ "depth": 3,+ "element_index": 25,+ "element_token": "s00000001:25",+ "enabled": true,+ "frame": {+ "h": 25,+ "w": 44,+ "x": 581,+ "y": 417+ },+ "label": "Help",+ "role": "Button",+ "screenshot_frame": {+ "h": 25,+ "w": 44,+ "x": 113,+ "y": 220+ }+ },+ {+ "actions": [+ "set_value",+ "text"+ ],+ "depth": 3,+ "element_index": 26,+ "element_token": "s00000001:26",+ "enabled": true,+ "frame": {+ "h": 32,+ "w": 180,+ "x": 484,+ "y": 446+ },+ "label": "Search",+ "role": "Edit",+ "screenshot_frame": {+ "h": 32,+ "w": 180,+ "x": 16,+ "y": 249+ }+ },+ {+ "actions": [+ "set_value",+ "text"+ ],+ "depth": 3,+ "element_index": 27,+ "element_token": "s00000001:27",+ "enabled": true,+ "frame": {+ "h": 32,+ "w": 180,+ "x": 672,+ "y": 446+ },+ "label": "Note title",+ "role": "Edit",+ "screenshot_frame": {+ "h": 32,+ "w": 180,+ "x": 204,+ "y": 249+ }+ },+ {+ "actions": [+ "toggle"+ ],+ "depth": 3,+ "element_index": 28,+ "element_token": "s00000001:28",+ "enabled": true,+ "frame": {+ "h": 32,+ "w": 86,+ "x": 484,+ "y": 482+ },+ "label": "Show ruler",+ "role": "CheckBox",+ "screenshot_frame": {+ "h": 32,+ "w": 86,+ "x": 16,+ "y": 285+ },+ "selected": false+ },+ {+ "actions": [+ "toggle"+ ],+ "depth": 3,+ "element_index": 29,+ "element_token": "s00000001:29",+ "enabled": true,+ "frame": {+ "h": 32,+ "w": 109,+ "x": 576,+ "y": 482+ },+ "label": "Show previews",+ "role": "CheckBox",+ "screenshot_frame": {+ "h": 32,+ "w": 109,+ "x": 108,+ "y": 285+ },+ "selected": false+ },+ {+ "actions": [+ "toggle"+ ],+ "depth": 3,+ "element_index": 30,+ "element_token": "s00000001:30",+ "enabled": true,+ "frame": {+ "h": 32,+ "w": 88,+ "x": 691,+ "y": 482+ },+ "label": "Word wrap",+ "role": "CheckBox",+ "screenshot_frame": {+ "h": 32,+ "w": 88,+ "x": 223,+ "y": 285+ },+ "selected": false+ },+ {+ "actions": [+ "toggle"+ ],+ "depth": 3,+ "element_index": 31,+ "element_token": "s00000001:31",+ "enabled": true,+ "frame": {+ "h": 32,+ "w": 83,+ "x": 484,+ "y": 518+ },+ "label": "Auto-save",+ "role": "CheckBox",+ "screenshot_frame": {+ "h": 32,+ "w": 83,+ "x": 16,+ "y": 321+ },+ "selected": false+ },+ {+ "actions": [+ "toggle"+ ],+ "depth": 3,+ "element_index": 32,+ "element_token": "s00000001:32",+ "enabled": true,+ "frame": {+ "h": 32,+ "w": 102,+ "x": 573,+ "y": 518+ },+ "label": "Line numbers",+ "role": "CheckBox",+ "screenshot_frame": {+ "h": 32,+ "w": 102,+ "x": 105,+ "y": 321+ },+ "selected": false+ },+ {+ "actions": [+ "toggle"+ ],+ "depth": 3,+ "element_index": 33,+ "element_token": "s00000001:33",+ "enabled": true,+ "frame": {+ "h": 32,+ "w": 88,+ "x": 681,+ "y": 518+ },+ "label": "Dark mode",+ "role": "CheckBox",+ "screenshot_frame": {+ "h": 32,+ "w": 88,+ "x": 213,+ "y": 321+ },+ "selected": false+ },+ {+ "actions": [+ "toggle"+ ],+ "depth": 3,+ "element_index": 34,+ "element_token": "s00000001:34",+ "enabled": true,+ "frame": {+ "h": 32,+ "w": 124,+ "x": 484,+ "y": 554+ },+ "label": "Show hidden files",+ "role": "CheckBox",+ "screenshot_frame": {+ "h": 32,+ "w": 124,+ "x": 16,+ "y": 357+ },+ "selected": false+ },+ {+ "actions": [+ "toggle"+ ],+ "depth": 3,+ "element_index": 35,+ "element_token": "s00000001:35",+ "enabled": true,+ "frame": {+ "h": 32,+ "w": 112,+ "x": 614,+ "y": 554+ },+ "label": "Sync on startup",+ "role": "CheckBox",+ "screenshot_frame": {+ "h": 32,+ "w": 112,+ "x": 146,+ "y": 357+ },+ "selected": false+ },+ {+ "actions": [+ "toggle"+ ],+ "depth": 3,+ "element_index": 36,+ "element_token": "s00000001:36",+ "enabled": true,+ "frame": {+ "h": 32,+ "w": 114,+ "x": 732,+ "y": 554+ },+ "label": "Compact layout",+ "role": "CheckBox",+ "screenshot_frame": {+ "h": 32,+ "w": 114,+ "x": 264,+ "y": 357+ },+ "selected": false+ },+ {+ "actions": [+ "toggle"+ ],+ "depth": 3,+ "element_index": 37,+ "element_token": "s00000001:37",+ "enabled": true,+ "frame": {+ "h": 32,+ "w": 114,+ "x": 484,+ "y": 590+ },+ "label": "Show status bar",+ "role": "CheckBox",+ "screenshot_frame": {+ "h": 32,+ "w": 114,+ "x": 16,+ "y": 393+ },+ "selected": false+ },+ {+ "actions": [+ "toggle"+ ],+ "depth": 3,+ "element_index": 38,+ "element_token": "s00000001:38",+ "enabled": true,+ "frame": {+ "h": 32,+ "w": 156,+ "x": 604,+ "y": 590+ },+ "label": "Remember window size",+ "role": "CheckBox",+ "screenshot_frame": {+ "h": 32,+ "w": 156,+ "x": 136,+ "y": 393+ },+ "selected": false+ },+ {+ "actions": [+ "toggle"+ ],+ "depth": 3,+ "element_index": 39,+ "element_token": "s00000001:39",+ "enabled": true,+ "frame": {+ "h": 32,+ "w": 172,+ "x": 766,+ "y": 590+ },+ "label": "Check spelling as you type",+ "role": "CheckBox",+ "screenshot_frame": {+ "h": 32,+ "w": 172,+ "x": 298,+ "y": 393+ },+ "selected": false+ },+ {+ "actions": [+ "select"+ ],+ "depth": 3,+ "element_index": 40,+ "element_token": "s00000001:40",+ "enabled": true,+ "frame": {+ "h": 32,+ "w": 56,+ "x": 484,+ "y": 626+ },+ "label": "Light",+ "role": "RadioButton",+ "screenshot_frame": {+ "h": 32,+ "w": 56,+ "x": 16,+ "y": 429+ },+ "selected": false+ },+ {+ "actions": [+ "select"+ ],+ "depth": 3,+ "element_index": 41,+ "element_token": "s00000001:41",+ "enabled": true,+ "frame": {+ "h": 32,+ "w": 54,+ "x": 548,+ "y": 626+ },+ "label": "Dark",+ "role": "RadioButton",+ "screenshot_frame": {+ "h": 32,+ "w": 54,+ "x": 80,+ "y": 429+ },+ "selected": false+ },+ {+ "actions": [+ "select"+ ],+ "depth": 3,+ "element_index": 42,+ "element_token": "s00000001:42",+ "enabled": true,+ "frame": {+ "h": 32,+ "w": 67,+ "x": 610,+ "y": 626+ },+ "label": "System",+ "role": "RadioButton",+ "screenshot_frame": {+ "h": 32,+ "w": 67,+ "x": 142,+ "y": 429+ },+ "selected": false+ },+ {+ "actions": [+ "select"+ ],+ "depth": 3,+ "element_index": 43,+ "element_token": "s00000001:43",+ "enabled": true,+ "frame": {+ "h": 32,+ "w": 47,+ "x": 484,+ "y": 662+ },+ "label": "List",+ "role": "RadioButton",+ "screenshot_frame": {+ "h": 32,+ "w": 47,+ "x": 16,+ "y": 465+ },+ "selected": false+ },+ {+ "actions": [+ "select"+ ],+ "depth": 3,+ "element_index": 44,+ "element_token": "s00000001:44",+ "enabled": true,+ "frame": {+ "h": 32,+ "w": 52,+ "x": 539,+ "y": 662+ },+ "label": "Grid",+ "role": "RadioButton",+ "screenshot_frame": {+ "h": 32,+ "w": 52,+ "x": 71,+ "y": 465+ },+ "selected": false+ },+ {+ "actions": [+ "select"+ ],+ "depth": 3,+ "element_index": 45,+ "element_token": "s00000001:45",+ "enabled": true,+ "frame": {+ "h": 32,+ "w": 76,+ "x": 599,+ "y": 662+ },+ "label": "Columns",+ "role": "RadioButton",+ "screenshot_frame": {+ "h": 32,+ "w": 76,+ "x": 131,+ "y": 465+ },+ "selected": false+ },+ {+ "actions": [+ "select"+ ],+ "depth": 3,+ "element_index": 46,+ "element_token": "s00000001:46",+ "enabled": true,+ "frame": {+ "h": 32,+ "w": 61,+ "x": 484,+ "y": 698+ },+ "label": "Name",+ "role": "RadioButton",+ "screenshot_frame": {+ "h": 32,+ "w": 61,+ "x": 16,+ "y": 501+ },+ "selected": false+ },+ {+ "actions": [+ "select"+ ],+ "depth": 3,+ "element_index": 47,+ "element_token": "s00000001:47",+ "enabled": true,+ "frame": {+ "h": 32,+ "w": 54,+ "x": 553,+ "y": 698+ },+ "label": "Date",+ "role": "RadioButton",+ "screenshot_frame": {+ "h": 32,+ "w": 54,+ "x": 85,+ "y": 501+ },+ "selected": false+ },+ {+ "actions": [+ "select"+ ],+ "depth": 3,+ "element_index": 48,+ "element_token": "s00000001:48",+ "enabled": true,+ "frame": {+ "h": 32,+ "w": 53,+ "x": 615,+ "y": 698+ },+ "label": "Kind",+ "role": "RadioButton",+ "screenshot_frame": {+ "h": 32,+ "w": 53,+ "x": 147,+ "y": 501+ },+ "selected": false+ },+ {+ "actions": [+ "select"+ ],+ "depth": 3,+ "element_index": 49,+ "element_token": "s00000001:49",+ "enabled": true,+ "frame": {+ "h": 32,+ "w": 89,+ "x": 484,+ "y": 734+ },+ "label": "Small icons",+ "role": "RadioButton",+ "screenshot_frame": {+ "h": 32,+ "w": 89,+ "x": 16,+ "y": 537+ },+ "selected": false+ },+ {+ "actions": [+ "select"+ ],+ "depth": 3,+ "element_index": 50,+ "element_token": "s00000001:50",+ "enabled": true,+ "frame": {+ "h": 32,+ "w": 105,+ "x": 581,+ "y": 734+ },+ "label": "Medium icons",+ "role": "RadioButton",+ "screenshot_frame": {+ "h": 32,+ "w": 105,+ "x": 113,+ "y": 537+ },+ "selected": false+ },+ {+ "actions": [+ "select"+ ],+ "depth": 3,+ "element_index": 51,+ "element_token": "s00000001:51",+ "enabled": true,+ "frame": {+ "h": 32,+ "w": 90,+ "x": 694,+ "y": 734+ },+ "label": "Large icons",+ "role": "RadioButton",+ "screenshot_frame": {+ "h": 32,+ "w": 90,+ "x": 226,+ "y": 537+ },+ "selected": false+ },+ {+ "actions": [+ "text"+ ],+ "depth": 3,+ "element_index": 52,+ "element_token": "s00000001:52",+ "enabled": true,+ "frame": {+ "h": 19,+ "w": 338,+ "x": 1044,+ "y": 243+ },+ "label": "counter=0",+ "role": "Text",+ "screenshot_frame": {+ "h": 19,+ "w": 338,+ "x": 576,+ "y": 46+ }+ },+ {+ "actions": [+ "invoke"+ ],+ "depth": 3,+ "element_index": 53,+ "element_token": "s00000001:53",+ "enabled": true,+ "frame": {+ "h": 32,+ "w": 90,+ "x": 1044,+ "y": 270+ },+ "label": "Increment",+ "role": "Button",+ "screenshot_frame": {+ "h": 32,+ "w": 90,+ "x": 576,+ "y": 73+ }+ },+ {+ "actions": [+ "invoke"+ ],+ "depth": 3,+ "element_index": 54,+ "element_token": "s00000001:54",+ "enabled": true,+ "frame": {+ "h": 32,+ "w": 90,+ "x": 1142,+ "y": 270+ },+ "label": "Reset",+ "role": "Button",+ "screenshot_frame": {+ "h": 32,+ "w": 90,+ "x": 674,+ "y": 73+ }+ },+ {+ "actions": [+ "toggle"+ ],+ "depth": 3,+ "element_index": 55,+ "element_token": "s00000001:55",+ "enabled": true,+ "frame": {+ "h": 32,+ "w": 120,+ "x": 1044,+ "y": 310+ },+ "label": "I agree",+ "role": "CheckBox",+ "screenshot_frame": {+ "h": 32,+ "w": 120,+ "x": 576,+ "y": 113+ },+ "selected": false+ },+ {+ "actions": [+ "select"+ ],+ "depth": 3,+ "element_index": 56,+ "element_token": "s00000001:56",+ "enabled": true,+ "frame": {+ "h": 32,+ "w": 62,+ "x": 1044,+ "y": 350+ },+ "label": "Small",+ "role": "RadioButton",+ "screenshot_frame": {+ "h": 32,+ "w": 62,+ "x": 576,+ "y": 153+ },+ "selected": false+ },+ {+ "actions": [+ "select"+ ],+ "depth": 3,+ "element_index": 57,+ "element_token": "s00000001:57",+ "enabled": true,+ "frame": {+ "h": 32,+ "w": 80,+ "x": 1114,+ "y": 350+ },+ "label": "Medium",+ "role": "RadioButton",+ "screenshot_frame": {+ "h": 32,+ "w": 80,+ "x": 646,+ "y": 153+ },+ "selected": false+ },+ {+ "actions": [+ "select"+ ],+ "depth": 3,+ "element_index": 58,+ "element_token": "s00000001:58",+ "enabled": true,+ "frame": {+ "h": 32,+ "w": 63,+ "x": 1202,+ "y": 350+ },+ "label": "Large",+ "role": "RadioButton",+ "screenshot_frame": {+ "h": 32,+ "w": 63,+ "x": 734,+ "y": 153+ },+ "selected": false+ },+ {+ "actions": [+ "set_value",+ "text"+ ],+ "depth": 3,+ "element_index": 59,+ "element_token": "s00000001:59",+ "enabled": true,+ "frame": {+ "h": 32,+ "w": 240,+ "x": 1044,+ "y": 390+ },+ "label": "Note",+ "role": "Edit",+ "screenshot_frame": {+ "h": 32,+ "w": 240,+ "x": 576,+ "y": 193+ }+ },+ {+ "actions": [+ "invoke"+ ],+ "depth": 3,+ "element_index": 60,+ "element_token": "s00000001:60",+ "enabled": true,+ "frame": {+ "h": 32,+ "w": 90,+ "x": 1292,+ "y": 390+ },+ "label": "Save note",+ "role": "Button",+ "screenshot_frame": {+ "h": 32,+ "w": 90,+ "x": 824,+ "y": 193+ }+ },+ {+ "actions": [+ "invoke"+ ],+ "depth": 3,+ "element_index": 61,+ "element_token": "s00000001:61",+ "enabled": true,+ "frame": {+ "h": 32,+ "w": 90,+ "x": 1044,+ "y": 430+ },+ "label": "Exit",+ "role": "Button",+ "screenshot_frame": {+ "h": 32,+ "w": 90,+ "x": 576,+ "y": 233+ }+ },+ {+ "actions": [+ "set_value"+ ],+ "depth": 1,+ "element_index": 62,+ "element_token": "s00000001:62",+ "enabled": true,+ "frame": {+ "h": 28,+ "w": 968,+ "x": 484,+ "y": 199+ },+ "label": "CuaTestHarness WinUI3 Tasks",+ "role": "TitleBar",+ "screenshot_frame": {+ "h": 28,+ "w": 968,+ "x": 16,+ "y": 2+ },+ "value": "CuaTestHarness WinUI3 Tasks"+ },+ {+ "actions": [+ "invoke",+ "expand"+ ],+ "depth": 3,+ "element_index": 63,+ "element_token": "s00000001:63",+ "enabled": true,+ "frame": {+ "h": 22,+ "w": 22,+ "x": 468,+ "y": 204+ },+ "label": "System",+ "parent_index": 62,+ "role": "MenuItem",+ "screenshot_frame": {+ "h": 22,+ "w": 22,+ "x": 0,+ "y": 7+ }+ },+ {+ "actions": [+ "invoke"+ ],+ "depth": 2,+ "element_index": 64,+ "element_token": "s00000001:64",+ "enabled": true,+ "frame": {+ "h": 30,+ "w": 47,+ "x": 1313,+ "y": 197+ },+ "label": "Minimize",+ "parent_index": 62,+ "role": "Button",+ "screenshot_frame": {+ "h": 30,+ "w": 47,+ "x": 845,+ "y": 0+ }+ },+ {+ "actions": [+ "invoke"+ ],+ "depth": 2,+ "element_index": 65,+ "element_token": "s00000001:65",+ "enabled": true,+ "frame": {+ "h": 30,+ "w": 46,+ "x": 1360,+ "y": 197+ },+ "label": "Maximize",+ "parent_index": 62,+ "role": "Button",+ "screenshot_frame": {+ "h": 30,+ "w": 46,+ "x": 892,+ "y": 0+ }+ },+ {+ "actions": [+ "invoke"+ ],+ "depth": 2,+ "element_index": 66,+ "element_token": "s00000001:66",+ "enabled": true,+ "frame": {+ "h": 30,+ "w": 47,+ "x": 1406,+ "y": 197+ },+ "label": "Close",+ "parent_index": 62,+ "role": "Button",+ "screenshot_frame": {+ "h": 30,+ "w": 47,+ "x": 938,+ "y": 0+ }+ }+ ],+ "elements_complete": false,+ "nodes_pending": 0,+ "nodes_visited": 71,+ "pid": 12832,+ "returned_element_count": 67,+ "screenshot_height": 633,+ "screenshot_mime_type": "image/png",+ "screenshot_width": 986,+ "snapshot_id": "s00000001",+ "timeout_ms": 1000,+ "total_element_count": 67,+ "truncated": false,+ "walk_elapsed_ms": 2,+ "window_bounds": {+ "height": 633,+ "width": 986,+ "x": 467,+ "y": 196+ },+ "window_id": 1377342,+ "window_title": "CuaTestHarness WinUI3 Tasks"+}diff --git a/libs/cua-driver/examples/jev-use/fixtures/native/wpf-window-state-density-12-v1.json b/libs/cua-driver/examples/jev-use/fixtures/native/wpf-window-state-density-12-v1.jsonnew file mode 100644index 0000000000..24f93a268f--- /dev/null+++ b/libs/cua-driver/examples/jev-use/fixtures/native/wpf-window-state-density-12-v1.json@@ -0,0 +1,719 @@+{+ "_fixture": {+ "sanitized": "Recorded by verify_native.py --capture-dir. Screenshot bytes, tree_markdown, local file paths, and Driver guidance notes removed.",+ "source": "CuaTestHarness task window with CUA_WPF_TASK_DENSITY=12 (initial), observed by get_window_state: Windows WPF harness (CUA_WPF_TASK_STATE), released Cua Driver 0.30.4 from the canonical install.ps1 on an Azure Windows VM (interactive RDP session)"+ },+ "app_name": "CuaTestHarness.Wpf.exe",+ "capture_id": "capture_e7b465bec67d4230804aa300873aa629_0000000000000000",+ "element_count": 29,+ "elements": [+ {+ "actions": [+ "set_value"+ ],+ "depth": 1,+ "element_index": 0,+ "element_token": "s00000001:0",+ "enabled": true,+ "frame": {+ "h": 28,+ "w": 968,+ "x": 484,+ "y": 249+ },+ "label": "CuaTestHarness WPF Tasks",+ "role": "TitleBar",+ "screenshot_frame": {+ "h": 28,+ "w": 968,+ "x": 16,+ "y": 2+ },+ "value": "CuaTestHarness WPF Tasks"+ },+ {+ "actions": [+ "invoke",+ "expand"+ ],+ "depth": 3,+ "element_index": 1,+ "element_token": "s00000001:1",+ "enabled": true,+ "frame": {+ "h": 22,+ "w": 22,+ "x": 468,+ "y": 254+ },+ "label": "System",+ "parent_index": 0,+ "role": "MenuItem",+ "screenshot_frame": {+ "h": 22,+ "w": 22,+ "x": 0,+ "y": 7+ }+ },+ {+ "actions": [+ "invoke"+ ],+ "depth": 2,+ "element_index": 2,+ "element_token": "s00000001:2",+ "enabled": true,+ "frame": {+ "h": 30,+ "w": 47,+ "x": 1313,+ "y": 247+ },+ "label": "Minimize",+ "parent_index": 0,+ "role": "Button",+ "screenshot_frame": {+ "h": 30,+ "w": 47,+ "x": 845,+ "y": 0+ }+ },+ {+ "actions": [+ "invoke"+ ],+ "depth": 2,+ "element_index": 3,+ "element_token": "s00000001:3",+ "enabled": true,+ "frame": {+ "h": 30,+ "w": 46,+ "x": 1360,+ "y": 247+ },+ "label": "Maximize",+ "parent_index": 0,+ "role": "Button",+ "screenshot_frame": {+ "h": 30,+ "w": 46,+ "x": 892,+ "y": 0+ }+ },+ {+ "actions": [+ "invoke"+ ],+ "depth": 2,+ "element_index": 4,+ "element_token": "s00000001:4",+ "enabled": true,+ "frame": {+ "h": 30,+ "w": 47,+ "x": 1406,+ "y": 247+ },+ "label": "Close",+ "parent_index": 0,+ "role": "Button",+ "screenshot_frame": {+ "h": 30,+ "w": 47,+ "x": 938,+ "y": 0+ }+ },+ {+ "actions": [+ "invoke"+ ],+ "depth": 1,+ "element_index": 5,+ "element_token": "s00000001:5",+ "enabled": true,+ "frame": {+ "h": 20,+ "w": 90,+ "x": 484,+ "y": 293+ },+ "label": "New folder",+ "role": "Button",+ "screenshot_frame": {+ "h": 20,+ "w": 90,+ "x": 16,+ "y": 46+ }+ },+ {+ "actions": [+ "invoke"+ ],+ "depth": 1,+ "element_index": 6,+ "element_token": "s00000001:6",+ "enabled": true,+ "frame": {+ "h": 20,+ "w": 90,+ "x": 580,+ "y": 293+ },+ "label": "Refresh",+ "role": "Button",+ "screenshot_frame": {+ "h": 20,+ "w": 90,+ "x": 112,+ "y": 46+ }+ },+ {+ "actions": [+ "invoke"+ ],+ "depth": 1,+ "element_index": 7,+ "element_token": "s00000001:7",+ "enabled": true,+ "frame": {+ "h": 20,+ "w": 90,+ "x": 676,+ "y": 293+ },+ "label": "Undo",+ "role": "Button",+ "screenshot_frame": {+ "h": 20,+ "w": 90,+ "x": 208,+ "y": 46+ }+ },+ {+ "actions": [+ "invoke"+ ],+ "depth": 1,+ "element_index": 8,+ "element_token": "s00000001:8",+ "enabled": true,+ "frame": {+ "h": 20,+ "w": 90,+ "x": 772,+ "y": 293+ },+ "label": "Redo",+ "role": "Button",+ "screenshot_frame": {+ "h": 20,+ "w": 90,+ "x": 304,+ "y": 46+ }+ },+ {+ "actions": [+ "invoke"+ ],+ "depth": 1,+ "element_index": 9,+ "element_token": "s00000001:9",+ "enabled": true,+ "frame": {+ "h": 20,+ "w": 90,+ "x": 868,+ "y": 293+ },+ "label": "Zoom in",+ "role": "Button",+ "screenshot_frame": {+ "h": 20,+ "w": 90,+ "x": 400,+ "y": 46+ }+ },+ {+ "actions": [+ "invoke"+ ],+ "depth": 1,+ "element_index": 10,+ "element_token": "s00000001:10",+ "enabled": true,+ "frame": {+ "h": 20,+ "w": 90,+ "x": 484,+ "y": 319+ },+ "label": "Zoom out",+ "role": "Button",+ "screenshot_frame": {+ "h": 20,+ "w": 90,+ "x": 16,+ "y": 72+ }+ },+ {+ "actions": [+ "invoke"+ ],+ "depth": 1,+ "element_index": 11,+ "element_token": "s00000001:11",+ "enabled": true,+ "frame": {+ "h": 20,+ "w": 90,+ "x": 580,+ "y": 319+ },+ "label": "Save draft",+ "role": "Button",+ "screenshot_frame": {+ "h": 20,+ "w": 90,+ "x": 112,+ "y": 72+ }+ },+ {+ "actions": [+ "invoke"+ ],+ "depth": 1,+ "element_index": 12,+ "element_token": "s00000001:12",+ "enabled": true,+ "frame": {+ "h": 20,+ "w": 95,+ "x": 676,+ "y": 319+ },+ "label": "Increase font size",+ "role": "Button",+ "screenshot_frame": {+ "h": 20,+ "w": 95,+ "x": 208,+ "y": 72+ }+ },+ {+ "actions": [+ "set_value",+ "text",+ "scroll"+ ],+ "depth": 1,+ "element_index": 13,+ "element_token": "s00000001:13",+ "enabled": true,+ "frame": {+ "h": 18,+ "w": 180,+ "x": 484,+ "y": 353+ },+ "label": "Search",+ "role": "Edit",+ "screenshot_frame": {+ "h": 18,+ "w": 180,+ "x": 16,+ "y": 106+ }+ },+ {+ "actions": [+ "toggle"+ ],+ "depth": 1,+ "element_index": 14,+ "element_token": "s00000001:14",+ "enabled": true,+ "frame": {+ "h": 15,+ "w": 76,+ "x": 484,+ "y": 379+ },+ "label": "Show ruler",+ "role": "CheckBox",+ "screenshot_frame": {+ "h": 15,+ "w": 76,+ "x": 16,+ "y": 132+ },+ "selected": false+ },+ {+ "actions": [+ "toggle"+ ],+ "depth": 1,+ "element_index": 15,+ "element_token": "s00000001:15",+ "enabled": true,+ "frame": {+ "h": 15,+ "w": 99,+ "x": 572,+ "y": 379+ },+ "label": "Show previews",+ "role": "CheckBox",+ "screenshot_frame": {+ "h": 15,+ "w": 99,+ "x": 104,+ "y": 132+ },+ "selected": false+ },+ {+ "actions": [+ "toggle"+ ],+ "depth": 1,+ "element_index": 16,+ "element_token": "s00000001:16",+ "enabled": true,+ "frame": {+ "h": 15,+ "w": 78,+ "x": 683,+ "y": 379+ },+ "label": "Word wrap",+ "role": "CheckBox",+ "screenshot_frame": {+ "h": 15,+ "w": 78,+ "x": 215,+ "y": 132+ },+ "selected": false+ },+ {+ "actions": [+ "select"+ ],+ "depth": 1,+ "element_index": 17,+ "element_token": "s00000001:17",+ "enabled": true,+ "frame": {+ "h": 15,+ "w": 45,+ "x": 484,+ "y": 406+ },+ "label": "Light",+ "role": "RadioButton",+ "screenshot_frame": {+ "h": 15,+ "w": 45,+ "x": 16,+ "y": 159+ },+ "selected": false+ },+ {+ "actions": [+ "select"+ ],+ "depth": 1,+ "element_index": 18,+ "element_token": "s00000001:18",+ "enabled": true,+ "frame": {+ "h": 15,+ "w": 44,+ "x": 541,+ "y": 406+ },+ "label": "Dark",+ "role": "RadioButton",+ "screenshot_frame": {+ "h": 15,+ "w": 44,+ "x": 73,+ "y": 159+ },+ "selected": false+ },+ {+ "actions": [+ "select"+ ],+ "depth": 1,+ "element_index": 19,+ "element_token": "s00000001:19",+ "enabled": true,+ "frame": {+ "h": 15,+ "w": 57,+ "x": 597,+ "y": 406+ },+ "label": "System",+ "role": "RadioButton",+ "screenshot_frame": {+ "h": 15,+ "w": 57,+ "x": 129,+ "y": 159+ },+ "selected": false+ },+ {+ "actions": [+ "invoke"+ ],+ "depth": 1,+ "element_index": 20,+ "element_token": "s00000001:20",+ "enabled": true,+ "frame": {+ "h": 20,+ "w": 90,+ "x": 1036,+ "y": 317+ },+ "label": "Increment",+ "role": "Button",+ "screenshot_frame": {+ "h": 20,+ "w": 90,+ "x": 568,+ "y": 70+ }+ },+ {+ "actions": [+ "invoke"+ ],+ "depth": 1,+ "element_index": 21,+ "element_token": "s00000001:21",+ "enabled": true,+ "frame": {+ "h": 20,+ "w": 90,+ "x": 1134,+ "y": 317+ },+ "label": "Reset",+ "role": "Button",+ "screenshot_frame": {+ "h": 20,+ "w": 90,+ "x": 666,+ "y": 70+ }+ },+ {+ "actions": [+ "toggle"+ ],+ "depth": 1,+ "element_index": 22,+ "element_token": "s00000001:22",+ "enabled": true,+ "frame": {+ "h": 15,+ "w": 338,+ "x": 1036,+ "y": 345+ },+ "label": "I agree",+ "role": "CheckBox",+ "screenshot_frame": {+ "h": 15,+ "w": 338,+ "x": 568,+ "y": 98+ },+ "selected": false+ },+ {+ "actions": [+ "select"+ ],+ "depth": 1,+ "element_index": 23,+ "element_token": "s00000001:23",+ "enabled": true,+ "frame": {+ "h": 15,+ "w": 48,+ "x": 1036,+ "y": 368+ },+ "label": "Small",+ "role": "RadioButton",+ "screenshot_frame": {+ "h": 15,+ "w": 48,+ "x": 568,+ "y": 121+ },+ "selected": false+ },+ {+ "actions": [+ "select"+ ],+ "depth": 1,+ "element_index": 24,+ "element_token": "s00000001:24",+ "enabled": true,+ "frame": {+ "h": 15,+ "w": 63,+ "x": 1096,+ "y": 368+ },+ "label": "Medium",+ "role": "RadioButton",+ "screenshot_frame": {+ "h": 15,+ "w": 63,+ "x": 628,+ "y": 121+ },+ "selected": false+ },+ {+ "actions": [+ "select"+ ],+ "depth": 1,+ "element_index": 25,+ "element_token": "s00000001:25",+ "enabled": true,+ "frame": {+ "h": 15,+ "w": 48,+ "x": 1171,+ "y": 368+ },+ "label": "Large",+ "role": "RadioButton",+ "screenshot_frame": {+ "h": 15,+ "w": 48,+ "x": 703,+ "y": 121+ },+ "selected": false+ },+ {+ "actions": [+ "set_value",+ "text",+ "scroll"+ ],+ "depth": 1,+ "element_index": 26,+ "element_token": "s00000001:26",+ "enabled": true,+ "frame": {+ "h": 20,+ "w": 240,+ "x": 1036,+ "y": 391+ },+ "label": "Note",+ "role": "Edit",+ "screenshot_frame": {+ "h": 20,+ "w": 240,+ "x": 568,+ "y": 144+ }+ },+ {+ "actions": [+ "invoke"+ ],+ "depth": 1,+ "element_index": 27,+ "element_token": "s00000001:27",+ "enabled": true,+ "frame": {+ "h": 20,+ "w": 90,+ "x": 1276,+ "y": 391+ },+ "label": "Save note",+ "role": "Button",+ "screenshot_frame": {+ "h": 20,+ "w": 90,+ "x": 808,+ "y": 144+ }+ },+ {+ "actions": [+ "invoke"+ ],+ "depth": 1,+ "element_index": 28,+ "element_token": "s00000001:28",+ "enabled": true,+ "frame": {+ "h": 20,+ "w": 90,+ "x": 1036,+ "y": 411+ },+ "label": "Exit",+ "role": "Button",+ "screenshot_frame": {+ "h": 20,+ "w": 90,+ "x": 568,+ "y": 164+ }+ }+ ],+ "elements_complete": false,+ "nodes_pending": 0,+ "nodes_visited": 54,+ "pid": 10800,+ "returned_element_count": 29,+ "screenshot_height": 531,+ "screenshot_mime_type": "image/png",+ "screenshot_width": 984,+ "snapshot_id": "s00000001",+ "timeout_ms": 1000,+ "total_element_count": 29,+ "truncated": false,+ "walk_elapsed_ms": 2,+ "window_bounds": {+ "height": 533,+ "width": 986,+ "x": 467,+ "y": 246+ },+ "window_id": 132166,+ "window_title": "CuaTestHarness WPF Tasks"+}diff --git a/libs/cua-driver/examples/jev-use/fixtures/native/wpf-window-state-density-24-v1.json b/libs/cua-driver/examples/jev-use/fixtures/native/wpf-window-state-density-24-v1.jsonnew file mode 100644index 0000000000..0f9fdfeb91--- /dev/null+++ b/libs/cua-driver/examples/jev-use/fixtures/native/wpf-window-state-density-24-v1.json@@ -0,0 +1,1590 @@+{+ "_fixture": {+ "sanitized": "Recorded by verify_native.py --capture-dir. Screenshot bytes, tree_markdown, local file paths, and Driver guidance notes removed.",+ "source": "CuaTestHarness task window with CUA_WPF_TASK_DENSITY=24 (initial), observed by get_window_state: Windows WPF harness (CUA_WPF_TASK_STATE), released Cua Driver 0.30.4 from the canonical install.ps1 on an Azure Windows VM (interactive RDP session)"+ },+ "app_name": "CuaTestHarness.Wpf.exe",+ "capture_id": "capture_12497fdbdc054fbaa016c1545d7d1178_0000000000000000",+ "element_count": 66,+ "elements": [+ {+ "actions": [+ "set_value"+ ],+ "depth": 1,+ "element_index": 0,+ "element_token": "s00000001:0",+ "enabled": true,+ "frame": {+ "h": 28,+ "w": 968,+ "x": 484,+ "y": 249+ },+ "label": "CuaTestHarness WPF Tasks",+ "role": "TitleBar",+ "screenshot_frame": {+ "h": 28,+ "w": 968,+ "x": 16,+ "y": 2+ },+ "value": "CuaTestHarness WPF Tasks"+ },+ {+ "actions": [+ "invoke",+ "expand"+ ],+ "depth": 3,+ "element_index": 1,+ "element_token": "s00000001:1",+ "enabled": true,+ "frame": {+ "h": 22,+ "w": 22,+ "x": 468,+ "y": 254+ },+ "label": "System",+ "parent_index": 0,+ "role": "MenuItem",+ "screenshot_frame": {+ "h": 22,+ "w": 22,+ "x": 0,+ "y": 7+ }+ },+ {+ "actions": [+ "invoke"+ ],+ "depth": 2,+ "element_index": 2,+ "element_token": "s00000001:2",+ "enabled": true,+ "frame": {+ "h": 30,+ "w": 47,+ "x": 1313,+ "y": 247+ },+ "label": "Minimize",+ "parent_index": 0,+ "role": "Button",+ "screenshot_frame": {+ "h": 30,+ "w": 47,+ "x": 845,+ "y": 0+ }+ },+ {+ "actions": [+ "invoke"+ ],+ "depth": 2,+ "element_index": 3,+ "element_token": "s00000001:3",+ "enabled": true,+ "frame": {+ "h": 30,+ "w": 46,+ "x": 1360,+ "y": 247+ },+ "label": "Maximize",+ "parent_index": 0,+ "role": "Button",+ "screenshot_frame": {+ "h": 30,+ "w": 46,+ "x": 892,+ "y": 0+ }+ },+ {+ "actions": [+ "invoke"+ ],+ "depth": 2,+ "element_index": 4,+ "element_token": "s00000001:4",+ "enabled": true,+ "frame": {+ "h": 30,+ "w": 47,+ "x": 1406,+ "y": 247+ },+ "label": "Close",+ "parent_index": 0,+ "role": "Button",+ "screenshot_frame": {+ "h": 30,+ "w": 47,+ "x": 938,+ "y": 0+ }+ },+ {+ "actions": [+ "invoke"+ ],+ "depth": 1,+ "element_index": 5,+ "element_token": "s00000001:5",+ "enabled": true,+ "frame": {+ "h": 20,+ "w": 90,+ "x": 484,+ "y": 293+ },+ "label": "New folder",+ "role": "Button",+ "screenshot_frame": {+ "h": 20,+ "w": 90,+ "x": 16,+ "y": 46+ }+ },+ {+ "actions": [+ "invoke"+ ],+ "depth": 1,+ "element_index": 6,+ "element_token": "s00000001:6",+ "enabled": true,+ "frame": {+ "h": 20,+ "w": 90,+ "x": 580,+ "y": 293+ },+ "label": "Refresh",+ "role": "Button",+ "screenshot_frame": {+ "h": 20,+ "w": 90,+ "x": 112,+ "y": 46+ }+ },+ {+ "actions": [+ "invoke"+ ],+ "depth": 1,+ "element_index": 7,+ "element_token": "s00000001:7",+ "enabled": true,+ "frame": {+ "h": 20,+ "w": 90,+ "x": 676,+ "y": 293+ },+ "label": "Undo",+ "role": "Button",+ "screenshot_frame": {+ "h": 20,+ "w": 90,+ "x": 208,+ "y": 46+ }+ },+ {+ "actions": [+ "invoke"+ ],+ "depth": 1,+ "element_index": 8,+ "element_token": "s00000001:8",+ "enabled": true,+ "frame": {+ "h": 20,+ "w": 90,+ "x": 772,+ "y": 293+ },+ "label": "Redo",+ "role": "Button",+ "screenshot_frame": {+ "h": 20,+ "w": 90,+ "x": 304,+ "y": 46+ }+ },+ {+ "actions": [+ "invoke"+ ],+ "depth": 1,+ "element_index": 9,+ "element_token": "s00000001:9",+ "enabled": true,+ "frame": {+ "h": 20,+ "w": 90,+ "x": 868,+ "y": 293+ },+ "label": "Zoom in",+ "role": "Button",+ "screenshot_frame": {+ "h": 20,+ "w": 90,+ "x": 400,+ "y": 46+ }+ },+ {+ "actions": [+ "invoke"+ ],+ "depth": 1,+ "element_index": 10,+ "element_token": "s00000001:10",+ "enabled": true,+ "frame": {+ "h": 20,+ "w": 90,+ "x": 484,+ "y": 319+ },+ "label": "Zoom out",+ "role": "Button",+ "screenshot_frame": {+ "h": 20,+ "w": 90,+ "x": 16,+ "y": 72+ }+ },+ {+ "actions": [+ "invoke"+ ],+ "depth": 1,+ "element_index": 11,+ "element_token": "s00000001:11",+ "enabled": true,+ "frame": {+ "h": 20,+ "w": 90,+ "x": 580,+ "y": 319+ },+ "label": "Save draft",+ "role": "Button",+ "screenshot_frame": {+ "h": 20,+ "w": 90,+ "x": 112,+ "y": 72+ }+ },+ {+ "actions": [+ "invoke"+ ],+ "depth": 1,+ "element_index": 12,+ "element_token": "s00000001:12",+ "enabled": true,+ "frame": {+ "h": 20,+ "w": 95,+ "x": 676,+ "y": 319+ },+ "label": "Increase font size",+ "role": "Button",+ "screenshot_frame": {+ "h": 20,+ "w": 95,+ "x": 208,+ "y": 72+ }+ },+ {+ "actions": [+ "invoke"+ ],+ "depth": 1,+ "element_index": 13,+ "element_token": "s00000001:13",+ "enabled": true,+ "frame": {+ "h": 20,+ "w": 90,+ "x": 777,+ "y": 319+ },+ "label": "Copy link",+ "role": "Button",+ "screenshot_frame": {+ "h": 20,+ "w": 90,+ "x": 309,+ "y": 72+ }+ },+ {+ "actions": [+ "invoke"+ ],+ "depth": 1,+ "element_index": 14,+ "element_token": "s00000001:14",+ "enabled": true,+ "frame": {+ "h": 20,+ "w": 90,+ "x": 873,+ "y": 319+ },+ "label": "Duplicate",+ "role": "Button",+ "screenshot_frame": {+ "h": 20,+ "w": 90,+ "x": 405,+ "y": 72+ }+ },+ {+ "actions": [+ "invoke"+ ],+ "depth": 1,+ "element_index": 15,+ "element_token": "s00000001:15",+ "enabled": true,+ "frame": {+ "h": 20,+ "w": 90,+ "x": 484,+ "y": 345+ },+ "label": "Rename",+ "role": "Button",+ "screenshot_frame": {+ "h": 20,+ "w": 90,+ "x": 16,+ "y": 98+ }+ },+ {+ "actions": [+ "invoke"+ ],+ "depth": 1,+ "element_index": 16,+ "element_token": "s00000001:16",+ "enabled": true,+ "frame": {+ "h": 20,+ "w": 90,+ "x": 580,+ "y": 345+ },+ "label": "Print preview",+ "role": "Button",+ "screenshot_frame": {+ "h": 20,+ "w": 90,+ "x": 112,+ "y": 98+ }+ },+ {+ "actions": [+ "invoke"+ ],+ "depth": 1,+ "element_index": 17,+ "element_token": "s00000001:17",+ "enabled": true,+ "frame": {+ "h": 20,+ "w": 90,+ "x": 676,+ "y": 345+ },+ "label": "Export PDF",+ "role": "Button",+ "screenshot_frame": {+ "h": 20,+ "w": 90,+ "x": 208,+ "y": 98+ }+ },+ {+ "actions": [+ "invoke"+ ],+ "depth": 1,+ "element_index": 18,+ "element_token": "s00000001:18",+ "enabled": true,+ "frame": {+ "h": 20,+ "w": 90,+ "x": 772,+ "y": 345+ },+ "label": "Import",+ "role": "Button",+ "screenshot_frame": {+ "h": 20,+ "w": 90,+ "x": 304,+ "y": 98+ }+ },+ {+ "actions": [+ "invoke"+ ],+ "depth": 1,+ "element_index": 19,+ "element_token": "s00000001:19",+ "enabled": true,+ "frame": {+ "h": 20,+ "w": 90,+ "x": 868,+ "y": 345+ },+ "label": "Bold",+ "role": "Button",+ "screenshot_frame": {+ "h": 20,+ "w": 90,+ "x": 400,+ "y": 98+ }+ },+ {+ "actions": [+ "invoke"+ ],+ "depth": 1,+ "element_index": 20,+ "element_token": "s00000001:20",+ "enabled": true,+ "frame": {+ "h": 20,+ "w": 90,+ "x": 484,+ "y": 371+ },+ "label": "Italic",+ "role": "Button",+ "screenshot_frame": {+ "h": 20,+ "w": 90,+ "x": 16,+ "y": 124+ }+ },+ {+ "actions": [+ "invoke"+ ],+ "depth": 1,+ "element_index": 21,+ "element_token": "s00000001:21",+ "enabled": true,+ "frame": {+ "h": 20,+ "w": 90,+ "x": 580,+ "y": 371+ },+ "label": "Underline",+ "role": "Button",+ "screenshot_frame": {+ "h": 20,+ "w": 90,+ "x": 112,+ "y": 124+ }+ },+ {+ "actions": [+ "invoke"+ ],+ "depth": 1,+ "element_index": 22,+ "element_token": "s00000001:22",+ "enabled": true,+ "frame": {+ "h": 20,+ "w": 90,+ "x": 676,+ "y": 371+ },+ "label": "Align left",+ "role": "Button",+ "screenshot_frame": {+ "h": 20,+ "w": 90,+ "x": 208,+ "y": 124+ }+ },+ {+ "actions": [+ "invoke"+ ],+ "depth": 1,+ "element_index": 23,+ "element_token": "s00000001:23",+ "enabled": true,+ "frame": {+ "h": 20,+ "w": 90,+ "x": 772,+ "y": 371+ },+ "label": "Align center",+ "role": "Button",+ "screenshot_frame": {+ "h": 20,+ "w": 90,+ "x": 304,+ "y": 124+ }+ },+ {+ "actions": [+ "invoke"+ ],+ "depth": 1,+ "element_index": 24,+ "element_token": "s00000001:24",+ "enabled": true,+ "frame": {+ "h": 20,+ "w": 90,+ "x": 868,+ "y": 371+ },+ "label": "Align right",+ "role": "Button",+ "screenshot_frame": {+ "h": 20,+ "w": 90,+ "x": 400,+ "y": 124+ }+ },+ {+ "actions": [+ "invoke"+ ],+ "depth": 1,+ "element_index": 25,+ "element_token": "s00000001:25",+ "enabled": true,+ "frame": {+ "h": 20,+ "w": 90,+ "x": 484,+ "y": 397+ },+ "label": "Insert table",+ "role": "Button",+ "screenshot_frame": {+ "h": 20,+ "w": 90,+ "x": 16,+ "y": 150+ }+ },+ {+ "actions": [+ "invoke"+ ],+ "depth": 1,+ "element_index": 26,+ "element_token": "s00000001:26",+ "enabled": true,+ "frame": {+ "h": 20,+ "w": 90,+ "x": 580,+ "y": 397+ },+ "label": "Insert image",+ "role": "Button",+ "screenshot_frame": {+ "h": 20,+ "w": 90,+ "x": 112,+ "y": 150+ }+ },+ {+ "actions": [+ "invoke"+ ],+ "depth": 1,+ "element_index": 27,+ "element_token": "s00000001:27",+ "enabled": true,+ "frame": {+ "h": 20,+ "w": 90,+ "x": 676,+ "y": 397+ },+ "label": "Spell check",+ "role": "Button",+ "screenshot_frame": {+ "h": 20,+ "w": 90,+ "x": 208,+ "y": 150+ }+ },+ {+ "actions": [+ "invoke"+ ],+ "depth": 1,+ "element_index": 28,+ "element_token": "s00000001:28",+ "enabled": true,+ "frame": {+ "h": 20,+ "w": 90,+ "x": 772,+ "y": 397+ },+ "label": "Word count",+ "role": "Button",+ "screenshot_frame": {+ "h": 20,+ "w": 90,+ "x": 304,+ "y": 150+ }+ },+ {+ "actions": [+ "invoke"+ ],+ "depth": 1,+ "element_index": 29,+ "element_token": "s00000001:29",+ "enabled": true,+ "frame": {+ "h": 20,+ "w": 90,+ "x": 868,+ "y": 397+ },+ "label": "Show sidebar",+ "role": "Button",+ "screenshot_frame": {+ "h": 20,+ "w": 90,+ "x": 400,+ "y": 150+ }+ },+ {+ "actions": [+ "invoke"+ ],+ "depth": 1,+ "element_index": 30,+ "element_token": "s00000001:30",+ "enabled": true,+ "frame": {+ "h": 20,+ "w": 90,+ "x": 484,+ "y": 423+ },+ "label": "Help",+ "role": "Button",+ "screenshot_frame": {+ "h": 20,+ "w": 90,+ "x": 16,+ "y": 176+ }+ },+ {+ "actions": [+ "set_value",+ "text",+ "scroll"+ ],+ "depth": 1,+ "element_index": 31,+ "element_token": "s00000001:31",+ "enabled": true,+ "frame": {+ "h": 18,+ "w": 180,+ "x": 484,+ "y": 457+ },+ "label": "Search",+ "role": "Edit",+ "screenshot_frame": {+ "h": 18,+ "w": 180,+ "x": 16,+ "y": 210+ }+ },+ {+ "actions": [+ "set_value",+ "text",+ "scroll"+ ],+ "depth": 1,+ "element_index": 32,+ "element_token": "s00000001:32",+ "enabled": true,+ "frame": {+ "h": 18,+ "w": 180,+ "x": 672,+ "y": 457+ },+ "label": "Note title",+ "role": "Edit",+ "screenshot_frame": {+ "h": 18,+ "w": 180,+ "x": 204,+ "y": 210+ }+ },+ {+ "actions": [+ "toggle"+ ],+ "depth": 1,+ "element_index": 33,+ "element_token": "s00000001:33",+ "enabled": true,+ "frame": {+ "h": 15,+ "w": 76,+ "x": 484,+ "y": 483+ },+ "label": "Show ruler",+ "role": "CheckBox",+ "screenshot_frame": {+ "h": 15,+ "w": 76,+ "x": 16,+ "y": 236+ },+ "selected": false+ },+ {+ "actions": [+ "toggle"+ ],+ "depth": 1,+ "element_index": 34,+ "element_token": "s00000001:34",+ "enabled": true,+ "frame": {+ "h": 15,+ "w": 99,+ "x": 572,+ "y": 483+ },+ "label": "Show previews",+ "role": "CheckBox",+ "screenshot_frame": {+ "h": 15,+ "w": 99,+ "x": 104,+ "y": 236+ },+ "selected": false+ },+ {+ "actions": [+ "toggle"+ ],+ "depth": 1,+ "element_index": 35,+ "element_token": "s00000001:35",+ "enabled": true,+ "frame": {+ "h": 15,+ "w": 78,+ "x": 683,+ "y": 483+ },+ "label": "Word wrap",+ "role": "CheckBox",+ "screenshot_frame": {+ "h": 15,+ "w": 78,+ "x": 215,+ "y": 236+ },+ "selected": false+ },+ {+ "actions": [+ "toggle"+ ],+ "depth": 1,+ "element_index": 36,+ "element_token": "s00000001:36",+ "enabled": true,+ "frame": {+ "h": 15,+ "w": 74,+ "x": 773,+ "y": 483+ },+ "label": "Auto-save",+ "role": "CheckBox",+ "screenshot_frame": {+ "h": 15,+ "w": 74,+ "x": 305,+ "y": 236+ },+ "selected": false+ },+ {+ "actions": [+ "toggle"+ ],+ "depth": 1,+ "element_index": 37,+ "element_token": "s00000001:37",+ "enabled": true,+ "frame": {+ "h": 15,+ "w": 91,+ "x": 859,+ "y": 483+ },+ "label": "Line numbers",+ "role": "CheckBox",+ "screenshot_frame": {+ "h": 15,+ "w": 91,+ "x": 391,+ "y": 236+ },+ "selected": false+ },+ {+ "actions": [+ "toggle"+ ],+ "depth": 1,+ "element_index": 38,+ "element_token": "s00000001:38",+ "enabled": true,+ "frame": {+ "h": 15,+ "w": 79,+ "x": 484,+ "y": 502+ },+ "label": "Dark mode",+ "role": "CheckBox",+ "screenshot_frame": {+ "h": 15,+ "w": 79,+ "x": 16,+ "y": 255+ },+ "selected": false+ },+ {+ "actions": [+ "toggle"+ ],+ "depth": 1,+ "element_index": 39,+ "element_token": "s00000001:39",+ "enabled": true,+ "frame": {+ "h": 15,+ "w": 113,+ "x": 575,+ "y": 502+ },+ "label": "Show hidden files",+ "role": "CheckBox",+ "screenshot_frame": {+ "h": 15,+ "w": 113,+ "x": 107,+ "y": 255+ },+ "selected": false+ },+ {+ "actions": [+ "toggle"+ ],+ "depth": 1,+ "element_index": 40,+ "element_token": "s00000001:40",+ "enabled": true,+ "frame": {+ "h": 15,+ "w": 102,+ "x": 700,+ "y": 502+ },+ "label": "Sync on startup",+ "role": "CheckBox",+ "screenshot_frame": {+ "h": 15,+ "w": 102,+ "x": 232,+ "y": 255+ },+ "selected": false+ },+ {+ "actions": [+ "toggle"+ ],+ "depth": 1,+ "element_index": 41,+ "element_token": "s00000001:41",+ "enabled": true,+ "frame": {+ "h": 15,+ "w": 103,+ "x": 814,+ "y": 502+ },+ "label": "Compact layout",+ "role": "CheckBox",+ "screenshot_frame": {+ "h": 15,+ "w": 103,+ "x": 346,+ "y": 255+ },+ "selected": false+ },+ {+ "actions": [+ "toggle"+ ],+ "depth": 1,+ "element_index": 42,+ "element_token": "s00000001:42",+ "enabled": true,+ "frame": {+ "h": 15,+ "w": 104,+ "x": 484,+ "y": 521+ },+ "label": "Show status bar",+ "role": "CheckBox",+ "screenshot_frame": {+ "h": 15,+ "w": 104,+ "x": 16,+ "y": 274+ },+ "selected": false+ },+ {+ "actions": [+ "toggle"+ ],+ "depth": 1,+ "element_index": 43,+ "element_token": "s00000001:43",+ "enabled": true,+ "frame": {+ "h": 15,+ "w": 145,+ "x": 600,+ "y": 521+ },+ "label": "Remember window size",+ "role": "CheckBox",+ "screenshot_frame": {+ "h": 15,+ "w": 145,+ "x": 132,+ "y": 274+ },+ "selected": false+ },+ {+ "actions": [+ "toggle"+ ],+ "depth": 1,+ "element_index": 44,+ "element_token": "s00000001:44",+ "enabled": true,+ "frame": {+ "h": 15,+ "w": 160,+ "x": 757,+ "y": 521+ },+ "label": "Check spelling as you type",+ "role": "CheckBox",+ "screenshot_frame": {+ "h": 15,+ "w": 160,+ "x": 289,+ "y": 274+ },+ "selected": false+ },+ {+ "actions": [+ "select"+ ],+ "depth": 1,+ "element_index": 45,+ "element_token": "s00000001:45",+ "enabled": true,+ "frame": {+ "h": 15,+ "w": 45,+ "x": 484,+ "y": 548+ },+ "label": "Light",+ "role": "RadioButton",+ "screenshot_frame": {+ "h": 15,+ "w": 45,+ "x": 16,+ "y": 301+ },+ "selected": false+ },+ {+ "actions": [+ "select"+ ],+ "depth": 1,+ "element_index": 46,+ "element_token": "s00000001:46",+ "enabled": true,+ "frame": {+ "h": 15,+ "w": 44,+ "x": 541,+ "y": 548+ },+ "label": "Dark",+ "role": "RadioButton",+ "screenshot_frame": {+ "h": 15,+ "w": 44,+ "x": 73,+ "y": 301+ },+ "selected": false+ },+ {+ "actions": [+ "select"+ ],+ "depth": 1,+ "element_index": 47,+ "element_token": "s00000001:47",+ "enabled": true,+ "frame": {+ "h": 15,+ "w": 57,+ "x": 597,+ "y": 548+ },+ "label": "System",+ "role": "RadioButton",+ "screenshot_frame": {+ "h": 15,+ "w": 57,+ "x": 129,+ "y": 301+ },+ "selected": false+ },+ {+ "actions": [+ "select"+ ],+ "depth": 1,+ "element_index": 48,+ "element_token": "s00000001:48",+ "enabled": true,+ "frame": {+ "h": 15,+ "w": 37,+ "x": 484,+ "y": 571+ },+ "label": "List",+ "role": "RadioButton",+ "screenshot_frame": {+ "h": 15,+ "w": 37,+ "x": 16,+ "y": 324+ },+ "selected": false+ },+ {+ "actions": [+ "select"+ ],+ "depth": 1,+ "element_index": 49,+ "element_token": "s00000001:49",+ "enabled": true,+ "frame": {+ "h": 15,+ "w": 41,+ "x": 533,+ "y": 571+ },+ "label": "Grid",+ "role": "RadioButton",+ "screenshot_frame": {+ "h": 15,+ "w": 41,+ "x": 65,+ "y": 324+ },+ "selected": false+ },+ {+ "actions": [+ "select"+ ],+ "depth": 1,+ "element_index": 50,+ "element_token": "s00000001:50",+ "enabled": true,+ "frame": {+ "h": 15,+ "w": 65,+ "x": 586,+ "y": 571+ },+ "label": "Columns",+ "role": "RadioButton",+ "screenshot_frame": {+ "h": 15,+ "w": 65,+ "x": 118,+ "y": 324+ },+ "selected": false+ },+ {+ "actions": [+ "select"+ ],+ "depth": 1,+ "element_index": 51,+ "element_token": "s00000001:51",+ "enabled": true,+ "frame": {+ "h": 15,+ "w": 51,+ "x": 484,+ "y": 594+ },+ "label": "Name",+ "role": "RadioButton",+ "screenshot_frame": {+ "h": 15,+ "w": 51,+ "x": 16,+ "y": 347+ },+ "selected": false+ },+ {+ "actions": [+ "select"+ ],+ "depth": 1,+ "element_index": 52,+ "element_token": "s00000001:52",+ "enabled": true,+ "frame": {+ "h": 15,+ "w": 44,+ "x": 547,+ "y": 594+ },+ "label": "Date",+ "role": "RadioButton",+ "screenshot_frame": {+ "h": 15,+ "w": 44,+ "x": 79,+ "y": 347+ },+ "selected": false+ },+ {+ "actions": [+ "select"+ ],+ "depth": 1,+ "element_index": 53,+ "element_token": "s00000001:53",+ "enabled": true,+ "frame": {+ "h": 15,+ "w": 42,+ "x": 603,+ "y": 594+ },+ "label": "Kind",+ "role": "RadioButton",+ "screenshot_frame": {+ "h": 15,+ "w": 42,+ "x": 135,+ "y": 347+ },+ "selected": false+ },+ {+ "actions": [+ "select"+ ],+ "depth": 1,+ "element_index": 54,+ "element_token": "s00000001:54",+ "enabled": true,+ "frame": {+ "h": 15,+ "w": 78,+ "x": 484,+ "y": 617+ },+ "label": "Small icons",+ "role": "RadioButton",+ "screenshot_frame": {+ "h": 15,+ "w": 78,+ "x": 16,+ "y": 370+ },+ "selected": false+ },+ {+ "actions": [+ "select"+ ],+ "depth": 1,+ "element_index": 55,+ "element_token": "s00000001:55",+ "enabled": true,+ "frame": {+ "h": 15,+ "w": 94,+ "x": 574,+ "y": 617+ },+ "label": "Medium icons",+ "role": "RadioButton",+ "screenshot_frame": {+ "h": 15,+ "w": 94,+ "x": 106,+ "y": 370+ },+ "selected": false+ },+ {+ "actions": [+ "select"+ ],+ "depth": 1,+ "element_index": 56,+ "element_token": "s00000001:56",+ "enabled": true,+ "frame": {+ "h": 15,+ "w": 79,+ "x": 680,+ "y": 617+ },+ "label": "Large icons",+ "role": "RadioButton",+ "screenshot_frame": {+ "h": 15,+ "w": 79,+ "x": 212,+ "y": 370+ },+ "selected": false+ },+ {+ "actions": [+ "invoke"+ ],+ "depth": 1,+ "element_index": 57,+ "element_token": "s00000001:57",+ "enabled": true,+ "frame": {+ "h": 20,+ "w": 90,+ "x": 1036,+ "y": 317+ },+ "label": "Increment",+ "role": "Button",+ "screenshot_frame": {+ "h": 20,+ "w": 90,+ "x": 568,+ "y": 70+ }+ },+ {+ "actions": [+ "invoke"+ ],+ "depth": 1,+ "element_index": 58,+ "element_token": "s00000001:58",+ "enabled": true,+ "frame": {+ "h": 20,+ "w": 90,+ "x": 1134,+ "y": 317+ },+ "label": "Reset",+ "role": "Button",+ "screenshot_frame": {+ "h": 20,+ "w": 90,+ "x": 666,+ "y": 70+ }+ },+ {+ "actions": [+ "toggle"+ ],+ "depth": 1,+ "element_index": 59,+ "element_token": "s00000001:59",+ "enabled": true,+ "frame": {+ "h": 15,+ "w": 338,+ "x": 1036,+ "y": 345+ },+ "label": "I agree",+ "role": "CheckBox",+ "screenshot_frame": {+ "h": 15,+ "w": 338,+ "x": 568,+ "y": 98+ },+ "selected": false+ },+ {+ "actions": [+ "select"+ ],+ "depth": 1,+ "element_index": 60,+ "element_token": "s00000001:60",+ "enabled": true,+ "frame": {+ "h": 15,+ "w": 48,+ "x": 1036,+ "y": 368+ },+ "label": "Small",+ "role": "RadioButton",+ "screenshot_frame": {+ "h": 15,+ "w": 48,+ "x": 568,+ "y": 121+ },+ "selected": false+ },+ {+ "actions": [+ "select"+ ],+ "depth": 1,+ "element_index": 61,+ "element_token": "s00000001:61",+ "enabled": true,+ "frame": {+ "h": 15,+ "w": 63,+ "x": 1096,+ "y": 368+ },+ "label": "Medium",+ "role": "RadioButton",+ "screenshot_frame": {+ "h": 15,+ "w": 63,+ "x": 628,+ "y": 121+ },+ "selected": false+ },+ {+ "actions": [+ "select"+ ],+ "depth": 1,+ "element_index": 62,+ "element_token": "s00000001:62",+ "enabled": true,+ "frame": {+ "h": 15,+ "w": 48,+ "x": 1171,+ "y": 368+ },+ "label": "Large",+ "role": "RadioButton",+ "screenshot_frame": {+ "h": 15,+ "w": 48,+ "x": 703,+ "y": 121+ },+ "selected": false+ },+ {+ "actions": [+ "set_value",+ "text",+ "scroll"+ ],+ "depth": 1,+ "element_index": 63,+ "element_token": "s00000001:63",+ "enabled": true,+ "frame": {+ "h": 20,+ "w": 240,+ "x": 1036,+ "y": 391+ },+ "label": "Note",+ "role": "Edit",+ "screenshot_frame": {+ "h": 20,+ "w": 240,+ "x": 568,+ "y": 144+ }+ },+ {+ "actions": [+ "invoke"+ ],+ "depth": 1,+ "element_index": 64,+ "element_token": "s00000001:64",+ "enabled": true,+ "frame": {+ "h": 20,+ "w": 90,+ "x": 1276,+ "y": 391+ },+ "label": "Save note",+ "role": "Button",+ "screenshot_frame": {+ "h": 20,+ "w": 90,+ "x": 808,+ "y": 144+ }+ },+ {+ "actions": [+ "invoke"+ ],+ "depth": 1,+ "element_index": 65,+ "element_token": "s00000001:65",+ "enabled": true,+ "frame": {+ "h": 20,+ "w": 90,+ "x": 1036,+ "y": 411+ },+ "label": "Exit",+ "role": "Button",+ "screenshot_frame": {+ "h": 20,+ "w": 90,+ "x": 568,+ "y": 164+ }+ }+ ],+ "elements_complete": false,+ "nodes_pending": 0,+ "nodes_visited": 127,+ "pid": 9388,+ "returned_element_count": 66,+ "screenshot_height": 531,+ "screenshot_mime_type": "image/png",+ "screenshot_width": 984,+ "snapshot_id": "s00000001",+ "timeout_ms": 1000,+ "total_element_count": 66,+ "truncated": false,+ "walk_elapsed_ms": 4,+ "window_bounds": {+ "height": 533,+ "width": 986,+ "x": 467,+ "y": 246+ },+ "window_id": 525386,+ "window_title": "CuaTestHarness WPF Tasks"+}diff --git a/libs/cua-driver/examples/jev-use/python/tests/test_native_density.py b/libs/cua-driver/examples/jev-use/python/tests/test_native_density.pyindex 538c3b3bcf..d1fd0687ce 100644--- a/libs/cua-driver/examples/jev-use/python/tests/test_native_density.py+++ b/libs/cua-driver/examples/jev-use/python/tests/test_native_density.py@@ -32,7 +32,7 @@ from tasks import TaskSources # noqa: E402FIXTURES = EXAMPLE / "fixtures" / "native"APPS = EXAMPLE.parents[1] / "tests" / "fixtures" / "apps"-DENSITY_HARNESSES = ("gtk3", "appkit")+DENSITY_HARNESSES = ("gtk3", "appkit", "wpf", "winui3")TARGETS = {"counter": {"ax:button:increment"},"save-note": {"ax:text_input:note:set:note", "ax:button:save-note"},@@ -96,8 +96,9 @@ class DensityFixtureTest(unittest.TestCase):expected_sizes = {("gtk3", 12): {"counter": 12, "save-note": 14, "choose-size": 12},("appkit", 12): {"counter": 14, "save-note": 16, "choose-size": 12},- ("gtk3", 24): dict.fromkeys(TASK_KINDS, 26),- ("appkit", 24): dict.fromkeys(TASK_KINDS, 26),+ ("wpf", 12): {"counter": 12, "save-note": 14, "choose-size": 12},+ ("winui3", 12): {"counter": 12, "save-note": 14, "choose-size": 12},+ **{(harness, 24): dict.fromkeys(TASK_KINDS, 26) for harness in DENSITY_HARNESSES},}for (harness, density), sizes in expected_sizes.items():payload = load(f"{harness}-window-state-density-{density}-v1.json")@@ -111,7 +112,7 @@ class DensityFixtureTest(unittest.TestCase):def test_golden_sets(self) -> None:"""The presented IDs match the golden file that the TypeScript test also checks."""golden = load("native-density-candidates-v1.json")["sets"]- self.assertEqual(len(golden), 2 * 2 * 3 * 2)+ self.assertEqual(len(golden), len(DENSITY_HARNESSES) * 2 * 3 * 2)for harness in DENSITY_HARNESSES:for density in (12, 24):payload = load(f"{harness}-window-state-density-{density}-v1.json")@@ -136,6 +137,7 @@ class DensityFixtureTest(unittest.TestCase):fixtures = {"appkit": "appkit-window-state-initial-v1.json","wpf": "wpf-window-state-initial-v1.json",+ "winui3": "winui3-window-state-initial-v1.json","gtk3": "gtk3-window-state-initial-v1.json",}for harness, name in fixtures.items():@@ -148,12 +150,13 @@ class DensityFixtureTest(unittest.TestCase):[(c.id, c.description, dict(c.arguments)) for c in ranked.candidates],[(c.id, c.description, dict(c.arguments)) for c in plain.candidates],)- payload = load("gtk3-window-state-density-12-v1.json")- for kind in TASK_KINDS:- self.assertEqual(- [c.id for c in plan_for("gtk3", kind, payload).candidates],- [c.id for c in plan_for("gtk3", kind, payload, cap_order="depth_first").candidates],- )+ for harness in ("gtk3", "wpf", "winui3"):+ payload = load(f"{harness}-window-state-density-12-v1.json")+ for kind in TASK_KINDS:+ self.assertEqual(+ [c.id for c in plan_for(harness, kind, payload).candidates],+ [c.id for c in plan_for(harness, kind, payload, cap_order="depth_first").candidates],+ )def test_relevance_uses_no_values(self) -> None:payload = load("gtk3-window-state-density-24-v1.json")@@ -220,6 +223,12 @@ class DistractorLabelTest(unittest.TestCase):assert match, namereturn re.findall(r'"([^"]+)"', match.group(1))+ @staticmethod+ def csharp_list(source: str, name: str) -> list[str]:+ match = re.search(rf"{name}\s*=\s*\{{(.*?)\}};", source, re.S)+ assert match, name+ return re.findall(r'"([^"]+)"', match.group(1))+def test_labels(self) -> None:gtk3 = self.gtk3_lists()swift = (APPS / "macos/appkit/main.swift").read_text(encoding="utf-8")@@ -232,6 +241,18 @@ class DistractorLabelTest(unittest.TestCase):self.assertEqual(list(gtk3["DISTRACTOR_FIELDS"]), self.swift_list(swift, "kDistractorFields"))self.assertIn("12: (8, 3, 1, 1), 24: (26, 12, 4, 2)", swift)self.assertEqual(gtk3["DENSITY_COUNTS"], {12: (8, 3, 1, 1), 24: (26, 12, 4, 2)})+ for harness in ("wpf", "winui3"):+ with self.subTest(harness=harness):+ source = (APPS / f"windows/{harness}/TaskWindow.cs").read_text(encoding="utf-8")+ self.assertEqual(list(gtk3["DISTRACTOR_BUTTONS"]), self.csharp_list(source, "DistractorButtons"))+ self.assertEqual(list(gtk3["DISTRACTOR_CHECKBOXES"]), self.csharp_list(source, "DistractorCheckboxes"))+ self.assertEqual(+ [label for group in gtk3["DISTRACTOR_RADIO_GROUPS"] for label in group],+ self.csharp_list(source, "DistractorRadioGroups"),+ )+ self.assertEqual(list(gtk3["DISTRACTOR_FIELDS"]), self.csharp_list(source, "DistractorFields"))+ self.assertIn("[12] = (8, 3, 1, 1), [24] = (26, 12, 4, 2)", source)+ self.assertIn(f'"CUA_{harness.upper()}_TASK_DENSITY"', source)labels = [*gtk3["DISTRACTOR_BUTTONS"], *gtk3["DISTRACTOR_CHECKBOXES"], *gtk3["DISTRACTOR_FIELDS"],*(label for group in gtk3["DISTRACTOR_RADIO_GROUPS"] for label in group),diff --git a/libs/cua-driver/examples/jev-use/typescript/native_density.test.ts b/libs/cua-driver/examples/jev-use/typescript/native_density.test.tsindex 13a11306b6..68f46049f0 100644--- a/libs/cua-driver/examples/jev-use/typescript/native_density.test.ts+++ b/libs/cua-driver/examples/jev-use/typescript/native_density.test.ts@@ -1,6 +1,7 @@// Larger candidate sets and relevance capping (#4312). Mirrors// python/tests/test_native_density.py; the fixtures are get_window_state-// results recorded from the GTK3 harness with CUA_GTK3_TASK_DENSITY set.+// results recorded from the AppKit, GTK3, WPF, and WinUI3 harnesses with+// CUA_<HARNESS>_TASK_DENSITY set.import assert from 'node:assert/strict';import { readFileSync } from 'node:fs';import test from 'node:test';@@ -67,8 +68,9 @@ test('compose keeps relevant candidates over the cap in element order', () => {test('density fixtures reproduce the golden candidate sets', () => {const golden = fixture('native-density-candidates-v1.json').sets;- assert.equal(Object.keys(golden).length, 24);- for (const harness of ['gtk3', 'appkit']) {+ const harnesses = ['gtk3', 'appkit', 'wpf', 'winui3'];+ assert.equal(Object.keys(golden).length, harnesses.length * 2 * 3 * 2);+ for (const harness of harnesses) {for (const density of [12, 24]) {const payload = fixture(`${harness}-window-state-density-${density}-v1.json`);for (const kind of KINDS) {diff --git a/libs/cua-driver/examples/jev-use/verify_native.py b/libs/cua-driver/examples/jev-use/verify_native.pyindex bcad457327..1b786ba2a8 100644--- a/libs/cua-driver/examples/jev-use/verify_native.py+++ b/libs/cua-driver/examples/jev-use/verify_native.py@@ -12,7 +12,7 @@ itself and checks it against the task's expected end state. The runners' ownoutcome events are not the oracle. Evidence (redacted JSONL logs plus``summary.json``) goes to a new ``--output-dir``. ``--capture-dir`` alsorecords sanitized ``get_window_state`` fixtures before and after each run.-``--density 12`` or ``24`` launches the AppKit or GTK3 harness with+``--density 12`` or ``24`` launches the AppKit, WPF, WinUI3, or GTK3 harness with``CUA_<HARNESS>_TASK_DENSITY`` set, which adds benign distractor controlsbefore the task controls; the harness confirms the density in its state file(#4312). ``measure_native.py`` turns the runner logs into an accuracy table.@@ -68,10 +68,12 @@ HARNESSES = {"wpf": Harness(TEST_APPS / "harness-wpf/CuaTestHarness.Wpf.exe", "","CuaTestHarness WPF Tasks", "cua.wpf_task_state_v1", "CUA_WPF_TASK_STATE",+ density_env="CUA_WPF_TASK_DENSITY",),"winui3": Harness(TEST_APPS / "harness-winui3/CuaTestHarness.WinUI3.exe", "","CuaTestHarness WinUI3 Tasks", "cua.winui3_task_state_v1", "CUA_WINUI3_TASK_STATE",+ density_env="CUA_WINUI3_TASK_DENSITY",),"gtk3": Harness(TEST_APPS / "harness-gtk3/CuaTestHarness.Gtk3", "",@@ -310,7 +312,7 @@ def main() -> None:parser.add_argument("--capture-dir", type=Path, help="also record sanitized window-state fixtures")parser.add_argument("--density", type=int, choices=DENSITIES,- help="add the harness's benign distractor controls (AppKit and GTK3 only)",+ help="add the harness's benign distractor controls (every harness except canvas)",)parser.add_argument("--output-dir", type=Path, required=True, help="new evidence directory")args = parser.parse_args()diff --git a/libs/cua-driver/tests/fixtures/apps/windows/winui3/App.xaml.cs b/libs/cua-driver/tests/fixtures/apps/windows/winui3/App.xaml.csindex a278da9641..0aa6b06bed 100644--- a/libs/cua-driver/tests/fixtures/apps/windows/winui3/App.xaml.cs+++ b/libs/cua-driver/tests/fixtures/apps/windows/winui3/App.xaml.cs@@ -10,13 +10,14 @@ public partial class App : Applicationpublic App() { InitializeComponent(); }// Ordinary launches show MainWindow exactly as before.- // CUA_WINUI3_TASK_STATE selects the opt-in jev-use task window.+ // CUA_WINUI3_TASK_STATE selects the opt-in jev-use task window;+ // CUA_WINUI3_TASK_DENSITY adds its distractor controls (#4312).protected override void OnLaunched(LaunchActivatedEventArgs args){var taskState = Environment.GetEnvironmentVariable(TaskWindow.StateEnv);_window = string.IsNullOrWhiteSpace(taskState)? new MainWindow()- : new TaskWindow(taskState);+ : new TaskWindow(taskState, TaskWindow.DensityFromEnvironment());_window.Activate();}}diff --git a/libs/cua-driver/tests/fixtures/apps/windows/winui3/TaskWindow.cs b/libs/cua-driver/tests/fixtures/apps/windows/winui3/TaskWindow.csindex 160c98d28d..6126601cf1 100644--- a/libs/cua-driver/tests/fixtures/apps/windows/winui3/TaskWindow.cs+++ b/libs/cua-driver/tests/fixtures/apps/windows/winui3/TaskWindow.cs@@ -16,11 +16,60 @@ namespace CuaTestHarness.WinUI3;/// every control is on screen, and atomically rewrites an app-owned JSON state/// file on every change. The jev-use task oracle reads that file; it never/// depends on Cua Driver output. Ordinary launches never create this window.+/// CUA_WINUI3_TASK_DENSITY=12 or 24 (task mode only) also adds benign+/// distractor controls in a panel before the task controls, for measuring+/// jev-use accuracy at larger candidate sets (#4312)./// </summary>public sealed class TaskWindow : Window{public const string StateEnv = "CUA_WINUI3_TASK_STATE";private const string StateSchema = "cua.winui3_task_state_v1";+ public const string DensityEnv = "CUA_WINUI3_TASK_DENSITY";++ // Opt-in distractor controls (#4312). The labels are benign (no+ // risky-action phrase) and match the AppKit, GTK3, and WPF harnesses,+ // so candidate IDs agree across platforms. Some are unrelated to every+ // task; some are close to a task control ("Save draft", "Increase font+ // size", "Note title", "Large icons"). Density 12 uses the first entries+ // of each list; density 24 uses all of them.+ private static readonly string[] DistractorButtons =+ {+ "New folder", "Refresh", "Undo", "Redo", "Zoom in", "Zoom out", "Save draft",+ "Increase font size", "Copy link", "Duplicate", "Rename", "Print preview", "Export PDF",+ "Import", "Bold", "Italic", "Underline", "Align left", "Align center", "Align right",+ "Insert table", "Insert image", "Spell check", "Word count", "Show sidebar", "Help",+ };+ private static readonly string[] DistractorCheckboxes =+ {+ "Show ruler", "Show previews", "Word wrap", "Auto-save", "Line numbers", "Dark mode",+ "Show hidden files", "Sync on startup", "Compact layout", "Show status bar",+ "Remember window size", "Check spelling as you type",+ };+ private static readonly string[][] DistractorRadioGroups =+ {+ new[] { "Light", "Dark", "System" },+ new[] { "List", "Grid", "Columns" },+ new[] { "Name", "Date", "Kind" },+ new[] { "Small icons", "Medium icons", "Large icons" },+ };+ private static readonly string[] DistractorFields = { "Search", "Note title" };+ // density -> (buttons, checkboxes, radio groups, text fields)+ private static readonly Dictionary<int, (int, int, int, int)> DensityCounts = new() { [12] = (8, 3, 1, 1), [24] = (26, 12, 4, 2) };++ /// <summary>+ /// The opt-in distractor density: null, 12, or 24. Anything else is a+ /// launch error, so a measurement never runs at an unintended density.+ /// </summary>+ public static int? DensityFromEnvironment()+ {+ var raw = Environment.GetEnvironmentVariable(DensityEnv)?.Trim();+ if (string.IsNullOrEmpty(raw)) return null;+ if (int.TryParse(raw, out var density) && DensityCounts.ContainsKey(density)) return density;+ Console.Error.WriteLine($"{DensityEnv} must be 12 or 24, not {raw}");+ Environment.Exit(2);+ return null;+ }+private readonly string _statePath;private readonly TextBlock _counterLabel = new() { Text = "counter=0" };@@ -30,10 +79,13 @@ public sealed class TaskWindow : Windowprivate string _size = "none";private string? _savedNote;private int _sequence;+ private readonly int? _density;+ private int _distractorActions;- public TaskWindow(string statePath)+ public TaskWindow(string statePath, int? density = null){_statePath = statePath;+ _density = density;Title = "CuaTestHarness WinUI3 Tasks";var root = new StackPanel { Padding = new Thickness(16), Spacing = 8 };@@ -70,13 +122,84 @@ public sealed class TaskWindow : Windowroot.Children.Add(noteRow);root.Children.Add(MakeButton("Exit", "btn-exit", () => Application.Current.Exit()));- Content = root;+ if (density is int value)+ {+ // Before the task controls, as a sidebar precedes the content in a+ // typical document app's depth-first order.+ var layout = new StackPanel { Orientation = Orientation.Horizontal };+ layout.Children.Add(DistractorPanel(value));+ layout.Children.Add(root);+ Content = layout;+ }+ else+ {+ Content = root;+ }PlaceWindow();Publish();}private static StackPanel Row() => new() { Orientation = Orientation.Horizontal, Spacing = 8 };+ /// <summary>+ /// Benign distractor controls for density mode (#4312): rows of compact+ /// buttons, labeled text fields, checkboxes, and radio groups, sized so the+ /// whole window fits a 1024x768 display. Each radio row is its own group,+ /// and no option starts selected.+ /// </summary>+ private StackPanel DistractorPanel(int density)+ {+ var (buttons, checkboxes, groups, fields) = DensityCounts[density];+ var panel = new StackPanel { Padding = new Thickness(16, 16, 0, 16), Spacing = 4, Width = 560 };+ StackPanel? row = null;+ for (var index = 0; index < buttons; index++)+ {+ if (index % 4 == 0) panel.Children.Add(row = new StackPanel { Orientation = Orientation.Horizontal, Spacing = 6 });+ var button = new Button+ {+ Content = DistractorButtons[index], FontSize = 12, MinWidth = 0, Padding = new Thickness(8, 3, 8, 4),+ };+ button.Click += (_, _) => OnDistractor();+ row!.Children.Add(button);+ }+ var fieldRow = Row();+ for (var index = 0; index < fields; index++)+ {+ // A UIA Name and no placeholder, like the Note field.+ var field = new TextBox { Width = 180, FontSize = 12 };+ AutomationProperties.SetName(field, DistractorFields[index]);+ field.TextChanged += (_, _) => OnDistractor();+ fieldRow.Children.Add(field);+ }+ panel.Children.Add(fieldRow);+ for (var index = 0; index < checkboxes; index++)+ {+ if (index % 3 == 0) panel.Children.Add(row = new StackPanel { Orientation = Orientation.Horizontal, Spacing = 6 });+ var check = new CheckBox { Content = DistractorCheckboxes[index], FontSize = 12, MinWidth = 0 };+ check.Checked += (_, _) => OnDistractor();+ check.Unchecked += (_, _) => OnDistractor();+ row!.Children.Add(check);+ }+ for (var group = 0; group < groups; group++)+ {+ var radioRow = Row();+ foreach (var title in DistractorRadioGroups[group])+ {+ var radio = new RadioButton { Content = title, GroupName = $"distractor-{group}", FontSize = 12, MinWidth = 0 };+ radio.Checked += (_, _) => OnDistractor();+ radioRow.Children.Add(radio);+ }+ panel.Children.Add(radioRow);+ }+ return panel;+ }++ private void OnDistractor()+ {+ _distractorActions++;+ Publish();+ }+private Button MakeButton(string label, string automationId, Action onClick){var button = new Button { Content = label, MinWidth = 90 };@@ -92,8 +215,9 @@ public sealed class TaskWindow : Windowvar hwnd = WinRT.Interop.WindowNative.GetWindowHandle(this);var scale = GetDpiForWindow(hwnd) / 96.0;if (scale <= 0) scale = 1.0;- var width = (int)(520 * scale);- var height = (int)(400 * scale);+ // The distractor panel widens and heightens the window (#4312).+ var width = (int)((_density is null ? 520 : 1000) * scale);+ var height = (int)((_density is null ? 400 : 640) * scale);var work = DisplayArea.GetFromWindowId(AppWindow.Id, DisplayAreaFallback.Primary).WorkArea;AppWindow.MoveAndResize(new Windows.Graphics.RectInt32(work.X + Math.Max(0, (work.Width - width) / 2),@@ -119,6 +243,11 @@ public sealed class TaskWindow : Window["size"] = _size,["note_saved"] = _savedNote,};+ if (_density is int density)+ {+ state["density"] = density;+ state["distractor_actions"] = _distractorActions;+ }try{var temporaryPath = $"{_statePath}.{Environment.ProcessId}.tmp";diff --git a/libs/cua-driver/tests/fixtures/apps/windows/wpf/App.xaml.cs b/libs/cua-driver/tests/fixtures/apps/windows/wpf/App.xaml.csindex 10f23e96ec..b1c5f5a5ce 100644--- a/libs/cua-driver/tests/fixtures/apps/windows/wpf/App.xaml.cs+++ b/libs/cua-driver/tests/fixtures/apps/windows/wpf/App.xaml.cs@@ -6,13 +6,14 @@ namespace CuaTestHarness.Wpf;public partial class App : Application{// Ordinary launches show MainWindow exactly as before (it was the- // StartupUri). CUA_WPF_TASK_STATE selects the opt-in jev-use task window.+ // StartupUri). CUA_WPF_TASK_STATE selects the opt-in jev-use task window;+ // CUA_WPF_TASK_DENSITY adds its distractor controls (#4312).private void OnStartup(object sender, StartupEventArgs e){var taskState = Environment.GetEnvironmentVariable(TaskWindow.StateEnv);Window window = string.IsNullOrWhiteSpace(taskState)? new MainWindow()- : new TaskWindow(taskState);+ : new TaskWindow(taskState, TaskWindow.DensityFromEnvironment());MainWindow = window;window.Show();}diff --git a/libs/cua-driver/tests/fixtures/apps/windows/wpf/TaskWindow.cs b/libs/cua-driver/tests/fixtures/apps/windows/wpf/TaskWindow.csindex 8373d517da..e511d72770 100644--- a/libs/cua-driver/tests/fixtures/apps/windows/wpf/TaskWindow.cs+++ b/libs/cua-driver/tests/fixtures/apps/windows/wpf/TaskWindow.cs@@ -15,11 +15,59 @@ namespace CuaTestHarness.Wpf;/// control is on screen, and atomically rewrites an app-owned JSON state file/// on every change. The jev-use task oracle reads that file; it never depends/// on Cua Driver output. Ordinary launches never create this window.+/// CUA_WPF_TASK_DENSITY=12 or 24 (task mode only) also adds benign distractor+/// controls in a panel before the task controls, for measuring jev-use+/// accuracy at larger candidate sets (#4312)./// </summary>public sealed class TaskWindow : Window{public const string StateEnv = "CUA_WPF_TASK_STATE";private const string StateSchema = "cua.wpf_task_state_v1";+ public const string DensityEnv = "CUA_WPF_TASK_DENSITY";++ // Opt-in distractor controls (#4312). The labels are benign (no+ // risky-action phrase) and match the AppKit, GTK3, and WinUI3 harnesses,+ // so candidate IDs agree across platforms. Some are unrelated to every+ // task; some are close to a task control ("Save draft", "Increase font+ // size", "Note title", "Large icons"). Density 12 uses the first entries+ // of each list; density 24 uses all of them.+ private static readonly string[] DistractorButtons =+ {+ "New folder", "Refresh", "Undo", "Redo", "Zoom in", "Zoom out", "Save draft",+ "Increase font size", "Copy link", "Duplicate", "Rename", "Print preview", "Export PDF",+ "Import", "Bold", "Italic", "Underline", "Align left", "Align center", "Align right",+ "Insert table", "Insert image", "Spell check", "Word count", "Show sidebar", "Help",+ };+ private static readonly string[] DistractorCheckboxes =+ {+ "Show ruler", "Show previews", "Word wrap", "Auto-save", "Line numbers", "Dark mode",+ "Show hidden files", "Sync on startup", "Compact layout", "Show status bar",+ "Remember window size", "Check spelling as you type",+ };+ private static readonly string[][] DistractorRadioGroups =+ {+ new[] { "Light", "Dark", "System" },+ new[] { "List", "Grid", "Columns" },+ new[] { "Name", "Date", "Kind" },+ new[] { "Small icons", "Medium icons", "Large icons" },+ };+ private static readonly string[] DistractorFields = { "Search", "Note title" };+ // density -> (buttons, checkboxes, radio groups, text fields)+ private static readonly Dictionary<int, (int, int, int, int)> DensityCounts = new() { [12] = (8, 3, 1, 1), [24] = (26, 12, 4, 2) };++ /// <summary>+ /// The opt-in distractor density: null, 12, or 24. Anything else is a+ /// launch error, so a measurement never runs at an unintended density.+ /// </summary>+ public static int? DensityFromEnvironment()+ {+ var raw = Environment.GetEnvironmentVariable(DensityEnv)?.Trim();+ if (string.IsNullOrEmpty(raw)) return null;+ if (int.TryParse(raw, out var density) && DensityCounts.ContainsKey(density)) return density;+ Console.Error.WriteLine($"{DensityEnv} must be 12 or 24, not {raw}");+ Environment.Exit(2);+ return null;+ }private readonly string _statePath;private readonly TextBlock _counterLabel = new() { Text = "counter=0" };@@ -29,14 +77,18 @@ public sealed class TaskWindow : Windowprivate string _size = "none";private string? _savedNote;private int _sequence;+ private readonly int? _density;+ private int _distractorActions;- public TaskWindow(string statePath)+ public TaskWindow(string statePath, int? density = null){_statePath = statePath;+ _density = density;Title = "CuaTestHarness WPF Tasks";AutomationProperties.SetAutomationId(this, "wnd-tasks");- Width = 480;- Height = 360;+ // The distractor panel widens the window; every control stays on screen.+ Width = density is null ? 480 : 1000;+ Height = density is null ? 360 : 540;WindowStartupLocation = WindowStartupLocation.CenterScreen;var root = new StackPanel { Margin = new Thickness(16) };@@ -73,7 +125,75 @@ public sealed class TaskWindow : Windowroot.Children.Add(noteRow);root.Children.Add(MakeButton("Exit", "btn-exit", () => Application.Current.Shutdown(0)));- Content = root;+ if (density is int value)+ {+ // Before the task controls, as a sidebar precedes the content in a+ // typical document app's depth-first order.+ var layout = new StackPanel { Orientation = Orientation.Horizontal };+ layout.Children.Add(DistractorPanel(value));+ layout.Children.Add(root);+ Content = layout;+ }+ else+ {+ Content = root;+ }+ Publish();+ }++ /// <summary>+ /// Benign distractor controls for density mode (#4312): a grid of buttons,+ /// labeled text fields, checkboxes, and radio groups. Each radio row is+ /// its own group, and no option starts selected.+ /// </summary>+ private StackPanel DistractorPanel(int density)+ {+ var (buttons, checkboxes, groups, fields) = DensityCounts[density];+ var panel = new StackPanel { Margin = new Thickness(16), Width = 520 };+ var buttonGrid = new WrapPanel();+ for (var index = 0; index < buttons; index++)+ {+ var button = new Button { Content = DistractorButtons[index], MinWidth = 90, Margin = new Thickness(0, 0, 6, 6) };+ button.Click += (_, _) => OnDistractor();+ buttonGrid.Children.Add(button);+ }+ panel.Children.Add(buttonGrid);+ var fieldRow = Row();+ for (var index = 0; index < fields; index++)+ {+ // A UIA Name and no placeholder, like the Note field.+ var field = new TextBox { Width = 180, Margin = new Thickness(0, 0, 8, 0) };+ AutomationProperties.SetName(field, DistractorFields[index]);+ field.TextChanged += (_, _) => OnDistractor();+ fieldRow.Children.Add(field);+ }+ panel.Children.Add(fieldRow);+ var checkGrid = new WrapPanel { Margin = new Thickness(0, 8, 0, 0) };+ for (var index = 0; index < checkboxes; index++)+ {+ var check = new CheckBox { Content = DistractorCheckboxes[index], Margin = new Thickness(0, 0, 12, 4) };+ check.Checked += (_, _) => OnDistractor();+ check.Unchecked += (_, _) => OnDistractor();+ checkGrid.Children.Add(check);+ }+ panel.Children.Add(checkGrid);+ for (var group = 0; group < groups; group++)+ {+ var radioRow = Row();+ foreach (var title in DistractorRadioGroups[group])+ {+ var radio = new RadioButton { Content = title, GroupName = $"distractor-{group}", Margin = new Thickness(0, 0, 12, 0) };+ radio.Checked += (_, _) => OnDistractor();+ radioRow.Children.Add(radio);+ }+ panel.Children.Add(radioRow);+ }+ return panel;+ }++ private void OnDistractor()+ {+ _distractorActions++;Publish();}@@ -108,6 +228,11 @@ public sealed class TaskWindow : Window["size"] = _size,["note_saved"] = _savedNote,};+ if (_density is int density)+ {+ state["density"] = density;+ state["distractor_actions"] = _distractorActions;+ }try{var temporaryPath = $"{_statePath}.{Environment.ProcessId}.tmp";diff --git a/rfcs/4268-jev-use-native-candidates.md b/rfcs/4268-jev-use-native-candidates.mdindex 12c93a4093..94ac4be451 100644--- a/rfcs/4268-jev-use-native-candidates.md+++ b/rfcs/4268-jev-use-native-candidates.md@@ -19,6 +19,7 @@ implementation:- https://github.com/trycua/cua/pull/4324- https://github.com/trycua/cua/pull/4329- https://github.com/trycua/cua/pull/4330+ - https://github.com/trycua/cua/pull/4354supersedes:superseded_by:---@@ -765,7 +766,8 @@ TypeScript parity in the same change.Is a task-supplied subtree anchor also needed, given that `query` matching issubstring-only?- **Resolved: accuracy at scale.** Jev and S1 chose correctly in every live- decision at about 4, 12, and 24 candidates on macOS and Linux. The composer+ decision at about 4, 12, and 24 candidates on macOS, Windows (WPF and+ WinUI3), and Linux, with both the Python and TypeScript runners. The composerranks by task relevance before capping and keeps depth-first presentationorder; strict depth-first capping dropped every task control behind thedistractors and led both models to press look-alike controls (see the@@ -953,8 +955,8 @@ run verified by the harness's own state file):"Increase font size", "Note title", "Large icons"). Density 12 gives 11 to 16candidates. Density 24 makes 28 to 33 eligible, so the cap binds at 24 plus`reobserve` and `abstain`. Ordinary launches and the existing task mode are- unchanged. WPF and WinUI3 have no density mode yet, so Windows was not- measured.+ unchanged. [#4354](https://github.com/trycua/cua/pull/4354) later added+ the same mode to WPF and WinUI3 (see below).- The runners log each decision's due steps (`expected_ids`) and whether theset offered one. `measure_native.py` scores those logs, or replays capturedfixtures offline, into a table by set size, including the full set with the@@ -1007,7 +1009,85 @@ run verified by the harness's own state file):- CI: jev-use now also runs the AppKit and GTK3 tasks at density 24 with themock provider.-All acceptance criteria have shipped, so this RFC is `completed`. The TypeScript-runners share the composer and the logging, and golden candidate sets pin-Python and TypeScript to the same result, but the live accuracy rows above ran-the Python runners only.+All acceptance criteria have shipped, so this RFC is `completed`. The live+accuracy rows above ran the Python runners only; the next section adds Windows+and the TypeScript runners.++Accuracy on Windows and with the TypeScript runners,+[#4354](https://github.com/trycua/cua/pull/4354) for+[#4312](https://github.com/trycua/cua/issues/4312) (released Driver 0.30.4+from the canonical installers, `cua-s1-4b-0.2@16818868`, runners and harnesses+at `4fc8e7321`; each run verified by the harness's own state file):++- The WPF and WinUI3 task windows gained `CUA_WPF_TASK_DENSITY` and+ `CUA_WINUI3_TASK_DENSITY` (`12` or `24`, task mode only), with the same+ distractor labels and counts as AppKit and GTK3 in a panel before the task+ controls. The candidate sets match GTK3: 12, 14, and 12 candidates at+ density 12, and 26 at density 24, where the cap drops 4 to 7 candidates.+ The window stays within a 1024x768 display. Ordinary launches and the+ existing task mode are unchanged. CI: jev-use now runs the WPF and WinUI3+ tasks at density 24 with the mock provider too.+- Live, recorded (the first repetition of every row has a video): 5+ repetitions × 3 tasks × 3 densities × 2 providers for each harness and+ language. Windows ran both runners on an Azure VM in an interactive RDP+ session. macOS (Lume guest) and Linux (Azure VM, X11 with XFCE) ran the+ TypeScript runners. All 540 runs passed and all 1,260 decisions were correct.+ Three Windows runs failed before any decision (twice the harness did not+ publish its initial state within 10 seconds, and once the oracle read the+ state file while the harness was replacing it) and passed on rerun:++ | Provider | Size | Harness | Runner | Candidates | Decisions | Correct | Confidence median / min | Decide median / p95 |+ | -------- | ---- | ------- | ------ | ---------- | --------- | ------- | ----------------------- | ------------------- |+ | Jev | ~4 | WPF | Python | 4–6 | 35 | 35 | 0.99 / 0.95 | 196 / 579 ms |+ | Jev | ~4 | WPF | TS | 4–6 | 35 | 35 | 0.99 / 0.93 | 193 / 306 ms |+ | Jev | ~4 | WinUI3 | Python | 4–6 | 35 | 35 | 0.99 / 0.94 | 192 / 533 ms |+ | Jev | ~4 | WinUI3 | TS | 4–6 | 35 | 35 | 0.99 / 0.93 | 196 / 338 ms |+ | Jev | ~4 | AppKit | TS | 5–7 | 35 | 35 | 0.99 / 0.93 | 222 / 294 ms |+ | Jev | ~4 | GTK3 | TS | 4–6 | 35 | 35 | 0.99 / 0.93 | 200 / 285 ms |+ | Jev | ~12 | WPF | Python | 11–14 | 35 | 35 | 1.00 / 0.95 | 216 / 550 ms |+ | Jev | ~12 | WPF | TS | 11–14 | 35 | 35 | 0.99 / 0.94 | 198 / 441 ms |+ | Jev | ~12 | WinUI3 | Python | 11–14 | 35 | 35 | 1.00 / 0.95 | 231 / 587 ms |+ | Jev | ~12 | WinUI3 | TS | 11–14 | 35 | 35 | 0.99 / 0.95 | 194 / 368 ms |+ | Jev | ~12 | AppKit | TS | 11–16 | 35 | 35 | 0.99 / 0.94 | 234 / 289 ms |+ | Jev | ~12 | GTK3 | TS | 11–14 | 35 | 35 | 0.99 / 0.94 | 181 / 323 ms |+ | Jev | ~24 | WPF | Python | 26 | 35 | 35 | 0.99 / 0.95 | 244 / 566 ms |+ | Jev | ~24 | WPF | TS | 26 | 35 | 35 | 0.99 / 0.94 | 206 / 312 ms |+ | Jev | ~24 | WinUI3 | Python | 26 | 35 | 35 | 0.99 / 0.95 | 202 / 553 ms |+ | Jev | ~24 | WinUI3 | TS | 26 | 35 | 35 | 0.99 / 0.93 | 191 / 310 ms |+ | Jev | ~24 | AppKit | TS | 26 | 35 | 35 | 0.99 / 0.93 | 244 / 308 ms |+ | Jev | ~24 | GTK3 | TS | 26 | 35 | 35 | 0.99 / 0.93 | 165 / 304 ms |+ | S1 | ~4 | WPF | Python | 4–6 | 35 | 35 | 0.92 / 0.70 | 3.5 / 9.3 s |+ | S1 | ~4 | WPF | TS | 4–6 | 35 | 35 | 0.91 / 0.70 | 3.2 / 7.5 s |+ | S1 | ~4 | WinUI3 | Python | 4–6 | 35 | 35 | 0.91 / 0.71 | 3.6 / 6.9 s |+ | S1 | ~4 | WinUI3 | TS | 4–6 | 35 | 35 | 0.91 / 0.70 | 3.4 / 6.9 s |+ | S1 | ~4 | AppKit | TS | 5–7 | 35 | 35 | 0.83 / 0.65 | 3.6 / 8.0 s |+ | S1 | ~4 | GTK3 | TS | 4–6 | 35 | 35 | 0.91 / 0.70 | 4.8 / 8.9 s |+ | S1 | ~12 | WPF | Python | 11–14 | 35 | 35 | 0.88 / 0.59 | 5.8 / 9.5 s |+ | S1 | ~12 | WPF | TS | 11–14 | 35 | 35 | 0.87 / 0.59 | 6.3 / 8.4 s |+ | S1 | ~12 | WinUI3 | Python | 11–14 | 35 | 35 | 0.87 / 0.60 | 4.1 / 7.5 s |+ | S1 | ~12 | WinUI3 | TS | 11–14 | 35 | 35 | 0.87 / 0.59 | 4.0 / 7.5 s |+ | S1 | ~12 | AppKit | TS | 11–16 | 35 | 35 | 0.90 / 0.60 | 4.7 / 9.6 s |+ | S1 | ~12 | GTK3 | TS | 11–14 | 35 | 35 | 0.88 / 0.57 | 6.1 / 11.9 s |+ | S1 | ~24 | WPF | Python | 26 | 35 | 35 | 0.81 / 0.69 | 9.0 / 12.9 s |+ | S1 | ~24 | WPF | TS | 26 | 35 | 35 | 0.81 / 0.69 | 8.8 / 10.9 s |+ | S1 | ~24 | WinUI3 | Python | 26 | 35 | 35 | 0.81 / 0.69 | 6.8 / 10.6 s |+ | S1 | ~24 | WinUI3 | TS | 26 | 35 | 35 | 0.81 / 0.69 | 6.7 / 10.5 s |+ | S1 | ~24 | AppKit | TS | 26 | 35 | 35 | 0.81 / 0.68 | 7.4 / 11.8 s |+ | S1 | ~24 | GTK3 | TS | 26 | 35 | 35 | 0.81 / 0.65 | 7.3 / 13.6 s |++ Every TypeScript row is fully correct, like the Python rows, and on each+ harness its median confidence is within 0.01 of the Python row's. S1 decide times+ include queueing: the macOS, Linux, and Windows runs and an offline replay+ shared the one S1 service. On Windows the Jev p95 is higher with the Python+ runner (533 to 587 ms) than with TypeScript (306 to 441 ms).+- Offline replay of the WPF and WinUI3 fixtures (5 capture IDs per decision+ point, element and shuffled order, 1,120 decisions): with relevance capping,+ Jev was correct in 420/420 and S1 in 419/420. The S1 miss pressed "Save+ note" before writing the note (confidence 0.53) at WinUI3 density 12 in+ shuffled order. Strict depth-first capping at density 24 again never offered+ the due step: Jev pressed a wrong control in 40 of 140 decisions and+ abstained or reobserved in the rest, and S1 pressed a wrong control in 138+ of 140, with 2 model errors.++Accuracy at about 4, 12, and 24 candidates is now measured on every native+harness with both runners.