ai-driven-dev-v2 0.1.0a1__py3-none-any.whl

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 (286) hide show
  1. ai_driven_dev_v2-0.1.0a1.dist-info/METADATA +381 -0
  2. ai_driven_dev_v2-0.1.0a1.dist-info/RECORD +286 -0
  3. ai_driven_dev_v2-0.1.0a1.dist-info/WHEEL +4 -0
  4. ai_driven_dev_v2-0.1.0a1.dist-info/entry_points.txt +2 -0
  5. ai_driven_dev_v2-0.1.0a1.dist-info/licenses/LICENSE +202 -0
  6. aidd/AGENTS.md +9 -0
  7. aidd/__init__.py +5 -0
  8. aidd/_resources/contracts/AGENTS.md +10 -0
  9. aidd/_resources/contracts/documents/AGENTS.md +9 -0
  10. aidd/_resources/contracts/documents/answers.md +47 -0
  11. aidd/_resources/contracts/documents/idea-brief.md +23 -0
  12. aidd/_resources/contracts/documents/implementation-report.md +24 -0
  13. aidd/_resources/contracts/documents/plan.md +39 -0
  14. aidd/_resources/contracts/documents/qa-report.md +27 -0
  15. aidd/_resources/contracts/documents/questions.md +45 -0
  16. aidd/_resources/contracts/documents/repair-brief.md +64 -0
  17. aidd/_resources/contracts/documents/research-notes.md +40 -0
  18. aidd/_resources/contracts/documents/review-report.md +26 -0
  19. aidd/_resources/contracts/documents/review-spec-report.md +45 -0
  20. aidd/_resources/contracts/documents/stage-brief.md +58 -0
  21. aidd/_resources/contracts/documents/stage-result.md +76 -0
  22. aidd/_resources/contracts/documents/tasklist.md +24 -0
  23. aidd/_resources/contracts/documents/validator-report.md +81 -0
  24. aidd/_resources/contracts/examples/AGENTS.md +9 -0
  25. aidd/_resources/contracts/examples/common-documents/AGENTS.md +3 -0
  26. aidd/_resources/contracts/examples/common-documents/answers.md +4 -0
  27. aidd/_resources/contracts/examples/common-documents/questions.md +4 -0
  28. aidd/_resources/contracts/examples/common-documents/repair-brief.md +18 -0
  29. aidd/_resources/contracts/examples/common-documents/stage-brief.md +27 -0
  30. aidd/_resources/contracts/examples/common-documents/stage-result.md +34 -0
  31. aidd/_resources/contracts/examples/common-documents/validator-report.md +19 -0
  32. aidd/_resources/contracts/examples/idea/AGENTS.md +3 -0
  33. aidd/_resources/contracts/examples/idea/answers.md +5 -0
  34. aidd/_resources/contracts/examples/idea/idea-brief.md +19 -0
  35. aidd/_resources/contracts/examples/idea/questions.md +5 -0
  36. aidd/_resources/contracts/examples/idea/stage-result.md +40 -0
  37. aidd/_resources/contracts/examples/idea/validator-report.md +25 -0
  38. aidd/_resources/contracts/examples/implement/AGENTS.md +3 -0
  39. aidd/_resources/contracts/examples/implement/README.md +6 -0
  40. aidd/_resources/contracts/examples/implement/repair-needed/implementation-report.md +22 -0
  41. aidd/_resources/contracts/examples/implement/repair-needed/repair-brief.md +20 -0
  42. aidd/_resources/contracts/examples/implement/repair-needed/stage-result.md +39 -0
  43. aidd/_resources/contracts/examples/implement/repair-needed/validator-report.md +27 -0
  44. aidd/_resources/contracts/examples/implement/success/implementation-report.md +24 -0
  45. aidd/_resources/contracts/examples/implement/success/stage-result.md +38 -0
  46. aidd/_resources/contracts/examples/implement/success/validator-report.md +25 -0
  47. aidd/_resources/contracts/examples/plan/AGENTS.md +3 -0
  48. aidd/_resources/contracts/examples/plan/README.md +6 -0
  49. aidd/_resources/contracts/examples/plan/invalid/plan.md +34 -0
  50. aidd/_resources/contracts/examples/plan/invalid/questions.md +5 -0
  51. aidd/_resources/contracts/examples/plan/invalid/stage-result.md +39 -0
  52. aidd/_resources/contracts/examples/plan/invalid/validator-report.md +26 -0
  53. aidd/_resources/contracts/examples/plan/valid/plan.md +47 -0
  54. aidd/_resources/contracts/examples/plan/valid/stage-result.md +38 -0
  55. aidd/_resources/contracts/examples/plan/valid/validator-report.md +25 -0
  56. aidd/_resources/contracts/examples/qa/AGENTS.md +3 -0
  57. aidd/_resources/contracts/examples/qa/README.md +6 -0
  58. aidd/_resources/contracts/examples/qa/repair-needed/qa-report.md +21 -0
  59. aidd/_resources/contracts/examples/qa/repair-needed/repair-brief.md +20 -0
  60. aidd/_resources/contracts/examples/qa/repair-needed/stage-result.md +40 -0
  61. aidd/_resources/contracts/examples/qa/repair-needed/validator-report.md +27 -0
  62. aidd/_resources/contracts/examples/qa/success/qa-report.md +33 -0
  63. aidd/_resources/contracts/examples/qa/success/stage-result.md +38 -0
  64. aidd/_resources/contracts/examples/qa/success/validator-report.md +25 -0
  65. aidd/_resources/contracts/examples/research/AGENTS.md +3 -0
  66. aidd/_resources/contracts/examples/research/README.md +6 -0
  67. aidd/_resources/contracts/examples/research/answered/answers.md +5 -0
  68. aidd/_resources/contracts/examples/research/answered/questions.md +5 -0
  69. aidd/_resources/contracts/examples/research/answered/research-notes.md +30 -0
  70. aidd/_resources/contracts/examples/research/answered/stage-result.md +40 -0
  71. aidd/_resources/contracts/examples/research/answered/validator-report.md +25 -0
  72. aidd/_resources/contracts/examples/research/unresolved/questions.md +5 -0
  73. aidd/_resources/contracts/examples/research/unresolved/research-notes.md +25 -0
  74. aidd/_resources/contracts/examples/research/unresolved/stage-result.md +39 -0
  75. aidd/_resources/contracts/examples/research/unresolved/validator-report.md +25 -0
  76. aidd/_resources/contracts/examples/review/AGENTS.md +3 -0
  77. aidd/_resources/contracts/examples/review/README.md +6 -0
  78. aidd/_resources/contracts/examples/review/repair-needed/repair-brief.md +20 -0
  79. aidd/_resources/contracts/examples/review/repair-needed/review-report.md +17 -0
  80. aidd/_resources/contracts/examples/review/repair-needed/stage-result.md +39 -0
  81. aidd/_resources/contracts/examples/review/repair-needed/validator-report.md +27 -0
  82. aidd/_resources/contracts/examples/review/success/review-report.md +25 -0
  83. aidd/_resources/contracts/examples/review/success/stage-result.md +38 -0
  84. aidd/_resources/contracts/examples/review/success/validator-report.md +25 -0
  85. aidd/_resources/contracts/examples/review-spec/AGENTS.md +3 -0
  86. aidd/_resources/contracts/examples/review-spec/review-spec-report.md +29 -0
  87. aidd/_resources/contracts/examples/review-spec/stage-result.md +38 -0
  88. aidd/_resources/contracts/examples/review-spec/validator-report.md +25 -0
  89. aidd/_resources/contracts/examples/tasklist/AGENTS.md +3 -0
  90. aidd/_resources/contracts/examples/tasklist/stage-result.md +38 -0
  91. aidd/_resources/contracts/examples/tasklist/tasklist.md +43 -0
  92. aidd/_resources/contracts/examples/tasklist/validator-report.md +25 -0
  93. aidd/_resources/contracts/stages/AGENTS.md +10 -0
  94. aidd/_resources/contracts/stages/idea.md +112 -0
  95. aidd/_resources/contracts/stages/implement.md +109 -0
  96. aidd/_resources/contracts/stages/plan.md +112 -0
  97. aidd/_resources/contracts/stages/qa.md +118 -0
  98. aidd/_resources/contracts/stages/research.md +111 -0
  99. aidd/_resources/contracts/stages/review-spec.md +117 -0
  100. aidd/_resources/contracts/stages/review.md +123 -0
  101. aidd/_resources/contracts/stages/tasklist.md +116 -0
  102. aidd/_resources/prompt-packs/AGENTS.md +9 -0
  103. aidd/_resources/prompt-packs/common/AGENTS.md +9 -0
  104. aidd/_resources/prompt-packs/common/run-rules.md +7 -0
  105. aidd/_resources/prompt-packs/idea/AGENTS.md +9 -0
  106. aidd/_resources/prompt-packs/implement/AGENTS.md +9 -0
  107. aidd/_resources/prompt-packs/plan/AGENTS.md +9 -0
  108. aidd/_resources/prompt-packs/qa/AGENTS.md +9 -0
  109. aidd/_resources/prompt-packs/research/AGENTS.md +9 -0
  110. aidd/_resources/prompt-packs/review/AGENTS.md +9 -0
  111. aidd/_resources/prompt-packs/review-spec/AGENTS.md +9 -0
  112. aidd/_resources/prompt-packs/stages/AGENTS.md +9 -0
  113. aidd/_resources/prompt-packs/stages/idea/AGENTS.md +10 -0
  114. aidd/_resources/prompt-packs/stages/idea/interview.md +12 -0
  115. aidd/_resources/prompt-packs/stages/idea/repair.md +80 -0
  116. aidd/_resources/prompt-packs/stages/idea/run.md +70 -0
  117. aidd/_resources/prompt-packs/stages/idea/system.md +20 -0
  118. aidd/_resources/prompt-packs/stages/implement/AGENTS.md +10 -0
  119. aidd/_resources/prompt-packs/stages/implement/interview.md +13 -0
  120. aidd/_resources/prompt-packs/stages/implement/repair.md +86 -0
  121. aidd/_resources/prompt-packs/stages/implement/run.md +80 -0
  122. aidd/_resources/prompt-packs/stages/implement/system.md +22 -0
  123. aidd/_resources/prompt-packs/stages/plan/AGENTS.md +10 -0
  124. aidd/_resources/prompt-packs/stages/plan/interview.md +18 -0
  125. aidd/_resources/prompt-packs/stages/plan/repair.md +75 -0
  126. aidd/_resources/prompt-packs/stages/plan/run.md +81 -0
  127. aidd/_resources/prompt-packs/stages/plan/system.md +22 -0
  128. aidd/_resources/prompt-packs/stages/qa/AGENTS.md +10 -0
  129. aidd/_resources/prompt-packs/stages/qa/interview.md +12 -0
  130. aidd/_resources/prompt-packs/stages/qa/repair.md +82 -0
  131. aidd/_resources/prompt-packs/stages/qa/run.md +85 -0
  132. aidd/_resources/prompt-packs/stages/qa/system.md +23 -0
  133. aidd/_resources/prompt-packs/stages/research/AGENTS.md +10 -0
  134. aidd/_resources/prompt-packs/stages/research/interview.md +18 -0
  135. aidd/_resources/prompt-packs/stages/research/repair.md +71 -0
  136. aidd/_resources/prompt-packs/stages/research/run.md +72 -0
  137. aidd/_resources/prompt-packs/stages/research/system.md +21 -0
  138. aidd/_resources/prompt-packs/stages/review/AGENTS.md +10 -0
  139. aidd/_resources/prompt-packs/stages/review/interview.md +12 -0
  140. aidd/_resources/prompt-packs/stages/review/repair.md +89 -0
  141. aidd/_resources/prompt-packs/stages/review/run.md +90 -0
  142. aidd/_resources/prompt-packs/stages/review/system.md +22 -0
  143. aidd/_resources/prompt-packs/stages/review-spec/AGENTS.md +10 -0
  144. aidd/_resources/prompt-packs/stages/review-spec/interview.md +18 -0
  145. aidd/_resources/prompt-packs/stages/review-spec/repair.md +81 -0
  146. aidd/_resources/prompt-packs/stages/review-spec/run.md +75 -0
  147. aidd/_resources/prompt-packs/stages/review-spec/system.md +21 -0
  148. aidd/_resources/prompt-packs/stages/tasklist/AGENTS.md +10 -0
  149. aidd/_resources/prompt-packs/stages/tasklist/interview.md +12 -0
  150. aidd/_resources/prompt-packs/stages/tasklist/repair.md +80 -0
  151. aidd/_resources/prompt-packs/stages/tasklist/run.md +71 -0
  152. aidd/_resources/prompt-packs/stages/tasklist/system.md +22 -0
  153. aidd/_resources/prompt-packs/tasklist/AGENTS.md +9 -0
  154. aidd/adapters/AGENTS.md +10 -0
  155. aidd/adapters/__init__.py +1 -0
  156. aidd/adapters/base.py +19 -0
  157. aidd/adapters/claude_code/AGENTS.md +10 -0
  158. aidd/adapters/claude_code/__init__.py +5 -0
  159. aidd/adapters/claude_code/probe.py +56 -0
  160. aidd/adapters/claude_code/runner.py +742 -0
  161. aidd/adapters/codex/AGENTS.md +10 -0
  162. aidd/adapters/codex/__init__.py +5 -0
  163. aidd/adapters/codex/probe.py +48 -0
  164. aidd/adapters/codex/runner.py +309 -0
  165. aidd/adapters/generic_cli/AGENTS.md +10 -0
  166. aidd/adapters/generic_cli/__init__.py +5 -0
  167. aidd/adapters/generic_cli/probe.py +28 -0
  168. aidd/adapters/generic_cli/runner.py +212 -0
  169. aidd/adapters/native_prompt.py +187 -0
  170. aidd/adapters/opencode/AGENTS.md +10 -0
  171. aidd/adapters/opencode/__init__.py +5 -0
  172. aidd/adapters/opencode/probe.py +48 -0
  173. aidd/adapters/opencode/runner.py +343 -0
  174. aidd/adapters/path_resolution.py +46 -0
  175. aidd/adapters/probe_support.py +207 -0
  176. aidd/adapters/runner_support.py +169 -0
  177. aidd/adapters/runtime_artifacts.py +32 -0
  178. aidd/adapters/runtime_events.py +244 -0
  179. aidd/adapters/runtime_execution.py +61 -0
  180. aidd/adapters/runtime_registry.py +123 -0
  181. aidd/adapters/subprocess_streaming.py +196 -0
  182. aidd/adapters/surface.py +464 -0
  183. aidd/cli/AGENTS.md +10 -0
  184. aidd/cli/__init__.py +1 -0
  185. aidd/cli/doctor.py +84 -0
  186. aidd/cli/eval.py +114 -0
  187. aidd/cli/init_command.py +25 -0
  188. aidd/cli/main.py +123 -0
  189. aidd/cli/run.py +431 -0
  190. aidd/cli/run_lookup.py +31 -0
  191. aidd/cli/stage.py +89 -0
  192. aidd/cli/stage_inspection.py +129 -0
  193. aidd/cli/stage_run.py +485 -0
  194. aidd/cli/support.py +145 -0
  195. aidd/cli/ui.py +801 -0
  196. aidd/compatibility.py +42 -0
  197. aidd/config.py +465 -0
  198. aidd/core/AGENTS.md +9 -0
  199. aidd/core/__init__.py +1 -0
  200. aidd/core/adapter_interview.py +25 -0
  201. aidd/core/contracts.py +17 -0
  202. aidd/core/interview.py +470 -0
  203. aidd/core/markdown.py +199 -0
  204. aidd/core/models/AGENTS.md +8 -0
  205. aidd/core/models/__init__.py +1 -0
  206. aidd/core/models/run.py +347 -0
  207. aidd/core/operator_frontend.py +236 -0
  208. aidd/core/project_set.py +142 -0
  209. aidd/core/repair.py +639 -0
  210. aidd/core/resources.py +109 -0
  211. aidd/core/run_inspection.py +646 -0
  212. aidd/core/run_lookup.py +369 -0
  213. aidd/core/run_store.py +873 -0
  214. aidd/core/runtime_readiness.py +91 -0
  215. aidd/core/stage_graph.py +310 -0
  216. aidd/core/stage_interview_routing.py +117 -0
  217. aidd/core/stage_invocation.py +267 -0
  218. aidd/core/stage_manifest.py +82 -0
  219. aidd/core/stage_models.py +198 -0
  220. aidd/core/stage_outputs.py +256 -0
  221. aidd/core/stage_paths.py +17 -0
  222. aidd/core/stage_preparation.py +163 -0
  223. aidd/core/stage_registry.py +257 -0
  224. aidd/core/stage_runner.py +397 -0
  225. aidd/core/stage_terminal.py +193 -0
  226. aidd/core/stage_validation.py +338 -0
  227. aidd/core/stages.py +29 -0
  228. aidd/core/state_machine.py +69 -0
  229. aidd/core/work_item.py +8 -0
  230. aidd/core/workflow_service.py +264 -0
  231. aidd/core/workspace.py +202 -0
  232. aidd/evals/AGENTS.md +9 -0
  233. aidd/evals/__init__.py +1 -0
  234. aidd/evals/log_analysis.py +788 -0
  235. aidd/evals/quality.py +610 -0
  236. aidd/evals/reporting.py +278 -0
  237. aidd/evals/self_repair_probes.py +111 -0
  238. aidd/evals/stage_timing.py +819 -0
  239. aidd/evals/verdicts.py +193 -0
  240. aidd/harness/AGENTS.md +9 -0
  241. aidd/harness/__init__.py +18 -0
  242. aidd/harness/adapter_conformance.py +138 -0
  243. aidd/harness/conformance_matrix.py +113 -0
  244. aidd/harness/eval_classification.py +255 -0
  245. aidd/harness/eval_execution.py +217 -0
  246. aidd/harness/eval_models.py +110 -0
  247. aidd/harness/eval_preparation.py +149 -0
  248. aidd/harness/eval_reports.py +918 -0
  249. aidd/harness/eval_runner.py +248 -0
  250. aidd/harness/install_artifact.py +230 -0
  251. aidd/harness/live_runtime_config.py +256 -0
  252. aidd/harness/live_workspace_bootstrap.py +173 -0
  253. aidd/harness/repo_prep.py +299 -0
  254. aidd/harness/result_bundle.py +375 -0
  255. aidd/harness/runner.py +399 -0
  256. aidd/harness/scenario_loader.py +22 -0
  257. aidd/harness/scenarios.py +576 -0
  258. aidd/runtime_logs/AGENTS.md +8 -0
  259. aidd/runtime_logs/__init__.py +1 -0
  260. aidd/runtime_logs/model.py +10 -0
  261. aidd/validators/AGENTS.md +9 -0
  262. aidd/validators/__init__.py +1 -0
  263. aidd/validators/cross_document.py +309 -0
  264. aidd/validators/document_loader.py +210 -0
  265. aidd/validators/documents.py +13 -0
  266. aidd/validators/models.py +61 -0
  267. aidd/validators/reports.py +106 -0
  268. aidd/validators/semantic.py +31 -0
  269. aidd/validators/semantic_rules/__init__.py +9 -0
  270. aidd/validators/semantic_rules/blocks.py +149 -0
  271. aidd/validators/semantic_rules/common.py +467 -0
  272. aidd/validators/semantic_rules/evidence.py +83 -0
  273. aidd/validators/semantic_rules/findings.py +21 -0
  274. aidd/validators/semantic_rules/idea.py +76 -0
  275. aidd/validators/semantic_rules/ids.py +38 -0
  276. aidd/validators/semantic_rules/implement.py +321 -0
  277. aidd/validators/semantic_rules/placeholders.py +173 -0
  278. aidd/validators/semantic_rules/plan.py +194 -0
  279. aidd/validators/semantic_rules/qa.py +312 -0
  280. aidd/validators/semantic_rules/registry.py +120 -0
  281. aidd/validators/semantic_rules/research.py +86 -0
  282. aidd/validators/semantic_rules/review.py +236 -0
  283. aidd/validators/semantic_rules/review_spec.py +179 -0
  284. aidd/validators/semantic_rules/risks.py +52 -0
  285. aidd/validators/semantic_rules/tasklist.py +271 -0
  286. aidd/validators/structural.py +242 -0
