From e19c19607a02c7502413bccce1508f73dbe4b35d Mon Sep 17 00:00:00 2001 From: GeiserX <9169332+GeiserX@users.noreply.github.com> Date: Sat, 14 Nov 2026 15:34:53 +0100 Subject: [PATCH 1/8] feat(skills): test-as-user finds where a person gets stuck using the product, and fixes it Code review and unit tests pass on products that a person still cannot install, sign in to or use. test-as-user walks the running product the way its people meet it, as new, advanced, self-hosting and agent users, on every surface it ships. Walkers get only the public entry point, a persona, a goal and a budget. They start through the same launcher, account and network route as the session, or as blinded subagents, never as a fresh sign-in. A separate scorer reads each transcript for shortcuts, and an unblinded probe walk must be flagged before any walk counts. A verifier checks each finding by class, fixes stay inside jobs the product already offers, and every fix is walked again with the same brief. The product repo keeps the results in docs/user-journeys.md. It runs only when invoked by name, so the docs' statements about which skills start on their own stay true, and the count in usage.md is now six. --- CHANGELOG.md | 1 + README.md | 4 +- codex/skills/test-as-user/SKILL.md | 200 ++++++++++++++++++ codex/skills/test-as-user/agents/openai.yaml | 2 + .../test-as-user/references/journeys.md | 63 ++++++ .../skills/test-as-user/references/sweeps.md | 73 +++++++ .../skills/test-as-user/references/walkers.md | 34 +++ docs/index.md | 1 + docs/usage.md | 16 +- skills/test-as-user/SKILL.md | 186 ++++++++++++++++ skills/test-as-user/references/journeys.md | 63 ++++++ skills/test-as-user/references/sweeps.md | 73 +++++++ skills/test-as-user/references/walkers.md | 34 +++ 13 files changed, 746 insertions(+), 4 deletions(-) create mode 100644 codex/skills/test-as-user/SKILL.md create mode 100644 codex/skills/test-as-user/agents/openai.yaml create mode 100644 codex/skills/test-as-user/references/journeys.md create mode 100644 codex/skills/test-as-user/references/sweeps.md create mode 100644 codex/skills/test-as-user/references/walkers.md create mode 100644 skills/test-as-user/SKILL.md create mode 100644 skills/test-as-user/references/journeys.md create mode 100644 skills/test-as-user/references/sweeps.md create mode 100644 skills/test-as-user/references/walkers.md diff --git a/CHANGELOG.md b/CHANGELOG.md index f4ec6d3..b6834ed 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,7 @@ - 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`. ## 1.1.0 (2026-11-07) diff --git a/README.md b/README.md index b532173..5a01ca8 100644 --- a/README.md +++ b/README.md @@ -78,6 +78,7 @@ Pick one route for Claude Code. With both the plugin and the symlinks, every ski | [`research`](skills/research/SKILL.md) | `/research ` | Parallel specialists gather evidence from the code, its history and primary sources, then a ranked, cited answer. | | [`review-code`](skills/review-code/SKILL.md) | `/review-code` | Audits a whole codebase in bounded waves and publishes every verified finding by severity. | | [`tidy-repo`](skills/tidy-repo/SKILL.md) | `/tidy-repo` | Sweeps an established repo without changing what it does: audit, delete, restructure, refresh the living docs, and leave guards that keep it clean. | +| [`test-as-user`](skills/test-as-user/SKILL.md) | `/test-as-user` | Uses the running product as new, advanced and agent users would, on every surface, fixes what stops a job it already offers, and walks each fix again. | | [`review-pr`](skills/review-pr/SKILL.md) | "review PR 42" | Three review lenses, one fixer and one adversarial verifier per pull request, then merge or close. | | [`implement`](skills/implement/SKILL.md) | `/implement ` | The smallest complete change, with independent parts split across agents that own separate files. | @@ -118,7 +119,8 @@ None of them treats a stored goal as permission to merge, publish or deploy. - `full-loop` runs `sergio-loop` to done, then `refine-loop`. - `review-code` hands any finding that would change behaviour to `sergio-loop` or `investigate` instead of fixing it. -- `file-pr`, `verified-reply`, `review-pr`, `kb-review`, `docs-loop`, `tidy-repo`, `grow-my-repo` and `submit-awesome` run their text through `readable` before it goes out. +- `file-pr`, `verified-reply`, `review-pr`, `kb-review`, `docs-loop`, `tidy-repo`, `test-as-user`, `grow-my-repo` and `submit-awesome` run their text through `readable` before it goes out. +- `test-as-user` opens its fixes with `file-pr`, and turns the usability handoffs that `refine-loop` records into journeys to walk. - `file-pr` uses the `github-video-embed` recipe when a UI change needs a recording in the pull request. - `docs-loop`, `refine-loop`, `sergio-loop` and `full-loop` share the loop contract in `shared/loop-contract.md`; the validator checks that every loop carries the same copy. diff --git a/codex/skills/test-as-user/SKILL.md b/codex/skills/test-as-user/SKILL.md new file mode 100644 index 0000000..2180aff --- /dev/null +++ b/codex/skills/test-as-user/SKILL.md @@ -0,0 +1,200 @@ +--- +name: test-as-user +description: Use the running product the way its people meet it, as a new, advanced, self-hosting and agent user, on every surface it has. Find what blocks or confuses a person, fix what stops a job the product already offers, prove each fix by walking it again, and keep a journey report in the repo. Use only when invoked explicitly. +argument-hint: "[--no-fix] [REPO_PATH | URL] [journey or surface to focus on]" +--- + +## Running in Codex + +This is the Codex copy of this skill. Read the rest of it with these translations: + +- Agents launched in parallel: spawn each one with `spawn_agent` before waiting on any, then collect the + results with `wait_agent`. Tell every agent you spawn not to spawn agents of its own. If subagents are + unavailable, run each lane yourself, one after another. +- "Your default model" and "your strongest model": spawn the agent with an `agent_type` whose role file in + `~/.codex/agents/` sets `model` and `model_reasoning_effort`. An agent without a role runs on the + session's model. +- A slash command such as `/name`: mention the skill as `$name`. +- This repository's hooks and `.claude/` paths are for Claude Code only, and nothing here installs a Codex + hook. A loop runs one pass per invocation, saves its state and reports how to resume. +- `CLAUDE.md`: also read `AGENTS.md`, which is the file Codex loads. + +# test-as-user + +Code review and unit tests pass on products that a person still cannot use. The person cannot install it, sign in, get their data in, find the main feature or recover from an error. This skill uses the product as people use it, finds those failures, and fixes the ones that stop a job the product already offers. + +Every check names who is trying, what they want and where they are. The evidence is what happened on screen or in the terminal: a screenshot, the exact text, a command and its exit code. What an agent says it felt is never evidence. Agents grade their own walks generously, so a separate scorer reads each walk's transcript. + +With no argument, work on the repo that contains the current directory and the product it ships. A URL names a running instance to walk instead of a fresh install. With `--no-fix`, no fixer starts: stop after step 7 and write the report. + +Run it as a workflow. This skill is your opt-in to call the Workflow tool. Without one, run the same stages as parallel agents yourself, in the same order. Pin every agent to the strongest model the session allows. An unpinned agent inherits whatever the session runs on. Agents never spawn agents, so the orchestrator starts every walker. The agent that writes a change never approves it. + +## Scale + +A walk is one walker session: one persona on one surface, through that persona's journeys in order. + +| Size | Product | Walks | +| --- | --- | --- | +| trivial | One surface, such as a small CLI | 2-3 | +| modest | Two or three surfaces, such as a CLI, its docs and an API | 4-8 | +| normal | A web app with an API, at desktop and phone width | 9-16 | +| broad | Web, phone, API, MCP and self-hosting | 17-24 | + +The hard cap is 32 walks in one run, with the probe walks and re-walks included. When the plan needs more, walk the basics first and list the rest as not reached. + +Walks cover two variants only: desktop and phone width, in the product's default language. Scripted sweeps over screenshots cover the rest: other widths, every other language, every theme, keyboard only and 200% zoom. + +## Steps + +### 1. Read the rules and list the surfaces + +Read the repo's own `AGENTS.md`, `CLAUDE.md` and `CONTRIBUTING.md` first. They win over this skill where the two disagree. Read the last journey report if one exists (step 10 names it). Its open findings become journeys to walk again, and its "not reached" list is the first thing to try. Usability handoffs that `refine-loop` recorded as `NEEDS-FIX` also become journeys, and this skill's report is where they get closed. + +Then list every surface: install, web UI, phone width, CLI, HTTP API, MCP server, docs, email, any native app. Read the README, the docs site, the help output and the published packages. Also read the navigation, the route list, the MCP tool list, the language files and any theme switch. You may read the source here to find what exists. + +Write `surfaces.md` in the run's scratch folder. Each row gives a surface's entry point as a user meets it (a URL, a package, a command, a doc page). It says whether you found it in user-visible material or only in the source. It also gives the sign-in methods, languages and themes, and any step that needs a person (a captcha, an SMS code, a real device). A surface found only in the source is a finding, and it never becomes a walker's entry point. + +Done when every surface has a row with an entry point and its origin, or is out of scope with a reason. + +### 2. Write personas, journeys and briefs + +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. + +Plan three rounds: the basics, then the same goals with bad input and failures, then the coverage gaps from [Scale](#scale). Fill each brief from the template. A separate brief checker rejects a brief that names a screen, a button, a URL past the entry point or a known issue. The orchestrator has read the source, so it never edits a brief by hand. + +Done when every basic has a journey on every surface that offers it, or a line saying why not, and every brief passed the brief checker. + +### 3. Build the clean start and start the walkers safely + +Build a throwaway environment that the product has never touched. Use a fresh container, VM or user account, a fresh browser profile, and a fresh mailbox when sign-up needs email. Put it outside the repo and outside any folder that holds agent instruction files. Run heavy work on a machine with room for it, never on one a person is using. + +Walk the real path. Seeding through the public API or an import is fine for a state that is not the journey under test. Database inserts, a development sign-in, demo modes and mocked services are not. Keep one only when a journey cannot run without it, and list that area as **unverified**. Passkeys run through a virtual authenticator (the Chrome DevTools Protocol `WebAuthn` domain). Phone width means touch emulation, never a narrow desktop window. + +On a URL that may be production, walk only steps that change nothing, unless the user says otherwise in the session. Sign-up there creates real accounts and sends real email, so delete every test identity at cleanup. + +The walker never gets the owner's credentials and never searches dotfiles, keychains or environment files. It creates its own identity by signing up, because sign-up is a journey. A third-party key that the docs ask for goes into the sandbox under a generic name such as `API_KEY`. A step only a person can do goes to the user and is recorded as "needs a person". + +Each surface gets its own walker kit, listed in [references/walkers.md](references/walkers.md). Start each walker in one of two ways: + +1. As a separate headless session, only when it starts through the same launcher, the same account and the same network route as the current session. +2. Otherwise as a subagent whose brief blinds it. Its working folder is a scratch folder outside the repo. It gets only the public entry point, the persona, the goal and the budget. + +Never start a walker as a fresh CLI session with a new config folder or a new sign-in. Many people run each agent account through a fixed network route, and a sign-in from another route can get the account flagged. With either route the walker carries harness context that a new user lacks, so the scorer in step 5 is the gate. Use a route that leaves a full transcript: every tool call, its input and its result. + +Done when the sandbox exists, each kit the run needs is ready, and every walker has a route that leaves a transcript. + +### 4. Prove the walk and the scorer can fail + +In a scratch copy, plant one known blocker for each kit the run uses (the list is in [references/walkers.md](references/walkers.md)). Walk the journey that meets it. The scorer and the verifier must both catch it. + +Then run one probe walk deliberately unblinded: give it the repo path and let it read the source. The scorer must flag it. Until it does, no walk counts. After the controls, confirm by its commit or hash that the build under test is unmodified. + +Done when every planted blocker was caught by the scorer and the verifier, and the unblinded probe was flagged. + +### 5. Walk the journeys, then score each walk + +Give each walker its briefs one after another in one session. It keeps its memory across one persona's journeys, as a person would. A new persona gets a new walker. Every brief carries the walker rules from [references/walkers.md](references/walkers.md). + +Walk the basics first. When a basic blocks, start the later journeys from a state past it, built through the real path where you can. Mark them "started past blocker X". When the run may fix and a basic blocker has a small fix, fix it (steps 8 and 9) before the coverage-gap round. + +Walk each new-user basic twice from a fresh start, on two different models when the rules in step 3 allow both. Keep the union of the findings and mark the ones both walks hit. + +Then the scorer reads each transcript. It gives each journey one outcome against its done condition: **done**, **done with a minor issue**, **done with help** or **failed**. Reaching the done condition is the pass. An exit code of zero or a `2xx` response is not. It flags these from the transcript alone: + +- 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 URL never shown as a link on an earlier page +- `curl`, `grep` or a script on a web or phone walk +- a screenshot taken and never read +- a click on an element not visible in the last screenshot + +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. + +Done when every journey has a scored outcome per surface and variant, with its transcript and screenshots. + +### 6. Sweep the states the walk does not reach + +Sweepers force what a walk misses: failures, bad input, destructive actions, layout and access, languages, agent surfaces, cross-surface truth and promises. The catalogue is in [references/sweeps.md](references/sweeps.md). Run each sweep script first against a known violation and watch it go red. A sweep that never failed proves nothing. + +Then two inspectors, blind to each other, read the whole screenshot set for problems that span screens. An inspection finding with no effect in any walk or sweep is at most minor. + +Done when every sweep that applies has run, each was seen red once, and every non-pass is a candidate finding with evidence. + +### 7. Verify every finding + +Each candidate carries its journey, persona, surface, variant and step, and what was expected. It also carries the exact text seen, the evidence path, steps to reproduce, a proposed severity and the walks it hit out of the walks run. + +Give the verifier two worked examples first: one real finding, and one tester artefact (a click on a pop-up a person would close). It has no write tools, and its default verdict is "not reproduced". It checks each finding by its class: + +- **Defect.** The same input gives the same failure. Replay it from a clean start. +- **Findability or comprehension.** Check the transcript and screenshots: was the way forward visible from where the walker looked? When unsure, run a second fresh walk with the same brief. +- **Intermittent.** Retry it three times. If it does not come back, keep it as "intermittent" with the original evidence. + +Before it calls an API broken, the verifier reads the request that the product's own client sends. It returns **reproduced**, **not reproduced** or **artefact**, with its own evidence and severity. Drop the last two. When the severities differ, keep the higher one. It merges findings by symptom and location, because it has not read the source. + +A security problem (an auth bypass, a data leak) goes to the repo's private security channel. It stays out of the report, PR bodies and screenshots until its fix lands. + +Done when every candidate is reproduced with evidence or dropped with a reason. With `--no-fix`, go to step 10. + +### 8. Fix what makes an existing job doable + +The fixer reads the source and merges findings by root cause. It fixes the blockers and majors that stop a job the product already offers or the docs promise. It fixes a minor only when the fix stays inside one screen or one message. + +Everything else gets status `NEEDS-FIX` in the report, with its evidence, proposed acceptance criteria and who should take it. A new feature, a redesign or a change to what the product promises goes to the owner. A blocker with an unclear root cause goes to `investigate`. A defect in a dependency gets an upstream issue: draft it, show the user the text, and post it only on their yes in the session. + +For each theme, in severity order: + +1. Write the failing path as a test in the repo's existing test stack. Never add a test framework without asking. When no test can express it, the re-walk transcript is the regression evidence, and the PR says so. +2. Make the smallest fix in a worktree, following the repo's own rules. Fixers run in parallel only on files that do not overlap. +3. Run the repo's checks and the new test. A reviewer reads the diff against the finding and the test. +4. Open one PR per theme with `file-pr`, with screenshots before and after for a UI change and a recording for a flow. Run the text through `readable` when it is installed. Screenshots show test identities and invented data only. + +Stop after two fixes in a row are reverted because their reviewer rejected them or their re-walk failed. Stop too when a fix needs a file unrelated to its finding, and report why. Merge only when the user asked for merging in this session. + +Done when every verified blocker and major is in a PR or has status `NEEDS-FIX` with a reason. + +### 9. Walk it again + +A fix is proven when fresh walkers reach the done condition within budget on the fixed build. Use the original brief byte for byte, the same starting state, and as many walks on the same models as the first run. Every one must pass, and the scorer scores them. Rerun the sweep that found the problem too. + +Never rerun a failed walk without a change in between. Keep every outcome in the report, so that nobody can pick the one pass. When the fix is deployed and the step is safe to repeat there, walk it once more where users meet it. A finding that comes back reopens its PR, and a new problem goes through step 7. + +Done when every fix has its re-walk results attached to its PR. + +### 10. Keep the journey report in the repo + +Every run reads and updates one living doc in the product repo: `docs/user-journeys.md`, or the path the repo already uses. It holds: + +- the surfaces and the personas +- one row per journey, with its surfaces, every outcome of the last run, the date, the commit walked and the time to the first useful result +- the findings: fixed with their PR, open with severity and evidence, `NEEDS-FIX` with who should take each +- the unverified areas: every shortcut a walk used, and every journey not reached with what would reach it +- what held: the journeys tried hard that passed +- what an agent cannot judge: how people feel, a real screen reader, real devices, and numbers that need real users +- a prompt for a person's own walk: "Tell us where you paused, guessed, waited, or saw a result you did not trust." + +The report never names a security finding before its fix lands, and never claims that a person's walk happened. Commit only screenshots of test data. Run `readable` over the report when it is installed, and land it through the repo's gate. Then delete the sandboxes, test instances, test identities, worktrees and containers the run made. + +Done when the report is pushed, its URL is in your reply, and the run's sandboxes are gone. + +## Severity + +Rank by what the person loses, never by a score or a grade. A problem matters when it changes a choice, hides progress, blocks a result or costs real time. Any other problem is cosmetic. + +| Level | Meaning | +| --- | --- | +| **blocker** | A basic job cannot be finished: install, sign in, get data in, the main job, recovery from an error. Also data lost without warning, a status that says something false, and a core journey that the keyboard alone cannot finish. | +| **major** | The job finishes only with a workaround from outside the product, a promised advanced job fails, a screen is a dead end, or two surfaces show one fact differently. | +| **minor** | The job finishes with extra steps, a wait without feedback, or a message that confuses but lets the person recover. | +| **cosmetic** | No effect on any walk. Reported, not fixed. | + +Frequency (walks hit out of walks run) raises priority inside a level. It never drops a blocker. + +## Limits + +- It builds no new feature and redesigns nothing without the owner. +- It never counts a walk that took a shortcut as covered. +- It posts nothing as the user outside the PRs it opens. It merges, deploys or publishes only on their word in this session. +- It replaces no person. It finds where a flow breaks, not how it feels. diff --git a/codex/skills/test-as-user/agents/openai.yaml b/codex/skills/test-as-user/agents/openai.yaml new file mode 100644 index 0000000..5b1f887 --- /dev/null +++ b/codex/skills/test-as-user/agents/openai.yaml @@ -0,0 +1,2 @@ +policy: + allow_implicit_invocation: false diff --git a/codex/skills/test-as-user/references/journeys.md b/codex/skills/test-as-user/references/journeys.md new file mode 100644 index 0000000..135e1aa --- /dev/null +++ b/codex/skills/test-as-user/references/journeys.md @@ -0,0 +1,63 @@ +# Personas, journeys and briefs + +The planner reads this file in step 2. Pick the personas and journeys that fit the surfaces in `surfaces.md`, and write a line for each one you skip. + +## Personas + +A persona sets what the person knows, what they want, which surface they use and how much effort they will spend. Leave out age, job and feelings. They make an agent sound believable without making it more accurate. + +- **New user.** Knows only what the landing page or the README says. Has never used the product. Does not know its terms unless a screen explains them. +- **Advanced user.** Has read the docs and the help. Uses the CLI, the API and the settings, and tries every promise the docs make. +- **Self-hoster**, when the product can be self-hosted. Runs it on their own server from the published install docs and keeps it running. +- **Agent user**, when the product has a CLI, an API or an MCP server. A coding agent with a goal and the product's own docs or tool descriptions, and nothing else. + +## Budgets + +- A new-user journey gets 20 actions. An advanced or self-hoster journey gets 40. +- The same action twice with no visible change ends that attempt. +- A third approach to the same part of the goal ends the journey. +- Every limit that a walk hits is a finding. + +These numbers are a starting point. Tune them after the first real runs. + +## The basics + +Write at least one journey for each basic on every surface that offers it. + +1. Install and first run. Type the README or the quick start literally on a clean machine. Use the asset for the walker's platform (arm64 or x86), and record any operating system prompt (Gatekeeper, SmartScreen) that a person must pass. +2. Sign up, sign in and sign out with each method the product offers: password, passkey, OIDC, magic link, recovery codes. Include an expired session and a deep link opened while signed out. +3. Get real data in through each import path, starting from zero data. +4. Do the main jobs, found from the navigation or the help, never from a URL the planner knows. +5. Do the advanced jobs the docs promise: configuration, integrations, automation, export and import, limits. +6. Settings and leaving: export the data, delete what was created, delete the account. +7. Errors and recovery, and the empty state of every screen that a new account lands on. + +Add these where the product has them: + +- **Self-hosting.** Install with the documented compose file or chart. Set the environment config. Run it behind a reverse proxy and under a subpath. Read the logs when something is wrong and check that they say what. Back up and restore. Upgrade from the last release with existing data. Uninstall, and list what it leaves behind. +- **A second person.** Invite someone, accept the invite, check that a limited role sees the right things, then revoke it. +- **A returning user on a second device.** Sign up at desktop width, then sign in at phone width. Use a passkey made on the first device. +- **Native apps.** Install the desktop or mobile build the way the docs say. Use the iOS Simulator or an Android emulator when no real device is available, and list real devices as not reached. +- **Real-world data.** Import a realistic volume (10,000 rows or more) and messy files: a byte order mark, `;` as the separator, an export from a spreadsheet app. +- **Connecting an agent**, for an MCP server. It takes two walkers. Walker A follows the docs and writes the client config. Walker B starts an agent client with that config and does a real task. When the launcher rule in step 3 leaves no way to start walker B, list the journey as not reached. + +## The other two rounds + +- **Bad input and failures.** The same goals with bad input, a slow or failed backend, an expired session, a destructive action and the way back from it. +- **Coverage gaps.** Each core journey at phone width and through each agent surface on the same data. Other widths, other languages, themes and keyboard-only use go to the sweeps, not to walks. + +## Brief template + +Every brief has this shape and nothing more. The brief checker rejects one that names a screen, a button, a URL past the entry point or a known issue. + +```text +You are: +Your goal: +You are done when: +Start here: +Budget: . Stop when you reach it, and say so. +Rules: use only what the product shows you. Copy commands exactly. If you need anything the product did not give you, say what and why. +For each step, log: the action, what you expected, what you saw (exact text), and the screenshot path or the command output. +``` + +Write "You have last month's bank statement as a CSV. Find out what you spent on food." Never write "Click Import, choose CSV". A list of steps tests the list, not the product. diff --git a/codex/skills/test-as-user/references/sweeps.md b/codex/skills/test-as-user/references/sweeps.md new file mode 100644 index 0000000..75c435b --- /dev/null +++ b/codex/skills/test-as-user/references/sweeps.md @@ -0,0 +1,73 @@ +# Sweeps + +The sweepers read this file in step 6. Each sweep is a script that you first run against a known violation and watch go red. Read every screenshot that a sweep takes. + +## Forced states + +Force these states on each screen and command of the journeys: + +- empty +- slow (3 s and 15 s) +- failed (a 500, an HTML 502 page) +- offline +- an expired session +- a missing permission + +Read what the person sees. These rules apply: + +- Every state names what happened and gives a next step, in the reader's language. +- No stack trace or raw error code reaches the person. +- A screen never shows a number or a verdict that it did not measure: "0" while loading, "nothing found" when the data was withheld, success after a failure. + +## Input + +- Submit every form on a journey with its default values through the real browser, so the browser's own validation (`pattern`, `required`, `min`, `max`, `type`) is part of the test. +- Then submit it empty, with junk, out of range and with a future date. Also try the other decimal separator, a duplicate, non-ASCII text and a very long string. +- Send the same values to the API, because agents and scripts send what forms block. +- Bad input must be refused with the field named, and the person's input must stay in the form. + +## Destructive actions + +List every action that deletes, overwrites, sends, pays, publishes or revokes, on every surface. Run them only on test data. For each one, check these points: + +- The confirmation names the object and the result. +- There is undo, a recovery window or a dry run. +- A call without a terminal refuses unless it has an explicit flag. +- After the action, you can get the data back, or the confirmation said that you cannot. + +Then walk from the state that each one leaves (no profile, no passkey left, signed out). Every screen still names a next step, and every way in has a way out. + +## Layout and access + +Take every screen at 320, 390, 820 and desktop width, in every shipped language and theme. Use touch emulation for the phone widths. + +- No sideways scroll, and no text that runs past its own box. +- Every action is in view and works without hover. +- Touch targets are at least 24 by 24 CSS pixels (WCAG 2.2 AA). A target under 44 or 48 pixels breaks platform guidance and is a minor finding. +- A script finishes each core journey with the keyboard alone, and focus stays visible and follows the reading order. A core journey that the keyboard cannot finish is a blocker. +- Every control has a name. Run an axe scan in each theme. Zoom text to 200%. Honour reduced motion. +- Each screen has one `h1`, a `main` landmark and a heading outline, as the stand-in for a screen reader. + +## Language + +- Every shipped language file has the same keys. +- No screen in another language shows untranslated text or raw codes. +- Plural forms work with 0, 1, 2, 5 and 21. +- Dates and numbers follow each locale. +- A right-to-left language, if one ships, lays out right to left. + +## Agent surfaces + +- **CLI.** From a clean home folder, run it with no arguments, with a mistyped command, with a setting missing, with no network and with its output piped. Read stdout, stderr and the exit code apart. +- **HTTP API.** Run every documented example exactly as written, then with no auth and with a wrong key. +- **MCP.** List the tools with a client such as the MCP Inspector's CLI mode. Give a fresh agent client a few realistic goals, each with one answer you can check. Revoke its key and expect a clear error. + +## Cross-surface truth + +For each main job, ask the same question through every surface on the same data: counts, dates, units, what is withheld and why. A difference is a finding even when each side looks right alone. + +## Promises + +- Every navigation item and button either works or says plainly, without hover, that it is not available. +- No roadmap marker or plan chip shows in the shipped product. +- The version that the product shows matches the release. diff --git a/codex/skills/test-as-user/references/walkers.md b/codex/skills/test-as-user/references/walkers.md new file mode 100644 index 0000000..f76486b --- /dev/null +++ b/codex/skills/test-as-user/references/walkers.md @@ -0,0 +1,34 @@ +# Walker kits and walker rules + +The orchestrator reads this file in steps 3 to 5. It sets what each walker gets, how it must behave, and which blocker to plant for each kit. + +## Kits + +Each surface gets its own kit. Give a walker only its kit, where the harness lets you set tools. Where it does not, the scorer flags any tool use outside the kit. + +| Kit | Gets | Planted blocker for step 4 | +| --- | --- | --- | +| 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 | +| 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. No browser | 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 | + +For a URL target, plant the blocker with request interception instead of a rebuild. + +## 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. +- 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. +- Close pop-ups and banners as a person would. Report one that blocks the main action. +- When a long operation runs (an import, a sync, a build), check it at several points and reload once. This catches a stuck spinner, a stale count or "complete" shown too early. +- Stop at the budget, and say that you reached it. + +## Log + +For each step the walker logs one line: the action, what it expected, what it saw (the exact text), and the screenshot path or the command output. Times come from the transcript, never from the walker. diff --git a/docs/index.md b/docs/index.md index a410cc1..a4b022c 100644 --- a/docs/index.md +++ b/docs/index.md @@ -66,6 +66,7 @@ hide: | [`review-pr`](usage.md#parallel-skills) | Reviews pull requests in one Workflow run (right problem, robust, usable by us), comments the plan, pushes the fixes, then merges or closes. | | [`review-code`](usage.md#parallel-skills) | Audits a repository in waves and publishes every verified finding, ranked by severity. | | [`tidy-repo`](usage.md#parallel-skills) | Sweeps an established repository without changing what it does, then refreshes its living docs and leaves guards that keep it clean. | +| [`test-as-user`](usage.md#parallel-skills) | Uses the running product as its people would, on every surface, fixes what stops a job it already offers, and walks each fix again. | | [`research`](usage.md#parallel-skills) | Answers a question from the code, its history and primary sources, with a source for each claim. | | [`implement`](usage.md#parallel-skills) | Makes the smallest complete change, giving each parallel writer its own files. | diff --git a/docs/usage.md b/docs/usage.md index 21472d1..f1c6337 100644 --- a/docs/usage.md +++ b/docs/usage.md @@ -113,9 +113,9 @@ One-shot skills that split a task across independent agents running at the same what they found. Each one scales its panel to the task: it works alone on a trivial task, uses 2-3 agents on a modest one, 4-7 on a normal one and 8-12 or more on a broad or risky one. Agents never spawn other agents. The fan-out runs on your default model and the checking of findings on your -strongest one. +strongest one. `tidy-repo` and `test-as-user` run every agent on your strongest model. -Five of them run only when you call them by name: `/` in Claude Code, `$` in Codex. +Six of them run only when you call them by name: `/` in Claude Code, `$` in Codex. `review-pr` can also start when you ask the agent to review a pull request. - `investigate` reproduces a failure, has competing hypotheses tested against each other, and names a @@ -133,6 +133,15 @@ Five of them run only when you call them by name: `/` in Claude Code, `$` in Claude Code, `$ diff --git a/skills/test-as-user/SKILL.md b/skills/test-as-user/SKILL.md new file mode 100644 index 0000000..2b81db7 --- /dev/null +++ b/skills/test-as-user/SKILL.md @@ -0,0 +1,186 @@ +--- +name: test-as-user +description: Use the running product the way its people meet it, as a new, advanced, self-hosting and agent user, on every surface it has. Find what blocks or confuses a person, fix what stops a job the product already offers, prove each fix by walking it again, and keep a journey report in the repo. Use only when invoked explicitly. +disable-model-invocation: true +argument-hint: "[--no-fix] [REPO_PATH | URL] [journey or surface to focus on]" +--- + +# test-as-user + +Code review and unit tests pass on products that a person still cannot use. The person cannot install it, sign in, get their data in, find the main feature or recover from an error. This skill uses the product as people use it, finds those failures, and fixes the ones that stop a job the product already offers. + +Every check names who is trying, what they want and where they are. The evidence is what happened on screen or in the terminal: a screenshot, the exact text, a command and its exit code. What an agent says it felt is never evidence. Agents grade their own walks generously, so a separate scorer reads each walk's transcript. + +With no argument, work on the repo that contains the current directory and the product it ships. A URL names a running instance to walk instead of a fresh install. With `--no-fix`, no fixer starts: stop after step 7 and write the report. + +Run it as a workflow. This skill is your opt-in to call the Workflow tool. Without one, run the same stages as parallel agents yourself, in the same order. Pin every agent to the strongest model the session allows. An unpinned agent inherits whatever the session runs on. Agents never spawn agents, so the orchestrator starts every walker. The agent that writes a change never approves it. + +## Scale + +A walk is one walker session: one persona on one surface, through that persona's journeys in order. + +| Size | Product | Walks | +| --- | --- | --- | +| trivial | One surface, such as a small CLI | 2-3 | +| modest | Two or three surfaces, such as a CLI, its docs and an API | 4-8 | +| normal | A web app with an API, at desktop and phone width | 9-16 | +| broad | Web, phone, API, MCP and self-hosting | 17-24 | + +The hard cap is 32 walks in one run, with the probe walks and re-walks included. When the plan needs more, walk the basics first and list the rest as not reached. + +Walks cover two variants only: desktop and phone width, in the product's default language. Scripted sweeps over screenshots cover the rest: other widths, every other language, every theme, keyboard only and 200% zoom. + +## Steps + +### 1. Read the rules and list the surfaces + +Read the repo's own `AGENTS.md`, `CLAUDE.md` and `CONTRIBUTING.md` first. They win over this skill where the two disagree. Read the last journey report if one exists (step 10 names it). Its open findings become journeys to walk again, and its "not reached" list is the first thing to try. Usability handoffs that `refine-loop` recorded as `NEEDS-FIX` also become journeys, and this skill's report is where they get closed. + +Then list every surface: install, web UI, phone width, CLI, HTTP API, MCP server, docs, email, any native app. Read the README, the docs site, the help output and the published packages. Also read the navigation, the route list, the MCP tool list, the language files and any theme switch. You may read the source here to find what exists. + +Write `surfaces.md` in the run's scratch folder. Each row gives a surface's entry point as a user meets it (a URL, a package, a command, a doc page). It says whether you found it in user-visible material or only in the source. It also gives the sign-in methods, languages and themes, and any step that needs a person (a captcha, an SMS code, a real device). A surface found only in the source is a finding, and it never becomes a walker's entry point. + +Done when every surface has a row with an entry point and its origin, or is out of scope with a reason. + +### 2. Write personas, journeys and briefs + +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. + +Plan three rounds: the basics, then the same goals with bad input and failures, then the coverage gaps from [Scale](#scale). Fill each brief from the template. A separate brief checker rejects a brief that names a screen, a button, a URL past the entry point or a known issue. The orchestrator has read the source, so it never edits a brief by hand. + +Done when every basic has a journey on every surface that offers it, or a line saying why not, and every brief passed the brief checker. + +### 3. Build the clean start and start the walkers safely + +Build a throwaway environment that the product has never touched. Use a fresh container, VM or user account, a fresh browser profile, and a fresh mailbox when sign-up needs email. Put it outside the repo and outside any folder that holds agent instruction files. Run heavy work on a machine with room for it, never on one a person is using. + +Walk the real path. Seeding through the public API or an import is fine for a state that is not the journey under test. Database inserts, a development sign-in, demo modes and mocked services are not. Keep one only when a journey cannot run without it, and list that area as **unverified**. Passkeys run through a virtual authenticator (the Chrome DevTools Protocol `WebAuthn` domain). Phone width means touch emulation, never a narrow desktop window. + +On a URL that may be production, walk only steps that change nothing, unless the user says otherwise in the session. Sign-up there creates real accounts and sends real email, so delete every test identity at cleanup. + +The walker never gets the owner's credentials and never searches dotfiles, keychains or environment files. It creates its own identity by signing up, because sign-up is a journey. A third-party key that the docs ask for goes into the sandbox under a generic name such as `API_KEY`. A step only a person can do goes to the user and is recorded as "needs a person". + +Each surface gets its own walker kit, listed in [references/walkers.md](references/walkers.md). Start each walker in one of two ways: + +1. As a separate headless session, only when it starts through the same launcher, the same account and the same network route as the current session. +2. Otherwise as a subagent whose brief blinds it. Its working folder is a scratch folder outside the repo. It gets only the public entry point, the persona, the goal and the budget. + +Never start a walker as a fresh CLI session with a new config folder or a new sign-in. Many people run each agent account through a fixed network route, and a sign-in from another route can get the account flagged. With either route the walker carries harness context that a new user lacks, so the scorer in step 5 is the gate. Use a route that leaves a full transcript: every tool call, its input and its result. + +Done when the sandbox exists, each kit the run needs is ready, and every walker has a route that leaves a transcript. + +### 4. Prove the walk and the scorer can fail + +In a scratch copy, plant one known blocker for each kit the run uses (the list is in [references/walkers.md](references/walkers.md)). Walk the journey that meets it. The scorer and the verifier must both catch it. + +Then run one probe walk deliberately unblinded: give it the repo path and let it read the source. The scorer must flag it. Until it does, no walk counts. After the controls, confirm by its commit or hash that the build under test is unmodified. + +Done when every planted blocker was caught by the scorer and the verifier, and the unblinded probe was flagged. + +### 5. Walk the journeys, then score each walk + +Give each walker its briefs one after another in one session. It keeps its memory across one persona's journeys, as a person would. A new persona gets a new walker. Every brief carries the walker rules from [references/walkers.md](references/walkers.md). + +Walk the basics first. When a basic blocks, start the later journeys from a state past it, built through the real path where you can. Mark them "started past blocker X". When the run may fix and a basic blocker has a small fix, fix it (steps 8 and 9) before the coverage-gap round. + +Walk each new-user basic twice from a fresh start, on two different models when the rules in step 3 allow both. Keep the union of the findings and mark the ones both walks hit. + +Then the scorer reads each transcript. It gives each journey one outcome against its done condition: **done**, **done with a minor issue**, **done with help** or **failed**. Reaching the done condition is the pass. An exit code of zero or a `2xx` response is not. It flags these from the transcript alone: + +- 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 URL never shown as a link on an earlier page +- `curl`, `grep` or a script on a web or phone walk +- a screenshot taken and never read +- a click on an element not visible in the last screenshot + +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. + +Done when every journey has a scored outcome per surface and variant, with its transcript and screenshots. + +### 6. Sweep the states the walk does not reach + +Sweepers force what a walk misses: failures, bad input, destructive actions, layout and access, languages, agent surfaces, cross-surface truth and promises. The catalogue is in [references/sweeps.md](references/sweeps.md). Run each sweep script first against a known violation and watch it go red. A sweep that never failed proves nothing. + +Then two inspectors, blind to each other, read the whole screenshot set for problems that span screens. An inspection finding with no effect in any walk or sweep is at most minor. + +Done when every sweep that applies has run, each was seen red once, and every non-pass is a candidate finding with evidence. + +### 7. Verify every finding + +Each candidate carries its journey, persona, surface, variant and step, and what was expected. It also carries the exact text seen, the evidence path, steps to reproduce, a proposed severity and the walks it hit out of the walks run. + +Give the verifier two worked examples first: one real finding, and one tester artefact (a click on a pop-up a person would close). It has no write tools, and its default verdict is "not reproduced". It checks each finding by its class: + +- **Defect.** The same input gives the same failure. Replay it from a clean start. +- **Findability or comprehension.** Check the transcript and screenshots: was the way forward visible from where the walker looked? When unsure, run a second fresh walk with the same brief. +- **Intermittent.** Retry it three times. If it does not come back, keep it as "intermittent" with the original evidence. + +Before it calls an API broken, the verifier reads the request that the product's own client sends. It returns **reproduced**, **not reproduced** or **artefact**, with its own evidence and severity. Drop the last two. When the severities differ, keep the higher one. It merges findings by symptom and location, because it has not read the source. + +A security problem (an auth bypass, a data leak) goes to the repo's private security channel. It stays out of the report, PR bodies and screenshots until its fix lands. + +Done when every candidate is reproduced with evidence or dropped with a reason. With `--no-fix`, go to step 10. + +### 8. Fix what makes an existing job doable + +The fixer reads the source and merges findings by root cause. It fixes the blockers and majors that stop a job the product already offers or the docs promise. It fixes a minor only when the fix stays inside one screen or one message. + +Everything else gets status `NEEDS-FIX` in the report, with its evidence, proposed acceptance criteria and who should take it. A new feature, a redesign or a change to what the product promises goes to the owner. A blocker with an unclear root cause goes to `investigate`. A defect in a dependency gets an upstream issue: draft it, show the user the text, and post it only on their yes in the session. + +For each theme, in severity order: + +1. Write the failing path as a test in the repo's existing test stack. Never add a test framework without asking. When no test can express it, the re-walk transcript is the regression evidence, and the PR says so. +2. Make the smallest fix in a worktree, following the repo's own rules. Fixers run in parallel only on files that do not overlap. +3. Run the repo's checks and the new test. A reviewer reads the diff against the finding and the test. +4. Open one PR per theme with `file-pr`, with screenshots before and after for a UI change and a recording for a flow. Run the text through `readable` when it is installed. Screenshots show test identities and invented data only. + +Stop after two fixes in a row are reverted because their reviewer rejected them or their re-walk failed. Stop too when a fix needs a file unrelated to its finding, and report why. Merge only when the user asked for merging in this session. + +Done when every verified blocker and major is in a PR or has status `NEEDS-FIX` with a reason. + +### 9. Walk it again + +A fix is proven when fresh walkers reach the done condition within budget on the fixed build. Use the original brief byte for byte, the same starting state, and as many walks on the same models as the first run. Every one must pass, and the scorer scores them. Rerun the sweep that found the problem too. + +Never rerun a failed walk without a change in between. Keep every outcome in the report, so that nobody can pick the one pass. When the fix is deployed and the step is safe to repeat there, walk it once more where users meet it. A finding that comes back reopens its PR, and a new problem goes through step 7. + +Done when every fix has its re-walk results attached to its PR. + +### 10. Keep the journey report in the repo + +Every run reads and updates one living doc in the product repo: `docs/user-journeys.md`, or the path the repo already uses. It holds: + +- the surfaces and the personas +- one row per journey, with its surfaces, every outcome of the last run, the date, the commit walked and the time to the first useful result +- the findings: fixed with their PR, open with severity and evidence, `NEEDS-FIX` with who should take each +- the unverified areas: every shortcut a walk used, and every journey not reached with what would reach it +- what held: the journeys tried hard that passed +- what an agent cannot judge: how people feel, a real screen reader, real devices, and numbers that need real users +- a prompt for a person's own walk: "Tell us where you paused, guessed, waited, or saw a result you did not trust." + +The report never names a security finding before its fix lands, and never claims that a person's walk happened. Commit only screenshots of test data. Run `readable` over the report when it is installed, and land it through the repo's gate. Then delete the sandboxes, test instances, test identities, worktrees and containers the run made. + +Done when the report is pushed, its URL is in your reply, and the run's sandboxes are gone. + +## Severity + +Rank by what the person loses, never by a score or a grade. A problem matters when it changes a choice, hides progress, blocks a result or costs real time. Any other problem is cosmetic. + +| Level | Meaning | +| --- | --- | +| **blocker** | A basic job cannot be finished: install, sign in, get data in, the main job, recovery from an error. Also data lost without warning, a status that says something false, and a core journey that the keyboard alone cannot finish. | +| **major** | The job finishes only with a workaround from outside the product, a promised advanced job fails, a screen is a dead end, or two surfaces show one fact differently. | +| **minor** | The job finishes with extra steps, a wait without feedback, or a message that confuses but lets the person recover. | +| **cosmetic** | No effect on any walk. Reported, not fixed. | + +Frequency (walks hit out of walks run) raises priority inside a level. It never drops a blocker. + +## Limits + +- It builds no new feature and redesigns nothing without the owner. +- It never counts a walk that took a shortcut as covered. +- It posts nothing as the user outside the PRs it opens. It merges, deploys or publishes only on their word in this session. +- It replaces no person. It finds where a flow breaks, not how it feels. diff --git a/skills/test-as-user/references/journeys.md b/skills/test-as-user/references/journeys.md new file mode 100644 index 0000000..135e1aa --- /dev/null +++ b/skills/test-as-user/references/journeys.md @@ -0,0 +1,63 @@ +# Personas, journeys and briefs + +The planner reads this file in step 2. Pick the personas and journeys that fit the surfaces in `surfaces.md`, and write a line for each one you skip. + +## Personas + +A persona sets what the person knows, what they want, which surface they use and how much effort they will spend. Leave out age, job and feelings. They make an agent sound believable without making it more accurate. + +- **New user.** Knows only what the landing page or the README says. Has never used the product. Does not know its terms unless a screen explains them. +- **Advanced user.** Has read the docs and the help. Uses the CLI, the API and the settings, and tries every promise the docs make. +- **Self-hoster**, when the product can be self-hosted. Runs it on their own server from the published install docs and keeps it running. +- **Agent user**, when the product has a CLI, an API or an MCP server. A coding agent with a goal and the product's own docs or tool descriptions, and nothing else. + +## Budgets + +- A new-user journey gets 20 actions. An advanced or self-hoster journey gets 40. +- The same action twice with no visible change ends that attempt. +- A third approach to the same part of the goal ends the journey. +- Every limit that a walk hits is a finding. + +These numbers are a starting point. Tune them after the first real runs. + +## The basics + +Write at least one journey for each basic on every surface that offers it. + +1. Install and first run. Type the README or the quick start literally on a clean machine. Use the asset for the walker's platform (arm64 or x86), and record any operating system prompt (Gatekeeper, SmartScreen) that a person must pass. +2. Sign up, sign in and sign out with each method the product offers: password, passkey, OIDC, magic link, recovery codes. Include an expired session and a deep link opened while signed out. +3. Get real data in through each import path, starting from zero data. +4. Do the main jobs, found from the navigation or the help, never from a URL the planner knows. +5. Do the advanced jobs the docs promise: configuration, integrations, automation, export and import, limits. +6. Settings and leaving: export the data, delete what was created, delete the account. +7. Errors and recovery, and the empty state of every screen that a new account lands on. + +Add these where the product has them: + +- **Self-hosting.** Install with the documented compose file or chart. Set the environment config. Run it behind a reverse proxy and under a subpath. Read the logs when something is wrong and check that they say what. Back up and restore. Upgrade from the last release with existing data. Uninstall, and list what it leaves behind. +- **A second person.** Invite someone, accept the invite, check that a limited role sees the right things, then revoke it. +- **A returning user on a second device.** Sign up at desktop width, then sign in at phone width. Use a passkey made on the first device. +- **Native apps.** Install the desktop or mobile build the way the docs say. Use the iOS Simulator or an Android emulator when no real device is available, and list real devices as not reached. +- **Real-world data.** Import a realistic volume (10,000 rows or more) and messy files: a byte order mark, `;` as the separator, an export from a spreadsheet app. +- **Connecting an agent**, for an MCP server. It takes two walkers. Walker A follows the docs and writes the client config. Walker B starts an agent client with that config and does a real task. When the launcher rule in step 3 leaves no way to start walker B, list the journey as not reached. + +## The other two rounds + +- **Bad input and failures.** The same goals with bad input, a slow or failed backend, an expired session, a destructive action and the way back from it. +- **Coverage gaps.** Each core journey at phone width and through each agent surface on the same data. Other widths, other languages, themes and keyboard-only use go to the sweeps, not to walks. + +## Brief template + +Every brief has this shape and nothing more. The brief checker rejects one that names a screen, a button, a URL past the entry point or a known issue. + +```text +You are: +Your goal: +You are done when: +Start here: +Budget: . Stop when you reach it, and say so. +Rules: use only what the product shows you. Copy commands exactly. If you need anything the product did not give you, say what and why. +For each step, log: the action, what you expected, what you saw (exact text), and the screenshot path or the command output. +``` + +Write "You have last month's bank statement as a CSV. Find out what you spent on food." Never write "Click Import, choose CSV". A list of steps tests the list, not the product. diff --git a/skills/test-as-user/references/sweeps.md b/skills/test-as-user/references/sweeps.md new file mode 100644 index 0000000..75c435b --- /dev/null +++ b/skills/test-as-user/references/sweeps.md @@ -0,0 +1,73 @@ +# Sweeps + +The sweepers read this file in step 6. Each sweep is a script that you first run against a known violation and watch go red. Read every screenshot that a sweep takes. + +## Forced states + +Force these states on each screen and command of the journeys: + +- empty +- slow (3 s and 15 s) +- failed (a 500, an HTML 502 page) +- offline +- an expired session +- a missing permission + +Read what the person sees. These rules apply: + +- Every state names what happened and gives a next step, in the reader's language. +- No stack trace or raw error code reaches the person. +- A screen never shows a number or a verdict that it did not measure: "0" while loading, "nothing found" when the data was withheld, success after a failure. + +## Input + +- Submit every form on a journey with its default values through the real browser, so the browser's own validation (`pattern`, `required`, `min`, `max`, `type`) is part of the test. +- Then submit it empty, with junk, out of range and with a future date. Also try the other decimal separator, a duplicate, non-ASCII text and a very long string. +- Send the same values to the API, because agents and scripts send what forms block. +- Bad input must be refused with the field named, and the person's input must stay in the form. + +## Destructive actions + +List every action that deletes, overwrites, sends, pays, publishes or revokes, on every surface. Run them only on test data. For each one, check these points: + +- The confirmation names the object and the result. +- There is undo, a recovery window or a dry run. +- A call without a terminal refuses unless it has an explicit flag. +- After the action, you can get the data back, or the confirmation said that you cannot. + +Then walk from the state that each one leaves (no profile, no passkey left, signed out). Every screen still names a next step, and every way in has a way out. + +## Layout and access + +Take every screen at 320, 390, 820 and desktop width, in every shipped language and theme. Use touch emulation for the phone widths. + +- No sideways scroll, and no text that runs past its own box. +- Every action is in view and works without hover. +- Touch targets are at least 24 by 24 CSS pixels (WCAG 2.2 AA). A target under 44 or 48 pixels breaks platform guidance and is a minor finding. +- A script finishes each core journey with the keyboard alone, and focus stays visible and follows the reading order. A core journey that the keyboard cannot finish is a blocker. +- Every control has a name. Run an axe scan in each theme. Zoom text to 200%. Honour reduced motion. +- Each screen has one `h1`, a `main` landmark and a heading outline, as the stand-in for a screen reader. + +## Language + +- Every shipped language file has the same keys. +- No screen in another language shows untranslated text or raw codes. +- Plural forms work with 0, 1, 2, 5 and 21. +- Dates and numbers follow each locale. +- A right-to-left language, if one ships, lays out right to left. + +## Agent surfaces + +- **CLI.** From a clean home folder, run it with no arguments, with a mistyped command, with a setting missing, with no network and with its output piped. Read stdout, stderr and the exit code apart. +- **HTTP API.** Run every documented example exactly as written, then with no auth and with a wrong key. +- **MCP.** List the tools with a client such as the MCP Inspector's CLI mode. Give a fresh agent client a few realistic goals, each with one answer you can check. Revoke its key and expect a clear error. + +## Cross-surface truth + +For each main job, ask the same question through every surface on the same data: counts, dates, units, what is withheld and why. A difference is a finding even when each side looks right alone. + +## Promises + +- Every navigation item and button either works or says plainly, without hover, that it is not available. +- No roadmap marker or plan chip shows in the shipped product. +- The version that the product shows matches the release. diff --git a/skills/test-as-user/references/walkers.md b/skills/test-as-user/references/walkers.md new file mode 100644 index 0000000..f76486b --- /dev/null +++ b/skills/test-as-user/references/walkers.md @@ -0,0 +1,34 @@ +# Walker kits and walker rules + +The orchestrator reads this file in steps 3 to 5. It sets what each walker gets, how it must behave, and which blocker to plant for each kit. + +## Kits + +Each surface gets its own kit. Give a walker only its kit, where the harness lets you set tools. Where it does not, the scorer flags any tool use outside the kit. + +| Kit | Gets | Planted blocker for step 4 | +| --- | --- | --- | +| 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 | +| 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. No browser | 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 | + +For a URL target, plant the blocker with request interception instead of a rebuild. + +## 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. +- 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. +- Close pop-ups and banners as a person would. Report one that blocks the main action. +- When a long operation runs (an import, a sync, a build), check it at several points and reload once. This catches a stuck spinner, a stale count or "complete" shown too early. +- Stop at the budget, and say that you reached it. + +## Log + +For each step the walker logs one line: the action, what it expected, what it saw (the exact text), and the screenshot path or the command output. Times come from the transcript, never from the walker. From 7d7cbf73ce056ecd8afca7aae9f5cd452e3aa809 Mon Sep 17 00:00:00 2001 From: GeiserX <9169332+GeiserX@users.noreply.github.com> Date: Sat, 14 Nov 2026 15:42:46 +0100 Subject: [PATCH 2/8] fix(skills): close test-as-user's gaps where a walker could see the product or a control could never fail - subagent walkers inherit the session folder's instruction files and memory, so the run starts outside the repo and checks the walker's context first - the scorer's control now proves all six flags, and the brief checker must reject a planted brief - the walk table counts the first round only, with the controls and re-walks reserved inside the cap of 32 - a new-user persona's whole session is walked twice from a fresh sandbox - security reports go out only on the user's yes and are never fixed in a public PR - the production rule covers sweeps, the MCP agent client follows the launcher rule, and email and native apps get kits - a headless walker in a workflow starts from a command-only stage, fixes are grouped by root cause, and the refine-loop backlog and third-party keys are named --- codex/skills/test-as-user/SKILL.md | 30 ++++++++++--------- .../skills/test-as-user/references/sweeps.md | 4 ++- .../skills/test-as-user/references/walkers.md | 4 ++- skills/test-as-user/SKILL.md | 30 ++++++++++--------- skills/test-as-user/references/sweeps.md | 4 ++- skills/test-as-user/references/walkers.md | 4 ++- 6 files changed, 44 insertions(+), 32 deletions(-) diff --git a/codex/skills/test-as-user/SKILL.md b/codex/skills/test-as-user/SKILL.md index 2180aff..f2da48e 100644 --- a/codex/skills/test-as-user/SKILL.md +++ b/codex/skills/test-as-user/SKILL.md @@ -40,7 +40,7 @@ A walk is one walker session: one persona on one surface, through that persona's | normal | A web app with an API, at desktop and phone width | 9-16 | | broad | Web, phone, API, MCP and self-hosting | 17-24 | -The hard cap is 32 walks in one run, with the probe walks and re-walks included. When the plan needs more, walk the basics first and list the rest as not reached. +The table counts first-round walks only. The hard cap is 32 walks in one run, with the control walks and re-walks included. Before the first round, reserve part of the 32: the probe walk, one planted walk per kit (step 4), and the re-walks for each expected fix (step 9). When the table and the reserve together pass 32, cut the first round to fit: walk the basics first and list the rest as not reached. Walks cover two variants only: desktop and phone width, in the product's default language. Scripted sweeps over screenshots cover the rest: other widths, every other language, every theme, keyboard only and 200% zoom. @@ -48,7 +48,7 @@ Walks cover two variants only: desktop and phone width, in the product's default ### 1. Read the rules and list the surfaces -Read the repo's own `AGENTS.md`, `CLAUDE.md` and `CONTRIBUTING.md` first. They win over this skill where the two disagree. Read the last journey report if one exists (step 10 names it). Its open findings become journeys to walk again, and its "not reached" list is the first thing to try. Usability handoffs that `refine-loop` recorded as `NEEDS-FIX` also become journeys, and this skill's report is where they get closed. +Read the repo's own `AGENTS.md`, `CLAUDE.md` and `CONTRIBUTING.md` first. They win over this skill where the two disagree. Read the last journey report if one exists (step 10 names it). Its open findings become journeys to walk again, and its "not reached" list is the first thing to try. Usability handoffs that `refine-loop` recorded as `NEEDS-FIX` in `REFINE-BACKLOG.md` in its state folder (`.refine-loop/` by default) also become journeys, and this skill's report is where they get closed. Then list every surface: install, web UI, phone width, CLI, HTTP API, MCP server, docs, email, any native app. Read the README, the docs site, the help output and the published packages. Also read the navigation, the route list, the MCP tool list, the language files and any theme switch. You may read the source here to find what exists. @@ -62,9 +62,9 @@ The planner works from the user-visible rows of `surfaces.md`, the README, the d 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. -Plan three rounds: the basics, then the same goals with bad input and failures, then the coverage gaps from [Scale](#scale). Fill each brief from the template. A separate brief checker rejects a brief that names a screen, a button, a URL past the entry point or a known issue. The orchestrator has read the source, so it never edits a brief by hand. +Plan three rounds: the basics, then the same goals with bad input and failures, then the coverage gaps from [Scale](#scale). Fill each brief from the template. A separate brief checker rejects a brief that names a screen, a button, a URL past the entry point or a known issue. Before it reads the real briefs, give it one planted brief that names a button and a URL past the entry point. It must reject that brief, or no brief counts as checked. The orchestrator has read the source, so it never edits a brief by hand. -Done when every basic has a journey on every surface that offers it, or a line saying why not, and every brief passed the brief checker. +Done when every basic has a journey on every surface that offers it, or a line saying why not. The brief checker rejected the planted brief, and every real brief passed it. ### 3. Build the clean start and start the walkers safely @@ -72,26 +72,28 @@ Build a throwaway environment that the product has never touched. Use a fresh co Walk the real path. Seeding through the public API or an import is fine for a state that is not the journey under test. Database inserts, a development sign-in, demo modes and mocked services are not. Keep one only when a journey cannot run without it, and list that area as **unverified**. Passkeys run through a virtual authenticator (the Chrome DevTools Protocol `WebAuthn` domain). Phone width means touch emulation, never a narrow desktop window. -On a URL that may be production, walk only steps that change nothing, unless the user says otherwise in the session. Sign-up there creates real accounts and sends real email, so delete every test identity at cleanup. +On a URL that may be production, walk and sweep only steps that change nothing, unless the user says otherwise in the session. Sign-up there creates real accounts and sends real email, so delete every test identity at cleanup. -The walker never gets the owner's credentials and never searches dotfiles, keychains or environment files. It creates its own identity by signing up, because sign-up is a journey. A third-party key that the docs ask for goes into the sandbox under a generic name such as `API_KEY`. A step only a person can do goes to the user and is recorded as "needs a person". +The walker never gets the owner's credentials and never searches dotfiles, keychains or environment files. It creates its own identity by signing up, because sign-up is a journey. A third-party key that the docs ask for must come from the user in the session, for testing. It goes into the sandbox under a generic name such as `API_KEY`. Otherwise that journey is "needs a person". A step only a person can do goes to the user and is recorded as "needs a person". Each surface gets its own walker kit, listed in [references/walkers.md](references/walkers.md). Start each walker in one of two ways: -1. As a separate headless session, only when it starts through the same launcher, the same account and the same network route as the current session. +1. As a separate headless session, only when it starts through the same launcher, the same account and the same network route as the current session. In a workflow, a command-only launcher stage runs the launch command and returns the transcript path, so no agent starts another. 2. Otherwise as a subagent whose brief blinds it. Its working folder is a scratch folder outside the repo. It gets only the public entry point, the persona, the goal and the budget. Never start a walker as a fresh CLI session with a new config folder or a new sign-in. Many people run each agent account through a fixed network route, and a sign-in from another route can get the account flagged. With either route the walker carries harness context that a new user lacks, so the scorer in step 5 is the gate. Use a route that leaves a full transcript: every tool call, its input and its result. -Done when the sandbox exists, each kit the run needs is ready, and every walker has a route that leaves a transcript. +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. + +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 In a scratch copy, plant one known blocker for each kit the run uses (the list is in [references/walkers.md](references/walkers.md)). Walk the journey that meets it. The scorer and the verifier must both catch it. -Then run one probe walk deliberately unblinded: give it the repo path and let it read the source. The scorer must flag it. Until it does, no walk counts. After the controls, confirm by its commit or hash that the build under test is unmodified. +Then run one probe walk deliberately unblinded. Give it the repo path, tell it to read one source file, and tell it to open one URL taken from the route list. The scorer must flag both. Also give the scorer a hand-made transcript with one instance of each behaviour step 5 lists. It must raise all six flags. Until both controls pass, no walk counts. After the controls, confirm by its commit or hash that the build under test is unmodified. -Done when every planted blocker was caught by the scorer and the verifier, and the unblinded probe was flagged. +Done when every planted blocker was caught by the scorer and the verifier, the probe got both flags, and the hand-made transcript got all six. ### 5. Walk the journeys, then score each walk @@ -99,7 +101,7 @@ Give each walker its briefs one after another in one session. It keeps its memor Walk the basics first. When a basic blocks, start the later journeys from a state past it, built through the real path where you can. Mark them "started past blocker X". When the run may fix and a basic blocker has a small fix, fix it (steps 8 and 9) before the coverage-gap round. -Walk each new-user basic twice from a fresh start, on two different models when the rules in step 3 allow both. Keep the union of the findings and mark the ones both walks hit. +Walk each new-user persona's whole session twice, each time from a fresh sandbox, on two different models when the rules in step 3 allow both. Keep the union of the findings and mark the ones both walks hit. Then the scorer reads each transcript. It gives each journey one outcome against its done condition: **done**, **done with a minor issue**, **done with help** or **failed**. Reaching the done condition is the pass. An exit code of zero or a `2xx` response is not. It flags these from the transcript alone: @@ -134,7 +136,7 @@ Give the verifier two worked examples first: one real finding, and one tester ar Before it calls an API broken, the verifier reads the request that the product's own client sends. It returns **reproduced**, **not reproduced** or **artefact**, with its own evidence and severity. Drop the last two. When the severities differ, keep the higher one. It merges findings by symptom and location, because it has not read the source. -A security problem (an auth bypass, a data leak) goes to the repo's private security channel. It stays out of the report, PR bodies and screenshots until its fix lands. +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. Done when every candidate is reproduced with evidence or dropped with a reason. With `--no-fix`, go to step 10. @@ -144,12 +146,12 @@ The fixer reads the source and merges findings by root cause. It fixes the block Everything else gets status `NEEDS-FIX` in the report, with its evidence, proposed acceptance criteria and who should take it. A new feature, a redesign or a change to what the product promises goes to the owner. A blocker with an unclear root cause goes to `investigate`. A defect in a dependency gets an upstream issue: draft it, show the user the text, and post it only on their yes in the session. -For each theme, in severity order: +For each root cause, in severity order: 1. Write the failing path as a test in the repo's existing test stack. Never add a test framework without asking. When no test can express it, the re-walk transcript is the regression evidence, and the PR says so. 2. Make the smallest fix in a worktree, following the repo's own rules. Fixers run in parallel only on files that do not overlap. 3. Run the repo's checks and the new test. A reviewer reads the diff against the finding and the test. -4. Open one PR per theme with `file-pr`, with screenshots before and after for a UI change and a recording for a flow. Run the text through `readable` when it is installed. Screenshots show test identities and invented data only. +4. Open one PR per root cause with `file-pr`, with screenshots before and after for a UI change and a recording for a flow. Run the text through `readable` when it is installed. Screenshots show test identities and invented data only. Stop after two fixes in a row are reverted because their reviewer rejected them or their re-walk failed. Stop too when a fix needs a file unrelated to its finding, and report why. Merge only when the user asked for merging in this session. diff --git a/codex/skills/test-as-user/references/sweeps.md b/codex/skills/test-as-user/references/sweeps.md index 75c435b..162485e 100644 --- a/codex/skills/test-as-user/references/sweeps.md +++ b/codex/skills/test-as-user/references/sweeps.md @@ -2,6 +2,8 @@ The sweepers read this file in step 6. Each sweep is a script that you first run against a known violation and watch go red. Read every screenshot that a sweep takes. +On a URL that may be production, sweep only steps that change nothing, unless the user says otherwise in the session. The input, destructive and revoke sweeps below then run only on a sandbox install, or are listed as not reached. + ## Forced states Force these states on each screen and command of the journeys: @@ -60,7 +62,7 @@ Take every screen at 320, 390, 820 and desktop width, in every shipped language - **CLI.** From a clean home folder, run it with no arguments, with a mistyped command, with a setting missing, with no network and with its output piped. Read stdout, stderr and the exit code apart. - **HTTP API.** Run every documented example exactly as written, then with no auth and with a wrong key. -- **MCP.** List the tools with a client such as the MCP Inspector's CLI mode. Give a fresh agent client a few realistic goals, each with one answer you can check. Revoke its key and expect a clear error. +- **MCP.** List the tools with a client such as the MCP Inspector's CLI mode. Give an agent client a few realistic goals, each with one answer you can check. Start that client only through the launcher rule in step 3. Otherwise call the tools with the scripted client and list the agent-driven goals as not reached. Revoke its key and expect a clear error. ## Cross-surface truth diff --git a/codex/skills/test-as-user/references/walkers.md b/codex/skills/test-as-user/references/walkers.md index f76486b..2b65bf3 100644 --- a/codex/skills/test-as-user/references/walkers.md +++ b/codex/skills/test-as-user/references/walkers.md @@ -12,8 +12,10 @@ Each surface gets its own kit. Give a walker only its kit, where the harness let | 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 | | 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. No browser | A tool whose description sends the agent the wrong way | +| 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 | +| 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. diff --git a/skills/test-as-user/SKILL.md b/skills/test-as-user/SKILL.md index 2b81db7..84e67e9 100644 --- a/skills/test-as-user/SKILL.md +++ b/skills/test-as-user/SKILL.md @@ -26,7 +26,7 @@ A walk is one walker session: one persona on one surface, through that persona's | normal | A web app with an API, at desktop and phone width | 9-16 | | broad | Web, phone, API, MCP and self-hosting | 17-24 | -The hard cap is 32 walks in one run, with the probe walks and re-walks included. When the plan needs more, walk the basics first and list the rest as not reached. +The table counts first-round walks only. The hard cap is 32 walks in one run, with the control walks and re-walks included. Before the first round, reserve part of the 32: the probe walk, one planted walk per kit (step 4), and the re-walks for each expected fix (step 9). When the table and the reserve together pass 32, cut the first round to fit: walk the basics first and list the rest as not reached. Walks cover two variants only: desktop and phone width, in the product's default language. Scripted sweeps over screenshots cover the rest: other widths, every other language, every theme, keyboard only and 200% zoom. @@ -34,7 +34,7 @@ Walks cover two variants only: desktop and phone width, in the product's default ### 1. Read the rules and list the surfaces -Read the repo's own `AGENTS.md`, `CLAUDE.md` and `CONTRIBUTING.md` first. They win over this skill where the two disagree. Read the last journey report if one exists (step 10 names it). Its open findings become journeys to walk again, and its "not reached" list is the first thing to try. Usability handoffs that `refine-loop` recorded as `NEEDS-FIX` also become journeys, and this skill's report is where they get closed. +Read the repo's own `AGENTS.md`, `CLAUDE.md` and `CONTRIBUTING.md` first. They win over this skill where the two disagree. Read the last journey report if one exists (step 10 names it). Its open findings become journeys to walk again, and its "not reached" list is the first thing to try. Usability handoffs that `refine-loop` recorded as `NEEDS-FIX` in `REFINE-BACKLOG.md` in its state folder (`.refine-loop/` by default) also become journeys, and this skill's report is where they get closed. Then list every surface: install, web UI, phone width, CLI, HTTP API, MCP server, docs, email, any native app. Read the README, the docs site, the help output and the published packages. Also read the navigation, the route list, the MCP tool list, the language files and any theme switch. You may read the source here to find what exists. @@ -48,9 +48,9 @@ The planner works from the user-visible rows of `surfaces.md`, the README, the d 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. -Plan three rounds: the basics, then the same goals with bad input and failures, then the coverage gaps from [Scale](#scale). Fill each brief from the template. A separate brief checker rejects a brief that names a screen, a button, a URL past the entry point or a known issue. The orchestrator has read the source, so it never edits a brief by hand. +Plan three rounds: the basics, then the same goals with bad input and failures, then the coverage gaps from [Scale](#scale). Fill each brief from the template. A separate brief checker rejects a brief that names a screen, a button, a URL past the entry point or a known issue. Before it reads the real briefs, give it one planted brief that names a button and a URL past the entry point. It must reject that brief, or no brief counts as checked. The orchestrator has read the source, so it never edits a brief by hand. -Done when every basic has a journey on every surface that offers it, or a line saying why not, and every brief passed the brief checker. +Done when every basic has a journey on every surface that offers it, or a line saying why not. The brief checker rejected the planted brief, and every real brief passed it. ### 3. Build the clean start and start the walkers safely @@ -58,26 +58,28 @@ Build a throwaway environment that the product has never touched. Use a fresh co Walk the real path. Seeding through the public API or an import is fine for a state that is not the journey under test. Database inserts, a development sign-in, demo modes and mocked services are not. Keep one only when a journey cannot run without it, and list that area as **unverified**. Passkeys run through a virtual authenticator (the Chrome DevTools Protocol `WebAuthn` domain). Phone width means touch emulation, never a narrow desktop window. -On a URL that may be production, walk only steps that change nothing, unless the user says otherwise in the session. Sign-up there creates real accounts and sends real email, so delete every test identity at cleanup. +On a URL that may be production, walk and sweep only steps that change nothing, unless the user says otherwise in the session. Sign-up there creates real accounts and sends real email, so delete every test identity at cleanup. -The walker never gets the owner's credentials and never searches dotfiles, keychains or environment files. It creates its own identity by signing up, because sign-up is a journey. A third-party key that the docs ask for goes into the sandbox under a generic name such as `API_KEY`. A step only a person can do goes to the user and is recorded as "needs a person". +The walker never gets the owner's credentials and never searches dotfiles, keychains or environment files. It creates its own identity by signing up, because sign-up is a journey. A third-party key that the docs ask for must come from the user in the session, for testing. It goes into the sandbox under a generic name such as `API_KEY`. Otherwise that journey is "needs a person". A step only a person can do goes to the user and is recorded as "needs a person". Each surface gets its own walker kit, listed in [references/walkers.md](references/walkers.md). Start each walker in one of two ways: -1. As a separate headless session, only when it starts through the same launcher, the same account and the same network route as the current session. +1. As a separate headless session, only when it starts through the same launcher, the same account and the same network route as the current session. In a workflow, a command-only launcher stage runs the launch command and returns the transcript path, so no agent starts another. 2. Otherwise as a subagent whose brief blinds it. Its working folder is a scratch folder outside the repo. It gets only the public entry point, the persona, the goal and the budget. Never start a walker as a fresh CLI session with a new config folder or a new sign-in. Many people run each agent account through a fixed network route, and a sign-in from another route can get the account flagged. With either route the walker carries harness context that a new user lacks, so the scorer in step 5 is the gate. Use a route that leaves a full transcript: every tool call, its input and its result. -Done when the sandbox exists, each kit the run needs is ready, and every walker has a route that leaves a transcript. +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. + +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 In a scratch copy, plant one known blocker for each kit the run uses (the list is in [references/walkers.md](references/walkers.md)). Walk the journey that meets it. The scorer and the verifier must both catch it. -Then run one probe walk deliberately unblinded: give it the repo path and let it read the source. The scorer must flag it. Until it does, no walk counts. After the controls, confirm by its commit or hash that the build under test is unmodified. +Then run one probe walk deliberately unblinded. Give it the repo path, tell it to read one source file, and tell it to open one URL taken from the route list. The scorer must flag both. Also give the scorer a hand-made transcript with one instance of each behaviour step 5 lists. It must raise all six flags. Until both controls pass, no walk counts. After the controls, confirm by its commit or hash that the build under test is unmodified. -Done when every planted blocker was caught by the scorer and the verifier, and the unblinded probe was flagged. +Done when every planted blocker was caught by the scorer and the verifier, the probe got both flags, and the hand-made transcript got all six. ### 5. Walk the journeys, then score each walk @@ -85,7 +87,7 @@ Give each walker its briefs one after another in one session. It keeps its memor Walk the basics first. When a basic blocks, start the later journeys from a state past it, built through the real path where you can. Mark them "started past blocker X". When the run may fix and a basic blocker has a small fix, fix it (steps 8 and 9) before the coverage-gap round. -Walk each new-user basic twice from a fresh start, on two different models when the rules in step 3 allow both. Keep the union of the findings and mark the ones both walks hit. +Walk each new-user persona's whole session twice, each time from a fresh sandbox, on two different models when the rules in step 3 allow both. Keep the union of the findings and mark the ones both walks hit. Then the scorer reads each transcript. It gives each journey one outcome against its done condition: **done**, **done with a minor issue**, **done with help** or **failed**. Reaching the done condition is the pass. An exit code of zero or a `2xx` response is not. It flags these from the transcript alone: @@ -120,7 +122,7 @@ Give the verifier two worked examples first: one real finding, and one tester ar Before it calls an API broken, the verifier reads the request that the product's own client sends. It returns **reproduced**, **not reproduced** or **artefact**, with its own evidence and severity. Drop the last two. When the severities differ, keep the higher one. It merges findings by symptom and location, because it has not read the source. -A security problem (an auth bypass, a data leak) goes to the repo's private security channel. It stays out of the report, PR bodies and screenshots until its fix lands. +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. Done when every candidate is reproduced with evidence or dropped with a reason. With `--no-fix`, go to step 10. @@ -130,12 +132,12 @@ The fixer reads the source and merges findings by root cause. It fixes the block Everything else gets status `NEEDS-FIX` in the report, with its evidence, proposed acceptance criteria and who should take it. A new feature, a redesign or a change to what the product promises goes to the owner. A blocker with an unclear root cause goes to `investigate`. A defect in a dependency gets an upstream issue: draft it, show the user the text, and post it only on their yes in the session. -For each theme, in severity order: +For each root cause, in severity order: 1. Write the failing path as a test in the repo's existing test stack. Never add a test framework without asking. When no test can express it, the re-walk transcript is the regression evidence, and the PR says so. 2. Make the smallest fix in a worktree, following the repo's own rules. Fixers run in parallel only on files that do not overlap. 3. Run the repo's checks and the new test. A reviewer reads the diff against the finding and the test. -4. Open one PR per theme with `file-pr`, with screenshots before and after for a UI change and a recording for a flow. Run the text through `readable` when it is installed. Screenshots show test identities and invented data only. +4. Open one PR per root cause with `file-pr`, with screenshots before and after for a UI change and a recording for a flow. Run the text through `readable` when it is installed. Screenshots show test identities and invented data only. Stop after two fixes in a row are reverted because their reviewer rejected them or their re-walk failed. Stop too when a fix needs a file unrelated to its finding, and report why. Merge only when the user asked for merging in this session. diff --git a/skills/test-as-user/references/sweeps.md b/skills/test-as-user/references/sweeps.md index 75c435b..162485e 100644 --- a/skills/test-as-user/references/sweeps.md +++ b/skills/test-as-user/references/sweeps.md @@ -2,6 +2,8 @@ The sweepers read this file in step 6. Each sweep is a script that you first run against a known violation and watch go red. Read every screenshot that a sweep takes. +On a URL that may be production, sweep only steps that change nothing, unless the user says otherwise in the session. The input, destructive and revoke sweeps below then run only on a sandbox install, or are listed as not reached. + ## Forced states Force these states on each screen and command of the journeys: @@ -60,7 +62,7 @@ Take every screen at 320, 390, 820 and desktop width, in every shipped language - **CLI.** From a clean home folder, run it with no arguments, with a mistyped command, with a setting missing, with no network and with its output piped. Read stdout, stderr and the exit code apart. - **HTTP API.** Run every documented example exactly as written, then with no auth and with a wrong key. -- **MCP.** List the tools with a client such as the MCP Inspector's CLI mode. Give a fresh agent client a few realistic goals, each with one answer you can check. Revoke its key and expect a clear error. +- **MCP.** List the tools with a client such as the MCP Inspector's CLI mode. Give an agent client a few realistic goals, each with one answer you can check. Start that client only through the launcher rule in step 3. Otherwise call the tools with the scripted client and list the agent-driven goals as not reached. Revoke its key and expect a clear error. ## Cross-surface truth diff --git a/skills/test-as-user/references/walkers.md b/skills/test-as-user/references/walkers.md index f76486b..2b65bf3 100644 --- a/skills/test-as-user/references/walkers.md +++ b/skills/test-as-user/references/walkers.md @@ -12,8 +12,10 @@ Each surface gets its own kit. Give a walker only its kit, where the harness let | 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 | | 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. No browser | A tool whose description sends the agent the wrong way | +| 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 | +| 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. From 88f42191c6f0ba1547eadbb15ae7cc80724d960c Mon Sep 17 00:00:00 2001 From: GeiserX <9169332+GeiserX@users.noreply.github.com> Date: Sat, 14 Nov 2026 15:55:53 +0100 Subject: [PATCH 3/8] fix(skills): make test-as-user checks match each surface's real contract Sweep scripts have a home and a positive control, inputs are judged against a written field contract, the no-TTY rule applies only to CLIs, touch targets keep the WCAG exceptions, a documented clone or URL is not flagged as cheating, the orchestrator never stands in for a blinded lane, and a flaky reproduction is recorded as intermittent instead of dropped. --- codex/skills/test-as-user/SKILL.md | 10 +++++----- codex/skills/test-as-user/references/sweeps.md | 11 ++++++----- skills/test-as-user/SKILL.md | 10 +++++----- skills/test-as-user/references/sweeps.md | 11 ++++++----- 4 files changed, 22 insertions(+), 20 deletions(-) diff --git a/codex/skills/test-as-user/SKILL.md b/codex/skills/test-as-user/SKILL.md index f2da48e..2dbd33c 100644 --- a/codex/skills/test-as-user/SKILL.md +++ b/codex/skills/test-as-user/SKILL.md @@ -27,7 +27,7 @@ Every check names who is trying, what they want and where they are. The evidence With no argument, work on the repo that contains the current directory and the product it ships. A URL names a running instance to walk instead of a fresh install. With `--no-fix`, no fixer starts: stop after step 7 and write the report. -Run it as a workflow. This skill is your opt-in to call the Workflow tool. Without one, run the same stages as parallel agents yourself, in the same order. Pin every agent to the strongest model the session allows. An unpinned agent inherits whatever the session runs on. Agents never spawn agents, so the orchestrator starts every walker. The agent that writes a change never approves it. +Run it as a workflow. This skill is your opt-in to call the Workflow tool. Without one, run the same stages as parallel agents yourself, in the same order. The orchestrator has read the source, so it never plans, walks, scores or verifies itself. When no separate agent can take those stages, stop and report the run as unverified. Pin every agent to the strongest model the session allows. An unpinned agent inherits whatever the session runs on. Agents never spawn agents, so the orchestrator starts every walker. The agent that writes a change never approves it. ## Scale @@ -106,8 +106,8 @@ Walk each new-user persona's whole session twice, each time from a fresh sandbox Then the scorer reads each transcript. It gives each journey one outcome against its done condition: **done**, **done with a minor issue**, **done with help** or **failed**. Reaching the done condition is the pass. An exit code of zero or a `2xx` response is not. It flags these from the transcript alone: - 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 URL never shown as a link on an earlier page +- 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 - a screenshot taken and never read - a click on an element not visible in the last screenshot @@ -134,11 +134,11 @@ Give the verifier two worked examples first: one real finding, and one tester ar - **Findability or comprehension.** Check the transcript and screenshots: was the way forward visible from where the walker looked? When unsure, run a second fresh walk with the same brief. - **Intermittent.** Retry it three times. If it does not come back, keep it as "intermittent" with the original evidence. -Before it calls an API broken, the verifier reads the request that the product's own client sends. It returns **reproduced**, **not reproduced** or **artefact**, with its own evidence and severity. Drop the last two. When the severities differ, keep the higher one. It merges findings by symptom and location, because it has not read the source. +Before it calls an API broken, the verifier reads the request that the product's own client sends. It returns **reproduced**, **intermittent**, **not reproduced** or **artefact**, with its own evidence and severity. Keep the first two, with the original evidence for an intermittent one. Drop the last two. When the severities differ, keep the higher one. It merges findings by symptom and location, because it has not read the source. 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. -Done when every candidate is reproduced with evidence or dropped with a reason. With `--no-fix`, go to step 10. +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/sweeps.md b/codex/skills/test-as-user/references/sweeps.md index 162485e..fdb8f1d 100644 --- a/codex/skills/test-as-user/references/sweeps.md +++ b/codex/skills/test-as-user/references/sweeps.md @@ -1,6 +1,6 @@ # Sweeps -The sweepers read this file in step 6. Each sweep is a script that you first run against a known violation and watch go red. Read every screenshot that a sweep takes. +The sweepers read this file in step 6. The repo rarely has these scripts, so the sweeper writes each one in the run's scratch folder (`sweeps/`), using the repo's own browser driver when it has one. Each script prints one line per check, `PASS` or `FAIL`, with the screen, the check and the evidence path, and exits non-zero on any `FAIL`. Run it first against a known violation, such as a planted untranslated string or a button made too small, and keep that red output. Read every screenshot that a sweep takes. On a URL that may be production, sweep only steps that change nothing, unless the user says otherwise in the session. The input, destructive and revoke sweeps below then run only on a sandbox install, or are listed as not reached. @@ -24,9 +24,10 @@ Read what the person sees. These rules apply: ## Input - Submit every form on a journey with its default values through the real browser, so the browser's own validation (`pattern`, `required`, `min`, `max`, `type`) is part of the test. -- Then submit it empty, with junk, out of range and with a future date. Also try the other decimal separator, a duplicate, non-ASCII text and a very long string. +- First write down each field's contract from the label, the help text and the docs: required or optional, its range, whether a future date is allowed. Assert against that contract, never against a fixed idea of bad input. +- Then submit it empty, with junk, out of range and with a date the contract forbids. Also try the other decimal separator, a duplicate, non-ASCII text and a very long string. - Send the same values to the API, because agents and scripts send what forms block. -- Bad input must be refused with the field named, and the person's input must stay in the form. +- Input the contract forbids must be refused with the field named, and the person's input must stay in the form. Input the contract allows must be accepted. ## Destructive actions @@ -34,7 +35,7 @@ List every action that deletes, overwrites, sends, pays, publishes or revokes, o - The confirmation names the object and the result. - There is undo, a recovery window or a dry run. -- A call without a terminal refuses unless it has an explicit flag. +- A CLI command run without a terminal refuses unless it has an explicit flag such as `--yes`. An API or MCP call is checked against its documented contract instead. - After the action, you can get the data back, or the confirmation said that you cannot. Then walk from the state that each one leaves (no profile, no passkey left, signed out). Every screen still names a next step, and every way in has a way out. @@ -45,7 +46,7 @@ Take every screen at 320, 390, 820 and desktop width, in every shipped language - No sideways scroll, and no text that runs past its own box. - Every action is in view and works without hover. -- Touch targets are at least 24 by 24 CSS pixels (WCAG 2.2 AA). A target under 44 or 48 pixels breaks platform guidance and is a minor finding. +- Touch targets are at least 24 by 24 CSS pixels (WCAG 2.2 AA). The criterion's exceptions still apply. They cover enough spacing, an inline link in text, an equivalent larger control, a size the browser sets, and an essential size. A target under 44 or 48 pixels breaks platform guidance and is a minor finding. - A script finishes each core journey with the keyboard alone, and focus stays visible and follows the reading order. A core journey that the keyboard cannot finish is a blocker. - Every control has a name. Run an axe scan in each theme. Zoom text to 200%. Honour reduced motion. - Each screen has one `h1`, a `main` landmark and a heading outline, as the stand-in for a screen reader. diff --git a/skills/test-as-user/SKILL.md b/skills/test-as-user/SKILL.md index 84e67e9..42f5f7e 100644 --- a/skills/test-as-user/SKILL.md +++ b/skills/test-as-user/SKILL.md @@ -13,7 +13,7 @@ Every check names who is trying, what they want and where they are. The evidence With no argument, work on the repo that contains the current directory and the product it ships. A URL names a running instance to walk instead of a fresh install. With `--no-fix`, no fixer starts: stop after step 7 and write the report. -Run it as a workflow. This skill is your opt-in to call the Workflow tool. Without one, run the same stages as parallel agents yourself, in the same order. Pin every agent to the strongest model the session allows. An unpinned agent inherits whatever the session runs on. Agents never spawn agents, so the orchestrator starts every walker. The agent that writes a change never approves it. +Run it as a workflow. This skill is your opt-in to call the Workflow tool. Without one, run the same stages as parallel agents yourself, in the same order. The orchestrator has read the source, so it never plans, walks, scores or verifies itself. When no separate agent can take those stages, stop and report the run as unverified. Pin every agent to the strongest model the session allows. An unpinned agent inherits whatever the session runs on. Agents never spawn agents, so the orchestrator starts every walker. The agent that writes a change never approves it. ## Scale @@ -92,8 +92,8 @@ Walk each new-user persona's whole session twice, each time from a fresh sandbox Then the scorer reads each transcript. It gives each journey one outcome against its done condition: **done**, **done with a minor issue**, **done with help** or **failed**. Reaching the done condition is the pass. An exit code of zero or a `2xx` response is not. It flags these from the transcript alone: - 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 URL never shown as a link on an earlier page +- 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 - a screenshot taken and never read - a click on an element not visible in the last screenshot @@ -120,11 +120,11 @@ Give the verifier two worked examples first: one real finding, and one tester ar - **Findability or comprehension.** Check the transcript and screenshots: was the way forward visible from where the walker looked? When unsure, run a second fresh walk with the same brief. - **Intermittent.** Retry it three times. If it does not come back, keep it as "intermittent" with the original evidence. -Before it calls an API broken, the verifier reads the request that the product's own client sends. It returns **reproduced**, **not reproduced** or **artefact**, with its own evidence and severity. Drop the last two. When the severities differ, keep the higher one. It merges findings by symptom and location, because it has not read the source. +Before it calls an API broken, the verifier reads the request that the product's own client sends. It returns **reproduced**, **intermittent**, **not reproduced** or **artefact**, with its own evidence and severity. Keep the first two, with the original evidence for an intermittent one. Drop the last two. When the severities differ, keep the higher one. It merges findings by symptom and location, because it has not read the source. 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. -Done when every candidate is reproduced with evidence or dropped with a reason. With `--no-fix`, go to step 10. +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/sweeps.md b/skills/test-as-user/references/sweeps.md index 162485e..fdb8f1d 100644 --- a/skills/test-as-user/references/sweeps.md +++ b/skills/test-as-user/references/sweeps.md @@ -1,6 +1,6 @@ # Sweeps -The sweepers read this file in step 6. Each sweep is a script that you first run against a known violation and watch go red. Read every screenshot that a sweep takes. +The sweepers read this file in step 6. The repo rarely has these scripts, so the sweeper writes each one in the run's scratch folder (`sweeps/`), using the repo's own browser driver when it has one. Each script prints one line per check, `PASS` or `FAIL`, with the screen, the check and the evidence path, and exits non-zero on any `FAIL`. Run it first against a known violation, such as a planted untranslated string or a button made too small, and keep that red output. Read every screenshot that a sweep takes. On a URL that may be production, sweep only steps that change nothing, unless the user says otherwise in the session. The input, destructive and revoke sweeps below then run only on a sandbox install, or are listed as not reached. @@ -24,9 +24,10 @@ Read what the person sees. These rules apply: ## Input - Submit every form on a journey with its default values through the real browser, so the browser's own validation (`pattern`, `required`, `min`, `max`, `type`) is part of the test. -- Then submit it empty, with junk, out of range and with a future date. Also try the other decimal separator, a duplicate, non-ASCII text and a very long string. +- First write down each field's contract from the label, the help text and the docs: required or optional, its range, whether a future date is allowed. Assert against that contract, never against a fixed idea of bad input. +- Then submit it empty, with junk, out of range and with a date the contract forbids. Also try the other decimal separator, a duplicate, non-ASCII text and a very long string. - Send the same values to the API, because agents and scripts send what forms block. -- Bad input must be refused with the field named, and the person's input must stay in the form. +- Input the contract forbids must be refused with the field named, and the person's input must stay in the form. Input the contract allows must be accepted. ## Destructive actions @@ -34,7 +35,7 @@ List every action that deletes, overwrites, sends, pays, publishes or revokes, o - The confirmation names the object and the result. - There is undo, a recovery window or a dry run. -- A call without a terminal refuses unless it has an explicit flag. +- A CLI command run without a terminal refuses unless it has an explicit flag such as `--yes`. An API or MCP call is checked against its documented contract instead. - After the action, you can get the data back, or the confirmation said that you cannot. Then walk from the state that each one leaves (no profile, no passkey left, signed out). Every screen still names a next step, and every way in has a way out. @@ -45,7 +46,7 @@ Take every screen at 320, 390, 820 and desktop width, in every shipped language - No sideways scroll, and no text that runs past its own box. - Every action is in view and works without hover. -- Touch targets are at least 24 by 24 CSS pixels (WCAG 2.2 AA). A target under 44 or 48 pixels breaks platform guidance and is a minor finding. +- Touch targets are at least 24 by 24 CSS pixels (WCAG 2.2 AA). The criterion's exceptions still apply. They cover enough spacing, an inline link in text, an equivalent larger control, a size the browser sets, and an essential size. A target under 44 or 48 pixels breaks platform guidance and is a minor finding. - A script finishes each core journey with the keyboard alone, and focus stays visible and follows the reading order. A core journey that the keyboard cannot finish is a blocker. - Every control has a name. Run an axe scan in each theme. Zoom text to 200%. Honour reduced motion. - Each screen has one `h1`, a `main` landmark and a heading outline, as the stand-in for a screen reader. From 81cf03ccc85e524dd0b1c43c711590b6db2341b5 Mon Sep 17 00:00:00 2001 From: GeiserX <9169332+GeiserX@users.noreply.github.com> Date: Sat, 14 Nov 2026 16:06:43 +0100 Subject: [PATCH 4/8] fix(skills): keep test-as-user's agent rule and irreversible-action check consistent Without the Workflow tool each stage still runs as a separate agent, an action with no undo passes when its confirmation warns the result is final, and the brief template says the walker rules belong in it. --- codex/skills/test-as-user/SKILL.md | 2 +- codex/skills/test-as-user/references/journeys.md | 2 +- codex/skills/test-as-user/references/sweeps.md | 2 +- skills/test-as-user/SKILL.md | 2 +- skills/test-as-user/references/journeys.md | 2 +- skills/test-as-user/references/sweeps.md | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/codex/skills/test-as-user/SKILL.md b/codex/skills/test-as-user/SKILL.md index 2dbd33c..c81ab77 100644 --- a/codex/skills/test-as-user/SKILL.md +++ b/codex/skills/test-as-user/SKILL.md @@ -27,7 +27,7 @@ Every check names who is trying, what they want and where they are. The evidence With no argument, work on the repo that contains the current directory and the product it ships. A URL names a running instance to walk instead of a fresh install. With `--no-fix`, no fixer starts: stop after step 7 and write the report. -Run it as a workflow. This skill is your opt-in to call the Workflow tool. Without one, run the same stages as parallel agents yourself, in the same order. The orchestrator has read the source, so it never plans, walks, scores or verifies itself. When no separate agent can take those stages, stop and report the run as unverified. Pin every agent to the strongest model the session allows. An unpinned agent inherits whatever the session runs on. Agents never spawn agents, so the orchestrator starts every walker. The agent that writes a change never approves it. +Run it as a workflow. This skill is your opt-in to call the Workflow tool. Without the Workflow tool, start each stage as a separate agent, in the same order. The orchestrator has read the source, so it never plans, walks, scores or verifies itself. When no separate agent can take those stages, stop and report the run as unverified. Pin every agent to the strongest model the session allows. An unpinned agent inherits whatever the session runs on. Agents never spawn agents, so the orchestrator starts every walker. The agent that writes a change never approves it. ## Scale diff --git a/codex/skills/test-as-user/references/journeys.md b/codex/skills/test-as-user/references/journeys.md index 135e1aa..2e862bc 100644 --- a/codex/skills/test-as-user/references/journeys.md +++ b/codex/skills/test-as-user/references/journeys.md @@ -48,7 +48,7 @@ Add these where the product has them: ## Brief template -Every brief has this shape and nothing more. The brief checker rejects one that names a screen, a button, a URL past the entry point or a known issue. +Every brief has this shape, plus the walker rules from `walkers.md`. The brief checker rejects one that names a screen, a button, a URL past the entry point or a known issue. The walker rules name none of these, so the checker accepts them. ```text You are: diff --git a/codex/skills/test-as-user/references/sweeps.md b/codex/skills/test-as-user/references/sweeps.md index fdb8f1d..5db8d44 100644 --- a/codex/skills/test-as-user/references/sweeps.md +++ b/codex/skills/test-as-user/references/sweeps.md @@ -34,7 +34,7 @@ Read what the person sees. These rules apply: List every action that deletes, overwrites, sends, pays, publishes or revokes, on every surface. Run them only on test data. For each one, check these points: - The confirmation names the object and the result. -- There is undo, a recovery window or a dry run. +- Undo, a recovery window or a dry run works where the product offers one. Where it offers none, the confirmation warns that the result is final. - A CLI command run without a terminal refuses unless it has an explicit flag such as `--yes`. An API or MCP call is checked against its documented contract instead. - After the action, you can get the data back, or the confirmation said that you cannot. diff --git a/skills/test-as-user/SKILL.md b/skills/test-as-user/SKILL.md index 42f5f7e..1f15fb2 100644 --- a/skills/test-as-user/SKILL.md +++ b/skills/test-as-user/SKILL.md @@ -13,7 +13,7 @@ Every check names who is trying, what they want and where they are. The evidence With no argument, work on the repo that contains the current directory and the product it ships. A URL names a running instance to walk instead of a fresh install. With `--no-fix`, no fixer starts: stop after step 7 and write the report. -Run it as a workflow. This skill is your opt-in to call the Workflow tool. Without one, run the same stages as parallel agents yourself, in the same order. The orchestrator has read the source, so it never plans, walks, scores or verifies itself. When no separate agent can take those stages, stop and report the run as unverified. Pin every agent to the strongest model the session allows. An unpinned agent inherits whatever the session runs on. Agents never spawn agents, so the orchestrator starts every walker. The agent that writes a change never approves it. +Run it as a workflow. This skill is your opt-in to call the Workflow tool. Without the Workflow tool, start each stage as a separate agent, in the same order. The orchestrator has read the source, so it never plans, walks, scores or verifies itself. When no separate agent can take those stages, stop and report the run as unverified. Pin every agent to the strongest model the session allows. An unpinned agent inherits whatever the session runs on. Agents never spawn agents, so the orchestrator starts every walker. The agent that writes a change never approves it. ## Scale diff --git a/skills/test-as-user/references/journeys.md b/skills/test-as-user/references/journeys.md index 135e1aa..2e862bc 100644 --- a/skills/test-as-user/references/journeys.md +++ b/skills/test-as-user/references/journeys.md @@ -48,7 +48,7 @@ Add these where the product has them: ## Brief template -Every brief has this shape and nothing more. The brief checker rejects one that names a screen, a button, a URL past the entry point or a known issue. +Every brief has this shape, plus the walker rules from `walkers.md`. The brief checker rejects one that names a screen, a button, a URL past the entry point or a known issue. The walker rules name none of these, so the checker accepts them. ```text You are: diff --git a/skills/test-as-user/references/sweeps.md b/skills/test-as-user/references/sweeps.md index fdb8f1d..5db8d44 100644 --- a/skills/test-as-user/references/sweeps.md +++ b/skills/test-as-user/references/sweeps.md @@ -34,7 +34,7 @@ Read what the person sees. These rules apply: List every action that deletes, overwrites, sends, pays, publishes or revokes, on every surface. Run them only on test data. For each one, check these points: - The confirmation names the object and the result. -- There is undo, a recovery window or a dry run. +- Undo, a recovery window or a dry run works where the product offers one. Where it offers none, the confirmation warns that the result is final. - A CLI command run without a terminal refuses unless it has an explicit flag such as `--yes`. An API or MCP call is checked against its documented contract instead. - After the action, you can get the data back, or the confirmation said that you cannot. From ccb5637d653f80129cd69faa23d6a2c1bc53137d Mon Sep 17 00:00:00 2001 From: GeiserX <9169332+GeiserX@users.noreply.github.com> Date: Sat, 14 Nov 2026 16:12:34 +0100 Subject: [PATCH 5/8] fix(skills): let test-as-user's diversity walk use a second model and keep the finality warning The second new-user walk runs on the other allowed model as step 5 asks, and a dry run no longer excuses a final action from warning that it cannot be undone. --- codex/skills/test-as-user/SKILL.md | 2 +- codex/skills/test-as-user/references/sweeps.md | 2 +- skills/test-as-user/SKILL.md | 2 +- skills/test-as-user/references/sweeps.md | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/codex/skills/test-as-user/SKILL.md b/codex/skills/test-as-user/SKILL.md index c81ab77..a4151c8 100644 --- a/codex/skills/test-as-user/SKILL.md +++ b/codex/skills/test-as-user/SKILL.md @@ -27,7 +27,7 @@ Every check names who is trying, what they want and where they are. The evidence With no argument, work on the repo that contains the current directory and the product it ships. A URL names a running instance to walk instead of a fresh install. With `--no-fix`, no fixer starts: stop after step 7 and write the report. -Run it as a workflow. This skill is your opt-in to call the Workflow tool. Without the Workflow tool, start each stage as a separate agent, in the same order. The orchestrator has read the source, so it never plans, walks, scores or verifies itself. When no separate agent can take those stages, stop and report the run as unverified. Pin every agent to the strongest model the session allows. An unpinned agent inherits whatever the session runs on. Agents never spawn agents, so the orchestrator starts every walker. The agent that writes a change never approves it. +Run it as a workflow. This skill is your opt-in to call the Workflow tool. Without the Workflow tool, start each stage as a separate agent, in the same order. The orchestrator has read the source, so it never plans, walks, scores or verifies itself. When no separate agent can take those stages, stop and report the run as unverified. Pin every agent to the strongest model the session allows. The one exception is the second walk of a new-user persona in step 5, which runs on the other allowed model. An unpinned agent inherits whatever the session runs on. Agents never spawn agents, so the orchestrator starts every walker. The agent that writes a change never approves it. ## Scale diff --git a/codex/skills/test-as-user/references/sweeps.md b/codex/skills/test-as-user/references/sweeps.md index 5db8d44..069d3b8 100644 --- a/codex/skills/test-as-user/references/sweeps.md +++ b/codex/skills/test-as-user/references/sweeps.md @@ -34,7 +34,7 @@ Read what the person sees. These rules apply: List every action that deletes, overwrites, sends, pays, publishes or revokes, on every surface. Run them only on test data. For each one, check these points: - The confirmation names the object and the result. -- Undo, a recovery window or a dry run works where the product offers one. Where it offers none, the confirmation warns that the result is final. +- Undo, a recovery window or a dry run works where the product offers one. When the real action has no undo and no recovery window, the confirmation warns that the result is final. A dry run does not remove that need. - A CLI command run without a terminal refuses unless it has an explicit flag such as `--yes`. An API or MCP call is checked against its documented contract instead. - After the action, you can get the data back, or the confirmation said that you cannot. diff --git a/skills/test-as-user/SKILL.md b/skills/test-as-user/SKILL.md index 1f15fb2..d9be021 100644 --- a/skills/test-as-user/SKILL.md +++ b/skills/test-as-user/SKILL.md @@ -13,7 +13,7 @@ Every check names who is trying, what they want and where they are. The evidence With no argument, work on the repo that contains the current directory and the product it ships. A URL names a running instance to walk instead of a fresh install. With `--no-fix`, no fixer starts: stop after step 7 and write the report. -Run it as a workflow. This skill is your opt-in to call the Workflow tool. Without the Workflow tool, start each stage as a separate agent, in the same order. The orchestrator has read the source, so it never plans, walks, scores or verifies itself. When no separate agent can take those stages, stop and report the run as unverified. Pin every agent to the strongest model the session allows. An unpinned agent inherits whatever the session runs on. Agents never spawn agents, so the orchestrator starts every walker. The agent that writes a change never approves it. +Run it as a workflow. This skill is your opt-in to call the Workflow tool. Without the Workflow tool, start each stage as a separate agent, in the same order. The orchestrator has read the source, so it never plans, walks, scores or verifies itself. When no separate agent can take those stages, stop and report the run as unverified. Pin every agent to the strongest model the session allows. The one exception is the second walk of a new-user persona in step 5, which runs on the other allowed model. An unpinned agent inherits whatever the session runs on. Agents never spawn agents, so the orchestrator starts every walker. The agent that writes a change never approves it. ## Scale diff --git a/skills/test-as-user/references/sweeps.md b/skills/test-as-user/references/sweeps.md index 5db8d44..069d3b8 100644 --- a/skills/test-as-user/references/sweeps.md +++ b/skills/test-as-user/references/sweeps.md @@ -34,7 +34,7 @@ Read what the person sees. These rules apply: List every action that deletes, overwrites, sends, pays, publishes or revokes, on every surface. Run them only on test data. For each one, check these points: - The confirmation names the object and the result. -- Undo, a recovery window or a dry run works where the product offers one. Where it offers none, the confirmation warns that the result is final. +- Undo, a recovery window or a dry run works where the product offers one. When the real action has no undo and no recovery window, the confirmation warns that the result is final. A dry run does not remove that need. - A CLI command run without a terminal refuses unless it has an explicit flag such as `--yes`. An API or MCP call is checked against its documented contract instead. - After the action, you can get the data back, or the confirmation said that you cannot. From a7a9a02040b30ad57850722ebc7e123d7b85b7f4 Mon Sep 17 00:00:00 2001 From: GeiserX <9169332+GeiserX@users.noreply.github.com> Date: Sat, 14 Nov 2026 16:18:00 +0100 Subject: [PATCH 6/8] fix(codex): let a skill's own no-subagent rule beat the generic run-it-yourself fallback The shared Codex note told every skill to run its lanes itself when subagents are missing, which contradicted test-as-user's rule to stop and report the run as unverified. --- codex/skills/docs-loop/SKILL.md | 3 ++- codex/skills/eli5/SKILL.md | 3 ++- codex/skills/file-pr/SKILL.md | 3 ++- codex/skills/full-loop/SKILL.md | 3 ++- codex/skills/github-video-embed/SKILL.md | 3 ++- codex/skills/grow-my-repo/SKILL.md | 3 ++- codex/skills/help-decide/SKILL.md | 3 ++- codex/skills/implement/SKILL.md | 3 ++- codex/skills/investigate/SKILL.md | 3 ++- codex/skills/kb-research/SKILL.md | 3 ++- codex/skills/kb-review/SKILL.md | 3 ++- codex/skills/readable/SKILL.md | 3 ++- codex/skills/refine-loop/SKILL.md | 3 ++- codex/skills/research/SKILL.md | 3 ++- codex/skills/review-code/SKILL.md | 3 ++- codex/skills/review-pr/SKILL.md | 3 ++- codex/skills/revive/SKILL.md | 3 ++- codex/skills/sergio-loop/SKILL.md | 3 ++- codex/skills/submit-awesome/SKILL.md | 3 ++- codex/skills/test-as-user/SKILL.md | 3 ++- codex/skills/tidy-repo/SKILL.md | 3 ++- codex/skills/verified-reply/SKILL.md | 3 ++- scripts/build_codex.py | 3 ++- 23 files changed, 46 insertions(+), 23 deletions(-) diff --git a/codex/skills/docs-loop/SKILL.md b/codex/skills/docs-loop/SKILL.md index 6a61ae7..6c0a13b 100644 --- a/codex/skills/docs-loop/SKILL.md +++ b/codex/skills/docs-loop/SKILL.md @@ -10,7 +10,8 @@ This is the Codex copy of this skill. Read the rest of it with these translation - Agents launched in parallel: spawn each one with `spawn_agent` before waiting on any, then collect the results with `wait_agent`. Tell every agent you spawn not to spawn agents of its own. If subagents are - unavailable, run each lane yourself, one after another. + unavailable, follow the skill's own rule for that case. Only when it has none, run each lane yourself, + one after another. - "Your default model" and "your strongest model": spawn the agent with an `agent_type` whose role file in `~/.codex/agents/` sets `model` and `model_reasoning_effort`. An agent without a role runs on the session's model. diff --git a/codex/skills/eli5/SKILL.md b/codex/skills/eli5/SKILL.md index c4a77c5..bf3f38e 100644 --- a/codex/skills/eli5/SKILL.md +++ b/codex/skills/eli5/SKILL.md @@ -9,7 +9,8 @@ This is the Codex copy of this skill. Read the rest of it with these translation - Agents launched in parallel: spawn each one with `spawn_agent` before waiting on any, then collect the results with `wait_agent`. Tell every agent you spawn not to spawn agents of its own. If subagents are - unavailable, run each lane yourself, one after another. + unavailable, follow the skill's own rule for that case. Only when it has none, run each lane yourself, + one after another. - "Your default model" and "your strongest model": spawn the agent with an `agent_type` whose role file in `~/.codex/agents/` sets `model` and `model_reasoning_effort`. An agent without a role runs on the session's model. diff --git a/codex/skills/file-pr/SKILL.md b/codex/skills/file-pr/SKILL.md index a096431..8c8ec94 100644 --- a/codex/skills/file-pr/SKILL.md +++ b/codex/skills/file-pr/SKILL.md @@ -9,7 +9,8 @@ This is the Codex copy of this skill. Read the rest of it with these translation - Agents launched in parallel: spawn each one with `spawn_agent` before waiting on any, then collect the results with `wait_agent`. Tell every agent you spawn not to spawn agents of its own. If subagents are - unavailable, run each lane yourself, one after another. + unavailable, follow the skill's own rule for that case. Only when it has none, run each lane yourself, + one after another. - "Your default model" and "your strongest model": spawn the agent with an `agent_type` whose role file in `~/.codex/agents/` sets `model` and `model_reasoning_effort`. An agent without a role runs on the session's model. diff --git a/codex/skills/full-loop/SKILL.md b/codex/skills/full-loop/SKILL.md index 19af1a7..f901583 100644 --- a/codex/skills/full-loop/SKILL.md +++ b/codex/skills/full-loop/SKILL.md @@ -10,7 +10,8 @@ This is the Codex copy of this skill. Read the rest of it with these translation - Agents launched in parallel: spawn each one with `spawn_agent` before waiting on any, then collect the results with `wait_agent`. Tell every agent you spawn not to spawn agents of its own. If subagents are - unavailable, run each lane yourself, one after another. + unavailable, follow the skill's own rule for that case. Only when it has none, run each lane yourself, + one after another. - "Your default model" and "your strongest model": spawn the agent with an `agent_type` whose role file in `~/.codex/agents/` sets `model` and `model_reasoning_effort`. An agent without a role runs on the session's model. diff --git a/codex/skills/github-video-embed/SKILL.md b/codex/skills/github-video-embed/SKILL.md index dde2734..faca840 100644 --- a/codex/skills/github-video-embed/SKILL.md +++ b/codex/skills/github-video-embed/SKILL.md @@ -9,7 +9,8 @@ This is the Codex copy of this skill. Read the rest of it with these translation - Agents launched in parallel: spawn each one with `spawn_agent` before waiting on any, then collect the results with `wait_agent`. Tell every agent you spawn not to spawn agents of its own. If subagents are - unavailable, run each lane yourself, one after another. + unavailable, follow the skill's own rule for that case. Only when it has none, run each lane yourself, + one after another. - "Your default model" and "your strongest model": spawn the agent with an `agent_type` whose role file in `~/.codex/agents/` sets `model` and `model_reasoning_effort`. An agent without a role runs on the session's model. diff --git a/codex/skills/grow-my-repo/SKILL.md b/codex/skills/grow-my-repo/SKILL.md index 2516934..6be8e89 100644 --- a/codex/skills/grow-my-repo/SKILL.md +++ b/codex/skills/grow-my-repo/SKILL.md @@ -9,7 +9,8 @@ This is the Codex copy of this skill. Read the rest of it with these translation - Agents launched in parallel: spawn each one with `spawn_agent` before waiting on any, then collect the results with `wait_agent`. Tell every agent you spawn not to spawn agents of its own. If subagents are - unavailable, run each lane yourself, one after another. + unavailable, follow the skill's own rule for that case. Only when it has none, run each lane yourself, + one after another. - "Your default model" and "your strongest model": spawn the agent with an `agent_type` whose role file in `~/.codex/agents/` sets `model` and `model_reasoning_effort`. An agent without a role runs on the session's model. diff --git a/codex/skills/help-decide/SKILL.md b/codex/skills/help-decide/SKILL.md index 2fcda23..c35f18d 100644 --- a/codex/skills/help-decide/SKILL.md +++ b/codex/skills/help-decide/SKILL.md @@ -9,7 +9,8 @@ This is the Codex copy of this skill. Read the rest of it with these translation - Agents launched in parallel: spawn each one with `spawn_agent` before waiting on any, then collect the results with `wait_agent`. Tell every agent you spawn not to spawn agents of its own. If subagents are - unavailable, run each lane yourself, one after another. + unavailable, follow the skill's own rule for that case. Only when it has none, run each lane yourself, + one after another. - "Your default model" and "your strongest model": spawn the agent with an `agent_type` whose role file in `~/.codex/agents/` sets `model` and `model_reasoning_effort`. An agent without a role runs on the session's model. diff --git a/codex/skills/implement/SKILL.md b/codex/skills/implement/SKILL.md index 2229bf9..26e97c2 100644 --- a/codex/skills/implement/SKILL.md +++ b/codex/skills/implement/SKILL.md @@ -9,7 +9,8 @@ This is the Codex copy of this skill. Read the rest of it with these translation - Agents launched in parallel: spawn each one with `spawn_agent` before waiting on any, then collect the results with `wait_agent`. Tell every agent you spawn not to spawn agents of its own. If subagents are - unavailable, run each lane yourself, one after another. + unavailable, follow the skill's own rule for that case. Only when it has none, run each lane yourself, + one after another. - "Your default model" and "your strongest model": spawn the agent with an `agent_type` whose role file in `~/.codex/agents/` sets `model` and `model_reasoning_effort`. An agent without a role runs on the session's model. diff --git a/codex/skills/investigate/SKILL.md b/codex/skills/investigate/SKILL.md index 1e910d0..f3e6ec5 100644 --- a/codex/skills/investigate/SKILL.md +++ b/codex/skills/investigate/SKILL.md @@ -9,7 +9,8 @@ This is the Codex copy of this skill. Read the rest of it with these translation - Agents launched in parallel: spawn each one with `spawn_agent` before waiting on any, then collect the results with `wait_agent`. Tell every agent you spawn not to spawn agents of its own. If subagents are - unavailable, run each lane yourself, one after another. + unavailable, follow the skill's own rule for that case. Only when it has none, run each lane yourself, + one after another. - "Your default model" and "your strongest model": spawn the agent with an `agent_type` whose role file in `~/.codex/agents/` sets `model` and `model_reasoning_effort`. An agent without a role runs on the session's model. diff --git a/codex/skills/kb-research/SKILL.md b/codex/skills/kb-research/SKILL.md index 53d83e6..54b89e6 100644 --- a/codex/skills/kb-research/SKILL.md +++ b/codex/skills/kb-research/SKILL.md @@ -9,7 +9,8 @@ This is the Codex copy of this skill. Read the rest of it with these translation - Agents launched in parallel: spawn each one with `spawn_agent` before waiting on any, then collect the results with `wait_agent`. Tell every agent you spawn not to spawn agents of its own. If subagents are - unavailable, run each lane yourself, one after another. + unavailable, follow the skill's own rule for that case. Only when it has none, run each lane yourself, + one after another. - "Your default model" and "your strongest model": spawn the agent with an `agent_type` whose role file in `~/.codex/agents/` sets `model` and `model_reasoning_effort`. An agent without a role runs on the session's model. diff --git a/codex/skills/kb-review/SKILL.md b/codex/skills/kb-review/SKILL.md index e756915..f8777b2 100644 --- a/codex/skills/kb-review/SKILL.md +++ b/codex/skills/kb-review/SKILL.md @@ -9,7 +9,8 @@ This is the Codex copy of this skill. Read the rest of it with these translation - Agents launched in parallel: spawn each one with `spawn_agent` before waiting on any, then collect the results with `wait_agent`. Tell every agent you spawn not to spawn agents of its own. If subagents are - unavailable, run each lane yourself, one after another. + unavailable, follow the skill's own rule for that case. Only when it has none, run each lane yourself, + one after another. - "Your default model" and "your strongest model": spawn the agent with an `agent_type` whose role file in `~/.codex/agents/` sets `model` and `model_reasoning_effort`. An agent without a role runs on the session's model. diff --git a/codex/skills/readable/SKILL.md b/codex/skills/readable/SKILL.md index e5bcb88..d5806e3 100644 --- a/codex/skills/readable/SKILL.md +++ b/codex/skills/readable/SKILL.md @@ -9,7 +9,8 @@ This is the Codex copy of this skill. Read the rest of it with these translation - Agents launched in parallel: spawn each one with `spawn_agent` before waiting on any, then collect the results with `wait_agent`. Tell every agent you spawn not to spawn agents of its own. If subagents are - unavailable, run each lane yourself, one after another. + unavailable, follow the skill's own rule for that case. Only when it has none, run each lane yourself, + one after another. - "Your default model" and "your strongest model": spawn the agent with an `agent_type` whose role file in `~/.codex/agents/` sets `model` and `model_reasoning_effort`. An agent without a role runs on the session's model. diff --git a/codex/skills/refine-loop/SKILL.md b/codex/skills/refine-loop/SKILL.md index 2e84178..a2ccfe7 100644 --- a/codex/skills/refine-loop/SKILL.md +++ b/codex/skills/refine-loop/SKILL.md @@ -10,7 +10,8 @@ This is the Codex copy of this skill. Read the rest of it with these translation - Agents launched in parallel: spawn each one with `spawn_agent` before waiting on any, then collect the results with `wait_agent`. Tell every agent you spawn not to spawn agents of its own. If subagents are - unavailable, run each lane yourself, one after another. + unavailable, follow the skill's own rule for that case. Only when it has none, run each lane yourself, + one after another. - "Your default model" and "your strongest model": spawn the agent with an `agent_type` whose role file in `~/.codex/agents/` sets `model` and `model_reasoning_effort`. An agent without a role runs on the session's model. diff --git a/codex/skills/research/SKILL.md b/codex/skills/research/SKILL.md index 25c4946..2ff24cc 100644 --- a/codex/skills/research/SKILL.md +++ b/codex/skills/research/SKILL.md @@ -9,7 +9,8 @@ This is the Codex copy of this skill. Read the rest of it with these translation - Agents launched in parallel: spawn each one with `spawn_agent` before waiting on any, then collect the results with `wait_agent`. Tell every agent you spawn not to spawn agents of its own. If subagents are - unavailable, run each lane yourself, one after another. + unavailable, follow the skill's own rule for that case. Only when it has none, run each lane yourself, + one after another. - "Your default model" and "your strongest model": spawn the agent with an `agent_type` whose role file in `~/.codex/agents/` sets `model` and `model_reasoning_effort`. An agent without a role runs on the session's model. diff --git a/codex/skills/review-code/SKILL.md b/codex/skills/review-code/SKILL.md index fc94e72..fb51379 100644 --- a/codex/skills/review-code/SKILL.md +++ b/codex/skills/review-code/SKILL.md @@ -9,7 +9,8 @@ This is the Codex copy of this skill. Read the rest of it with these translation - Agents launched in parallel: spawn each one with `spawn_agent` before waiting on any, then collect the results with `wait_agent`. Tell every agent you spawn not to spawn agents of its own. If subagents are - unavailable, run each lane yourself, one after another. + unavailable, follow the skill's own rule for that case. Only when it has none, run each lane yourself, + one after another. - "Your default model" and "your strongest model": spawn the agent with an `agent_type` whose role file in `~/.codex/agents/` sets `model` and `model_reasoning_effort`. An agent without a role runs on the session's model. diff --git a/codex/skills/review-pr/SKILL.md b/codex/skills/review-pr/SKILL.md index b13a8a3..d4fb1ad 100644 --- a/codex/skills/review-pr/SKILL.md +++ b/codex/skills/review-pr/SKILL.md @@ -9,7 +9,8 @@ This is the Codex copy of this skill. Read the rest of it with these translation - Agents launched in parallel: spawn each one with `spawn_agent` before waiting on any, then collect the results with `wait_agent`. Tell every agent you spawn not to spawn agents of its own. If subagents are - unavailable, run each lane yourself, one after another. + unavailable, follow the skill's own rule for that case. Only when it has none, run each lane yourself, + one after another. - "Your default model" and "your strongest model": spawn the agent with an `agent_type` whose role file in `~/.codex/agents/` sets `model` and `model_reasoning_effort`. An agent without a role runs on the session's model. diff --git a/codex/skills/revive/SKILL.md b/codex/skills/revive/SKILL.md index 2f8e754..048069c 100644 --- a/codex/skills/revive/SKILL.md +++ b/codex/skills/revive/SKILL.md @@ -9,7 +9,8 @@ This is the Codex copy of this skill. Read the rest of it with these translation - Agents launched in parallel: spawn each one with `spawn_agent` before waiting on any, then collect the results with `wait_agent`. Tell every agent you spawn not to spawn agents of its own. If subagents are - unavailable, run each lane yourself, one after another. + unavailable, follow the skill's own rule for that case. Only when it has none, run each lane yourself, + one after another. - "Your default model" and "your strongest model": spawn the agent with an `agent_type` whose role file in `~/.codex/agents/` sets `model` and `model_reasoning_effort`. An agent without a role runs on the session's model. diff --git a/codex/skills/sergio-loop/SKILL.md b/codex/skills/sergio-loop/SKILL.md index 6d1036f..8ff994d 100644 --- a/codex/skills/sergio-loop/SKILL.md +++ b/codex/skills/sergio-loop/SKILL.md @@ -10,7 +10,8 @@ This is the Codex copy of this skill. Read the rest of it with these translation - Agents launched in parallel: spawn each one with `spawn_agent` before waiting on any, then collect the results with `wait_agent`. Tell every agent you spawn not to spawn agents of its own. If subagents are - unavailable, run each lane yourself, one after another. + unavailable, follow the skill's own rule for that case. Only when it has none, run each lane yourself, + one after another. - "Your default model" and "your strongest model": spawn the agent with an `agent_type` whose role file in `~/.codex/agents/` sets `model` and `model_reasoning_effort`. An agent without a role runs on the session's model. diff --git a/codex/skills/submit-awesome/SKILL.md b/codex/skills/submit-awesome/SKILL.md index e71fdd9..7b584e6 100644 --- a/codex/skills/submit-awesome/SKILL.md +++ b/codex/skills/submit-awesome/SKILL.md @@ -9,7 +9,8 @@ This is the Codex copy of this skill. Read the rest of it with these translation - Agents launched in parallel: spawn each one with `spawn_agent` before waiting on any, then collect the results with `wait_agent`. Tell every agent you spawn not to spawn agents of its own. If subagents are - unavailable, run each lane yourself, one after another. + unavailable, follow the skill's own rule for that case. Only when it has none, run each lane yourself, + one after another. - "Your default model" and "your strongest model": spawn the agent with an `agent_type` whose role file in `~/.codex/agents/` sets `model` and `model_reasoning_effort`. An agent without a role runs on the session's model. diff --git a/codex/skills/test-as-user/SKILL.md b/codex/skills/test-as-user/SKILL.md index a4151c8..500bc91 100644 --- a/codex/skills/test-as-user/SKILL.md +++ b/codex/skills/test-as-user/SKILL.md @@ -10,7 +10,8 @@ This is the Codex copy of this skill. Read the rest of it with these translation - Agents launched in parallel: spawn each one with `spawn_agent` before waiting on any, then collect the results with `wait_agent`. Tell every agent you spawn not to spawn agents of its own. If subagents are - unavailable, run each lane yourself, one after another. + unavailable, follow the skill's own rule for that case. Only when it has none, run each lane yourself, + one after another. - "Your default model" and "your strongest model": spawn the agent with an `agent_type` whose role file in `~/.codex/agents/` sets `model` and `model_reasoning_effort`. An agent without a role runs on the session's model. diff --git a/codex/skills/tidy-repo/SKILL.md b/codex/skills/tidy-repo/SKILL.md index 0cc1bd6..7c78114 100644 --- a/codex/skills/tidy-repo/SKILL.md +++ b/codex/skills/tidy-repo/SKILL.md @@ -10,7 +10,8 @@ This is the Codex copy of this skill. Read the rest of it with these translation - Agents launched in parallel: spawn each one with `spawn_agent` before waiting on any, then collect the results with `wait_agent`. Tell every agent you spawn not to spawn agents of its own. If subagents are - unavailable, run each lane yourself, one after another. + unavailable, follow the skill's own rule for that case. Only when it has none, run each lane yourself, + one after another. - "Your default model" and "your strongest model": spawn the agent with an `agent_type` whose role file in `~/.codex/agents/` sets `model` and `model_reasoning_effort`. An agent without a role runs on the session's model. diff --git a/codex/skills/verified-reply/SKILL.md b/codex/skills/verified-reply/SKILL.md index e5c32c6..b27996a 100644 --- a/codex/skills/verified-reply/SKILL.md +++ b/codex/skills/verified-reply/SKILL.md @@ -10,7 +10,8 @@ This is the Codex copy of this skill. Read the rest of it with these translation - Agents launched in parallel: spawn each one with `spawn_agent` before waiting on any, then collect the results with `wait_agent`. Tell every agent you spawn not to spawn agents of its own. If subagents are - unavailable, run each lane yourself, one after another. + unavailable, follow the skill's own rule for that case. Only when it has none, run each lane yourself, + one after another. - "Your default model" and "your strongest model": spawn the agent with an `agent_type` whose role file in `~/.codex/agents/` sets `model` and `model_reasoning_effort`. An agent without a role runs on the session's model. diff --git a/scripts/build_codex.py b/scripts/build_codex.py index 2038e0b..be9ec3c 100644 --- a/scripts/build_codex.py +++ b/scripts/build_codex.py @@ -29,7 +29,8 @@ - Agents launched in parallel: spawn each one with `spawn_agent` before waiting on any, then collect the results with `wait_agent`. Tell every agent you spawn not to spawn agents of its own. If subagents are - unavailable, run each lane yourself, one after another. + unavailable, follow the skill's own rule for that case. Only when it has none, run each lane yourself, + one after another. - "Your default model" and "your strongest model": spawn the agent with an `agent_type` whose role file in `~/.codex/agents/` sets `model` and `model_reasoning_effort`. An agent without a role runs on the session's model. From 547b27b9a65bf9591dc94870568c51d1b5d71594 Mon Sep 17 00:00:00 2001 From: GeiserX <9169332+GeiserX@users.noreply.github.com> Date: Sat, 14 Nov 2026 16:21:29 +0100 Subject: [PATCH 7/8] fix(skills): accept documented finality for API and MCP actions in test-as-user An API or MCP call has no confirmation dialog, so its documented contract carries the warning that the result is final. --- codex/skills/test-as-user/references/sweeps.md | 2 +- skills/test-as-user/references/sweeps.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/codex/skills/test-as-user/references/sweeps.md b/codex/skills/test-as-user/references/sweeps.md index 069d3b8..3fc7a01 100644 --- a/codex/skills/test-as-user/references/sweeps.md +++ b/codex/skills/test-as-user/references/sweeps.md @@ -34,7 +34,7 @@ Read what the person sees. These rules apply: List every action that deletes, overwrites, sends, pays, publishes or revokes, on every surface. Run them only on test data. For each one, check these points: - The confirmation names the object and the result. -- Undo, a recovery window or a dry run works where the product offers one. When the real action has no undo and no recovery window, the confirmation warns that the result is final. A dry run does not remove that need. +- Undo, a recovery window or a dry run works where the product offers one. When the real action has no undo and no recovery window, the confirmation warns that the result is final. For an API or MCP call, its documented contract says so instead. A dry run does not remove that need. - A CLI command run without a terminal refuses unless it has an explicit flag such as `--yes`. An API or MCP call is checked against its documented contract instead. - After the action, you can get the data back, or the confirmation said that you cannot. diff --git a/skills/test-as-user/references/sweeps.md b/skills/test-as-user/references/sweeps.md index 069d3b8..3fc7a01 100644 --- a/skills/test-as-user/references/sweeps.md +++ b/skills/test-as-user/references/sweeps.md @@ -34,7 +34,7 @@ Read what the person sees. These rules apply: List every action that deletes, overwrites, sends, pays, publishes or revokes, on every surface. Run them only on test data. For each one, check these points: - The confirmation names the object and the result. -- Undo, a recovery window or a dry run works where the product offers one. When the real action has no undo and no recovery window, the confirmation warns that the result is final. A dry run does not remove that need. +- Undo, a recovery window or a dry run works where the product offers one. When the real action has no undo and no recovery window, the confirmation warns that the result is final. For an API or MCP call, its documented contract says so instead. A dry run does not remove that need. - A CLI command run without a terminal refuses unless it has an explicit flag such as `--yes`. An API or MCP call is checked against its documented contract instead. - After the action, you can get the data back, or the confirmation said that you cannot. From 4bdf36a7f837e244da23bb1d4bfe37531b83ab63 Mon Sep 17 00:00:00 2001 From: GeiserX <9169332+GeiserX@users.noreply.github.com> Date: Sat, 14 Nov 2026 16:31:37 +0100 Subject: [PATCH 8/8] fix(skills): let the documented contract stand in for every confirmation check on API and MCP actions The exception covered one point only, so the sweep could still fail an API delete for lacking a dialog it can never show. --- codex/skills/test-as-user/references/sweeps.md | 6 +++--- skills/test-as-user/references/sweeps.md | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/codex/skills/test-as-user/references/sweeps.md b/codex/skills/test-as-user/references/sweeps.md index 3fc7a01..3273009 100644 --- a/codex/skills/test-as-user/references/sweeps.md +++ b/codex/skills/test-as-user/references/sweeps.md @@ -31,11 +31,11 @@ Read what the person sees. These rules apply: ## Destructive actions -List every action that deletes, overwrites, sends, pays, publishes or revokes, on every surface. Run them only on test data. For each one, check these points: +List every action that deletes, overwrites, sends, pays, publishes or revokes, on every surface. Run them only on test data. An API or MCP call shows no confirmation, so its documented contract takes the place of the confirmation in every point below. For each action, check these points: - The confirmation names the object and the result. -- Undo, a recovery window or a dry run works where the product offers one. When the real action has no undo and no recovery window, the confirmation warns that the result is final. For an API or MCP call, its documented contract says so instead. A dry run does not remove that need. -- A CLI command run without a terminal refuses unless it has an explicit flag such as `--yes`. An API or MCP call is checked against its documented contract instead. +- Undo, a recovery window or a dry run works where the product offers one. When the real action has no undo and no recovery window, the confirmation warns that the result is final. A dry run does not remove that need. +- A CLI command run without a terminal refuses unless it has an explicit flag such as `--yes`. - After the action, you can get the data back, or the confirmation said that you cannot. Then walk from the state that each one leaves (no profile, no passkey left, signed out). Every screen still names a next step, and every way in has a way out. diff --git a/skills/test-as-user/references/sweeps.md b/skills/test-as-user/references/sweeps.md index 3fc7a01..3273009 100644 --- a/skills/test-as-user/references/sweeps.md +++ b/skills/test-as-user/references/sweeps.md @@ -31,11 +31,11 @@ Read what the person sees. These rules apply: ## Destructive actions -List every action that deletes, overwrites, sends, pays, publishes or revokes, on every surface. Run them only on test data. For each one, check these points: +List every action that deletes, overwrites, sends, pays, publishes or revokes, on every surface. Run them only on test data. An API or MCP call shows no confirmation, so its documented contract takes the place of the confirmation in every point below. For each action, check these points: - The confirmation names the object and the result. -- Undo, a recovery window or a dry run works where the product offers one. When the real action has no undo and no recovery window, the confirmation warns that the result is final. For an API or MCP call, its documented contract says so instead. A dry run does not remove that need. -- A CLI command run without a terminal refuses unless it has an explicit flag such as `--yes`. An API or MCP call is checked against its documented contract instead. +- Undo, a recovery window or a dry run works where the product offers one. When the real action has no undo and no recovery window, the confirmation warns that the result is final. A dry run does not remove that need. +- A CLI command run without a terminal refuses unless it has an explicit flag such as `--yes`. - After the action, you can get the data back, or the confirmation said that you cannot. Then walk from the state that each one leaves (no profile, no passkey left, signed out). Every screen still names a next step, and every way in has a way out.