@orion-qa/orion 3.2.0 → 3.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (112) hide show
  1. package/.claude/settings.json +1 -0
  2. package/.claude/skills/appium/SKILL.md +2 -2
  3. package/.claude/skills/appium/templates/ci/github-actions-android.yml +1 -1
  4. package/.claude/skills/appium/templates/ci/github-actions-ios.yml +1 -1
  5. package/.claude/skills/appium/templates/ci/github-actions-windows.yml +1 -1
  6. package/.claude/skills/automation-implementation/SKILL.md +1 -1
  7. package/.claude/skills/automation-strategy/SKILL.md +1 -0
  8. package/.claude/skills/cicd-integration/SKILL.md +1 -1
  9. package/.claude/skills/code-review/SKILL.md +1 -1
  10. package/.claude/skills/code-review/references/pattern-rules.md +1 -0
  11. package/.claude/skills/csharp/SKILL.md +1 -0
  12. package/.claude/skills/documentation/SKILL.md +2 -2
  13. package/.claude/skills/execution/SKILL.md +9 -9
  14. package/.claude/skills/httpclient/templates/ci/github-actions.yml +2 -2
  15. package/.claude/skills/java/SKILL.md +1 -0
  16. package/.claude/skills/javascript/SKILL.md +1 -0
  17. package/.claude/skills/junit5/SKILL.md +1 -1
  18. package/.claude/skills/k6/SKILL.md +1 -1
  19. package/.claude/skills/k6/templates/project/tests/load/products.js +1 -1
  20. package/.claude/skills/karate/SKILL.md +1 -1
  21. package/.claude/skills/karate/templates/ci/github-actions.yml +2 -2
  22. package/.claude/skills/newman/templates/ci/github-actions.yml +2 -2
  23. package/.claude/skills/newman/templates/collection/src/config/env.js +1 -1
  24. package/.claude/skills/nunit/SKILL.md +1 -1
  25. package/.claude/skills/orion/SKILL.md +2 -2
  26. package/.claude/skills/orion/references/assess-fix.md +2 -2
  27. package/.claude/skills/orion/references/batch.md +2 -2
  28. package/.claude/skills/orion/references/capabilities.md +1 -1
  29. package/.claude/skills/orion/references/conversation.md +12 -25
  30. package/.claude/skills/orion/references/greeting.md +23 -0
  31. package/.claude/skills/orion/references/hosts.md +2 -2
  32. package/.claude/skills/orion/references/modes.md +1 -1
  33. package/.claude/skills/orion/references/plain-language.md +5 -2
  34. package/.claude/skills/orion/references/recovery-loop.md +2 -2
  35. package/.claude/skills/orion/references/setup-card.md +1 -1
  36. package/.claude/skills/orion/references/status-lines.md +11 -6
  37. package/.claude/skills/orion/references/task-brief.md +1 -1
  38. package/.claude/skills/orion/scripts/batch_state.mjs +1 -1
  39. package/.claude/skills/orion/scripts/done_check.mjs +12 -5
  40. package/.claude/skills/orion/scripts/quiet.mjs +1 -1
  41. package/.claude/skills/orion/scripts/report_check.mjs +5 -2
  42. package/.claude/skills/orion/scripts/report_make.mjs +186 -0
  43. package/.claude/skills/orion/scripts/results_parse.mjs +7 -0
  44. package/.claude/skills/orion/templates/project-context/assessment.md +1 -1
  45. package/.claude/skills/orion/templates/project-context/report.md +2 -2
  46. package/.claude/skills/pact/SKILL.md +1 -1
  47. package/.claude/skills/playwright/SKILL.md +2 -2
  48. package/.claude/skills/playwright/references/electron.md +1 -1
  49. package/.claude/skills/playwright/templates/README.md +1 -1
  50. package/.claude/skills/playwright/templates/ci/azure-pipelines.yml +1 -1
  51. package/.claude/skills/playwright/templates/ci/github-actions-dotnet.yml +2 -2
  52. package/.claude/skills/playwright/templates/ci/github-actions-javascript.yml +2 -2
  53. package/.claude/skills/playwright/templates/ci/github-actions-python.yml +2 -2
  54. package/.claude/skills/playwright/templates/ci/github-actions.yml +1 -1
  55. package/.claude/skills/playwright/templates/javascript/.prettierignore +6 -0
  56. package/.claude/skills/playwright/templates/javascript/.prettierrc.json +4 -0
  57. package/.claude/skills/playwright/templates/javascript/fixtures/index.js +56 -48
  58. package/.claude/skills/playwright/templates/javascript/package.json +4 -1
  59. package/.claude/skills/playwright/templates/javascript/pageObjects/basePage.js +5 -1
  60. package/.claude/skills/playwright/templates/javascript/playwright.config.js +6 -2
  61. package/.claude/skills/playwright/templates/javascript/reporters/summaryReporter.js +92 -15
  62. package/.claude/skills/playwright/templates/javascript/resources/desc/signIn.desc.js +10 -3
  63. package/.claude/skills/playwright/templates/javascript/src/config/env.js +12 -3
  64. package/.claude/skills/playwright/templates/javascript/src/config/flags.js +3 -1
  65. package/.claude/skills/playwright/templates/javascript/tests/api/session.spec.js +8 -4
  66. package/.claude/skills/playwright/templates/javascript/tests/unit/summaryReporter.test.js +30 -6
  67. package/.claude/skills/playwright/templates/javascript/utils/random.js +3 -1
  68. package/.claude/skills/playwright/templates/project/.prettierignore +6 -0
  69. package/.claude/skills/playwright/templates/project/.prettierrc.json +4 -0
  70. package/.claude/skills/playwright/templates/project/fixtures/index.ts +21 -15
  71. package/.claude/skills/playwright/templates/project/fixtures/session.ts +9 -2
  72. package/.claude/skills/playwright/templates/project/package.json +4 -1
  73. package/.claude/skills/playwright/templates/project/pageObjects/basePage.ts +5 -1
  74. package/.claude/skills/playwright/templates/project/playwright.config.ts +4 -2
  75. package/.claude/skills/playwright/templates/project/reporters/summaryReporter.ts +97 -15
  76. package/.claude/skills/playwright/templates/project/resources/desc/signIn.desc.ts +10 -3
  77. package/.claude/skills/playwright/templates/project/src/config/env.ts +15 -4
  78. package/.claude/skills/playwright/templates/project/src/services/apiClient.ts +5 -1
  79. package/.claude/skills/playwright/templates/project/tests/api/session.spec.ts +8 -4
  80. package/.claude/skills/playwright/templates/project/tests/unit/summaryReporter.test.ts +30 -6
  81. package/.claude/skills/playwright/templates/project/utils/formFill.ts +4 -1
  82. package/.claude/skills/playwright/templates/project/utils/random.ts +3 -1
  83. package/.claude/skills/playwright/templates/project/utils/redact.ts +4 -1
  84. package/.claude/skills/pytest/SKILL.md +1 -1
  85. package/.claude/skills/python/SKILL.md +1 -0
  86. package/.claude/skills/quality-checks/SKILL.md +1 -1
  87. package/.claude/skills/requests/templates/ci/github-actions.yml +2 -2
  88. package/.claude/skills/rest-assured/SKILL.md +2 -2
  89. package/.claude/skills/rest-assured/templates/ci/github-actions.yml +2 -2
  90. package/.claude/skills/selenium/SKILL.md +1 -1
  91. package/.claude/skills/selenium/templates/ci/github-actions-csharp.yml +2 -2
  92. package/.claude/skills/selenium/templates/ci/github-actions-java.yml +2 -2
  93. package/.claude/skills/selenium/templates/ci/github-actions-python.yml +2 -2
  94. package/.claude/skills/self-healing/SKILL.md +1 -1
  95. package/.claude/skills/test-design/SKILL.md +1 -1
  96. package/.claude/skills/test-reporting/references/report-levels.md +1 -1
  97. package/.claude/skills/test-reporting/references/tool-mapping.md +1 -1
  98. package/.claude/skills/testng/SKILL.md +1 -1
  99. package/.claude/skills/typescript/SKILL.md +1 -0
  100. package/.claude/skills/ui-observation/SKILL.md +1 -1
  101. package/.claude-plugin/plugin.json +1 -1
  102. package/.cursor/commands/orion.md +1 -1
  103. package/.gemini/commands/orion.toml +1 -1
  104. package/.github/prompts/orion.prompt.md +1 -1
  105. package/.windsurf/workflows/orion.md +1 -1
  106. package/AGENTS.md +2 -2
  107. package/README.md +8 -7
  108. package/assets/architecture.svg +1 -1
  109. package/assets/run-flow.svg +1 -1
  110. package/bin/orion.mjs +8 -8
  111. package/hosts/gemini-extension/gemini-extension.json +1 -1
  112. package/package.json +2 -2
@@ -13,6 +13,7 @@
13
13
  "Bash(node .claude/skills/orion/scripts/parity_check.mjs:*)",
14
14
  "Bash(node .claude/skills/orion/scripts/fix_plan.mjs:*)",
15
15
  "Bash(node .claude/skills/orion/scripts/report_check.mjs:*)",
16
+ "Bash(node .claude/skills/orion/scripts/report_make.mjs:*)",
16
17
  "Bash(node .claude/skills/orion/scripts/rules.mjs:*)",
17
18
  "Bash(node .claude/skills/orion/scripts/codemap.mjs:*)",
18
19
  "WebFetch(domain:playwright.dev)",
@@ -21,7 +21,7 @@ Adapter rules: holds only what differs from the capability skills; the project's
21
21
 
22
22
  ## Run
