Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

## Unreleased

- `test-as-user` checks the sandbox before the planner describes it. CLI and docs walkers get a browser. Blockers are planted on the destination as well as the link. The skill says how to start a blinded walker that cannot hang or lose its transcript. The scorer no longer flags a shell that only writes the walker's log, and it now flags a visit to a URL taken from a hidden element. One merge pass reads every kept finding before the fixes start.
- New skill: `readable` makes text written for another person clear on the first read. It cuts AI writing tropes, rebuilds the sentences at 80% of ASD-STE100 and keeps every fact and link. The skills that write for other people now run their text through it. For English text it runs `scripts/check.py`, which fails on dashes, semicolons, long sentences, stock words and phrases, bold labels and Title Case headings.
- New skill: `tidy-repo` sweeps an established repo without changing what it does, refreshes the living docs and leaves guards that keep it clean.
- New skill: `test-as-user` uses the running product as new, advanced, self-hosting and agent users would, on every surface it has. A separate scorer reads each walk for shortcuts, a verifier checks each finding, and fixes stop at what makes an existing job doable. Every fix is walked again, and the product repo keeps the results in `docs/user-journeys.md`.
Expand Down
8 changes: 6 additions & 2 deletions codex/skills/test-as-user/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ Done when every surface has a row with an entry point and its origin, or is out

### 2. Write personas, journeys and briefs

Check the machine the walks will run on before the planner writes a brief, because a brief that promises a missing tool sends every walker the wrong way. Start each runtime the documented journeys need, such as a JVM. When a journey uses a container runtime, also run one container with a bind mount from the walk folder. A container runtime inside a VM often shares only the home folder. Seed the clean home folder with what a real user already has, such as the package manager on `PATH`. Give the planner what started and what did not. When a runtime cannot start on this machine, its journeys are unverified here. Walk them on a machine where it starts, or list them as not reached.

The planner works from the user-visible rows of `surfaces.md`, the README, the docs and the help text. It never reads the source, so the journeys follow what the product promises. The personas, the basic journeys and the brief template are in [references/journeys.md](references/journeys.md).

A journey is a goal in the person's words, a done condition, a starting state and a budget. The done condition says what the person has or knows ("you know what you spent on food in October"). It never names a screen or a URL. Order the journeys as a person meets them: install, sign in, get data in, then the main jobs.
Expand Down Expand Up @@ -109,9 +111,9 @@ Then the scorer reads each transcript. It gives each journey one outcome against
- a read of the product's source, its dotfiles, its instruction files or the journey report
- a fetch of the product's source repo or its built bundles. A clone or download that the install docs ask for is allowed. Reading the source after it is still flagged.
- a URL with no allowed source. Allowed sources are the brief's entry point, a link on an earlier page, and a URL shown in the docs, the help output or a response.
- `curl`, `grep` or a script on a web or phone walk
- any shell command on a web or phone walk, such as `curl`, `wget`, `grep` or a script, except one that only writes the walker's own log
- a screenshot taken and never read
- a click on an element not visible in the last screenshot
- a click on an element not visible in the last screenshot, or a visit to a URL taken from such an element. An accessibility snapshot lists hidden elements too.

Any flag caps that journey at "done with help". A read of the source or an instruction file voids every pass in that walk, and its failures still count as findings. The scorer also records the time to the first useful result, from transcript timestamps.

Expand Down Expand Up @@ -139,6 +141,8 @@ Before it calls an API broken, the verifier reads the request that the product's

For a security problem (an auth bypass, a data leak), draft a report for the repo's private security channel. Show the user the exact text and send it only on their yes in the session. Fix it only through a private advisory fork, or leave the fix to the user. Never fix it in a public PR. It stays out of the report, PR bodies and screenshots until its fix lands.

Verifiers that each take one group of walks cannot merge findings across groups, and several walkers often report the same line. So before step 8, one merge pass reads every kept finding together.

Done when every candidate is reproduced or intermittent with evidence, or dropped with a reason. With `--no-fix`, go to step 10.

### 8. Fix what makes an existing job doable
Expand Down
26 changes: 23 additions & 3 deletions codex/skills/test-as-user/references/walkers.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,40 @@ Each surface gets its own kit. Give a walker only its kit, where the harness let
| --- | --- | --- |
| Web | A browser driver with a fresh profile at desktop size. No shell | A primary button that does nothing |
| Phone | The same, with touch emulation (`hasTouch`, `isMobile`, a phone user agent) at phone size | The main action hidden behind hover |
| CLI and install | A shell in the sandbox with a clean home folder, and the published docs | A wrong command in the README, or a flag that silently does nothing |
| CLI and install | A shell in the sandbox with a clean home folder, and the published docs in a browser | A wrong command in the README, or a flag that silently does nothing |
| HTTP API | A shell where `curl` is the surface, and the published docs | A documented example that returns an error |
| MCP | An agent client with only the product's MCP server, set up from the docs and started only through the launcher rule in step 3. No browser. Otherwise a scripted client (the MCP Inspector CLI), and the agent-driven goals are not reached | A tool whose description sends the agent the wrong way |
| Docs | The published docs, and the shell the docs ask for | A quick start step that is missing |
| Docs | The published docs in a browser, and the shell the docs ask for | A quick start step that is missing |
| Email | The fresh mailbox's web inbox, open in the same browser as the Web or Phone kit | A reset or sign-in link that lands on a 404 |
| Native app | The published installer for the walker's platform, and the iOS Simulator or an Android emulator for a phone app | A release asset built for the wrong CPU architecture |

