Gym

From ziyzhu/openox · View interactive version

Gym is an AI agent skill from the GitHub repository ziyzhu/openox. Simulate diverse persona-conditioned users through Ox's live iOS interface with Mock or bounded real model providers, using seeded sessions to surface functional, UX, visual, accessibility, performance, reliability, provider, state, privacy, localization, and observability issues. Use for explorator

How to use this skill

Skill file

Ox Gym

Exercise Ox as a user would, preserve observable evidence, and return prioritized findings. Treat synthetic-user results as exploratory until they are calibrated against real user behavior.

Read the relevant guidance

Use the simulator setup and Ox CLI guides. Consult installed tool help instead of guessing flags.

Relationship to deterministic tests

Ox Gym does not replace build checks or storage backward compatibility. It explores

realistic combinations and surfaces evidence fixed checks may miss.

Do not use Gym as an archive for deterministic regression runners.

Roles

Keep one coordinator responsible for the campaign, simulator allocation, guardrails, reproduction, and final findings. Use one isolated driver per active session when possible; otherwise the coordinator drives sessions sequentially from their manifests and reports the lack of driver isolation. Give each isolated driver only its manifest, instructions, simulator, evidence directory, and constraints, not suspected bugs or conclusions from other sessions.

The user driver is distinct from the Ox model provider under test. Hold the driver model and instructions stable when comparing Ox providers or builds.

Modes

Default to explore. Use a recorded seed for every campaign and derived seed for every session. Randomize conditions, not meaningless taps.

Workflow

  1. Resolve mode, session count, providers, comparison targets, authorized effects, and available numbered QA simulators. Default to six sessions when the request gives no count; session count is not simulator count. Do not make paid real-provider calls unless the current request authorizes them and their count is bounded.
  2. Discover configured models and eligible dimension values, then generate the session plan and its owned /tmp/ox-gym.* directory with scripts/plan-run.ts. Pass supported additional axes with --dimension, provider and model identifiers only, and never credentials. Pass --authorize-real only when the current request authorizes real-provider calls. Use --previous only when the user explicitly supplies prior ephemeral manifests for cumulative coverage.
  3. Materialize every selected dimension into concrete setup, prompts, fixtures, and actions before starting the session. Verify the provider and language, then set materializationStatus, providerVerification, and executionAuthorized to ready values. Never run a planner-only session. Remove or mark a value unavailable when it cannot actually be exercised. Keep manifests, logs, screenshots, short screen recordings, traces, and reports inside the planner-created directory. Do not write campaign artifacts into the repository or a Profile.
  4. Follow simulator setup for reservation, runtime, and common-state rules. Claim only fixed ox-1 through ox-5 simulators. Give every concurrent process its own numbered simulator and matching service and debug ports from .agents/skills/setup/scripts/qa-config.ts; use its repository port only for explicit repository installation or sync verification.
  5. Before interaction timing begins, build with xcodebuild and install through simctl, launch Ox with bundled services, discover its Host, and establish the session's initial simulator appearance, language, model, and state. Reuse a verified prebuilt app where appropriate, but rebuild and reinstall after switching worktrees.
  6. Run sessions sequentially on the reserved simulator by default. Only use multiple simulators when parallel execution is requested; bound concurrency to the requested level and available resources, keeping one coordinator slot available. Have each driver follow the session protocol and return structured evidence.
  7. Aggregate candidate issues. Reproduce performance regressions and ambiguous high-severity findings sequentially on one owned simulator without competing QA activity. Coordinate or defer clean performance measurements when other agents have active simulators; never interrupt their work. Parallel simulator or provider contention invalidates clean performance comparisons.
  8. On completion, failure, or interruption, follow setup's boot-state cleanup rules: shut down devices this campaign booted unless ownership was handed off, leave previously booted devices running, and release campaign-owned claims. Write findings.md and update campaign.json inside the owned temporary directory. Report cleanup state, session outcomes, strongest findings, coverage gaps, limitations, and exact report path.

Non-negotiable boundaries

Completion

Finish when all planned sessions are terminal or interrupted, cleanup has been attempted, candidate findings have been triaged, and the temporary report is usable. If setup fails, still produce a report that names the exact boundary, affected coverage, evidence available, and cleanup state.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.