feat: report what changed after each action (#450) #535
All Vouch review confidence checks passed
Residual risk 0.33 = Change Risk (0.55) × (1 − Review Confidence (0.41)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.55 · 559 lines diff across 6 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.379
Shallow Review Depth
shallow_review_depth
0.344
Real PR Conversation Timeline
1 comments
"Review active on #535"
general
weight: 0.35
bhargavmehta01
Summary
Closes #450.
Every action tool used to return plain success, so an agent could not tell a tap that changed the screen from one that hit nothing, and spent most of its turns re-listing or screenshotting to find out. Action tools now wait for the UI to settle and append a compact report of what the action did.
Covered tools:
mobile_click_on_screen_at_coordinates,mobile_double_tap_on_screen,mobile_long_press_on_screen_at_coordinates,mobile_swipe_on_screen,mobile_type_keys,mobile_press_button,mobile_open_url,mobile_launch_app.How it works
src/action-feedback.ts, platform-agnostic: it only works on theScreenElement[]lists fromrobot.getElementsOnScreen()(plusgetForegroundApp()when the robot has it), so mobilecli and the legacy robots behave the same.MOBILEMCP_SETTLE_TIMEOUT_MS).MISMATCHwhen it doesn't contain the typed text. Secure/masked fields are not compared.mobile_list_elements_on_screen.Opting out / cost
feedback: falseon any action tool skips it entirely (no extra reads).MOBILEMCP_ACTION_FEEDBACK=0turns it off by default; a call can still opt in withfeedback: true.mobile_batch_commandssteps default tofeedback: false(a batch runs known sequences); a step can passfeedback: true.Example
Docs
README (new "What changed after an action" section, two env vars), CHANGELOG (Unreleased), server instructions, and the bundled mobile-automation skill (step 4 now says to read the report before re-listing).
Tests
test/action-feedback.test.ts: 32 device-free unit tests (settle with a fake clock, matching, each classification, hit testing, typing checks, diff cap, error handling, env settings, and that every action tool exposes an optionalfeedback).npm run build,npm run lintandnpx playwright testpass (180 tests). Not yet exercised on a real device or simulator; happy to iterate on the heuristics once someone tries it.