@@ -0,0 +1,381 @@
1
+ Metadata-Version: 2.4
2
+ Name: ai-driven-dev-v2
3
+ Version: 0.1.0a1
4
+ Summary: Runtime-agnostic, document-first orchestration for AI-driven software delivery.
5
+ Project-URL: Homepage, https://github.com/GrinRus/ai_driven_dev_v2
6
+ Project-URL: Repository, https://github.com/GrinRus/ai_driven_dev_v2
7
+ Project-URL: Issues, https://github.com/GrinRus/ai_driven_dev_v2/issues
8
+ Author: GrinRus
9
+ License-Expression: Apache-2.0
10
+ License-File: LICENSE
11
+ Requires-Python: >=3.12
12
+ Requires-Dist: markdown-it-py>=3.0.0
13
+ Requires-Dist: pydantic>=2.9.2
14
+ Requires-Dist: python-frontmatter>=1.1.0
15
+ Requires-Dist: pyyaml>=6.0.2
16
+ Requires-Dist: rich>=13.7.1
17
+ Requires-Dist: typer>=0.12.3
18
+ Provides-Extra: dev
19
+ Requires-Dist: mypy>=1.11.2; extra == 'dev'
20
+ Requires-Dist: pytest-cov>=5.0.0; extra == 'dev'
21
+ Requires-Dist: pytest>=8.3.3; extra == 'dev'
22
+ Requires-Dist: ruff>=0.7.0; extra == 'dev'
23
+ Provides-Extra: docs
24
+ Requires-Dist: mkdocs-material>=9.5.39; extra == 'docs'
25
+ Requires-Dist: mkdocs>=1.6.1; extra == 'docs'
26
+ Description-Content-Type: text/markdown
27
+
28
+ # ai_driven_dev_v2
29
+
30
+ Runtime-agnostic orchestration for document-first AI software delivery.
31
+
32
+ > Status: implemented local orchestration system with active architecture, contracts, adapters,
33
+ > validators, harness/eval tooling, and an installable Python CLI.
34
+ > Current known gaps are documented as roadmap work or explicit manual live/release evidence
35
+ > prerequisites, not as hidden bootstrap assumptions.
36
+
37
+ ## What this project is
38
+
39
+ `ai_driven_dev_v2` (AIDD) is a stage-based workflow system for governed AI-assisted software work.
40
+
41
+ It rebuilds the useful parts of `ai_driven_dev` so they are **not coupled to a single runtime**. The project keeps:
42
+
43
+ - explicit workflow stages,
44
+ - durable Markdown artifacts,
45
+ - validator gates,
46
+ - self-repair after invalid stage outputs,
47
+ - user interview loops,
48
+ - native runtime log visibility,
49
+ - harness and eval support from the beginning.
50
+
51
+ The canonical stage flow is:
52
+
53
+ `idea -> research -> plan -> review-spec -> tasklist -> implement -> review -> qa`
54
+
55
+ ## Why AIDD exists
56
+
57
+ Most agentic coding systems become tightly bound to one host runtime, one prompt surface, or one plugin API. That makes them harder to port, harder to debug, and harder to evaluate.
58
+
59
+ AIDD separates:
60
+
61
+ - **core workflow semantics** from runtime integration,
62
+ - **document contracts** from model formatting habits,
63
+ - **operator experience** from any one runtime CLI,
64
+ - **harness/eval** from ad hoc prompt experimentation.
65
+
66
+ ## What makes AIDD different
67
+
68
+ - **Runtime-agnostic core**
69
+ The core never assumes Claude Code, Codex, OpenCode, or any other runtime-specific API.
70
+
71
+ - **Markdown-first stage IO**
72
+ Stages read and write human-reviewable Markdown documents. Validation happens after generation.
73
+
74
+ - **Validation and self-repair**
75
+ Invalid outputs do not silently pass. The system validates, writes a repair brief, and reruns within a bounded budget.
76
+
77
+ - **Interview-aware execution**
78
+ If a stage needs clarification, the runtime can ask the user through the CLI and/or durable `questions.md` / `answers.md` files.
79
+
80
+ - **Native runtime log visibility**
81
+ The CLI is designed to stream raw runtime logs as closely as possible to the runtime's own UX.
82
+
83
+ - **Harness and eval built in**
84
+ Deterministic scenarios, manual live E2E audits, graders, and log analysis are part of the product architecture.
85
+
86
+ ## Primary user stories
87
+
88
+ The project is anchored in these outcomes:
89
+
90
+ - an operator can run the same governed flow on different runtimes;
91
+ - a team can inspect and edit stage artifacts as Markdown files;
92
+ - invalid stage outputs are repaired before the workflow advances;
93
+ - the system asks the user clarifying questions when the task is underspecified;
94
+ - a maintainer can add a new runtime adapter without rewriting the core;
95
+ - an evaluator can run deterministic and live E2E scenarios with log analysis.
96
+
97
+ See `docs/product/user-stories.md` for the full set.
98
+
99
+ ## Runtime support (current)
100
+
101
+ Workflow and stage execution today:
102
+
103
+ - `aidd run` supports runtimes `generic-cli`, `claude-code`, `codex`, and `opencode`.
104
+ - `aidd stage run` supports runtimes `generic-cli`, `claude-code`, `codex`, and `opencode`.
105
+
106
+ Runtime probes in `aidd doctor`:
107
+
108
+ - `generic-cli`
109
+ - `claude-code`
110
+ - `codex`
111
+ - `opencode`
112
+
113
+ Unsupported runtime handling:
114
+
115
+ - `aidd run` and `aidd stage run` fail fast with non-zero exit and `unsupported-runtime` classification when the runtime id is unknown.
116
+
117
+ Future bridge target:
118
+
119
+ - `pi-mono`
120
+
121
+ ## Architecture in one sentence
122
+
123
+ `operator CLI -> AIDD core -> adapter -> runtime -> workspace documents`
124
+
125
+ The key architecture documents are:
126
+
127
+ - `docs/architecture/target-architecture.md`
128
+ - `docs/architecture/adapter-protocol.md`
129
+ - `docs/architecture/document-contracts.md`
130
+ - `docs/architecture/runtime-matrix.md`
131
+ - `docs/architecture/eval-harness-integration.md`
132
+ - `docs/architecture/distribution-and-development.md`
133
+ - `docs/architecture/operator-frontend.md`
134
+ - `docs/architecture/project-set-workspace.md`
135
+
136
+ ## What is in this repository today
137
+
138
+ This repository includes:
139
+
140
+ - root product and contributor documentation,
141
+ - a wave/epic/slice/local-task roadmap and active backlog queue,
142
+ - stage and document contracts,
143
+ - stage prompt packs,
144
+ - `.agents/skills/` for Codex-style development workflows,
145
+ - deterministic and live scenario manifests,
146
+ - CI and release workflows,
147
+ - an installable Python package and CLI,
148
+ - runtime adapters, validators, core orchestration, run inspection, harnesses, and eval reports.
149
+
150
+ The following parts are still intentionally in-progress:
151
+
152
+ - live interview parity on installed public-repository scenarios,
153
+ - broader installed live lane coverage beyond the first canonical scenario.
154
+
155
+ Those gaps are deliberate current scope boundaries, not absent foundations.
156
+
157
+ Live E2E remains available as a manual external-audit system, but it is no longer part of CI or release gating.
158
+
159
+ ## Installation from source
160
+
161
+ ### Prerequisites
162
+
163
+ - Python 3.12+
164
+ - `uv`
165
+ - provider CLIs you want to run or probe, such as Claude Code, Codex, or OpenCode
166
+ - provider authentication already configured outside AIDD
167
+ - optional AIDD-compatible wrapper commands for advanced `adapter-flags` mode
168
+
169
+ ### Bootstrap the repo locally
170
+
171
+ ```bash
172
+ uv sync --extra dev
173
+ uv run aidd --help
174
+ uv run aidd doctor
175
+ uv run --extra dev pytest -q
176
+ ```
177
+
178
+ ### Create a starter workspace
179
+
180
+ ```bash
181
+ uv run aidd init --work-item WI-001
182
+ ```
183
+
184
+ This creates a local `.aidd/` workspace tree with stage directories and placeholder artifacts.
185
+
186
+ ## Supported Local Operator Path
187
+
188
+ The product operator path starts from a local project root. Install or run AIDD locally, then
189
+ enter the target project directory before creating workflow state.
190
+
191
+ From an installed command:
192
+
193
+ ```bash
194
+ cd /path/to/local-project
195
+ aidd doctor --config /path/to/aidd.example.toml
196
+ aidd init --work-item WI-001 --root .aidd
197
+ aidd run --work-item WI-001 --runtime generic-cli --root .aidd --config /path/to/aidd.example.toml
198
+ aidd ui --work-item WI-001 --root .aidd --config /path/to/aidd.example.toml
199
+ ```
200
+
201
+ From a source checkout without installing globally, replace `aidd` with
202
+ `uv tool run --from /path/to/ai_driven_dev_v2 aidd`.
203
+
204
+ Inspect local workflow evidence with either the UI or the CLI:
205
+
206
+ ```bash
207
+ aidd run show --work-item WI-001 --root .aidd
208
+ aidd run logs --work-item WI-001 --stage plan --root .aidd
209
+ aidd run artifacts --work-item WI-001 --stage plan --root .aidd
210
+ ```
211
+
212
+ The `.aidd/` directory stays inside the local project root. Treat it as project-local
213
+ operator state and do not commit it unless a separate repository policy explicitly says so.
214
+
215
+ `aidd init --github-issue <url>` is out of product scope. Public GitHub repositories are live
216
+ E2E targets and support/reporting evidence sources only, not a product intake path.
217
+
218
+ ## Planned distribution channels
219
+
220
+ The intended release channels are:
221
+
222
+ - PyPI for `pipx install ai-driven-dev-v2`
223
+ - `uv tool install ai-driven-dev-v2`
224
+ - container images such as `ghcr.io/grinrus/ai-driven-dev-v2`
225
+ - source checkout for contributors and CI
226
+
227
+ Runtime binaries remain external dependencies. AIDD does not bundle Claude Code,
228
+ Codex, OpenCode, or other runtimes.
229
+
230
+ For workflow or stage execution, Codex and OpenCode default to native provider
231
+ CLI execution. Advanced operators can still configure an AIDD-compatible wrapper
232
+ command with `mode = "adapter-flags"` when they need a custom execution surface.
233
+
234
+ For manual live E2E, the canonical operator-audit path is:
235
+
236
+ - build a local wheel from the current checkout;
237
+ - install it with `uv tool`;
238
+ - enter the pinned target repository;
239
+ - run installed `aidd` there with `.aidd/` rooted inside that repository.
240
+
241
+ Container image tagging rules for release tags:
242
+
243
+ - publish `vX.Y.Z`, `vX.Y`, and `vX`;
244
+ - publish `sha-<git-sha>` for traceability;
245
+ - publish `latest` only for stable tags without prerelease suffixes.
246
+
247
+ PyPI publishing tag rules:
248
+
249
+ - tag format must be `v<major>.<minor>.<patch>` with optional PEP 440 suffix (`aN`, `bN`, `rcN`, `.postN`, `.devN`);
250
+ - release tag must exactly match `v<project.version>` from `pyproject.toml`;
251
+ - tag-triggered publish jobs fail fast when tag format or tag/version alignment is invalid.
252
+
253
+ ## Quickstart
254
+
255
+ ```bash
256
+ # Install the local development environment
257
+ uv sync --extra dev
258
+
259
+ # Inspect runtime availability from local config
260
+ uv run aidd doctor
261
+
262
+ # Create a work-item workspace
263
+ uv run aidd init --work-item WI-001
264
+
265
+ # Read the roadmap before implementing
266
+ sed -n '1,200p' docs/backlog/roadmap.md
267
+
268
+ # Run the smoke tests
269
+ uv run --extra dev pytest -q
270
+ ```
271
+
272
+ ## Current CLI surface
273
+
274
+ The CLI exposes the current product surface:
275
+
276
+ ```bash
277
+ aidd doctor
278
+ aidd init --work-item WI-001
279
+ aidd run --work-item WI-001 --runtime generic-cli
280
+ aidd stage run plan --work-item WI-001 --runtime generic-cli
281
+ aidd eval run harness/scenarios/live/typer-styled-help-alignment.yaml --runtime codex
282
+ ```
283
+
284
+ Today:
285
+
286
+ - `doctor` is functional,
287
+ - `init` is functional,
288
+ - `run` executes workflow progression for `generic-cli`, `claude-code`, `codex`, and `opencode`,
289
+ - `stage run` executes single-stage orchestration for `generic-cli`, `claude-code`, `codex`, and `opencode`,
290
+ - `run` and `stage run` fail fast for unknown runtime ids with `unsupported-runtime` classification,
291
+ - `eval run` executes the harness lifecycle and writes result bundles (`summary.md`, `verdict.md`, `runtime.log`, validator artifacts, `stage-timing.md`, and `self-repair-matrix.md`),
292
+ - live `eval run` scenarios under `harness/scenarios/live/` install a local wheel via `uv tool`, run AIDD from the target repository root, and use maintained live providers only (`codex`, `opencode`, and the `claude-code` smoke lane in Wave 13).
293
+
294
+ ## Operator documentation
295
+
296
+ For installation, diagnostics, and issue reporting workflows, use:
297
+
298
+ - `docs/operator-handbook.md`
299
+ - `docs/operator-troubleshooting.md`
300
+ - `docs/operator-support-policy.md`
301
+
302
+ ## Live E2E catalog
303
+
304
+ The repository includes a curated live E2E set built on public GitHub repositories.
305
+
306
+ In this repository, live E2E means a manual installed-operator audit, not a CI or release lane and not the same thing as smoke or adapter conformance.
307
+
308
+ Repository set:
309
+
310
+ - `fastapi/typer`
311
+ - `encode/httpx`
312
+ - `simonw/sqlite-utils`
313
+ - `honojs/hono`
314
+
315
+ See:
316
+
317
+ - `docs/e2e/live-e2e-catalog.md`
318
+ - `docs/e2e/scenario-matrix.md`
319
+ - `harness/scenarios/live/`
320
+
321
+ ## How to develop this project
322
+
323
+ Read in this order:
324
+
325
+ 1. `AGENTS.md`
326
+ 2. `docs/product/user-stories.md`
327
+ 3. `docs/backlog/roadmap.md`
328
+ 4. `docs/architecture/target-architecture.md`
329
+ 5. the nearest nested `AGENTS.md`
330
+ 6. the relevant skill in `.agents/skills/`
331
+
332
+ Then use the standard loop:
333
+
334
+ ```bash
335
+ uv sync --extra dev
336
+ uv run --extra dev ruff check .
337
+ uv run --extra dev python -m mypy src
338
+ uv run --extra dev pytest -q
339
+ ```
340
+
341
+ ## Repository map
342
+
343
+ - `src/aidd/` — Python package with core orchestration, adapters, validators, CLI, harness, and evals
344
+ - `contracts/` — stage and document contracts
345
+ - `prompt-packs/` — file-based stage prompts
346
+ - `docs/product/` — product framing and user stories
347
+ - `docs/architecture/` — fixed technical decisions and protocols
348
+ - `docs/e2e/` — live E2E catalog
349
+ - `docs/backlog/` — roadmap and active backlog
350
+ - `harness/scenarios/` — smoke and live scenario manifests
351
+ - `.agents/skills/` — reusable team skills for Codex-style development
352
+ - `tests/` — deterministic unit, integration, docs, adapter, harness, and eval checks
353
+ - `MANIFEST.md` — historical archive contents snapshot, not the current source-of-truth inventory
354
+
355
+ ## Roadmap
356
+
357
+ The canonical plan lives in `docs/backlog/roadmap.md`.
358
+
359
+ The short actionable queue lives in `docs/backlog/backlog.md`.
360
+
361
+ ## Compatibility policy
362
+
363
+ Compatibility guarantees for Python versions and operating platforms live in:
364
+
365
+ - `docs/compatibility-policy.md`
366
+
367
+ ## Contributing
368
+
369
+ See `CONTRIBUTING.md`.
370
+
371
+ The short version:
372
+
373
+ - pick a local task from the backlog,
374
+ - keep the change aligned with the user stories,
375
+ - update docs/contracts/prompts when behavior changes,
376
+ - keep the core runtime-agnostic,
377
+ - run the smallest relevant checks before opening a PR.
378
+
379
+ ## License
380
+
381
+ This project is licensed under the Apache License 2.0. See `LICENSE`.