Repository navigation
Description
Background
Expensify App PRs and bug-report issues both contain manual mobile-test plans (PRs in ### Tests; issues in ## Action Performed:). Reviewing or triaging these requires running the steps on iOS Simulator and Android Emulator manually, which is slow and inconsistent. agent-device already drives both devices via the accessibility tree and supports screenshot and record start/stop.
Problem
When a developer or triager wants mobile evidence for a PR or issue, no automated capture exists. Reviewers either run the steps locally or accept reviews without visual proof, and any structured-evidence pipeline (e.g. Melvin) has nothing to consume.
Solution
A new agent-device-evidence skill that:
- Accepts a GitHub URL (PR
/pull/Nor issue/issues/N); URL path disambiguates kind. - Fetches the body and extracts test/repro steps via per-source heading anchors with whole-body LLM fallback. Segments steps into distinct flows (LLM-driven; no enforced separator).
- Resolves which platforms apply (PR title/Tests prose for PRs;
## Platforms:checkboxes for issues; both by default). - Drives the parent
agent-deviceskill's bring-up to open the app, then runs a two-phase loop per flow: Phase 1 explores autonomously and emits an.adscript; Phase 2 replays it underrecordto produce a clean MP4 (or PNG for verify-only steps). - Caches
.adscripts bysha256(steps + precondition + platform)so unchanged flows skip Phase 1 on re-runs. Append-only - the skill never deletes cache entries. - Writes artifacts and a JSON manifest under
~/.cache/agent-device-evidence/<source-kind>-<source-num>/<run-ts>/. The skill never edits the source; the user (or future Melvin integration) handles upload/attachment.
Autonomous and non-interactive: failures surface as structured exit codes (SKIP, NO_FLOWS, PLATFORM_UNSUPPORTED, NO_BUILD, BAD_INPUT, etc.) without prompts.
Related
Activity
kacper-mikolajczak commentedon May 4, 2026
CC @Julesssss
Julesssss commentedon May 4, 2026
Sounds good. I guess we will first get the skill working, then look into connecting it with Melvin. One thing I worry about is that our Melvin instructions have PR creation as a skill already and the melvin prompt handles many various workflows. With Melvin V2 this will change but I am not quite ready yet to extract the potential cases out. Once that is done it should be easier (this is App implementation > implement + run THIS skill to test).
Lets add a goal of testing this thoroughly as a standalone skill, and getting some use from it before moving on.
A second thing is that I'd like to avoid any work on performance testing for now.Nevermind, I see we have a simple skill already, we can keep it but lets not automate it further.Julesssss commentedon May 5, 2026
Refine agent device flow PR looking good and merged! 🎉
Julesssss commentedon May 5, 2026
Just noting thoughts for later. We may want to switch to our S3 image upload solution (currently used by Melvin for PlayWright testing), as it lets Melvin one-shot the capture AND PR creation.
kacper-mikolajczak commentedon May 5, 2026
Oh ok cool, thanks for the heads-up Jules. I will take this into consideration!
Next up I want to align this skill with newest adjustments to the core skill and continue with further improvements.
kacper-mikolajczak commentedon May 6, 2026
@Julesssss Thanks for the insight! Let's use this to make sure what our goals for the upcoming weeks are.
As we talked, I was planning our focus around all-things-PR related for now (recordings, evidence testing etc.) and integrating it with Melvin. Is that sounds good for you for near future or you'd like to refine something about it? Thanks!
Julesssss commentedon May 6, 2026
Yes, PR creation sounds good. Though if we can leave some seperation that would be useful. So we can test it in isolation against existing PRs as well 👍
[-]Enable agent-device to record PR evidence[/-][+]Enable agent-device to record PR/issue mobile evidence[/+]melvin-bot commentedon Jun 1, 2026
This issue has not been updated in over 15 days. @rlinoz, @Julesssss, @kacper-mikolajczak eroding to Monthly issue.
P.S. Is everyone reading this sure this is really a near-term priority? Be brave: if you disagree, go ahead and close it out. If someone disagrees, they'll reopen it, and if they don't: one less thing to do!
rlinoz commentedon Jun 8, 2026
What are the next steps here? I think we are done and next steps is on another issue to make melvin have access to the emulators?
kacper-mikolajczak commentedon Jun 8, 2026
Yes, that's correct! I am working on the latter currently.
rlinoz commentedon Jun 9, 2026
Nice, closing this one then