@orion-qa/orion 3.0.0 → 3.1.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 (578) hide show
  1. package/.claude/agents/codebase-analyst.md +1 -1
  2. package/.claude/settings.json +9 -0
  3. package/.claude/skills/appium/SKILL.md +1 -1
  4. package/.claude/skills/appium/templates/README.md +6 -9
  5. package/.claude/skills/appium/templates/ci/github-actions-android.yml +8 -2
  6. package/.claude/skills/appium/templates/ci/github-actions-ios.yml +8 -2
  7. package/.claude/skills/appium/templates/ci/github-actions-windows.yml +9 -2
  8. package/.claude/skills/appium/templates/project-java/.env.example +4 -0
  9. package/.claude/skills/appium/templates/project-java/pom.xml +2 -0
  10. package/.claude/skills/appium/templates/project-java/src/test/java/automation/{framework/Config.java → config/Env.java} +43 -52
  11. package/.claude/skills/appium/templates/project-java/src/test/java/automation/config/Flags.java +45 -0
  12. package/.claude/skills/appium/templates/project-java/src/test/java/automation/config/Paths.java +14 -0
  13. package/.claude/skills/appium/templates/project-java/src/test/java/automation/desc/SignInDesc.java +30 -0
  14. package/.claude/skills/appium/templates/project-java/src/test/java/automation/{framework → driver}/DriverFactory.java +19 -13
  15. package/.claude/skills/appium/templates/project-java/src/test/java/automation/{framework → driver}/DriverManager.java +12 -9
  16. package/.claude/skills/appium/templates/project-java/src/test/java/automation/fixtures/BaseTest.java +75 -0
  17. package/.claude/skills/appium/templates/project-java/src/test/java/automation/{screens → pageObjects}/BaseScreen.java +12 -12
  18. package/.claude/skills/appium/templates/project-java/src/test/java/automation/pageObjects/HomeScreen.java +26 -0
  19. package/.claude/skills/appium/templates/project-java/src/test/java/automation/pageObjects/LoginScreen.java +63 -0
  20. package/.claude/skills/appium/templates/project-java/src/test/java/automation/pageObjects/ShellScreen.java +26 -0
  21. package/.claude/skills/appium/templates/project-java/src/test/java/automation/setup/AuthSetup.java +49 -0
  22. package/.claude/skills/appium/templates/project-java/src/test/java/automation/testData/TestData.java +78 -0
  23. package/.claude/skills/appium/templates/project-java/src/test/java/automation/tests/ui/SignInTest.java +45 -0
  24. package/.claude/skills/appium/templates/project-java/src/test/java/automation/tests/unit/UtilsTest.java +34 -0
  25. package/.claude/skills/appium/templates/project-java/src/test/java/automation/{framework → utils}/AutomationError.java +4 -4
  26. package/.claude/skills/appium/templates/project-java/src/test/java/automation/utils/Case.java +20 -0
  27. package/.claude/skills/appium/templates/project-java/src/test/java/automation/utils/CaseTransformer.java +54 -0
  28. package/.claude/skills/appium/templates/project-java/src/test/java/automation/utils/Dates.java +42 -0
  29. package/.claude/skills/appium/templates/project-java/src/test/java/automation/utils/Log.java +45 -0
  30. package/.claude/skills/appium/templates/project-java/src/test/java/automation/utils/MissingSettingError.java +13 -0
  31. package/.claude/skills/appium/templates/project-java/src/test/java/automation/utils/RandomData.java +41 -0
  32. package/.claude/skills/appium/templates/project-java/src/test/java/automation/utils/Redact.java +33 -0
  33. package/.claude/skills/appium/templates/project-java/src/test/java/automation/utils/TestDescription.java +25 -0
  34. package/.claude/skills/appium/templates/project-java/src/test/resources/testData/testData.properties +7 -0
  35. package/.claude/skills/appium/templates/project-java/testng.xml +11 -4
  36. package/.claude/skills/architecture-analysis/SKILL.md +2 -1
  37. package/.claude/skills/automation-implementation/SKILL.md +2 -1
  38. package/.claude/skills/automation-implementation/references/patterns.md +46 -24
  39. package/.claude/skills/code-review/SKILL.md +3 -2
  40. package/.claude/skills/code-review/references/pattern-rules.md +12 -7
  41. package/.claude/skills/documentation/SKILL.md +23 -18
  42. package/.claude/skills/execution/SKILL.md +6 -3
  43. package/.claude/skills/httpclient/templates/README.md +6 -7
  44. package/.claude/skills/httpclient/templates/csharp-nunit/.env.example +4 -0
  45. package/.claude/skills/httpclient/templates/csharp-nunit/Automation.csproj +7 -3
  46. package/.claude/skills/httpclient/templates/csharp-nunit/Config/Env.cs +62 -0
  47. package/.claude/skills/httpclient/templates/csharp-nunit/Config/Flags.cs +35 -0
  48. package/.claude/skills/httpclient/templates/csharp-nunit/Config/Paths.cs +22 -0
  49. package/.claude/skills/httpclient/templates/csharp-nunit/Fixtures/BaseTest.cs +22 -0
  50. package/.claude/skills/httpclient/templates/csharp-nunit/Resources/Desc/ProductsDesc.cs +22 -0
  51. package/.claude/skills/httpclient/templates/csharp-nunit/Resources/TestData/TestData.cs +61 -0
  52. package/.claude/skills/httpclient/templates/csharp-nunit/Resources/TestData/testData.json +9 -0
  53. package/.claude/skills/httpclient/templates/csharp-nunit/Services/ApiClient.cs +48 -0
  54. package/.claude/skills/httpclient/templates/csharp-nunit/Services/HealthApi.cs +11 -0
  55. package/.claude/skills/httpclient/templates/csharp-nunit/{Api → Services}/ProductsApi.cs +8 -5
  56. package/.claude/skills/httpclient/templates/csharp-nunit/Tests/Api/ProductsTests.cs +61 -0
  57. package/.claude/skills/httpclient/templates/csharp-nunit/Tests/Unit/UtilsTests.cs +40 -0
  58. package/.claude/skills/httpclient/templates/csharp-nunit/Utils/AutomationError.cs +15 -0
  59. package/.claude/skills/httpclient/templates/csharp-nunit/Utils/Dates.cs +18 -0
  60. package/.claude/skills/httpclient/templates/csharp-nunit/Utils/Log.cs +37 -0
  61. package/.claude/skills/httpclient/templates/csharp-nunit/Utils/RandomData.cs +26 -0
  62. package/.claude/skills/httpclient/templates/csharp-nunit/Utils/Redact.cs +22 -0
  63. package/.claude/skills/httpclient/templates/csharp-nunit/Utils/TestDescription.cs +55 -0
  64. package/.claude/skills/javascript/references/sources.md +1 -1
  65. package/.claude/skills/k6/SKILL.md +1 -1
  66. package/.claude/skills/k6/templates/README.md +5 -3
  67. package/.claude/skills/k6/templates/project/{data/cases.js → resources/desc/products.desc.js} +1 -1
  68. package/.claude/skills/k6/templates/project/resources/testData/testData.js +32 -0
  69. package/.claude/skills/k6/templates/project/{lib/config.js → src/config/env.js} +10 -5
  70. package/.claude/skills/k6/templates/project/{lib → src/services}/products-api.js +7 -5
  71. package/.claude/skills/k6/templates/project/{load → tests/load}/products.js +8 -8
  72. package/.claude/skills/karate/templates/README.md +4 -5
  73. package/.claude/skills/karate/templates/java-junit5/.env.example +2 -0
  74. package/.claude/skills/karate/templates/java-junit5/pom.xml +4 -0
  75. package/.claude/skills/karate/templates/java-junit5/src/test/java/{support → config}/EnvSettings.java +1 -1
  76. package/.claude/skills/karate/templates/java-junit5/src/test/java/karate-config.js +13 -6
  77. package/.claude/skills/karate/templates/java-junit5/src/test/java/logback-test.xml +1 -1
  78. package/.claude/skills/karate/templates/java-junit5/src/test/java/{api → tests}/ApiTest.java +7 -4
  79. package/.claude/skills/karate/templates/java-junit5/src/test/java/{api → tests/api}/health.feature +3 -3
  80. package/.claude/skills/karate/templates/java-junit5/src/test/java/tests/api/products.feature +29 -0
  81. package/.claude/skills/karate/templates/java-junit5/src/test/java/{support → utils}/MaskingLogModifier.java +1 -1
  82. package/.claude/skills/karate/templates/java-junit5/src/test/resources/testData/newProduct.js +7 -0
  83. package/.claude/skills/karate/templates/java-junit5/src/test/resources/testData/testData.json +6 -0
  84. package/.claude/skills/newman/templates/README.md +4 -5
  85. package/.claude/skills/newman/templates/collection/.env.example +2 -0
  86. package/.claude/skills/newman/templates/collection/collections/api.postman_collection.json +165 -145
  87. package/.claude/skills/newman/templates/collection/package.json +2 -1
  88. package/.claude/skills/newman/templates/collection/resources/desc/products.desc.json +53 -0
  89. package/.claude/skills/newman/templates/collection/resources/testData/testData.json +10 -0
  90. package/.claude/skills/newman/templates/collection/run.js +41 -31
  91. package/.claude/skills/newman/templates/collection/src/config/env.js +37 -0
  92. package/.claude/skills/orion/SKILL.md +9 -7
  93. package/.claude/skills/orion/references/assess-fix.md +34 -0
  94. package/.claude/skills/orion/references/capabilities.md +1 -1
  95. package/.claude/skills/orion/references/conversation.md +9 -8
  96. package/.claude/skills/orion/references/delivery-formats.md +1 -1
  97. package/.claude/skills/orion/references/modes.md +3 -1
  98. package/.claude/skills/orion/references/project-context-files.md +6 -1
  99. package/.claude/skills/orion/references/setup-card.md +12 -6
  100. package/.claude/skills/orion/references/status-lines.md +6 -2
  101. package/.claude/skills/orion/references/task-brief.md +1 -0
  102. package/.claude/skills/orion/references/work-branch.md +3 -1
  103. package/.claude/skills/orion/scripts/browser_setup.mjs +30 -15
  104. package/.claude/skills/orion/scripts/env_check.mjs +8 -3
  105. package/.claude/skills/orion/scripts/env_check.py +12 -5
  106. package/.claude/skills/orion/scripts/fix_plan.mjs +149 -0
  107. package/.claude/skills/orion/scripts/graph.mjs +400 -0
  108. package/.claude/skills/orion/scripts/lib/inside.mjs +31 -0
  109. package/.claude/skills/orion/scripts/lib/scan.mjs +357 -0
  110. package/.claude/skills/orion/scripts/parity_check.mjs +166 -0
  111. package/.claude/skills/orion/scripts/report_check.mjs +77 -0
  112. package/.claude/skills/orion/scripts/results_parse.mjs +203 -0
  113. package/.claude/skills/orion/scripts/reuse_check.mjs +251 -0
  114. package/.claude/skills/orion/scripts/run_state.mjs +171 -0
  115. package/.claude/skills/orion/scripts/suite_check.mjs +228 -0
  116. package/.claude/skills/orion/scripts/timing_profile.mjs +128 -0
  117. package/.claude/skills/orion/scripts/usage_report.mjs +315 -0
  118. package/.claude/skills/orion/templates/project-context/assessment.md +45 -0
  119. package/.claude/skills/orion/templates/project-context/defects.md +5 -0
  120. package/.claude/skills/orion/templates/project-context/report.md +45 -0
  121. package/.claude/skills/orion/templates/project-context/run.md +4 -1
  122. package/.claude/skills/orion/templates/project-context/test-case-map.md +5 -0
  123. package/.claude/skills/orion/templates/project-context/test-design.md +18 -0
  124. package/.claude/skills/pact/SKILL.md +2 -2
  125. package/.claude/skills/pact/templates/README.md +4 -2
  126. package/.claude/skills/pact/templates/project/package.json +2 -2
  127. package/.claude/skills/pact/templates/project/{data/cases.js → resources/desc/products.desc.js} +3 -3
  128. package/.claude/skills/pact/templates/project/resources/testData/testData.js +21 -0
  129. package/.claude/skills/pact/templates/project/src/config/env.js +32 -0
  130. package/.claude/skills/pact/templates/project/src/{products-client.js → services/products-client.js} +4 -2
  131. package/.claude/skills/pact/templates/project/tests/contract/products.contract.test.js +46 -0
  132. package/.claude/skills/pact/templates/project/{verify → tests/verify}/products.verify.js +7 -22
  133. package/.claude/skills/playwright/SKILL.md +6 -6
  134. package/.claude/skills/playwright/templates/README.md +29 -10
  135. package/.claude/skills/playwright/templates/ci/Jenkinsfile +1 -1
  136. package/.claude/skills/playwright/templates/ci/azure-pipelines.yml +1 -1
  137. package/.claude/skills/playwright/templates/ci/github-actions-javascript.yml +1 -1
  138. package/.claude/skills/playwright/templates/ci/github-actions.yml +1 -1
  139. package/.claude/skills/playwright/templates/ci/gitlab-ci.yml +1 -1
  140. package/.claude/skills/playwright/templates/dotnet/.env.example +7 -0
  141. package/.claude/skills/playwright/templates/dotnet/.runsettings +17 -0
  142. package/.claude/skills/playwright/templates/dotnet/Automation.csproj +8 -0
  143. package/.claude/skills/playwright/templates/dotnet/Config/Env.cs +89 -0
  144. package/.claude/skills/playwright/templates/dotnet/Config/Flags.cs +56 -0
  145. package/.claude/skills/playwright/templates/dotnet/Config/Paths.cs +31 -0
  146. package/.claude/skills/playwright/templates/dotnet/Fixtures/ApiBaseTest.cs +39 -0
  147. package/.claude/skills/playwright/templates/dotnet/Fixtures/BaseTest.cs +72 -0
  148. package/.claude/skills/playwright/templates/dotnet/PageObjects/BasePage.cs +59 -0
  149. package/.claude/skills/playwright/templates/dotnet/PageObjects/HomePage.cs +21 -0
  150. package/.claude/skills/playwright/templates/dotnet/PageObjects/LoginPage.cs +54 -0
  151. package/.claude/skills/playwright/templates/dotnet/PageObjects/ShellPage.cs +29 -0
  152. package/.claude/skills/playwright/templates/dotnet/Resources/Desc/SignInDesc.cs +23 -0
  153. package/.claude/skills/playwright/templates/dotnet/Resources/TestData/TestData.cs +74 -0
  154. package/.claude/skills/playwright/templates/dotnet/Resources/TestData/testData.json +19 -0
  155. package/.claude/skills/playwright/templates/dotnet/Services/ApiClient.cs +51 -0
  156. package/.claude/skills/playwright/templates/dotnet/Setup/AuthSetup.cs +63 -0
  157. package/.claude/skills/playwright/templates/dotnet/Tests/Api/SessionTests.cs +18 -0
  158. package/.claude/skills/playwright/templates/dotnet/Tests/Ui/SignInTests.cs +48 -0
  159. package/.claude/skills/playwright/templates/dotnet/Tests/Unit/UtilsTests.cs +40 -0
  160. package/.claude/skills/playwright/templates/dotnet/Utils/AutomationError.cs +15 -0
  161. package/.claude/skills/playwright/templates/dotnet/Utils/Dates.cs +18 -0
  162. package/.claude/skills/playwright/templates/dotnet/Utils/Log.cs +37 -0
  163. package/.claude/skills/playwright/templates/dotnet/Utils/RandomData.cs +26 -0
  164. package/.claude/skills/playwright/templates/dotnet/Utils/Redact.cs +22 -0
  165. package/.claude/skills/playwright/templates/dotnet/Utils/TestDescription.cs +55 -0
  166. package/.claude/skills/playwright/templates/dotnet/gitignore +6 -1
  167. package/.claude/skills/playwright/templates/javascript/.env.example +8 -0
  168. package/.claude/skills/playwright/templates/javascript/fixtures/index.js +83 -0
  169. package/.claude/skills/playwright/templates/javascript/fixtures/session.js +79 -0
  170. package/.claude/skills/playwright/templates/javascript/gitignore +7 -0
  171. package/.claude/skills/playwright/templates/javascript/jsconfig.json +11 -0
  172. package/.claude/skills/playwright/templates/javascript/package.json +7 -3
  173. package/.claude/skills/playwright/templates/javascript/pageObjects/basePage.js +58 -0
  174. package/.claude/skills/playwright/templates/javascript/pageObjects/homePage.js +19 -0
  175. package/.claude/skills/playwright/templates/javascript/pageObjects/loginPage.js +44 -0
  176. package/.claude/skills/playwright/templates/javascript/pageObjects/shellPage.js +26 -0
  177. package/.claude/skills/playwright/templates/javascript/playwright.config.js +42 -24
  178. package/.claude/skills/playwright/templates/javascript/reporters/summaryReporter.js +233 -0
  179. package/.claude/skills/playwright/templates/javascript/resources/desc/signIn.desc.js +33 -0
  180. package/.claude/skills/playwright/templates/javascript/resources/testData/testData.js +45 -0
  181. package/.claude/skills/playwright/templates/javascript/setup/auth.setup.js +17 -0
  182. package/.claude/skills/playwright/templates/javascript/setup/auth.teardown.js +16 -0
  183. package/.claude/skills/playwright/templates/javascript/src/config/env.js +79 -0
  184. package/.claude/skills/playwright/templates/javascript/src/config/flags.js +70 -0
  185. package/.claude/skills/playwright/templates/javascript/src/config/loadEnv.js +21 -0
  186. package/.claude/skills/playwright/templates/javascript/src/config/paths.js +22 -0
  187. package/.claude/skills/playwright/templates/javascript/src/services/apiClient.js +68 -0
  188. package/.claude/skills/playwright/templates/javascript/tests/api/session.spec.js +15 -0
  189. package/.claude/skills/playwright/templates/javascript/tests/ui/signIn.spec.js +35 -0
  190. package/.claude/skills/playwright/templates/javascript/tests/unit/summaryReporter.test.js +34 -0
  191. package/.claude/skills/playwright/templates/javascript/tests/unit/utils.test.js +31 -0
  192. package/.claude/skills/playwright/templates/javascript/utils/date.js +28 -0
  193. package/.claude/skills/playwright/templates/javascript/{src → utils}/errors.js +1 -0
  194. package/.claude/skills/playwright/templates/javascript/utils/formFill.js +29 -0
  195. package/.claude/skills/playwright/templates/javascript/utils/logger.js +33 -0
  196. package/.claude/skills/playwright/templates/javascript/utils/random.js +37 -0
  197. package/.claude/skills/playwright/templates/javascript/utils/redact.js +35 -0
  198. package/.claude/skills/playwright/templates/javascript/utils/titles.js +38 -0
  199. package/.claude/skills/playwright/templates/project/.env.example +8 -0
  200. package/.claude/skills/playwright/templates/project/fixtures/index.ts +84 -0
  201. package/.claude/skills/playwright/templates/project/fixtures/session.ts +76 -0
  202. package/.claude/skills/playwright/templates/project/gitignore +9 -2
  203. package/.claude/skills/playwright/templates/project/package.json +8 -6
  204. package/.claude/skills/playwright/templates/project/pageObjects/basePage.ts +53 -0
  205. package/.claude/skills/playwright/templates/project/pageObjects/homePage.ts +20 -0
  206. package/.claude/skills/playwright/templates/project/pageObjects/loginPage.ts +47 -0
  207. package/.claude/skills/playwright/templates/project/pageObjects/shellPage.ts +22 -0
  208. package/.claude/skills/playwright/templates/project/playwright.config.ts +46 -23
  209. package/.claude/skills/playwright/templates/project/reporters/summaryReporter.ts +241 -0
  210. package/.claude/skills/playwright/templates/project/resources/desc/signIn.desc.ts +32 -0
  211. package/.claude/skills/playwright/templates/project/resources/testData/testData.ts +42 -0
  212. package/.claude/skills/playwright/templates/project/setup/auth.setup.ts +16 -0
  213. package/.claude/skills/playwright/templates/project/setup/auth.teardown.ts +15 -0
  214. package/.claude/skills/playwright/templates/project/src/config/env.ts +81 -0
  215. package/.claude/skills/playwright/templates/project/src/config/flags.ts +70 -0
  216. package/.claude/skills/playwright/templates/project/src/config/loadEnv.ts +17 -0
  217. package/.claude/skills/playwright/templates/project/src/config/paths.ts +19 -0
  218. package/.claude/skills/playwright/templates/project/src/services/apiClient.ts +70 -0
  219. package/.claude/skills/playwright/templates/project/tests/api/session.spec.ts +14 -0
  220. package/.claude/skills/playwright/templates/project/tests/ui/signIn.spec.ts +34 -0
  221. package/.claude/skills/playwright/templates/project/tests/unit/summaryReporter.test.ts +33 -0
  222. package/.claude/skills/playwright/templates/project/tests/unit/utils.test.ts +30 -0
  223. package/.claude/skills/playwright/templates/project/tsconfig.json +3 -8
  224. package/.claude/skills/playwright/templates/project/utils/date.ts +25 -0
  225. package/.claude/skills/playwright/templates/project/utils/formFill.ts +27 -0
  226. package/.claude/skills/playwright/templates/project/utils/logger.ts +32 -0
  227. package/.claude/skills/playwright/templates/project/utils/random.ts +34 -0
  228. package/.claude/skills/playwright/templates/project/utils/redact.ts +32 -0
  229. package/.claude/skills/playwright/templates/project/utils/titles.ts +42 -0
  230. package/.claude/skills/playwright/templates/python/.env.example +8 -0
  231. package/.claude/skills/playwright/templates/python/conftest.py +91 -16
  232. package/.claude/skills/playwright/templates/python/gitignore +5 -0
  233. package/.claude/skills/playwright/templates/python/page_objects/__init__.py +1 -0
  234. package/.claude/skills/playwright/templates/python/page_objects/base_page.py +54 -0
  235. package/.claude/skills/playwright/templates/python/page_objects/home_page.py +22 -0
  236. package/.claude/skills/playwright/templates/python/page_objects/login_page.py +42 -0
  237. package/.claude/skills/playwright/templates/python/page_objects/shell_page.py +21 -0
  238. package/.claude/skills/playwright/templates/python/pytest.ini +5 -2
  239. package/.claude/skills/playwright/templates/python/requirements.txt +1 -0
  240. package/.claude/skills/playwright/templates/python/resources/__init__.py +1 -0
  241. package/.claude/skills/playwright/templates/python/resources/desc/__init__.py +1 -0
  242. package/.claude/skills/playwright/templates/python/resources/desc/sign_in_desc.py +27 -0
  243. package/.claude/skills/playwright/templates/python/resources/test_data/__init__.py +1 -0
  244. package/.claude/skills/playwright/templates/python/resources/test_data/test_data.py +41 -0
  245. package/.claude/skills/playwright/templates/python/setup/__init__.py +1 -0
  246. package/.claude/skills/playwright/templates/python/setup/auth.py +53 -0
  247. package/.claude/skills/playwright/templates/python/src/__init__.py +1 -0
  248. package/.claude/skills/playwright/templates/python/src/config/__init__.py +1 -0
  249. package/.claude/skills/playwright/templates/python/{framework/config.py → src/config/env.py} +24 -33
  250. package/.claude/skills/playwright/templates/python/src/config/flags.py +63 -0
  251. package/.claude/skills/playwright/templates/python/src/config/load_env.py +16 -0
  252. package/.claude/skills/playwright/templates/python/src/config/paths.py +25 -0
  253. package/.claude/skills/playwright/templates/python/src/services/__init__.py +1 -0
  254. package/.claude/skills/playwright/templates/python/src/services/api_client.py +60 -0
  255. package/.claude/skills/playwright/templates/python/tests/api/test_session.py +14 -0
  256. package/.claude/skills/playwright/templates/python/tests/ui/test_sign_in.py +36 -0
  257. package/.claude/skills/playwright/templates/python/tests/unit/test_utils.py +32 -0
  258. package/.claude/skills/playwright/templates/python/utils/__init__.py +1 -0
  259. package/.claude/skills/playwright/templates/python/utils/dates.py +23 -0
  260. package/.claude/skills/playwright/templates/python/{framework → utils}/errors.py +3 -2
  261. package/.claude/skills/playwright/templates/python/utils/form_fill.py +26 -0
  262. package/.claude/skills/playwright/templates/python/utils/logger.py +40 -0
  263. package/.claude/skills/playwright/templates/python/utils/markers.py +6 -0
  264. package/.claude/skills/playwright/templates/python/utils/random_data.py +35 -0
  265. package/.claude/skills/playwright/templates/python/utils/redact.py +30 -0
  266. package/.claude/skills/playwright/templates/python/utils/titles.py +53 -0
  267. package/.claude/skills/quality-checks/SKILL.md +11 -11
  268. package/.claude/skills/quality-checks/templates/README.md +14 -12
  269. package/.claude/skills/quality-checks/templates/playwright-js/pageObjects/scannedPage.js +21 -0
  270. package/.claude/skills/quality-checks/templates/playwright-js/resources/desc/quality.desc.js +63 -0
  271. package/.claude/skills/quality-checks/templates/playwright-js/resources/testData/qualityData.js +32 -0
  272. package/.claude/skills/quality-checks/templates/playwright-js/src/checks/accessibility.js +50 -0
  273. package/.claude/skills/quality-checks/templates/playwright-js/src/checks/pageHealth.js +38 -0
  274. package/.claude/skills/quality-checks/templates/playwright-js/src/checks/performance.js +21 -0
  275. package/.claude/skills/quality-checks/templates/playwright-js/src/services/graphqlClient.js +28 -0
  276. package/.claude/skills/quality-checks/templates/playwright-js/tests/api/graphql.spec.js +23 -0
  277. package/.claude/skills/quality-checks/templates/playwright-js/tests/ui/quality.spec.js +50 -0
  278. package/.claude/skills/quality-checks/templates/playwright-ts/pageObjects/scannedPage.ts +20 -0
  279. package/.claude/skills/quality-checks/templates/playwright-ts/resources/desc/quality.desc.ts +59 -0
  280. package/.claude/skills/quality-checks/templates/playwright-ts/{src/data/quality.data.ts → resources/testData/qualityData.ts} +3 -2
  281. package/.claude/skills/quality-checks/templates/playwright-ts/tests/api/graphql.spec.ts +22 -0
  282. package/.claude/skills/quality-checks/templates/playwright-ts/tests/ui/quality.spec.ts +49 -0
  283. package/.claude/skills/requests/templates/README.md +6 -7
  284. package/.claude/skills/requests/templates/python-pytest/.env.example +4 -0
  285. package/.claude/skills/requests/templates/python-pytest/conftest.py +24 -9
  286. package/.claude/skills/requests/templates/python-pytest/pytest.ini +6 -3
  287. package/.claude/skills/requests/templates/python-pytest/requirements.txt +1 -0
  288. package/.claude/skills/requests/templates/python-pytest/resources/__init__.py +1 -0
  289. package/.claude/skills/requests/templates/python-pytest/resources/desc/__init__.py +1 -0
  290. package/.claude/skills/requests/templates/python-pytest/resources/desc/products_desc.py +27 -0
  291. package/.claude/skills/requests/templates/python-pytest/resources/test_data/__init__.py +1 -0
  292. package/.claude/skills/requests/templates/python-pytest/resources/test_data/test_data.py +27 -0
  293. package/.claude/skills/requests/templates/python-pytest/src/__init__.py +1 -0
  294. package/.claude/skills/requests/templates/python-pytest/src/config/__init__.py +1 -0
  295. package/.claude/skills/requests/templates/python-pytest/src/config/env.py +39 -0
  296. package/.claude/skills/requests/templates/python-pytest/src/config/flags.py +35 -0
  297. package/.claude/skills/requests/templates/python-pytest/src/config/load_env.py +16 -0
  298. package/.claude/skills/requests/templates/python-pytest/src/config/paths.py +16 -0
  299. package/.claude/skills/requests/templates/python-pytest/src/services/__init__.py +1 -0
  300. package/.claude/skills/requests/templates/python-pytest/{api/client.py → src/services/api_client.py} +19 -10
  301. package/.claude/skills/requests/templates/python-pytest/{api → src/services}/products_api.py +3 -9
  302. package/.claude/skills/requests/templates/python-pytest/tests/api/test_products.py +35 -0
  303. package/.claude/skills/requests/templates/python-pytest/tests/unit/test_utils.py +32 -0
  304. package/.claude/skills/requests/templates/python-pytest/utils/__init__.py +1 -0
  305. package/.claude/skills/requests/templates/python-pytest/utils/dates.py +23 -0
  306. package/.claude/skills/{selenium/templates/python-pytest/framework → requests/templates/python-pytest/utils}/errors.py +4 -3
  307. package/.claude/skills/requests/templates/python-pytest/utils/logger.py +40 -0
  308. package/.claude/skills/requests/templates/python-pytest/utils/random_data.py +35 -0
  309. package/.claude/skills/requests/templates/python-pytest/utils/redact.py +30 -0
  310. package/.claude/skills/requests/templates/python-pytest/utils/titles.py +53 -0
  311. package/.claude/skills/requirement-analysis/SKILL.md +1 -1
  312. package/.claude/skills/rest-assured/SKILL.md +1 -1
  313. package/.claude/skills/rest-assured/templates/README.md +6 -7
  314. package/.claude/skills/rest-assured/templates/ci/github-actions.yml +5 -2
  315. package/.claude/skills/rest-assured/templates/java-testng/.env.example +3 -0
  316. package/.claude/skills/rest-assured/templates/java-testng/pom.xml +7 -0
  317. package/.claude/skills/rest-assured/templates/java-testng/src/test/java/automation/{api/ApiConfig.java → config/Env.java} +35 -22
  318. package/.claude/skills/rest-assured/templates/java-testng/src/test/java/automation/config/Flags.java +17 -0
  319. package/.claude/skills/rest-assured/templates/java-testng/src/test/java/automation/config/Paths.java +14 -0
  320. package/.claude/skills/rest-assured/templates/java-testng/src/test/java/automation/desc/ProductsDesc.java +26 -0
  321. package/.claude/skills/rest-assured/templates/java-testng/src/test/java/automation/fixtures/BaseTest.java +29 -0
  322. package/.claude/skills/rest-assured/templates/java-testng/src/test/java/automation/services/ApiSpec.java +31 -0
  323. package/.claude/skills/rest-assured/templates/java-testng/src/test/java/automation/services/HealthApi.java +17 -0
  324. package/.claude/skills/rest-assured/templates/java-testng/src/test/java/automation/{api → services}/ProductsApi.java +19 -14
  325. package/.claude/skills/rest-assured/templates/java-testng/src/test/java/automation/{data → testData}/ProductBuilder.java +4 -8
  326. package/.claude/skills/rest-assured/templates/java-testng/src/test/java/automation/testData/TestData.java +64 -0
  327. package/.claude/skills/rest-assured/templates/java-testng/src/test/java/automation/tests/api/ProductsTest.java +49 -0
  328. package/.claude/skills/rest-assured/templates/java-testng/src/test/java/automation/tests/unit/UtilsTest.java +34 -0
  329. package/.claude/skills/{selenium/templates/java-testng/src/test/java/automation/framework → rest-assured/templates/java-testng/src/test/java/automation/utils}/AutomationError.java +4 -4
  330. package/.claude/skills/rest-assured/templates/java-testng/src/test/java/automation/utils/Case.java +20 -0
  331. package/.claude/skills/rest-assured/templates/java-testng/src/test/java/automation/utils/CaseTransformer.java +54 -0
  332. package/.claude/skills/rest-assured/templates/java-testng/src/test/java/automation/utils/Dates.java +42 -0
  333. package/.claude/skills/rest-assured/templates/java-testng/src/test/java/automation/utils/Log.java +45 -0
  334. package/.claude/skills/rest-assured/templates/java-testng/src/test/java/automation/utils/MissingSettingError.java +13 -0
  335. package/.claude/skills/rest-assured/templates/java-testng/src/test/java/automation/utils/RandomData.java +41 -0
  336. package/.claude/skills/rest-assured/templates/java-testng/src/test/java/automation/utils/Redact.java +33 -0
  337. package/.claude/skills/rest-assured/templates/java-testng/src/test/java/automation/utils/TestDescription.java +25 -0
  338. package/.claude/skills/rest-assured/templates/java-testng/src/test/resources/testData/testData.properties +14 -0
  339. package/.claude/skills/rest-assured/templates/java-testng/testng.xml +14 -0
  340. package/.claude/skills/selenium/SKILL.md +1 -1
  341. package/.claude/skills/selenium/templates/README.md +25 -13
  342. package/.claude/skills/selenium/templates/ci/github-actions-java.yml +5 -2
  343. package/.claude/skills/selenium/templates/csharp-nunit/.env.example +15 -0
  344. package/.claude/skills/selenium/templates/csharp-nunit/Automation.csproj +7 -0
  345. package/.claude/skills/selenium/templates/csharp-nunit/{Framework/Config.cs → Config/Env.cs} +33 -34
  346. package/.claude/skills/selenium/templates/csharp-nunit/Config/Flags.cs +39 -0
  347. package/.claude/skills/selenium/templates/csharp-nunit/Config/Paths.cs +31 -0
  348. package/.claude/skills/selenium/templates/csharp-nunit/{Framework → Driver}/DriverFactory.cs +16 -13
  349. package/.claude/skills/selenium/templates/csharp-nunit/Driver/DriverManager.cs +27 -0
  350. package/.claude/skills/selenium/templates/csharp-nunit/Fixtures/BaseTest.cs +56 -0
  351. package/.claude/skills/selenium/templates/csharp-nunit/{Pages → PageObjects}/BasePage.cs +40 -14
  352. package/.claude/skills/selenium/templates/csharp-nunit/PageObjects/HomePage.cs +21 -0
  353. package/.claude/skills/selenium/templates/csharp-nunit/PageObjects/LoginPage.cs +53 -0
  354. package/.claude/skills/selenium/templates/csharp-nunit/PageObjects/ShellPage.cs +22 -0
  355. package/.claude/skills/selenium/templates/csharp-nunit/Resources/Desc/SignInDesc.cs +23 -0
  356. package/.claude/skills/selenium/templates/csharp-nunit/Resources/TestData/TestData.cs +74 -0
  357. package/.claude/skills/selenium/templates/csharp-nunit/Resources/TestData/testData.json +14 -0
  358. package/.claude/skills/selenium/templates/csharp-nunit/Services/ApiClient.cs +71 -0
  359. package/.claude/skills/selenium/templates/csharp-nunit/Setup/AuthSetup.cs +104 -0
  360. package/.claude/skills/selenium/templates/csharp-nunit/Tests/Api/SessionTests.cs +23 -0
  361. package/.claude/skills/selenium/templates/csharp-nunit/Tests/Ui/SignInTests.cs +42 -0
  362. package/.claude/skills/selenium/templates/csharp-nunit/Tests/Unit/UtilsTests.cs +40 -0
  363. package/.claude/skills/selenium/templates/csharp-nunit/Utils/AutomationError.cs +15 -0
  364. package/.claude/skills/selenium/templates/csharp-nunit/Utils/Dates.cs +18 -0
  365. package/.claude/skills/selenium/templates/csharp-nunit/Utils/FormFill.cs +20 -0
  366. package/.claude/skills/selenium/templates/csharp-nunit/Utils/Log.cs +37 -0
  367. package/.claude/skills/selenium/templates/csharp-nunit/Utils/RandomData.cs +26 -0
  368. package/.claude/skills/selenium/templates/csharp-nunit/Utils/Redact.cs +22 -0
  369. package/.claude/skills/selenium/templates/csharp-nunit/Utils/TestDescription.cs +55 -0
  370. package/.claude/skills/selenium/templates/csharp-nunit/gitignore +6 -2
  371. package/.claude/skills/selenium/templates/java-testng/.env.example +12 -0
  372. package/.claude/skills/selenium/templates/java-testng/gitignore +5 -2
  373. package/.claude/skills/selenium/templates/java-testng/pom.xml +2 -0
  374. package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/{framework/Config.java → config/Env.java} +45 -55
  375. package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/config/Flags.java +50 -0
  376. package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/config/Paths.java +20 -0
  377. package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/desc/SignInDesc.java +30 -0
  378. package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/{framework → driver}/DriverFactory.java +15 -12
  379. package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/{framework → driver}/DriverManager.java +4 -7
  380. package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/fixtures/BaseTest.java +87 -0
  381. package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/{pages → pageObjects}/BasePage.java +38 -17
  382. package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/pageObjects/HomePage.java +32 -0
  383. package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/pageObjects/LoginPage.java +69 -0
  384. package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/pageObjects/ShellPage.java +34 -0
  385. package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/services/ApiClient.java +93 -0
  386. package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/setup/AuthSetup.java +125 -0
  387. package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/testData/TestData.java +88 -0
  388. package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/tests/api/SessionTest.java +23 -0
  389. package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/tests/ui/SignInTest.java +46 -0
  390. package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/tests/unit/UtilsTest.java +34 -0
  391. package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/utils/AutomationError.java +18 -0
  392. package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/utils/Case.java +20 -0
  393. package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/utils/CaseTransformer.java +54 -0
  394. package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/utils/Dates.java +42 -0
  395. package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/utils/FormFill.java +25 -0
  396. package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/utils/Log.java +45 -0
  397. package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/utils/MissingSettingError.java +13 -0
  398. package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/utils/RandomData.java +41 -0
  399. package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/utils/Redact.java +33 -0
  400. package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/utils/TestDescription.java +25 -0
  401. package/.claude/skills/selenium/templates/java-testng/src/test/resources/testData/testData.properties +11 -0
  402. package/.claude/skills/selenium/templates/java-testng/testng.xml +15 -5
  403. package/.claude/skills/selenium/templates/python-pytest/.env.example +12 -0
  404. package/.claude/skills/selenium/templates/python-pytest/conftest.py +63 -12
  405. package/.claude/skills/selenium/templates/python-pytest/gitignore +7 -2
  406. package/.claude/skills/selenium/templates/python-pytest/page_objects/__init__.py +1 -0
  407. package/.claude/skills/selenium/templates/python-pytest/{pages → page_objects}/base_page.py +17 -20
  408. package/.claude/skills/selenium/templates/python-pytest/page_objects/home_page.py +17 -0
  409. package/.claude/skills/selenium/templates/python-pytest/{pages → page_objects}/login_page.py +12 -14
  410. package/.claude/skills/selenium/templates/python-pytest/page_objects/shell_page.py +16 -0
  411. package/.claude/skills/selenium/templates/python-pytest/pytest.ini +6 -2
  412. package/.claude/skills/selenium/templates/python-pytest/requirements.txt +1 -0
  413. package/.claude/skills/selenium/templates/python-pytest/resources/__init__.py +1 -0
  414. package/.claude/skills/selenium/templates/python-pytest/resources/desc/__init__.py +1 -0
  415. package/.claude/skills/selenium/templates/python-pytest/resources/desc/sign_in_desc.py +27 -0
  416. package/.claude/skills/selenium/templates/python-pytest/resources/test_data/__init__.py +1 -0
  417. package/.claude/skills/selenium/templates/python-pytest/resources/test_data/test_data.py +25 -0
  418. package/.claude/skills/selenium/templates/python-pytest/setup/__init__.py +1 -0
  419. package/.claude/skills/selenium/templates/python-pytest/setup/auth.py +60 -0
  420. package/.claude/skills/selenium/templates/python-pytest/src/__init__.py +1 -0
  421. package/.claude/skills/selenium/templates/python-pytest/src/config/__init__.py +1 -0
  422. package/.claude/skills/selenium/templates/python-pytest/src/config/env.py +68 -0
  423. package/.claude/skills/selenium/templates/python-pytest/src/config/flags.py +40 -0
  424. package/.claude/skills/selenium/templates/python-pytest/src/config/load_env.py +16 -0
  425. package/.claude/skills/selenium/templates/python-pytest/src/config/paths.py +25 -0
  426. package/.claude/skills/selenium/templates/python-pytest/src/driver/__init__.py +1 -0
  427. package/.claude/skills/selenium/templates/python-pytest/{framework → src/driver}/driver_factory.py +11 -18
  428. package/.claude/skills/selenium/templates/python-pytest/{framework → src/driver}/driver_manager.py +3 -3
  429. package/.claude/skills/selenium/templates/python-pytest/src/services/__init__.py +1 -0
  430. package/.claude/skills/selenium/templates/python-pytest/src/services/api_client.py +89 -0
  431. package/.claude/skills/selenium/templates/python-pytest/tests/api/test_session.py +11 -0
  432. package/.claude/skills/selenium/templates/python-pytest/tests/ui/test_sign_in.py +34 -0
  433. package/.claude/skills/selenium/templates/python-pytest/tests/unit/test_utils.py +32 -0
  434. package/.claude/skills/selenium/templates/python-pytest/utils/__init__.py +1 -0
  435. package/.claude/skills/selenium/templates/python-pytest/utils/dates.py +23 -0
  436. package/.claude/skills/selenium/templates/python-pytest/utils/errors.py +28 -0
  437. package/.claude/skills/selenium/templates/python-pytest/utils/form_fill.py +29 -0
  438. package/.claude/skills/selenium/templates/python-pytest/utils/logger.py +40 -0
  439. package/.claude/skills/selenium/templates/python-pytest/utils/markers.py +6 -0
  440. package/.claude/skills/selenium/templates/python-pytest/utils/random_data.py +35 -0
  441. package/.claude/skills/selenium/templates/python-pytest/utils/redact.py +30 -0
  442. package/.claude/skills/selenium/templates/python-pytest/utils/titles.py +53 -0
  443. package/.claude/skills/self-healing/SKILL.md +1 -1
  444. package/.claude/skills/test-design/SKILL.md +1 -1
  445. package/.claude/skills/ui-observation/SKILL.md +7 -6
  446. package/.claude/skills/ui-observation/references/login-methods.md +1 -1
  447. package/.claude-plugin/plugin.json +1 -1
  448. package/.cursor/commands/orion.md +1 -1
  449. package/.gemini/commands/orion.toml +2 -2
  450. package/.github/prompts/orion.prompt.md +2 -2
  451. package/.windsurf/workflows/orion.md +2 -2
  452. package/AGENTS.md +1 -1
  453. package/README.md +23 -3
  454. package/assets/architecture.svg +104 -0
  455. package/hosts/gemini-extension/gemini-extension.json +1 -1
  456. package/package.json +2 -1
  457. package/.claude/skills/appium/templates/project-java/src/test/java/automation/data/Cases.java +0 -37
  458. package/.claude/skills/appium/templates/project-java/src/test/java/automation/data/SignInData.java +0 -25
  459. package/.claude/skills/appium/templates/project-java/src/test/java/automation/flows/SignInFlow.java +0 -34
  460. package/.claude/skills/appium/templates/project-java/src/test/java/automation/framework/Account.java +0 -19
  461. package/.claude/skills/appium/templates/project-java/src/test/java/automation/screens/HomeScreen.java +0 -36
  462. package/.claude/skills/appium/templates/project-java/src/test/java/automation/screens/LoginScreen.java +0 -57
  463. package/.claude/skills/appium/templates/project-java/src/test/java/automation/tests/BaseTest.java +0 -33
  464. package/.claude/skills/appium/templates/project-java/src/test/java/automation/tests/SmokeTest.java +0 -17
  465. package/.claude/skills/httpclient/templates/csharp-nunit/Api/ApiClient.cs +0 -61
  466. package/.claude/skills/httpclient/templates/csharp-nunit/Api/ApiConfig.cs +0 -61
  467. package/.claude/skills/httpclient/templates/csharp-nunit/Api/ApiError.cs +0 -17
  468. package/.claude/skills/httpclient/templates/csharp-nunit/Data/Cases.cs +0 -41
  469. package/.claude/skills/httpclient/templates/csharp-nunit/Data/HealthData.cs +0 -11
  470. package/.claude/skills/httpclient/templates/csharp-nunit/Data/ProductBuilder.cs +0 -16
  471. package/.claude/skills/httpclient/templates/csharp-nunit/Data/ProductsData.cs +0 -17
  472. package/.claude/skills/httpclient/templates/csharp-nunit/Tests/HealthTests.cs +0 -18
  473. package/.claude/skills/httpclient/templates/csharp-nunit/Tests/ProductsTests.cs +0 -48
  474. package/.claude/skills/k6/templates/project/data/builders.js +0 -8
  475. package/.claude/skills/karate/templates/java-junit5/src/test/java/api/products.feature +0 -33
  476. package/.claude/skills/pact/templates/project/test/contract/products.contract.test.js +0 -45
  477. package/.claude/skills/playwright/templates/dotnet/Components/AccountMenu.cs +0 -23
  478. package/.claude/skills/playwright/templates/dotnet/Data/Cases.cs +0 -43
  479. package/.claude/skills/playwright/templates/dotnet/Data/SignInData.cs +0 -24
  480. package/.claude/skills/playwright/templates/dotnet/Flows/SignInFlow.cs +0 -51
  481. package/.claude/skills/playwright/templates/dotnet/Framework/AutomationError.cs +0 -17
  482. package/.claude/skills/playwright/templates/dotnet/Framework/Config.cs +0 -91
  483. package/.claude/skills/playwright/templates/dotnet/Pages/BasePage.cs +0 -57
  484. package/.claude/skills/playwright/templates/dotnet/Pages/HomePage.cs +0 -26
  485. package/.claude/skills/playwright/templates/dotnet/Pages/LoginPage.cs +0 -45
  486. package/.claude/skills/playwright/templates/dotnet/Tests/SmokeTests.cs +0 -47
  487. package/.claude/skills/playwright/templates/javascript/src/components/account-menu.component.js +0 -30
  488. package/.claude/skills/playwright/templates/javascript/src/config.js +0 -53
  489. package/.claude/skills/playwright/templates/javascript/src/data/accounts.js +0 -23
  490. package/.claude/skills/playwright/templates/javascript/src/data/cases.js +0 -49
  491. package/.claude/skills/playwright/templates/javascript/src/data/sign-in.data.js +0 -12
  492. package/.claude/skills/playwright/templates/javascript/src/flows/sign-in.flow.js +0 -53
  493. package/.claude/skills/playwright/templates/javascript/src/pages/base.page.js +0 -59
  494. package/.claude/skills/playwright/templates/javascript/src/pages/home.page.js +0 -31
  495. package/.claude/skills/playwright/templates/javascript/src/pages/login.page.js +0 -56
  496. package/.claude/skills/playwright/templates/javascript/tests/fixtures.js +0 -20
  497. package/.claude/skills/playwright/templates/javascript/tests/smoke.spec.js +0 -22
  498. package/.claude/skills/playwright/templates/project/src/components/account-menu.component.ts +0 -27
  499. package/.claude/skills/playwright/templates/project/src/config.ts +0 -56
  500. package/.claude/skills/playwright/templates/project/src/data/accounts.ts +0 -21
  501. package/.claude/skills/playwright/templates/project/src/data/cases.ts +0 -55
  502. package/.claude/skills/playwright/templates/project/src/data/sign-in.data.ts +0 -10
  503. package/.claude/skills/playwright/templates/project/src/flows/sign-in.flow.ts +0 -51
  504. package/.claude/skills/playwright/templates/project/src/pages/base.page.ts +0 -52
  505. package/.claude/skills/playwright/templates/project/src/pages/home.page.ts +0 -30
  506. package/.claude/skills/playwright/templates/project/src/pages/login.page.ts +0 -53
  507. package/.claude/skills/playwright/templates/project/tests/fixtures.ts +0 -25
  508. package/.claude/skills/playwright/templates/project/tests/smoke.spec.ts +0 -22
  509. package/.claude/skills/playwright/templates/python/components/__init__.py +0 -1
  510. package/.claude/skills/playwright/templates/python/components/account_menu.py +0 -22
  511. package/.claude/skills/playwright/templates/python/data/accounts.py +0 -14
  512. package/.claude/skills/playwright/templates/python/data/cases.py +0 -33
  513. package/.claude/skills/playwright/templates/python/data/sign_in_data.py +0 -9
  514. package/.claude/skills/playwright/templates/python/flows/sign_in.py +0 -63
  515. package/.claude/skills/playwright/templates/python/pages/base_page.py +0 -51
  516. package/.claude/skills/playwright/templates/python/pages/home_page.py +0 -21
  517. package/.claude/skills/playwright/templates/python/pages/login_page.py +0 -40
  518. package/.claude/skills/playwright/templates/python/tests/test_smoke.py +0 -26
  519. package/.claude/skills/quality-checks/templates/playwright-ts/src/pages/scanned.page.ts +0 -16
  520. package/.claude/skills/quality-checks/templates/playwright-ts/tests/quality.spec.ts +0 -58
  521. package/.claude/skills/requests/templates/python-pytest/api/config.py +0 -43
  522. package/.claude/skills/requests/templates/python-pytest/api/errors.py +0 -15
  523. package/.claude/skills/requests/templates/python-pytest/data/builders.py +0 -16
  524. package/.claude/skills/requests/templates/python-pytest/data/cases.py +0 -30
  525. package/.claude/skills/requests/templates/python-pytest/data/health_data.py +0 -6
  526. package/.claude/skills/requests/templates/python-pytest/data/products_data.py +0 -10
  527. package/.claude/skills/requests/templates/python-pytest/tests/test_health.py +0 -12
  528. package/.claude/skills/requests/templates/python-pytest/tests/test_products.py +0 -25
  529. package/.claude/skills/rest-assured/templates/java-testng/src/test/java/automation/api/ApiError.java +0 -18
  530. package/.claude/skills/rest-assured/templates/java-testng/src/test/java/automation/api/ApiSpec.java +0 -29
  531. package/.claude/skills/rest-assured/templates/java-testng/src/test/java/automation/api/HealthApi.java +0 -21
  532. package/.claude/skills/rest-assured/templates/java-testng/src/test/java/automation/data/Cases.java +0 -45
  533. package/.claude/skills/rest-assured/templates/java-testng/src/test/java/automation/data/HealthData.java +0 -12
  534. package/.claude/skills/rest-assured/templates/java-testng/src/test/java/automation/data/ProductsData.java +0 -16
  535. package/.claude/skills/rest-assured/templates/java-testng/src/test/java/automation/tests/HealthTest.java +0 -15
  536. package/.claude/skills/rest-assured/templates/java-testng/src/test/java/automation/tests/ProductsTest.java +0 -37
  537. package/.claude/skills/selenium/templates/csharp-nunit/Components/AccountMenu.cs +0 -26
  538. package/.claude/skills/selenium/templates/csharp-nunit/Data/Cases.cs +0 -43
  539. package/.claude/skills/selenium/templates/csharp-nunit/Data/SignInData.cs +0 -24
  540. package/.claude/skills/selenium/templates/csharp-nunit/Flows/SignInFlow.cs +0 -51
  541. package/.claude/skills/selenium/templates/csharp-nunit/Framework/AutomationError.cs +0 -17
  542. package/.claude/skills/selenium/templates/csharp-nunit/Framework/DriverManager.cs +0 -26
  543. package/.claude/skills/selenium/templates/csharp-nunit/Pages/HomePage.cs +0 -28
  544. package/.claude/skills/selenium/templates/csharp-nunit/Pages/LoginPage.cs +0 -58
  545. package/.claude/skills/selenium/templates/csharp-nunit/Tests/BaseTest.cs +0 -22
  546. package/.claude/skills/selenium/templates/csharp-nunit/Tests/SmokeTests.cs +0 -37
  547. package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/components/AccountMenu.java +0 -37
  548. package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/data/Cases.java +0 -48
  549. package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/data/SignInData.java +0 -36
  550. package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/flows/SignInFlow.java +0 -60
  551. package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/framework/Account.java +0 -19
  552. package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/pages/HomePage.java +0 -45
  553. package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/pages/LoginPage.java +0 -78
  554. package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/tests/BaseTest.java +0 -33
  555. package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/tests/SmokeTest.java +0 -33
  556. package/.claude/skills/selenium/templates/python-pytest/components/__init__.py +0 -1
  557. package/.claude/skills/selenium/templates/python-pytest/components/account_menu.py +0 -19
  558. package/.claude/skills/selenium/templates/python-pytest/data/accounts.py +0 -14
  559. package/.claude/skills/selenium/templates/python-pytest/data/cases.py +0 -33
  560. package/.claude/skills/selenium/templates/python-pytest/data/sign_in_data.py +0 -9
  561. package/.claude/skills/selenium/templates/python-pytest/flows/__init__.py +0 -0
  562. package/.claude/skills/selenium/templates/python-pytest/flows/sign_in.py +0 -61
  563. package/.claude/skills/selenium/templates/python-pytest/framework/__init__.py +0 -0
  564. package/.claude/skills/selenium/templates/python-pytest/framework/config.py +0 -90
  565. package/.claude/skills/selenium/templates/python-pytest/pages/__init__.py +0 -0
  566. package/.claude/skills/selenium/templates/python-pytest/pages/home_page.py +0 -23
  567. package/.claude/skills/selenium/templates/python-pytest/tests/test_smoke.py +0 -25
  568. /package/.claude/skills/karate/templates/java-junit5/src/test/java/{api → tests/api}/delete-product.feature +0 -0
  569. /package/.claude/skills/playwright/templates/{python/data/__init__.py → dotnet/auth/.gitkeep} +0 -0
  570. /package/.claude/skills/playwright/templates/{python/flows/__init__.py → javascript/auth/.gitkeep} +0 -0
  571. /package/.claude/skills/playwright/templates/{python/framework/__init__.py → project/auth/.gitkeep} +0 -0
  572. /package/.claude/skills/playwright/templates/project/{src → utils}/errors.ts +0 -0
  573. /package/.claude/skills/playwright/templates/python/{pages/__init__.py → auth/.gitkeep} +0 -0
  574. /package/.claude/skills/quality-checks/templates/playwright-ts/src/checks/{page-health.ts → pageHealth.ts} +0 -0
  575. /package/.claude/skills/quality-checks/templates/playwright-ts/src/{api/graphql.ts → services/graphqlClient.ts} +0 -0
  576. /package/.claude/skills/{requests/templates/python-pytest/api/__init__.py → selenium/templates/csharp-nunit/auth/.gitkeep} +0 -0
  577. /package/.claude/skills/{requests/templates/python-pytest/data/__init__.py → selenium/templates/java-testng/auth/.gitkeep} +0 -0
  578. /package/.claude/skills/selenium/templates/python-pytest/{data/__init__.py → auth/.gitkeep} +0 -0
