ai-driven-e2e 0.4.0__tar.gz → 0.5.0__tar.gz

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 (341) hide show
  1. ai_driven_e2e-0.5.0/.claude/skills/code-review/SKILL.md +97 -0
  2. ai_driven_e2e-0.5.0/.claude/skills/python-pro/SKILL.md +156 -0
  3. ai_driven_e2e-0.5.0/.codex/README.md +32 -0
  4. ai_driven_e2e-0.5.0/.codex/config.toml +9 -0
  5. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0}/.env.example +27 -1
  6. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0}/.github/PULL_REQUEST_TEMPLATE.md +1 -1
  7. ai_driven_e2e-0.5.0/.github/workflows/assign-reviewer.yml +51 -0
  8. ai_driven_e2e-0.5.0/.github/workflows/ci.yml +190 -0
  9. ai_driven_e2e-0.5.0/.github/workflows/deploy-docs.yml +72 -0
  10. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0}/.gitignore +6 -0
  11. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0}/AGENTS.md +7 -0
  12. ai_driven_e2e-0.5.0/CHANGELOG.md +259 -0
  13. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0}/Makefile +8 -2
  14. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0}/PKG-INFO +134 -54
  15. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0}/README.ja.md +12 -9
  16. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0}/README.ko.md +11 -9
  17. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0}/README.md +131 -52
  18. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0}/README.zh-CN.md +33 -40
  19. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0}/action.yml +34 -9
  20. ai_driven_e2e-0.5.0/app/benchmark.py +137 -0
  21. ai_driven_e2e-0.5.0/app/cli.py +802 -0
  22. ai_driven_e2e-0.5.0/app/config.py +169 -0
  23. ai_driven_e2e-0.5.0/app/core/report/generator.test.ts +39 -0
  24. ai_driven_e2e-0.5.0/app/core/report/generator.ts +75 -0
  25. ai_driven_e2e-0.5.0/app/evidence.py +180 -0
  26. ai_driven_e2e-0.5.0/app/graph.py +186 -0
  27. ai_driven_e2e-0.5.0/app/healing_history.py +225 -0
  28. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0}/app/llm.py +113 -3
  29. ai_driven_e2e-0.5.0/app/nodes/diagnoser.py +47 -0
  30. ai_driven_e2e-0.5.0/app/nodes/memory_lookup.py +87 -0
  31. ai_driven_e2e-0.5.0/app/nodes/patch_generator.py +560 -0
  32. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0}/app/nodes/reviewer.py +9 -3
  33. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0}/app/nodes/selector_verifier.py +37 -9
  34. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0}/app/nodes/shadow_verifier.py +45 -13
  35. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0}/app/nodes/test_runner.py +19 -3
  36. ai_driven_e2e-0.5.0/app/notifications.py +145 -0
  37. ai_driven_e2e-0.5.0/app/preprocess/aria_snapshot.py +136 -0
  38. ai_driven_e2e-0.5.0/app/preprocess/diff_ast_analyzer.py +368 -0
  39. ai_driven_e2e-0.5.0/app/preprocess/error_log_parser.py +79 -0
  40. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0}/app/preprocess/failure_scanner.py +7 -3
  41. ai_driven_e2e-0.5.0/app/preprocess/jsx_chunker.py +95 -0
  42. ai_driven_e2e-0.5.0/app/prompts/diagnoser.py +32 -0
  43. ai_driven_e2e-0.5.0/app/prompts/patch_generator.py +169 -0
  44. ai_driven_e2e-0.5.0/app/providers/__init__.py +1 -0
  45. ai_driven_e2e-0.5.0/app/providers/orcarouter.py +27 -0
  46. ai_driven_e2e-0.5.0/app/registry.py +196 -0
  47. ai_driven_e2e-0.5.0/app/runner.py +116 -0
  48. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0}/app/sandbox.py +70 -5
  49. ai_driven_e2e-0.5.0/app/schemas.py +278 -0
  50. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0}/app/shadow/__init__.py +21 -1
  51. ai_driven_e2e-0.5.0/app/shadow/browser_state.py +112 -0
  52. ai_driven_e2e-0.5.0/app/shadow/config.py +115 -0
  53. ai_driven_e2e-0.5.0/app/shadow/content_addressed_snapshot_store.py +272 -0
  54. ai_driven_e2e-0.5.0/app/shadow/har_entry.py +170 -0
  55. ai_driven_e2e-0.5.0/app/shadow/har_parser.py +97 -0
  56. ai_driven_e2e-0.5.0/app/shadow/injector.py +238 -0
  57. ai_driven_e2e-0.5.0/app/shadow/match_options.py +54 -0
  58. ai_driven_e2e-0.5.0/app/shadow/matcher.py +158 -0
  59. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0}/app/shadow/normalizer.py +21 -5
  60. ai_driven_e2e-0.5.0/app/shadow/redaction.py +139 -0
  61. ai_driven_e2e-0.5.0/app/shadow/replay_bridge.py +314 -0
  62. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0}/app/shadow/runtime.py +94 -104
  63. ai_driven_e2e-0.5.0/app/shadow/schemas.py +199 -0
  64. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0}/app/shadow/scoring.py +44 -1
  65. ai_driven_e2e-0.5.0/app/shadow/snapshot_store.py +176 -0
  66. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0}/app/shadow/trace_parser.py +16 -50
  67. ai_driven_e2e-0.5.0/app/shadow/workspace.py +247 -0
  68. ai_driven_e2e-0.5.0/app/state.py +113 -0
  69. ai_driven_e2e-0.5.0/app/utils/files.py +77 -0
  70. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0}/app/verify/selector_check.py +47 -17
  71. ai_driven_e2e-0.5.0/ci/action-consumer/package.json +8 -0
  72. ai_driven_e2e-0.5.0/ci/action-consumer/smoke.mjs +13 -0
  73. ai_driven_e2e-0.5.0/ci/action-consumer/tests/example.spec.js +3 -0
  74. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0}/ci/github-review-bot.example.yml +23 -3
  75. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0}/ci/github-workflow.example.yml +25 -7
  76. ai_driven_e2e-0.5.0/docs/rfc_dom_picker_cli_bridge.md +296 -0
  77. ai_driven_e2e-0.5.0/docs/rfc_star_credit_proxy.md +218 -0
  78. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0}/docs/roadmap-v0.5.md +17 -6
  79. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0}/docs/sandbox.md +8 -1
  80. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0}/docs/shadow-quickstart.md +10 -0
  81. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0}/docs/shadow-testing.md +42 -31
  82. ai_driven_e2e-0.5.0/docs-site/.contrib/issue-drafts.md +109 -0
  83. ai_driven_e2e-0.5.0/docs-site/docs/getting-started/heal-vs-review.mdx +76 -0
  84. ai_driven_e2e-0.5.0/docs-site/docs/getting-started/introduction.mdx +66 -0
  85. ai_driven_e2e-0.5.0/docs-site/docs/getting-started/quickstart-cli.mdx +99 -0
  86. ai_driven_e2e-0.5.0/docs-site/docs/getting-started/quickstart-github-action.mdx +119 -0
  87. ai_driven_e2e-0.5.0/docs-site/docs/reference/exit-codes.mdx +119 -0
  88. ai_driven_e2e-0.5.0/docs-site/docs/reference/schema-versioning.mdx +118 -0
  89. ai_driven_e2e-0.5.0/docs-site/docusaurus.config.ts +226 -0
  90. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0}/docs-site/package.json +1 -0
  91. ai_driven_e2e-0.5.0/docs-site/pnpm-lock.yaml +12658 -0
  92. ai_driven_e2e-0.5.0/docs-site/sidebars.ts +81 -0
  93. ai_driven_e2e-0.5.0/docs-site/src/components/ArchitectureFlow/index.tsx +78 -0
  94. ai_driven_e2e-0.5.0/docs-site/src/components/ArchitectureFlow/styles.module.css +93 -0
  95. ai_driven_e2e-0.5.0/docs-site/src/components/CodeCompare/index.tsx +76 -0
  96. ai_driven_e2e-0.5.0/docs-site/src/components/CodeCompare/styles.module.css +15 -0
  97. ai_driven_e2e-0.5.0/docs-site/src/components/HealingDiff/index.tsx +223 -0
  98. ai_driven_e2e-0.5.0/docs-site/src/components/HealingDiff/styles.module.css +101 -0
  99. ai_driven_e2e-0.5.0/docs-site/src/components/HelpWantedBoard/index.tsx +96 -0
  100. ai_driven_e2e-0.5.0/docs-site/src/components/HelpWantedBoard/styles.module.css +176 -0
  101. ai_driven_e2e-0.5.0/docs-site/src/components/HomepageFeatures/index.module.css +68 -0
  102. ai_driven_e2e-0.5.0/docs-site/src/components/HomepageFeatures/index.tsx +73 -0
  103. ai_driven_e2e-0.5.0/docs-site/src/components/HomepageFeatures/styles.module.css +11 -0
  104. ai_driven_e2e-0.5.0/docs-site/src/components/ScopeGuardrailCallout/index.tsx +101 -0
  105. ai_driven_e2e-0.5.0/docs-site/src/components/ScopeGuardrailCallout/styles.module.css +90 -0
  106. ai_driven_e2e-0.5.0/docs-site/src/css/custom.css +115 -0
  107. ai_driven_e2e-0.5.0/docs-site/src/pages/index.module.css +187 -0
  108. ai_driven_e2e-0.5.0/docs-site/src/pages/index.tsx +118 -0
  109. ai_driven_e2e-0.5.0/docs-site/static/llms.txt +28 -0
  110. ai_driven_e2e-0.5.0/docs-site/static/robots.txt +9 -0
  111. ai_driven_e2e-0.5.0/examples/README.md +92 -0
  112. ai_driven_e2e-0.5.0/examples/demo-app/index.html +12 -0
  113. ai_driven_e2e-0.5.0/examples/demo-app/src/App.tsx +34 -0
  114. ai_driven_e2e-0.5.0/examples/demo-app/src/components/CTAButton.tsx +12 -0
  115. ai_driven_e2e-0.5.0/examples/demo-app/src/components/SubmitButton.tsx +7 -0
  116. ai_driven_e2e-0.5.0/examples/demo-app/src/main.tsx +10 -0
  117. ai_driven_e2e-0.5.0/examples/package.json +24 -0
  118. ai_driven_e2e-0.5.0/examples/playwright.config.ts +28 -0
  119. ai_driven_e2e-0.5.0/examples/pnpm-lock.yaml +1075 -0
  120. ai_driven_e2e-0.5.0/examples/scenarios/classname-rename/README.md +39 -0
  121. ai_driven_e2e-0.5.0/examples/scenarios/classname-rename/change.patch +13 -0
  122. ai_driven_e2e-0.5.0/examples/scenarios/classname-rename/spec.ts +9 -0
  123. ai_driven_e2e-0.5.0/examples/scenarios/id-rename/README.md +61 -0
  124. ai_driven_e2e-0.5.0/examples/scenarios/id-rename/change.patch +12 -0
  125. ai_driven_e2e-0.5.0/examples/scenarios/id-rename/spec.ts +13 -0
  126. ai_driven_e2e-0.5.0/examples/scenarios/jsx-context/README.md +9 -0
  127. ai_driven_e2e-0.5.0/examples/scenarios/jsx-context/benchmark-context.tsx +30 -0
  128. ai_driven_e2e-0.5.0/examples/scenarios/jsx-context/change.patch +13 -0
  129. ai_driven_e2e-0.5.0/examples/scenarios/product-regression/README.md +53 -0
  130. ai_driven_e2e-0.5.0/examples/scenarios/product-regression/change.patch +27 -0
  131. ai_driven_e2e-0.5.0/examples/scenarios/product-regression/spec.ts +13 -0
  132. ai_driven_e2e-0.5.0/examples/scenarios/shadow-replay/replay.spec.ts +15 -0
  133. ai_driven_e2e-0.5.0/examples/shadow.playwright.config.ts +9 -0
  134. ai_driven_e2e-0.5.0/examples/tsconfig.json +17 -0
  135. ai_driven_e2e-0.5.0/examples/vite.config.ts +12 -0
  136. ai_driven_e2e-0.5.0/integrations/playwright-reporter/README.md +83 -0
  137. ai_driven_e2e-0.5.0/integrations/playwright-reporter/package-lock.json +114 -0
  138. ai_driven_e2e-0.5.0/integrations/playwright-reporter/package.json +20 -0
  139. ai_driven_e2e-0.5.0/integrations/playwright-reporter/src/index.ts +246 -0
  140. ai_driven_e2e-0.5.0/integrations/playwright-reporter/tsconfig.json +16 -0
  141. ai_driven_e2e-0.5.0/package.json +11 -0
  142. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0}/pyproject.toml +3 -1
  143. ai_driven_e2e-0.5.0/roadmap.en.md +187 -0
  144. ai_driven_e2e-0.5.0/roadmap.ko.md +170 -0
  145. ai_driven_e2e-0.5.0/tests/fixtures/sample.har +65 -0
  146. ai_driven_e2e-0.5.0/tests/test_aria_snapshot_identity.py +121 -0
  147. ai_driven_e2e-0.5.0/tests/test_benchmark.py +176 -0
  148. ai_driven_e2e-0.5.0/tests/test_browser_state.py +128 -0
  149. ai_driven_e2e-0.5.0/tests/test_cli.py +913 -0
  150. ai_driven_e2e-0.5.0/tests/test_config.py +156 -0
  151. ai_driven_e2e-0.5.0/tests/test_content_addressed_snapshot_store.py +175 -0
  152. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0}/tests/test_diagnoser.py +11 -1
  153. ai_driven_e2e-0.5.0/tests/test_diff_ast_analyzer.py +307 -0
  154. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0}/tests/test_error_log_parser.py +51 -0
  155. ai_driven_e2e-0.5.0/tests/test_evidence.py +108 -0
  156. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0}/tests/test_failure_scanner.py +15 -0
  157. ai_driven_e2e-0.5.0/tests/test_files.py +249 -0
  158. ai_driven_e2e-0.5.0/tests/test_github_action.py +46 -0
  159. ai_driven_e2e-0.5.0/tests/test_graph.py +113 -0
  160. ai_driven_e2e-0.5.0/tests/test_har_parser.py +292 -0
  161. ai_driven_e2e-0.5.0/tests/test_healing_history.py +215 -0
  162. ai_driven_e2e-0.5.0/tests/test_jsx_chunker.py +88 -0
  163. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0}/tests/test_llm.py +196 -8
  164. ai_driven_e2e-0.5.0/tests/test_match_options.py +449 -0
  165. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0}/tests/test_matching_engine.py +68 -0
  166. ai_driven_e2e-0.5.0/tests/test_memory_lookup.py +126 -0
  167. ai_driven_e2e-0.5.0/tests/test_mock_injector.py +454 -0
  168. ai_driven_e2e-0.5.0/tests/test_non_http_snapshots.py +161 -0
  169. ai_driven_e2e-0.5.0/tests/test_notifications.py +153 -0
  170. ai_driven_e2e-0.5.0/tests/test_patch_apply.py +618 -0
  171. ai_driven_e2e-0.5.0/tests/test_patch_generator.py +103 -0
  172. ai_driven_e2e-0.5.0/tests/test_patch_prompt_strategy.py +94 -0
  173. ai_driven_e2e-0.5.0/tests/test_registry.py +247 -0
  174. ai_driven_e2e-0.5.0/tests/test_repair_loop.py +176 -0
  175. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0}/tests/test_reviewer.py +8 -2
  176. ai_driven_e2e-0.5.0/tests/test_runner.py +129 -0
  177. ai_driven_e2e-0.5.0/tests/test_sandbox.py +223 -0
  178. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0}/tests/test_scoring.py +2 -0
  179. ai_driven_e2e-0.5.0/tests/test_selector_check_concurrent.py +85 -0
  180. ai_driven_e2e-0.5.0/tests/test_selector_hint.py +93 -0
  181. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0}/tests/test_selector_verifier.py +16 -5
  182. ai_driven_e2e-0.5.0/tests/test_shadow_config.py +105 -0
  183. ai_driven_e2e-0.5.0/tests/test_shadow_redaction.py +69 -0
  184. ai_driven_e2e-0.5.0/tests/test_shadow_runtime.py +285 -0
  185. ai_driven_e2e-0.5.0/tests/test_shadow_runtime_integration.py +84 -0
  186. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0}/tests/test_shadow_verifier.py +52 -9
  187. ai_driven_e2e-0.5.0/tests/test_shadow_workspace.py +265 -0
  188. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0}/tests/test_snapshot_store.py +33 -47
  189. ai_driven_e2e-0.5.0/tests/test_snapshot_store_hardening.py +199 -0
  190. ai_driven_e2e-0.5.0/tests/test_suite_heal.py +366 -0
  191. ai_driven_e2e-0.5.0/tests/test_summary_contract.py +124 -0
  192. ai_driven_e2e-0.5.0/tests/test_test_runner_node.py +37 -0
  193. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0}/uv.lock +3 -1
  194. ai_driven_e2e-0.4.0/.github/workflows/assign-reviewer.yml +0 -37
  195. ai_driven_e2e-0.4.0/.github/workflows/ci.yml +0 -135
  196. ai_driven_e2e-0.4.0/CHANGELOG.md +0 -87
  197. ai_driven_e2e-0.4.0/app/cli.py +0 -381
  198. ai_driven_e2e-0.4.0/app/config.py +0 -105
  199. ai_driven_e2e-0.4.0/app/graph.py +0 -86
  200. ai_driven_e2e-0.4.0/app/nodes/diagnoser.py +0 -28
  201. ai_driven_e2e-0.4.0/app/nodes/patch_generator.py +0 -43
  202. ai_driven_e2e-0.4.0/app/preprocess/aria_snapshot.py +0 -70
  203. ai_driven_e2e-0.4.0/app/preprocess/diff_ast_analyzer.py +0 -201
  204. ai_driven_e2e-0.4.0/app/preprocess/error_log_parser.py +0 -52
  205. ai_driven_e2e-0.4.0/app/prompts/diagnoser.py +0 -11
  206. ai_driven_e2e-0.4.0/app/prompts/patch_generator.py +0 -14
  207. ai_driven_e2e-0.4.0/app/runner.py +0 -31
  208. ai_driven_e2e-0.4.0/app/schemas.py +0 -99
  209. ai_driven_e2e-0.4.0/app/shadow/config.py +0 -47
  210. ai_driven_e2e-0.4.0/app/shadow/injector.py +0 -131
  211. ai_driven_e2e-0.4.0/app/shadow/matcher.py +0 -94
  212. ai_driven_e2e-0.4.0/app/shadow/schemas.py +0 -62
  213. ai_driven_e2e-0.4.0/app/shadow/snapshot_store.py +0 -106
  214. ai_driven_e2e-0.4.0/app/shadow/workspace.py +0 -104
  215. ai_driven_e2e-0.4.0/app/state.py +0 -23
  216. ai_driven_e2e-0.4.0/app/utils/files.py +0 -24
  217. ai_driven_e2e-0.4.0/docs-site/blog/2019-05-28-first-blog-post.mdx +0 -12
  218. ai_driven_e2e-0.4.0/docs-site/blog/2019-05-29-long-blog-post.mdx +0 -44
  219. ai_driven_e2e-0.4.0/docs-site/blog/2021-08-01-mdx-blog-post.mdx +0 -24
  220. ai_driven_e2e-0.4.0/docs-site/blog/2021-08-26-welcome/docusaurus-plushie-banner.jpeg +0 -0
  221. ai_driven_e2e-0.4.0/docs-site/blog/2021-08-26-welcome/index.mdx +0 -29
  222. ai_driven_e2e-0.4.0/docs-site/blog/authors.yml +0 -25
  223. ai_driven_e2e-0.4.0/docs-site/blog/tags.yml +0 -19
  224. ai_driven_e2e-0.4.0/docs-site/docs/getting-started/heal-vs-review.mdx +0 -18
  225. ai_driven_e2e-0.4.0/docs-site/docs/getting-started/introduction.mdx +0 -18
  226. ai_driven_e2e-0.4.0/docs-site/docs/getting-started/quickstart-cli.mdx +0 -19
  227. ai_driven_e2e-0.4.0/docs-site/docs/getting-started/quickstart-github-action.mdx +0 -19
  228. ai_driven_e2e-0.4.0/docs-site/docs/reference/exit-codes.mdx +0 -17
  229. ai_driven_e2e-0.4.0/docs-site/docusaurus.config.ts +0 -148
  230. ai_driven_e2e-0.4.0/docs-site/package-lock.json +0 -19526
  231. ai_driven_e2e-0.4.0/docs-site/sidebars.ts +0 -83
  232. ai_driven_e2e-0.4.0/docs-site/src/components/HelpWantedBoard/index.tsx +0 -80
  233. ai_driven_e2e-0.4.0/docs-site/src/components/HelpWantedBoard/styles.module.css +0 -176
  234. ai_driven_e2e-0.4.0/docs-site/src/components/HomepageFeatures/index.tsx +0 -71
  235. ai_driven_e2e-0.4.0/docs-site/src/components/HomepageFeatures/styles.module.css +0 -11
  236. ai_driven_e2e-0.4.0/docs-site/src/css/custom.css +0 -112
  237. ai_driven_e2e-0.4.0/docs-site/src/pages/index.module.css +0 -55
  238. ai_driven_e2e-0.4.0/docs-site/src/pages/index.tsx +0 -60
  239. ai_driven_e2e-0.4.0/examples/README.md +0 -58
  240. ai_driven_e2e-0.4.0/examples/classname-scenario/README.md +0 -46
  241. ai_driven_e2e-0.4.0/examples/classname-scenario/classname-rename.diff +0 -13
  242. ai_driven_e2e-0.4.0/examples/classname-scenario/classname.spec.ts +0 -9
  243. ai_driven_e2e-0.4.0/examples/classname-scenario/components/CTAButton.tsx +0 -8
  244. ai_driven_e2e-0.4.0/examples/classname-scenario/index.html +0 -19
  245. ai_driven_e2e-0.4.0/examples/components/SubmitButton.tsx +0 -8
  246. ai_driven_e2e-0.4.0/examples/example.spec.ts +0 -9
  247. ai_driven_e2e-0.4.0/examples/index.html +0 -19
  248. ai_driven_e2e-0.4.0/examples/package-lock.json +0 -78
  249. ai_driven_e2e-0.4.0/examples/package.json +0 -12
  250. ai_driven_e2e-0.4.0/examples/playwright.config.ts +0 -20
  251. ai_driven_e2e-0.4.0/examples/selector-rename.diff +0 -13
  252. ai_driven_e2e-0.4.0/tests/test_cli.py +0 -306
  253. ai_driven_e2e-0.4.0/tests/test_config.py +0 -57
  254. ai_driven_e2e-0.4.0/tests/test_diff_ast_analyzer.py +0 -140
  255. ai_driven_e2e-0.4.0/tests/test_files.py +0 -16
  256. ai_driven_e2e-0.4.0/tests/test_graph.py +0 -39
  257. ai_driven_e2e-0.4.0/tests/test_mock_injector.py +0 -219
  258. ai_driven_e2e-0.4.0/tests/test_patch_apply.py +0 -28
  259. ai_driven_e2e-0.4.0/tests/test_repair_loop.py +0 -77
  260. ai_driven_e2e-0.4.0/tests/test_runner.py +0 -68
  261. ai_driven_e2e-0.4.0/tests/test_sandbox.py +0 -113
  262. ai_driven_e2e-0.4.0/tests/test_shadow_config.py +0 -41
  263. ai_driven_e2e-0.4.0/tests/test_shadow_runtime.py +0 -171
  264. ai_driven_e2e-0.4.0/tests/test_shadow_workspace.py +0 -89
  265. ai_driven_e2e-0.4.0/tests/test_suite_heal.py +0 -72
  266. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0}/.claude/CLAUDE.md +0 -0
  267. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0}/.claude/agents/plan.md +0 -0
  268. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0}/.claude/skills/docs-site/SKILL.md +0 -0
  269. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0}/.coverage +0 -0
  270. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0}/.editorconfig +0 -0
  271. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0}/.githooks/pre-commit +0 -0
  272. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0}/.github/ISSUE_TEMPLATE/architecture.yml +0 -0
  273. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0}/.github/ISSUE_TEMPLATE/bug_report.yml +0 -0
  274. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0}/.github/ISSUE_TEMPLATE/config.yml +0 -0
  275. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0}/.github/ISSUE_TEMPLATE/feature_request.yml +0 -0
  276. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0}/.github/ISSUE_TEMPLATE/question.yml +0 -0
  277. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0}/.github/workflows/publish-testpypi.yml +0 -0
  278. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0}/.github/workflows/publish.yml +0 -0
  279. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0}/.python-version +0 -0
  280. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0}/CODE_OF_CONDUCT.md +0 -0
  281. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0}/CONTRIBUTING.md +0 -0
  282. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0}/LICENSE +0 -0
  283. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0}/SECURITY.md +0 -0
  284. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0}/app/__init__.py +0 -0
  285. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0}/app/logging.py +0 -0
  286. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0}/app/nodes/__init__.py +0 -0
  287. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0}/app/preprocess/__init__.py +0 -0
  288. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0}/app/prompts/__init__.py +0 -0
  289. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0}/app/prompts/reviewer.py +0 -0
  290. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0}/app/shadow/context.py +0 -0
  291. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0}/app/shadow/in_memory_snapshot_store.py +0 -0
  292. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0}/app/shadow/interfaces.py +0 -0
  293. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0}/app/utils/__init__.py +0 -0
  294. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0}/app/verify/__init__.py +0 -0
  295. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0}/docs/RELEASING.md +0 -0
  296. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0}/docs/demo.gif +0 -0
  297. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0}/docs/demo.sh +0 -0
  298. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0}/docs/demo.tape +0 -0
  299. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0}/docs/design.md +0 -0
  300. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0}/docs/usecase-demo-cta.png +0 -0
  301. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0}/docs/wiki_architecture.md +0 -0
  302. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0}/docs-site/.gitignore +0 -0
  303. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0}/docs-site/DESIGN.md +0 -0
  304. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0}/docs-site/README.md +0 -0
  305. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0}/docs-site/docs/architecture/data-preprocessor.mdx +0 -0
  306. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0}/docs-site/docs/architecture/langgraph-agent.mdx +0 -0
  307. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0}/docs-site/docs/architecture/repair-loop.mdx +0 -0
  308. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0}/docs-site/docs/architecture/selector-verifier.mdx +0 -0
  309. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0}/docs-site/docs/community/changelog.mdx +0 -0
  310. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0}/docs-site/docs/community/contributing.mdx +0 -0
  311. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0}/docs-site/docs/community/security.mdx +0 -0
  312. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0}/docs-site/docs/examples/breakage-patterns.mdx +0 -0
  313. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0}/docs-site/docs/examples/demo-walkthrough.mdx +0 -0
  314. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0}/docs-site/docs/guides/auto-heal-on-pr.mdx +0 -0
  315. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0}/docs-site/docs/guides/pr-review-bot.mdx +0 -0
  316. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0}/docs-site/docs/guides/resilient-selectors.mdx +0 -0
  317. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0}/docs-site/docs/guides/selector-verification.mdx +0 -0
  318. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0}/docs-site/docs/guides/suite-vs-single.mdx +0 -0
  319. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0}/docs-site/docs/reference/cli.mdx +0 -0
  320. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0}/docs-site/docs/reference/configuration.mdx +0 -0
  321. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0}/docs-site/docs/reference/github-action.mdx +0 -0
  322. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0}/docs-site/docs/safety/human-in-the-loop.mdx +0 -0
  323. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0}/docs-site/docs/safety/sandbox-modes.mdx +0 -0
  324. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0}/docs-site/docs/safety/scope-guardrail.mdx +0 -0
  325. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0}/docs-site/src/data/help-wanted.json +0 -0
  326. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0}/docs-site/src/pages/markdown-page.mdx +0 -0
  327. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0}/docs-site/static/.nojekyll +0 -0
  328. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0}/docs-site/static/img/docusaurus-social-card.jpg +0 -0
  329. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0}/docs-site/static/img/docusaurus.png +0 -0
  330. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0}/docs-site/static/img/favicon.ico +0 -0
  331. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0}/docs-site/static/img/logo.svg +0 -0
  332. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0}/docs-site/static/img/undraw_docusaurus_mountain.svg +0 -0
  333. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0}/docs-site/static/img/undraw_docusaurus_react.svg +0 -0
  334. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0}/docs-site/static/img/undraw_docusaurus_tree.svg +0 -0
  335. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0}/docs-site/tsconfig.json +0 -0
  336. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0}/tests/__init__.py +0 -0
  337. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0}/tests/test_aria_snapshot.py +0 -0
  338. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0}/tests/test_in_memory_snapshot_store.py +0 -0
  339. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0}/tests/test_normalizer.py +0 -0
  340. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0}/tests/test_selector_check.py +0 -0
  341. {ai_driven_e2e-0.4.0 → ai_driven_e2e-0.5.0}/tests/test_trace_parser.py +0 -0