23
23
  - **Server:** the project's way (started by the test setup, a script or CI). Appium 2+ has no bundled drivers: drivers are installed with `appium driver install <driver>@<version>` and their versions recorded in the repo (README or setup script). Installing a driver or app is H10.
24
- - **Command:** the runner adapter's command (`mvn test -Dtest=<Class>` or `<Class>#<method>`; prefer it to `-Dgroups`, which runs 0 tests and exits green when no group matches). New tests: run 3 times with retries off; all 3 must agree.
24
+ - **Command:** the runner adapter's command (`mvn test -Dtest=<Class>` or `<Class>#<method>`; prefer it to `-Dgroups`, which runs 0 tests and exits green when no group matches). New tests: run once with retries off (a stability check on request: N runs, all must agree).
25
25
  - **Where:** an emulator, simulator, device or desktop session named in the brief (`run_where`) and the app binary named in the run record (path or build artifact and its version). No device → NEEDS_ENVIRONMENT, never "skipped".
26
26
  - **Parallel:** each worker needs its own device (`appium:udid`) and its own ports (Android `appium:systemPort`, iOS `appium:wdaLocalPort`).
27
27
  - **Evidence on failure:** screenshot, page source (`getPageSource()`), and the device log (Android logcat, iOS syslog) for the failing test.
@@ -47,7 +47,7 @@ After Gate 4 approves adding one: copy the platform's file from [templates/](tem
47
47
  Update the locator in the screen object (not the test), with same-target evidence from the page source; replace a sleep with an explicit wait. Never loosen an assertion, never switch to coordinates.
48
48
 
49
49
  ## Repeat, data and login (platform rules)
50
- - New tests: 3 runs, retries off; all 3 must agree.
50
+ - New tests: 1 run, retries off; a stability check on request runs N times and all N must agree.
51
51
  - Test data per test with unique values, deleted in teardown even on failure.
52
52
  - Credentials only from environment variables or CI secrets; signing certificates, keystores and device-cloud keys only as CI secrets, never in the repo.
53
53
 
@@ -21,7 +21,7 @@ on:
21
21
  required: false
22
22
  default: ""
23
23
  repeat_each:
24
- description: "Runs of the selected tests (3 for new tests; retries are off in the suite)"
24
+ description: "Runs of the selected tests (3 for a stability check; retries are off in the suite)"
25
25
  type: choice
26
26
  options: ["1", "3"]
27
27
  default: "1"
@@ -20,7 +20,7 @@ on:
20
20
  required: false
21
21
  default: ""
22
22
  repeat_each:
23
- description: "Runs of the selected tests (3 for new tests; retries are off in the suite)"
23
+ description: "Runs of the selected tests (3 for a stability check; retries are off in the suite)"
24
24
  type: choice
25
25
  options: ["1", "3"]
26
26
  default: "1"
@@ -11,7 +11,7 @@ on:
11
11
  required: false
12
12
  default: ""
13
13
  repeat_each:
14
- description: "Runs of the selected tests (3 for new tests; retries are off in the suite)"
14
+ description: "Runs of the selected tests (3 for a stability check; retries are off in the suite)"
15
15
  type: choice
16
16
  options: ["1", "3"]
17
17
  default: "1"
@@ -36,7 +36,7 @@ description: Writes or modifies automated tests in the project's existing style,
36
36
  6. **Test data.** Each test creates the data it needs (API or fixture), uses unique values (e.g. a run-scoped suffix), and removes what it created in teardown, even when the test fails. No test depends on another test's data or order. Synthetic values only.
37
37
  7. **App login.** Use the project's existing sign-in (helper, fixture, setup project, base class) for the method the UI map's `Login` section records. If none exists, add one per [login-methods.md](../ui-observation/references/login-methods.md) section 5 for that method (form, HTTP auth prompt, SSO, saved session, MFA seed) in the project's pattern, with credentials from environment variables named in `environment-profile.md`; never in code, fixtures or URLs. Sign in once per worker or suite and reuse the session, unless the AC is about sign-in.
38
38
  8. **Traceability by id:** every test name carries the case id it implements and its AC (`TS-3 @AC-2 adds the first in-stock product at quantity 1`), or the project's own way of linking (tag, annotation). `@smoke` is not a case id. Every AC in the design is a test, or the result names it with the reason it isn't (Gate 8).
39
- 9. Run the project's compile/lint/type-check command (TypeScript: `npx tsc --noEmit`); a failure is fixed, never skipped. Install the dependencies with the project's lockfile or manifest command (`execution` step 2); in a build's test project that is part of the request, elsewhere the host asks (H10). **The browser goes where the runner looks by default** (`npx playwright install chromium` without `PLAYWRIGHT_BROWSERS_PATH`), or the path is set in the project's own script; never only in a temporary sandbox cache. The run that counts is the project's command from a normal shell with no sandbox browser variable; if the browser isn't on the default path, the result says so.
39
+ 9. **Format what you wrote, then check it.** Run the formatter Gate 4 names on the files you added or changed only, never the whole repo (`npx prettier --write <files>`; `ruff format <files>`; `dotnet format --include <files>`; Spotless `mvn spotless:apply` only where the project has it); no formatter named → skip and say so. Then run the project's compile/lint/type-check command (TypeScript: `npx tsc --noEmit`); a failure is fixed, never skipped. Install the dependencies with the project's lockfile or manifest command (`execution` step 2); in a build's test project that is part of the request, elsewhere the host asks (H10). **The browser goes where the runner looks by default** (`npx playwright install chromium` without `PLAYWRIGHT_BROWSERS_PATH`), or the path is set in the project's own script; never only in a temporary sandbox cache. The run that counts is the project's command from a normal shell with no sandbox browser variable; if the browser isn't on the default path, the result says so.
40
40
  10. **Fail check (each new test).** Running a test executes project code, so do this only when the brief cites H6 for local or container runs, or a build request's D-nnn (its new tests, in its test project); otherwise write `fail check: not run — no H6`. Prove the test can fail: in your worktree, temporarily change the expected value of its main assertion in place (in the spec itself: no copy of the spec, no second config, no new file in the suite), run that one test with the project's own runner, confirm it fails on that assertion, then restore the file and confirm `git diff` for it matches your intended change only. Record the failing run as a `command` evidence row. Can't run tests here (no runner, Copilot Studio) → write `fail check: not run — <reason>` in Findings; the report carries it as a limitation.
41
41
  11. For heals: apply exactly the approved change, nothing else.
42
42
  11a. **Keep screenshots out of the repo.** UI story in an existing repo where `git check-ignore -q .ui-map/` fails: add the line `.ui-map/` to the clone's local ignore list, the file `git rev-parse --git-path info/exclude` names, never to the suite's tracked `.gitignore` (the suite's ignore file isn't edited, [work-branch](../orion/references/work-branch.md)). It changes no tracked file, so it isn't in `Changes`.
@@ -16,6 +16,7 @@ description: "Decides how to automate a requirement: test layer (UI, API, both),
16
16
  1a. **The layer never lowers coverage.** An observation the requirement or an accepted design places in the UI (what a role sees, a message, a state on screen) stays a UI check; an API check may be added, not swapped in. Replacing one needs the user's yes (`needs_user`). A coverage claim lists, per AC, the observations before and after the change.
17
17
  2. Framework: existing one by default. A new project uses the tool, language and style the user confirmed on the setup card (lines 3–4, in the brief); record them with the starter template and don't ask again. Only a change to an existing framework, or a new project with no card answer, → `needs_user` for Gate 4 with a recommendation, at least two alternatives, and for each: fit to the app, team language (from repos and `constraints.md`), CI support for the discovered CI system, and whether an adapter exists in `registry/`. Prefer stacks with an adapter and a starter template; a stack without an adapter also needs H12. Name the patterns from [patterns.md](../automation-implementation/references/patterns.md) the project will use (the card's style: Page Object Model, Hybrid or BDD) ("Choosing" there gives the default per kind of app; API stacks by language and style: [api-styles.md](../automation-implementation/references/api-styles.md)).
18
18
  3. Placement: follow the suggested placement and conventions.
