Skip to main content

Agent Benchmark

Agent benchmark evaluates the Aico Go agent on phone UI, memory, planning, perception, and environment-control tasks. The current recommended entry points are:

  • WebUI for day-to-day runs, MobileGym concurrency, task-level logs/screens, and reports.
  • CLI for scripted runs, single-suite debugging, rejudge, and compare.
  • Agent experiments for comparing Aiden, pi, OpenClaw, Claude Code, and Codex on the same operation suites; see benchmark/experiments.md.

For the full manual, see benchmark/manual.md. For field definitions, units, denominators, and missing-value semantics, see the Metrics Reference.

Quick Start​

Dedicated Agent​

Start a benchmark daemon first. start-agent-daemon creates a dedicated config directory under runs/cli-services, copies only static configuration from config, and starts the daemon with fresh memory and other runtime state. Reusing a normal agent daemon would reuse its persistent state.

cd benchmark
uv sync

uv run python -m runner start-agent-daemon \
--name memory-quickstart \
--port 18081 \
--base-config-dir config

uv run python -m runner run \
--suite suites/memory_v1.json \
--agent-url http://127.0.0.1:18081

Use the stop_command printed by start-agent-daemon when the run is complete.

For notification memory, run the dedicated suite against a fresh daemon with a benchmark token. It injects deterministic raw notification fixtures, processes them through the real notification processor, and checks temporary-memory recall, OTP/marketing filtering, and multi-batch cursor drain:

uv run python -m runner run \
--suite suites/notification_memory_v1.json \
--auto-agent-setup \
--agent-config /path/to/agent.toml

This run enables the judge so the useful-notification answer and noise-filtering behavior are scored for effect. Add --no-judge when checking only the deterministic gates (fixture persistence through the benchmark endpoint, cursor advancement, memory count/scope, and required/forbidden tool calls). Raw JSONL preservation is covered by the Go integration tests rather than an Agent shell task. See the full manual for the corresponding Go performance benchmarks.

The notification suite also preloads existing temporary memories and validates the externally observable update, reinforce, remove, and promote paths. It uses ordered generic setup primitives and assert_memory; the runner does not contain action-specific notification logic. Source/evidence reference checks use the generic source_refs_contain/evidence_refs_contain assertion fields.

WebUI​

cd benchmark
uv run python -m runner webui

Open:

http://127.0.0.1:8765

The WebUI can start MobileGym environments, read bridge concurrency from /api/concurrent, start isolated agent daemon workers, and show task-level screen/log records.

MobileGym From CLI​

cd benchmark
uv run python -m runner start-mobilegym-env --envs 5 --bridge-port 19090

uv run python -m runner run \
--suite suites/mobilegym_basic.json \
--environment-url http://127.0.0.1:19090 \
--auto-agent-setup

--auto-agent-setup ignores --agent-url, reads bridge capacity from /api/concurrent, and starts one isolated agent daemon per active task worker.

Companion App Policy Without a Phone​

Use suite-level defaults or task-level mock_environment fixtures for deterministic Phone Bridge strategy tests. The runner simulates platform/app state and tool results, so contacts and similar app-side data do not require a physical phone or emulator. Task-level fixtures let one suite hold a runtime policy matrix without creating a JSON file for every case:

In the WebUI, select one or more mock suites and click Run selected suites. The run configuration changes to Mock Aico companion app environment, skips the device picker, and starts the task-level fixtures automatically. Mock and external-device suites must be run as separate jobs.

cd benchmark
uv run python -m runner run \
--suite suites/aico_app/phone_bridge_data_policy_v1.json \
--auto-agent-setup \
--no-judge \
--verbose

The Aico companion app cases are consolidated into two suites:

  • notes_entry_policy_v1.json: Notes is already open, its icon is visible, or neither is visible. The Agent respectively enters text directly, clicks the visible icon, or uses open_app.
  • phone_bridge_data_policy_v1.json: contacts, calendar query/create, clipboard read/write, and notification cases for iOS Dynamic Island restoration, iOS PiP, and Android FGS.

Scripted suites run their isolated workers with --benchmark-mock-tools, which requires a benchmark token and an environment bridge. Tool descriptions, schemas, availability filtering, and post-action screenshot verification are unchanged; only device-tool execution is sent to the fixture's /api/tools/<name> endpoint. The mock serves the native /api/phone-bridge/status object, so PiP, FGS, and Dynamic Island capabilities reflect the active fixture. An enabled FGS fixture reports a fresh heartbeat unless it sets fgs_bridge_updated_at explicitly. Mock policy runs do not validate internal app-restoration, paste, or command transports.