@@ -0,0 +1,34 @@
1
+ # Assess and fix an existing suite
2
+
3
+ Two modes for a suite Orion didn't write. **assess** reports what in the suite breaks the review rules and stops; it changes nothing. **fix** changes only the findings the user ticked, one batch at a time, and keeps a batch only if the suite still tests at least what it tested before. Read this file only in these two modes. In every other mode the default rules hold: existing code the story didn't touch is never changed (AGENTS rule 7).
4
+
5
+ ## assess (`/orion assess [folder]` · "assess / review my framework", "what's wrong with our tests")
6
+ Agents, in order; Gate numbers as in the run file. **First reply: only the baseline question (H6),** naming the command and the base URL read from the suite's config (a quick read, before any delegation), and stop. After the answer, run every step below in one go, so the user gets one complete assessment with the baseline in it; if the answer is no, the same steps without step 2.
7
+ 1. **Codebase analysis (Gate 3).** codebase-analyst, brief `mode: assess`, with its three scripts (Claude Code):
8
+ - `node .claude/skills/orion/scripts/suite_check.mjs --existing <folder> --json`: framework, UI or API, tests, page objects, links, and the rules a script can see (U1, U2, U3, U7, P1, P2, P5, P6, P8, P17) with file:line, secrets masked;
9
+ - `node .claude/skills/orion/scripts/reuse_check.mjs <folder> --json`: repeated or unused code (M1, M4, U9);
10
+ - `node .claude/skills/orion/scripts/graph.mjs build --suite <folder>`: the links between tests, page objects and any cases.
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.
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
+ 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.
16
+
17
+ ## fix (`/orion fix A-<id>` · "fix F-2 and F-5")
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.
19
+ 2. **One question (H14), recorded verbatim.** Show the plan's items (id · rule · file:line · fix · needs) and ask which to fix. The user's reply ticks them (`fix_plan.mjs tick <plan> F-1 F-4 …`). In the same question: H8 for the ticked items marked H8 (each named), the variable name for a secret item, and H3 to commit locally on the fix branch. Unticked items are never touched; nothing in the user's own branch changes.
20
+ 3. **Branch.** A local branch `orion/fix-A-<id>` from the user's current commit, in a separate work copy (`work-branch.md`). Nothing is pushed (a push is H3 again, asked at the end).
21
+ 4. **Per batch** (`fix_plan.mjs next <plan>` gives the batch; mark it `applied`, then `verified`, `reverted` or `skipped` with `fix_plan.mjs set`):
22
+ 1. implementer, brief `mode: fix`, the batch's ticked items only, the files in their `changes:` lists, and "change nothing else" (a fix that needs another file stops and says which; the orchestrator asks the user before adding it); it fixes, compiles, and runs `reuse_check.mjs --changed <batch start sha>`. One local commit per batch.
23
+ 2. reviewer, brief `mode: fix`: the diff touches only that batch's files; each item is fixed as proposed; no new finding of a U rule.
24
+ 3. executor: the same baseline command, once, results file for the batch.
25
+ 4. `node .claude/skills/orion/scripts/parity_check.mjs --before-src <work copy at the batch start> --after-src <work copy> --before <baseline results> --after <batch results> [--allow-assertion-change <test> for each H8 the user gave]`.
26
+ 5. Parity holds → `verified`. Parity broken, the review blocks twice, or the run fails where the baseline passed → `git revert` the batch's commit on the fix branch, check `git diff <batch start sha>` is empty, mark `reverted` with the reason. **Stop after two reverted batches** and report.
27
+ 5. **Resume.** A stop, a usage limit or a new chat continues with `/orion fix A-<id> resume`: `fix_plan.mjs next` gives the first batch that isn't verified, reverted or skipped; an `applied` batch is checked again from step 4.2 (its commit is on the branch).
28
+ 6. **Report.** A before/after table (findings fixed, reverted, left; test counts and results before and after; parity per batch), the branch name, and the next step (push and PR are H3 and H4, asked separately). Rebuild the graph so fixed findings drop off.
29
+
30
+ ## Rules for both modes
31
+ - The fix for a finding stays inside the finding: no renames, moves or reformatting the user didn't tick. A file a batch doesn't name is never changed.
32
+ - A secret found in code (U2) is reported masked, in every mode. The fix moves it to the project's `.env` or CI secret under the variable name the user gives; the value itself is never written anywhere else, and the user is told to rotate it.
33
+ - Moving an assertion (out of a page object into the test, P1) keeps what it checks: no H8. Changing an expected value, a matcher or how strong an assertion is needs H8 for that test, named.
34
+ - Single-agent hosts (Cursor, Copilot): the same steps in one chat, each as its own step with its RESULT recorded; the scripts run where a shell exists, else `scripts not run` and the parity check is done by comparing test lists and assertions by hand, said so in the report.
@@ -33,7 +33,7 @@ API support by language and style (REST, GraphQL, schema, what is on request): `
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)
36
- Accessibility (axe-core, WCAG A/AA), console errors and broken links, a page-load budget, visual comparison against an approved screenshot, GraphQL calls: [quality-checks](../../quality-checks/SKILL.md), Playwright + TypeScript only, measured 2026-10-22 on a fixture (no agent run yet). It asks how strict to be and shows the screenshot before any baseline is saved. Not offered yet: contract testing (Pact), API fuzzing, gRPC, Lighthouse scores, load testing.
36
+ Accessibility (axe-core, WCAG A/AA), console errors and broken links, a page-load budget, visual comparison against an approved screenshot, GraphQL calls: [quality-checks](../../quality-checks/SKILL.md), Playwright (JavaScript or TypeScript) only, measured 2026-10-22 and 2026-11-12 on a fixture (no agent run yet). It asks how strict to be and shows the screenshot before any baseline is saved. Not offered yet: contract testing (Pact), API fuzzing, gRPC, Lighthouse scores, load testing.
37
37
 
38
38
  ## Running and healing
39
39
  - Where: `local` / `container` (H6) or `ci` (work branch pushed under H3, workflow on the allowlist, H6). Filters that match nothing must fail (Surefire `-Dtest`, not `-Dgroups`; `dotnet test` exits 0 on no match: check counts).
@@ -25,6 +25,7 @@ Name only the tools and languages that have an adapter whose tools ran here ([ca
25
25
  Two checkpoints, nothing more: the setup card (all questions at once, defaults in bold) and the test-case table. No code before the user has answered both.
26
26
 
27
27
  1. **First reply to a request to write, extend or design tests: the [setup card](setup-card.md), word for word, then wait.** Other modes (`doctor`, `report`, `review`, `triage`, `run`, `analyze`, a one-specialist task) get no card. Replace only its `<…>` parts; never drop, merge, reorder or reword a line, and never answer a question for the user. Nothing is explored, installed or written before the reply.
28
+ 1a. **The next story in the same chat gets no greeting and no full card.** Once this chat has had a card answered (the answers are in `decisions.md` and the chat), a new story or request ("now automate the checkout story", a second issue key) reuses those answers: reply with one line, "Same setup as before: <tool · language · test project · site · account>. Say go, or change a line.", then the steps as usual. The full card comes back only for a different site or test project, or when the user asks for it. A greeting card is for a greeting only, never as a reply to a request.
28
29
  2. **"go", "yes", "ok" or "looks good" in reply to the card confirm exactly what the card lists** (every bold default on its 8 lines). A change ("use Java", "add it to this repo") updates the card; show only the changed lines and wait again. The card covers exploring the URL, installing the runner in the test project and running the new tests here; it never covers commit, push, PR, production, trackers or installs outside the test project (asked when they come up, AGENTS rule 2).
29
30
  3. **Second checkpoint: the test cases.** After exploring, show the test-case table (one line per case: ID · What it checks · Type (positive, negative, boundary, edge) · Priority (high, medium, low) · Expected result), say in one line where the cases came from (your request, the site, the coverage checklist, your imported cases) and anything the site changed from the plan, and ask "Shall I write these? Say go, or e.g. \"add: locked-out user\", \"drop TS-4\"." An edit updates the table and asks again. Write code only after the user's reply. A design-only request stops here for acceptance.
30
31
  4. **Read the sentence the plain way.** "Login and add to cart" means: sign in the way the site signs a shopper in, add the first in-stock product at quantity 1, the cart shows it; checkout is in scope only when the user names it (then: up to the order review page, no real order without a test payment the user confirms). If the live site contradicts a reading, say what you saw in one line on the test-case checkpoint.
@@ -33,7 +34,7 @@ Two checkpoints, nothing more: the setup card (all questions at once, defaults i
33
34
  - 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).
34
35
  - 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).
35
36
  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
- 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 `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.
37
+ 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.
37
38
  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).
