Skip to content

docs(ios): agent skill and pnpm ios:sim:pair for simulator proof - #198186

Merged
obviyus merged 5 commits into
mainfrom
docs/ios-e2e-skill
Nov 13, 2026
Merged

obviyus merged 5 commits into
mainfrom
docs/ios-e2e-skill

Conversation

@obviyus

@obviyus obviyus commented Nov 13, 2026 •

Copy link
Copy Markdown
Collaborator

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.md covers build and run, UI driving, logs and crashes, tests, end-to-end proof and setup. PROOF.md holds recipes for node commands, permissions, auth failures, outages, rejected sends, upgrades and what only a device proves. DEBUG.md covers LLDB and xctrace.
  • pnpm ios:sim:pair pairs a fresh simulator with an isolated local Gateway through the real onboarding UI and prints the simulator UDID.
  • The skill's Setup includes a per-checkout .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.md gets a "Build, test and prove" section: a pointer to the skill, the Swift checks, and the native string inventory rule.
  • The testing skill points to the new skill.

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:pair keeps 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

  • Followed the skill's Setup on a brand-new Gateway profile (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.
  • Failure paths: a missing app and an unknown profile each fail before a simulator is created, with a message naming the fix. A Gateway not yet listening is waited for up to 30 s.
  • IOS_SIM=<that simulator> pnpm ios:test DeepLinkParserTests: 20 passed.
  • Every CLI command named in the skill and PROOF.md was run once (devices list, nodes status, sessions archive --help, gateway call sessions.list, models auth --help, mobilebuildmcp simulator list-schemes).
  • Non-English simulator (ClawSweeper finding): on a simulator set to German, the previous head failed at the first onboarding wait (the button reads "Weiter"). This head launches the pairing run in English and pairs. Each wait now stays under MobileBuildMCP's 30 s daemon request limit, so a missing element reports a timeout rather than DAEMON_TRANSPORT_FAILED.
  • tsgo:scripts, run-format --check and git diff --check are clean.
  • A second-model review found 24 issues, including the hard-coded bundle ID, $sim not 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 into scripts/lib; it differs from ios:test's lookup on purpose.

@clawsweeper

clawsweeper Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added app: ios App: ios scripts Repository scripts size: M labels Nov 13, 2026
@clawsweeper clawsweeper Bot added clawsweeper:intake:docs Preliminary submission classification; full source review pending. P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed clawsweeper:intake:docs Preliminary submission classification; full source review pending. labels Nov 13, 2026
@clawsweeper

clawsweeper Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

Adds 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.

  • Before: The developer manually creates a simulator and completes onboarding.
  • After: The command creates and pairs a simulator, opens chat, and prints its UDID.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) Useful, focused tooling with detailed reported verification and one non-blocking documentation defect; execution evidence was not independently inspected.
Proof confidence 🦐 gold shrimp (3/6) This maintainer-authored development-tooling change is outside the contributor proof gate; the body reports actual pairing runs, but supplies no separately inspectable terminal artifact.
Patch quality 🐚 platinum hermit (4/6) 1 actionable review finding remain.

Product

Kind: Feature · Worth it: Yes · Fix scope: Complete
User problem: Developers and agents lack a shared, reproducible simulator pairing and proof workflow.
Reason: The maintainer-authored direction consolidates demonstrated workflows and adds a focused helper without changing application defaults or public plugin contracts.

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
Reviewed head: 56c347531a890551de6692a127800d7c6a1ef368

Before merge

None.

Findings

  • [P3] Use nodes describe to inspect supported commands — .agents/skills/ios-e2e/PROOF.md:7
Agent review details

How this fits together

The 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]
Loading

Technical review

Best 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:

  • [P3] Use nodes describe to inspect supported commands — .agents/skills/ios-e2e/PROOF.md:7
    The recipe tells an agent to inspect declared commands with oc nodes status, but its normal table displays capabilities and permissions without command names. oc nodes describe --node &lt;id> prints supported commands and pending declarations. Use that command here so the documented inspection step supplies the information needed before invoking a node command.
    Confidence: 1

Overall correctness: patch is correct
Overall confidence: 0.9

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 2ff4256ae377.

Provenance checked

  • .agents/skills/openclaw-testing/SKILL.md keeps the original intent (70bfdc2: The existing guidance routes platform-specific proof to owning skills; this change adds the corresponding iOS destination.)

Testing

Proof path: none.

Security

None.

Evidence

What I checked:

  • Introduced change and current-main boundary: The pinned introduction diff adds the skill, pairing helper, package command, and scoped guidance; fetched main contains neither the helper nor the new skill. (scripts/ios-sim-pair.mts:1, 56c347531a89)
  • Earlier locale finding addressed: The helper explicitly launches onboarding in English and keeps individual UI waits below the documented daemon timeout. (scripts/ios-sim-pair.mts:148, 56c347531a89)
  • Remaining command-discovery mismatch: The recipe attributes supported-command output to nodes status; its table renders capabilities and permissions, while nodes describe renders Commands and Pending commands. (.agents/skills/ios-e2e/PROOF.md:7, 56c347531a89)
  • Existing tooling ownership: The merged simulator-test command in improve(ios): run simulator tests with pnpm ios:test #194298 establishes obviyus's prior ownership in this area; the new helper preserves that command and its simulator-selection contract. (scripts/ios-test.mts:1, 2ff4256ae377)
  • Supplied verification and discussion: The full PR body reports fresh-profile pairing, German-simulator recovery, preflight failures, and focused checks; the human discussion requests re-review without changing scope. (56c347531a89)