These mock fixtures do not emulate ble_service or a live iOS Wake subscriber, so they do not cover live BLE Wake capability discovery or delivery. Platform and Phone Bridge availability filtering still use the scripted status.

Headless isolated containers, which have no environment bridge, start benchmark-mcu before the daemon and point AICO_MCU_SERVICE_SOCKET at it. It emulates only the MCU firmware peer behind the real mcu_service code, so the schedule tool arms and cancels a real countdown and a due routine receives an RTC wakeup, as on a device. Battery reads return a fixed charge. LEDs are unsupported, and suspend and poweroff are refused. Bridged, MobileGym, and ADB environments do not start it. The entrypoint restarts the emulator if it exits; if it does not start, the daemon runs without an MCU service rather than failing every task.

Because the socket is present, headless daemons take the MCU wakeup path instead of reporting "socket unavailable", and schedule arms a real countdown instead of returning a socket error. Results for schedule-related tasks are not comparable with daily runs from before this change.

For iOS background without PiP, a reachable Dynamic Island return entry keeps the data tools visible. The Agent calls the requested bridge_* tool directly; the tool restores the Aico companion app internally before executing, so the Agent must not click the Dynamic Island or call bridge_open_app. With iOS PiP or Android FGS enabled, background-safe data tools execute directly through the background queue. bridge_open_app remains excluded because PiP/FGS do not provide background app launching.

The Notes cases use a fixed bridge_contacts result and require enter_text without a separate bridge_clipboard call. The generated screen is retained for runner pre/post artifacts and fixture state transitions; the policy tests do not require the Agent to inspect it. Scripted screen_contains preconditions prevent text entry before the fixture has actually reached the Notes editor.

The mock checks that the Agent chooses enter_text; it does not run the tool's internal paste fallbacks. In the real Go tool the order is Phone Bridge clipboard, quick_action paste, direct keyboard paste if the action errors, visual verification, then long-press Paste if the shortcut had no visible effect. Ordinary typing fallback belongs to enter_text.

Use real devices separately for iOS BLE pairing/Wake, the narrower BLE Wake allowlist, iOS PiP/Android FGS lifecycle, USB ECM, native permissions, actual background queue delivery, app launch behavior, and HID paste validation. Mock suites test their modeled policy and tool selection, not OS integration.

Time-independent memory fixtures​

A seed_memory item may set expires_in_sec to a positive integer of at most one year (31536000 seconds). The runner resolves it to an absolute expires_at immediately before each attempt, without changing the suite snapshot. Do not specify both fields. Notification mutation fixtures use a one-day lifetime so they do not expire as the calendar advances. Keep absolute timestamps only for tests that intentionally model expiry.

An inline recall result with results: null is a completed empty result, matching Go's nil-slice JSON encoding. Expected IDs missing from that result are an eligible recall failure, not a judge error. Missing or truncated evidence remains ineligible.

Reports​

Runs write a self-contained report under benchmark/runs/<run-id>/ or, for the WebUI, under benchmark/runs/webui/<job-id>/.

Reports include:

  • Suite/task status and pass rate.
  • Prompt, final response, hard assertion failures, rubric verdicts.
  • Tool trace extracted from agent history.
  • pre.jpg and post.jpg screenshots when an environment bridge is configured.
  • A View full trace action for manual inspection.

Judge uses only the pre/post screenshots plus trace/final response. It does not consume every intermediate screenshot.

CI requires every planned task to have a result row and the manifest totals to match those rows. Task-level failed, skipped, timeout, and judge_error remain visible in summary.md and report.html without automatically failing the workflow when all result artifacts are complete. A successful workflow means the benchmark produced complete artifacts, not that every task passed or every attempt was scored. Judge errors remain unscored evaluation errors; inspect eligibility and coverage before interpreting the score. Recorded attempts can be inspected and rejudged without repeating device actions.

A failed visual precondition (preconditions_passed=false) still fails the workflow because the starting state was invalid. A missing or invalid manifest, missing result rows or reports, inconsistent totals, or an unexpected runner exit also fails the workflow.