38
39
  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.
39
40
  9. **Delivery is files in the workspace.** A zip, a branch and PR, code in the chat, or test cases as CSV, Excel, Gherkin or a tool import file only when the user asks ([delivery-formats.md](delivery-formats.md)).
@@ -41,12 +42,12 @@ Two checkpoints, nothing more: the setup card (all questions at once, defaults i
41
42
  ## What the user sees
42
43
  - 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.
43
44
  - **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.
44
- - **The result is one short message: at most 8 lines and about 120 words before "Accept?"**, in this order:
45
- 1. What was built, where, and how it ran, with the fail check: "10 tests in `sut/<app>/tests`. `npx playwright test` passed 3 times (30 of 30); a wrong expected value made TS-3 fail on its check."
46
- 2. Login: automated and how, or why not, in one line.
47
- 3. Coverage: each acceptance criterion with its test ids, or the reason one has none, in one line.
48
- 4. At most two lines on what changes the user's next step: a defect found, a test not run, a check skipped or only reported (e.g. "the fail check comes from the writing run; its output wasn't saved"), a risk to their account or data.
49
- 5. "Details: `<report path inside the workspace>`".
45
+ - **The result is one short message: at most 8 lines and about 120 words before "Accept?"**, the report's top in chat form, in this order:
46
+ 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."
47
+ 2. "Login: " automated and how, or why not.
48
+ 3. "Coverage: " 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)."
49
+ 4. At most two lines, each starting "⚠️ ", 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. None → no line.
50
+ 5. "Report: `<report path inside the workspace>`".
50
51
  Then "Accept? (yes / changes)" 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.
