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
test(cua-driver): close modality-ladder audit (#2903)
injaneityad0ed58b3cf1
diff --git a/libs/cua-driver/docs/action-result-contract.md b/libs/cua-driver/docs/action-result-contract.mdindex 06b0c39413..409dbfcc7e 100644--- a/libs/cua-driver/docs/action-result-contract.md+++ b/libs/cua-driver/docs/action-result-contract.md@@ -39,7 +39,8 @@ The action-result tools are:`click`, `double_click`, `right_click`, `scroll`, `drag`, `mouse_drag`,`parallel_mouse_drag`, `move_cursor`, `mouse_button_down`, `mouse_button_up`,`type_text`, `type_text_chars`, `press_key`, `hotkey`, `set_value`,-`browser_click`, `browser_pointer`, and `browser_type`.+`set_window_frame`, `invoke_menu`, `browser_click`, `browser_pointer`, and+`browser_type`.Other mutating tools such as application launch, window activation, browsernavigation, dialogs, uploads, and downloads retain their own typed results.diff --git a/libs/cua-driver/rust/crates/cua-driver-core/src/action_record.rs b/libs/cua-driver/rust/crates/cua-driver-core/src/action_record.rsindex f73762857b..4b21971a6a 100644--- a/libs/cua-driver/rust/crates/cua-driver-core/src/action_record.rs+++ b/libs/cua-driver/rust/crates/cua-driver-core/src/action_record.rs@@ -1820,4 +1820,45 @@ mod tests {);}}++ #[test]+ fn every_legacy_text_only_action_is_conservatively_unverifiable() {+ let tools = [+ "click",+ "double_click",+ "right_click",+ "scroll",+ "drag",+ "mouse_drag",+ "parallel_mouse_drag",+ "move_cursor",+ "mouse_button_down",+ "mouse_button_up",+ "type_text",+ "type_text_chars",+ "press_key",+ "hotkey",+ "set_value",+ "browser_click",+ "browser_pointer",+ "browser_type",+ ];++ for tool in tools {+ let record = ActionExecutionRecord::from_legacy(+ tool,+ &serde_json::json!({}),+ &serde_json::Value::Null,+ )+ .unwrap_or_else(|| panic!("legacy text-only action {tool} must normalize"));+ assert_eq!(+ record.effect,+ ActionEffect::Unverifiable,+ "legacy text-only action {tool} must never imply confirmation"+ );+ record+ .public_result()+ .unwrap_or_else(|error| panic!("{tool} must publish: {error:?}"));+ }+ }}