When artifact upload succeeds, the Actions job summary links the report bundle. To expose the same self-contained, interactive report.html directly from CI, configure both repository variables below. The publish step copies the generated HTML unchanged, so its layout and drawer interactions are identical to the WebUI report.

  • BENCHMARK_REPORT_PUBLISH_DIR: persistent directory served by a static HTTP server on the self-hosted runner.
  • BENCHMARK_REPORT_BASE_URL: public or internal URL mapped to that directory.

Direct report publishing is optional and does not affect the benchmark result. The repository GitHub Pages site is reserved for the APT repository and must not be used as this directory without a coordinated combined deployment.

Directory Structure​

benchmark/
├── runner/ # Python package
│ ├── main.py # CLI entry point
│ ├── suite.py # Suite loading
│ ├── runtask.py # Task execution
│ ├── judge.py # OpenAI-compatible LLM judge
│ ├── experiment.py # Agent experiment orchestration and comparison reports
│ ├── harness.py # Aiden and external agent execution adapters
│ ├── harnesses.py # Registry of comparable agent harness kinds
│ ├── operations.py # Shared business tools and environment preparation
│ ├── tool_gateway.py # Allowlisted business tool endpoint for external agents
│ ├── raw_tools.py # Neutral raw UI tools on the environment bridge
│ └── html_report.py # HTML report generation
├── suites/ # Benchmark suites
├── environment_bridge.md
├── experiments.md
├── manual.md
└── runs/<run_id>/ # CLI run results
├── manifest.json
├── results.jsonl
├── summary.md
├── report.html
└── tasks/<task_id>/
├── pre.jpg
├── post.jpg
├── history.json
├── trace.json
└── judge.json

CLI Commands​

run​

uv run python -m runner run --suite <suite.json> [options]

Common options:

  • --suite PATH - Benchmark suite JSON path.
  • --agent-url URL - Existing agent daemon URL.
  • --environment-url URL - Environment bridge URL for setup, pre/post screen capture, and release.
  • --auto-agent-setup - Start isolated agent daemon workers and schedule by bridge concurrency.
  • --agent-config PATH - Agent config used for auto-started daemon workers.
  • --no-judge - Only run hard assertions. Tasks with an unevaluated rubric are skipped and excluded from success rates until rejudged; assertion failures still fail.
  • --task-id ID / --task-ids A,B - Run selected tasks.
  • --repeats N - Override task repeats.
  • --execution-mode MODE - backend-text (default) or realtime-text. See Realtime Collaboration Benchmark.
  • --state-file PATH - Write progress JSON for WebUI or scripts.
  • --verbose - Print detailed rubric results.

Suites with suite-level or task-level mock_environment require --auto-agent-setup and must not also pass --environment-url; the runner starts the scripted bridge itself and activates the matching fixture before each task.

Auto-started Docker workers receive a host-resolved, read-only agent.toml. Credential references such as api_key = "$AICO_BENCHMARK_AGENT_API_KEY" must resolve on the host before the daemon starts. MobileGym endpoints also pass a functional setup / release preflight before workers are created.

MobileGym's bridge port must be reachable through the Docker host gateway on Linux. Fixed and automatically assigned bridge ports are bound to the Docker bridge gateway interface; the simulator web UI remains bound to loopback. The bridge is unauthenticated. Gateway binding does not isolate it from other containers on the same host; use a trusted benchmark host without untrusted workloads sharing the Docker daemon. Override AICO_MOBILEGYM_BRIDGE_BIND_HOST for a custom Linux bridge, a daemon host-gateway-ip, or Docker Desktop on Linux (127.0.0.1). Host-side /health success alone does not establish worker connectivity.

Auto-started workers receive the bundled skill files under config/skills. The Go Agent exposes their catalog summaries and the skill_read tool to the model; skill bodies enter the conversation only when that tool is called. There is no runner option that preloads a skill: the Agent decides on its own whether to read one, and skill_discovery_v1 measures exactly that decision. Use recorded skill_read calls to verify actual skill use.

Because skill text changes Agent behavior, every run records a skills_fingerprint in manifest.json:

"skills_fingerprint": {
"sha256": "...",
"skills": {"device-operator": "..."},
"source": "worker-config"
}

The digest is computed from each worker's copied skill tree when the run finishes, so an --agent-config or a SkillOpt candidate that replaced a SKILL.md is what gets recorded, not the repository checkout. source is worker-config when every worker agreed, mixed when workers disagreed (the null run digest keeps every per-skill digest seen, naming the diverging skill), and external-daemon for --agent-url runs, whose skill tree this process never configured and therefore cannot observe. An external-daemon run is not a like-for-like capability comparison.