51
52
  - **The report file holds the rest, not the chat:** review findings and their fixes, evidence-check rounds, retries, machine and browser notes, environment workarounds, log locations. Never show a path outside the workspace (a host's temporary folder).
52
53
  - A whole run is about 40 lines of chat text, not counting code and the test-case table. `details` shows the board, gates, decisions and metrics; `details off` returns to short output.
@@ -58,5 +59,5 @@ Two checkpoints, nothing more: the setup card (all questions at once, defaults i
58
59
  | 1 Start | — | the setup card; wait for go |
59
60
  | 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 …" |
60
61
  | 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) |
61
- | 4 Build | 5, 6 | "5 tests in sut/coach/tests. `npx playwright test` passed 3 times; a wrong quantity failed on that assertion." |
62
+ | 4 Build | 5, 6 | "5 tests in sut/coach/tests. `npm test` passed 3 times; a wrong quantity failed on that assertion." |
62
63
  | 5 Deliver | 7, 8 | the folder, the tests, the results, the one-line login and coverage statements, "Accept? (yes / changes)" and a "What next" line |
@@ -81,7 +81,7 @@ wb.save(dst)
81
81
  | Zip | after the checks, the implementer packs the project with the script below into `<project>.zip` next to the project folder, or at the top of its worktree when the worktree is the project (the script skips `.zip` files, so it never packs itself), and returns its absolute path; a zip is never part of a commit | list it (`python -m zipfile -l <zip>`): no `node_modules`, `.env`, `.ui-map/`, `.auth/`, reports or build output; the project's lockfile and `.env.example` are in |
82
82
  | Branch and pull request | H3 push, H4 PR (`work-branch.md`) | as for every run |
83
83
  | Code in the chat | every file in full, path then one code block (`automation-implementation` step 0) | labelled `not run` unless it ran |
84
- Language and pattern are the defaults (Playwright + TypeScript, page objects) unless the user named others; a BDD format (Cucumber, SpecFlow/Reqnroll, behave) has no adapter yet → NEEDS_ADAPTER (H12). Copilot Studio: no zip (no file system); code in the chat.
84
+ Language and pattern are the defaults (Playwright + JavaScript, page objects on the suite architecture) unless the user named others; a BDD format (Cucumber, SpecFlow/Reqnroll, behave) has no adapter yet → NEEDS_ADAPTER (H12). Copilot Studio: no zip (no file system); code in the chat.
85
85
 
86
86
  Pack (standard-library Python, works on Windows, macOS and Linux; `python -m zipfile -c` was rejected because it flattens nested file paths):
87
87
  ```python
@@ -5,10 +5,12 @@ A run does only what the user asked for and stops at that mode's stop point. It
5
5
  | Mode | Start (command or plain words) | Agents, in order | Gates | Stops when | Approvals that can come up | Writes |
6
6
  |---|---|---|---|---|---|---|
7
7
  | **full** (default) | `/orion <story>` · "automate this story" | requirement-analyst → environment-discovery ∥ codebase-analyst → automation-strategist → implementer → reviewer → executor (+ failure-analyst) → evidence-validator → you (report) → test-reporter only if you ask to share | 1–8 | you accept the report (H13), or decline it | as they arise, except that exploring the test URL and running the new tests on this machine are part of the request; running the rest of the suite or CI is H6 | the existing suite, extended in place on a local work branch (`work-branch.md`); PR only with H4 |
8
- | **build** | `/orion build <story>` · "write the tests / give me the script", with a test URL; the workspace has no suite for this app (or it is the agent install) | requirement-analyst → environment-discovery (opens the URL first) → automation-strategist (test cases from the sentence and the live site; default stack Playwright + TypeScript unless named) → implementer (starter template + UI map, in `sut/<app>/`) → reviewer (one round) → executor (3 runs on this machine) → you (deliver) | 1, 2, 4, 5, 6, 7, 8; 3 `greenfield: <template>` | the suite in `sut/<app>/` passes 3 runs (or is delivered with its failures and known issues), and you accept it or ask for changes | the setup card (go / change) before anything starts, and the test-case table (go / change) before code; the confirmed card covers exploring the URL, installing the runner and browser in `sut/<app>/`, and running the new tests here. Asked: H5 production, H3/H4 git, H8 an expected value, H10 installs outside `sut/<app>/` | `sut/<app>/` only (`work-branch.md`); a zip, PR, chat code or test-case files only when asked (`delivery-formats.md`); never a commit or push without H3 |
8
+ | **build** | `/orion build <story>` · "write the tests / give me the script", with a test URL; the workspace has no suite for this app (or it is the agent install) | requirement-analyst → environment-discovery (opens the URL first) → automation-strategist (test cases from the sentence and the live site; default stack Playwright + JavaScript unless named) → implementer (starter template + UI map, in `sut/<app>/`) → reviewer (one round) → executor (3 runs on this machine) → you (deliver) | 1, 2, 4, 5, 6, 7, 8; 3 `greenfield: <template>` | the suite in `sut/<app>/` passes 3 runs (or is delivered with its failures and known issues), and you accept it or ask for changes | the setup card (go / change) before anything starts, and the test-case table (go / change) before code; the confirmed card covers exploring the URL, installing the runner and browser in `sut/<app>/`, and running the new tests here. Asked: H5 production, H3/H4 git, H8 an expected value, H10 installs outside `sut/<app>/` | `sut/<app>/` only (`work-branch.md`); a zip, PR, chat code or test-case files only when asked (`delivery-formats.md`); never a commit or push without H3 |
9
9
  | **analyze** | `/orion analyze <repo or folder>` · "analyse / what's the stack of …" | environment-discovery ∥ codebase-analyst → evidence-validator | 2, 3, 7; others `n/a — analyze` | the analysis report is shown | none (read-only); H11 if it would need a database | none (facts may be written to `project-context/` on hosts with files) |
10
10
  | **design** | `/orion design <story>` · "only the test cases" | requirement-analyst → environment-discovery ∥ codebase-analyst → automation-strategist → evidence-validator | 1–4, 7, 8; 5, 6 `n/a — design` | you accept the test design (H13); then, unless a format was named, one line offers the test cases as a file (`delivery-formats.md`) | H1, H2; exploring the test URL the user gave is part of the request (no URL → the map is `not observed` and the design says its cases are `not checked against the app`) | the test-case files you ask for (CSV, Excel, Gherkin, Markdown, a TestRail / Xray / Zephyr Scale / Azure Test Plans import file) under `project-context/test-designs/<story>/`, `.xlsx` by an implementer render task (no test code); writing into the tool itself only on request (H9, test-reporter) |
11
11
  | **review** | `/orion review <PR, branch, diff or files>` · "review these tests" | reviewer | 5 (review part only) | the findings are shown | none | none; fixes only if you then start a full run |
12
+ | **assess** | `/orion assess [folder]` · "assess / review my framework", "what's wrong with our tests" | codebase-analyst (with `suite_check --existing`, `reuse_check`, `graph`) → executor baseline run (+ failure-analyst on failures) → reviewer (`mode: assess`, whole suite) → evidence-validator ([assess-fix.md](assess-fix.md)) | 3, 6, 5 (review part), 7 | the assessment is saved and shown | H6 for the baseline run; H5 never (no production) | `project-context/assessments/` only |
13
+ | **fix** | `/orion fix A-<id> [resume]` · "fix F-2 and F-5" | per ticked batch: implementer (`mode: fix`) → reviewer → executor → `parity_check` ([assess-fix.md](assess-fix.md)) | 5, 6, 7 per batch | every ticked batch is verified, reverted or skipped, and the before/after report is shown | **H14** (which items), H8 for items that change what a test checks, H3 local commits on `orion/fix-A-<id>`; push and PR (H3, H4) asked separately | the ticked items' files, on the fix branch only |
12
14
  | **triage** | `/orion triage <log, run or failing test>` · "why did this fail" | failure-analyst (+ evidence-validator) | 6 (analysis part), 7 | the classification, evidence and any defect draft or heal proposal are shown | H9 to file a defect; a heal is applied only in a full run (H7, H8 for expected values) | none |
13
15
  | **run** | `/orion run <suite, tag or files>` · "run the smoke tests" | codebase-analyst first if the run command isn't known yet → executor (+ failure-analyst on failures) → evidence-validator | 3 (only if needed), 6, 7 | the run record and classifications are shown | H6 always; H5 for production; H10 if dependencies are missing | none (test reports only) |
14
16
  | **report** | `/orion report <scope>` | test-reporter (`aggregate`) | — | the report is shown | H9 only if you ask to publish it | none unless published |
@@ -14,7 +14,12 @@
14
14
  | retry-policy.md | user (defaults in task-brief.md) |
15
15
  | ui-maps/<story>.md | orchestrator, from the UI map in environment-discovery's Gate 2 RESULT; rows appended from implementer (`top-up`) and failure-analyst (`heal`). Page structure, locators and test-environment text only; never secret values. Screenshots stay in `.ui-map/`, not here |
16
16
  | test-designs/<story>/ | orchestrator: the accepted test cases in the formats the user asked for (CSV, Gherkin, Markdown, tool import CSV; `delivery-formats.md`); `.xlsx` from an implementer render task. Synthetic data only |
17
- | test-case-map.md | orchestrator, from test-reporter's RESULT (TS-n ↔ external key ↔ test file:line) |
17
+ | test-designs/<story>/design.md | orchestrator, at Gate 4 on every run (template `test-design.md`): intent, the accepted cases with AC(s), layer, screens, desc entry, status |
18
+ | runs/<run id>.report.md | orchestrator, with the `documentation` skill after Gate 7 (template `report.md`): the verdict, facts, coverage, what needs attention, what was added, how to run it; engineer details folded |
19
+ | test-case-map.md | orchestrator, from the implementer's and test-reporter's RESULTs (template): `<story>:TS-n` ↔ AC(s) ↔ desc entry ↔ test file:line ↔ external key ↔ last result |
20
+ | results/<run id>-<n>.json | executor, by running `results_parse.mjs` on the runner's reports after each counted run (the one file a specialist writes here: a script's output, not a judgement). Per test: id, file, title, status, duration, attempts, failure signature; secrets masked |
21
+ | defects.md | orchestrator: one line per defect draft the user accepted (template), with its test, results file and failure signature |
22
+ | ui-maps/screens/<screen key>.md | orchestrator, from environment-discovery: a screen several stories use, kept once and referred to by story maps |
18
23
 
19
24
  Fact line: `- <fact> — <tag> — <evidence location>` with tag one of confirmed, inferred, unknown, needs-user.
20
25
  Newest confirmed evidence wins; the old fact moves to `## History` with the date. Secrets are never written, not even masked.
@@ -8,7 +8,7 @@ In a Claude Code **plugin** install these scripts aren't in the repo: run them f
8
8
 
9
9
  **The setup message** (after the card, its own message; a separate approval, H10: installs outside the test project and the AI tool's settings; D-070). The card is only about the work. Once the user has answered it (and after writing a pasted account), check what **the chosen tool and this run** need, then send one message listing only what's missing, with nothing else in it, and wait. Checks, all presence-only:
10
10
  - **Browser for exploring** (a web page to explore): `node .claude/skills/orion/scripts/browser_check.mjs --host <host> <URL>` (reads the host's MCP settings, never `.env`).
11
- - **Test project packages**: the chosen tool's project in `sut/<site>/` (or the suite being extended) and its packages installed (`node_modules`, a restored Maven/Gradle/NuGet/pip environment); a new project needs its starter and `npm install` (or the tool's equivalent).
11
+ - **Test project packages**: the chosen tool's project in `sut/<site>/`, or **for an existing suite the suite itself** (never a new `sut/<site>/` beside it), and its packages installed (`node_modules`, a restored Maven/Gradle/NuGet/pip environment); a new project needs its starter and `npm install` (or the tool's equivalent).
12
12
  - **A browser to run tests**: Chrome or Edge installed (the check's `browser:` line); otherwise Playwright's own browser, a one-time download to the user's folder.
13
13
  - **The tool's runtime**: `node -v`, `java -version`, `mvn -v`, `dotnet --version`, `python --version` as the tool needs. A missing runtime is installed by the user, not by you: list it with its download page.
14
14
 
@@ -21,7 +21,7 @@ Nothing missing: no message; carry on. Otherwise:
21
21
  Reply **yes** to set up all, **yes, not 1** to skip one, or **no**."
22
22
  Number only the items that are missing, in this order. Item 1 is offered only when the check printed `setup in the chat`; when it didn't, item 1 is "**Browser for exploring:** <its `ready: no` reason>; to fix it: <its Fix>", for the user to do. On Cursor and VS Code, after item 1 is set up or when the check says ready, the same message also asks, as its last line before the reply line: "And please confirm `browser_run_code_unsafe` and the other unused browser tools are switched off (<where>); it runs any code on this machine." (once per workspace, recorded). Windsurf and other tools whose settings live elsewhere (exit 3): "**Browser for exploring:** I can't see your tool's MCP settings; make sure its `playwright` entry points at `sut/<site>/.env`."
23
23
 
24
- Nothing else goes in this message: an unanswered card line (for example line 7, the login, which has no default) is asked in its own message **after** the setup is done, never alongside it. Only a yes typed after this message counts; the card's "go" never approves it, and it's never bundled with the card or another question. Record message and reply in `decisions.md`. On yes, do the items approved, in order: item 1 with `node .claude/skills/orion/scripts/browser_setup.mjs <URL>` from the workspace root (never edit the file yourself; if it exits 1 or 2, give its warning in one line and use the test project's Playwright); items 2 and 3 with the install commands (the host shows its own prompts). Then one line on what was set up and what needs a reload ("Set up: the browser for saucedemo (starts after you reload Cursor), Playwright in `sut/saucedemo/`. Carrying on.") and carry on. A skipped item 1 means the test project's Playwright for this run. **no**, or a skipped item the run can't do without: say in one line what that stops (for example "Without the test project I can't explore or run tests: I'll design the test cases from your description and mark the screens not observed") and carry on with what's possible; don't ask again in this run. "done" or "reloaded" means: run the checks again, then continue.
24
+ Nothing else goes in this message: an unanswered card line (for example line 7, the login, which has no default) is asked in its own message **after** the setup is done, never alongside it. Only a yes typed after this message counts; the card's "go" never approves it, and it's never bundled with the card or another question. Record message and reply in `decisions.md`. On yes, do the items approved, in order: item 1 with `node .claude/skills/orion/scripts/browser_setup.mjs <URL>` from the workspace root (an existing suite: add `--env-file <its own env file>`, so the browser signs in with the suite's account and no `sut/<site>/` is created) (never edit the file yourself; if it exits 1 or 2, give its warning in one line and use the test project's Playwright); items 2 and 3 with the install commands (the host shows its own prompts). Then one line on what was set up and what needs a reload ("Set up: the browser for saucedemo (starts after you reload Cursor), Playwright in `sut/saucedemo/`. Carrying on.") and carry on. A skipped item 1 means the test project's Playwright for this run. **no**, or a skipped item the run can't do without: say in one line what that stops (for example "Without the test project I can't explore or run tests: I'll design the test cases from your description and mark the screens not observed") and carry on with what's possible; don't ask again in this run. "done" or "reloaded" means: run the checks again, then continue.
25
25
 
26
26
  ```markdown
27
27
  Thanks! 8 quick questions before I start. Reply **go** for the bold defaults, or answer by number (e.g. `3 Hybrid, 4 Java`).
@@ -29,7 +29,7 @@ Thanks! 8 quick questions before I start. Reply **go** for the bold defaults, or
29
29
  1. **Existing test repo?** Share the link or folder and I'll add to it · **<no, start new in `sut/<site>/` | yes, the suite open here (`<folder>`)>**
30
30
  2. **Existing test cases?** Jira, Xray, TestRail, Zephyr, Azure Test Plans, Trello, Excel or CSV · **no, I'll design them and show you first**
31
31
  3. **Style:** **page objects** · Hybrid (one test over a table of data) · BDD (Gherkin)
32
- 4. **Tool:** **Playwright + TypeScript** · Selenium · Appium · API tests · load (k6) · contract (Pact) · in Java, C#, Python or JavaScript
32
+ 4. **Tool:** **Playwright + JavaScript** · Playwright + TypeScript · Selenium · Appium · API tests · load (k6) · contract (Pact) · in Java, C# or Python
33
33
  5. **Connect:** **none** · Jira · Xray · TestRail · Zephyr · Trello · GitHub · GitLab · Bitbucket · Azure DevOps
34
34
  6. **Site and scope:** <the URL, or "Which URL? (a test environment, not production)"> · <the scope in the user's words>
35
35
  7. **Login:**<account default> paste it (kept only in a git-ignored `.env`), say "I'll add it" to fill it in yourself, or "demo login" if the page shows one
@@ -38,15 +38,21 @@ Thanks! 8 quick questions before I start. Reply **go** for the bold defaults, or
38
38
  Anything that writes to your repo or your tools asks you first.
39
39
  ```
40
40
 
41
+ **An existing suite or a connected tool turns a line into a statement, not a question** (the same 8 lines, in the same order; the user can still change any of them in their reply):
42
+ - **Lines 3 and 4, when line 1's default is the suite open here:** what the suite already uses, from its files (a quick look at its config, folders and one test; no exploring): `3. **Style:** <e.g. page objects in `pages/`, data in `data/`>, as your suite does` and `4. **Tool:** <e.g. Playwright + TypeScript>, as your suite does`. Never offer other tools for an existing suite; a different tool is only by the user's own words.
43
+ - **Line 2, when the request names where the cases are** ("get all the test cases from Jira"): `2. **Existing test cases?** **yes, from <Jira> (<the project, filter or keys named>)**`.
44
+ - **Line 5, when a tool is already connected in this chat** (its read tools answered, e.g. the Jira search already returned issues, or the request uses it and its tools are available): `5. **Connected:** <Jira (read-only)> · add another: Xray · TestRail · …`. A connected tool is never asked again in the same chat (conversation.md 1a).
45
+ - **Line 7, an existing suite:** its own env file (the one its config loads, e.g. `env-files/.env.dev`), checked with `env_check.mjs <that file>`; never `sut/<site>/.env`.
46
+
41
47
  The `<…>` in line 1 is one of the two defaults: "no, start new in `sut/<site>/`" when the workspace holds no suite (or is the agent install), else "yes, the suite open here (`<folder>`)". `<account default>` in line 7 is " **the account already in `sut/<site>/.env`** · or" when the check prints `E2E_USER: set` and `E2E_PASSWORD: set` (the quick setup writes saucedemo.com's public demo login there), else nothing.
42
48
 
43
49
  After the reply:
44
50
  - **go** accepts every bold default. Answers by number (`3 Hybrid, 4 Java`) or in words change only those lines; show just the changed lines back in one short line and continue.
45
- - **Say a limit only when the user picks the option it applies to**, in one line, never on the card: Appium needs a connected device or emulator; BDD step code needs an adapter first (H12); extras run with Playwright + TypeScript only; agent-built suites in Selenium, Java, C#, Python or JavaScript start from starters that run, and are newer than Playwright + TypeScript; k6 and Pact are new (their starters ran here; no agent has built one yet), and a real k6 load run is asked separately with users and duration (H6).
51
+ - **Say a limit only when the user picks the option it applies to**, in one line, never on the card: Appium needs a connected device or emulator; BDD step code needs an adapter first (H12); extras run with Playwright (JavaScript or TypeScript) only; agent-built suites in Selenium, Appium, Java, C# or Python start from starters that run, and are newer than Playwright; k6 and Pact are new (their starters ran here; no agent has built one yet), and a real k6 load run is asked separately with users and duration (H6).
46
52
  - **Line 1**, a repo link or folder: handled as [work-branch.md](work-branch.md), "An existing framework" (a remote link is cloned once into `sut/<repo-name>/` on hosts with a shell); then analysed before anything is written and extended in its own style.
47
53
  - **Line 2**, shared test cases: imported ([test-case-import.md](../../requirement-analysis/references/test-case-import.md)) and shown back as the case table.
48
- - **Line 3**: Page Object Model and Hybrid are both built from the starter template; Hybrid drives each test from the cases file's data rows ([patterns.md](../../automation-implementation/references/patterns.md), "Hybrid"). BDD: feature files are written; their step code needs an adapter (H12), asked before anything is added.
54
+ - **Line 3**: Page Object Model and Hybrid are both built from the starter template; Hybrid drives each test from data rows in the test-data folder ([patterns.md](../../automation-implementation/references/patterns.md), "Hybrid"). BDD: feature files are written; their step code needs an adapter (H12), asked before anything is added.
49
55
  - **Line 5**: a tool is connected read-only; any write to it asks first (AGENTS rule 2). A tool that isn't connected yet gets its one-time setup in one message ([connect-tools.md](connect-tools.md)), then the run continues.
50
56
  - **Line 7**, "I'll add it": once the test project exists, write `.env` with the names and empty values (`E2E_USER=`, `E2E_PASSWORD=`), tell the user the path in one line and wait; check with `env_check.mjs sut/<site>` (both names `set`), never by reading values.
51
- - **A choice that can't be done here is said plainly in one line, never dropped:** BDD step code (adapter first, H12); Xray Server/Data Center (CSV export instead); extra checks with a stack other than Playwright + TypeScript ("not yet"); Appium without a device; on Copilot Studio, TestRail and Xray (no shell: share a CSV export instead), k6 and Pact runs, cloning a repo and running tests outside CI ([hosts.md](hosts.md)); a GitLab merge request where `gitlab-write` isn't set up (only Claude Code has it: you open the MR from the pushed branch).
57
+ - **A choice that can't be done here is said plainly in one line, never dropped:** BDD step code (adapter first, H12); Xray Server/Data Center (CSV export instead); extra checks with a stack other than Playwright ("not yet"); Appium without a device; on Copilot Studio, TestRail and Xray (no shell: share a CSV export instead), k6 and Pact runs, cloning a repo and running tests outside CI ([hosts.md](hosts.md)); a GitLab merge request where `gitlab-write` isn't set up (only Claude Code has it: you open the MR from the pushed branch).
52
58
  - The second and last stop before the result is the test-case table: "Shall I write these?" ([conversation.md](conversation.md) item 3).
@@ -5,7 +5,7 @@ The user wants results and questions, not a narration of the machinery. Everythi
5
5
  ## Hosts that show their own activity (Claude Code, Cursor, GitHub Copilot, Codex, Gemini CLI, Windsurf, Grok Build)
6
6
  - **No narration, three milestones.** The host already shows each file read, command and tool call. Write only: the one question you need, a result the user can use, a blocker, the deliverable. No "I'll…" lines between tool calls ("I'll pull, free the port and install", "I'll write the suite, then review it"): the first text the user sees is the setup card.
7
7
  - **Milestone lines** (a long run otherwise shows minutes of tool output and no sentence): one line, at most three times in a build or full run, each a result that just happened plus what comes next, never a plan: after exploring ("Signed in and mapped 4 pages; all 23 locators matched exactly one element. Designing the test cases."), after the code is reviewed ("8 tests written and reviewed in `sut/shop/tests`. Running them 3 times."), and after a slow install ("Playwright and Chromium installed in `sut/shop/`."). No milestone may restate one already sent.
8
- - **No step names, icons or prefixes** in chat: never `Understand ·`, `Design ·`, `Mode:`, `Confirmed:`, `⛔`, `📖` or the like. The steps and gates are internal; they live in the run file.
8
+ - **No step names, icons or prefixes** in chat: never `Understand ·`, `Design ·`, `Mode:`, `Confirmed:`, `⛔`, `📖` or the like. The one exception is the result: its bold verdict (✅ ⚠️ ❌) and "⚠️ " on its attention lines, the same marks as the report ([conversation.md](conversation.md), "What the user sees"). The steps and gates are internal; they live in the run file.
9
9
  - Each message is plain sentences: what you found or did, then what you need (if anything). Numbers come from accepted RESULTs and the run file's `Run state` (UI map, test design, executor's `executed / planned`); no number without its source.
10
10
 
11
11
  ## Copilot Studio (and any host that shows nothing while it works)
@@ -27,6 +27,10 @@ Signed in and mapped 3 pages: login, 6 products each with Add to cart, the cart.
27
27
  8 test cases, from your request and what the site shows. Shall I write these? Say go, or e.g. "add: locked-out user", "drop TS-4".
28
28
  [user: go]
29
29
  8 tests written and reviewed in sut/saucedemo/tests. Running them 3 times.
30
- `npx playwright test` ran 3 times: 7 pass every time; TS-6 fails because the app shows a different locked-out message (defect draft below). A wrong expected value made TS-2 fail, as it should. Login is automated.
30
+ **⚠️ Ready, with notes**: 8 tests in `sut/saucedemo/tests`, ran 3 times: 7 pass every time; each failed when its check was broken.
31
+ Login: automated, signed in once per run and the session reused.
32
+ Coverage: log in → TS-1, TS-2 · add to cart → TS-3 to TS-5 · cart → TS-6 to TS-8.
33
+ ⚠️ TS-6 fails every time: the app shows a different locked-out message than the story says. A defect draft is in the report; reply "file it" to send it to Jira.
34
+ Report: `project-context/runs/R-20261113-1010-cart.report.md`
31
35
  Accept? (yes / changes) What next: 1 open the report · 2 the test cases as Excel or a TestRail / Xray / Zephyr / Azure import file · 3 commit to a new branch (I'll ask first)
32
36
  ```
@@ -15,6 +15,7 @@
15
15
  - budget: maxTurns <n>; return partial if exceeded
16
16
  - stop if: auth failure, ambiguity, scope change → blocked / needs_user (use only the 11 failure classes, e.g. NEEDS_AUTHENTICATION or NEEDS_PERMISSION; never invent one)
17
17
  ```
18
+ Name files in `inputs`; don't paste their content into the brief. On Claude Code the usage report shows each brief's size (`brief_bytes`): a brief over 8 KB usually carries text the agent could read itself.
18
19
 
19
20
  ## Accept a RESULT only if (stop at first failure)
20
21
  1. Template present, every field filled. An empty reply or text without a RESULT block is no RESULT: a failed call, never a success (hosts.md: one unchanged retry, then ⛔ Blocked).
@@ -18,6 +18,8 @@ How new test code moves from the implementer to review, execution and the PR. Th
18
18
  | A remote link (GitHub, Bitbucket, GitLab, Azure Repos) and a host with a shell | cloned once, before Gate 3, with `git clone <url> sut/<repo-name>` from the workspace root (Claude Code: an implementer `clone` task; single-agent: your own step). Cloning only reads, and the user's own git sign-in is used; nothing reaches the remote, so it isn't H3. The clone is then the existing suite: Gate 3 maps it, tests go on a local work branch in it, a push is H3 and a PR H4. A clone that fails (no access, sign-in needed, not found) is a blocker: what failed and the one fix ("clone it yourself and open the folder here, or give your git account access"); never ask for a password or token in the chat |
19
19
  | A remote link on Copilot Studio | not cloned: the repo is read with the GitHub read tool and written only on the work branch (By host, below) |
20
20
 
21
+ **In an existing suite, Orion adds nothing of its own around it.** No `sut/<site>/` folder, no `.env` or `.gitignore` of its own (the suite's env file and ignore file are used as they are; the browser setup takes `--env-file <the suite's env file>`), and no Orion layer the suite doesn't have (desc files, a test-data folder, a setup project): the suite's own equivalents are used. New files follow the Conventions rows of `architecture-profile.md` (folder, file-name pattern, class and method names), e.g. `pages/PerformancePage.ts` beside `pages/PIMPage.ts`; a screen that already has a page object gets methods added to it, never a second file. No package is added to `package.json` without H10 naming it; the suite's config and ignore file aren't edited; no helper or exploration script is left in its folders (exploring writes only to the git-ignored `.ui-map/`). Before every RESULT the implementer runs `git status --porcelain` and lists every changed or new file; a file outside the plan is removed or explained.
22
+
21
23
  ## Brief fields (Gate 5 onward)
22
24
  - `worktree:` absolute path the implementer returned in its RESULT `Artifacts` (Claude Code), or `none`
23
25
  - `base:` commit SHA the work started from (`git rev-parse HEAD` before the first edit)
@@ -37,7 +39,7 @@ Reviewer, executor, implementer (heals) and change-agent all work on the **same*
37
39
 
38
40
  In `sut/<app>/` inside the agent install there is no branch to create: the folder is the hand-off, and nothing is committed.
39
41
 
40
- The worktree has no installed dependencies (they are git-ignored). The executor installs them with the project's lockfile or manifest command (`execution` step 2: `npm ci`, `mvn -q dependency:resolve`, `pip install -r`, `dotnet restore`); the host's `ask` rule for installs applies (H10). If the user declines, run in CI.
42
+ The worktree has no installed dependencies (they are git-ignored). For a Node suite whose dependencies this work doesn't change, the executor links the suite's own `node_modules` into the worktree (`execution` step 2): one set of packages, the suite's versions, nothing duplicated. Otherwise it installs them with the project's lockfile or manifest command (`execution` step 2: `npm ci`, `mvn -q dependency:resolve`, `pip install -r`, `dotnet restore`); the host's `ask` rule for installs applies (H10). If the user declines, run in CI.
41
43
 
42
44
  ## Whose account, which repo
43
45
  Every user connects their **own** GitHub, Jira or Azure DevOps account; the agents act with that user's permissions on that user's repo. The first write question of a run names the account handle, the repo and the branch, and repeats any readiness gap from environment-discovery 6b, e.g. *"`main` in `org/repo` isn't protected: the agents still never push to it, but nothing on GitHub would stop it. Continue?"* No push access → NEEDS_PERMISSION, no write. No manual-trigger CI → tests can't run in CI: say so and stop after Gate 5 with the tests on the work branch (Copilot Studio), or offer a local run (other hosts, H6).
@@ -6,7 +6,9 @@
6
6
  * Also a command, installed with the platform, that the orchestrator runs during a chat after the person's yes on the
7
7
  * setup message that follows the setup card (D-069 R4 as amended): the same code as `npx @orion-qa/orion --app`, for the hosts in the
8
8
  * install record, and the record is updated so uninstall removes what it wrote.
9
- * node .claude/skills/orion/scripts/browser_setup.mjs <url> [--test-id <attr>] [--host <host>]... [--target <dir>]
9
+ * node .claude/skills/orion/scripts/browser_setup.mjs <url> [--test-id <attr>] [--host <host>]... [--target <dir>] [--env-file <path>]
10
+ * --env-file: an existing suite's own env file (e.g. `env-files/.env.dev`), which the browser reads its account from;
11
+ * then no `sut/<site>/` project is created and that file is never written.
10
12
  * Exit 0 set up; 1 set up with warnings; 2 not done (bad arguments, or no install record and no --host).
11
13
  */
12
14
  import fs from 'node:fs';
@@ -123,9 +125,13 @@ function playwrightEntry(secretsFile, testId) {
123
125
  return { command: server.command, args: [...server.args], env: { [SECRETS]: secretsFile, [TEST_ID]: testId } };
124
126
  }
125
127
 
128
+ /** An existing suite's own env file this setup pointed the browser at (--env-file, or the record's browser.secrets). */
129
+ let suiteEnv = null;
130
+
126
131
  function ownSite(p, target) {
127
132
  if (typeof p !== 'string' || !target) return null;
128
133
  const rel = path.relative(path.resolve(target), path.resolve(p)).split(path.sep).join('/');
134
+ if (suiteEnv && path.resolve(p) === path.resolve(target, suiteEnv)) return `the suite (${rel})`;
129
135
  const m = /^sut\/([^/]+)\/\.env$/.exec(rel);
130
136
  return m ? m[1] : null;
131
137
  }
@@ -305,25 +311,33 @@ function configure(target, host, secrets, testId, warnings, notes, explicit) {
305
311
  }
306
312
 
307
313
  /** install --app: the site's test project and every host's browser entry; returns [record changes, warnings]. */
308
- export function setupSite(target, hosts, app, testId, record, dryRun) {
314
+ export function setupSite(target, hosts, app, testId, record, dryRun, envFile = null) {
309
315
  const [name, demo] = siteName(app);
310
316
  const explicit = testId ? [TEST_ID] : [];
311
317
  const tid = testId || (demo ? 'data-test' : 'data-testid');
312
318
  const project = path.join(target, 'sut', name);
313
- const secrets = path.join(project, '.env');
314
- console.log(`browser for sut/${name} (test-id attribute ${tid})`);
319
+ const secrets = envFile ? path.resolve(target, envFile) : path.join(project, '.env');
320
+ suiteEnv = envFile ? path.relative(target, secrets).split(path.sep).join('/') : null;
321
+ const label = envFile ? path.relative(target, secrets).split(path.sep).join('/') : `sut/${name}`;
322
+ console.log(`browser for ${label} (test-id attribute ${tid})`);
315
323
  if (dryRun) {
316
324
  for (const h of hosts) {
317
325
  const rel = FORMATS[h][1];
318
326
  console.log(` ${h.padEnd(15)} would write ${rel || 'nothing (an entry is printed to add yourself)'}`);
319
327
  }
320
- console.log(` ${'.env'.padEnd(15)} would create sut/${name}/.env with empty values unless it exists`);
328
+ console.log(envFile ? ` ${'.env'.padEnd(15)} would use ${label} (the suite's own; never written)`
329
+ : ` ${'.env'.padEnd(15)} would create sut/${name}/.env with empty values unless it exists`);
321
330
  return [{}, []];
322
331
  }
323
332
  const warnings = [];
324
333
  const notes = [];
325
- const status = writeProject(project, app.replace(/\/+$/, ''), null);
326
- console.log(` ${'.env'.padEnd(15)} sut/${name}/.env: ${status}`);
334
+ if (envFile) {
335
+ console.log(` ${'.env'.padEnd(15)} ${label}: the suite's own, used as is${isFile(secrets) ? '' : ' (not there yet)'}`);
336
+ if (!isFile(secrets)) warnings.push(`${label} doesn't exist: the browser signs in once it holds the account`);
337
+ } else {
338
+ const status = writeProject(project, app.replace(/\/+$/, ''), null);
339
+ console.log(` ${'.env'.padEnd(15)} sut/${name}/.env: ${status}`);
340
+ }
327
341
  const ignore = ['.ui-map/', ...(hosts.includes('claude-code') ? ['.claude/settings.local.json'] : [])];
328
342
  const added = appendLines(path.join(target, '.gitignore'), ignore);
329
343
  const ignored = [...new Set([...((record.browser || {}).gitignore || []), ...added])].sort();
@@ -336,13 +350,13 @@ export function setupSite(target, hosts, app, testId, record, dryRun) {
336
350
  const [rel, snippet] = configure(target, h, secrets, tid, warnings, notes, explicit);
337
351
  if (rel) {
338
352
  written.add(rel);
339
- console.log(` ${h.padEnd(15)} ${rel}: playwright entry for sut/${name}`);
353
+ console.log(` ${h.padEnd(15)} ${rel}: playwright entry for ${label}`);
340
354
  }
341
355
  console.log(` next: ${NEXT[h].replace('{off}', off.join(', '))}`);
342
356
  if (snippet) console.log(snippet);
343
357
  }
344
358
  for (const n of notes) console.log(` note: ${n}`);
345
- return [{ browser: { site: name, files: [...written].sort(), gitignore: ignored } }, warnings];
359
+ return [{ browser: { site: name, files: [...written].sort(), gitignore: ignored, ...(suiteEnv ? { secrets: suiteEnv } : {}) } }, warnings];
346
360
  }
347
361
 
348
362
  function withoutEntry(p, target) {
@@ -382,6 +396,7 @@ export function removeBrowser(target, record, dryRun) {
382
396
  const info = record.browser;
383
397
  const after = {};
384
398
  if (!info) return after;
399
+ suiteEnv = info.secrets || null;
385
400
  for (const rel of info.files || []) {
386
401
  const p = path.join(target, rel);
387
402
  let [what, text] = withoutEntry(p, target);
@@ -409,7 +424,7 @@ export function removeBrowser(target, record, dryRun) {
409
424
  }
410
425
  }
411
426
  }
412
- console.log(` kept sut/${info.site}/ (your test project and its .env)`);
427
+ console.log(info.secrets ? ` kept ${info.secrets} (your suite's env file)` : ` kept sut/${info.site}/ (your test project and its .env)`);
413
428
  return after;
414
429
  }
415
430
 
@@ -426,14 +441,14 @@ export function recordText(record) {
426
441
  }
427
442
 
428
443
  function main(argv) {
429
- const usage = 'usage: node .claude/skills/orion/scripts/browser_setup.mjs <url> [--test-id <attr>] [--host <host>]... [--target <dir>]';
430
- let url = null; let testId = null; let target = '.'; const hosts = [];
444
+ const usage = 'usage: node .claude/skills/orion/scripts/browser_setup.mjs <url> [--test-id <attr>] [--host <host>]... [--target <dir>] [--env-file <path>]';
445
+ let url = null; let testId = null; let target = '.'; let envFile = null; const hosts = [];
431
446
  for (let i = 0; i < argv.length; i += 1) {
432
447
  const a = argv[i];
433
- if (['--test-id', '--host', '--target'].includes(a)) {
448
+ if (['--test-id', '--host', '--target', '--env-file'].includes(a)) {
434
449
  const v = argv[i + 1];
435
450
  if (v === undefined || v.startsWith('--')) { console.log(`${usage}\nerror: ${a} needs a value`); return 2; }
436
- if (a === '--test-id') testId = v; else if (a === '--host') hosts.push(v); else target = v;
451
+ if (a === '--test-id') testId = v; else if (a === '--host') hosts.push(v); else if (a === '--env-file') envFile = v; else target = v;
437
452
  i += 1;
438
453
  } else if (a === '-h' || a === '--help') { console.log(usage); return 0; }
439
454
  else if (!url && !a.startsWith('-')) url = a;
@@ -454,7 +469,7 @@ function main(argv) {
454
469
  + 'Give it with --host <host>, or set it up with: npx @orion-qa/orion --host <host> --target . --app <url>');
455
470
  return 2;
456
471
  }
457
- const [changes, warnings] = setupSite(target, use, url, testId, record, false);
472
+ const [changes, warnings] = setupSite(target, use, url, testId, record, false, envFile);
458
473
  Object.assign(record, changes);
459
474
  if (!record.files) record.files = {};
460
475
  fs.mkdirSync(path.dirname(recPath), { recursive: true });
@@ -2,7 +2,7 @@
2
2
  /**
3
3
  * Says which test-account settings a test project's .env holds, without ever printing a value.
4
4
  *
5
- * Usage (from the workspace root; the argument is the test project's FOLDER, not the file):
5
+ * Usage (from the workspace root; the argument is the test project's folder, or an existing suite's own env file, e.g. env-files/.env.dev):
6
6
  * node .claude/skills/orion/scripts/env_check.mjs sut/<site>
7
7
  *
8
8
  * Prints one line per name: set (has a value) · empty (name with no value) · missing (no such line).
@@ -59,10 +59,15 @@ function main(argv) {
59
59
  return 2;
60
60
  }
61
61
  let folder = argv[0];
62
+ let name = '.env';
62
63
  const trimmed = folder.replace(/[/\\]+$/, '');
63
- if (path.basename(trimmed) === '.env') folder = path.dirname(trimmed) || '.';
64
+ // A file: the project's .env, or an existing suite's own env file (env-files/.env.dev).
65
+ if (path.basename(trimmed) === '.env' || isFile(trimmed)) { folder = path.dirname(trimmed) || '.'; name = path.basename(trimmed); }
64
66
  if (!isDir(folder)) { console.log(`${folder}: no such folder`); return 2; }
65
- const env = pyJoin(folder, '.env');
67
+ // Runs without a permission prompt: only files inside the workspace (symlinks resolved).
68
+ const root = fs.realpathSync(process.cwd()); const real = fs.realpathSync(folder);
69
+ if (real !== root && !real.startsWith(root + path.sep)) { console.log(`refused: ${folder} is outside the workspace`); return 2; }
70
+ const env = pyJoin(folder, name);
66
71
  const example = pyJoin(folder, '.env.example');
67
72
  const order = [...STANDARD];
68
73
  if (isFile(example)) for (const name of parse(example)[0].keys()) if (!order.includes(name)) order.push(name);
@@ -1,6 +1,6 @@
1
1
  """Say which test-account settings a test project's .env holds, without ever printing a value.
2
2
 
3
- Usage (from the workspace root; the argument is the test project's FOLDER, not the file):
3
+ Usage (from the workspace root; the argument is the test project's folder, or an existing suite's own env file, e.g. env-files/.env.dev):
4
4
  python3 .claude/skills/orion/scripts/env_check.py sut/<site> (Windows: py ... sut\\<site>)
5
5
 
6
6
  Prints one line per name: set (has a value) · empty (name with no value) · missing (no such line).
@@ -52,13 +52,20 @@ def main(argv):
52
52
  if len(argv) != 2 or argv[1] in ("-h", "--help"):
53
53
  print(__doc__.strip())
54
54
  return 2
55
- folder = argv[1]
56
- if os.path.basename(folder.rstrip("/\\")) == ".env":
57
- folder = os.path.dirname(folder.rstrip("/\\")) or "."
55
+ folder, name = argv[1], ".env"
56
+ trimmed = folder.rstrip("/\\")
57
+ # A file: the project's .env, or an existing suite's own env file (env-files/.env.dev).
58
+ if os.path.basename(trimmed) == ".env" or os.path.isfile(trimmed):
59
+ folder, name = os.path.dirname(trimmed) or ".", os.path.basename(trimmed)
58
60
  if not os.path.isdir(folder):
59
61
  print(f"{folder}: no such folder")
60
62
  return 2
61
- env = os.path.join(folder, ".env")
63
+ # Runs without a permission prompt: only files inside the workspace (symlinks resolved).
64
+ root, real = os.path.realpath(os.getcwd()), os.path.realpath(folder)
65
+ if real != root and not real.startswith(root + os.sep):
66
+ print(f"refused: {folder} is outside the workspace")
67
+ return 2
68
+ env = os.path.join(folder, name)
62
69
  example = os.path.join(folder, ".env.example")
63
70
  order = list(STANDARD)
64
71
  if os.path.isfile(example):