From 282a10c02b208ff08a5f716f86cc681572abd667 Mon Sep 17 00:00:00 2001 From: GeiserX <9169332+GeiserX@users.noreply.github.com> Date: Tue, 17 Nov 2026 20:59:12 +0100 Subject: [PATCH 1/3] feat(test-as-user): stop walkers failing on a sandbox the brief misdescribed A first full run on a real product showed where the skill sent walkers the wrong way: the brief promised runtimes the sandbox could not start, CLI and docs walkers had no browser for the docs, planted blockers were skipped by typing the address, and headless walkers hung on stdin or lost their exit code. The scorer also capped walks for a shell that only wrote the log. Check the sandbox first, give CLI and docs walkers a browser, plant on the destination, document how to start a blinded walker, sharpen two scorer flags, and merge all kept findings once before fixing. --- CHANGELOG.md | 1 + codex/skills/test-as-user/SKILL.md | 8 ++++-- .../skills/test-as-user/references/walkers.md | 26 ++++++++++++++++--- skills/test-as-user/SKILL.md | 8 ++++-- skills/test-as-user/references/walkers.md | 26 ++++++++++++++++--- 5 files changed, 59 insertions(+), 10 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b6834ed..316a5db 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,7 @@ ## Unreleased +- `test-as-user` checks the sandbox before the planner describes it, gives CLI and docs walkers a browser, plants blockers on the destination as well as the link, and 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`. diff --git a/codex/skills/test-as-user/SKILL.md b/codex/skills/test-as-user/SKILL.md index 500bc91..047a340 100644 --- a/codex/skills/test-as-user/SKILL.md +++ b/codex/skills/test-as-user/SKILL.md @@ -86,6 +86,8 @@ Never start a walker as a fresh CLI session with a new config folder or a new si A subagent loads the instruction files and memory of the session's working folder, whatever its brief says, and no transcript shows that. So for subagent walkers, the run starts from a folder outside the product repo and takes the repo as `REPO_PATH`. When the session started inside the repo, ask the user to start it again from outside. Before the first walk, start one subagent by the same route and ask it to quote any instruction file or memory in its context that names the product. If it quotes one, cap every walk at "done with help" and list the whole run as unverified. +Check the sandbox before the planner describes it, because a brief that promises a missing tool sends every walker the wrong way. Start every runtime the docs need, such as a JVM or a container runtime, and 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`. 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. + Done when the sandbox exists, each kit the run needs is ready, and every walker has a route that leaves a transcript. The context check found no product instruction file or memory. ### 4. Prove the walk and the scorer can fail @@ -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 +- `curl`, `grep` or a script that touches the product on a web or phone walk. A shell that only writes the walker's own log is fine. - 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. @@ -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 diff --git a/codex/skills/test-as-user/references/walkers.md b/codex/skills/test-as-user/references/walkers.md index 2b65bf3..eb517b6 100644 --- a/codex/skills/test-as-user/references/walkers.md +++ b/codex/skills/test-as-user/references/walkers.md @@ -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's visibility flag catches that, so the plant still counts. +- 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. It cannot walk. Use it only for stages that may read the source. +- 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. diff --git a/skills/test-as-user/SKILL.md b/skills/test-as-user/SKILL.md index d9be021..9cc782b 100644 --- a/skills/test-as-user/SKILL.md +++ b/skills/test-as-user/SKILL.md @@ -71,6 +71,8 @@ Never start a walker as a fresh CLI session with a new config folder or a new si A subagent loads the instruction files and memory of the session's working folder, whatever its brief says, and no transcript shows that. So for subagent walkers, the run starts from a folder outside the product repo and takes the repo as `REPO_PATH`. When the session started inside the repo, ask the user to start it again from outside. Before the first walk, start one subagent by the same route and ask it to quote any instruction file or memory in its context that names the product. If it quotes one, cap every walk at "done with help" and list the whole run as unverified. +Check the sandbox before the planner describes it, because a brief that promises a missing tool sends every walker the wrong way. Start every runtime the docs need, such as a JVM or a container runtime, and 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`. 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. + Done when the sandbox exists, each kit the run needs is ready, and every walker has a route that leaves a transcript. The context check found no product instruction file or memory. ### 4. Prove the walk and the scorer can fail @@ -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 +- `curl`, `grep` or a script that touches the product on a web or phone walk. A shell that only writes the walker's own log is fine. - 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. @@ -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 diff --git a/skills/test-as-user/references/walkers.md b/skills/test-as-user/references/walkers.md index 2b65bf3..eb517b6 100644 --- a/skills/test-as-user/references/walkers.md +++ b/skills/test-as-user/references/walkers.md @@ -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's visibility flag catches that, so the plant still counts. +- 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. It cannot walk. Use it only for stages that may read the source. +- 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. From f0c821e921d90385c75728de7e3f1756c2e693c2 Mon Sep 17 00:00:00 2001 From: GeiserX <9169332+GeiserX@users.noreply.github.com> Date: Tue, 17 Nov 2026 20:59:22 +0100 Subject: [PATCH 2/3] docs(changelog): split the test-as-user line into short sentences --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 316a5db..f040dd0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,7 +2,7 @@ ## Unreleased -- `test-as-user` checks the sandbox before the planner describes it, gives CLI and docs walkers a browser, plants blockers on the destination as well as the link, and 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. +- `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`. From c25303e554c1c3932c48bcda9b51bd9d6e9fbcea Mon Sep 17 00:00:00 2001 From: GeiserX <9169332+GeiserX@users.noreply.github.com> Date: Tue, 17 Nov 2026 21:10:15 +0100 Subject: [PATCH 3/3] fix(test-as-user): check the machine before briefs, and flag every shell command on web walks Review found four gaps. The sandbox check sat in step 3, after the briefs it should inform, and demanded a container even for products that need none. The shell flag missed commands such as wget. A scorer flag on a skipped hover plant was counted as the verifier catching it. And the new sub-session note closed the blinded-subagent route that passes the context check. --- codex/skills/test-as-user/SKILL.md | 6 +++--- codex/skills/test-as-user/references/walkers.md | 4 ++-- skills/test-as-user/SKILL.md | 6 +++--- skills/test-as-user/references/walkers.md | 4 ++-- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/codex/skills/test-as-user/SKILL.md b/codex/skills/test-as-user/SKILL.md index 047a340..a7b2261 100644 --- a/codex/skills/test-as-user/SKILL.md +++ b/codex/skills/test-as-user/SKILL.md @@ -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. @@ -86,8 +88,6 @@ Never start a walker as a fresh CLI session with a new config folder or a new si A subagent loads the instruction files and memory of the session's working folder, whatever its brief says, and no transcript shows that. So for subagent walkers, the run starts from a folder outside the product repo and takes the repo as `REPO_PATH`. When the session started inside the repo, ask the user to start it again from outside. Before the first walk, start one subagent by the same route and ask it to quote any instruction file or memory in its context that names the product. If it quotes one, cap every walk at "done with help" and list the whole run as unverified. -Check the sandbox before the planner describes it, because a brief that promises a missing tool sends every walker the wrong way. Start every runtime the docs need, such as a JVM or a container runtime, and 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`. 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. - Done when the sandbox exists, each kit the run needs is ready, and every walker has a route that leaves a transcript. The context check found no product instruction file or memory. ### 4. Prove the walk and the scorer can fail @@ -111,7 +111,7 @@ 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 that touches the product on a web or phone walk. A shell that only writes the walker's own log is fine. +- 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, or a visit to a URL taken from such an element. An accessibility snapshot lists hidden elements too. diff --git a/codex/skills/test-as-user/references/walkers.md b/codex/skills/test-as-user/references/walkers.md index eb517b6..8ae62a0 100644 --- a/codex/skills/test-as-user/references/walkers.md +++ b/codex/skills/test-as-user/references/walkers.md @@ -23,13 +23,13 @@ People read docs in a browser while they type in a terminal. A CLI or docs walke - 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's visibility flag catches that, so the plant still counts. +- 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. It cannot walk. Use it only for stages that may read the source. +- 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. diff --git a/skills/test-as-user/SKILL.md b/skills/test-as-user/SKILL.md index 9cc782b..23360b5 100644 --- a/skills/test-as-user/SKILL.md +++ b/skills/test-as-user/SKILL.md @@ -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. @@ -71,8 +73,6 @@ Never start a walker as a fresh CLI session with a new config folder or a new si A subagent loads the instruction files and memory of the session's working folder, whatever its brief says, and no transcript shows that. So for subagent walkers, the run starts from a folder outside the product repo and takes the repo as `REPO_PATH`. When the session started inside the repo, ask the user to start it again from outside. Before the first walk, start one subagent by the same route and ask it to quote any instruction file or memory in its context that names the product. If it quotes one, cap every walk at "done with help" and list the whole run as unverified. -Check the sandbox before the planner describes it, because a brief that promises a missing tool sends every walker the wrong way. Start every runtime the docs need, such as a JVM or a container runtime, and 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`. 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. - Done when the sandbox exists, each kit the run needs is ready, and every walker has a route that leaves a transcript. The context check found no product instruction file or memory. ### 4. Prove the walk and the scorer can fail @@ -96,7 +96,7 @@ 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 that touches the product on a web or phone walk. A shell that only writes the walker's own log is fine. +- 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, or a visit to a URL taken from such an element. An accessibility snapshot lists hidden elements too. diff --git a/skills/test-as-user/references/walkers.md b/skills/test-as-user/references/walkers.md index eb517b6..8ae62a0 100644 --- a/skills/test-as-user/references/walkers.md +++ b/skills/test-as-user/references/walkers.md @@ -23,13 +23,13 @@ People read docs in a browser while they type in a terminal. A CLI or docs walke - 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's visibility flag catches that, so the plant still counts. +- 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. It cannot walk. Use it only for stages that may read the source. +- 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.