The phone-control suite forbids request_user_action through each task's existing hard_assertions.forbidden_tools: these tasks require autonomous completion. Handoff is not a global failure policy for other suites.

rejudge​

uv run python -m runner rejudge --run-dir runs/<run_id>

Rejudge existing artifacts without re-executing tasks.

compare​

uv run python -m runner compare --runs runs/<run_a> runs/<run_b>

Compare task status flips, latency, and pass-rate changes between two runs.

experiment​

uv run python -m runner experiment --config experiments.example.json \
--agent-config /absolute/path/to/agent.toml

Run one agent experiment that compares Aiden and external agents on an existing operation suite against a MobileGym environment. Results are written below <out>/experiments/<experiment-id>/. Options include --suites-dir, --out, --daemon-image, --no-build-daemon-image, --judge-model, and --judge-base-url. See benchmark/experiments.md for configuration, fairness boundaries, and report semantics. The manually dispatched Agent Experiment workflow runs the same command on the benchmark runner.

Publish a completed run to Langfuse​

Publishing is a separate post-run step, so a failed upload can be retried without rerunning the Agent or device environment. Each stable suite name maps to one Langfuse Dataset, every task attempt maps to a stable Dataset Item, and each benchmark execution creates an Experiment Run with item-level and aggregate benchmark scores. Updating a suite upserts new Dataset Item versions instead of creating a new Dataset. Each new run also stores suite.json beside its manifest, so it remains publishable after the source suite changes.

The publisher writes explicit failures.class.environment and failures.class.evaluation counts, including zero, before capability scores. History defaults absent environment and evaluation failure counts to zero for compatibility with older publishers, which omitted zero-valued categories. Historical runs retain their capability rates without republishing artifacts. Explicit invalid counts still make the measurement unavailable, and missing task counts or capability scores remain unknown. Nonzero environment or evaluation counts mark coverage incomplete: workflow-level pass@1, pass@k, and pass^k are withheld, and weekly matched comparisons exclude datasets with incomplete window totals.

cd benchmark
export LANGFUSE_PUBLIC_KEY="pk-lf-..."
export LANGFUSE_SECRET_KEY="sk-lf-..."
export LANGFUSE_BASE_URL="http://127.0.0.1:3010"

uv run python -m runner publish-langfuse --run-dir runs/<run-id>

Runs with the same suite name appear in the same Dataset. The experiment metadata records the Git SHA, suite hash, workload hash, model, judge, platform, metrics schema, and fixed k. The workload hash covers only task and attempt keys. For a like-for-like regression, require matching suite hash, workload hash, k, Agent model, judge provider/model/prompt version, target platform, and skill fingerprint. When comparing models or judges intentionally, treat that changed field as the experiment axis and keep the other score-affecting metadata fixed. Runs from different suite versions can still be inspected in Langfuse, but their aggregate scores should not be treated as a like-for-like regression unless the unchanged item intersection is used or the old product version is rerun against the new suite definition. When an Agent episode ID is present, the experiment trace also records the deterministic Agent trace ID for correlation with Aico telemetry.

Publishing is idempotent by run ID. A retry verifies the Dataset Run Item set, adds any missing items, and rewrites scores with stable IDs. A conflicting run ID fails instead of silently mixing results. Langfuse's native Latency and Cost columns describe the artifact replay used to construct the Experiment Run; use the benchmark.*, efficiency.*, reliability.*, and cost_to_first_success.* scores for real benchmark measurements.

Artifact replay is intentionally serialized. Langfuse creates or finds the Dataset Run while linking each Dataset Item, and concurrent first-item requests can create duplicate same-name runs on self-hosted deployments. The publish CLI logs dataset/run identity, item preparation, replay, read-back retries, score publication, and the final CI publication totals so a partial ingestion is not mistaken for a successful publish.

The separate publish command is the CI integration point. A GitHub Actions job can run a suite with a unique run ID and publish the completed artifacts in a second step:

- name: Run benchmark
working-directory: benchmark
run: |
RUN_ID="ci-${GITHUB_RUN_ID}-${GITHUB_RUN_ATTEMPT}-${GITHUB_SHA::8}"
echo "RUN_ID=$RUN_ID" >> "$GITHUB_ENV"
uv run python -m runner run \
--suite suites/<suite>.json \
--run-id "$RUN_ID" \
<environment-options>