For a URL target, plant the blocker with request interception instead of a rebuild.
People read docs in a browser while they type in a terminal. A CLI or docs walker with a shell only, and a rule against `curl`, stops at the first doc page.

## Planting

- For a URL target, plant the blocker with request interception or a browser init script instead of a rebuild.
- Plant on the destination as well as on the link. A walker that sees an address as plain text types it and skips a dead link.
- A hover-only plant can be skipped by opening a URL from the accessibility snapshot. The scorer flags that visit, but the plant is not caught until the verifier reproduces it as a finding. When the walker skipped it, plant it where the walker will meet it and walk again.
- For the CLI kit, point the documented clone at a planted local copy with git's `url.insteadOf` in the walker's clean home folder. Add both the `.git` form and the bare form of the URL, or the clone URL ends in `.git.git`.
- Run the verifier inside the planted environment too.

## Starting a walker

- A sub-session that the harness starts for the orchestrator can open in the orchestrator's project, whatever folder you ask for, and then it loads that project's instruction files. Such a sub-session fails the context check in step 3 and cannot walk. Use it only for stages that may read the source. A sub-session that starts outside the repo and passes the check can still walk.
- A headless agent CLI started from a shell with no terminal can wait forever for more input. Close its standard input.
- A headless agent CLI can refuse MCP tool calls when it has nobody to ask. Set the walker's browser server to approve its own tool calls, and no other server.
- For a clean home folder, set `HOME` after the launcher and call the agent binary itself. A launcher or wrapper that reads `HOME` breaks when `HOME` changes first.
- An agent account can carry its own skills and plugins. The harness note tells the walker to use none.
- Put anything one walk hands to the next, such as an address or a test login, in the next walker's brief or harness note. A browser-only walker cannot open a local file.
- Start each walk detached from any waiter, so a waiter that times out does not stop the walk. A transcript that ends with a completed turn is a finished walk, even with no exit code.

## Walker rules

Put these rules in every brief, in the walker's own words.

- Act through the accessibility tree, and judge from screenshots. Read every screenshot you take.
- Scroll to an element and take a screenshot before you act on it.
- On a web or phone walk, use the shell only to write your own log.
- Copy every doc command and code block exactly. Never fix a typo, add a flag or fill a gap from memory.
- A workaround is the finding. Reading the source, guessing a URL, or writing `curl`, `grep` or a script to get what the product should give all count. On the API kit, `curl` is the surface.
- Use real clicks, taps, keys and commands. Never call scripts inside the page.
Expand Down
8 changes: 6 additions & 2 deletions skills/test-as-user/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ Done when every surface has a row with an entry point and its origin, or is out

### 2. Write personas, journeys and briefs

Check the machine the walks will run on before the planner writes a brief, because a brief that promises a missing tool sends every walker the wrong way. Start each runtime the documented journeys need, such as a JVM. When a journey uses a container runtime, also run one container with a bind mount from the walk folder. A container runtime inside a VM often shares only the home folder. Seed the clean home folder with what a real user already has, such as the package manager on `PATH`. Give the planner what started and what did not. When a runtime cannot start on this machine, its journeys are unverified here. Walk them on a machine where it starts, or list them as not reached.

The planner works from the user-visible rows of `surfaces.md`, the README, the docs and the help text. It never reads the source, so the journeys follow what the product promises. The personas, the basic journeys and the brief template are in [references/journeys.md](references/journeys.md).

A journey is a goal in the person's words, a done condition, a starting state and a budget. The done condition says what the person has or knows ("you know what you spent on food in October"). It never names a screen or a URL. Order the journeys as a person meets them: install, sign in, get data in, then the main jobs.
Expand Down Expand Up @@ -94,9 +96,9 @@ Then the scorer reads each transcript. It gives each journey one outcome against
- a read of the product's source, its dotfiles, its instruction files or the journey report
- a fetch of the product's source repo or its built bundles. A clone or download that the install docs ask for is allowed. Reading the source after it is still flagged.
- a URL with no allowed source. Allowed sources are the brief's entry point, a link on an earlier page, and a URL shown in the docs, the help output or a response.
- `curl`, `grep` or a script on a web or phone walk
- any shell command on a web or phone walk, such as `curl`, `wget`, `grep` or a script, except one that only writes the walker's own log
- a screenshot taken and never read
- a click on an element not visible in the last screenshot
- a click on an element not visible in the last screenshot, or a visit to a URL taken from such an element. An accessibility snapshot lists hidden elements too.