19
+ 3a. **Formatter.** Use the project's own formatter (Prettier config or a `prettier` key in `package.json`, `biome.json`, `[tool.ruff]` / `[tool.black]` in `pyproject.toml`, `.editorconfig` with `dotnet format`, Spotless in `pom.xml` or `build.gradle`). A new project from a starter: the starter's (Prettier for JavaScript and TypeScript). An existing suite with none: offer one as a row of the Gate 4 table (Prettier for JS/TS, `ruff format` for Python, `dotnet format` for C#, Spotless with google-java-format for Java; `Needs approval: yes`); added only on the user's yes, and only the files the run changes are formatted; untouched files stay as they are.
19
20
  4. Reuse: name the helpers to use; justify any new helper.
20
21
  5. Data: how each test gets and cleans up data; no shared mutable data.
21
22
  6. Environment and execution: which test environment (never prod without H5), which command, and **where tests run**: `ci` (default when a pipeline with `workflow_dispatch`/manual run exists), `container`, or `local`. Running project code on the user's machine is a choice the user approves (H6); say what it runs (install scripts, test code) and with which credentials. Copilot Studio: `ci` only.
@@ -18,7 +18,7 @@ description: Triggers and monitors the project's CI pipeline for automated tests
18
18
  - GitHub Actions: `actions_run_trigger` with method `run_workflow` (the workflow needs `workflow_dispatch`).
19
19
  - Azure Pipelines: `pipelines_write` with `run_pipeline`.
20
20
  - Jenkins, GitLab CI, Bitbucket Pipelines: no trigger connector is bound by default. Return `blocked` / NEEDS_PERMISSION and name the connector folder to enable (`connectors/<system>/`), or run locally with the `execution` skill if the brief allows.
21
- 4. Pass the target **environment name** the pipeline accepts (a test environment from `environment-profile.md`), never a free-form URL. New tests: set the pipeline's repeat input if it has one, else note `repeat: not available in CI` (the 3-run rule then needs a local or container run).
21
+ 4. Pass the target **environment name** the pipeline accepts (a test environment from `environment-profile.md`), never a free-form URL. New tests: one run, retries off; for a stability check the user asked for, set the pipeline's repeat input to N if it has one, else note `repeat: not available in CI` (the stability check then needs a local or container run).
22
22
  5. Poll status at reasonable intervals until done or the budget runs out (then `partial` with the run link).
23
23
  6. Read the result: status, failed jobs, flaky count, test report artifacts, log excerpt. A green job is not a pass on its own: take the executed and skipped counts from the test report and apply the `execution` inventory check (step 7a). A green run with 0 tests, fewer than planned, or new tests skipped is `failed`.
24
24
  6a. **No test job yet** (new project): the adapter's `templates/ci/` has a GitHub Actions workflow for each starter template (manual trigger, test-environment choice, a filter that fails when nothing matches, `repeat` 1 or 3, one report per run, artifacts kept 14 days). Adding it is part of the Gate 4 decision; other CI systems get the same steps in their syntax.
@@ -35,7 +35,7 @@ description: "Reviews an automation diff against the project's own conventions a
35
35
  # Code review
36
36
  | # | Severity | File:line | Finding | Rule (pattern-rules ID, adapter, convention row) |
37
37
  ## Pattern rules checked
38
- U1–U14, P1–P18: pass · hit (finding #) · n/a (why) · suggestion (project doesn't use the pattern)
38
+ U1–U15, P1–P18: pass · hit (finding #) · n/a (why) · suggestion (project doesn't use the pattern)
39
39
  ## Reused
40
40
  | Helper | Defined at (file:line) | Called at (file:line) |
41
41
  ## Impacted existing tests
@@ -19,6 +19,7 @@ One table for the implementer (self-check before returning) and the reviewer (ch
19
19
  | U12 | Assertions prove an outcome that changed: a quantity or count is asserted against the value read before the action; a dialog, toast or header count only when the walk saw it update and stay updated. A heading or link being visible is not the outcome of an add. | `toHaveValue('1')` with no before-read; `badge`/`count` assertions with no map row showing the update; teardown with no assertion |
20
20
  | U13 | One place for the test account: the project's gitignored `.env`; config reads it lazily (importing a page never reads the env file or throws); no second credentials file; nothing outside the project; nothing at the agent-install root. | `throw` at module level in config; `dotenv` loaded in a page; `playwright/.auth/http.json`; paths under `~`, `.config`, `%USERPROFILE%`; `package.json`, `pages/`, `tests/` beside `.claude/` |
21
21
  | U14 | Runner config is coherent: no `fullyParallel: true` with `workers: 1`; one worker from the start on a shared staging host; device presets spread before `baseURL`, `httpCredentials`, `storageState`; retries off for the 3 counted runs. | `fullyParallel: true` next to `workers: 1`; `...devices[` after credential keys; `retries:` above 0 in the counted command |
22
+ | U15 | Formatted: where the project or Gate 4 names a formatter, every new or changed file passes its check (`npx prettier --check <files>`, `ruff format --check <files>`, `dotnet format --verify-no-changes --include <files>`); files the run didn't touch are never reformatted. | the formatter's check on the changed files; a diff that reformats untouched code |
22
23
 
23
24
  ## P: the project's patterns (blocking for a new project from a starter template and for a project that already uses the pattern; otherwise follow the project and report the row as a non-blocking suggestion)
24
25
  | ID | Rule | Look for |
@@ -20,6 +20,7 @@ Adapter rules: holds only what differs from the capability skills; the project's
20
20
 
21
21
  ## Check
22
22
  - `dotnet build` (warnings as the project configures them).
23
+ - Format the changed files: `dotnet format --include <files>` (part of the .NET SDK; follows `.editorconfig`).
23
24
  - `dotnet test --list-tests` shows the new tests are discovered.
24
25
  - Playwright browsers after the first build: `pwsh bin/Debug/<tfm>/playwright.ps1 install` (needs PowerShell). Without it, a matching browser already under `PLAYWRIGHT_BROWSERS_PATH` works (Microsoft.Playwright 1.56.0 used the build-1194 Chromium installed for Playwright 1.56, measured 2026-10-15).
25
26
 
@@ -12,7 +12,7 @@ description: Writes the final execution report, traceability matrix and troubles
12
12
 
13
13
  ## Procedure
14
14
  1. Include only claims the evidence map marks supported.
15
- 2. Write the report in the shape and style below, then check it: `node .claude/skills/orion/scripts/report_check.mjs project-context/runs/<run id>.report.md`. Fix every finding it names and run it again until it passes (exit 0) before the report is shown. No shell on this host: go through the Style list by hand and write `report check: by hand` in the details block.
15
+ 2. Start from the draft, never a blank page (with Node): `node .claude/skills/orion/scripts/report_make.mjs --project <test project> --story <KEY> --run <run id> --title "<story title>" --app "<base URL> (<environment>)"`. It fills the title, verdict, facts, coverage (from the design's AC and case tables and the recorded runs), what was added and how to run it, and prints the few `<…>` lines left (fail check, review, failures and fixes, approvals, not checked). Fill those in one edit, then check it: `node .claude/skills/orion/scripts/report_check.mjs project-context/runs/<run id>.report.md`. It lists every finding in one pass, unfilled placeholders included; fix them all in one edit and run it again until it passes (exit 0) before the report is shown. No shell on this host: go through the Style list by hand and write `report check: by hand` in the details block.
16
16
  3. Approvals with their decision ids go in the details block.
17
17
  4. What the user must do next goes in "Needs your attention", one line each with the action.
18
18
  5. **What wasn't checked** (fail checks not run, unproven locators, flaky counts, impacted tests not run): the ones that change the user's next step in "Needs your attention", all of them under "Not checked" in the details block.
@@ -22,7 +22,7 @@ description: Writes the final execution report, traceability matrix and troubles
22
22
  ## Output
23
23
  The report follows [templates/project-context/report.md](../orion/templates/project-context/report.md), saved as `project-context/runs/<run id>.report.md`. In order:
24
24
  1. **Title and verdict.** `# <story title> · test report`, then one bold verdict (✅ Ready to accept · ⚠️ Ready, with notes · ❌ Not ready) and one sentence: what was built and how it ran.
25
- 2. **Facts table:** story, app (URL and environment), tests (count, kind, tool and language, folder), runs (3 runs and the fail check), date.
25
+ 2. **Facts table:** story, app (URL and environment), tests (count, kind, tool and language, folder), runs (the counted run, any stability-check runs, and the fail check), date.
26
26
  3. **Coverage:** one row per requirement in plain words, the test that covers it, and its result as ✅ n/n · ❌ failed · ⚠️ flaky · ⏭ not run. Cases the user accepted that the story didn't name are marked *(added)*. A requirement with no test says why in the Test column.
27
27
  4. **Needs your attention:** at most 5 lines, most important first, each ending with what the user can do. Left out when there is nothing.
28
28
  5. **What was added:** tests, page objects, test data and test-case files, one line per kind.
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: execution
3
- description: Runs automated tests with the project's own runner and configuration, scoped to the new and impacted tests (new tests three times), and captures the command, exit code, counts, duration, logs and report paths as evidence. Use when tests need to be run locally or in a working copy.
3
+ description: Runs automated tests with the project's own runner and configuration, scoped to the new and impacted tests (new tests once, retries off; repeated only for a stability check the user asks for), and captures the command, exit code, counts, duration, logs and report paths as evidence. Use when tests need to be run locally or in a working copy.
4
4
  ---
5
5
 
6
6
  # execution
@@ -23,11 +23,11 @@ description: Runs automated tests with the project's own runner and configuratio
23
23
  **When Playwright's browser can't be downloaded** (a proxy or policy blocks it): don't work around the block; run on the installed Chrome (else Edge) instead and say so in the report: Playwright TS/JS starters `PW_CHANNEL=chrome` (or `msedge`) in the command's environment; Python `--browser-channel chrome`; .NET `-- Playwright.LaunchOptions.Channel=chrome`. A project without that option keeps its own config: report the blocker ([blockers](../orion/references/blockers.md)) with the one fix (allow the download, or add the channel option).
24
24
  3. **Command.** Build it from the project's own scripts (package.json scripts, Maven/Gradle tasks, runner config). Don't invent flags the project doesn't use, except the repeat and retry flags in step 5. **The counted runs are the user's own command** (the report's "Run it yourself" line): the project's script with the scope after it (`npm test -- tests/settings.spec.ts`, `mvn test -Dtest=…`), not the runner called around it, and with no setting given only on the command line (output-only flags, such as the reporter and its output file, are fine): a value the run needs (`PW_CHANNEL`, a timeout, a base URL) goes into the project's `.env` (names in `.env.example`), so a manual run, UI mode or the editor's test explorer sees the same. A UI suite also runs once the way an editor or UI mode starts it, only the UI tests and no separate setup step (Playwright `--project=<the tests' project> --no-deps`; pytest `tests/ui`; NUnit `--filter FullyQualifiedName~Ui`; TestNG or JUnit `-Dtest=<class>`); a failure there that the full run doesn't have is a blocking finding (signing in must not depend on a setup step having run, nor trust an old saved session).
25
25
  4. **Environment.** Prod → stop unless the brief cites H5. Pass environment variables by name only.
26
- 4a. **Run mode** (existing tests only, `orion/references/modes.md`): the scope is the user's selection, run once, no fail check and no 3-run rule; flaky and failed counts as the runner reports them.
26
+ 4a. **Run mode** (existing tests only, `orion/references/modes.md`): the scope is the user's selection, run once, no fail check; flaky and failed counts as the runner reports them. **Stability check** (the user asks whether tests are stable or flaky, or to run them N times): run mode with the repeat column of step 5, N from the user (default 3), retries off; all N must agree, mixed results → FLAKY → recovery loop (the failure-analyst checks the live page for that step, a heal is proposed, and that fix is applied only on the user's yes, H14 as in fix mode), then the same N runs again.
27
27
  4a2. **Timeouts from the site, any stack.** Before the first run of a new or extended UI or API project: `node .claude/skills/orion/scripts/timing_profile.mjs --project <test project> --maps project-context/ui-maps/<story>.md` writes `timeouts.json` at the test project's root from the explored pages' Timing table; every starter's flags read it in their own terms (Playwright's navigation, action and expect timeouts; Selenium's and Appium's explicit wait; the API clients' request timeout), and an environment variable still wins. An existing suite that has its own timeout settings gets the measured values proposed in the report instead, never edited without the user's yes. After the counted runs, the same with `--results project-context/results/<run id>-<n>.json …` raises the test timeout when a test used more than half of it (never lowers). The report's details list each timeout with its `why`. No Timing table: the defaults stay, said so.
28
- 4b. **Order, so failures cost minutes, not the whole run.** First run only the new tests once, stopping early (`--max-failures=5` for Playwright, the runner's equivalent elsewhere) and with as many workers as the suite's config allows. Failures go to the failure-analyst and are fixed or reported **before** any repeat or full run; never run the full existing suite, or the 3 counted runs, while a known failure is open. Then the 3 counted runs (step 5), then the impacted tests (step 6). The full existing suite runs only when the brief asks for it (a regression run, H6), once. Every run's wall time (from the runner's report) goes in the RESULT.
29
- 5. **New tests: 3 runs, retries off.** Run the new tests 3 times with the runner's retries disabled; all 3 must agree. Mixed results → `failed`, class FLAKY, with the counts per run. Keep one report per run.
30
- | Runner | Scope | 3 runs, retries off |
28
+ 4b. **Order, so failures cost minutes, not the whole run.** First run only the new tests once, stopping early (`--max-failures=5` for Playwright, the runner's equivalent elsewhere) and with as many workers as the suite's config allows. Failures go to the failure-analyst and are fixed or reported **before** any repeat or full run; never run the full existing suite, or the counted run, while a known failure is open. Then the counted run (step 5), then the impacted tests (step 6). The full existing suite runs only when the brief asks for it (a regression run, H6), once. Every run's wall time (from the runner's report) goes in the RESULT.
29
+ 5. **New tests: 1 counted run, retries off.** The first run of step 4b is the counted run when every new test passed on its first attempt (retries off, through the project's command; record its results, step 8a): no second run. After a fix, the new tests run once more and that run counts. Keep its report. **Repeats only for a stability check** (step 4a) or when the brief names a run count: then N runs (default 3) with the repeat column below; all N must agree, mixed results → `failed`, class FLAKY, with the counts per run, one report per run.
30
+ | Runner | Scope | N runs, retries off (stability check; N = 3 shown) |
31
31
  |---|---|---|
32
32
  | Playwright Test | `<files>` or `--grep "<title or tag>"` | `--repeat-each=3 --retries=0` |
33
33
  | TestNG, JUnit 5 (Maven) | `-Dtest=<Class>` or `<Class>#<method>` (fails when nothing matches; `-Dgroups` with no match runs 0 tests and exits 0) | the command 3 times with `-Dsurefire.rerunFailingTestsCount=0`; copy `target/surefire-reports/` after each run |
@@ -40,9 +40,9 @@ description: Runs automated tests with the project's own runner and configuratio
40
40
  6. **Impacted tests: 1 run.** Run the existing tests the reviewer listed as impacted (they import a changed shared file). Failures here go to the failure-analyst like any other.
41
41
  6q. **Quiet output (where Node exists).** Run every test, build and install command through the quiet runner: `node .claude/skills/orion/scripts/quiet.mjs <the command exactly as you would type it>`. Same command, same exit code, same approval; it prints the failures with their context, warnings, the runner's counts and the last lines, and saves the full output to `project-context/logs/` (grep that file when you need more, never re-run for output). During an open run a raw runner command is blocked in Claude Code and names this form. Measured: a passing Playwright run 2.3 KB → 0.7 KB of output; a failing one keeps every failure line (2026-11-18-cost-breakdown.md).
42
42
  7. **Capture.** Exit code, pass/fail/skip **and flaky** counts as the runner reports them (a test that passed only on retry is flaky, not passed), duration, the last 30 lines of output.
43
- 7a. **Inventory check.** Compare the tests the runner actually executed with the planned scope: new tests × 3 runs + impacted tests. 0 executed, fewer than planned, or a new test reported as skipped is `failed`, never `passed`, even when the exit code is 0: a filter, tag or group that matches nothing, a file outside the runner's test pattern, or a class missing from the suite (AUTOMATION_DEFECT). Never add a pass-with-no-tests flag (Playwright `--pass-with-no-tests`). Run mode: 0 executed → `needs_user` (the selection matches no test). Skipped impacted tests: list each with its skip reason; a skip the base branch doesn't have is a finding.
43
+ 7a. **Inventory check.** Compare the tests the runner actually executed with the planned scope: new tests × counted runs (1, or N for a stability check) + impacted tests. 0 executed, fewer than planned, or a new test reported as skipped is `failed`, never `passed`, even when the exit code is 0: a filter, tag or group that matches nothing, a file outside the runner's test pattern, or a class missing from the suite (AUTOMATION_DEFECT). Never add a pass-with-no-tests flag (Playwright `--pass-with-no-tests`). Run mode: 0 executed → `needs_user` (the selection matches no test). Skipped impacted tests: list each with its skip reason; a skip the base branch doesn't have is a finding.
44
44
  8. **Reports.** Record report, trace and screenshot paths by name (e.g. `test-summary/index.html` and `playwright-report/index.html`, `target/surefire-reports/`, `reports/run-1.xml`, `TestResults/*.trx`), taken from the runner config or the command. If the runner writes no report, write `none` and cite the config line. A summary line is not a report path. **In an existing suite, run reports never go into a new folder in it:** per-run files (JSON, JUnit, the HTML report) are written to the workspace's `project-context/results/` (e.g. `--reporter=list,json` with the JSON output file there), or to an output folder the suite's own config already names and ignores.
45
- 8a. **Per-test results (required: the done check counts these files, not the chat).** After each counted run, where a shell and Node exist, from the workspace root (not the worktree; the report path may point into it; the script writes only inside the folder it runs in): `node .claude/skills/orion/scripts/results_parse.mjs <report path> --run <run id>-<n> --out project-context/results/<run id>-<n>.json` (JUnit XML, TRX or Playwright JSON). Get the report from the counted run itself, through the suite's own command, never a second run or a direct runner call: Playwright `node .claude/skills/orion/scripts/quiet.mjs "npm test --silent -- <spec> --retries=0 --reporter=json > project-context/results/<run id>-<n>.pw.json"` (the quotes keep the redirect inside the counted command; for a project in `sut/<app>/`, from the workspace root: `quiet.mjs "cd sut/<app> && npm test --silent -- <spec> --retries=0 --reporter=json > ../../project-context/results/<run id>-<n>.pw.json"`; the runner creates the results folder. Measured on the demo site, 2026-11-19: 3 runs, 18 of 18 each, parsed, done check passed) (`--silent` keeps npm's banner out of the JSON; no environment variable); pytest `--junitxml=<file>`; Maven and Gradle write JUnit XML themselves; `dotnet test --logger trx`. Put its summary line in the RESULT. Exit 1 (no results found) is reported as `results: none parsed` with the report path; it never replaces the runner's own counts.
45
+ 8a. **Per-test results (required: the done check counts these files, not the chat).** After each counted run, where a shell and Node exist, from the workspace root (not the worktree; the report path may point into it; the script writes only inside the folder it runs in): `node .claude/skills/orion/scripts/results_parse.mjs <report path> --run <run id>-<n> --out project-context/results/<run id>-<n>.json` (JUnit XML, TRX or Playwright JSON). Get the report from the counted run itself, through the suite's own command, never a second run or a direct runner call. **Playwright starters, and suites with their run summary reporter,** write `test-summary/results.json` on every run, so a counted run is the suite's command as is (`node .claude/skills/orion/scripts/quiet.mjs "cd <project> && npm test -- <spec> --retries=0"`), then `results_parse.mjs <project>/test-summary/results.json --run <run id>-<n> --out project-context/results/<run id>-<n>.json` before the next run overwrites it (measured on the demo suite 2026-11-19: the same 18 results as the JSON route). Other Playwright suites: `node .claude/skills/orion/scripts/quiet.mjs "npm test --silent -- <spec> --retries=0 --reporter=json > project-context/results/<run id>-<n>.pw.json"` (the quotes keep the redirect inside the counted command; for a project in `sut/<app>/`, from the workspace root: `quiet.mjs "cd sut/<app> && npm test --silent -- <spec> --retries=0 --reporter=json > ../../project-context/results/<run id>-<n>.pw.json"`; the runner creates the results folder. Measured on the demo site, 2026-11-19: 3 runs, 18 of 18 each, parsed, done check passed) (`--silent` keeps npm's banner out of the JSON; no environment variable); pytest `--junitxml=<file>`; Maven and Gradle write JUnit XML themselves; `dotnet test --logger trx`. Put its summary line in the RESULT. Exit 1 (no results found) is reported as `results: none parsed` with the report path; it never replaces the runner's own counts.
46
46
  9. If anything failed, return `failed` with the run record. Classification is the failure-analyst's job.
47
47
 
48
48
  ## Output
@@ -51,8 +51,8 @@ description: Runs automated tests with the project's own runner and configuratio
51
51
  - where: <worktree path | work branch + CI run URL> · run_where:
52
52
  - device / app build (mobile, desktop): <device, emulator, simulator or session> · <app build and version>
53
53
  - command: · exit code: · duration:
54
- - executed / planned: <n> / <n> (new tests × 3 + impacted; run mode: executed / `selection`)
55
- - new tests, 3 runs: passed / failed / skipped / flaky per run
54
+ - executed / planned: <n> / <n> (new tests × runs + impacted; run mode: executed / `selection`)
55
+ - new tests, counted run(s): passed / failed / skipped / flaky per run
56
56
  - impacted tests: passed / failed / skipped / flaky
57
57
  - failing tests: <names>
58
58
  - reports: <paths — required, or `none` + config file:line>
@@ -2,7 +2,7 @@
2
2
  # C# API tests (HttpClient, NUnit). Runs on PRs, pushes to the default branch, and on demand: the executor triggers it with
3
3
  # actions_run_trigger (run_workflow) on the work branch and reads the result with get_job_logs.
4
4
  # Actions are pinned to commit SHAs (tag in the comment, resolved 2026-10-15); update them with Dependabot.
5
- # "repeat: 3" runs the selection three times with retries off (the 3-run rule for new tests); any failing run fails the job.
5
+ # "repeat: 3" runs the selection three times with retries off (a stability check); any failing run fails the job.
6
6
  name: api-tests
7
7
  on:
8
8
  pull_request:
@@ -22,7 +22,7 @@ on:
22
22
  required: false
23
23
  default: ""
24
24
  repeat:
25
- description: "Runs of the selection (3 for new tests)"
25
+ description: "Runs of the selection (3 for a stability check)"
26
26
  type: choice
27
27
  options: ["1", "3"]
28
28
  default: "1"
@@ -19,6 +19,7 @@ Adapter rules: holds only what differs from the capability skills; the project's
19
19
  - Maven: `mvn -q -DskipTests test-compile`
20
20
  - Gradle: `./gradlew compileTestJava`
21
21
  - Use the wrapper (`./mvnw`, `./gradlew`) if present.
22
+ - Format with the project's Spotless (`mvn spotless:apply`, `./gradlew spotlessApply`) when it has it; none → offered at Gate 4 (Spotless with google-java-format), never added silently.
22
23
 
23
24
  ## Failure signals
24
25
  `cannot find symbol` / `package … does not exist` → AUTOMATION_DEFECT (or missing dependency → needs_user H10). `UnsupportedClassVersionError` → NEEDS_ENVIRONMENT (JDK version).
@@ -22,6 +22,7 @@ Adapter rules: holds only what differs from the capability skills; the project's
22
22
  ## Check
23
23
  - Playwright: `npx playwright test --list` loads every spec (syntax and import errors surface) without running.
24
24
  - Other runners: `node --check <file>` per new file, and the project's `lint` script if present; don't add lint rules.
25
+ - Format: `npx prettier --write <changed files>` when the project has Prettier (the Playwright starters do); never the whole repo.
25
26
 
26
27
  ## Failure signals
27
28
  | Signal | Likely class |
@@ -22,7 +22,7 @@ Adapter rules: holds only what differs from the capability skills; the project's
22
22
  - Gradle: `./gradlew test --tests LoginTest` (the build must call `useJUnitPlatform()`). Reports: `build/reports/tests/`.
23
23
 
24
24
  ## Repeat and flaky (platform rules)
25
- - New tests: run the scoped command 3 times with `-Dsurefire.rerunFailingTestsCount=0`; all 3 must agree. Don't leave `@RepeatedTest` in the code for this.
25
+ - New tests: run the scoped command once with `-Dsurefire.rerunFailingTestsCount=0`; a stability check the user asks for runs it N times (default 3), all N must agree. Don't leave `@RepeatedTest` in the code for this.
26
26
  - Report tests that passed only on a rerun as flaky, never as passed.
27
27
 
28
28
  ## Failure signals
@@ -26,7 +26,7 @@ Adapter rules: holds only what differs from the capability skills; the project's
26
26
  - New project: [templates/project](templates/README.md) (the suite architecture: `src/config/env.js` from the environment then `.env`, a client per resource in `src/services/`, data and builders in `resources/testData/testData.js`, cases in `resources/desc/`, `tests/load/products.js` with both profiles).
27
27
 
28
28
  ## Run
29
- - Verification (covered by the build request, like any new test): `k6 run --quiet -e BASE_URL=<test env> -e API_TOKEN=$API_TOKEN load/<script>.js` with the smoke profile, 3 times; all three exit 0 [S4, M1].
29
+ - Verification (covered by the build request, like any new test): `k6 run --quiet -e BASE_URL=<test env> -e API_TOKEN=$API_TOKEN load/<script>.js` with the smoke profile, once, exit 0 (a stability check on request: N times, each exit 0) [S4, M1].
30
30
  - Fail check: tighten one threshold (`-e P95_MS=1` or a copy with `p(95)<1`) and show exit 99 on that threshold (M2), then restore it.
31
31
  - The load run (H6 only): `-e PROFILE=load`, plus `--summary-export reports/k6-summary.json` [S6, M6]. Report p95, p99, error rate and checks from the summary, each against its threshold.
32
32
  - Exit codes: 0 all thresholds passed; **99 a threshold failed** (M2, M3, M5); **107 a script or setting error** (M9).
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Products API under load. Smoke profile by default (1 VU, 1 iteration): that is what verification runs 3 times.
2
+ * Products API under load. Smoke profile by default (1 VU, 1 iteration): that is what verification runs.
3
3
  * PROFILE=load runs the profile you approved (H6). Every check is bound to a threshold, so a failed check fails the run.
4
4
  */
5
5
  import { check, group, sleep } from 'k6';
@@ -22,7 +22,7 @@ Adapter rules: holds only what differs from the capability skills; the project's
22
22
  ## Run
23
23
  - `mvn test -Dtest=ApiTest` (the runner class) · scope by tag: `-Dkarate.options="--tags @smoke"` · one feature: `-Dkarate.options="classpath:api/users.feature"`.
24
24
  - The template's runner fails when no scenario ran (a tag that matches nothing would otherwise exit 0) and when any scenario failed.
25
- - New tests: the command 3 times with `-Dsurefire.rerunFailingTestsCount=0`; all must pass.
25
+ - New tests: the command once with `-Dsurefire.rerunFailingTestsCount=0`; a stability check on request runs it N times, all must pass.
26
26
  - Reports: `target/karate-reports/karate-summary.html`, `target/surefire-reports/`.
27
27
 
28
28
  ## Failure signals
@@ -2,7 +2,7 @@
2
2
  # Karate (Java, JUnit 5, Maven). Runs on PRs, pushes to the default branch, and on demand: the executor triggers it with
3
3
  # actions_run_trigger (run_workflow) on the work branch and reads the result with get_job_logs.
4
4
  # Actions are pinned to commit SHAs (tag in the comment, resolved 2026-10-15); update them with Dependabot.
5
- # "repeat: 3" runs the selection three times with retries off (the 3-run rule for new tests); any failing run fails the job.
5
+ # "repeat: 3" runs the selection three times with retries off (a stability check); any failing run fails the job.
6
6
  name: api-tests
7
7
  on:
8
8
  pull_request:
@@ -22,7 +22,7 @@ on:
22
22
  required: false
23
23
  default: ""
24
24
  repeat:
25
- description: "Runs of the selection (3 for new tests)"
25
+ description: "Runs of the selection (3 for a stability check)"
26
26
  type: choice
27
27
  options: ["1", "3"]
28
28
  default: "1"
@@ -2,7 +2,7 @@
2
2
  # Postman collection (Newman). Runs on PRs, pushes to the default branch, and on demand: the executor triggers it with
3
3
  # actions_run_trigger (run_workflow) on the work branch and reads the result with get_job_logs.
4
4
  # Actions are pinned to commit SHAs (tag in the comment, resolved 2026-10-15); update them with Dependabot.
5
- # "repeat: 3" runs the selection three times with retries off (the 3-run rule for new tests); any failing run fails the job.
5
+ # "repeat: 3" runs the selection three times with retries off (a stability check); any failing run fails the job.
6
6
  name: api-tests
7
7
  on:
8
8
  pull_request:
@@ -22,7 +22,7 @@ on:
22
22
  required: false
23
23
  default: ""
24
24
  repeat:
25
- description: "Runs of the selection (3 for new tests)"
25
+ description: "Runs of the selection (3 for a stability check)"
26
26
  type: choice
27
27
  options: ["1", "3"]
28
28
  default: "1"
@@ -28,7 +28,7 @@ function settings() {
28
28
  return {
29
29
  baseUrl,
30
30
  token: process.env.API_TOKEN || '',
31
- runs: Number(process.env.TEST_REPEAT || '1'), // 3 for new tests: every iteration must pass
31
+ runs: Number(process.env.TEST_REPEAT || '1'), // N for a stability check: every iteration must pass
32
32
  folder: process.env.TEST_FILTER || undefined, // a folder or request name in the collection
33
33
  runWriteTests: process.env.RUN_WRITE_TESTS === '1', // `write` cases create data
34
34
  };
@@ -24,7 +24,7 @@ Adapter rules: holds only what differs from the capability skills; the project's
24
24
  - Settings such as `BROWSER` or `HEADED` come from environment variables or a `.runsettings` file without secrets.
25
25
 
26
26
  ## Repeat and flaky (platform rules)
27
- - New tests: run the scoped command 3 times; all 3 must agree. Don't leave `[Repeat]` or `[Retry]` in the code.
27
+ - New tests: run the scoped command once; a stability check on request runs it N times (default 3), all N must agree. Don't leave `[Repeat]` or `[Retry]` in the code.
28
28
  - Report tests that passed only on a rerun as flaky, never as passed.
29
29
 
30
30
  ## Failure signals
@@ -12,7 +12,7 @@ description: "Runs the end-to-end test-automation workflow for a requirement: va
12
12
 
13
13
  ## Procedure
14
14
  00. **Rules first, on every host.** Read `AGENTS.md` before anything else: the repo root, else `${CLAUDE_PLUGIN_ROOT}/AGENTS.md` in a plugin install. Don't rely on the host having loaded it (Claude Code skips it when the project has a `CLAUDE.md`; Codex prefers an `AGENTS.override.md`). Copilot Studio has no files: the rules are in your instructions. Not found anywhere → say so in your first sentence and run `doctor`. Then read [references/capabilities.md](references/capabilities.md): what the platform can do now, which agent does what, and where each template and rule lives.
15
- 0e. **Greeting and start.** A greeting or empty request gets the capability card. A request to write, extend or design tests (full, build, design) gets the [setup card](references/setup-card.md) word for word (existing framework? existing test cases? style, tool and language, connections, site and scope, account, extra checks) and waits for go (the next story in the same chat: one "Same setup as before" line instead, conversation.md 1a); after exploring, the test-case table waits for go before any code. No other form or questions. The other modes get no card. Everything the user sees follows [references/conversation.md](references/conversation.md).
15
+ 0e. **Greeting and start.** A greeting or empty request gets the capability card ([references/greeting.md](references/greeting.md); read only that file for it). A request to write, extend or design tests (full, build, design) gets the [setup card](references/setup-card.md) word for word (existing framework? existing test cases? style, tool and language, connections, site and scope, account, extra checks) and waits for go (the next story in the same chat: one "Same setup as before" line instead, conversation.md 1a); after exploring, the test-case table waits for go before any code. No other form or questions. The other modes get no card. Everything the user sees follows [references/conversation.md](references/conversation.md).
16
16
  0. **Mode.** Decide what the user asked for and its stop point from [references/modes.md](references/modes.md) (full, build, analyze, assess, fix, batch, design, review, triage, run, report, doctor, task; for assess and fix read [references/assess-fix.md](references/assess-fix.md), for batch [references/batch.md](references/batch.md), and only then); don't announce it (it goes in the run file), run only that mode's agents and stop at its stop point. Analyze, review, triage and run follow that table; the others are below.
17
17
  0p. **Plain language, every message.** Read each message for what it means, never its exact words, by [references/plain-language.md](references/plain-language.md): a case is "the third one" as well as TS-3, a mode is "just the test cases" as well as `design`, and the user never has to type a command. Safe, read-only asks are done at once; writes and approvals are confirmed in one line with your reading first; two readings get one numbered question.
18
18
  0b. **Report mode.** If the user asks for a report across runs, in any words ("how did the sprint go", "summary of runs"; shortcut `/orion report <scope>`: a run id, story, sprint or fix version, release, date range, or `trend`), delegate test-reporter in `aggregate` mode with the run files in scope. Read-only: no gates, no approvals; publishing the result is a separate H9 question.
@@ -52,7 +52,7 @@ Symbols: ✓ passed · ▶ in progress · ⏸ waiting for the user · ✗ failed
52
52
  | 3 | Stack, patterns, reuse candidates with file evidence (no repo: `greenfield` + the chosen starter template) | codebase-analyst |
53
53
  | 4 | Strategy recorded; user approval if stack/architecture changes | automation-strategist + user |
54
54
  | 5 | The review ran (single-agent: the `code-review` and `automation-review` skills applied as their own step over the diff, findings listed; not run → `not run`, never ✓); zero blocking review findings, or one revision done and the rest listed as known issues of a delivered draft; fail check recorded for every new test (or `not run` with reason) | reviewer |
55
- | 6 | Real runner used from a normal shell (no sandbox-only browser path), output captured; new tests passed 3 of 3 runs with retries off; the fail check failed on its assertion; impacted existing tests run | executor (+ failure-analyst) |
55
+ | 6 | Real runner used from a normal shell (no sandbox-only browser path), output captured; new tests passed their counted run with retries off (all N runs when a stability check was asked); the fail check failed on its assertion; impacted existing tests run | executor (+ failure-analyst) |
56
56
  | 7 | The evidence check ran over the result (single-agent: the `evidence-validation` skill as its own step); every summary claim supported; a `fail` verdict keeps Gate 7 open until its re-check returns pass | evidence-validator |
57
57
  | 8 | `done_check.mjs` exits 0, or after 3 rounds its failing rows are the result's ⚠️ lines (step 4d); every AC is a passing test or named in the result with the reason it isn't; user accepts | you + user |
58
58
 
@@ -9,10 +9,10 @@ Agents, in order; Gate numbers as in the run file. **First reply: only the basel
9
9
  - `node .claude/skills/orion/scripts/reuse_check.mjs <folder> --json`: repeated or unused code (M1, M4, U9);
10
10
  - `node .claude/skills/orion/scripts/graph.mjs build --suite <folder>`: the links between tests, page objects and any cases.
11
11
  Its RESULT: the technology and architecture profiles, the script findings as rows, and the suite's run command and base URL with the config file:line they come from. On a host where it has no shell, it reads the files and says `scripts not run: <reason>`; the findings it judges are tagged `judged`.
12
- 2. **Baseline run (Gate 6, H6).** Ask once, naming the exact command and the base URL the suite will use (from its config, not a guess). Never against production (H5 and the production refusal apply); tests tagged as changing data run only if the user says so. executor runs it once (no 3-run rule, no fail check) and writes the results file with `results_parse.mjs`. Failures go to failure-analyst for a class each. No run (declined, no environment): the assessment says `baseline: not run (<reason>)` and fix mode can't start until one exists. **The baseline changes nothing in the suite either:** it runs only with dependencies that are already there (or restored from the suite's own lockfile without changing it: `npm ci`, `mvn dependency:resolve`, `dotnet restore`, each as part of the H6 question). An install that would create or change a tracked file (`npm install` without a lockfile writes `package-lock.json`) isn't done: the baseline is `not run (dependencies not installed)` and the assessment gives the user the one command to run.
12
+ 2. **Baseline run (Gate 6, H6).** Ask once, naming the exact command and the base URL the suite will use (from its config, not a guess). Never against production (H5 and the production refusal apply); tests tagged as changing data run only if the user says so. executor runs it once (no repeats, no fail check) and writes the results file with `results_parse.mjs`. Failures go to failure-analyst for a class each. No run (declined, no environment): the assessment says `baseline: not run (<reason>)` and fix mode can't start until one exists. **The baseline changes nothing in the suite either:** it runs only with dependencies that are already there (or restored from the suite's own lockfile without changing it: `npm ci`, `mvn dependency:resolve`, `dotnet restore`, each as part of the H6 question). An install that would create or change a tracked file (`npm install` without a lockfile writes `package-lock.json`) isn't done: the baseline is `not run (dependencies not installed)` and the assessment gives the user the one command to run.
13
13
  3. **Review (Gate 5, review part).** reviewer, brief `mode: assess`: applies every U, P and M row of the pattern rules to the **whole suite** (not a diff), confirms or rejects each script finding with the line it read, adds the judged ones (U3 shared data, U4 branching, U8/U12 assertion strength, P3, P4, P7, P9–P13, M1–M6) with file:line, gives each finding's fix the files it edits (the "Changes" column: a P1 fix names the page object and the test the assertion moves into; never an app file), and writes the architecture section against `patterns.md`. A redesign beyond a finding's own fix is not proposed.
14
14
  4. **Evidence (Gate 7).** evidence-validator checks every finding's file:line and quote.
15
- 5. **Save and stop.** The orchestrator writes `project-context/assessments/A-<YYYYMMDD>-<HHMM>/assessment.md` from `templates/project-context/assessment.md` (verdict, facts, top issues in plain words, what's good, how to fix; the full findings table numbered F-1…, most severe first, with the baseline, architecture and what wasn't assessed, inside the folded engineer block), checks it with `node .claude/skills/orion/scripts/report_check.mjs <assessment.md>` until it passes (no shell: by hand, said so), and shows at most 8 lines in chat: the bold verdict with one sentence; "Baseline: " the result; "Findings: 🔴 n critical · 🟠 n blocking · 🟡 n major · ⚪ n minor"; the top 3 issues, one line each in plain words with `file:line`; "Report: `<path>`"; "To fix: `/orion fix A-<id>` (you choose the items; nothing else changes)". With a shell, `graph.mjs build` again so findings show on their files.
15
+ 5. **Save and stop.** The orchestrator writes `project-context/assessments/A-<YYYYMMDD>-<HHMM>/assessment.md` from `templates/project-context/assessment.md` (verdict, facts, top issues in plain words, what's good, how to fix; the full findings table numbered F-1…, most severe first, with the baseline, architecture and what wasn't assessed, inside the folded engineer block), checks it with `node .claude/skills/orion/scripts/report_check.mjs <assessment.md>` until it passes (no shell: by hand, said so), and shows at most 8 lines in chat: the bold verdict with one sentence; "Baseline: " the result; "Findings: 🔴 n critical · 🟠 n blocking · 🟡 n major · ⚪ n minor"; the top 3 issues, one line each in plain words with `file:line`; "Report: `<path>`"; "To fix: say which ones, like *fix F-2 and F-5* or *do the quick wins* (you choose the items; nothing else changes)". With a shell, `graph.mjs build` again so findings show on their files.
16
16
 
17
17
  ## fix (`/orion fix A-<id>` · "fix F-2 and F-5")
18
18
  1. **Plan.** `node .claude/skills/orion/scripts/fix_plan.mjs make project-context/assessments/A-<id>/assessment.md` writes `fix-plan.md` next to it: batches of ≤ 5 findings and ≤ 8 files (each item's `changes:` list), most severe first, every item unticked, items that change what a test checks marked H8, secret items marked as needing the variable name.
@@ -45,7 +45,7 @@ State lives in `project-context/batches/B-<date>-<time>-<slug>/batch.json`. `nod
45
45
  4. **Approval (the one checkpoint for test cases):** the test-case tables in pages of at most 10 stories. The user approves a page, single stories, or edits. A design batch ends here.
46
46
  5. **Foundation:** page objects, fixtures and helpers that two or more stories need, built once on the batch branch, then reviewed and committed locally (H3). Its commit is the batch's `foundation`.
47
47
  6. **Build:** K stories at a time, each in its own work copy from the foundation commit ([work-branch.md](work-branch.md)). A story never edits a foundation file. A change it needs there goes back to the foundation step, and the reviewer blocks it otherwise.
48
- 7. **Verify:** reviewer, then executor (3 runs, retries off) per story, at most 2 runs at a time on a shared test environment.
48
+ 7. **Verify:** reviewer, then executor (1 counted run, retries off) per story, at most 2 runs at a time on a shared test environment.
49
49
  8. **Integration:** one story at a time is merged into the batch branch, then `graph.mjs check` runs, then one regression run (H6), then the story is accepted (one H13 for all, listing each story).
50
50
 
51
51
  **Status:** one line at each wave boundary, from `batch_state.mjs <batch.json> summary` ("Wave 6/8 build: SHOP-3, SHOP-7 · 5 of 12 done · USD 31 of 80"), and no narration in between.
@@ -56,7 +56,7 @@ State lives in `project-context/batches/B-<date>-<time>-<slug>/batch.json`. `nod
56
56
  - Parallel agents cut wall time, not cost. They also reach the usage limit sooner. Say so on the card, and never claim a time or cost for a batch size that wasn't measured.
57
57
 
58
58
  ## Single-agent hosts (Cursor, Copilot, Codex, Gemini)
59
- The same `batch.json` and waves, one story at a time (K = 1), and each agent's step done in the same chat. After about 3 stories, say: "To keep answers sharp, start a new chat and type `/orion batch resume B-<id>`." The card's "Who does what" lists the steps, not parallel agents.
59
+ The same `batch.json` and waves, one story at a time (K = 1), and each agent's step done in the same chat. After about 3 stories, say: "To keep answers sharp, start a new chat and say *continue batch B-<id>*." The card's "Who does what" lists the steps, not parallel agents.
60
60
 
61
61
  ## Rules
62
62
  - The checkpoints are the card, the setup message and the test-case pages. Approvals (AGENTS rule 2: H3, H4, H5, H6, H8, H9, H10, H13) are still asked when they come up, once for the batch where they cover it.
@@ -29,7 +29,7 @@ API support by language and style (REST, GraphQL, schema, what is on request): `
29
29
  - **Locators:** from the live app; converted per language and **proven** (one match, same element) with `ui-observation/references/locator-conversion.md`; the reviewer blocks unproven ones where a browser exists.
30
30
  - **Reuse first** (AGENTS rule 7): every writer searches for what exists before adding (implementer `searched:` rows, reviewer rule U9, heals change the existing locator, the reporter checks for duplicate cases and defects).
31
31
  - **Patterns:** `code-review/references/pattern-rules.md` (U rows always block, P rows for the project's patterns, M rows advisory); the implementer self-checks against the same table.
32
- - **Assertions:** never weakened (assertion guard covers TS, JS, Java, Python, C#, REST); every new test has a fail check; new tests pass 3 of 3 with retries off.
32
+ - **Assertions:** never weakened (assertion guard covers TS, JS, Java, Python, C#, REST); every new test has a fail check; new tests pass with retries off; a stability check ("are these stable?") runs them N times on request, and a flaky one is checked against the live page and fixed on your yes.
33
33
  - **Secrets:** names only; templates keep tokens and passwords out of output (pytest `--tb=short`, Karate header masking); screenshots stay in `.ui-map/`, never committed.
34
34
 
35
35
  ## Optional quality checks (only when the user picks them on the setup card)
@@ -3,25 +3,7 @@
3
3
  What the user sees. The gates, decisions and metrics still happen and are recorded in the run file; the chat shows only what the user needs. Sources: a Cursor run (2026-10-16) that spent 1 hour 40 minutes on approvals and credential files before a single test existed, and the 2026-10-22 demo where the agent built without asking about an existing framework, existing test cases or tool connections. Both are counterexamples: ask once, up front, with defaults; then work without narrating.
4
4
 
5
5
  ## Greeting
6
- On a greeting ("hi", "hello"), an empty request, or "what can you do", reply with this, word for word (as Markdown, not a code block, so the lines and bullets render), and nothing else:
7
-
8
- > **Hi, I'm Orion**, your team of AI test agents. Give me a story and a link, and I'll explore your app, design the test cases, write the tests and prove they pass. Nothing changes without your yes.
9
- >
10
- > **Here's what I can do**
11
- > 1. **Build tests end to end:** explore your site, design the cases, write and run them
12
- > 2. **Design test cases only:** as a table, Excel, PDF, Word, Gherkin, or a TestRail, Xray, Zephyr or Azure import
13
- > 3. **Review or fix your existing tests**
14
- > 4. **Find out why a test failed**
15
- >
16
- > **Works with** Playwright, Selenium, Appium, API tools, k6 (load) and Pact (contract), in TypeScript, JavaScript, Java, C# or Python. Extras: accessibility, visual, broken links, load time.
17
- >
18
- > **Lean by design:** I read only what each step needs, keep test output to the failures, map your code instead of rereading it, and reuse before writing anything new. Lower cost, smaller tests.
19
- >
20
- > **What should we test?** Just tell me in your own words, no commands to learn. Send a link and one sentence, like *login and add to cart on https://test.example.com*, or pick a number.
21
-
22
- A reply that is only a number gets one line asking for what that choice needs: 1 or 2, the link and what to check; 3, the tests' folder, branch or PR; 4, the failing test or its log.
23
-
24
- Name only the tools and languages that have an adapter whose tools ran here ([capabilities.md](capabilities.md): a starter that passes the template check, or the measured k6 and Pact runs) and that this host can serve ([hosts.md](hosts.md)). Warm and plain: a greeting, what you can do, one question. Never a bare list.
6
+ A greeting ("hi", "hello"), an empty request or "what can you do" gets the capability card in [greeting.md](greeting.md), word for word, and nothing else.
25
7
 
26
8
  ## Voice (every message)
27
9
  - **Energetic, respectful, professional.** Confident and friendly, like a senior colleague who is glad to help: short sentences, active verbs, "you" and "I". Thank the user once where it fits (the card), never grovel, never apologise for asking, at most one exclamation mark in a message, no emoji (✅ ⚠️ ❌ are verdict marks, not decoration).
@@ -51,8 +33,8 @@ Two checkpoints, nothing more: the setup card (all questions at once, defaults i
51
33
  5. **Other questions only when a missing fact would make the test wrong and neither the user nor the site can answer it.** One question, with your suggested answer.
52
34
  6. **A pasted account is used, not refused.** Write it to the test project's gitignored `.env` (`BASE_URL`, `E2E_USER`, `E2E_PASSWORD`) with one command from inside the project, each value in single quotes, and never read it back:
53
35
  - bash, zsh, Git Bash: `printf 'BASE_URL=%s\nE2E_USER=%s\nE2E_PASSWORD=%s\n' '<url>' '<user>' '<password>' > .env` (a `'` inside a value is written `'\''`); add `HTTP_USER`/`HTTP_PASSWORD` the same way with `>>`. Check from the workspace root: `node .claude/skills/orion/scripts/env_check.mjs sut/<site>` (names with set, empty or missing, never a value; `env_check.py` gives the same with Python).
54
- - PowerShell (Cursor's default terminal on Windows; there is no `printf`, and `>` writes UTF-16, which the runners can't read): `[IO.File]::WriteAllLines("$PWD\.env", [string[]]@('BASE_URL=<url>','E2E_USER=<user>','E2E_PASSWORD=<password>'))` (UTF-8 without a byte-order mark; a `'` inside a value is written `''`); add lines with `[IO.File]::AppendAllLines` the same way. Check: `node .claude\skills\automate\scripts\env_check.mjs sut\<site>` (it also flags a UTF-16 file).
55
- The platform's own deny rules block reading `.env`, by design, also through `grep`, `cat` or `head`; `env_check.mjs` (or `env_check.py`) is the only check. If the write itself is denied, stop with the blocker message (what failed, the one fix) without printing any value and without asking the user to create the file. Then continue; say once, in one line, that the password is in the chat and in the command log and may be worth rotating (only when the user really pasted one; never say it otherwise). The user who replied "I'll add it" on the setup card gets the file with empty values instead ([setup-card.md](setup-card.md), line 7). Never echo it, never ask the user to create a file, never keep a copy anywhere else (AGENTS rule 5, [login methods](../../ui-observation/references/login-methods.md)). A login the request already gives (the account, or the site's own browser login) is used without asking; the one question is only for a login the request didn't give. A login isn't an approval: AGENTS rule 2 (only a reply typed after the question) is about approvals.
36
+ - PowerShell (Cursor's default terminal on Windows; there is no `printf`, and `>` writes UTF-16, which the runners can't read): `[IO.File]::WriteAllLines("$PWD\.env", [string[]]@('BASE_URL=<url>','E2E_USER=<user>','E2E_PASSWORD=<password>'))` (UTF-8 without a byte-order mark; a `'` inside a value is written `''`); add lines with `[IO.File]::AppendAllLines` the same way. Check: `node .claude\skills\orion\scripts\env_check.mjs sut\<site>` (it also flags a UTF-16 file).
37
+ The platform's own deny rules block reading `.env`, by design, also through `grep`, `cat` or `head`; `env_check.mjs` (or `env_check.py`) is the only check. If the write itself is denied, stop with the blocker message (what failed, the one fix) without printing any value and without asking the user to create the file. Then continue; in your very next message (not at the end of the run), say once, in one line, that the password is in the chat and in the command log and may be worth rotating (only when the user really pasted one; never say it otherwise). The user who replied "I'll add it" on the setup card gets the file with empty values instead ([setup-card.md](setup-card.md), line 7). Never echo it, never ask the user to create a file, never keep a copy anywhere else (AGENTS rule 5, [login methods](../../ui-observation/references/login-methods.md)). A login the request already gives (the account, or the site's own browser login) is used without asking; the one question is only for a login the request didn't give. A login isn't an approval: AGENTS rule 2 (only a reply typed after the question) is about approvals.
56
38
  6a. **Host prompts are not extra questions.** Claude Code shows its own permission prompt for installs (`npm install`, `npm ci`, a browser download) and for commands it hasn't been allowed yet, such as `npm test` or `npx playwright test`; the user answers it there ("Yes, and don't ask again" for test commands saves later prompts). Never repeat a host prompt as a chat question.
57
39
  7. **Other approvals are asked when they come up, one line each:** a production URL (H5), commit, push or PR (H3, H4), writing to a tracker (H9), installing anything outside the test project (H10), changing an expected value (H8) (AGENTS rule 2).
58
40
  8. **"ok" or "go ahead" confirms only what was just shown** (the setup card, the test-case table). It is never recorded as a yes to a question that wasn't asked, and never covers an approval in item 7.
@@ -77,19 +59,24 @@ Two checkpoints, nothing more: the setup card (all questions at once, defaults i
77
59
  ## What the user sees
78
60
  - Plain sentences ([status-lines.md](status-lines.md)): what you are doing, the folder path, the test list, the command results, any real blocker. No gate board, decision IDs, "recorded", or specialist names.
79
61
  - **The first reply to a build or design request is the setup card** (or the greeting card for a greeting): its eight questions, each with a default, never a list of open questions without defaults, and never a page observation or code before the user said go.
80
- - **The result is one short message: exactly the 5 numbered lines below, at most 120 words before "Accept?" (count them; code paths count as one word), no line over 30 words**, the report's top in chat form, in this order. No sentence before line 1 and none between the lines: no intro ("I wrote 8 tests…"), no repeat of the story not being read (line 4 says it once if it matters), no password note (said once, when the account was pasted, never again), no "To run the tests yourself". Never a per-test table, a file list, the run command, or notes on the platform's own checks: what the report checker or a type checker said, a starter check you removed or changed, a reload to do; those go in the report, and a checker that flags the app's own name is noted there as a checker problem):
81
- 1. **The verdict, bold, then what was built and how it ran**, the same verdict as the report (✅ Ready to accept · ⚠️ Ready, with notes · ❌ Not ready): "**✅ Ready to accept**: 10 tests in `sut/<app>/tests`, passed 3 runs in a row (30 of 30); each failed when its check was broken."
62
+ - **The result is one short message: exactly the 5 numbered lines below, each its own paragraph (a blank line between them, or a chat window runs them together), at most 120 words before "Accept?" (count them; code paths count as one word), no line over 30 words**, the report's top in chat form, in this order. No sentence before line 1 and none between the lines: no intro ("I wrote 8 tests…"), no repeat of the story not being read (line 4 says it once if it matters), no password note (said once, when the account was pasted, never again), no "To run the tests yourself". Never a per-test table, a file list, the run command, or notes on the platform's own checks: what the report checker or a type checker said, a starter check you removed or changed, a reload to do; those go in the report, and a checker that flags the app's own name is noted there as a checker problem):
63
+ 1. **The verdict, bold, then what was built and how it ran**, the same verdict as the report (✅ Ready to accept · ⚠️ Ready, with notes · ❌ Not ready): "**✅ Ready to accept**: 10 tests in `sut/<app>/tests`, all passed with retries off (10 of 10); each failed when its check was broken."
82
64
  2. "Login: " automated and how, or why not.
83
65
  3. "Coverage: " on one line, never a table (the report keeps its coverage table; the chat gets this line): each requirement in a few words with its test ids, or why one has none: "Coverage: log in → TS-1, TS-2 · log out → TS-3 · checkout → not covered (needs a payment account)."
84
66
  4. At most two lines, each starting "⚠️ ", at most 25 words, on what changes the user's next step and what to do about it: a defect found, a test not run, a check skipped or only reported, a risk to their account or data. The finding and the action, nothing about how you found it: "⚠️ TS-4 expects an alert the site doesn't show for a malformed email: say \"fix TS-4\" and I'll correct it (asks first)." None → no line.
85
67
  5. "Report: `<report path inside the workspace>`".
86
68
  A full example, 89 words before "Accept?":
87
69
  ```
88
- **✅ Ready to accept**: 9 tests in `sut/<app>/tests/ui`, passed 3 runs in a row (27 of 27); each failed when its check was broken.
70
+ **✅ Ready to accept**: 9 tests in `sut/<app>/tests/ui`, all passed with retries off (9 of 9); each failed when its check was broken.
71
+
89
72
  Login: automated, signed in once through the form and the session reused.
73
+
90
74
  Coverage: sign in → TS-1, TS-2 · wrong or empty details → TS-3 to TS-6 · logout → TS-9 · PIN reset → not covered (no test PIN).
75
+
91
76
  ⚠️ The story wasn't read: the cases follow your request and the site. Connect the tracker or paste the story to check them.
77
+
92
78
  Report: `project-context/reports/<story>-report.md`
79
+
93
80
  **Accept?** Reply **yes**, or tell me what to change. What next: 1 open the report · 2 the test cases as Excel, PDF or any file · 3 commit to a new branch (I'll ask first)
94
81
  ```
95
82
  Then "**Accept?** Reply **yes**, or tell me what to change." and one "What next" line of up to three numbered choices that fit the run (open the report; the test cases as Excel or a tool import file; commit to a new branch, asked first; share results to the connected tool, asked first). A choice is only offered when this host can do it.
@@ -103,5 +90,5 @@ Two checkpoints, nothing more: the setup card (all questions at once, defaults i
103
90
  | 1 Start | — | the setup card; wait for go |
104
91
  | 2 Understand | 1, 2, 3 | "The site asks for a browser login first; behind it, the women's handbags listing has 48 products, the first in stock is …" |
105
92
  | 3 Design | 4 | the test-case table (ID · What it checks · Type · Priority · Expected) and "Shall I write these?"; wait (design mode stops here for acceptance) |
106
- | 4 Build | 5, 6 | "5 tests in sut/coach/tests. `npm test` passed 3 times; a wrong quantity failed on that assertion." |
93
+ | 4 Build | 5, 6 | "5 tests in sut/coach/tests. `npm test` passed; a wrong quantity failed on that assertion." |
107
94
  | 5 Deliver | 7, 8 | the folder, the tests, the results, the one-line login and coverage statements, "**Accept?** Reply **yes**, or tell me what to change." and a "What next" line |
@@ -0,0 +1,23 @@
1
+ # Greeting: the capability card
2
+
3
+ On its own file so a greeting reads 2 KB, not the whole 21 KB of conversation rules. The tone is in [conversation.md](conversation.md), "Voice".
4
+
5
+ On a greeting ("hi", "hello"), an empty request, or "what can you do", reply with this, word for word (as Markdown, not a code block, so the lines and bullets render), and nothing else:
6
+
7
+ > **Hi, I'm Orion**, your team of AI test agents. Give me a story and a link, and I'll explore your app, design the test cases, write the tests and prove they pass. Nothing changes without your yes.
8
+ >
9
+ > **Here's what I can do**
10
+ > 1. **Build tests end to end:** explore your site, design the cases, write and run them
11
+ > 2. **Design test cases only:** as a table, Excel, PDF, Word, Gherkin, or a TestRail, Xray, Zephyr or Azure import
12
+ > 3. **Review or fix your existing tests**
13
+ > 4. **Find out why a test failed**
14
+ >
15
+ > **Works with** Playwright, Selenium, Appium, API tools, k6 (load) and Pact (contract), in TypeScript, JavaScript, Java, C# or Python. Extras: accessibility, visual, broken links, load time.
16
+ >
17
+ > **Lean by design:** I read only what each step needs, keep test output to the failures, map your code instead of rereading it, and reuse before writing anything new. Lower cost, smaller tests.
18
+ >
19
+ > **What should we test?** Just tell me in your own words, no commands to learn. Send a link and one sentence, like *login and add to cart on https://test.example.com*, or pick a number.
20
+
21
+ A reply that is only a number gets one line asking for what that choice needs: 1 or 2, the link and what to check; 3, the tests' folder, branch or PR; 4, the failing test or its log.
22
+
23
+ Name only the tools and languages that have an adapter whose tools ran here ([capabilities.md](capabilities.md): a starter that passes the template check, or the measured k6 and Pact runs) and that this host can serve ([hosts.md](hosts.md)). Warm and plain: a greeting, what you can do, one question. Never a bare list.