- name: Publish benchmark to Langfuse
working-directory: benchmark
env:
LANGFUSE_PUBLIC_KEY: ${{ secrets.LANGFUSE_PUBLIC_KEY }}
LANGFUSE_SECRET_KEY: ${{ secrets.LANGFUSE_SECRET_KEY }}
LANGFUSE_BASE_URL: ${{ vars.LANGFUSE_BASE_URL }}
run: uv run python -m runner publish-langfuse --run-dir "runs/$RUN_ID"

Historical dashboard and weekly report​

Latest results keeps scores, deltas, test-area filters, and failure evidence in view. Metric definitions and data-coverage notes are collapsed. Select a dataset to inspect its run comparison under Weekly trends → Run details: model, judge prompt, attempts per task, task and attempt counts, skills, and environment. Branch and commit identify each run; a branch change alone is not presented as a change to evaluation settings. A changed suite file is flagged with a source comparison link when both commits are known. This does not imply a semantic change: formatting alone can change the file fingerprint. Raw fingerprints, judge provider, and metrics schema remain in the report data for troubleshooting and are not displayed as a separate table. Task-selection metadata distinguishes a repetition change from changed coverage; older records without that metadata retain a general coverage-change notice.

The daily benchmark workflow generates dashboard.html with the last 7 days of pass@1 trends and efficiency metrics. A separate benchmark-weekly-report.yml workflow runs every Thursday and sends a Lark card summarizing the last 7 days and each dataset's change from its own previous 7 days, with a link to the dashboard. History comes from Langfuse v4 experiments and scores; neither downloads earlier Actions artifacts. Both workflows default to history from the workflow's branch. For a manual weekly report, set branch_filter to another branch or * for all branches.

See Cross-run dashboard and weekly report for credentials, report commands, time windows, and comparison rules.

GitHub Actions CI​

The benchmark workflow is .github/workflows/benchmark.yml. It deliberately uses the CLI runner rather than the WebUI, so every case has a stable exit code, self-contained artifacts, and an idempotent Langfuse publication step.

The source of truth for suite selection is benchmark/ci/suites.json. The CI catalog validation job fails when a new benchmark/suites/**/*.json file is not classified, which prevents a new suite from being silently omitted. A suite can be represented by more than one case when its tasks need different platforms; connection_capabilities_v1.json is currently split into iOS and Android cases.

The execution policy is based only on whether CI can prepare the environment:

TriggerProfilePurpose
Daily schedulerunnableAutomatic isolated, MobileGym, and ADB emulator cases (18 cases)
Manual dispatchrunnableRerun the same automatic cases, or explicitly select one or more suites
Manual dispatchhardwareADB, VPhone, desktop, and real-phone bridge cases (16 cases)
Manual dispatchadbNative Android comparisons, built-in app workflows, and Bridge capabilities on the configured emulator
Manual dispatchallEvery catalog case; requires all configured environments

The scheduled sweep runs at 02:07 Asia/Shanghai every day. It selects every case whose environment is isolated, mobilegym, or adb and whose catalog runnable flag is true. This includes both ADB comparison pairs (four cases) and the built-in app case on the runner's configured Android emulator. ADB cases remain available through the manual hardware profile and use the same exclusive device lock in every profile. The all profile runs each catalog case once, without duplication. The workflow starts Android MobileGym environments in Docker; isolated and mock suites run with isolated Agent workers and need no external device. VPhone is currently excluded because it requires a separately hosted macOS Apple Silicon bridge; it remains available through manual hardware/all dispatch once BENCHMARK_VPHONE_ENVIRONMENT_URL points to a reachable bridge.

The 100-task MobileGym calibration suite is excluded from the automatic sweep; it remains explicitly selectable for a manual calibration run. A manual single-suite run must use the matching runnable, hardware, or adb profile; use all when intentionally overriding that boundary. The suite input also accepts comma-separated paths, such as suites/quick_capture_v1.json,suites/notification_memory_v1.json; each path is selected under the same profile rule, in the order given.