Likely related people:

  • Ayaan Zaidi: Raw commit 63f0570 adds scripts/ios-test.mts:1 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 63f0570ce657; files: scripts/ios-test.mts)

PR surface

Docs +180, Config +1, Other +174. Total +355 across 7 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 0 0 0 0
Docs 5 181 1 +180
Config 1 1 0 +1
Generated 0 0 0 0
Other 1 174 0 +174
Total 7 356 1 +355

Preflight source

Source unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified.

Labels

Label changes:

No label changes.

Label justifications:

  • P3: This improves developer simulator workflows without changing app behavior; the remaining defect is documentation polish.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Rating scale

6/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.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

History

Review history (3 earlier review cycles)
  • reviewed 2026-11-13T08:52:04.179Z sha 236ba34 :: needs changes before merge. :: [P2] [P2] Set the launch language before matching English onboarding labels
  • reviewed 2026-11-13T09:12:05.139Z sha 6f88f64 :: needs maintainer review before merge. :: none
  • reviewed 2026-11-13T09:34:44.685Z sha 7ada9e9 :: needs maintainer review before merge. :: [P3] Use nodes describe to inspect supported commands

Reviewed November 13, 2026, 4:41 AM ET / 09:41 UTC (Revision 4).

@obviyus

obviyus commented Nov 13, 2026

Copy link
Copy Markdown
Collaborator Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added clawsweeper:intake:feature Preliminary submission classification; full source review pending. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed P2 Normal backlog priority with limited blast radius. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. clawsweeper:intake:feature Preliminary submission classification; full source review pending. labels Nov 13, 2026
@obviyus

obviyus commented Nov 13, 2026

Copy link
Copy Markdown
Collaborator Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added clawsweeper:intake:docs Preliminary submission classification; full source review pending. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. clawsweeper:intake:docs Preliminary submission classification; full source review pending. labels Nov 13, 2026
@clawsweeper clawsweeper Bot added the status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. label Nov 13, 2026
@obviyus

obviyus commented Nov 13, 2026

Copy link
Copy Markdown
Collaborator Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added clawsweeper:intake:docs Preliminary submission classification; full source review pending. and removed clawsweeper:intake:docs Preliminary submission classification; full source review pending. labels Nov 13, 2026
@obviyus
obviyus merged commit 32527d0 into main Nov 13, 2026
208 of 215 checks passed
@obviyus
obviyus deleted the docs/ios-e2e-skill branch November 13, 2026 10:26
@obviyus

obviyus commented Nov 13, 2026

Copy link
Copy Markdown
Collaborator Author

Merged via explicitly authorized admin squash with attributed pre-existing CI failures.

@obviyus

obviyus commented Nov 13, 2026

Copy link
Copy Markdown
Collaborator Author

Landed via the authorized pre-existing-failure route (maintainer @obviyus authorized merging despite unrelated CI). CI run 43402903146 attempt 1 on head 56c347531a8 had five failures, none caused by this PR. This PR changes only .agents/skills/ios-e2e/*, .agents/skills/openclaw-testing/SKILL.md, apps/ios/AGENTS.md, one package.json script (ios:sim:pair) and the standalone scripts/ios-sim-pair.mts. The failing test sources are unchanged in the tested merge c835b3259.

Job Failing case Source Why unrelated
checks-node-changed-14 delivers a child completion once while parent timeout recovery is active test/e2e/qa-lab/runtime/gateway-timeout-recovery-subagent.e2e.test.ts Also fails locally on a clean main checkout (31f619a)
checks-node-changed-10 recovers a replaced model catalog and drains the following Telegram callback test/e2e/qa-lab/runtime/telegram-model-picker-prepared-gateway.e2e.test.ts Tracked as failing on main in #169104
checks-node-changed-2 keeps local control usable across bundle loss, disconnect, capacity, and role removal test/e2e/qa-lab/runtime/paired-node-worker-lifecycle-wire.e2e.test.ts Gateway/node runtime e2e; doesn't exercise any path this PR changes
checks-node-changed-4 channel progress presentation: suppressed Slack announcements; ambiguous Discord announcement custody test/e2e/qa-lab/runtime/channel-progress-presentation.e2e.test.ts Channel delivery e2e; doesn't exercise any path this PR changes; also failed on the PR's first head
checks-node-changed-extensions-bundle-36 Codex worker model process > gates native resource readiness, resumes exact state, and retains failed-cleanup custody extensions/codex/src/node-app-server.runtime.test.ts Codex extension; passes locally on clean main; doesn't exercise any path this PR changes

These suites ran because changed-lanes treats package.json script edits as broad. openclaw/ci-gate failed only because of these five jobs. No CI success is claimed for this head.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 14, 2026
…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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: ios App: ios P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. scripts Repository scripts size: M status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant