mikeian 0.1.2__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 (304) hide show
  1. mikeian-0.1.2/.github/workflows/ci.yml +36 -0
  2. mikeian-0.1.2/.github/workflows/release.yml +44 -0
  3. mikeian-0.1.2/AGENTS.md +10 -0
  4. mikeian-0.1.2/CHANGELOG.md +20 -0
  5. mikeian-0.1.2/CONTRIBUTING.md +19 -0
  6. mikeian-0.1.2/LICENSE +7 -0
  7. mikeian-0.1.2/MANIFEST.in +11 -0
  8. mikeian-0.1.2/NOTICE +4 -0
  9. mikeian-0.1.2/PKG-INFO +155 -0
  10. mikeian-0.1.2/README.md +126 -0
  11. mikeian-0.1.2/constraints.txt +10 -0
  12. mikeian-0.1.2/docs/ARCHITECTURE.md +48 -0
  13. mikeian-0.1.2/docs/CLI.md +440 -0
  14. mikeian-0.1.2/docs/CONFIGURATION.md +153 -0
  15. mikeian-0.1.2/docs/COSTS.md +58 -0
  16. mikeian-0.1.2/docs/EXTRACTION-AUDIT.md +46 -0
  17. mikeian-0.1.2/docs/EXTRACTION-REPORT.md +117 -0
  18. mikeian-0.1.2/docs/REGRESSION-ASSERTION-AUDIT.json +92 -0
  19. mikeian-0.1.2/docs/RELEASING.md +43 -0
  20. mikeian-0.1.2/docs/ROADMAP.md +11 -0
  21. mikeian-0.1.2/docs/SECURITY.md +67 -0
  22. mikeian-0.1.2/docs/STRINGDB-INTEGRATION.md +78 -0
  23. mikeian-0.1.2/docs/VALIDATION.md +85 -0
  24. mikeian-0.1.2/docs/WORKFLOW.md +85 -0
  25. mikeian-0.1.2/examples/minimal-migration/.gitignore +2 -0
  26. mikeian-0.1.2/examples/minimal-migration/AGENTS.md +3 -0
  27. mikeian-0.1.2/examples/minimal-migration/checks/verify.py +27 -0
  28. mikeian-0.1.2/examples/minimal-migration/demo.py +115 -0
  29. mikeian-0.1.2/examples/minimal-migration/docs/architecture.md +3 -0
  30. mikeian-0.1.2/examples/minimal-migration/docs/strategy.md +3 -0
  31. mikeian-0.1.2/examples/minimal-migration/legacy/greet.sh +2 -0
  32. mikeian-0.1.2/examples/minimal-migration/mikeian.toml +40 -0
  33. mikeian-0.1.2/examples/minimal-migration/plan/config/decisions.json +1 -0
  34. mikeian-0.1.2/examples/minimal-migration/plan/config/orchestrator.json +126 -0
  35. mikeian-0.1.2/examples/minimal-migration/plan/config/pricing.json +73 -0
  36. mikeian-0.1.2/examples/minimal-migration/plan/config/routing.json +29 -0
  37. mikeian-0.1.2/examples/minimal-migration/plan/contracts/greeting.md +3 -0
  38. mikeian-0.1.2/examples/minimal-migration/plan/conventions.md +3 -0
  39. mikeian-0.1.2/examples/minimal-migration/plan/jobs/api.md +12 -0
  40. mikeian-0.1.2/examples/minimal-migration/plan/jobs/cli.md +12 -0
  41. mikeian-0.1.2/examples/minimal-migration/plan/jobs/guide.md +12 -0
  42. mikeian-0.1.2/examples/minimal-migration/plan/prompts/acceptance-test.md +4 -0
  43. mikeian-0.1.2/examples/minimal-migration/plan/prompts/architect.md +4 -0
  44. mikeian-0.1.2/examples/minimal-migration/plan/prompts/ci-diagnosis.md +4 -0
  45. mikeian-0.1.2/examples/minimal-migration/plan/prompts/implementation.md +4 -0
  46. mikeian-0.1.2/examples/minimal-migration/plan/prompts/integration.md +4 -0
  47. mikeian-0.1.2/examples/minimal-migration/plan/prompts/milestone-review.md +4 -0
  48. mikeian-0.1.2/examples/minimal-migration/plan/prompts/planner.md +4 -0
  49. mikeian-0.1.2/examples/minimal-migration/plan/prompts/repair.md +4 -0
  50. mikeian-0.1.2/examples/minimal-migration/plan/prompts/reviewer.md +4 -0
  51. mikeian-0.1.2/examples/minimal-migration/plan/prompts/specification.md +4 -0
  52. mikeian-0.1.2/examples/stringdb/README.md +6 -0
  53. mikeian-0.1.2/examples/stringdb/project.toml +34 -0
  54. mikeian-0.1.2/pyproject.toml +48 -0
  55. mikeian-0.1.2/requirements-dev.txt +3 -0
  56. mikeian-0.1.2/requirements.txt +3 -0
  57. mikeian-0.1.2/setup.cfg +4 -0
  58. mikeian-0.1.2/src/mikeian/__init__.py +2 -0
  59. mikeian-0.1.2/src/mikeian/__main__.py +2 -0
  60. mikeian-0.1.2/src/mikeian/_build.py +3 -0
  61. mikeian-0.1.2/src/mikeian/automation.py +107 -0
  62. mikeian-0.1.2/src/mikeian/cli.py +908 -0
  63. mikeian-0.1.2/src/mikeian/compat/__init__.py +1 -0
  64. mikeian-0.1.2/src/mikeian/compat/stringdb/__init__.py +1 -0
  65. mikeian-0.1.2/src/mikeian/compat/stringdb/acceptance.py +31 -0
  66. mikeian-0.1.2/src/mikeian/compat/stringdb/policy.py +41 -0
  67. mikeian-0.1.2/src/mikeian/compat/stringdb/red.py +81 -0
  68. mikeian-0.1.2/src/mikeian/compat/stringdb/review_checks.py +111 -0
  69. mikeian-0.1.2/src/mikeian/config.py +149 -0
  70. mikeian-0.1.2/src/mikeian/decisions.py +87 -0
  71. mikeian-0.1.2/src/mikeian/defaults/orchestrator.json +125 -0
  72. mikeian-0.1.2/src/mikeian/defaults/pricing.json +73 -0
  73. mikeian-0.1.2/src/mikeian/defaults/routing/balanced.json +34 -0
  74. mikeian-0.1.2/src/mikeian/defaults/routing/claude-only.json +29 -0
  75. mikeian-0.1.2/src/mikeian/defaults/routing/deepseek-only.json +29 -0
  76. mikeian-0.1.2/src/mikeian/defaults/routing/economy.json +29 -0
  77. mikeian-0.1.2/src/mikeian/defaults/routing/quality.json +39 -0
  78. mikeian-0.1.2/src/mikeian/doctor.py +52 -0
  79. mikeian-0.1.2/src/mikeian/engine.py +949 -0
  80. mikeian-0.1.2/src/mikeian/failures.py +108 -0
  81. mikeian-0.1.2/src/mikeian/github.py +271 -0
  82. mikeian-0.1.2/src/mikeian/gitops.py +336 -0
  83. mikeian-0.1.2/src/mikeian/helpers/agent +5 -0
  84. mikeian-0.1.2/src/mikeian/isolation.py +135 -0
  85. mikeian-0.1.2/src/mikeian/ledger.py +120 -0
  86. mikeian-0.1.2/src/mikeian/paths.py +77 -0
  87. mikeian-0.1.2/src/mikeian/plan_proposal.py +583 -0
  88. mikeian-0.1.2/src/mikeian/pricing.py +206 -0
  89. mikeian-0.1.2/src/mikeian/probes.py +145 -0
  90. mikeian-0.1.2/src/mikeian/procid.py +84 -0
  91. mikeian-0.1.2/src/mikeian/project.py +215 -0
  92. mikeian-0.1.2/src/mikeian/prompts/acceptance-test.md +4 -0
  93. mikeian-0.1.2/src/mikeian/prompts/architect.md +4 -0
  94. mikeian-0.1.2/src/mikeian/prompts/ci-diagnosis.md +4 -0
  95. mikeian-0.1.2/src/mikeian/prompts/implementation.md +4 -0
  96. mikeian-0.1.2/src/mikeian/prompts/integration.md +4 -0
  97. mikeian-0.1.2/src/mikeian/prompts/milestone-review.md +4 -0
  98. mikeian-0.1.2/src/mikeian/prompts/planner.md +4 -0
  99. mikeian-0.1.2/src/mikeian/prompts/repair.md +4 -0
  100. mikeian-0.1.2/src/mikeian/prompts/reviewer.md +4 -0
  101. mikeian-0.1.2/src/mikeian/prompts/specification.md +4 -0
  102. mikeian-0.1.2/src/mikeian/prompts.py +38 -0
  103. mikeian-0.1.2/src/mikeian/providers.py +298 -0
  104. mikeian-0.1.2/src/mikeian/red.py +2 -0
  105. mikeian-0.1.2/src/mikeian/report.py +173 -0
  106. mikeian-0.1.2/src/mikeian/review.py +344 -0
  107. mikeian-0.1.2/src/mikeian/review_checks.py +86 -0
  108. mikeian-0.1.2/src/mikeian/scheduler.py +136 -0
  109. mikeian-0.1.2/src/mikeian/schemas/project.schema.json +344 -0
  110. mikeian-0.1.2/src/mikeian/security.py +53 -0
  111. mikeian-0.1.2/src/mikeian/specs.py +100 -0
  112. mikeian-0.1.2/src/mikeian/staged.py +164 -0
  113. mikeian-0.1.2/src/mikeian/state.py +714 -0
  114. mikeian-0.1.2/src/mikeian/tasks.py +203 -0
  115. mikeian-0.1.2/src/mikeian/templates/minimal-migration/.gitignore +2 -0
  116. mikeian-0.1.2/src/mikeian/templates/minimal-migration/AGENTS.md +3 -0
  117. mikeian-0.1.2/src/mikeian/templates/minimal-migration/checks/verify.py +27 -0
  118. mikeian-0.1.2/src/mikeian/templates/minimal-migration/demo.py +115 -0
  119. mikeian-0.1.2/src/mikeian/templates/minimal-migration/docs/architecture.md +3 -0
  120. mikeian-0.1.2/src/mikeian/templates/minimal-migration/docs/strategy.md +3 -0
  121. mikeian-0.1.2/src/mikeian/templates/minimal-migration/legacy/greet.sh +2 -0
  122. mikeian-0.1.2/src/mikeian/templates/minimal-migration/mikeian.toml +40 -0
  123. mikeian-0.1.2/src/mikeian/templates/minimal-migration/plan/config/decisions.json +1 -0
  124. mikeian-0.1.2/src/mikeian/templates/minimal-migration/plan/config/orchestrator.json +126 -0
  125. mikeian-0.1.2/src/mikeian/templates/minimal-migration/plan/config/pricing.json +73 -0
  126. mikeian-0.1.2/src/mikeian/templates/minimal-migration/plan/config/routing.json +29 -0
  127. mikeian-0.1.2/src/mikeian/templates/minimal-migration/plan/contracts/greeting.md +3 -0
  128. mikeian-0.1.2/src/mikeian/templates/minimal-migration/plan/conventions.md +3 -0
  129. mikeian-0.1.2/src/mikeian/templates/minimal-migration/plan/jobs/api.md +12 -0
  130. mikeian-0.1.2/src/mikeian/templates/minimal-migration/plan/jobs/cli.md +12 -0
  131. mikeian-0.1.2/src/mikeian/templates/minimal-migration/plan/jobs/guide.md +12 -0
  132. mikeian-0.1.2/src/mikeian/templates/minimal-migration/plan/prompts/acceptance-test.md +4 -0
  133. mikeian-0.1.2/src/mikeian/templates/minimal-migration/plan/prompts/architect.md +4 -0
  134. mikeian-0.1.2/src/mikeian/templates/minimal-migration/plan/prompts/ci-diagnosis.md +4 -0
  135. mikeian-0.1.2/src/mikeian/templates/minimal-migration/plan/prompts/implementation.md +4 -0
  136. mikeian-0.1.2/src/mikeian/templates/minimal-migration/plan/prompts/integration.md +4 -0
  137. mikeian-0.1.2/src/mikeian/templates/minimal-migration/plan/prompts/milestone-review.md +4 -0
  138. mikeian-0.1.2/src/mikeian/templates/minimal-migration/plan/prompts/planner.md +4 -0
  139. mikeian-0.1.2/src/mikeian/templates/minimal-migration/plan/prompts/repair.md +4 -0
  140. mikeian-0.1.2/src/mikeian/templates/minimal-migration/plan/prompts/reviewer.md +4 -0
  141. mikeian-0.1.2/src/mikeian/templates/minimal-migration/plan/prompts/specification.md +4 -0
  142. mikeian-0.1.2/src/mikeian/ui.py +92 -0
  143. mikeian-0.1.2/src/mikeian/verify.py +180 -0
  144. mikeian-0.1.2/src/mikeian.egg-info/PKG-INFO +155 -0
  145. mikeian-0.1.2/src/mikeian.egg-info/SOURCES.txt +302 -0
  146. mikeian-0.1.2/src/mikeian.egg-info/dependency_links.txt +1 -0
  147. mikeian-0.1.2/src/mikeian.egg-info/entry_points.txt +3 -0
  148. mikeian-0.1.2/src/mikeian.egg-info/requires.txt +6 -0
  149. mikeian-0.1.2/src/mikeian.egg-info/top_level.txt +1 -0
  150. mikeian-0.1.2/tests/compatibility/test_ci_policy.py +11 -0
  151. mikeian-0.1.2/tests/compatibility/test_state_copy.py +42 -0
  152. mikeian-0.1.2/tests/conftest.py +37 -0
  153. mikeian-0.1.2/tests/fixtures/stringdb/.github/scripts/check-trx.sh +20 -0
  154. mikeian-0.1.2/tests/fixtures/stringdb/.github/scripts/verify-reference-integrity.sh +31 -0
  155. mikeian-0.1.2/tests/fixtures/stringdb/.github/workflows/ci.yml +147 -0
  156. mikeian-0.1.2/tests/fixtures/stringdb/AGENTS.md +119 -0
  157. mikeian-0.1.2/tests/fixtures/stringdb/docs/CI.md +89 -0
  158. mikeian-0.1.2/tests/fixtures/stringdb/migrate +11 -0
  159. mikeian-0.1.2/tests/fixtures/stringdb/migration/ARCHITECTURE.md +544 -0
  160. mikeian-0.1.2/tests/fixtures/stringdb/migration/COVERAGE.md +113 -0
  161. mikeian-0.1.2/tests/fixtures/stringdb/migration/ROADMAP.md +107 -0
  162. mikeian-0.1.2/tests/fixtures/stringdb/migration/STRANGLER.md +281 -0
  163. mikeian-0.1.2/tests/fixtures/stringdb/migration/agents/acceptance-test.md +11 -0
  164. mikeian-0.1.2/tests/fixtures/stringdb/migration/agents/architect.md +6 -0
  165. mikeian-0.1.2/tests/fixtures/stringdb/migration/agents/ci-diagnosis.md +10 -0
  166. mikeian-0.1.2/tests/fixtures/stringdb/migration/agents/implementation.md +28 -0
  167. mikeian-0.1.2/tests/fixtures/stringdb/migration/agents/integration.md +9 -0
  168. mikeian-0.1.2/tests/fixtures/stringdb/migration/agents/milestone-review.md +8 -0
  169. mikeian-0.1.2/tests/fixtures/stringdb/migration/agents/orchestrator.md +709 -0
  170. mikeian-0.1.2/tests/fixtures/stringdb/migration/agents/planner.md +124 -0
  171. mikeian-0.1.2/tests/fixtures/stringdb/migration/agents/repair.md +12 -0
  172. mikeian-0.1.2/tests/fixtures/stringdb/migration/agents/reviewer.md +52 -0
  173. mikeian-0.1.2/tests/fixtures/stringdb/migration/agents/specification.md +70 -0
  174. mikeian-0.1.2/tests/fixtures/stringdb/migration/bin/agent +61 -0
  175. mikeian-0.1.2/tests/fixtures/stringdb/migration/config/decisions.json +16 -0
  176. mikeian-0.1.2/tests/fixtures/stringdb/migration/config/orchestrator.json +162 -0
  177. mikeian-0.1.2/tests/fixtures/stringdb/migration/config/pricing.json +73 -0
  178. mikeian-0.1.2/tests/fixtures/stringdb/migration/config/routing.json +23 -0
  179. mikeian-0.1.2/tests/fixtures/stringdb/migration/contracts/F01-rust-workspace-skeleton.md +119 -0
  180. mikeian-0.1.2/tests/fixtures/stringdb/migration/contracts/F02-csharp-reference-oracle.md +89 -0
  181. mikeian-0.1.2/tests/fixtures/stringdb/migration/contracts/F04-hybrid-csharp-shell.md +83 -0
  182. mikeian-0.1.2/tests/fixtures/stringdb/migration/contracts/WAVE-1-REPORT.md +58 -0
  183. mikeian-0.1.2/tests/fixtures/stringdb/migration/costs/historical-template.json +23 -0
  184. mikeian-0.1.2/tests/fixtures/stringdb/migration/orchestrator/README.md +261 -0
  185. mikeian-0.1.2/tests/fixtures/stringdb/migration/orchestrator/SECURITY.md +114 -0
  186. mikeian-0.1.2/tests/fixtures/stringdb/migration/orchestrator/__init__.py +2 -0
  187. mikeian-0.1.2/tests/fixtures/stringdb/migration/orchestrator/automation.py +107 -0
  188. mikeian-0.1.2/tests/fixtures/stringdb/migration/orchestrator/cli.py +908 -0
  189. mikeian-0.1.2/tests/fixtures/stringdb/migration/orchestrator/config.py +149 -0
  190. mikeian-0.1.2/tests/fixtures/stringdb/migration/orchestrator/constraints.txt +8 -0
  191. mikeian-0.1.2/tests/fixtures/stringdb/migration/orchestrator/decisions.py +87 -0
  192. mikeian-0.1.2/tests/fixtures/stringdb/migration/orchestrator/engine.py +949 -0
  193. mikeian-0.1.2/tests/fixtures/stringdb/migration/orchestrator/f01/README.md +80 -0
  194. mikeian-0.1.2/tests/fixtures/stringdb/migration/orchestrator/f01/UNBLOCK.md +89 -0
  195. mikeian-0.1.2/tests/fixtures/stringdb/migration/orchestrator/f01/documentation.patch +603 -0
  196. mikeian-0.1.2/tests/fixtures/stringdb/migration/orchestrator/f01/implicit-mappings.md +45 -0
  197. mikeian-0.1.2/tests/fixtures/stringdb/migration/orchestrator/f01/missing-mappings.csv +34 -0
  198. mikeian-0.1.2/tests/fixtures/stringdb/migration/orchestrator/f01/proposed-contract.patch +72 -0
  199. mikeian-0.1.2/tests/fixtures/stringdb/migration/orchestrator/failures.py +108 -0
  200. mikeian-0.1.2/tests/fixtures/stringdb/migration/orchestrator/github.py +271 -0
  201. mikeian-0.1.2/tests/fixtures/stringdb/migration/orchestrator/gitops.py +336 -0
  202. mikeian-0.1.2/tests/fixtures/stringdb/migration/orchestrator/isolation.py +135 -0
  203. mikeian-0.1.2/tests/fixtures/stringdb/migration/orchestrator/ledger.py +120 -0
  204. mikeian-0.1.2/tests/fixtures/stringdb/migration/orchestrator/paths.py +77 -0
  205. mikeian-0.1.2/tests/fixtures/stringdb/migration/orchestrator/pricing.py +206 -0
  206. mikeian-0.1.2/tests/fixtures/stringdb/migration/orchestrator/probes/f01.py +146 -0
  207. mikeian-0.1.2/tests/fixtures/stringdb/migration/orchestrator/probes/f01_harness.rs +216 -0
  208. mikeian-0.1.2/tests/fixtures/stringdb/migration/orchestrator/procid.py +84 -0
  209. mikeian-0.1.2/tests/fixtures/stringdb/migration/orchestrator/prompts.py +38 -0
  210. mikeian-0.1.2/tests/fixtures/stringdb/migration/orchestrator/providers.py +298 -0
  211. mikeian-0.1.2/tests/fixtures/stringdb/migration/orchestrator/red.py +81 -0
  212. mikeian-0.1.2/tests/fixtures/stringdb/migration/orchestrator/report.py +173 -0
  213. mikeian-0.1.2/tests/fixtures/stringdb/migration/orchestrator/requirements-dev.txt +2 -0
  214. mikeian-0.1.2/tests/fixtures/stringdb/migration/orchestrator/requirements.txt +2 -0
  215. mikeian-0.1.2/tests/fixtures/stringdb/migration/orchestrator/review.py +344 -0
  216. mikeian-0.1.2/tests/fixtures/stringdb/migration/orchestrator/review_checks.py +111 -0
  217. mikeian-0.1.2/tests/fixtures/stringdb/migration/orchestrator/scheduler.py +136 -0
  218. mikeian-0.1.2/tests/fixtures/stringdb/migration/orchestrator/security.py +53 -0
  219. mikeian-0.1.2/tests/fixtures/stringdb/migration/orchestrator/specs.py +100 -0
  220. mikeian-0.1.2/tests/fixtures/stringdb/migration/orchestrator/staged.py +164 -0
  221. mikeian-0.1.2/tests/fixtures/stringdb/migration/orchestrator/state.py +714 -0
  222. mikeian-0.1.2/tests/fixtures/stringdb/migration/orchestrator/tasks.py +203 -0
  223. mikeian-0.1.2/tests/fixtures/stringdb/migration/orchestrator/verify.py +180 -0
  224. mikeian-0.1.2/tests/fixtures/stringdb/migration/tasks/C01-A-primitives-acceptance.md +88 -0
  225. mikeian-0.1.2/tests/fixtures/stringdb/migration/tasks/C01-I-primitives.md +49 -0
  226. mikeian-0.1.2/tests/fixtures/stringdb/migration/tasks/C02-A-codecs-acceptance.md +72 -0
  227. mikeian-0.1.2/tests/fixtures/stringdb/migration/tasks/C02-I-codecs.md +44 -0
  228. mikeian-0.1.2/tests/fixtures/stringdb/migration/tasks/C03-A-streams-acceptance.md +84 -0
  229. mikeian-0.1.2/tests/fixtures/stringdb/migration/tasks/C03-I-streams.md +45 -0
  230. mikeian-0.1.2/tests/fixtures/stringdb/migration/tasks/C04-A-v10-device-acceptance.md +104 -0
  231. mikeian-0.1.2/tests/fixtures/stringdb/migration/tasks/C04-I-v10-device.md +43 -0
  232. mikeian-0.1.2/tests/fixtures/stringdb/migration/tasks/C05-A-v5-device-acceptance.md +79 -0
  233. mikeian-0.1.2/tests/fixtures/stringdb/migration/tasks/C05-I-v5-device.md +43 -0
  234. mikeian-0.1.2/tests/fixtures/stringdb/migration/tasks/C06-A-stonevault-acceptance.md +59 -0
  235. mikeian-0.1.2/tests/fixtures/stringdb/migration/tasks/C06-I-stone-vault.md +43 -0
  236. mikeian-0.1.2/tests/fixtures/stringdb/migration/tasks/C07-A-device-acceptance.md +78 -0
  237. mikeian-0.1.2/tests/fixtures/stringdb/migration/tasks/C07-I-device.md +43 -0
  238. mikeian-0.1.2/tests/fixtures/stringdb/migration/tasks/C08-A-base-memory-acceptance.md +66 -0
  239. mikeian-0.1.2/tests/fixtures/stringdb/migration/tasks/C08-I-base-memory.md +44 -0
  240. mikeian-0.1.2/tests/fixtures/stringdb/migration/tasks/C09-A-extensions-acceptance.md +66 -0
  241. mikeian-0.1.2/tests/fixtures/stringdb/migration/tasks/C09-I-extensions.md +43 -0
  242. mikeian-0.1.2/tests/fixtures/stringdb/migration/tasks/C10-A-transform-acceptance.md +56 -0
  243. mikeian-0.1.2/tests/fixtures/stringdb/migration/tasks/C10-I-transform.md +43 -0
  244. mikeian-0.1.2/tests/fixtures/stringdb/migration/tasks/C11-A-read-write-only-acceptance.md +49 -0
  245. mikeian-0.1.2/tests/fixtures/stringdb/migration/tasks/C11-I-read-write-only.md +44 -0
  246. mikeian-0.1.2/tests/fixtures/stringdb/migration/tasks/C12-A-buffered-acceptance.md +69 -0
  247. mikeian-0.1.2/tests/fixtures/stringdb/migration/tasks/C12-I-buffered.md +43 -0
  248. mikeian-0.1.2/tests/fixtures/stringdb/migration/tasks/C13-A-cache-acceptance.md +51 -0
  249. mikeian-0.1.2/tests/fixtures/stringdb/migration/tasks/C13-I-cache.md +43 -0
  250. mikeian-0.1.2/tests/fixtures/stringdb/migration/tasks/C14-A-thread-lock-acceptance.md +57 -0
  251. mikeian-0.1.2/tests/fixtures/stringdb/migration/tasks/C14-I-thread-lock.md +44 -0
  252. mikeian-0.1.2/tests/fixtures/stringdb/migration/tasks/C15-A-io-database-acceptance.md +65 -0
  253. mikeian-0.1.2/tests/fixtures/stringdb/migration/tasks/C15-I-io-database.md +44 -0
  254. mikeian-0.1.2/tests/fixtures/stringdb/migration/tasks/C16-A-builder-acceptance.md +93 -0
  255. mikeian-0.1.2/tests/fixtures/stringdb/migration/tasks/C16-I-builder.md +46 -0
  256. mikeian-0.1.2/tests/fixtures/stringdb/migration/tasks/D01-differential-lowlevel-v10.md +56 -0
  257. mikeian-0.1.2/tests/fixtures/stringdb/migration/tasks/D02-differential-lowlevel-v5.md +53 -0
  258. mikeian-0.1.2/tests/fixtures/stringdb/migration/tasks/D03-differential-stonevault.md +54 -0
  259. mikeian-0.1.2/tests/fixtures/stringdb/migration/tasks/D04-differential-io-stack.md +54 -0
  260. mikeian-0.1.2/tests/fixtures/stringdb/migration/tasks/D05-differential-layers.md +55 -0
  261. mikeian-0.1.2/tests/fixtures/stringdb/migration/tasks/F01-rust-workspace-skeleton.md +83 -0
  262. mikeian-0.1.2/tests/fixtures/stringdb/migration/tasks/F02-csharp-reference-oracle.md +116 -0
  263. mikeian-0.1.2/tests/fixtures/stringdb/migration/tasks/F03-rust-differential-runner.md +57 -0
  264. mikeian-0.1.2/tests/fixtures/stringdb/migration/tasks/F04-hybrid-csharp-shell.md +96 -0
  265. mikeian-0.1.2/tests/fixtures/stringdb/migration/tasks/F05-verification-pipeline.md +47 -0
  266. mikeian-0.1.2/tests/fixtures/stringdb/migration/tasks/R01-behavior-differences-and-docs.md +32 -0
  267. mikeian-0.1.2/tests/fixtures/stringdb/migration/tasks/R02-retire-interop.md +33 -0
  268. mikeian-0.1.2/tests/fixtures/stringdb/migration/tasks/README.md +86 -0
  269. mikeian-0.1.2/tests/fixtures/stringdb/migration/tasks/X01-ffi-foundation.md +78 -0
  270. mikeian-0.1.2/tests/fixtures/stringdb/migration/tasks/X02-csharp-native-bridge.md +57 -0
  271. mikeian-0.1.2/tests/fixtures/stringdb/migration/tasks/X03-route-v10.md +57 -0
  272. mikeian-0.1.2/tests/fixtures/stringdb/migration/tasks/X04-route-v5.md +36 -0
  273. mikeian-0.1.2/tests/fixtures/stringdb/migration/tasks/X05-route-stonevault.md +37 -0
  274. mikeian-0.1.2/tests/fixtures/stringdb/migration/tasks/X06-route-iodevice.md +62 -0
  275. mikeian-0.1.2/tests/fixtures/stringdb/migration/tasks/X07-hybrid-performance.md +29 -0
  276. mikeian-0.1.2/tests/fixtures/stringdb/verify.sh +20 -0
  277. mikeian-0.1.2/tests/integration/test_generic_probes.py +72 -0
  278. mikeian-0.1.2/tests/integration/test_generic_workflow.py +77 -0
  279. mikeian-0.1.2/tests/packaging/test_distribution.py +12 -0
  280. mikeian-0.1.2/tests/unit/test_project.py +147 -0
  281. mikeian-0.1.2/tests/unit/test_staged_policy.py +28 -0
  282. mikeian-0.1.2/tests/upstream/conftest.py +228 -0
  283. mikeian-0.1.2/tests/upstream/test_automation.py +332 -0
  284. mikeian-0.1.2/tests/upstream/test_billing_correction.py +60 -0
  285. mikeian-0.1.2/tests/upstream/test_costs_providers_security.py +292 -0
  286. mikeian-0.1.2/tests/upstream/test_engine.py +655 -0
  287. mikeian-0.1.2/tests/upstream/test_github_cli.py +446 -0
  288. mikeian-0.1.2/tests/upstream/test_gitops.py +194 -0
  289. mikeian-0.1.2/tests/upstream/test_hardening.py +454 -0
  290. mikeian-0.1.2/tests/upstream/test_next.py +494 -0
  291. mikeian-0.1.2/tests/upstream/test_pricing_state_budget.py +187 -0
  292. mikeian-0.1.2/tests/upstream/test_repairs_accounting.py +335 -0
  293. mikeian-0.1.2/tests/upstream/test_repairs_lifecycle.py +481 -0
  294. mikeian-0.1.2/tests/upstream/test_repairs_policy.py +530 -0
  295. mikeian-0.1.2/tests/upstream/test_review_probes.py +250 -0
  296. mikeian-0.1.2/tests/upstream/test_review_workflow.py +629 -0
  297. mikeian-0.1.2/tests/upstream/test_staged_acceptance.py +456 -0
  298. mikeian-0.1.2/tests/upstream/test_tasks_and_scheduler.py +269 -0
  299. mikeian-0.1.2/tests/upstream/test_tui.py +102 -0
  300. mikeian-0.1.2/tools/check_source.py +12 -0
  301. mikeian-0.1.2/tools/check_source_snapshot.py +20 -0
  302. mikeian-0.1.2/tools/check_stringdb_compat.py +45 -0
  303. mikeian-0.1.2/tools/stringdb_compat.py +98 -0
  304. mikeian-0.1.2/tools/verify_distribution.py +67 -0