For a phone-control baseline in MobileGym, manually dispatch with profile runnable, suite suites/phone_control_v1.json, and repeats 1. CI prepares the Android-style MobileGym simulator automatically; no external iOS bridge is required. This case is available through manual dispatch only. The iOS-only Bluetooth search task is filtered out, leaving 17 applicable tasks. Simulator support and setup failures must be reviewed separately from Agent capability failures. The same suite with profile hardware selects the external iOS case; profile all selects both environments.

For native Android, dispatch profile adb with suites/adb_android_basic.json for general operations, suites/adb_android_text_editing.json for text editing, or suites/adb_android_builtin_apps.json for Chrome, Maps, Camera, Photos, Files, Messages, Clock, and Contacts workflows. Leave the suite input blank to run both comparison pairs, the built-in app suite, and the dedicated Bridge capability suite (six cases). See Android suites for coverage and device prerequisites.

Cases may declare task_ids to reuse a subset of an existing suite. IDs must exist, be unique, and support the case's target platform. An empty list selects the entire suite, subject to platform filtering. ADB cases require concurrency 1.

When a suite has cases in multiple environment profiles, an explicit suite selection runs only cases belonging to the requested profile. A selection with no matching case remains an error.

Pull requests run the catalog and planner tests in the normal CI workflow, but do not receive Agent/Judge/Langfuse secrets and therefore do not operate a device. Real benchmark execution comes from the daily schedule on the default branch or a manual workflow_dispatch on any repository branch. Manual dispatch remains unavailable to pull request and fork refs.

The workflow expects these GitHub configuration values. GitHub-facing names omit the AICO_ prefix; the workflow maps them to the runner variables documented below.

  • Variables: BENCHMARK_REPEATS, BENCHMARK_AGENT_PROVIDER, BENCHMARK_AGENT_MODEL, BENCHMARK_AGENT_BASE_URL, BENCHMARK_JUDGE_MODEL, BENCHMARK_JUDGE_BASE_URL, DAEMON_IMAGE, BENCHMARK_ANDROID_SERIAL, BENCHMARK_ANDROID_SDK_DIR, LANGFUSE_BASE_URL, BENCHMARK_PHONE_ENVIRONMENT_URL, BENCHMARK_IOS_ENVIRONMENT_URL, BENCHMARK_MAC_ENVIRONMENT_URL, BENCHMARK_VPHONE_ENVIRONMENT_URL, BENCHMARK_AICO_APP_IOS_ENVIRONMENT_URL, and BENCHMARK_AICO_APP_ANDROID_ENVIRONMENT_URL.
  • Secrets: BENCHMARK_AGENT_API_KEY, BENCHMARK_JUDGE_API_KEY, LANGFUSE_PUBLIC_KEY, and LANGFUSE_SECRET_KEY.

The realtime collaboration suite also uses the BENCHMARK_REALTIME_* settings described in Realtime Collaboration Benchmark.

Set the repository variable BENCHMARK_REPEATS to a positive integer such as 3 to repeat each task in scheduled and manual runs. A nonempty manual repeats input overrides that variable for one run; leave it blank to use the repository setting. If neither is set, the workflow uses 1. The report derives metrics_k from the planned task repeats; no separate metrics variable is needed.

ADB cases need a booted Android device or emulator reachable from the runner host. Set BENCHMARK_ANDROID_SERIAL to its adb serial, for example emulator-5554; the workflow passes it to the runner as ANDROID_SERIAL. When adb is not already on the runner's PATH, the workflow uses <sdk>/platform-tools/adb, where <sdk> is the optional BENCHMARK_ANDROID_SDK_DIR variable and defaults to ~/android-sdk. Before any ADB case starts, the workflow waits for the device to finish booting and then checks that com.android.systemui is running and uiautomator dump returns a hierarchy. sys.boot_completed alone is not enough: SystemUI can stay dead after a GPU hang while the device still reports a finished boot. On the self-hosted runner, a failed UI check or an android-emulator.service cgroup above 16 GiB restarts that service once and runs the same checks again. The guest RAM limit is 4 GiB; a fresh service is about 8 GiB because SwiftShader sits on top of that. The rest of a long-lived process is the host RenderThread leak. A device that still has no usable UI fails the job before cases start.

When any selected case enables Aico App, CI reads the current release filename from the unversioned distribution URL and compares its versionCode with the link.aico.app package already installed on the emulator. It downloads and installs the APK only when the versions differ. The job summary records the release filename, installed versionCode, and whether installation was reused; when an APK is downloaded, it also records its SHA-256. A republished APK with the same versionCode is treated as the same release. Installation runs once per job. When installation or emulator routing fails, only the Aico App cases fail with aidenbridge_setup_failed; every other case still runs and publishes, and the job still fails.

The text-editing suite runs as a matched pair using the same JSON tasks, setup, prompts, rubrics, repeat count, and one worker:

SuiteWithout Aico AppWith Aico App
adb_android_text_editing.json (4 tasks)adb_android_text_editingadb_android_text_editing-aidenbridge

adb_android_basic.json (16 tasks) runs only without Aico App. Its navigation, back, recents, and scroll tasks use ADB screenshots and input in both variants, and its open_app calls fall back to visible search whenever the companion App is in the background, so a connected variant measured the same execution path. Text entry is the general Android workload whose route depends on Phone Bridge: a background-safe clipboard write followed by paste, instead of ADB key input.

These task definitions are synced from main commit 16ab57b50c68a91a05915a4112f8bc2a896170af. Basic tasks cover general UI navigation and state recovery; text-editing tasks cover ASCII spaces, punctuation, replacement, and clearing. The phone_control_v1.json suite remains registered for MobileGym and iOS, without an additional ADB case.

The text-editing pair runs in the daily runnable sweep. Selecting that suite manually with runnable, hardware, adb, or all also runs both variants. The baseline stops any retained companion App before starting and uses the ADB environment without a Phone Bridge connection. The connected variant establishes Phone Bridge on each task Agent while ADB continues to provide screenshots and input. Both variants retain the task's prepared screen; the connected variant does not bring the companion App to the foreground after task setup. ADB cases run exclusively on the shared emulator, including scheduled runs.

The companion App reaches the board only after binding to a USB or Ethernet Android Network that routes to the board subnet, and the emulator has neither. In the foreground the App refuses to open its WebSocket without that bind; in the background its foreground service (FGS) polls the HTTP command queue only over that network. For runs that contain runnable Bridge tasks, the runner therefore gives the rooted emulator a board-like link; skipped tasks do not trigger this setup:

  1. The runner checks the android.hardware.ethernet feature and its static eth1 configuration (192.168.42.2/24) independently. If the feature is missing, it bind-mounts a copy of /vendor/etc/permissions that adds it. If the stored configuration differs, it installs the benchmark configuration. Either change triggers one Android framework restart so EthernetService loads the configuration. The bind mount is lost on reboot, so both checks run on every Bridge run.
  2. It adds a veth pair, eth1 with peer aicobd (192.168.42.1/24), which Android provisions as an Ethernet network. The App binds its board clients to that network. Requests to 192.168.42.1:8080 still reach the task Agent through the existing iptables DNAT rule and adb reverse.
  3. Background tasks wait for the Agent to report fgs_bridge_enabled=true and fail setup otherwise, instead of silently falling back to ADB text input. The runner removes the veth pair when the run ends. CI also removes it in the parent case's cleanup after terminating a timed-out runner, before another case can use the shared emulator. The workflow's always-run cleanup provides a further backstop for job cancellation.

While eth1 exists, Android prefers it as the default network, so the emulator has no internet access. Settings text editing and the Aico App capability tasks do not need it, and runs without Bridge tasks never create the link.

Run IDs distinguish the variants, and manifest.json/Langfuse metadata records execution_environment as adb or adb_aidenbridge. The dashboard shows ADB device and ADB + Aico App in its configuration comparison and run history. Compare matching tasks from the same workflow attempt/model/repeat count using pass rates, tool calls, task time, and token/cost metrics. Historical runs with different suite hashes are not a controlled Bridge comparison.

aico_app/android_bridge_capabilities_v1.json is the connected Aico App suite. It tests Bridge-specific APIs rather than serving as the no-Bridge comparison workload. It explicitly starts its tasks with the companion App in the foreground. It runs with a rooted Android emulator and one Agent worker, checks the Phone Bridge connection per task, and covers clipboard round trips, semantic app and URL opening, calendar create/query/delete, contacts create/query/update, local notifications, and single-line and multiline Unicode text entry. The write tasks use reserved fixtures (AidenBridgeBenchmark local calendar, AidenBridgeBenchmarkContact contact, and the Messages draft for +12025550147). The runner removes only those fixtures before and after each write task, including failures. Per-task ADB setup only returns the emulator to the home screen, and Messages restores a saved draft on the next open, so the SMS draft fixture opens that recipient with a sentinel body and clears it. Calendar/contact write permissions are granted on the CI emulator. Text-entry tasks require both a new clipboard-write diagnostic event from the App and the exact text in a non-Bridge Android input field; its evidence is included in results.jsonl and the local android_bridge_input.json task artifact. If input evidence cannot be collected, the input assertion is unknown; an otherwise passing task becomes an evaluation error. Cleanup failures retain the completed task result and are recorded in android_bridge_cleanup_error and the worker log. Select this suite with the hardware profile to run only the connected App cases. This dedicated capability suite also runs in the daily runnable sweep.

