Skip to content

Reconcile device routing, first screenshots, and simulator benchmarks - #6

Draft
ninan-versioning wants to merge 46 commits into
mainfrom
codex/sprint-native-odr-integration
Draft

ninan-versioning wants to merge 46 commits into
mainfrom
codex/sprint-native-odr-integration

Conversation

@ninan-versioning

@ninan-versioning ninan-versioning commented Nov 29, 2026 •

Copy link
Copy Markdown
Contributor

This candidate integrates #1 (SimBench), #2 (read-only MCP), #3 (first screenshot), #4 (leaderboard), and #5 (Device Farm onboarding) with main. It preserves the five branch histories. The benchmark workflows generate reviewable patches for publication. Archived diagnostics retain timing and bounded failure descriptions.

Candidate package. Two independent locked builds of 3aa724ae4ecc8f7b0563e22f64db6cacd4134619 produced the same 117,932-byte opendevicerouter-0.1.0.tgz, SHA-256 4697dd16b17d794cd4ad42b6a476efb6663b6f0b0efd704bcd773a3b543af08d. An install from that archive exposed the three expected MCP tools, selected a local iOS simulator in a zero-cost dry run, and preserved a fixture ledger with zero usage and zero reservations.

Hosted measurements. Android, macOS 15 on ARM, macOS 26 on ARM, and the first-screenshot checks passed. On macOS 15 Intel with iOS 26.2, one cold simulator booted in 218 seconds and showed the fixture at 484.7 seconds. The warm first frame took 72.4 seconds. The parallel test reached one usable simulator. Both simulators at concurrency two exceeded the unchanged 300-second boot limit. GitHub canceled the Intel job before the second runtime produced evidence. Benchmark workflow · Intel result archive

Routing and evidence. The AWS route accounts for remaining trial minutes, active sessions and local reservations before allocation. It leaves the route unconfirmed when quota refresh fails. It verifies the selected and allocated device identity and reports unavailable interaction before allocation when the driver lacks an interactor. Earlier fixture acceptance exercised first screenshots on an iPhone 16 Pro simulator and an Android API 36 emulator. On Android, tapping the review button produced the expected order receipt. The owned device sessions closed afterward.

The source check passed. Merge requires all required CI and a genuine passing QA.army check for this head and matching archive. Intel CI and the QA.army check remain open. Source CI

ninan-versioning and others added 26 commits November 23, 2026 05:47
… runner matrix

- odr bench: cold, warm and parallel (iOS) sessions to the fixture's first frame via
  simctl / emulator + adb directly; Android tap-to-change; fixture built from source
  and excluded from timings. Writes simbench/v1 JSON and a 1200x630 share card
  (dependency-free PNG encoder, 5x7 pixel font, opendevicerouter.com palette).
- odr bench card | submit | validate. submit opens a public issue only when asked.
- bench/schema/simbench.schema.json: closed environment block (no hostname, user,
  serial, UDID); validator recomputes the summary from samples.
- Issue form + simbench-intake workflow: issue -> PR into
  bench/results/simbench/self-reported/; body parsed as JSON only, never shelled.
- bench-simbench-matrix workflow: macos-15, macos-26, macos-15-intel (two newest iOS
  runtimes each) and ubuntu-24.04 Android, weekly; per-session cost estimate from the
  published runner rate; publishes to main only from main.
- summarize.mjs: separate CI-verified and self-reported SimBench tables.
- METHODOLOGY: SimBench definitions, tiers and the parallel stop rule (written before
  any number is published). ROADMAP: benchmark-only posts allowed after gates 1, 3, 4.
- README: tagline no longer claims browsers or $0; SimBench usage.

Co-authored-by: Perplexity <noreply@perplexity.ai>
Co-authored-by: Perplexity <noreply@perplexity.ai>
…list_providers)

Hand-written newline-delimited JSON-RPC 2.0 over stdio, no new dependencies.
Handles initialize (protocol 2025-06-18, 2025-03-26, 2024-11-05), notifications,
ping, tools/list and tools/call. Tool input is validated by hand; bad input is a
tool error, unknown fields are rejected. Never allocates a device or touches a key.

docs/agents-without-a-mac.md: routes from a Linux sandbox (own machine, GitHub
macOS runner, own-key cloud accounts), key policy for restricted third-party
access, and MCP client config. Checked with the MCP Inspector CLI.