@@ -0,0 +1,36 @@
1
+ name: Mikeian CI
2
+ on:
3
+ pull_request:
4
+ push:
5
+ workflow_dispatch:
6
+ permissions:
7
+ contents: read
8
+ jobs:
9
+ test-and-package:
10
+ runs-on: ubuntu-24.04
11
+ strategy:
12
+ fail-fast: false
13
+ matrix:
14
+ python: ['3.11', '3.12', '3.14']
15
+ steps:
16
+ - uses: actions/checkout@v4
17
+ with:
18
+ persist-credentials: false
19
+ - uses: actions/setup-python@v5
20
+ with:
21
+ python-version: ${{ matrix.python }}
22
+ - name: Install reviewed development dependencies
23
+ run: python -m pip install -c constraints.txt -e '.[dev]'
24
+ - name: Syntax and whitespace lint
25
+ run: python tools/check_source.py
26
+ - name: Complete isolated tests (includes wheel/sdist/clean install)
27
+ run: python -m pytest tests -q --junitxml=test-results/junit.xml
28
+ - name: Build release candidates
29
+ run: python -m build
30
+ - uses: actions/upload-artifact@v4
31
+ if: always()
32
+ with:
33
+ name: mikeian-evidence-py${{ matrix.python }}
34
+ path: |
35
+ test-results/
36
+ dist/
@@ -0,0 +1,44 @@
1
+ name: Publish Mikeian to PyPI
2
+ on:
3
+ push:
4
+ tags: ['v*']
5
+ permissions:
6
+ contents: read
7
+ jobs:
8
+ build:
9
+ runs-on: ubuntu-24.04
10
+ steps:
11
+ - uses: actions/checkout@v4
12
+ with:
13
+ persist-credentials: false
14
+ - uses: actions/setup-python@v5
15
+ with:
16
+ python-version: '3.12'
17
+ - run: python -m pip install -c constraints.txt -e '.[dev]'
18
+ - name: Verify version tag
19
+ if: startsWith(github.ref, 'refs/tags/')
20
+ run: python -c 'import os,mikeian; assert os.environ["GITHUB_REF_NAME"] == "v"+mikeian.__version__'
21
+ - run: python tools/check_source.py
22
+ - run: python -m pytest tests -q
23
+ - run: python -m build
24
+ - name: Validate distributions
25
+ run: python -m pip install 'twine>=6,<7' && python -m twine check dist/*
26
+ - uses: actions/upload-artifact@v4
27
+ with:
28
+ name: release-distributions
29
+ path: dist/*
30
+ publish:
31
+ needs: build
32
+ runs-on: ubuntu-24.04
33
+ environment:
34
+ name: pypi
35
+ url: https://pypi.org/p/mikeian
36
+ permissions:
37
+ id-token: write
38
+ steps:
39
+ - uses: actions/download-artifact@v4
40
+ with:
41
+ name: release-distributions
42
+ path: dist
43
+ - name: Publish distributions to PyPI
44
+ uses: pypa/gh-action-pypi-publish@release/v1
@@ -0,0 +1,10 @@
1
+ # Mikeian engineering rules
2
+
3
+ - Work only in the Mikeian repository or explicitly disposable test repositories.
4
+ - StringDB is a read-only extraction source. Never change its files, Git metadata, state or processes.
5
+ - Use fake agents/GitHub in tests. Never execute paid providers or inspect credentials during development.
6
+ - Keep deterministic policy and accounting in Python; do not delegate authorization to model output.
7
+ - Preserve revision-bound evidence, protected/frozen files, supervised starts and human-controlled merge.
8
+ - No automatic framework updates, remote creation or publication. Preserve upstream MIT notices.
9
+ - Run inherited regressions and meaningful new tests, plus wheel/sdist clean-install checks.
10
+ - Report exact test counts, limitations, changes and commit identity. Self-audit is not external review.
@@ -0,0 +1,20 @@
1
+ # Changelog
2
+
3
+ ## 0.1.2 — release preparation
4
+
5
+ - Preserve and resume interrupted planning work and independently reviewed CI repairs.
6
+ - Run inherited plan assertions before publishing planning PRs, with bounded correction and fresh review.
7
+ - Improve task progress and reviewer-report correction without weakening deterministic approval gates.
8
+ - Classify provider HTTP 402 as a billing stop instead of consuming implementation retries.
9
+ - Refresh package metadata, release instructions and distribution checks for PyPI.
10
+
11
+ ## 0.1.0 — initial extraction
12
+
13
+ - Extract the existing deterministic workflow, providers, cost ledger, Git and evidence machinery.
14
+ - Add trusted ProjectContext manifests, cwd/explicit discovery, doctor and installable console scripts.
15
+ - Isolate StringDB reference/F01/Rust RED compatibility; add configurable macros, references and probes.
16
+ - Add schema 5 execution provenance without changing old financial/evidence records.
17
+ - Preserve manual commands and the one-start automated PR/CI workflow.
18
+ - Package presets, generic role prompts, schema, helper and a language-independent project template.
19
+ - Port all 489 upstream cases; add generic, state-copy and distribution checks.
20
+ - No production consumer transition, real provider call, remote creation or registry publication.
@@ -0,0 +1,19 @@
1
+ # Contributing
2
+
3
+ Use Python 3.11+ on Linux and a project-local virtual environment. Install with
4
+ `pip install -c constraints.txt -e '.[dev]'`. Run `python tools/check_source.py`,
5
+ `python -m pytest tests -q` and `python tools/verify_distribution.py /tmp/mikeian-dist-check`.
6
+ Tests must use disposable repositories/databases and fake providers/GitHub. Never use the live
7
+ StringDB ledger as a test fixture. The diagnostic copy tool explicitly forbids worker recovery.
8
+
9
+ Keep the flat inherited modules during 0.1: correctness/compatibility matter more than package-tree
10
+ reorganization. New adapters should implement AgentRunner and return complete usage/process identity;
11
+ all calls must use Orchestrator.invoke_agent for reservation/settlement. Never bypass that path.
12
+
13
+ Changes to approved policy, pricing, reference protection or schema require documented compatibility
14
+ and failure tests. Add schemas only through additive transactional migrations; refuse future schemas.
15
+ Do not downgrade a migrated ledger. Preserve historical pricing snapshots and audit records.
16
+
17
+ The dependency-free syntax/whitespace checker is the configured lint gate; no formatter is imposed
18
+ on inherited code. Review `constraints.txt` updates explicitly. Public packaging downloads are allowed;
19
+ provider calls and credentials are not needed. No push or release is automatic.
mikeian-0.1.2/LICENSE ADDED
@@ -0,0 +1,7 @@
1
+ Copyright 2018-2019 SirJosh3917
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4
+
5
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6
+
7
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,11 @@
1
+ include LICENSE NOTICE CHANGELOG.md AGENTS.md CONTRIBUTING.md
2
+ recursive-include docs *.md *.json
3
+ recursive-include examples *
4
+ recursive-include tests *.py *.md *.json *.toml *.sh *.yml *.txt *.rs *.patch *.csv agent migrate
5
+ recursive-include src/mikeian *.md *.json *.toml *.sh *.rs agent
6
+ prune tests/fixtures/stringdb/.git
7
+ global-exclude *.pyc
8
+
9
+ include requirements.txt requirements-dev.txt constraints.txt
10
+ recursive-include tools *.py
11
+ recursive-include .github *.yml
mikeian-0.1.2/NOTICE ADDED
@@ -0,0 +1,4 @@
1
+ Mikeian extracts the deterministic migration orchestrator from the StringDB Rust migration project,
2
+ source commit 6b9b7f9a8c15f4efa85db8ce6cd5e3484fd972ef. Applicable original MIT notice (Copyright
3
+ 2018-2019 SirJosh3917) is retained in LICENSE. Project-specific assets are clearly isolated as
4
+ compatibility fixtures/examples. No claim of production consumer transition or external AI review is made.
mikeian-0.1.2/PKG-INFO ADDED
@@ -0,0 +1,155 @@
1
+ Metadata-Version: 2.4
2
+ Name: mikeian
3
+ Version: 0.1.2
4
+ Summary: Deterministic, budgeted orchestration for AI-assisted software migrations
5
+ License-Expression: MIT
6
+ Project-URL: Repository, https://github.com/fabianmoor/Mikeian
7
+ Project-URL: Issues, https://github.com/fabianmoor/Mikeian/issues
8
+ Project-URL: Changelog, https://github.com/fabianmoor/Mikeian/blob/main/CHANGELOG.md
9
+ Keywords: migration,orchestration,AI agents,CLI
10
+ Classifier: Development Status :: 3 - Alpha
11
+ Classifier: Environment :: Console
12
+ Classifier: Intended Audience :: Developers
13
+ Classifier: Operating System :: POSIX :: Linux
14
+ Classifier: Programming Language :: Python :: 3
15
+ Classifier: Programming Language :: Python :: 3.11
16
+ Classifier: Programming Language :: Python :: 3.12
17
+ Classifier: Programming Language :: Python :: 3.14
18
+ Classifier: Topic :: Software Development :: Build Tools
19
+ Requires-Python: >=3.11
20
+ Description-Content-Type: text/markdown
21
+ License-File: LICENSE
22
+ License-File: NOTICE
23
+ Requires-Dist: PyYAML<7,>=6.0.4
24
+ Requires-Dist: packaging<27,>=26.4
25
+ Provides-Extra: dev
26
+ Requires-Dist: pytest==9.2.0; extra == "dev"
27
+ Requires-Dist: build<2,>=1.2; extra == "dev"
28
+ Dynamic: license-file
29
+
30
+ # Mikeian
31
+
32
+ Mikeian 0.1.2 is a deterministic Python framework for AI-assisted software migrations. It extracts
33
+ StringDB's tested orchestrator without transitioning or changing that production project.
34
+
35
+ Python owns scheduling, model ladders, budgets, SQLite transactions, Git/worktrees, verification,
36
+ independent review evidence, retries and CI. Agents implement and analyze; they cannot approve their
37
+ own implementation, change their contracts or merge protected branches. Projects own architecture,
38
+ reference policy, tasks, contracts, tests, verification extensions and local state. Source/target
39
+ languages and migration strategy are project metadata, not framework assumptions.
40
+
41
+ ## Install
42
+
43
+ Python 3.11+ (current patch release), Git, Bash and Linux/POSIX process semantics are required.
44
+ The initial live adapter also needs Claude Code; GitHub publication needs authenticated `gh`.
45
+
46
+ ```bash
47
+ cd ~/Code/Project/Mikeian
48
+ python3 -m venv .venv
49
+ source .venv/bin/activate
50
+ pip install -e .
51
+ mikeian --version
52
+ mikeian --help
53
+ python -m mikeian --help
54
+ ```
55
+
56
+ For development: `pip install -c constraints.txt -e '.[dev]'`, then `python -m pytest tests -q`.
57
+ No provider credentials are needed for tests. Packaging tests download public Python dependencies,
58
+ then install/test the built wheel offline in a clean environment.
59
+
60
+ For a versioned release, see [Releasing](docs/RELEASING.md). The release workflow builds and tests
61
+ wheel and source distributions, then uses PyPI Trusted Publishing after the release tag is pushed.
62
+
63
+ ## Try it without a provider
64
+
65
+ ```bash
66
+ python examples/minimal-migration/demo.py
67
+ ```
68
+
69
+ This creates a temporary Bash-to-Python project with three dependent tasks, runs actual differential
70
+ checks, fake independent agents, local Git publication, fake GitHub/CI and simulated human merge.
71
+ It records synthetic token usage/costs in that temporary project's ledger. **No real API call or
72
+ expenditure occurs.** The demo prints its temporary project path; inspect it using:
73
+
74
+ ```bash
75
+ mikeian --project /tmp/PRINTED-PROJECT-PATH doctor
76
+ mikeian --project /tmp/PRINTED-PROJECT-PATH status
77
+ mikeian --project /tmp/PRINTED-PROJECT-PATH costs --by-role
78
+ ```
79
+
80
+ ## Use a migration project
81
+
82
+ Create and commit `migration/project.toml` or `mikeian.toml`; use the complete example under
83
+ `examples/minimal-migration/`. Mikeian discovers the nearest manifest from cwd or `--project`.
84
+ Legacy StringDB `migration/config` + `migration/tasks` layout is recognized without changes.
85
+
86
+ ```bash
87
+ mikeian --project /path/to/consumer validate
88
+ mikeian --project /path/to/consumer doctor
89
+ mikeian --project /path/to/consumer run --dry-run
90
+ mikeian --project /path/to/consumer run --task TASK --workers 1 --budget 50 --supervised --auto-pr
91
+ mikeian --project /path/to/consumer run --task TASK --budget 50 --auto-pr --unattended
92
+ mikeian --project /path/to/consumer next --budget 50
93
+ ```
94
+
95
+ One interactive plan authorization covers bounded implementation, verification, independent review,
96
+ correction, revision-bound AI signoff, PR creation/report comment and one implementation CI repair.
97
+ `--unattended --auto-pr` authorizes the same workflow by command invocation without plan or attempt prompts.
98
+ It runs one worker at a time, uses the remaining project budget as each worker cap by default, and
99
+ preapproves Bash commands while keeping trusted deny rules. An explicit `--attempt-cap all=USD`
100
+ bounds every attempt, including a conservative timeout charge. Use it only in a
101
+ disposable isolated environment.
102
+ After repairing a blocked task's external configuration, add `--resume-blocked --task TASK` to make
103
+ one explicit no-prompt retry while preserving its worktree and earlier ledger entries. This also
104
+ accepts a paused IMPLEMENTING task after an interrupted resume, records the updated trusted task
105
+ specification, archives any earlier findings report, advances an unverified task branch to the
106
+ new trusted base while preserving its committed and uncommitted edits, and rechecks preserved work locally before
107
+ starting another implementation worker.
108
+ The human merges in GitHub; `mikeian next` verifies recorded PR merges, then selects and runs one
109
+ eligible task from the trusted dependency graph. It stops after publishing that task's PR and checking
110
+ CI, leaving merge to the human. If no task is eligible, it asks the routed architect and independent
111
+ reviewer to prepare a scoped planning PR. The proposed decisions and READY status become effective
112
+ only after the human merges that PR. A later `next` syncs the merge and resumes task selection.
113
+ `mikeian next --dry-run` previews the current local ledger selection
114
+ without contacting GitHub. `mikeian sync TASK` remains available to recognize an individual merge.
115
+ Manual `review`, `reject`, `verify`, `approve`, `publish`, `ci` and recovery commands remain available.
116
+ Policy changes, exhausted budgets and unresolved infrastructure findings still stop visibly.
117
+ When provider billing becomes available for an attempt charged conservatively,
118
+ `mikeian costs confirm-execution EXECUTION_ID --billed USD --by NAME --evidence REFERENCE` records the billed amount,
119
+ preserves the old charge in an audit table and updates the project budget. A provider balance or a
120
+ partial token estimate is not a billing record.
121
+
122
+ ## Configuration and routing
123
+
124
+ All executable policy/configuration comes from the same approved Git revision; WORKTREE is a
125
+ read-only development mode. Examples use custom paths, task IDs, reference tags and integration
126
+ branch. Generic default routing is economy (Flash/Pro, no Opus escalation). Balanced, quality,
127
+ DeepSeek-only and Claude-only presets are packaged as data. Copy/review/commit a preset into the
128
+ consumer; Mikeian never silently switches approved routing. StringDB compatibility preserves its
129
+ existing routing exactly. Prices are configuration snapshots, never executable constants.
130
+
131
+ ## Security and costs
132
+
133
+ Every paid role uses atomic reservation/execution creation and settlement, conservative incomplete
134
+ usage charges and a cumulative per-project budget. Estimates are not provider-confirmed bills.
135
+ Each project has its own local ledger. Worktrees, private HOME and tool rules are **not OS sandboxes**.
136
+ Use disposable isolation and scoped credentials. Generic live execution requires an explicitly
137
+ configured trusted launcher; Mikeian never searches for or reads credentials/.env. The legacy
138
+ StringDB launcher behavior is preserved and its limitations remain documented.
139
+
140
+ ## Status and limits
141
+
142
+ The extraction preserves all 489 inherited regression cases and adds project, language-independence,
143
+ state-copy, probe and packaging tests. See [validation evidence](docs/VALIDATION.md). A clean wheel
144
+ installation runs the full offline example outside this checkout. No remote repository is created.
145
+ Consumers pin their own Mikeian version through a separately reviewed dependency update.
146
+
147
+ 0.1 initially supports the existing Claude Code harness, four named routing profiles and GitHub CI.
148
+ It is a foreground CLI with supervised and unattended auto-PR modes, not a daemon or distributed service. Generic review probes must
149
+ be standalone Python scripts; one bundled review probe per project is supported (multiple ordinary
150
+ verification probes are supported). Planning/architecture/specification role prompts and the accounted
151
+ invocation API are preserved; no new planning/activation/retirement CLI front ends are invented.
152
+
153
+ Read [architecture](docs/ARCHITECTURE.md), [configuration](docs/CONFIGURATION.md), [CLI](docs/CLI.md),
154
+ [workflow](docs/WORKFLOW.md), [costs](docs/COSTS.md), [security](docs/SECURITY.md) and the
155
+ [future StringDB integration proposal](docs/STRINGDB-INTEGRATION.md).
@@ -0,0 +1,126 @@
1
+ # Mikeian
2
+
3
+ Mikeian 0.1.2 is a deterministic Python framework for AI-assisted software migrations. It extracts
4
+ StringDB's tested orchestrator without transitioning or changing that production project.
5
+
6
+ Python owns scheduling, model ladders, budgets, SQLite transactions, Git/worktrees, verification,
7
+ independent review evidence, retries and CI. Agents implement and analyze; they cannot approve their
8
+ own implementation, change their contracts or merge protected branches. Projects own architecture,
9
+ reference policy, tasks, contracts, tests, verification extensions and local state. Source/target
10
+ languages and migration strategy are project metadata, not framework assumptions.
11
+
12
+ ## Install
13
+
14
+ Python 3.11+ (current patch release), Git, Bash and Linux/POSIX process semantics are required.
15
+ The initial live adapter also needs Claude Code; GitHub publication needs authenticated `gh`.
16
+
17
+ ```bash
18
+ cd ~/Code/Project/Mikeian
19
+ python3 -m venv .venv
20
+ source .venv/bin/activate
21
+ pip install -e .
22
+ mikeian --version
23
+ mikeian --help
24
+ python -m mikeian --help
25
+ ```
26
+
27
+ For development: `pip install -c constraints.txt -e '.[dev]'`, then `python -m pytest tests -q`.
28
+ No provider credentials are needed for tests. Packaging tests download public Python dependencies,
29
+ then install/test the built wheel offline in a clean environment.
30
+
31
+ For a versioned release, see [Releasing](docs/RELEASING.md). The release workflow builds and tests
32
+ wheel and source distributions, then uses PyPI Trusted Publishing after the release tag is pushed.
33
+
34
+ ## Try it without a provider
35
+
36
+ ```bash
37
+ python examples/minimal-migration/demo.py
38
+ ```
39
+
40
+ This creates a temporary Bash-to-Python project with three dependent tasks, runs actual differential
41
+ checks, fake independent agents, local Git publication, fake GitHub/CI and simulated human merge.
42
+ It records synthetic token usage/costs in that temporary project's ledger. **No real API call or
43
+ expenditure occurs.** The demo prints its temporary project path; inspect it using:
44
+
45
+ ```bash
46
+ mikeian --project /tmp/PRINTED-PROJECT-PATH doctor
47
+ mikeian --project /tmp/PRINTED-PROJECT-PATH status
48
+ mikeian --project /tmp/PRINTED-PROJECT-PATH costs --by-role
49
+ ```
50
+
51
+ ## Use a migration project
52
+
53
+ Create and commit `migration/project.toml` or `mikeian.toml`; use the complete example under
54
+ `examples/minimal-migration/`. Mikeian discovers the nearest manifest from cwd or `--project`.
55
+ Legacy StringDB `migration/config` + `migration/tasks` layout is recognized without changes.
56
+
57
+ ```bash
58
+ mikeian --project /path/to/consumer validate
59
+ mikeian --project /path/to/consumer doctor
60
+ mikeian --project /path/to/consumer run --dry-run
61
+ mikeian --project /path/to/consumer run --task TASK --workers 1 --budget 50 --supervised --auto-pr
62
+ mikeian --project /path/to/consumer run --task TASK --budget 50 --auto-pr --unattended
63
+ mikeian --project /path/to/consumer next --budget 50
64
+ ```
65
+
66
+ One interactive plan authorization covers bounded implementation, verification, independent review,
67
+ correction, revision-bound AI signoff, PR creation/report comment and one implementation CI repair.
68
+ `--unattended --auto-pr` authorizes the same workflow by command invocation without plan or attempt prompts.
69
+ It runs one worker at a time, uses the remaining project budget as each worker cap by default, and
70
+ preapproves Bash commands while keeping trusted deny rules. An explicit `--attempt-cap all=USD`
71
+ bounds every attempt, including a conservative timeout charge. Use it only in a
72
+ disposable isolated environment.
73
+ After repairing a blocked task's external configuration, add `--resume-blocked --task TASK` to make
74
+ one explicit no-prompt retry while preserving its worktree and earlier ledger entries. This also
75
+ accepts a paused IMPLEMENTING task after an interrupted resume, records the updated trusted task
76
+ specification, archives any earlier findings report, advances an unverified task branch to the
77
+ new trusted base while preserving its committed and uncommitted edits, and rechecks preserved work locally before
78
+ starting another implementation worker.
79
+ The human merges in GitHub; `mikeian next` verifies recorded PR merges, then selects and runs one
80
+ eligible task from the trusted dependency graph. It stops after publishing that task's PR and checking
81
+ CI, leaving merge to the human. If no task is eligible, it asks the routed architect and independent
82
+ reviewer to prepare a scoped planning PR. The proposed decisions and READY status become effective
83
+ only after the human merges that PR. A later `next` syncs the merge and resumes task selection.
84
+ `mikeian next --dry-run` previews the current local ledger selection
85
+ without contacting GitHub. `mikeian sync TASK` remains available to recognize an individual merge.
86
+ Manual `review`, `reject`, `verify`, `approve`, `publish`, `ci` and recovery commands remain available.
87
+ Policy changes, exhausted budgets and unresolved infrastructure findings still stop visibly.
88
+ When provider billing becomes available for an attempt charged conservatively,
89
+ `mikeian costs confirm-execution EXECUTION_ID --billed USD --by NAME --evidence REFERENCE` records the billed amount,
90
+ preserves the old charge in an audit table and updates the project budget. A provider balance or a
91
+ partial token estimate is not a billing record.
92
+
93
+ ## Configuration and routing
94
+
95
+ All executable policy/configuration comes from the same approved Git revision; WORKTREE is a
96
+ read-only development mode. Examples use custom paths, task IDs, reference tags and integration
97
+ branch. Generic default routing is economy (Flash/Pro, no Opus escalation). Balanced, quality,
98
+ DeepSeek-only and Claude-only presets are packaged as data. Copy/review/commit a preset into the
99
+ consumer; Mikeian never silently switches approved routing. StringDB compatibility preserves its
100
+ existing routing exactly. Prices are configuration snapshots, never executable constants.
101
+
102
+ ## Security and costs
103
+
104
+ Every paid role uses atomic reservation/execution creation and settlement, conservative incomplete
105
+ usage charges and a cumulative per-project budget. Estimates are not provider-confirmed bills.
106
+ Each project has its own local ledger. Worktrees, private HOME and tool rules are **not OS sandboxes**.
107
+ Use disposable isolation and scoped credentials. Generic live execution requires an explicitly
108
+ configured trusted launcher; Mikeian never searches for or reads credentials/.env. The legacy
109
+ StringDB launcher behavior is preserved and its limitations remain documented.
110
+
111
+ ## Status and limits
112
+
113
+ The extraction preserves all 489 inherited regression cases and adds project, language-independence,
114
+ state-copy, probe and packaging tests. See [validation evidence](docs/VALIDATION.md). A clean wheel
115
+ installation runs the full offline example outside this checkout. No remote repository is created.
116
+ Consumers pin their own Mikeian version through a separately reviewed dependency update.
117
+
118
+ 0.1 initially supports the existing Claude Code harness, four named routing profiles and GitHub CI.
119
+ It is a foreground CLI with supervised and unattended auto-PR modes, not a daemon or distributed service. Generic review probes must
120
+ be standalone Python scripts; one bundled review probe per project is supported (multiple ordinary
121
+ verification probes are supported). Planning/architecture/specification role prompts and the accounted
122
+ invocation API are preserved; no new planning/activation/retirement CLI front ends are invented.
123
+
124
+ Read [architecture](docs/ARCHITECTURE.md), [configuration](docs/CONFIGURATION.md), [CLI](docs/CLI.md),
125
+ [workflow](docs/WORKFLOW.md), [costs](docs/COSTS.md), [security](docs/SECURITY.md) and the
126
+ [future StringDB integration proposal](docs/STRINGDB-INTEGRATION.md).
@@ -0,0 +1,10 @@
1
+ # Pinned versions for the orchestrator (runtime + tests). Used locally and by CI through requirements-dev.txt.
2
+ # Regenerate deliberately (pip install, run the suite, update) and review the diff; CI installs exactly these.
3
+ iniconfig==2.3.0
4
+ packaging==26.4
5
+ pluggy==1.7.0
6
+ pygments==2.21.0
7
+ pytest==9.2.0
8
+ pyyaml==6.0.4
9
+ build==1.6.1
10
+ pyproject-hooks==1.3.3
@@ -0,0 +1,48 @@
1
+ # Architecture
2
+
3
+ ## Ownership boundary
4
+
5
+ Mikeian owns deterministic orchestration; consumers own migration policy/content/state. The extracted
6
+ engine stays flat under `src/mikeian/`, preserving interfaces and transactional behavior. Reorganizing
7
+ it into many nested packages during extraction would add import/refactor risk without capability.
8
+
9
+ `ProjectContext` discovers a consumer, validates its manifest and reloads it from the selected trusted
10
+ Git ref before configuration/tasks execute. `config` loads routing/orchestrator/pricing from that same
11
+ commit. `specs` loads tasks, architecture, decisions, macros/contracts and computes content digests.
12
+ `tasks/decisions/scheduler` parse, scope approvals, validate the DAG, avoid path conflicts and select
13
+ models. Strategy/language names are informational; no Strangler Fig behavior is imposed generically.
14
+
15
+ `engine` owns worktrees, attempts, recovery, scope/reference checks and accounted invocation. The
16
+ AgentRunner protocol separates the execution harness from routing profile and provider model ID.
17
+ The ClaudeCodeRunner adapter preserves stream parsing, process groups/watchdog, usage and timeouts.
18
+ Adding a runner does not change the scheduler. New pricing semantics belong in pricing adapters/data,
19
+ not task scheduling. There is no new provider integration or credential broker in 0.1.
20
+
21
+ `verify/probes/review_checks` execute trusted commands and project hooks with explicit receipts.
22
+ `review` executes fresh independent sessions in full Git clones, validates structured verdicts and
23
+ binds reports/receipts to implementation SHA, trusted specification SHA and verification generation.
24
+ `automation` reuses the existing manual gates for delegated AI signoff, PR comments and bounded CI
25
+ repair. `github` is the initial integration adapter; it never merges or submits GitHub approval.
26
+
27
+ ## State and policy
28
+
29
+ SQLite schema 5 adds nullable execution provenance columns to schema 4. Existing transitions, reviews,
30
+ approvals, frozen commits/tags, financial fields and pricing snapshots remain. Additions are versioned;
31
+ future schemas are rejected before DDL. Old records do not acquire invented framework provenance.
32
+ Local verification has zero provider expenditure and still requires fresh independent review.
33
+
34
+ Generic task IDs are safe path/ref components, with explicit `kind = acceptance` and configured
35
+ staged pairs/approved decision IDs when needed. Component lifecycle metadata remains consumer-owned.
36
+ StringDB's F01/Cxx task grammar, D17 pair/tag convention, reference baseline and Cargo RED interpretation
37
+ are restricted to `compat/stringdb` or explicit backwards-compatible Python API entry points.
38
+
39
+ ## Trust and compatibility
40
+
41
+ No mutable worker file can replace trusted probe/config/prompt assets. Hooks are materialized from
42
+ Git, hashed, invoked by a fixed command, and checked before/after review. Missing mandatory hooks,
43
+ malformed receipts, rejected reviews, changed commits/policy and altered frozen tests fail closed.
44
+ The OS isolation boundary is supplied by the operator, not by Python/Git/tool permissions.
45
+
46
+ The diagnostic StringDB copy is deliberately not resumable: stored paths are remapped and missing
47
+ reports invalidate active reuse; a marker blocks all mutating commands/recovery so copied PIDs cannot
48
+ signal production workers. A future real cutover must happen in a separately approved consumer PR.