This suite replaces the former separate android_bridge_data_v1.json suite. It does not claim coverage of iOS-only transports, BLE notification forwarding, or every permission/background failure mode. Scheduled notification delivery and optional calendar reminders also need separate device-side assertions.

The benchmark job uses the aiden-hosted-02 runner by default (override with AICO_RUNNER_PRIMARY) because the MobileGym and agent-daemon paths require Docker. One job performs checkout, dependency and Docker setup once, prepares the reusable images, and fans the selected cases out with a configurable concurrency limit. MobileGym cases are scheduled first so multiple container-backed benchmarks can overlap; hardware-backed cases share an exclusive lock to avoid device/bridge contention. Every completed run uploads a 14-day diagnostic bundle containing its manifest, metrics, results, summary, HTML report, suite snapshot, setup/case logs, and an image-build log when an image had to be built. The upload is retried once after a transient failure. The per-task trace and screenshot tree is omitted to keep the bundle reliable on the self-hosted runner's constrained uplink. The bundle is sufficient to inspect statuses and retry runner publish-langfuse; generated worker configs are also excluded because they contain materialized Agent credentials.

Runner and Local CLI Environment Variables​

  • AICO_BENCHMARK_AGENT_PROVIDER - Agent provider type for the default config template.
  • AICO_BENCHMARK_AGENT_MODEL - Agent model for the default config template and run manifest.
  • AICO_BENCHMARK_AGENT_BASE_URL - Agent model endpoint for the default config template.
  • AICO_BENCHMARK_AGENT_API_KEY - Agent credential embedded in the generated read-only config.
  • AICO_BENCHMARK_JUDGE_MODEL - Default judge model.
  • AICO_BENCHMARK_JUDGE_BASE_URL - Default OpenAI-compatible judge endpoint.
  • AICO_BENCHMARK_JUDGE_API_KEY - Required when judge is enabled.
  • AICO_BENCHMARK_ANALYSIS_API_KEY - Optional post-run analysis credential; defaults to the Judge key.
  • AICO_AGENT_URL - Default --agent-url.
  • AICO_ENVIRONMENT_URL - Default --environment-url.
  • AICO_DAEMON_IMAGE - Default daemon worker image for auto agent setup.
  • AIDEN_BENCHMARK_PI_EXECUTABLE - pi executable for agent experiments.
  • AIDEN_BENCHMARK_PI_API_KEY - Default credential variable for external agent custom endpoints.
  • AIDEN_BENCHMARK_OPENCLAW_EXECUTABLE - OpenClaw CLI for agent experiments.
  • AIDEN_BENCHMARK_OPENCLAW_NODE - Node runtime used to run OpenClaw.
  • AIDEN_BENCHMARK_CLAUDE_CODE_EXECUTABLE - Claude Code CLI for agent experiments.
  • AIDEN_BENCHMARK_CODEX_EXECUTABLE - Codex CLI for agent experiments.
  • LANGFUSE_PUBLISH_VERIFY_TIMEOUT_SECONDS - Maximum publication read-back wait; defaults to 660 seconds to cover Langfuse asynchronous ingestion lag.

Execution Modes​

  • Existing agent: CLI talks to one already-running Go agent daemon.
  • Auto agent setup: CLI starts isolated daemon workers and uses an environment bridge for tools/screens.
  • WebUI: manages suites, jobs, environments, workers, task screens, logs, and persisted job records.

The benchmark suite format is shared across physical devices and MobileGym. Independently of these daemon setups, --execution-mode selects the agent path under test: backend-text (default) for the backend Agent alone, or realtime-text for realtime foreground and backend collaboration. SkillOpt is independent and lives under skillopt/; it may call benchmark runner APIs, but benchmark does not expose SkillOpt runs, suites, or reports.