
The recording core in GoalCut is about 7,000 lines of Kotlin that I directed and did not write. Camera2 into a hardware HEVC encoder into a fragmented-MP4 muxer, none of which I would have attempted on my own. Reading it line by line tells me very little about whether it works, so most of that week went on a different question: how do you check an agent's native code when you can't audit it? What I settled on was to stop asking the code and start asking the phone. The first thing I had built was not the camera screen. It was a 280-line capability probe: enumerate every camera the handset exposes, dump what each one claims it can do, run it over adb. That is how the real problem surfaced. The ultra-wide lens advertises 3840×2160, but Samsung's encoder profile for that lens stops at 1080p, so the standard React Native camera library could never have got there, whatever resolution I set. Same move for the file format. Instead of a discussion about which container was safer, I asked for the experiment: record, force-quit the app mid-take, try to play the file back. A plain MP4 keeps every frame but writes the index only on a clean stop, so there is nothing to play. Fragmented MP4 writes small self-contained pieces as it goes, 156 of them in a 79-second take, and the hard kill cost about a second. Then soak tests I could not have sat through. Phone plugged in, me out for the evening, the build installing itself and the telemetry writing to disk. The S23 Ultra recorded 49 minutes backgrounded with the screen off, 8.18 GB, memory flat at a 435 MB peak. The thing that turned out to be broken was the soak tool itself. That soak ran 58 minutes instead of 45, because React Native suspends JavaScript timers while an app is backgrounded, so the auto-stop only fired on the next resume and the telemetry collected 8 samples instead of about 234. The agent had written its own instrument wrong, and nothing except the artifact would have told me. Which is the argument for working this way.