@@ -0,0 +1,97 @@
1
+ --
2
+ name: code-review
3
+ description: Default target is the current branch diff vs main.
4
+ --
5
+
6
+ # code-review - E2E healer team review
7
+
8
+ The team's own review procedure. It layers **things** on top of a generic quality review:
9
+
10
+ **Diff-scoped.** Review what changed, not the whole tree. Default target is the current branch's diff against `main`.
11
+
12
+ ---
13
+
14
+ ## Review Strategy
15
+
16
+ **Small diff (≤ ~20 files):** one pass. Read the diff, apply the checklist plus the generic dimensions below.
17
+
18
+ **Large diff (many files / whole PR):** fan out parallel review agents by area so coverage is real, then synthesize.
19
+
20
+ ---
21
+
22
+ ## Python-Specific Review Checklist
23
+
24
+ ### 1. Type Safety & Annotations
25
+
26
+ - [ ] Explicit type annotations are used (Python 3.9+ built-in types or `typing` module).
27
+ - [ ] Excessive `Any` usages are avoided; `Optional` / `| None` unions are handled explicitly.
28
+ - [ ] Static type checks (`mypy` / `pyright`) pass without errors on modified files.
29
+
30
+ ### 2. Performance & Resource Management
31
+
32
+ - [ ] List comprehensions vs. generator expressions are chosen appropriately for memory scale.
33
+ - [ ] No **mutable default arguments** in function signatures (e.g., `def fn(data=[])` is forbidden).
34
+ - [ ] Context managers (`with` / `async with`) are strictly used for I/O operations (files, network connections, DB sessions).
35
+ - [ ] `async/await` patterns are non-blocking and proper concurrency primitives (ThreadPool/ProcessPool) are used where applicable.
36
+
37
+ ### 3. Exception Handling & Logging
38
+
39
+ - [ ] Bare `except:` or broad `except Exception:` blocks are strictly avoided unless re-raising or logging tracebacks properly.
40
+ - [ ] Domain-specific custom exceptions are raised instead of generic runtime errors.
41
+ - [ ] Log messages include relevant context parameters without exposing sensitive user data/PII.
42
+
43
+ ### 4. Code Style, Security & Architecture
44
+
45
+ - [ ] Code adheres to PEP 8 standards (enforced via `ruff` / `black`).
46
+ - [ ] Import order follows the standard layout: `Standard Library -> Third-Party -> Local Application`.
47
+ - [ ] Data validation models (`Pydantic` / `dataclasses`) cleanly separate schema definitions from core business logic.
48
+ - [ ] Security practices are met (e.g., no hardcoded secrets, no raw SQL string formatting, no unsafe `eval` / `exec`).
49
+
50
+ ---
51
+
52
+ ## Tooling & Static Analysis Integration
53
+
54
+ Reviewers and agents must verify that the diff passes the following automated Python checks:
55
+
56
+ | Domain | Tool | Action on Failure |
57
+ | :----------------------- | :---------------------- | :---------------------------------------------------------- |
58
+ | **Linting & Formatting** | `ruff`, `black` | Block PR / request immediate fix |
59
+ | **Type Checking** | `mypy`, `pyright` | Categorize as **Major** or **Critical** severity |
60
+ | **Security Scanning** | `bandit` | Categorize hardcoded secrets/flaws as **Critical** severity |
61
+ | **Testing & Coverage** | `pytest`, `coverage.py` | Require test cases for new/modified business logic |
62
+
63
+ ---
64
+
65
+ ## Report — three local outputs, plus one publish step
66
+
67
+ Never ask whether to anchor findings inline in the editor — that is the primary surface, the markdown file is the archive, and the receipt is what the push gate reads. Skipping any of the three means the review did not happen.
68
+
69
+ (GitHub PR comments) is the only step that leaves the machine, so it runs **only when the invocation targets a PR**. See its table.
70
+
71
+ The two local outputs are written differently: the **report file** (4.2) and **PR comments** (4.3) are English only, for the reviewee on GitHub.
72
+
73
+ Finding line format, used in the markdown file and in agent hand-offs:
74
+
75
+ ```
76
+ SEVERITY (Critical | Major | Minor) | path/to/file.ts:LINE | one-line issue | concrete fix
77
+ ```
78
+
79
+ Here's the example format
80
+
81
+ ```markdown
82
+ Critical | app/services/user.py:42 | Mutable default argument used | Change `def get_users(filters={})` to `filters=None` and initialize inside the function.
83
+ Major | app/api/v1/endpoints.py:87 | Unhandled broad exception swallowing | Remove bare `except:` block and explicitly catch `SQLAlchemyError` with traceback logging.
84
+ Minor | app/models/domain.py:15 | Missing return type annotation | Add explicit return type `-> list[User]` to `find_active_users`.
85
+ ```
86
+
87
+ ---
88
+
89
+ ## Merge Gate Policy & Author Autonomy
90
+
91
+ ### Merge Blockers (Critical & Major):
92
+
93
+ Only severe issues that violate system integrity, security, core architecture, or runtime stability block the merge. These must be resolved before merging.
94
+
95
+ ### Author Discretion (Minor / Suggestions):
96
+
97
+ For non-critical findings, style preferences, or non-blocking optimizations, full autonomy is granted to the author. The author retains final ownership and responsibility to decide whether to address them immediately, defer them to follow-up tasks, or leave the code as-is.
@@ -0,0 +1,156 @@
1
+ ---
2
+ name: python-pro
3
+ description: Master Python 3.12+ with modern features, async programming, performance optimization, and production-ready practices. Expert in the latest Python ecosystem including uv, ruff, pydantic, and FastAPI.
4
+ risk: unknown
5
+ source: community
6
+ date_added: '2026-02-27'
7
+ ---
8
+ You are a Python expert specializing in modern Python 3.12+ development with cutting-edge tools and practices from the 2024/2025 ecosystem.
9
+
10
+ ## Use this skill when
11
+
12
+ - Writing or reviewing Python 3.12+ codebases
13
+ - Implementing async workflows or performance optimizations
14
+ - Designing production-ready Python services or tooling
15
+
16
+ ## Do not use this skill when
17
+
18
+ - You need guidance for a non-Python stack
19
+ - You only need basic syntax tutoring
20
+ - You cannot modify Python runtime or dependencies
21
+
22
+ ## Instructions
23
+
24
+ 1. Confirm runtime, dependencies, and performance targets.
25
+ 2. Choose patterns (async, typing, tooling) that match requirements.
26
+ 3. Implement and test with modern tooling.
27
+ 4. Profile and tune for latency, memory, and correctness.
28
+
29
+ ## Purpose
30
+ Expert Python developer mastering Python 3.12+ features, modern tooling, and production-ready development practices. Deep knowledge of the current Python ecosystem including package management with uv, code quality with ruff, and building high-performance applications with async patterns.
31
+
32
+ ## Capabilities
33
+
34
+ ### Modern Python Features
35
+ - Python 3.12+ features including improved error messages, performance optimizations, and type system enhancements
36
+ - Advanced async/await patterns with asyncio, aiohttp, and trio
37
+ - Context managers and the `with` statement for resource management
38
+ - Dataclasses, Pydantic models, and modern data validation
39
+ - Pattern matching (structural pattern matching) and match statements
40
+ - Type hints, generics, and Protocol typing for robust type safety
41
+ - Descriptors, metaclasses, and advanced object-oriented patterns
42
+ - Generator expressions, itertools, and memory-efficient data processing
43
+
44
+ ### Modern Tooling & Development Environment
45
+ - Package management with uv (2024's fastest Python package manager)
46
+ - Code formatting and linting with ruff (replacing black, isort, flake8)
47
+ - Static type checking with mypy and pyright
48
+ - Project configuration with pyproject.toml (modern standard)
49
+ - Virtual environment management with venv, pipenv, or uv
50
+ - Pre-commit hooks for code quality automation
51
+ - Modern Python packaging and distribution practices
52
+ - Dependency management and lock files
53
+
54
+ ### Testing & Quality Assurance
55
+ - Comprehensive testing with pytest and pytest plugins
56
+ - Property-based testing with Hypothesis
57
+ - Test fixtures, factories, and mock objects
58
+ - Coverage analysis with pytest-cov and coverage.py
59
+ - Performance testing and benchmarking with pytest-benchmark
60
+ - Integration testing and test databases
61
+ - Continuous integration with GitHub Actions
62
+ - Code quality metrics and static analysis
63
+
64
+ ### Performance & Optimization
65
+ - Profiling with cProfile, py-spy, and memory_profiler
66
+ - Performance optimization techniques and bottleneck identification
67
+ - Async programming for I/O-bound operations
68
+ - Multiprocessing and concurrent.futures for CPU-bound tasks
69
+ - Memory optimization and garbage collection understanding
70
+ - Caching strategies with functools.lru_cache and external caches
71
+ - Database optimization with SQLAlchemy and async ORMs
72
+ - NumPy, Pandas optimization for data processing
73
+
74
+ ### Web Development & APIs
75
+ - FastAPI for high-performance APIs with automatic documentation
76
+ - Django for full-featured web applications
77
+ - Flask for lightweight web services
78
+ - Pydantic for data validation and serialization
79
+ - SQLAlchemy 2.0+ with async support
80
+ - Background task processing with Celery and Redis
81
+ - WebSocket support with FastAPI and Django Channels
82
+ - Authentication and authorization patterns
83
+
84
+ ### Data Science & Machine Learning
85
+ - NumPy and Pandas for data manipulation and analysis
86
+ - Matplotlib, Seaborn, and Plotly for data visualization
87
+ - Scikit-learn for machine learning workflows
88
+ - Jupyter notebooks and IPython for interactive development
89
+ - Data pipeline design and ETL processes
90
+ - Integration with modern ML libraries (PyTorch, TensorFlow)
91
+ - Data validation and quality assurance
92
+ - Performance optimization for large datasets
93
+
94
+ ### DevOps & Production Deployment
95
+ - Docker containerization and multi-stage builds
96
+ - Kubernetes deployment and scaling strategies
97
+ - Cloud deployment (AWS, GCP, Azure) with Python services
98
+ - Monitoring and logging with structured logging and APM tools
99
+ - Configuration management and environment variables
100
+ - Security best practices and vulnerability scanning
101
+ - CI/CD pipelines and automated testing
102
+ - Performance monitoring and alerting
103
+
104
+ ### Advanced Python Patterns
105
+ - Design patterns implementation (Singleton, Factory, Observer, etc.)
106
+ - SOLID principles in Python development
107
+ - Dependency injection and inversion of control
108
+ - Event-driven architecture and messaging patterns
109
+ - Functional programming concepts and tools
110
+ - Advanced decorators and context managers
111
+ - Metaprogramming and dynamic code generation
112
+ - Plugin architectures and extensible systems
113
+
114
+ ## Behavioral Traits
115
+ - Follows PEP 8 and modern Python idioms consistently
116
+ - Prioritizes code readability and maintainability
117
+ - Uses type hints throughout for better code documentation
118
+ - Implements comprehensive error handling with custom exceptions
119
+ - Writes extensive tests with high coverage (>90%)
120
+ - Leverages Python's standard library before external dependencies
121
+ - Focuses on performance optimization when needed
122
+ - Documents code thoroughly with docstrings and examples
123
+ - Stays current with latest Python releases and ecosystem changes
124
+ - Emphasizes security and best practices in production code
125
+
126
+ ## Knowledge Base
127
+ - Python 3.12+ language features and performance improvements
128
+ - Modern Python tooling ecosystem (uv, ruff, pyright)
129
+ - Current web framework best practices (FastAPI, Django 5.x)
130
+ - Async programming patterns and asyncio ecosystem
131
+ - Data science and machine learning Python stack
132
+ - Modern deployment and containerization strategies
133
+ - Python packaging and distribution best practices
134
+ - Security considerations and vulnerability prevention
135
+ - Performance profiling and optimization techniques
136
+ - Testing strategies and quality assurance practices
137
+
138
+ ## Response Approach
139
+ 1. **Analyze requirements** for modern Python best practices
140
+ 2. **Suggest current tools and patterns** from the 2024/2025 ecosystem
141
+ 3. **Provide production-ready code** with proper error handling and type hints
142
+ 4. **Include comprehensive tests** with pytest and appropriate fixtures
143
+ 5. **Consider performance implications** and suggest optimizations
144
+ 6. **Document security considerations** and best practices
145
+ 7. **Recommend modern tooling** for development workflow
146
+ 8. **Include deployment strategies** when applicable
147
+
148
+ ## Example Interactions
149
+ - "Help me migrate from pip to uv for package management"
150
+ - "Optimize this Python code for better async performance"
151
+ - "Design a FastAPI application with proper error handling and validation"
152
+ - "Set up a modern Python project with ruff, mypy, and pytest"
153
+ - "Implement a high-performance data processing pipeline"
154
+ - "Create a production-ready Dockerfile for a Python application"
155
+ - "Design a scalable background task system with Celery"
156
+ - "Implement modern authentication patterns in FastAPI"
@@ -0,0 +1,32 @@
1
+ # Codex workspace setup
2
+
3
+ This directory contains repository-scoped Codex defaults. Codex loads
4
+ `.codex/config.toml` only after the repository is marked as trusted.
5
+
6
+ ## Defaults
7
+
8
+ - Ask before an action needs elevated permission.
9
+ - Allow writes inside this repository only.
10
+ - Keep web search in cached mode and disable shell network access by default.
11
+ - Leave personal settings such as model, provider, authentication, and notifications in
12
+ `~/.codex/config.toml`; do not commit them here.
13
+
14
+ ## Standard verification
15
+
16
+ Choose the smallest relevant check while iterating, then run the complete checks before
17
+ hand-off when the environment allows it.
18
+
19
+ ```bash
20
+ make lint
21
+ make typecheck
22
+ make test
23
+ ```
24
+
25
+ `make check` combines linting and type checking. Use `make run ARGS="..."` only with a
26
+ known failing Playwright target and its log or diff.
27
+
28
+ ## Repair guardrail
29
+
30
+ For E2E repair work, edits may change selectors or wait conditions only. Never change
31
+ assertions, test intent, or application business logic to make a test pass. Follow
32
+ `docs/sandbox.md` for the target-file and command boundaries.
@@ -0,0 +1,9 @@
1
+ # Repository-scoped defaults for trusted Codex sessions.
2
+ # Personal model, provider, auth, and notification settings belong in ~/.codex/config.toml.
3
+
4
+ approval_policy = "on-request"
5
+ sandbox_mode = "workspace-write"
6
+ web_search = "cached"
7
+
8
+ [sandbox_workspace_write]
9
+ network_access = false
@@ -17,6 +17,15 @@ E2E_HEALER_LLM_MAX_TOKENS=4096
17
17
  # E2E_HEALER_LLM_BASE_URL= # set for Azure / OpenAI-compatible endpoints
18
18
  # ------------------------------------------------------------------------------------
19
19
 
20
+ # --- OrcaRouter example ---------------------------------------------------------------
21
+ # OrcaRouter is an optional OpenAI-compatible provider. Its dedicated variables work
22
+ # alongside the generic E2E_HEALER_LLM_* variables; generic values take precedence.
23
+ # E2E_HEALER_LLM_PROVIDER=orcarouter
24
+ # ORCAROUTER_API_KEY=your_orcarouter_api_key_here
25
+ # ORCAROUTER_BASE_URL=https://api.orcarouter.ai/v1 # default; override when needed
26
+ # E2E_HEALER_LLM_MODEL=your_structured_output_model
27
+ # ------------------------------------------------------------------------------------
28
+
20
29
  # --- Anthropic (Claude) example ------------------------------------------------------
21
30
  # Requires the optional extra: pip install "ai-driven-e2e[anthropic]". Set the provider and
22
31
  # either E2E_HEALER_LLM_API_KEY or the standard ANTHROPIC_API_KEY (fallback). Structured
@@ -35,6 +44,17 @@ E2E_HEALER_LLM_MAX_TOKENS=4096
35
44
  # E2E_HEALER_LLM_BASE_URL= # override only for a remote Ollama host
36
45
  # ------------------------------------------------------------------------------------
37
46
 
47
+ # --- DeepSeek (Responses API) example --------------------------------------------------
48
+ # Built-in adapter speaking DeepSeek's stateless Responses API at https://api.deepseek.com.
49
+ # Set the provider and either E2E_HEALER_LLM_API_KEY or the standard DEEPSEEK_API_KEY
50
+ # (fallback). The Responses API currently supports deepseek-v4-flash only; structured
51
+ # output uses the Responses API text.format json_schema parameter.
52
+ # E2E_HEALER_LLM_PROVIDER=deepseek
53
+ # DEEPSEEK_API_KEY=sk-... # or E2E_HEALER_LLM_API_KEY=sk-...
54
+ # E2E_HEALER_LLM_MODEL=deepseek-v4-flash
55
+ # E2E_HEALER_LLM_BASE_URL= # default https://api.deepseek.com; override for a proxy
56
+ # ------------------------------------------------------------------------------------
57
+
38
58
  # Legacy NVIDIA NIM vars (OpenAI-compatible Structured Outputs). Still supported: when
39
59
  # LLM_PROVIDER=nvidia these are folded into the generic LLM_* vars above, so existing
40
60
  # setups keep working unchanged. New configs should prefer the LLM_* vars.
@@ -43,7 +63,8 @@ E2E_HEALER_NVIDIA_BASE_URL=https://integrate.api.nvidia.com/v1
43
63
  E2E_HEALER_NVIDIA_MODEL=openai/gpt-oss-120b
44
64
  E2E_HEALER_NVIDIA_MAX_TOKENS=4096
45
65
 
46
- # Repair loop
66
+ # Repair loop — must be between 1 and 3 (Commandment #3: loop_count never exceeds 3, the
67
+ # Router owns termination). Out-of-range values are rejected at load.
47
68
  E2E_HEALER_MAX_LOOPS=3
48
69
 
49
70
  # Playwright invocation used by the Test Runner node
@@ -62,5 +83,10 @@ E2E_HEALER_WRITE_GLOBS=*.spec.js,*.spec.jsx,*.spec.ts,*.spec.tsx,*.test.js,*.tes
62
83
  E2E_HEALER_DENY_GLOBS=.env,.env.*,**/.env,**/.env.*,.git/**,.github/**,node_modules/**,.venv/**,uv.lock,package-lock.json,pnpm-lock.yaml,yarn.lock
63
84
  E2E_HEALER_ALLOW_TEMP_HELPER=true
64
85
 
86
+ # Architecture boundary for generated patches. Deny rules take precedence.
87
+ # Example: allow only tests and deny generated/vendor layers.
88
+ E2E_HEALER_ARCHITECTURE_ALLOW_GLOBS=**/*
89
+ E2E_HEALER_ARCHITECTURE_DENY_GLOBS=
90
+
65
91
  # Logging
66
92
  E2E_HEALER_LOG_LEVEL=INFO
@@ -4,7 +4,7 @@ Describe the change and the motivation.
4
4
 
5
5
  ## How verified
6
6
 
7
- - [ ] `make check` (ruff + pyright) passes
7
+ - [ ] `make check` (ruff lint + format check + pyright) passes
8
8
  - [ ] `make test` passes
9
9
  - [ ] Added/updated tests for behavior changes
10
10
 
@@ -0,0 +1,51 @@
1
+ name: assign-reviewer
2
+
3
+ on:
4
+ pull_request_target:
5
+ types: [opened, reopened, ready_for_review]
6
+
7
+ permissions:
8
+ pull-requests: write
9
+
10
+ jobs:
11
+ assign:
12
+ runs-on: ubuntu-latest
13
+ # Skip drafts. Author exclusion is handled in the script so a maintainer's
14
+ # own PR still triggers the job and gets the *other* maintainer as reviewer.
15
+ if: github.event.pull_request.draft == false
16
+ steps:
17
+ - name: Request review from maintainers
18
+ uses: actions/github-script@v7
19
+ with:
20
+ script: |
21
+ const MAINTAINERS = ['Lee-Dongwook', 'Avaneesh635', 'Adityai1411','kamleshkc2002'];
22
+ const { owner, repo } = context.repo;
23
+ const pull_number = context.payload.pull_request.number;
24
+ const author = context.payload.pull_request.user.login;
25
+
26
+ // Never ask someone to review their own PR.
27
+ const candidates = MAINTAINERS.filter((login) => login !== author);
28
+ if (candidates.length === 0) {
29
+ core.info(`No reviewers to request (author "${author}" is the only maintainer).`);
30
+ return;
31
+ }
32
+
33
+ // Request each reviewer independently. requestReviewers is atomic per call,
34
+ // so a single non-collaborator (e.g. a pending invite that 422s) would sink
35
+ // the whole batch and assign nobody. Per-reviewer calls isolate that failure.
36
+ const requested = [];
37
+ const skipped = [];
38
+ for (const login of candidates) {
39
+ try {
40
+ await github.rest.pulls.requestReviewers({ owner, repo, pull_number, reviewers: [login] });
41
+ requested.push(login);
42
+ } catch (error) {
43
+ core.info(`Skipping "${login}": ${error.status} — ${error.message}`);
44
+ skipped.push(login);
45
+ }
46
+ }
47
+
48
+ core.info(`Requested review from: ${requested.join(', ') || '(none)'}`);
49
+ if (skipped.length > 0) {
50
+ core.info(`Skipped (not assignable, likely pending invite): ${skipped.join(', ')}`);
51
+ }
@@ -0,0 +1,190 @@
1
+ name: ci
2
+
3
+ on:
4
+ push:
5
+ branches: [main]
6
+ pull_request:
7
+
8
+ jobs:
9
+ check:
10
+ runs-on: ubuntu-latest
11
+ permissions:
12
+ contents: read
13
+ steps:
14
+ - name: Checkout
15
+ uses: actions/checkout@v4
16
+
17
+ - name: Install uv
18
+ uses: astral-sh/setup-uv@v3
19
+
20
+ - name: Set up Python
21
+ run: uv python install 3.13
22
+
23
+ - name: Check lockfile is up to date
24
+ run: uv lock --check
25
+
26
+ - name: Install dependencies
27
+ run: uv sync --locked --extra dev
28
+
29
+ - name: Check lint, formatting, and types
30
+ run: make check
31
+
32
+ - name: Test with coverage
33
+ run: make coverage
34
+
35
+ - name: Upload coverage report
36
+ uses: actions/upload-artifact@v4
37
+ with:
38
+ name: coverage-xml
39
+ path: coverage.xml
40
+
41
+ examples-repro:
42
+ runs-on: ubuntu-latest
43
+ steps:
44
+ - uses: actions/checkout@v4
45
+
46
+ - uses: pnpm/action-setup@v4
47
+ with:
48
+ package_json_file: examples/package.json
49
+
50
+ - uses: actions/setup-node@v4
51
+ with:
52
+ node-version: 24
53
+ cache: pnpm
54
+ cache-dependency-path: examples/pnpm-lock.yaml
55
+
56
+ - name: Install Playwright demo deps
57
+ working-directory: examples
58
+ run: pnpm install --frozen-lockfile
59
+
60
+ - name: Install Chromium
61
+ working-directory: examples
62
+ run: pnpm exec playwright install chromium
63
+
64
+ - name: Install uv
65
+ uses: astral-sh/setup-uv@v3
66
+
67
+ - name: Set up Python
68
+ run: uv python install 3.13
69
+
70
+ - name: Install Python dependencies
71
+ run: uv sync --locked --extra dev
72
+
73
+ - name: Verify cross-process Shadow replay
74
+ run: uv run pytest tests/test_shadow_runtime_integration.py -v
75
+
76
+ - name: Verify demo is green on a clean checkout
77
+ working-directory: examples
78
+ run: pnpm exec playwright test scenarios/id-rename
79
+
80
+ - name: Verify applying the change breaks the selector
81
+ working-directory: examples
82
+ run: |
83
+ git apply scenarios/id-rename/change.patch
84
+ set +e
85
+ pnpm exec playwright test scenarios/id-rename
86
+ code=$?
87
+ set -e
88
+ if [ "$code" -eq 0 ]; then
89
+ echo "Expected scenarios/id-rename to fail on #submit-btn after applying change.patch"
90
+ exit 1
91
+ fi
92
+ echo "Demo correctly reproduces the broken-selector failure"
93
+
94
+ action-consumer:
95
+ runs-on: ubuntu-latest
96
+ permissions:
97
+ contents: read
98
+ steps:
99
+ - name: Checkout action
100
+ uses: actions/checkout@v4
101
+ with:
102
+ path: action
103
+ persist-credentials: false
104
+
105
+ - name: Create JavaScript-only consumer repository
106
+ run: |
107
+ cp -R action/ci/action-consumer "$GITHUB_WORKSPACE/consumer"
108
+ git -C "$GITHUB_WORKSPACE/consumer" init
109
+
110
+ - name: Run action from the consumer repository
111
+ id: healer
112
+ uses: ./action
113
+ with:
114
+ working-directory: consumer
115
+ test-path: tests/example.spec.js
116
+ playwright-cmd: node smoke.mjs
117
+ nvidia-api-key: unused-for-passing-smoke-test
118
+
119
+ - name: Verify action outcome
120
+ env:
121
+ ACTION_OUTCOME: ${{ steps.healer.outputs.outcome }}
122
+ run: test "$ACTION_OUTCOME" = "passed"
123
+ check-secret:
124
+ runs-on: ubuntu-latest
125
+ outputs:
126
+ has-key: ${{ steps.check.outputs.has-key }}
127
+ steps:
128
+ - id: check
129
+ env:
130
+ E2E_HEALER_NVIDIA_API_KEY: ${{ secrets.E2E_HEALER_NVIDIA_API_KEY }}
131
+ run: |
132
+ if [ -n "$E2E_HEALER_NVIDIA_API_KEY" ]; then
133
+ echo "has-key=true" >> "$GITHUB_OUTPUT"
134
+ else
135
+ echo "has-key=false" >> "$GITHUB_OUTPUT"
136
+ fi
137
+
138
+ examples-heal:
139
+ runs-on: ubuntu-latest
140
+ needs: [check, examples-repro, action-consumer, check-secret]
141
+ if: needs.check-secret.outputs.has-key == 'true'
142
+ steps:
143
+ - uses: actions/checkout@v4
144
+
145
+ - name: Install uv
146
+ uses: astral-sh/setup-uv@v3
147
+
148
+ - name: Set up Python
149
+ run: uv python install 3.13
150
+
151
+ - name: Check lockfile is up to date
152
+ run: uv lock --check
153
+
154
+ - name: Install Python dependencies
155
+ run: uv sync --locked --extra dev
156
+
157
+ - uses: pnpm/action-setup@v4
158
+ with:
159
+ package_json_file: examples/package.json
160
+
161
+ - uses: actions/setup-node@v4
162
+ with:
163
+ node-version: 24
164
+ cache: pnpm
165
+ cache-dependency-path: examples/pnpm-lock.yaml
166
+
167
+ - name: Install Playwright demo deps
168
+ working-directory: examples
169
+ run: pnpm install --frozen-lockfile
170
+
171
+ - name: Install Chromium
172
+ working-directory: examples
173
+ run: pnpm exec playwright install chromium
174
+
175
+ - name: Apply the breaking change
176
+ working-directory: examples
177
+ run: git apply scenarios/id-rename/change.patch
178
+
179
+ - name: Capture failing Playwright log
180
+ working-directory: examples
181
+ run: |
182
+ set +e
183
+ pnpm exec playwright test scenarios/id-rename 2>&1 | tee scenarios/id-rename/playwright.log
184
+ set -e
185
+
186
+ - name: Dry-run heal against demo
187
+ working-directory: examples
188
+ env:
189
+ E2E_HEALER_NVIDIA_API_KEY: ${{ secrets.E2E_HEALER_NVIDIA_API_KEY }}
190
+ run: uv run e2e-healer scenarios/id-rename/spec.ts --log scenarios/id-rename/playwright.log --diff scenarios/id-rename/change.patch --dry-run
@@ -0,0 +1,72 @@
1
+ name: Deploy docs to GitHub Pages
2
+
3
+ # Builds the Docusaurus site in docs-site/ and publishes it to GitHub Pages.
4
+ # Runs on pushes to main that touch the docs, and can be triggered manually.
5
+ on:
6
+ push:
7
+ branches: [main]
8
+ paths:
9
+ - 'docs-site/**'
10
+ - '.github/workflows/deploy-docs.yml'
11
+ workflow_dispatch:
12
+
13
+ # Least-privilege permissions required by the Pages deployment.
14
+ permissions:
15
+ contents: read
16
+ pages: write
17
+ id-token: write
18
+
19
+ # One deploy at a time; don't cancel an in-flight publish.
20
+ concurrency:
21
+ group: pages
22
+ cancel-in-progress: false
23
+
24
+ jobs:
25
+ build:
26
+ runs-on: ubuntu-latest
27
+ defaults:
28
+ run:
29
+ working-directory: docs-site
30
+ steps:
31
+ - name: Checkout
32
+ uses: actions/checkout@v4
33
+
34
+ - name: Setup pnpm
35
+ uses: pnpm/action-setup@v4
36
+ with:
37
+ version: 9.15.0
38
+
39
+ - name: Setup Node
40
+ uses: actions/setup-node@v4
41
+ with:
42
+ node-version: 22
43
+ cache: pnpm
44
+ cache-dependency-path: docs-site/pnpm-lock.yaml
45
+
46
+ - name: Install dependencies
47
+ run: pnpm install --frozen-lockfile
48
+
49
+ - name: Build site
50
+ run: pnpm build
51
+ env:
52
+ # Set these as repository secrets (Settings → Secrets and variables →
53
+ # Actions). Optional: the build succeeds without them, just without
54
+ # analytics / Search Console verification wired in.
55
+ GA4_ID: ${{ secrets.GA4_ID }}
56
+ GOOGLE_SITE_VERIFICATION: ${{ secrets.GOOGLE_SITE_VERIFICATION }}
57
+
58
+ - name: Upload Pages artifact
59
+ uses: actions/upload-pages-artifact@v3
60
+ with:
61
+ path: docs-site/build
62
+
63
+ deploy:
64
+ needs: build
65
+ runs-on: ubuntu-latest
66
+ environment:
67
+ name: github-pages
68
+ url: ${{ steps.deployment.outputs.page_url }}
69
+ steps:
70
+ - name: Deploy to GitHub Pages
71
+ id: deployment
72
+ uses: actions/deploy-pages@v4