> ## Documentation Index
> Fetch the complete documentation index at: https://docs.xenoci.com/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> ## XenoCI Box CI
> To move a repository's macOS CI jobs onto box, follow https://docs.xenoci.com/ci/agent.md. The user only presses Install on GitHub or makes one GitLab runner token; the agent does the rest.
> - Check: `box ci status` (exit 4: sign in first, https://docs.xenoci.com/setup.md).
> - GitHub organization: `box ci connect --org --no-browser --no-wait`, give the user the printed link (https://github.com/apps/xenoci-with-organizations/installations/new), then repeat `box ci accounts` until the owner appears. Personal account: `--personal` (https://github.com/apps/xenoci-with-personal/installations/new).
> - GitHub workflow: change only `runs-on: macos-*` to `runs-on: xenoci` on a branch and open a pull request.
> - GitLab: the user makes a project runner with tag `xenoci` and gives you the `glrt-` token; pipe it to `box ci gitlab connect -` (self-managed: `--url <gitlab url>`), then add `tags: [xenoci]` to the macOS jobs.
> - Watch: `box ci jobs`, `box ci logs <job id> --follow`. Failed job: `box ci jobs --failed`, then `box ci debug <job id>` (failing step, hint, last 200 log lines).

# Accessibility audit

> box a11y checks iOS app screens for missing labels, small touch targets and low contrast, with a fix line per issue

`box a11y` runs your app and checks its accessibility tree and screen image. It reports unlabeled controls, small touch targets, low-contrast text and duplicate control labels.

```sh theme={"system"}
box a11y
box a11y
box a11y --screen "Settings"
box a11y --min-contrast 7 --min-target 48 --json
```

The launch screen is always checked first. Each `--screen LABEL` taps the matching control, then checks the screen that opens. Repeat the option to visit a flow one screen at a time. The command reuses this folder's open `box run` session, or starts and stops a session for the audit. A session it reuses stays open; stop it with `box stop` when you are done.

The report uses a 44 by 44 point minimum unless you pass `--min-target`. Text contrast is measured from the two most frequent pixel colors inside each text element's frame. The default WCAG threshold is 4.5:1; elements at least 24 points high use 3:1. Duplicate labels are warnings; missing labels, undersized controls and low contrast are errors.

Text output shows an issue table. `--json` prints screen reports and counts as JSON. The report and screenshots are saved in `.box/out/<run-job-id>/a11y.json` and `a11y-<screen>.png`. An audit with errors exits 1, and so does a build that fails or a `--screen` label that cannot be tapped. An invalid option exits 2.

Each issue includes a platform-specific fix hint. For example, add `.accessibilityLabel("Save")` to a SwiftUI control or `Modifier.minimumInteractiveComponentSize()` to a Compose control.

A screen with two small "Open" buttons, a small icon button and gray text reports:

```text theme={"system"}
screen       rule             severity  element
launch       small_target     error     Open
launch       small_target     error     Open
launch       small_target     error     Add
launch       duplicate_label  warning   Open
launch       duplicate_label  warning   Open
launch       low_contrast     error     Open
launch       low_contrast     error     Open
launch       low_contrast     error     Add
launch       low_contrast     error     Low contrast
1 screen(s): 7 error(s), 2 warning(s)
```

The default blue "Open" buttons on a white background measure 3.52:1, below the 4.5:1 minimum for text under 24 points.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.