Co-authored-by: Perplexity <noreply@perplexity.ai>
Co-authored-by: Perplexity <noreply@perplexity.ai>
odr shot boots a fresh simulator or emulator, installs an app, captures the first
frame that differs from the pre-launch screen, then a second frame (after a centre
tap on Android, settled on iOS), and writes odr.shot/v1 JSON with timings.

actions/first-screenshot wraps it: builds the app (xcodebuild or Gradle) or takes a
path, posts both frames on the PR from an orphan odr-screenshots branch, and falls
back to the job summary plus an artifact on fork PRs. No pass/fail verdict.

Co-authored-by: Perplexity <noreply@perplexity.ai>
summarize.mjs writes bench/leaderboard.json (odr.leaderboard/v1) from the same results
as RESULTS.md; bench:check fails when it drifts. Rows are listed only for providers whose
benchmark_publication is allowed_with_replication or not_applicable; no_clause_found is
withheld until the vendor is notified, restricted is never listed, unknown is withheld.
GitHub-hosted rows predate the gate and stay listed with terms_checked false.

Co-authored-by: Perplexity <noreply@perplexity.ai>
Co-authored-by: Perplexity <noreply@perplexity.ai>
…not the system splash

Co-authored-by: Perplexity <noreply@perplexity.ai>
Co-authored-by: Perplexity <noreply@perplexity.ai>
SyncUps (swift-composable-architecture), CountriesSwiftUI and IceCubesApp on macos-26.
Job summary and artifact only.

Co-authored-by: Perplexity <noreply@perplexity.ai>
Co-authored-by: Perplexity <noreply@perplexity.ai>
…rst change

The first changed frame is often the system splash, even after am start -W returns.
Keep it as first-change.png; post first-screen.png (held for two polls) and the tap frame.

Co-authored-by: Perplexity <noreply@perplexity.ai>
On macos-15 and macos-15-intel, simctl io screenshot kept failing for over 60 s after
bootstatus returned, so every cold sample failed. 180 s matches the session SDK default.

Co-authored-by: Perplexity <noreply@perplexity.ai>
Same CI behavior as SimBench: simctl screenshots fail for a while after bootstatus returns.

Co-authored-by: Perplexity <noreply@perplexity.ai>
On macos-26 one N=2 simulator hit the 5 min bootstatus limit and the result only said
"Command failed". Errors now read "timed out after 300 s: ..." when execFile killed the child.

Co-authored-by: Perplexity <noreply@perplexity.ai>
… the OSS matrix

SyncUps failed in xcodebuild because CI cannot approve TCA's macro packages. The input is
off by default and on only for SyncUps. IceCubesApp main does not compile on the runner Xcode.

Co-authored-by: Perplexity <noreply@perplexity.ai>
…10 min for boot

-sdk iphonesimulator made xcodebuild build TCA's macro host tools against the simulator SDK,
so SyncUps could not load ReducerMacro. A busy macos-26 runner took over 5 min to boot one
Simulator; odr shot is not a benchmark, so it waits 10 min. SimBench keeps its 5 min cap.

Co-authored-by: Perplexity <noreply@perplexity.ai>
Device Farm sessions are created and stopped through the AWS CLI. Free-only routing uses a reconciled meter and refuses when the trial cannot be confirmed. odr onboard walks every registry provider; entries without a session driver stay stubs.

Co-authored-by: QA.army Engineering <engineering@qa.army>
@github-actions

github-actions Bot commented Nov 29, 2026 •

Copy link
Copy Markdown
Contributor

First screenshot: Android (odr-simbench, system-images;android-34;google_apis;x86_64)

First screen After a centre tap
Boot Install Launch to first change Launch to first screen Run to first change Tap to change
34.4 s 1.6 s 3.1 s 7.0 s 39.1 s 0.9 s

First change is the first frame that differs from the home screen, often the system splash (saved as first-change.png in the artifact). First screen is the frame that then held still for about 1.4 s.

Captured by OpenDeviceRouter odr shot 0.1.0. No pass/fail verdict: this shows what the app drew. Run.

@github-actions

github-actions Bot commented Nov 29, 2026 •

Copy link
Copy Markdown
Contributor

First screenshot: iOS (iPhone 17, iOS 26.2, 23C54)

First frame Settled
Boot Install Launch to first frame Run to first frame Tap to change
250.5 s 29.6 s 13.1 s 293.2 s not measured on iOS

Captured by OpenDeviceRouter odr shot 0.1.0. No pass/fail verdict: this shows what the app drew. Run.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants