|
2 | 2 |
|
3 | 3 | Thanks for taking the time to improve Simulator Broker. |
4 | 4 |
|
5 | | -## Setup |
| 5 | +This page has two tracks: |
| 6 | + |
| 7 | +1. **Public patches** — Node.js 20 and the Node test suites. You do not need |
| 8 | + the agent harness or a Codex session directory. |
| 9 | +2. **Maintainers and agent runs** — the existing `agent:context` / |
| 10 | + `agent:verify` / `agent:complete` flow. |
| 11 | + |
| 12 | +## Public patches |
| 13 | + |
| 14 | +Use this track for a small public change: a spec tweak, a CLI or broker-core |
| 15 | +fix, a doc edit, or a focused app patch. |
6 | 16 |
|
7 | 17 | Requirements: |
8 | 18 |
|
9 | | -- macOS with Xcode and iOS Simulator support |
10 | | -- Node.js LTS |
11 | | -- `xcodegen` on `PATH` |
| 19 | +- Node.js 20 or newer on `PATH` |
| 20 | +- macOS with Xcode and iOS Simulator support for work that talks to simulators |
| 21 | +- `xcodegen` on `PATH` only if you change or build the macOS app |
12 | 22 |
|
13 | | -Install and verify from the repo root: |
| 23 | +From the repo root, run the Node suites that match what you changed. These |
| 24 | +commands do not go through `agent:*`: |
14 | 25 |
|
15 | 26 | ```bash |
16 | | -npm install --package-lock-only |
17 | | -npm run agent:catalog -- --format md |
18 | | -npm test |
| 27 | +npm run test:broker-core |
| 28 | +npm run test:client |
| 29 | +npm run test:harness-adoption |
19 | 30 | ``` |
20 | 31 |
|
21 | | -The macOS app project is generated locally and is not checked in: |
| 32 | +App work also needs XcodeGen and `npm run test:app`. The full suite is |
| 33 | +`npm test`. |
22 | 34 |
|
23 | | -```bash |
24 | | -npm run build:app |
25 | | -``` |
| 35 | +You do not need to run `agent:context`, `agent:verify`, or `agent:complete`, |
| 36 | +and you do not need to create a task session directory. |
26 | 37 |
|
27 | | -## Development Workflow |
| 38 | +### Pull requests |
| 39 | + |
| 40 | +- Keep changes focused and reviewable. |
| 41 | +- Include tests or explain why a deterministic test is not available. |
| 42 | +- Keep private or local context out of committed files. |
| 43 | +- Do not commit generated Xcode projects, derived data, local broker state, |
| 44 | + credentials, machine-specific paths, or task-session artifacts. |
| 45 | + |
| 46 | +## Maintainers and agent runs |
| 47 | + |
| 48 | +Use this track for maintainer work and agent runs that follow the product |
| 49 | +harness. Harness enforcement is unchanged: `agent:complete` still requires |
| 50 | +structured commits, selected verification profiles, and session artifacts. |
28 | 51 |
|
29 | 52 | Before editing, identify the changed paths and create a task session: |
30 | 53 |
|
31 | 54 | ```bash |
32 | | -npm run agent:context -- --paths <files> --session-dir "$HOME/.codex/agent-harness/simulator-broker-app/<session>" |
| 55 | +npm run agent:context -- --paths <files> --session-dir <session-dir> |
33 | 56 | ``` |
34 | 57 |
|
35 | 58 | Run every verification profile reported by the context command. Specs and |
36 | | -harness-only changes normally require: |
| 59 | +docs normally require: |
37 | 60 |
|
38 | 61 | ```bash |
39 | | -npm run agent:verify -- --profile spec-only --paths <files> --session-dir "$HOME/.codex/agent-harness/simulator-broker-app/<session>" |
| 62 | +npm run agent:verify -- --profile spec-only --paths <files> --session-dir <session-dir> |
40 | 63 | ``` |
41 | 64 |
|
42 | 65 | Implementation changes normally require: |
43 | 66 |
|
44 | 67 | ```bash |
| 68 | +npm run agent:verify -- --profile implementation --paths <files> --session-dir <session-dir> |
45 | 69 | npm test |
46 | 70 | ``` |
47 | 71 |
|
48 | | -## Pull Requests |
| 72 | +Close the session with: |
49 | 73 |
|
50 | | -- Keep changes focused and reviewable. |
51 | | -- Include tests or explain why a deterministic test is not available. |
52 | | -- Keep private/local context out of committed files. |
53 | | -- Do not commit generated Xcode projects, derived data, local broker state, |
54 | | - credentials, machine-specific paths, or task-session artifacts. |
| 74 | +```bash |
| 75 | +npm run agent:complete -- --session-dir <session-dir> |
| 76 | +``` |
55 | 77 |
|
56 | | -Meaningful task commits should use the structured sections documented in |
57 | | -`AGENTS.md`. |
| 78 | +Meaningful task commits use the structured sections documented in |
| 79 | +[AGENTS.md](AGENTS.md). |
0 commit comments