Repository navigation
Conversation
…the popup it opened or closed, or the items that changed
A decision reads the screen now showing and the last eight actions, never the screen before, so on chrome/2ad9387a a click meant for Organise that only closed the "Restore pages?" bubble read as "clicked 'Organise'". Now the runner compares the capture after each action with the one it was taken on and ends the line with the coarsest change, in roles, names, URL, title, and labels, with OCR text where there is no tree: "clicked 'Organise' → closed: alert 'Restore pages?'", "→ opened: menu ('Sort by name', 'Add new bookmark', …)", "→ went to chrome://bookmarks", "→ new: …; gone: …", "→ 'Name' holds 'Thomas'", or "→ no change" by the stall count's own same_screen. The lines go to the classifier, the writer, and the answer.
The shared walk marks each control inside an on-screen popup role (AT-SPI alert, dialog, menu; a Mac sheet or popover), and every adapter reports its front window's title (new Desktop.frontmost_window_title, guarded in tests).
Replay of 170 captured requests, each sent twice as captured and twice with the new lines: mean confidence 0.62 -> 0.64, 53 more input tokens a request, same pick 98% within and 90% across.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…rawn yet or not
On two of three batch runs of chrome/2ad9387a the capture after Organise's click lagged the tree: the tree had the menu's six items, the capture had drawn one. The line then read "opened: menu ('Sort by name')", and the answer model sent the classifier to Chrome's own three-dot menu in 15 of 17 reviews of that stop, against 10 of 17 with the outcomes left out and 7 of 17 with the menu named by the tree's items. So perception keeps each popup the tree shows with its controls' labels (Screen.popups), before the capture's paint is judged, and the line names it from there.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…istory line's outcome T224732Z, T230833Z, T231716Z (36d2e75, --envs 3, 2 s wait): 2ae9ba84, 12086550, af630914, and bb5e4c0d solved 3 of 3; 2ad9387a 1 of 3, each failure after a capture that lagged the tree by the Organise menu; 9f935cce 0 of 3, each after a first step under 0.4 that the writer sent to site search. Solo 2ad9387a: T230533Z (36d2e75) 8 steps, T232953Z (77676b4) 9 steps, both solved. OBSERVATIONS.md gets three lines from them. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
A decision reads the screen now showing and the last eight actions, never the screen before. On chrome/2ad9387a a click meant for Organise only closed Chrome's "Restore pages?" bubble on top of it, and the history said only
clicked 'Organise'.Now the runner compares the capture after each action with the capture the action was taken on. It ends that action's history line with the coarsest change (
typesafe_computer_use/outcome.py). The classifier'sprevious_actions, the writer, and the answer all read the same lines.clicked 'Bookmark manager' → went to chrome://bookmarksclicked 'Organise' → opened: menu ('Sort by name', 'Add new bookmark', …)clicked 'Organise' → closed: alert 'Restore pages?'scrolled down → new: 'Post 3', 'Post 4', …; gone: 'Post 1', …same_screen): focus moved to a text field / field holds new text / nothingfocused 'Name'/'Name' holds 'Thomas'/no changeIt uses only roles, names, URL, title, and labels. With no tree, the item comparison runs on OCR text. When one screen has a tree and the other has none, the line gets no ending. Chrome builds its tree lazily, so a task's first capture can have none.
How
ax_walk.walk_actionable: each control inside an on-screen node with a popup role getsAxNode.within(AT-SPIalert,dialog,menu,file-chooser; MacAXSheet,AXPopover). A popup-role node with no frame on screen does not count. Chrome keeps a closed<select>'s menu in the tree that way.perception.perceivefillsScreen.popups(popup → its controls' labels). It does this before judging whether the capture drew them, so a menu the capture has not painted yet is still named by all its items (77676b4).Desktop.frontmost_window_titlein macOS (Quartz, the same window as the bounds), Windows (GetWindowText), and OSWorld (the named frame, not a popup window). The conftest guard refuses it on the host adapters.runner:RunState.acted_onholds aGlanceof the screen an action ran on. The next capture (a step's, or the answer's) ends the line. The log shows→ …under the step that acted.tried_hereand the repeat rule still compare the bare action text.role=menusidebar from the tree.Replay
This changes what the model sees. The scripts are in the session only; they call only the TypeSafe API.
170 captured steps from runs 20260929-161216, -162330, -163418, -164132, -164952, and 20260928-175203 (pre-#48 2ad9387a). Each step was sent twice as captured (A, A2) and twice with
previous_actionsrebuilt with outcomes from the step payloads and saved trees (B, B2):… pressed Return → closed: dialog 'Add folder'): done 0.51/0.59 → 0.85/0.82.activated Google Chrome → went to Google Chrome 'New Tab - Google Chrome'): 0.30 → 0.60, no longer a low-confidence stop.→ opened: menu ('Bookmarks bar', 'All Bookmarks')): 0.60 → 0.84.→ opened: menu ('You and Google', …)), and the pick moved from click (0.41/0.38) to Escape (0.41/0.35).; opened: nothingafter a closed popup lowered confidence in the replay. Over the 24 steps with such a line (two samples each), the mean was 0.743 with it and 0.765/0.757 without. Examples:Tests
tests/test_outcome.py:closed: alert 'Restore pages?', thenopened: menu (…), thenopened: dialog 'Add folder'.test_l58(run-level): the bubble takes the click, and the next decision'sprevious_actionsand the answer'sactions_takencarryclicked 'Organise' → closed: alert 'Restore pages?'.test_l57and the OSWorld agent test show→ opened: menu (…)after the combined close-and-click.acts(state)(lines without their outcome).uv run ruff check,uv run ruff format --check, anduv run pytestpass (765 passed). The conftest guard gainsfrontmost_window_titlefor both host adapters.Cloud
Main's 2 s wait,
--ocr rapidocr. The baseline is T164943Z (a246829): 6 of 6 solved, 6.7 steps, 54.7 s, $0.0030. Rows are committed in this PR.The first three columns are commit 36d2e75. The solo 2ad9387a runs, against T163408Z (9 steps, 42.3 s, $0.0029):
Over the 18 batch runs:
The gate does not hold. 2ad9387a failed in 2 of 3 batches.
2ad9387a
press_offscreen 'Add new folder'was refused, thenclicked 'Bookmarks bar', then a stop at under 0.4.menu ('Sort by name'), named by the one drawn item);9f935cce: every run stopped at step 1 under 0.4 (0.31 to 0.36, as in most runs on the machine today, the baseline aside). The writer then sent it to site search, which ends on the Civil Division documents page instead of the filtered forms list. Step 1 has no history, so this branch cannot change it.
Per the maintainer, this PR stays open: no merge.
🤖 Generated with Claude Code