Computer use CLI for AI agents
Rust accessibilityaccessibility-apiai-agentsautomationclicomputer-usecomputer-use-agentcomputer-use-agentsdesktop-automationmacosmcprust
{
"Probe": "04-automationid-census",
"Question": "when a process is restarted, which per-node identity properties survive",
"PlacementControl": "every target is relaunched at the identical window origin (scratch fixtures via --pos / -Left -Top, Notepad via SetWindowPos with the same rect). Without that control every bounds comparison would report 0% survival for the trivial reason that Windows cascades a new window, and the interesting question - whether layout inside the window is reproducible - would be unanswerable.",
"RuntimeIdHandling": "as in identity-mutation.json: compared in memory, only survived/changed counts written.",
"Rows": [
{
"Target": "winforms-host-providers",
"Arm": "restart",
"Change": "process terminated and relaunched with identical arguments and the identical --pos origin; the list is back at its baseline content",
"Stack": "managed-System.Windows.Automation ControlView",
"BeforeNodes": 26,
"AfterNodes": 26,
"PathMatchedPairs": 26,
"PathsOnlyInBefore": 0,
"PathsOnlyInAfter": 0,
"PerPropertySurvival": [
{
"Property": "ControlType",
"Matched": 26,
"Survived": 26,
"PctSurvived": 100
},
{
"Property": "AutomationId",
"Matched": 26,
"Survived": 26,
"PctSurvived": 100
},
{
"Property": "ClassName",
"Matched": 26,
"Survived": 26,
"PctSurvived": 100
},
{
"Property": "Name",
"Matched": 26,
"Survived": 25,
"PctSurvived": 96.2
},
{
"Property": "RuntimeId",
"Matched": 26,
"Survived": 0,
"PctSurvived": 0
},
{
"Property": "Bounds",
"Matched": 26,
"Survived": 26,
"PctSurvived": 100
}
],
"BoundsBucketed8pxSurvival": {
"Property": "BoundsBucketed",
"Matched": 26,
"Survived": 26,
"PctSurvived": 100
},
"AutomationIdKeyedMatch": {
"UniqueKeysBefore": 23,
"KeysReFound": 23,
"KeysLost": 0,
"PathAlsoSurvived": 23,
"RuntimeIdAlsoSurvived": 0,
"KeysReFoundOnADifferentElement": 1,
"KeysReFoundOnADifferentElementNote": "the number of AutomationId keys that still resolve after the change but now land on an element whose Name differs. This is the silent-wrong-target count: a ref keyed on AutomationId alone would resolve successfully and act on the wrong element. Names are compared in memory only.",
"Note": "the key is ControlType|AutomationId; keys that are not unique within a dump are excluded from both sides rather than matched arbitrarily"
},
"ByControlType": [
{
"ControlType": "Button",
"PathMatchedPairs": 1,
"AutomationIdSurvived": 1,
"NameSurvived": 1,
"RuntimeIdSurvived": 0,
"BoundsSurvived": 1
},
{
"ControlType": "ComboBox",
"PathMatchedPairs": 1,
"AutomationIdSurvived": 1,
"NameSurvived": 1,
"RuntimeIdSurvived": 0,
"BoundsSurvived": 1
},
{
"ControlType": "Pane",
"PathMatchedPairs": 17,
"AutomationIdSurvived": 17,
"NameSurvived": 17,
"RuntimeIdSurvived": 0,
"BoundsSurvived": 17
},
{
"ControlType": "Text",
"PathMatchedPairs": 6,
"AutomationIdSurvived": 6,
"NameSurvived": 5,
"RuntimeIdSurvived": 0,
"BoundsSurvived": 6
},
{
"ControlType": "Window",
"PathMatchedPairs": 1,
"AutomationIdSurvived": 1,
"NameSurvived": 1,
"RuntimeIdSurvived": 0,
"BoundsSurvived": 1
}
]
},
{
"Target": "wpf",
"Arm": "restart",
"Change": "process terminated and relaunched with identical -Left/-Top arguments; the peer-activation settle is applied again because a WPF window read too early binds the HWND fallback provider permanently (03-pattern-census)",
"Stack": "managed-System.Windows.Automation ControlView",
"BeforeNodes": 26,
"AfterNodes": 26,
"PathMatchedPairs": 26,
"PathsOnlyInBefore": 0,
"PathsOnlyInAfter": 0,
"PerPropertySurvival": [
{
"Property": "ControlType",
"Matched": 26,
"Survived": 26,
"PctSurvived": 100
},
{
"Property": "AutomationId",
"Matched": 26,
"Survived": 26,
"PctSurvived": 100
},
{
"Property": "ClassName",
"Matched": 26,
"Survived": 26,
"PctSurvived": 100
},
{
"Property": "Name",
"Matched": 26,
"Survived": 26,
"PctSurvived": 100
},
{
"Property": "RuntimeId",
"Matched": 26,
"Survived": 0,
"PctSurvived": 0
},
{
"Property": "Bounds",
"Matched": 26,
"Survived": 26,
"PctSurvived": 100
}
],
"BoundsBucketed8pxSurvival": {
"Property": "BoundsBucketed",
"Matched": 26,
"Survived": 26,
"PctSurvived": 100
},
"AutomationIdKeyedMatch": {
"UniqueKeysBefore": 14,
"KeysReFound": 14,
"KeysLost": 0,
"PathAlsoSurvived": 14,
"RuntimeIdAlsoSurvived": 0,
"KeysReFoundOnADifferentElement": 0,
"KeysReFoundOnADifferentElementNote": "the number of AutomationId keys that still resolve after the change but now land on an element whose Name differs. This is the silent-wrong-target count: a ref keyed on AutomationId alone would resolve successfully and act on the wrong element. Names are compared in memory only.",
"Note": "the key is ControlType|AutomationId; keys that are not unique within a dump are excluded from both sides rather than matched arbitrarily"
},
"ByControlType": [
{
"ControlType": "Button",
"PathMatchedPairs": 2,
"AutomationIdSurvived": 2,
"NameSurvived": 2,
"RuntimeIdSurvived": 0,
"BoundsSurvived": 2
},
{
"ControlType": "CheckBox",
"PathMatchedPairs": 1,
"AutomationIdSurvived": 1,
"NameSurvived": 1,
"RuntimeIdSurvived": 0,
"BoundsSurvived": 1
},
{
"ControlType": "ComboBox",
"PathMatchedPairs": 1,
"AutomationIdSurvived": 1,
"NameSurvived": 1,
"RuntimeIdSurvived": 0,
"BoundsSurvived": 1
},
{
"ControlType": "Edit",
"PathMatchedPairs": 2,
"AutomationIdSurvived": 2,
"NameSurvived": 2,
"RuntimeIdSurvived": 0,
"BoundsSurvived": 2
},
{
"ControlType": "List",
"PathMatchedPairs": 1,
"AutomationIdSurvived": 1,
"NameSurvived": 1,
"RuntimeIdSurvived": 0,
"BoundsSurvived": 1
},
{
"ControlType": "ListItem",
"PathMatchedPairs": 5,
"AutomationIdSurvived": 5,
"NameSurvived": 5,
"RuntimeIdSurvived": 0,
"BoundsSurvived": 5
},
{
"ControlType": "ScrollBar",
"PathMatchedPairs": 4,
"AutomationIdSurvived": 4,
"NameSurvived": 4,
"RuntimeIdSurvived": 0,
"BoundsSurvived": 4
},
{
"ControlType": "Text",
"PathMatchedPairs": 9,
"AutomationIdSurvived": 9,
"NameSurvived": 9,
"RuntimeIdSurvived": 0,
"BoundsSurvived": 9
},
{
"ControlType": "Window",
"PathMatchedPairs": 1,
"AutomationIdSurvived": 1,
"NameSurvived": 1,
"RuntimeIdSurvived": 0,
"BoundsSurvived": 1
}
]
},
{
"Target": "notepad",
"Arm": "restart",
"Change": "the real Win32 target: process terminated and relaunched, then placed at the identical rect with SetWindowPos so window placement cannot masquerade as layout drift",
"Stack": "managed-System.Windows.Automation ControlView",
"BeforeNodes": 3,
"AfterNodes": 3,
"PathMatchedPairs": 3,
"PathsOnlyInBefore": 0,
"PathsOnlyInAfter": 0,
"PerPropertySurvival": [
{
"Property": "ControlType",
"Matched": 3,
"Survived": 3,
"PctSurvived": 100
},
{
"Property": "AutomationId",
"Matched": 3,
"Survived": 3,
"PctSurvived": 100
},
{
"Property": "ClassName",
"Matched": 3,
"Survived": 3,
"PctSurvived": 100
},
{
"Property": "Name",
"Matched": 3,
"Survived": 3,
"PctSurvived": 100
},
{
"Property": "RuntimeId",
"Matched": 3,
"Survived": 0,
"PctSurvived": 0
},
{
"Property": "Bounds",
"Matched": 3,
"Survived": 3,
"PctSurvived": 100
}
],
"BoundsBucketed8pxSurvival": {
"Property": "BoundsBucketed",
"Matched": 3,
"Survived": 3,
"PctSurvived": 100
},
"AutomationIdKeyedMatch": {
"UniqueKeysBefore": 2,
"KeysReFound": 2,
"KeysLost": 0,
"PathAlsoSurvived": 2,
"RuntimeIdAlsoSurvived": 0,
"KeysReFoundOnADifferentElement": 0,
"KeysReFoundOnADifferentElementNote": "the number of AutomationId keys that still resolve after the change but now land on an element whose Name differs. This is the silent-wrong-target count: a ref keyed on AutomationId alone would resolve successfully and act on the wrong element. Names are compared in memory only.",
"Note": "the key is ControlType|AutomationId; keys that are not unique within a dump are excluded from both sides rather than matched arbitrarily"
},
"ByControlType": [
{
"ControlType": "Pane",
"PathMatchedPairs": 2,
"AutomationIdSurvived": 2,
"NameSurvived": 2,
"RuntimeIdSurvived": 0,
"BoundsSurvived": 2
},
{
"ControlType": "Window",
"PathMatchedPairs": 1,
"AutomationIdSurvived": 1,
"NameSurvived": 1,
"RuntimeIdSurvived": 0,
"BoundsSurvived": 1
}
]
},
{
"Target": "winforms-host-providers",
"Arm": "restart+mutation",
"Change": "relaunched with --mutate-list added: same origin, same arguments otherwise, but the list starts as Alpha/Charlie/Delta/Echo/Foxtrot/Golf. Its control is the pure restart row above; any survival difference between the two rows is attributable to the list change alone.",
"Stack": "managed-System.Windows.Automation ControlView",
"BeforeNodes": 26,
"AfterNodes": 26,
"PathMatchedPairs": 26,
"PathsOnlyInBefore": 0,
"PathsOnlyInAfter": 0,
"PerPropertySurvival": [
{
"Property": "ControlType",
"Matched": 26,
"Survived": 26,
"PctSurvived": 100
},
{
"Property": "AutomationId",
"Matched": 26,
"Survived": 26,
"PctSurvived": 100
},
{
"Property": "ClassName",
"Matched": 26,
"Survived": 26,
"PctSurvived": 100
},
{
"Property": "Name",
"Matched": 26,
"Survived": 25,
"PctSurvived": 96.2
},
{
"Property": "RuntimeId",
"Matched": 26,
"Survived": 0,
"PctSurvived": 0
},
{
"Property": "Bounds",
"Matched": 26,
"Survived": 26,
"PctSurvived": 100
}
],
"BoundsBucketed8pxSurvival": {
"Property": "BoundsBucketed",
"Matched": 26,
"Survived": 26,
"PctSurvived": 100
},
"AutomationIdKeyedMatch": {
"UniqueKeysBefore": 23,
"KeysReFound": 23,
"KeysLost": 0,
"PathAlsoSurvived": 23,
"RuntimeIdAlsoSurvived": 0,
"KeysReFoundOnADifferentElement": 1,
"KeysReFoundOnADifferentElementNote": "the number of AutomationId keys that still resolve after the change but now land on an element whose Name differs. This is the silent-wrong-target count: a ref keyed on AutomationId alone would resolve successfully and act on the wrong element. Names are compared in memory only.",
"Note": "the key is ControlType|AutomationId; keys that are not unique within a dump are excluded from both sides rather than matched arbitrarily"
},
"ByControlType": [
{
"ControlType": "Button",
"PathMatchedPairs": 1,
"AutomationIdSurvived": 1,
"NameSurvived": 1,
"RuntimeIdSurvived": 0,
"BoundsSurvived": 1
},
{
"ControlType": "ComboBox",
"PathMatchedPairs": 1,
"AutomationIdSurvived": 1,
"NameSurvived": 1,
"RuntimeIdSurvived": 0,
"BoundsSurvived": 1
},
{
"ControlType": "Pane",
"PathMatchedPairs": 17,
"AutomationIdSurvived": 17,
"NameSurvived": 17,
"RuntimeIdSurvived": 0,
"BoundsSurvived": 17
},
{
"ControlType": "Text",
"PathMatchedPairs": 6,
"AutomationIdSurvived": 6,
"NameSurvived": 5,
"RuntimeIdSurvived": 0,
"BoundsSurvived": 6
},
{
"ControlType": "Window",
"PathMatchedPairs": 1,
"AutomationIdSurvived": 1,
"NameSurvived": 1,
"RuntimeIdSurvived": 0,
"BoundsSurvived": 1
}
],
"StatusText": "status:ready"
}
]
}