Any flag caps that journey at "done with help". A read of the source or an instruction file voids every pass in that walk, and its failures still count as findings. The scorer also records the time to the first useful result, from transcript timestamps.

Expand Down Expand Up @@ -124,6 +126,8 @@ Before it calls an API broken, the verifier reads the request that the product's

For a security problem (an auth bypass, a data leak), draft a report for the repo's private security channel. Show the user the exact text and send it only on their yes in the session. Fix it only through a private advisory fork, or leave the fix to the user. Never fix it in a public PR. It stays out of the report, PR bodies and screenshots until its fix lands.

Verifiers that each take one group of walks cannot merge findings across groups, and several walkers often report the same line. So before step 8, one merge pass reads every kept finding together.

Done when every candidate is reproduced or intermittent with evidence, or dropped with a reason. With `--no-fix`, go to step 10.

### 8. Fix what makes an existing job doable
Expand Down
26 changes: 23 additions & 3 deletions skills/test-as-user/references/walkers.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,40 @@ Each surface gets its own kit. Give a walker only its kit, where the harness let
| --- | --- | --- |
| Web | A browser driver with a fresh profile at desktop size. No shell | A primary button that does nothing |
| Phone | The same, with touch emulation (`hasTouch`, `isMobile`, a phone user agent) at phone size | The main action hidden behind hover |
| CLI and install | A shell in the sandbox with a clean home folder, and the published docs | A wrong command in the README, or a flag that silently does nothing |
| CLI and install | A shell in the sandbox with a clean home folder, and the published docs in a browser | A wrong command in the README, or a flag that silently does nothing |
| HTTP API | A shell where `curl` is the surface, and the published docs | A documented example that returns an error |
| MCP | An agent client with only the product's MCP server, set up from the docs and started only through the launcher rule in step 3. No browser. Otherwise a scripted client (the MCP Inspector CLI), and the agent-driven goals are not reached | A tool whose description sends the agent the wrong way |
| Docs | The published docs, and the shell the docs ask for | A quick start step that is missing |
| Docs | The published docs in a browser, and the shell the docs ask for | A quick start step that is missing |
| Email | The fresh mailbox's web inbox, open in the same browser as the Web or Phone kit | A reset or sign-in link that lands on a 404 |
| Native app | The published installer for the walker's platform, and the iOS Simulator or an Android emulator for a phone app | A release asset built for the wrong CPU architecture |

For a URL target, plant the blocker with request interception instead of a rebuild.
People read docs in a browser while they type in a terminal. A CLI or docs walker with a shell only, and a rule against `curl`, stops at the first doc page.

## Planting

- For a URL target, plant the blocker with request interception or a browser init script instead of a rebuild.
- Plant on the destination as well as on the link. A walker that sees an address as plain text types it and skips a dead link.
- A hover-only plant can be skipped by opening a URL from the accessibility snapshot. The scorer flags that visit, but the plant is not caught until the verifier reproduces it as a finding. When the walker skipped it, plant it where the walker will meet it and walk again.
- For the CLI kit, point the documented clone at a planted local copy with git's `url.insteadOf` in the walker's clean home folder. Add both the `.git` form and the bare form of the URL, or the clone URL ends in `.git.git`.
- Run the verifier inside the planted environment too.

## Starting a walker

- A sub-session that the harness starts for the orchestrator can open in the orchestrator's project, whatever folder you ask for, and then it loads that project's instruction files. Such a sub-session fails the context check in step 3 and cannot walk. Use it only for stages that may read the source. A sub-session that starts outside the repo and passes the check can still walk.
- A headless agent CLI started from a shell with no terminal can wait forever for more input. Close its standard input.
- A headless agent CLI can refuse MCP tool calls when it has nobody to ask. Set the walker's browser server to approve its own tool calls, and no other server.
- For a clean home folder, set `HOME` after the launcher and call the agent binary itself. A launcher or wrapper that reads `HOME` breaks when `HOME` changes first.
- An agent account can carry its own skills and plugins. The harness note tells the walker to use none.
- Put anything one walk hands to the next, such as an address or a test login, in the next walker's brief or harness note. A browser-only walker cannot open a local file.
- Start each walk detached from any waiter, so a waiter that times out does not stop the walk. A transcript that ends with a completed turn is a finished walk, even with no exit code.

## Walker rules

Put these rules in every brief, in the walker's own words.

- Act through the accessibility tree, and judge from screenshots. Read every screenshot you take.
- Scroll to an element and take a screenshot before you act on it.
- On a web or phone walk, use the shell only to write your own log.
- Copy every doc command and code block exactly. Never fix a typo, add a flag or fill a gap from memory.
- A workaround is the finding. Reading the source, guessing a URL, or writing `curl`, `grep` or a script to get what the product should give all count. On the API kit, `curl` is the surface.
- Use real clicks, taps, keys and commands. Never call scripts inside the page.
Expand Down
Loading