Repository navigation
docs(ios): agent skill and pnpm ios:sim:pair for simulator proof - #198186
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. What this changesAdds an iOS simulator testing skill and a command that pairs a simulator through the existing onboarding UI. Example: Run pnpm ios:sim:pair --profile ios-de with its Gateway listening on port 19061.
Review scores
ProductKind: Feature · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: this maintainer-authored PR provides useful iOS development tooling, with one remaining non-blocking documentation correction and no identified blocking defect. Priority: P3 Before mergeNone. Findings
Agent review detailsHow this fits togetherThe helper connects the built iOS app, CoreSimulator, MobileBuildMCP, and an isolated Gateway profile; it consumes a setup code through onboarding and returns the paired simulator identifier. flowchart LR
A[Pairing command] --> B[Gateway profile]
B --> C[Setup code]
A --> D[CoreSimulator]
C --> E[Onboarding UI]
D --> E
E --> F[Paired chat screen]
Technical reviewBest possible solution: Retain the onboarding-based helper and skill, with nodes describe --node <id> documented for supported-command inspection. Do we have a high-confidence way to reproduce the issue? This adds development tooling rather than fixing an app bug; the remaining documentation mismatch is directly verifiable in the CLI renderer. Is this the best way to solve the issue? The helper appropriately automates the existing onboarding owner instead of creating a parallel pairing implementation, and its local helpers express distinct execution, discovery, and cleanup responsibilities. Full review comments:
Overall correctness: patch is correct AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 2ff4256ae377. Provenance checked
TestingProof path: none. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceDocs +180, Config +1, Other +174. Total +355 across 7 files. Added test files: 0. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. LabelsLabel changes: No label changes. Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment HistoryReview history (3 earlier review cycles)
Reviewed November 13, 2026, 4:41 AM ET / 09:41 UTC (Revision 4). |
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
1f51696 to
7ada9e9
Compare
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
Merged via explicitly authorized admin squash with attributed pre-existing CI failures.
|
|
Landed via the authorized pre-existing-failure route (maintainer @obviyus authorized merging despite unrelated CI). CI run 43402903146 attempt 1 on head
These suites ran because |
…nclaw#198186) * docs(ios): add the iOS E2E agent skill and pnpm ios:sim:pair * fix(scripts): wait without returning from a promise executor in ios:sim:pair * fix(scripts): pair in English and keep waits under the MobileBuildMCP daemon timeout * docs(ios): make the MobileBuildMCP config a per-checkout setup step * docs(ios): format the iOS E2E setup step
What Problem This Solves
Coding agents and developers working on the iOS app had no shared way to run, drive and prove a change on the simulator from the command line. The recipes we used for recent iOS PRs (pairing with an isolated Gateway, driving the UI with MobileBuildMCP, auth/outage/upgrade proofs) lived in one maintainer's private notes.
User Impact
No app change. Anyone's agent can now build, pair, drive, test and prove iOS changes end to end with repo tooling:
.agents/skills/ios-e2e/is a new agent skill.SKILL.mdcovers build and run, UI driving, logs and crashes, tests, end-to-end proof and setup.PROOF.mdholds recipes for node commands, permissions, auth failures, outages, rejected sends, upgrades and what only a device proves.DEBUG.mdcovers LLDB and xctrace.pnpm ios:sim:pairpairs a fresh simulator with an isolated local Gateway through the real onboarding UI and prints the simulator UDID..mobilebuildmcp/config.yaml, so MobileBuildMCP needs no project flags. It stays uncommitted: the CI lane classifier treats unknown paths like it as "run every lane".apps/ios/AGENTS.mdgets a "Build, test and prove" section: a pointer to the skill, the Swift checks, and the native string inventory rule.Why This Change Was Made
Each part of the skill comes from proof we actually ran on recent iOS PRs (#197846, #197908, #198106, #197212, #197424). The two AGENTS.md rules cite the CI failures that motivated them. Rules with no incident behind them stayed out. Bundle ID, simulator and Gateway port are read from the build and the profile, not hard-coded, so the steps also work for contributors signing with their own Apple team.
ios:sim:pairkeeps the setup code (a short-lived bootstrap token) out of its output and out of failure messages. It runs every check before creating a simulator, and deletes the simulator it created if pairing fails.Evidence
ios-de, port 19061) and started its Gateway with the documented command.pnpm ios:sim:pair --profile ios-de: a fresh simulator was created, paired through onboarding and landed on the chat screen in about 70 s. The Gateway logged the app's node and operator connections. Output was only the status line and the UDID.IOS_SIM=<that simulator> pnpm ios:test DeepLinkParserTests: 20 passed.devices list,nodes status,sessions archive --help,gateway call sessions.list,models auth --help,mobilebuildmcp simulator list-schemes).DAEMON_TRANSPORT_FAILED.tsgo:scripts,run-format --checkandgit diff --checkare clean.$simnot being targeted, the red-on-base command restoring the wrong files, and a simulator leak on failure. All are addressed except moving the small simulator lookup intoscripts/lib; it differs fromios:test's lookup on purpose.