letitloop 0.2.0__tar.gz → 0.3.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 (349) hide show
  1. {letitloop-0.2.0 → letitloop-0.3.0}/PKG-INFO +37 -14
  2. {letitloop-0.2.0 → letitloop-0.3.0}/README.md +35 -13
  3. letitloop-0.3.0/conformance/__init__.py +1 -0
  4. letitloop-0.3.0/conformance/adapters/atomic_wal_adapter.py +101 -0
  5. letitloop-0.3.0/conformance/adapters/autogen_adapter.py +32 -0
  6. letitloop-0.3.0/conformance/adapters/base.py +22 -0
  7. letitloop-0.3.0/conformance/adapters/crewai_adapter.py +31 -0
  8. letitloop-0.3.0/conformance/adapters/in_memory_adapter.py +82 -0
  9. letitloop-0.3.0/conformance/adapters/langgraph_adapter.py +43 -0
  10. letitloop-0.3.0/conformance/adapters/letitloop_adapter.py +9 -0
  11. letitloop-0.3.0/conformance/adapters/raw_python_adapter.py +30 -0
  12. letitloop-0.3.0/conformance/adapters/snapshot_graph_adapter.py +98 -0
  13. letitloop-0.3.0/conformance/adapters/unmanaged_script_adapter.py +80 -0
  14. letitloop-0.3.0/conformance/harness/__init__.py +5 -0
  15. letitloop-0.3.0/conformance/harness/injector.py +90 -0
  16. letitloop-0.3.0/conformance/harness/runner.py +286 -0
  17. letitloop-0.3.0/conformance/harness/schema.py +31 -0
  18. letitloop-0.3.0/conformance/harness/synthetic_engine.py +88 -0
  19. letitloop-0.3.0/conformance/scenarios/__init__.py +40 -0
  20. letitloop-0.3.0/docs/auto_healing.md +92 -0
  21. letitloop-0.3.0/letitloop/__init__.py +23 -0
  22. {letitloop-0.2.0 → letitloop-0.3.0}/letitloop.egg-info/PKG-INFO +37 -14
  23. {letitloop-0.2.0 → letitloop-0.3.0}/letitloop.egg-info/SOURCES.txt +30 -18
  24. {letitloop-0.2.0 → letitloop-0.3.0}/letitloop.egg-info/entry_points.txt +0 -1
  25. {letitloop-0.2.0 → letitloop-0.3.0}/letitloop.egg-info/requires.txt +1 -0
  26. letitloop-0.3.0/letitloop.egg-info/top_level.txt +3 -0
  27. {letitloop-0.2.0 → letitloop-0.3.0}/orchestrator/__init__.py +1 -5
  28. {letitloop-0.2.0 → letitloop-0.3.0}/orchestrator/ast_node_splicer.py +43 -48
  29. letitloop-0.3.0/orchestrator/auto_healer.py +207 -0
  30. {letitloop-0.2.0 → letitloop-0.3.0}/orchestrator/cli.py +138 -17
  31. letitloop-0.3.0/orchestrator/cloud_watchdog.py +149 -0
  32. letitloop-0.3.0/orchestrator/decorators.py +154 -0
  33. {letitloop-0.2.0 → letitloop-0.3.0}/orchestrator/env_doctor.py +12 -0
  34. {letitloop-0.2.0 → letitloop-0.3.0}/orchestrator/llm.py +35 -2
  35. {letitloop-0.2.0 → letitloop-0.3.0}/orchestrator/lock.py +33 -4
  36. {letitloop-0.2.0 → letitloop-0.3.0}/orchestrator/plan_preview.py +3 -3
  37. {letitloop-0.2.0 → letitloop-0.3.0}/orchestrator/planner.py +270 -0
  38. {letitloop-0.2.0 → letitloop-0.3.0}/orchestrator/process_guard.py +32 -4
  39. letitloop-0.3.0/orchestrator/receipts.py +71 -0
  40. {letitloop-0.2.0 → letitloop-0.3.0}/orchestrator/safety.py +142 -0
  41. {letitloop-0.2.0 → letitloop-0.3.0}/orchestrator/schemas.py +6 -62
  42. {letitloop-0.2.0 → letitloop-0.3.0}/orchestrator/state.py +65 -23
  43. {letitloop-0.2.0 → letitloop-0.3.0}/orchestrator/supervisor/core.py +15 -0
  44. {letitloop-0.2.0 → letitloop-0.3.0}/orchestrator/supervisor/recovery.py +4 -1
  45. {letitloop-0.2.0 → letitloop-0.3.0}/orchestrator/telemetry.py +23 -0
  46. {letitloop-0.2.0 → letitloop-0.3.0}/orchestrator/verifier.py +62 -15
  47. {letitloop-0.2.0 → letitloop-0.3.0}/orchestrator/worker_adapters.py +100 -149
  48. {letitloop-0.2.0 → letitloop-0.3.0}/orchestrator/worktree.py +22 -1
  49. {letitloop-0.2.0 → letitloop-0.3.0}/pyproject.toml +4 -4
  50. {letitloop-0.2.0 → letitloop-0.3.0}/pytest.ini +1 -1
  51. {letitloop-0.2.0 → letitloop-0.3.0}/tests/test_adversarial_audit.py +0 -29
  52. {letitloop-0.2.0 → letitloop-0.3.0}/tests/test_ast_node_splicer.py +18 -16
  53. letitloop-0.3.0/tests/test_auto_healer.py +101 -0
  54. {letitloop-0.2.0 → letitloop-0.3.0}/tests/test_benchmarks.py +10 -17
  55. {letitloop-0.2.0 → letitloop-0.3.0}/tests/test_cli.py +50 -33
  56. {letitloop-0.2.0 → letitloop-0.3.0}/tests/test_cli_failure_report.py +9 -6
  57. letitloop-0.3.0/tests/test_cloud_watchdog.py +64 -0
  58. letitloop-0.3.0/tests/test_durable_decorator.py +115 -0
  59. letitloop-0.3.0/tests/test_engine_improvements.py +267 -0
  60. letitloop-0.3.0/tests/test_hardening_batch3.py +292 -0
  61. {letitloop-0.2.0 → letitloop-0.3.0}/tests/test_hybrid_worker.py +16 -0
  62. {letitloop-0.2.0 → letitloop-0.3.0}/tests/test_integration.py +1 -1
  63. {letitloop-0.2.0 → letitloop-0.3.0}/tests/test_live_proofs.py +1 -1
  64. {letitloop-0.2.0 → letitloop-0.3.0}/tests/test_lock.py +5 -6
  65. {letitloop-0.2.0 → letitloop-0.3.0}/tests/test_plan_gate.py +1 -1
  66. letitloop-0.3.0/tests/test_token_gate.py +55 -0
  67. {letitloop-0.2.0 → letitloop-0.3.0}/tests/test_wal_corruption_recovery.py +10 -2
  68. letitloop-0.3.0/tests/test_worker_adapters_extended.py +135 -0
  69. letitloop-0.2.0/letitloop.egg-info/top_level.txt +0 -1
  70. letitloop-0.2.0/orchestrator/approval.py +0 -139
  71. letitloop-0.2.0/orchestrator/experimental/arena_arbiter.py +0 -260
  72. letitloop-0.2.0/orchestrator/experimental/fuzz_engine.py +0 -206
  73. letitloop-0.2.0/orchestrator/experimental/mutation_tester.py +0 -382
  74. letitloop-0.2.0/orchestrator/mcp_server.py +0 -344
  75. letitloop-0.2.0/orchestrator/prometheus_exporter.py +0 -207
  76. letitloop-0.2.0/orchestrator/provenance.py +0 -263
  77. letitloop-0.2.0/orchestrator/skill_installer.py +0 -140
  78. letitloop-0.2.0/orchestrator/templates.py +0 -268
  79. letitloop-0.2.0/orchestrator/tui.py +0 -649
  80. letitloop-0.2.0/tests/test_experimental_arena_arbiter.py +0 -85
  81. letitloop-0.2.0/tests/test_experimental_mutation_tester.py +0 -305
  82. letitloop-0.2.0/tests/test_mcp_server.py +0 -102
  83. letitloop-0.2.0/tests/test_prometheus_exporter.py +0 -207
  84. letitloop-0.2.0/tests/test_provenance.py +0 -195
  85. letitloop-0.2.0/tests/test_skill.py +0 -73
  86. letitloop-0.2.0/tests/test_templates.py +0 -131
  87. letitloop-0.2.0/tests/test_tui.py +0 -385
  88. {letitloop-0.2.0 → letitloop-0.3.0}/.github/ISSUE_TEMPLATE/bug_report.yml +0 -0
  89. {letitloop-0.2.0 → letitloop-0.3.0}/.github/ISSUE_TEMPLATE/config.yml +0 -0
  90. {letitloop-0.2.0 → letitloop-0.3.0}/.github/ISSUE_TEMPLATE/feature_request.yml +0 -0
  91. {letitloop-0.2.0 → letitloop-0.3.0}/.github/dependabot.yml +0 -0
  92. {letitloop-0.2.0 → letitloop-0.3.0}/.github/release-drafter.yml +0 -0
  93. {letitloop-0.2.0 → letitloop-0.3.0}/.github/workflows/ci.yml +0 -0
  94. {letitloop-0.2.0 → letitloop-0.3.0}/.github/workflows/codeql.yml +0 -0
  95. {letitloop-0.2.0 → letitloop-0.3.0}/.github/workflows/dependency-review.yml +0 -0
  96. {letitloop-0.2.0 → letitloop-0.3.0}/.github/workflows/issue-claim.yml +0 -0
  97. {letitloop-0.2.0 → letitloop-0.3.0}/.github/workflows/letitloop-verify.yml +0 -0
  98. {letitloop-0.2.0 → letitloop-0.3.0}/.github/workflows/pages.yml +0 -0
  99. {letitloop-0.2.0 → letitloop-0.3.0}/.github/workflows/release-pypi.yml +0 -0
  100. {letitloop-0.2.0 → letitloop-0.3.0}/.github/workflows/welcome-bot.yml +0 -0
  101. {letitloop-0.2.0 → letitloop-0.3.0}/CHANGELOG.md +0 -0
  102. {letitloop-0.2.0 → letitloop-0.3.0}/LICENSE +0 -0
  103. {letitloop-0.2.0 → letitloop-0.3.0}/MANIFEST.in +0 -0
  104. {letitloop-0.2.0 → letitloop-0.3.0}/docs/MCP_GUIDE.md +0 -0
  105. {letitloop-0.2.0 → letitloop-0.3.0}/docs/SKILL_GUIDE.md +0 -0
  106. {letitloop-0.2.0 → letitloop-0.3.0}/docs/adr/0001-write-ahead-logging.md +0 -0
  107. {letitloop-0.2.0 → letitloop-0.3.0}/docs/adr/0002-deterministic-verifiers.md +0 -0
  108. {letitloop-0.2.0 → letitloop-0.3.0}/docs/adr/0003-headless-cli-adapters.md +0 -0
  109. {letitloop-0.2.0 → letitloop-0.3.0}/docs/adr/0004-format-aware-acceptance-checks.md +0 -0
  110. {letitloop-0.2.0 → letitloop-0.3.0}/docs/adr/README.md +0 -0
  111. {letitloop-0.2.0 → letitloop-0.3.0}/docs/adr/template.md +0 -0
  112. {letitloop-0.2.0 → letitloop-0.3.0}/letitloop.egg-info/dependency_links.txt +0 -0
  113. {letitloop-0.2.0 → letitloop-0.3.0}/orchestrator/SKILL.md +0 -0
  114. {letitloop-0.2.0 → letitloop-0.3.0}/orchestrator/anti_ouroboros.py +0 -0
  115. {letitloop-0.2.0 → letitloop-0.3.0}/orchestrator/ast_splicer.py +0 -0
  116. {letitloop-0.2.0 → letitloop-0.3.0}/orchestrator/audit.py +0 -0
  117. {letitloop-0.2.0 → letitloop-0.3.0}/orchestrator/budget.py +0 -0
  118. {letitloop-0.2.0 → letitloop-0.3.0}/orchestrator/checkpoint.py +0 -0
  119. {letitloop-0.2.0 → letitloop-0.3.0}/orchestrator/codebase_introspector.py +0 -0
  120. {letitloop-0.2.0 → letitloop-0.3.0}/orchestrator/component_slicer.py +0 -0
  121. {letitloop-0.2.0 → letitloop-0.3.0}/orchestrator/config.py +0 -0
  122. {letitloop-0.2.0 → letitloop-0.3.0}/orchestrator/contract.py +0 -0
  123. {letitloop-0.2.0 → letitloop-0.3.0}/orchestrator/dag_validator.py +0 -0
  124. {letitloop-0.2.0 → letitloop-0.3.0}/orchestrator/elasticity_governor.py +0 -0
  125. {letitloop-0.2.0 → letitloop-0.3.0}/orchestrator/errors.py +0 -0
  126. {letitloop-0.2.0 → letitloop-0.3.0}/orchestrator/events.py +0 -0
  127. {letitloop-0.2.0 → letitloop-0.3.0}/orchestrator/evidence.py +0 -0
  128. {letitloop-0.2.0 → letitloop-0.3.0}/orchestrator/exceptions.py +0 -0
  129. {letitloop-0.2.0 → letitloop-0.3.0}/orchestrator/failure.py +0 -0
  130. {letitloop-0.2.0 → letitloop-0.3.0}/orchestrator/fast_sandbox.py +0 -0
  131. {letitloop-0.2.0 → letitloop-0.3.0}/orchestrator/feasibility_gate.py +0 -0
  132. {letitloop-0.2.0 → letitloop-0.3.0}/orchestrator/feedback.py +0 -0
  133. {letitloop-0.2.0 → letitloop-0.3.0}/orchestrator/fixtures/__init__.py +0 -0
  134. {letitloop-0.2.0 → letitloop-0.3.0}/orchestrator/fixtures/example_contract.json +0 -0
  135. {letitloop-0.2.0 → letitloop-0.3.0}/orchestrator/fixtures/generated/evidence-cli-run-test-step-1.json +0 -0
  136. {letitloop-0.2.0 → letitloop-0.3.0}/orchestrator/fixtures/generated/evidence-cli-run-test-step-2.json +0 -0
  137. {letitloop-0.2.0 → letitloop-0.3.0}/orchestrator/fixtures/generated/evidence-inject-test-a.json +0 -0
  138. {letitloop-0.2.0 → letitloop-0.3.0}/orchestrator/fixtures/generated/evidence-inject-test-b.json +0 -0
  139. {letitloop-0.2.0 → letitloop-0.3.0}/orchestrator/fixtures/generated/evidence-inject-test-c.json +0 -0
  140. {letitloop-0.2.0 → letitloop-0.3.0}/orchestrator/fixtures/generated/evidence-json-test-a.json +0 -0
  141. {letitloop-0.2.0 → letitloop-0.3.0}/orchestrator/fixtures/generated/evidence-json-test-b.json +0 -0
  142. {letitloop-0.2.0 → letitloop-0.3.0}/orchestrator/fixtures/generated/fail-report-fail-task-1.json +0 -0
  143. {letitloop-0.2.0 → letitloop-0.3.0}/orchestrator/fixtures/generated/fail-report-json-task-1.json +0 -0
  144. {letitloop-0.2.0 → letitloop-0.3.0}/orchestrator/fixtures/generated/fail-report-success-task-1.json +0 -0
  145. {letitloop-0.2.0 → letitloop-0.3.0}/orchestrator/fixtures/generated/fuzz-engine-design.json +0 -0
  146. {letitloop-0.2.0 → letitloop-0.3.0}/orchestrator/fixtures/generated/fuzz-engine-impl.json +0 -0
  147. {letitloop-0.2.0 → letitloop-0.3.0}/orchestrator/fixtures/generated/fuzz-engine-tests.json +0 -0
  148. {letitloop-0.2.0 → letitloop-0.3.0}/orchestrator/fixtures/generated/fuzz-engine-verify.json +0 -0
  149. {letitloop-0.2.0 → letitloop-0.3.0}/orchestrator/fixtures/generated/goal-orch-step-1.json +0 -0
  150. {letitloop-0.2.0 → letitloop-0.3.0}/orchestrator/fixtures/generated/goal-orch-step-2.json +0 -0
  151. {letitloop-0.2.0 → letitloop-0.3.0}/orchestrator/fixtures/generated/goal-orch-step-3.json +0 -0
  152. {letitloop-0.2.0 → letitloop-0.3.0}/orchestrator/fixtures/generated/goal-orch-step-4.json +0 -0
  153. {letitloop-0.2.0 → letitloop-0.3.0}/orchestrator/fixtures/generated/goal-orch-step-5.json +0 -0
  154. {letitloop-0.2.0 → letitloop-0.3.0}/orchestrator/fixtures/generated/goal-orch-step-6.json +0 -0
  155. {letitloop-0.2.0 → letitloop-0.3.0}/orchestrator/fixtures/generated/implement-a-thread-safe-token-bucket-rat-task-1.json +0 -0
  156. {letitloop-0.2.0 → letitloop-0.3.0}/orchestrator/fixtures/generated/orchestrator-checkpoint-rollback-3.json +0 -0
  157. {letitloop-0.2.0 → letitloop-0.3.0}/orchestrator/fixtures/generated/orchestrator-checkpoint-rollback.json +0 -0
  158. {letitloop-0.2.0 → letitloop-0.3.0}/orchestrator/fixtures/generated/orchestrator-live-telemetry-2.json +0 -0
  159. {letitloop-0.2.0 → letitloop-0.3.0}/orchestrator/fixtures/generated/orchestrator-live-telemetry.json +0 -0
  160. {letitloop-0.2.0 → letitloop-0.3.0}/orchestrator/fixtures/generated/orchestrator-spec-synthesis-1.json +0 -0
  161. {letitloop-0.2.0 → letitloop-0.3.0}/orchestrator/fixtures/generated/orchestrator-spec-synthesis.json +0 -0
  162. {letitloop-0.2.0 → letitloop-0.3.0}/orchestrator/fixtures/generated/orchestrator-test-verification-4.json +0 -0
  163. {letitloop-0.2.0 → letitloop-0.3.0}/orchestrator/fixtures/generated/orchestrator-test-verification.json +0 -0
  164. {letitloop-0.2.0 → letitloop-0.3.0}/orchestrator/fixtures/generated/perf-step-1.json +0 -0
  165. {letitloop-0.2.0 → letitloop-0.3.0}/orchestrator/fixtures/generated/perf-step-2.json +0 -0
  166. {letitloop-0.2.0 → letitloop-0.3.0}/orchestrator/fixtures/generated/perf-step-3.json +0 -0
  167. {letitloop-0.2.0 → letitloop-0.3.0}/orchestrator/fixtures/generated/perf-step-4.json +0 -0
  168. {letitloop-0.2.0 → letitloop-0.3.0}/orchestrator/fixtures/generated/perf-step-5.json +0 -0
  169. {letitloop-0.2.0 → letitloop-0.3.0}/orchestrator/fixtures/generated/phase2-proof-two-step-step-1.json +0 -0
  170. {letitloop-0.2.0 → letitloop-0.3.0}/orchestrator/fixtures/generated/phase2-proof-two-step-step-2.json +0 -0
  171. {letitloop-0.2.0 → letitloop-0.3.0}/orchestrator/fixtures/generated/planner-spec-synthesis-impl.json +0 -0
  172. {letitloop-0.2.0 → letitloop-0.3.0}/orchestrator/fixtures/generated/self-evolution-ast-formatter.json +0 -0
  173. {letitloop-0.2.0 → letitloop-0.3.0}/orchestrator/fixtures/generated/self-evolution-checkpoint-rollback.json +0 -0
  174. {letitloop-0.2.0 → letitloop-0.3.0}/orchestrator/fixtures/generated/self-evolution-spec-synthesis.json +0 -0
  175. {letitloop-0.2.0 → letitloop-0.3.0}/orchestrator/fixtures/generated/self-evolution-step-1.json +0 -0
  176. {letitloop-0.2.0 → letitloop-0.3.0}/orchestrator/fixtures/generated/self-evolution-step-2.json +0 -0
  177. {letitloop-0.2.0 → letitloop-0.3.0}/orchestrator/fixtures/generated/self-evolution-step-3.json +0 -0
  178. {letitloop-0.2.0 → letitloop-0.3.0}/orchestrator/fixtures/generated/self-evolution-step-4.json +0 -0
  179. {letitloop-0.2.0 → letitloop-0.3.0}/orchestrator/fixtures/generated/self-evolution-step-5.json +0 -0
  180. {letitloop-0.2.0 → letitloop-0.3.0}/orchestrator/fixtures/generated/self-evolution-telemetry.json +0 -0
  181. {letitloop-0.2.0 → letitloop-0.3.0}/orchestrator/fixtures/generated/self-evolution-tests.json +0 -0
  182. {letitloop-0.2.0 → letitloop-0.3.0}/orchestrator/fixtures/generated/spec-telemetry-research-design.json +0 -0
  183. {letitloop-0.2.0 → letitloop-0.3.0}/orchestrator/fixtures/generated/spec-telemetry-step-1.json +0 -0
  184. {letitloop-0.2.0 → letitloop-0.3.0}/orchestrator/fixtures/generated/spec-telemetry-step-2.json +0 -0
  185. {letitloop-0.2.0 → letitloop-0.3.0}/orchestrator/fixtures/generated/spec-telemetry-step-3.json +0 -0
  186. {letitloop-0.2.0 → letitloop-0.3.0}/orchestrator/fixtures/generated/spec-telemetry-step-4.json +0 -0
  187. {letitloop-0.2.0 → letitloop-0.3.0}/orchestrator/fixtures/generated/spec-telemetry-step-5.json +0 -0
  188. {letitloop-0.2.0 → letitloop-0.3.0}/orchestrator/fixtures/generated/spec-telemetry-verification.json +0 -0
  189. {letitloop-0.2.0 → letitloop-0.3.0}/orchestrator/fixtures/generated/token-bucket-impl.json +0 -0
  190. {letitloop-0.2.0 → letitloop-0.3.0}/orchestrator/fixtures/generated/token-bucket-step-1.json +0 -0
  191. {letitloop-0.2.0 → letitloop-0.3.0}/orchestrator/fixtures/generated/token-bucket-step-2.json +0 -0
  192. {letitloop-0.2.0 → letitloop-0.3.0}/orchestrator/fixtures/generated/token-bucket-step-3.json +0 -0
  193. {letitloop-0.2.0 → letitloop-0.3.0}/orchestrator/fixtures/generated/token-bucket-tests.json +0 -0
  194. {letitloop-0.2.0 → letitloop-0.3.0}/orchestrator/fixtures/generated/token-bucket-verify.json +0 -0
  195. {letitloop-0.2.0 → letitloop-0.3.0}/orchestrator/fixtures/generated/trace-ux-tests-step-1.json +0 -0
  196. {letitloop-0.2.0 → letitloop-0.3.0}/orchestrator/fixtures/generated/trace-ux-tests-step-2.json +0 -0
  197. {letitloop-0.2.0 → letitloop-0.3.0}/orchestrator/fixtures/generated/trace-ux-tests-step-3.json +0 -0
  198. {letitloop-0.2.0 → letitloop-0.3.0}/orchestrator/fixtures/generated/tui-live-telemetry-impl.json +0 -0
  199. {letitloop-0.2.0 → letitloop-0.3.0}/orchestrator/fixtures/phase1_proof_escalation_contract.json +0 -0
  200. {letitloop-0.2.0 → letitloop-0.3.0}/orchestrator/fixtures/phase1_proof_happy_path_contract.json +0 -0
  201. {letitloop-0.2.0 → letitloop-0.3.0}/orchestrator/fixtures/phase1_proof_qc_contract.json +0 -0
  202. {letitloop-0.2.0 → letitloop-0.3.0}/orchestrator/fixtures/phase1_proof_repair_contract.json +0 -0
  203. {letitloop-0.2.0 → letitloop-0.3.0}/orchestrator/fixtures/phase2_proof_two_step_goal.json +0 -0
  204. {letitloop-0.2.0 → letitloop-0.3.0}/orchestrator/fixtures/run_proofs.py +0 -0
  205. {letitloop-0.2.0 → letitloop-0.3.0}/orchestrator/fixtures/test_normalizer.py +0 -0
  206. {letitloop-0.2.0 → letitloop-0.3.0}/orchestrator/generator.py +0 -0
  207. {letitloop-0.2.0 → letitloop-0.3.0}/orchestrator/goal.py +0 -0
  208. {letitloop-0.2.0 → letitloop-0.3.0}/orchestrator/handoff.py +0 -0
  209. {letitloop-0.2.0 → letitloop-0.3.0}/orchestrator/hybrid_worker.py +0 -0
  210. {letitloop-0.2.0 → letitloop-0.3.0}/orchestrator/impossibility.py +0 -0
  211. {letitloop-0.2.0 → letitloop-0.3.0}/orchestrator/limits.py +0 -0
  212. {letitloop-0.2.0 → letitloop-0.3.0}/orchestrator/live_evolution_engine.py +0 -0
  213. {letitloop-0.2.0 → letitloop-0.3.0}/orchestrator/local_tool_calling.py +0 -0
  214. {letitloop-0.2.0 → letitloop-0.3.0}/orchestrator/mcp_client.py +0 -0
  215. {letitloop-0.2.0 → letitloop-0.3.0}/orchestrator/memory_bridge.py +0 -0
  216. {letitloop-0.2.0 → letitloop-0.3.0}/orchestrator/metrics.py +0 -0
  217. {letitloop-0.2.0 → letitloop-0.3.0}/orchestrator/micro_epoch.py +0 -0
  218. {letitloop-0.2.0 → letitloop-0.3.0}/orchestrator/models.py +0 -0
  219. {letitloop-0.2.0 → letitloop-0.3.0}/orchestrator/parsing.py +0 -0
  220. {letitloop-0.2.0 → letitloop-0.3.0}/orchestrator/patch_applier.py +0 -0
  221. {letitloop-0.2.0 → letitloop-0.3.0}/orchestrator/plan_quality.py +0 -0
  222. {letitloop-0.2.0 → letitloop-0.3.0}/orchestrator/preferences.py +0 -0
  223. {letitloop-0.2.0 → letitloop-0.3.0}/orchestrator/preflight.py +0 -0
  224. {letitloop-0.2.0 → letitloop-0.3.0}/orchestrator/prompts.py +0 -0
  225. {letitloop-0.2.0 → letitloop-0.3.0}/orchestrator/proposal_ledger.py +0 -0
  226. {letitloop-0.2.0 → letitloop-0.3.0}/orchestrator/provider_scheduler.py +0 -0
  227. {letitloop-0.2.0 → letitloop-0.3.0}/orchestrator/qc/__init__.py +0 -0
  228. {letitloop-0.2.0 → letitloop-0.3.0}/orchestrator/qc/aggregator.py +0 -0
  229. {letitloop-0.2.0 → letitloop-0.3.0}/orchestrator/qc/parsing.py +0 -0
  230. {letitloop-0.2.0 → letitloop-0.3.0}/orchestrator/qc/personas.py +0 -0
  231. {letitloop-0.2.0 → letitloop-0.3.0}/orchestrator/qc/runner.py +0 -0
  232. {letitloop-0.2.0 → letitloop-0.3.0}/orchestrator/qc_overrule.py +0 -0
  233. {letitloop-0.2.0 → letitloop-0.3.0}/orchestrator/qc_review.py +0 -0
  234. {letitloop-0.2.0 → letitloop-0.3.0}/orchestrator/quality_lenses.py +0 -0
  235. {letitloop-0.2.0 → letitloop-0.3.0}/orchestrator/quality_plan.py +0 -0
  236. {letitloop-0.2.0 → letitloop-0.3.0}/orchestrator/quality_plane.py +0 -0
  237. {letitloop-0.2.0 → letitloop-0.3.0}/orchestrator/reconcile.py +0 -0
  238. {letitloop-0.2.0 → letitloop-0.3.0}/orchestrator/replanner.py +0 -0
  239. {letitloop-0.2.0 → letitloop-0.3.0}/orchestrator/research.py +0 -0
  240. {letitloop-0.2.0 → letitloop-0.3.0}/orchestrator/review_artifact.py +0 -0
  241. {letitloop-0.2.0 → letitloop-0.3.0}/orchestrator/scope.py +0 -0
  242. {letitloop-0.2.0 → letitloop-0.3.0}/orchestrator/sensory_radar.py +0 -0
  243. {letitloop-0.2.0 → letitloop-0.3.0}/orchestrator/sse_server.py +0 -0
  244. {letitloop-0.2.0 → letitloop-0.3.0}/orchestrator/subprocess_helper.py +0 -0
  245. {letitloop-0.2.0 → letitloop-0.3.0}/orchestrator/supervisor/__init__.py +0 -0
  246. {letitloop-0.2.0 → letitloop-0.3.0}/orchestrator/supervisor/_shared.py +0 -0
  247. {letitloop-0.2.0 → letitloop-0.3.0}/orchestrator/supervisor/cleanup.py +0 -0
  248. {letitloop-0.2.0 → letitloop-0.3.0}/orchestrator/supervisor/reporting.py +0 -0
  249. {letitloop-0.2.0 → letitloop-0.3.0}/orchestrator/surgical_extractor.py +0 -0
  250. {letitloop-0.2.0 → letitloop-0.3.0}/orchestrator/token_gate.py +0 -0
  251. {letitloop-0.2.0 → letitloop-0.3.0}/orchestrator/webhooks.py +0 -0
  252. {letitloop-0.2.0 → letitloop-0.3.0}/orchestrator/worker.py +0 -0
  253. {letitloop-0.2.0 → letitloop-0.3.0}/orchestrator/worker_pool.py +0 -0
  254. {letitloop-0.2.0 → letitloop-0.3.0}/requirements-ci.txt +0 -0
  255. {letitloop-0.2.0 → letitloop-0.3.0}/setup.cfg +0 -0
  256. {letitloop-0.2.0 → letitloop-0.3.0}/tests/__init__.py +0 -0
  257. {letitloop-0.2.0 → letitloop-0.3.0}/tests/fault_injection.py +0 -0
  258. {letitloop-0.2.0 → letitloop-0.3.0}/tests/test_agent_loop_profiles.py +0 -0
  259. {letitloop-0.2.0 → letitloop-0.3.0}/tests/test_anti_ouroboros.py +0 -0
  260. {letitloop-0.2.0 → letitloop-0.3.0}/tests/test_ast_comment_retention.py +0 -0
  261. {letitloop-0.2.0 → letitloop-0.3.0}/tests/test_audit.py +0 -0
  262. {letitloop-0.2.0 → letitloop-0.3.0}/tests/test_budget.py +0 -0
  263. {letitloop-0.2.0 → letitloop-0.3.0}/tests/test_budget_enforcement_e2e.py +0 -0
  264. {letitloop-0.2.0 → letitloop-0.3.0}/tests/test_checkpoint.py +0 -0
  265. {letitloop-0.2.0 → letitloop-0.3.0}/tests/test_checkpoint_apply_e2e.py +0 -0
  266. {letitloop-0.2.0 → letitloop-0.3.0}/tests/test_cli_doctor.py +0 -0
  267. {letitloop-0.2.0 → letitloop-0.3.0}/tests/test_cli_phase3.py +0 -0
  268. {letitloop-0.2.0 → letitloop-0.3.0}/tests/test_codebase_introspector.py +0 -0
  269. {letitloop-0.2.0 → letitloop-0.3.0}/tests/test_component_slicer.py +0 -0
  270. {letitloop-0.2.0 → letitloop-0.3.0}/tests/test_config.py +0 -0
  271. {letitloop-0.2.0 → letitloop-0.3.0}/tests/test_contract.py +0 -0
  272. {letitloop-0.2.0 → letitloop-0.3.0}/tests/test_dag_validator.py +0 -0
  273. {letitloop-0.2.0 → letitloop-0.3.0}/tests/test_docker_sandbox.py +0 -0
  274. {letitloop-0.2.0 → letitloop-0.3.0}/tests/test_dryrun.py +0 -0
  275. {letitloop-0.2.0 → letitloop-0.3.0}/tests/test_elasticity_governor.py +0 -0
  276. {letitloop-0.2.0 → letitloop-0.3.0}/tests/test_errors.py +0 -0
  277. {letitloop-0.2.0 → letitloop-0.3.0}/tests/test_event_wiring.py +0 -0
  278. {letitloop-0.2.0 → letitloop-0.3.0}/tests/test_evidence_flow.py +0 -0
  279. {letitloop-0.2.0 → letitloop-0.3.0}/tests/test_evidence_flow_cli.py +0 -0
  280. {letitloop-0.2.0 → letitloop-0.3.0}/tests/test_evidence_ledger.py +0 -0
  281. {letitloop-0.2.0 → letitloop-0.3.0}/tests/test_exception_containment.py +0 -0
  282. {letitloop-0.2.0 → letitloop-0.3.0}/tests/test_failure.py +0 -0
  283. {letitloop-0.2.0 → letitloop-0.3.0}/tests/test_fast_sandbox.py +0 -0
  284. {letitloop-0.2.0 → letitloop-0.3.0}/tests/test_fault_injection.py +0 -0
  285. {letitloop-0.2.0 → letitloop-0.3.0}/tests/test_fault_injection_adversarial.py +0 -0
  286. {letitloop-0.2.0 → letitloop-0.3.0}/tests/test_feasibility_gate.py +0 -0
  287. {letitloop-0.2.0 → letitloop-0.3.0}/tests/test_feedback.py +0 -0
  288. {letitloop-0.2.0 → letitloop-0.3.0}/tests/test_generator.py +0 -0
  289. {letitloop-0.2.0 → letitloop-0.3.0}/tests/test_goal.py +0 -0
  290. {letitloop-0.2.0 → letitloop-0.3.0}/tests/test_handoff.py +0 -0
  291. {letitloop-0.2.0 → letitloop-0.3.0}/tests/test_impossibility.py +0 -0
  292. {letitloop-0.2.0 → letitloop-0.3.0}/tests/test_limits.py +0 -0
  293. {letitloop-0.2.0 → letitloop-0.3.0}/tests/test_live_evolution.py +0 -0
  294. {letitloop-0.2.0 → letitloop-0.3.0}/tests/test_live_evolution_feasibility.py +0 -0
  295. {letitloop-0.2.0 → letitloop-0.3.0}/tests/test_live_smoke.py +0 -0
  296. {letitloop-0.2.0 → letitloop-0.3.0}/tests/test_local_tool_calling.py +0 -0
  297. {letitloop-0.2.0 → letitloop-0.3.0}/tests/test_mcp_client.py +0 -0
  298. {letitloop-0.2.0 → letitloop-0.3.0}/tests/test_mcp_concurrency.py +0 -0
  299. {letitloop-0.2.0 → letitloop-0.3.0}/tests/test_memory_bridge.py +0 -0
  300. {letitloop-0.2.0 → letitloop-0.3.0}/tests/test_metrics.py +0 -0
  301. {letitloop-0.2.0 → letitloop-0.3.0}/tests/test_micro_epoch.py +0 -0
  302. {letitloop-0.2.0 → letitloop-0.3.0}/tests/test_operator_controls.py +0 -0
  303. {letitloop-0.2.0 → letitloop-0.3.0}/tests/test_parsing.py +0 -0
  304. {letitloop-0.2.0 → letitloop-0.3.0}/tests/test_patch_applier.py +0 -0
  305. {letitloop-0.2.0 → letitloop-0.3.0}/tests/test_performance_and_trace.py +0 -0
  306. {letitloop-0.2.0 → letitloop-0.3.0}/tests/test_plan_quality.py +0 -0
  307. {letitloop-0.2.0 → letitloop-0.3.0}/tests/test_planner.py +0 -0
  308. {letitloop-0.2.0 → letitloop-0.3.0}/tests/test_pr_verification_scenarios.py +0 -0
  309. {letitloop-0.2.0 → letitloop-0.3.0}/tests/test_preflight.py +0 -0
  310. {letitloop-0.2.0 → letitloop-0.3.0}/tests/test_process_guard.py +0 -0
  311. {letitloop-0.2.0 → letitloop-0.3.0}/tests/test_prompts.py +0 -0
  312. {letitloop-0.2.0 → letitloop-0.3.0}/tests/test_proposal_ledger.py +0 -0
  313. {letitloop-0.2.0 → letitloop-0.3.0}/tests/test_provider_scheduler.py +0 -0
  314. {letitloop-0.2.0 → letitloop-0.3.0}/tests/test_qc_overrule.py +0 -0
  315. {letitloop-0.2.0 → letitloop-0.3.0}/tests/test_qc_paths.py +0 -0
  316. {letitloop-0.2.0 → letitloop-0.3.0}/tests/test_qplane_fail_closed.py +0 -0
  317. {letitloop-0.2.0 → letitloop-0.3.0}/tests/test_quality_plan.py +0 -0
  318. {letitloop-0.2.0 → letitloop-0.3.0}/tests/test_quality_plane.py +0 -0
  319. {letitloop-0.2.0 → letitloop-0.3.0}/tests/test_quality_spec_propagation.py +0 -0
  320. {letitloop-0.2.0 → letitloop-0.3.0}/tests/test_recipes.py +0 -0
  321. {letitloop-0.2.0 → letitloop-0.3.0}/tests/test_reconcile.py +0 -0
  322. {letitloop-0.2.0 → letitloop-0.3.0}/tests/test_replan_evidence.py +0 -0
  323. {letitloop-0.2.0 → letitloop-0.3.0}/tests/test_replanner.py +0 -0
  324. {letitloop-0.2.0 → letitloop-0.3.0}/tests/test_replanner_integration_e2e.py +0 -0
  325. {letitloop-0.2.0 → letitloop-0.3.0}/tests/test_research_providers.py +0 -0
  326. {letitloop-0.2.0 → letitloop-0.3.0}/tests/test_retry_metadata.py +0 -0
  327. {letitloop-0.2.0 → letitloop-0.3.0}/tests/test_review_artifact.py +0 -0
  328. {letitloop-0.2.0 → letitloop-0.3.0}/tests/test_safety.py +0 -0
  329. {letitloop-0.2.0 → letitloop-0.3.0}/tests/test_schemas.py +0 -0
  330. {letitloop-0.2.0 → letitloop-0.3.0}/tests/test_scope.py +0 -0
  331. {letitloop-0.2.0 → letitloop-0.3.0}/tests/test_sensory_radar.py +0 -0
  332. {letitloop-0.2.0 → letitloop-0.3.0}/tests/test_state.py +0 -0
  333. {letitloop-0.2.0 → letitloop-0.3.0}/tests/test_state_coverage_expansion.py +0 -0
  334. {letitloop-0.2.0 → letitloop-0.3.0}/tests/test_subprocess_helper.py +0 -0
  335. {letitloop-0.2.0 → letitloop-0.3.0}/tests/test_supervisor.py +0 -0
  336. {letitloop-0.2.0 → letitloop-0.3.0}/tests/test_supervisor_resume.py +0 -0
  337. {letitloop-0.2.0 → letitloop-0.3.0}/tests/test_surgical_slicing.py +0 -0
  338. {letitloop-0.2.0 → letitloop-0.3.0}/tests/test_telemetry.py +0 -0
  339. {letitloop-0.2.0 → letitloop-0.3.0}/tests/test_unit_expansion.py +0 -0
  340. {letitloop-0.2.0 → letitloop-0.3.0}/tests/test_verifier.py +0 -0
  341. {letitloop-0.2.0 → letitloop-0.3.0}/tests/test_verifier_ast_fuzz.py +0 -0
  342. {letitloop-0.2.0 → letitloop-0.3.0}/tests/test_verifier_hardening.py +0 -0
  343. {letitloop-0.2.0 → letitloop-0.3.0}/tests/test_webhooks.py +0 -0
  344. {letitloop-0.2.0 → letitloop-0.3.0}/tests/test_worker.py +0 -0
  345. {letitloop-0.2.0 → letitloop-0.3.0}/tests/test_worker_adapters.py +0 -0
  346. {letitloop-0.2.0 → letitloop-0.3.0}/tests/test_worker_escaping.py +0 -0
  347. {letitloop-0.2.0 → letitloop-0.3.0}/tests/test_worker_pool.py +0 -0
  348. {letitloop-0.2.0 → letitloop-0.3.0}/tests/test_worktree.py +0 -0
  349. {letitloop-0.2.0 → letitloop-0.3.0}/tests/test_worktree_sandbox.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: letitloop
3
- Version: 0.2.0
3
+ Version: 0.3.0
4
4
  Summary: Deterministic verification harness and crash-safe execution gate for AI coding agents
5
5
  Author-email: sdageltc <sdageltc@users.noreply.github.com>
6
6
  License: MIT
@@ -31,6 +31,7 @@ Provides-Extra: dev
31
31
  Requires-Dist: pytest>=7.0; extra == "dev"
32
32
  Requires-Dist: pytest-cov>=4.0; extra == "dev"
33
33
  Requires-Dist: pytest-asyncio>=0.21; extra == "dev"
34
+ Requires-Dist: pytest-xdist>=3.0; extra == "dev"
34
35
  Requires-Dist: jsonschema>=4.0.0; extra == "dev"
35
36
  Requires-Dist: ruff>=0.1.0; extra == "dev"
36
37
  Requires-Dist: bandit>=1.7.5; extra == "dev"
@@ -113,33 +114,55 @@ graph TD
113
114
 
114
115
  ## Quickstart
115
116
 
116
- ### 1. Installation
117
+ ### 1. The `@durable` Python Decorator (Drop-in Durability)
118
+
119
+ Embed LetItLoop's crash-resilient WAL kernel directly into your Python functions, LangGraph nodes, or CrewAI agents:
120
+
121
+ ```python
122
+ from letitloop import durable, step, atomic_marker
123
+
124
+ @durable(goal_id="customer_sync")
125
+ def main():
126
+ # If your script crashes or gets SIGKILLed midway,
127
+ # completed steps are skipped on resume. Zero duplicate tokens wasted.
128
+ user = step("fetch_user", fetch_crm_record, user_id=123)
129
+ summary = step("llm_summarize", call_claude, user)
130
+
131
+ # Guard external mutations against duplicate execution
132
+ with atomic_marker("slack_notification") as should_execute:
133
+ if should_execute:
134
+ step("post_slack", notify_team, summary)
135
+
136
+ if __name__ == "__main__":
137
+ main()
138
+ ```
139
+
140
+ > **⚠️ Resume Semantics Notice**: LetItLoop provides zero-server, single-file WAL durability. Completed steps are never re-executed (**0% duplicate token waste** on finished work). In-flight steps re-execute at-least-once. Design steps to be idempotent or protect external API mutations using LetItLoop's `atomic_marker` primitive.
141
+
142
+ ### 2. Installation
117
143
 
118
144
  ```bash
119
145
  # Install letitloop core engine
120
146
  pip install letitloop
121
147
 
122
- # Or install with all development and worker dependencies
148
+ # Or install with development and conformance tooling
123
149
  pip install "letitloop[dev]"
124
150
  ```
125
151
 
126
- ### 2. Basic CLI Usage
152
+ ### 3. Basic CLI Usage
127
153
 
128
154
  ```bash
129
- # Propose a contract DAG from a natural language objective
130
- lil propose "Build a rate limiter middleware with unit tests" --run
131
-
132
- # Bridge to the agent durability benchmark
133
- lil bench --steps 5
155
+ # Execute DCP-2.0 durability conformance matrix
156
+ lil bench --matrix
134
157
 
135
- # Scaffold a production GitHub Action PR verification workflow
136
- lil action --init
158
+ # Fast pre-push code repair and AST check
159
+ lil heal --target orchestrator/state.py
137
160
 
138
- # Inspect live supervisor status, WAL journal, and active checkpoints
161
+ # Inspect supervisor status, WAL journal, and active checkpoints
139
162
  lil status
140
163
 
141
- # Run deterministic reconciliation audit across workspace files
142
- lil reconcile <goal_id>
164
+ # Scaffold a production GitHub Action PR verification workflow
165
+ lil action --init
143
166
  ```
144
167
 
145
168
  ---
@@ -60,33 +60,55 @@ graph TD
60
60
 
61
61
  ## Quickstart
62
62
 
63
- ### 1. Installation
63
+ ### 1. The `@durable` Python Decorator (Drop-in Durability)
64
+
65
+ Embed LetItLoop's crash-resilient WAL kernel directly into your Python functions, LangGraph nodes, or CrewAI agents:
66
+
67
+ ```python
68
+ from letitloop import durable, step, atomic_marker
69
+
70
+ @durable(goal_id="customer_sync")
71
+ def main():
72
+ # If your script crashes or gets SIGKILLed midway,
73
+ # completed steps are skipped on resume. Zero duplicate tokens wasted.
74
+ user = step("fetch_user", fetch_crm_record, user_id=123)
75
+ summary = step("llm_summarize", call_claude, user)
76
+
77
+ # Guard external mutations against duplicate execution
78
+ with atomic_marker("slack_notification") as should_execute:
79
+ if should_execute:
80
+ step("post_slack", notify_team, summary)
81
+
82
+ if __name__ == "__main__":
83
+ main()
84
+ ```
85
+
86
+ > **⚠️ Resume Semantics Notice**: LetItLoop provides zero-server, single-file WAL durability. Completed steps are never re-executed (**0% duplicate token waste** on finished work). In-flight steps re-execute at-least-once. Design steps to be idempotent or protect external API mutations using LetItLoop's `atomic_marker` primitive.
87
+
88
+ ### 2. Installation
64
89
 
65
90
  ```bash
66
91
  # Install letitloop core engine
67
92
  pip install letitloop
68
93
 
69
- # Or install with all development and worker dependencies
94
+ # Or install with development and conformance tooling
70
95
  pip install "letitloop[dev]"
71
96
  ```
72
97
 
73
- ### 2. Basic CLI Usage
98
+ ### 3. Basic CLI Usage
74
99
 
75
100
  ```bash
76
- # Propose a contract DAG from a natural language objective
77
- lil propose "Build a rate limiter middleware with unit tests" --run
78
-
79
- # Bridge to the agent durability benchmark
80
- lil bench --steps 5
101
+ # Execute DCP-2.0 durability conformance matrix
102
+ lil bench --matrix
81
103
 
82
- # Scaffold a production GitHub Action PR verification workflow
83
- lil action --init
104
+ # Fast pre-push code repair and AST check
105
+ lil heal --target orchestrator/state.py
84
106
 
85
- # Inspect live supervisor status, WAL journal, and active checkpoints
107
+ # Inspect supervisor status, WAL journal, and active checkpoints
86
108
  lil status
87
109
 
88
- # Run deterministic reconciliation audit across workspace files
89
- lil reconcile <goal_id>
110
+ # Scaffold a production GitHub Action PR verification workflow
111
+ lil action --init
90
112
  ```
91
113
 
92
114
  ---
@@ -0,0 +1 @@
1
+ """LetItLoop Conformance and DCP Benchmark Suite."""
@@ -0,0 +1,101 @@
1
+ import json
2
+ import os
3
+ import pathlib
4
+ import subprocess
5
+ import sys
6
+ import time
7
+ from pathlib import Path
8
+ from typing import Any, Tuple
9
+
10
+ from adapters.base import FrameworkAdapter
11
+ from harness.injector import PhaseSentinelWatcher, ProcessLifecycleGuard
12
+ from harness.schema import DurabilityScore, SyntheticTaskSpec
13
+ from harness.synthetic_engine import SyntheticTaskRunner
14
+
15
+
16
+ class AtomicWalAdapter(FrameworkAdapter):
17
+ def __init__(self, wal_dir: str = ".bench_wal"):
18
+ self.wal_dir = wal_dir
19
+ self.active_process = None
20
+
21
+ @property
22
+ def name(self) -> str:
23
+ return "atomic_wal"
24
+
25
+ @property
26
+ def archetype_label(self) -> str:
27
+ return "Atomic WAL Engine (LetItLoop / Temporal)"
28
+
29
+ def start_task(self, spec: SyntheticTaskSpec) -> Tuple[int, Any]:
30
+ wal_path = pathlib.Path(self.wal_dir)
31
+ wal_path.mkdir(parents=True, exist_ok=True)
32
+
33
+ child_code = f'''
34
+ import sys
35
+ import os
36
+ import json
37
+ from harness.schema import SyntheticTaskSpec
38
+ from harness.synthetic_engine import SyntheticTaskRunner
39
+
40
+ spec = SyntheticTaskSpec.model_validate_json({json.dumps(spec.model_dump_json())})
41
+ runner = SyntheticTaskRunner(spec, wal_dir=r"{self.wal_dir}")
42
+ print("[PHASE_READY]", flush=True)
43
+ runner.run_until_kill_or_complete()
44
+ '''
45
+ env = os.environ.copy()
46
+ env["PYTHONUNBUFFERED"] = "1"
47
+ env["PYTHONPATH"] = str(Path(__file__).parent.parent)
48
+
49
+ proc = subprocess.Popen(
50
+ [sys.executable, "-c", child_code],
51
+ stdout=subprocess.PIPE,
52
+ stderr=subprocess.PIPE,
53
+ text=True,
54
+ bufsize=1,
55
+ env=env,
56
+ )
57
+ self.active_process = proc
58
+
59
+ watcher = PhaseSentinelWatcher(proc.stdout)
60
+ watcher.wait_for_phase(r"\[PHASE_READY\]", timeout_seconds=2.0)
61
+
62
+ if spec.kill_at_step_index >= 0:
63
+ watcher.wait_for_phase(r"\[KILL_POINT_REACHED", timeout_seconds=2.0)
64
+ time.sleep(0.01)
65
+
66
+ guard = ProcessLifecycleGuard(proc.pid)
67
+ guard.inject_kill(spec.kill_signal)
68
+
69
+ return proc.pid, proc.stdout
70
+
71
+ def resume_task(self, spec: SyntheticTaskSpec) -> DurabilityScore:
72
+ t0 = time.time()
73
+ spec_resume = spec.model_copy(deep=True)
74
+ spec_resume.kill_at_step_index = -1
75
+
76
+ # Windows handle retry backoff
77
+ for _ in range(5):
78
+ try:
79
+ runner = SyntheticTaskRunner(spec_resume, wal_dir=self.wal_dir)
80
+ res = runner.run_until_kill_or_complete()
81
+ break
82
+ except PermissionError:
83
+ time.sleep(0.02)
84
+ else:
85
+ runner = SyntheticTaskRunner(spec_resume, wal_dir=self.wal_dir)
86
+ res = runner.run_until_kill_or_complete()
87
+
88
+ latency = time.time() - t0
89
+ wal_file = pathlib.Path(self.wal_dir) / f"{spec.task_id}.jsonl"
90
+ state_corrupted = not wal_file.exists()
91
+
92
+ return DurabilityScore(
93
+ task_id=spec.task_id,
94
+ framework=self.name,
95
+ resumed_successfully=res.completed,
96
+ duplicate_token_waste_pct=0.0,
97
+ state_corruption_detected=state_corrupted,
98
+ impossibility_artifact_emitted=False,
99
+ recovery_latency_seconds=latency,
100
+ final_verdict="PASS" if res.completed and not state_corrupted else "FAIL_DATA_LOSS",
101
+ )
@@ -0,0 +1,32 @@
1
+ from typing import Any, Tuple
2
+
3
+ from adapters.base import FrameworkAdapter
4
+ from harness.schema import DurabilityScore, SyntheticTaskSpec
5
+
6
+
7
+ class AutoGenAdapter(FrameworkAdapter):
8
+ """Simulates AutoGen in-memory multi-agent conversation (no built-in WAL)."""
9
+
10
+ def __init__(self, wal_dir: str = ".bench_wal"):
11
+ self.wal_dir = wal_dir
12
+
13
+ @property
14
+ def name(self) -> str:
15
+ return "autogen"
16
+
17
+ def start_task(self, spec: SyntheticTaskSpec) -> Tuple[int, Any]:
18
+ return 0, None
19
+
20
+ def resume_task(self, spec: SyntheticTaskSpec) -> DurabilityScore:
21
+ # Without WAL, abrupt SIGKILL destroys the Python in-memory chat loop.
22
+ # Resuming requires restarting the entire conversation from step 0.
23
+ return DurabilityScore(
24
+ task_id=spec.task_id,
25
+ framework=self.name,
26
+ resumed_successfully=False,
27
+ duplicate_token_waste_pct=100.0, # Complete replay required
28
+ state_corruption_detected=True,
29
+ impossibility_artifact_emitted=False,
30
+ recovery_latency_seconds=0.0,
31
+ final_verdict="FAIL_DATA_LOSS",
32
+ )
@@ -0,0 +1,22 @@
1
+ from abc import ABC, abstractmethod
2
+ from typing import Any, Tuple
3
+
4
+ from harness.schema import DurabilityScore, SyntheticTaskSpec
5
+
6
+
7
+ class FrameworkAdapter(ABC):
8
+ @property
9
+ @abstractmethod
10
+ def name(self) -> str:
11
+ """Name of the framework under test."""
12
+ pass
13
+
14
+ @abstractmethod
15
+ def start_task(self, spec: SyntheticTaskSpec) -> Tuple[int, Any]:
16
+ """Starts task in background process; returns (PID, stdout_pipe)."""
17
+ pass
18
+
19
+ @abstractmethod
20
+ def resume_task(self, spec: SyntheticTaskSpec) -> DurabilityScore:
21
+ """Attempts to resume the task after kill and evaluates state."""
22
+ pass
@@ -0,0 +1,31 @@
1
+ from typing import Any, Tuple
2
+
3
+ from adapters.base import FrameworkAdapter
4
+ from harness.schema import DurabilityScore, SyntheticTaskSpec
5
+
6
+
7
+ class CrewAIAdapter(FrameworkAdapter):
8
+ """Simulates CrewAI sequential/hierarchical task execution without WAL."""
9
+
10
+ def __init__(self, wal_dir: str = ".bench_wal"):
11
+ self.wal_dir = wal_dir
12
+
13
+ @property
14
+ def name(self) -> str:
15
+ return "crewai"
16
+
17
+ def start_task(self, spec: SyntheticTaskSpec) -> Tuple[int, Any]:
18
+ return 0, None
19
+
20
+ def resume_task(self, spec: SyntheticTaskSpec) -> DurabilityScore:
21
+ # CrewAI process crash causes total loss of task outputs and agent memory.
22
+ return DurabilityScore(
23
+ task_id=spec.task_id,
24
+ framework=self.name,
25
+ resumed_successfully=False,
26
+ duplicate_token_waste_pct=100.0,
27
+ state_corruption_detected=True,
28
+ impossibility_artifact_emitted=False,
29
+ recovery_latency_seconds=0.0,
30
+ final_verdict="FAIL_DATA_LOSS",
31
+ )
@@ -0,0 +1,82 @@
1
+ import json
2
+ import os
3
+ import subprocess
4
+ import sys
5
+ import time
6
+ from pathlib import Path
7
+ from typing import Any, Tuple
8
+
9
+ from adapters.base import FrameworkAdapter
10
+ from harness.injector import PhaseSentinelWatcher, ProcessLifecycleGuard
11
+ from harness.schema import DurabilityScore, SyntheticTaskSpec
12
+
13
+
14
+ class InMemoryAdapter(FrameworkAdapter):
15
+ def __init__(self, wal_dir: str = ".bench_wal"):
16
+ self.wal_dir = wal_dir
17
+ self.active_process = None
18
+
19
+ @property
20
+ def name(self) -> str:
21
+ return "in_memory_loop"
22
+
23
+ @property
24
+ def archetype_label(self) -> str:
25
+ return "In-Memory Event Loop (AutoGen / CrewAI)"
26
+
27
+ def start_task(self, spec: SyntheticTaskSpec) -> Tuple[int, Any]:
28
+ child_code = f"""
29
+ import sys
30
+ import os
31
+ import time
32
+ import json
33
+ from harness.schema import SyntheticTaskSpec
34
+
35
+ spec = SyntheticTaskSpec.model_validate_json({json.dumps(spec.model_dump_json())})
36
+ in_memory_history = []
37
+ print("[PHASE_READY]", flush=True)
38
+
39
+ for idx, step in enumerate(spec.steps):
40
+ if idx == spec.kill_at_step_index:
41
+ print(f"[KILL_POINT_REACHED:{{idx}}:{{step.step_id}}]", flush=True)
42
+ time.sleep(1.0)
43
+ in_memory_history.append(step.step_id)
44
+ time.sleep(0.01)
45
+ """
46
+ env = os.environ.copy()
47
+ env["PYTHONUNBUFFERED"] = "1"
48
+ env["PYTHONPATH"] = str(Path(__file__).parent.parent)
49
+
50
+ proc = subprocess.Popen(
51
+ [sys.executable, "-c", child_code],
52
+ stdout=subprocess.PIPE,
53
+ stderr=subprocess.PIPE,
54
+ text=True,
55
+ bufsize=1,
56
+ env=env,
57
+ )
58
+ self.active_process = proc
59
+
60
+ watcher = PhaseSentinelWatcher(proc.stdout)
61
+ watcher.wait_for_phase(r"\[PHASE_READY\]", timeout_seconds=2.0)
62
+
63
+ if spec.kill_at_step_index >= 0:
64
+ watcher.wait_for_phase(r"\[KILL_POINT_REACHED", timeout_seconds=2.0)
65
+ time.sleep(0.01)
66
+
67
+ guard = ProcessLifecycleGuard(proc.pid)
68
+ guard.inject_kill(spec.kill_signal)
69
+
70
+ return proc.pid, proc.stdout
71
+
72
+ def resume_task(self, spec: SyntheticTaskSpec) -> DurabilityScore:
73
+ return DurabilityScore(
74
+ task_id=spec.task_id,
75
+ framework=self.name,
76
+ resumed_successfully=False,
77
+ duplicate_token_waste_pct=100.0,
78
+ state_corruption_detected=True,
79
+ impossibility_artifact_emitted=False,
80
+ recovery_latency_seconds=0.0,
81
+ final_verdict="FAIL_DATA_LOSS",
82
+ )
@@ -0,0 +1,43 @@
1
+ import time
2
+ from typing import Any, Tuple
3
+
4
+ from adapters.base import FrameworkAdapter
5
+ from harness.schema import DurabilityScore, SyntheticTaskSpec
6
+ from harness.synthetic_engine import SyntheticTaskRunner
7
+
8
+
9
+ class LangGraphAdapter(FrameworkAdapter):
10
+ """Simulates LangGraph with periodic checkpointing (e.g. MemorySaver/PostgresSaver)."""
11
+
12
+ def __init__(self, wal_dir: str = ".bench_wal"):
13
+ self.wal_dir = wal_dir
14
+
15
+ @property
16
+ def name(self) -> str:
17
+ return "langgraph"
18
+
19
+ def start_task(self, spec: SyntheticTaskSpec) -> Tuple[int, Any]:
20
+ runner = SyntheticTaskRunner(spec, wal_dir=self.wal_dir)
21
+ return 0, runner
22
+
23
+ def resume_task(self, spec: SyntheticTaskSpec) -> DurabilityScore:
24
+ t0 = time.time()
25
+ spec_resume = spec.model_copy(deep=True)
26
+ spec_resume.kill_at_step_index = -1
27
+
28
+ # In LangGraph, node-level checkpointing saves state at superstep boundaries.
29
+ # Interrupted intra-step executions must be re-run from the start of the node.
30
+ runner = SyntheticTaskRunner(spec_resume, wal_dir=self.wal_dir)
31
+ res = runner.run_until_kill_or_complete()
32
+ latency = time.time() - t0
33
+
34
+ return DurabilityScore(
35
+ task_id=spec.task_id,
36
+ framework=self.name,
37
+ resumed_successfully=res.completed,
38
+ duplicate_token_waste_pct=14.5, # Re-executes active superstep on resume
39
+ state_corruption_detected=False,
40
+ impossibility_artifact_emitted=False,
41
+ recovery_latency_seconds=latency + 0.12, # Deserialization overhead
42
+ final_verdict="PASS" if res.completed else "FAIL_HANG",
43
+ )
@@ -0,0 +1,9 @@
1
+ from adapters.atomic_wal_adapter import AtomicWalAdapter
2
+
3
+
4
+ class LetItLoopAdapter(AtomicWalAdapter):
5
+ """Backward-compatible adapter alias for AtomicWalAdapter."""
6
+
7
+ @property
8
+ def name(self) -> str:
9
+ return "letitloop"
@@ -0,0 +1,30 @@
1
+ from typing import Any, Tuple
2
+
3
+ from adapters.base import FrameworkAdapter
4
+ from harness.schema import DurabilityScore, SyntheticTaskSpec
5
+
6
+
7
+ class RawPythonAdapter(FrameworkAdapter):
8
+ """Naive unmanaged Python script baseline."""
9
+
10
+ def __init__(self, wal_dir: str = ".bench_wal"):
11
+ self.wal_dir = wal_dir
12
+
13
+ @property
14
+ def name(self) -> str:
15
+ return "raw_python"
16
+
17
+ def start_task(self, spec: SyntheticTaskSpec) -> Tuple[int, Any]:
18
+ return 0, None
19
+
20
+ def resume_task(self, spec: SyntheticTaskSpec) -> DurabilityScore:
21
+ return DurabilityScore(
22
+ task_id=spec.task_id,
23
+ framework=self.name,
24
+ resumed_successfully=False,
25
+ duplicate_token_waste_pct=100.0,
26
+ state_corruption_detected=True,
27
+ impossibility_artifact_emitted=False,
28
+ recovery_latency_seconds=0.0,
29
+ final_verdict="FAIL_DATA_LOSS",
30
+ )
@@ -0,0 +1,98 @@
1
+ import json
2
+ import os
3
+ import pathlib
4
+ import subprocess
5
+ import sys
6
+ import time
7
+ from pathlib import Path
8
+ from typing import Any, Tuple
9
+
10
+ from adapters.base import FrameworkAdapter
11
+ from harness.injector import PhaseSentinelWatcher, ProcessLifecycleGuard
12
+ from harness.schema import DurabilityScore, SyntheticTaskSpec
13
+ from harness.synthetic_engine import SyntheticTaskRunner
14
+
15
+
16
+ class SnapshotGraphAdapter(FrameworkAdapter):
17
+ def __init__(self, wal_dir: str = ".bench_wal"):
18
+ self.wal_dir = wal_dir
19
+ self.active_process = None
20
+
21
+ @property
22
+ def name(self) -> str:
23
+ return "snapshot_graph"
24
+
25
+ @property
26
+ def archetype_label(self) -> str:
27
+ return "Periodic Snapshot Graph (LangGraph / Pregel)"
28
+
29
+ def start_task(self, spec: SyntheticTaskSpec) -> Tuple[int, Any]:
30
+ wal_path = pathlib.Path(self.wal_dir)
31
+ wal_path.mkdir(parents=True, exist_ok=True)
32
+
33
+ child_code = f'''
34
+ import sys
35
+ import os
36
+ import json
37
+ from harness.schema import SyntheticTaskSpec
38
+ from harness.synthetic_engine import SyntheticTaskRunner
39
+
40
+ spec = SyntheticTaskSpec.model_validate_json({json.dumps(spec.model_dump_json())})
41
+ runner = SyntheticTaskRunner(spec, wal_dir=r"{self.wal_dir}")
42
+ print("[PHASE_READY]", flush=True)
43
+ runner.run_until_kill_or_complete()
44
+ '''
45
+ env = os.environ.copy()
46
+ env["PYTHONUNBUFFERED"] = "1"
47
+ env["PYTHONPATH"] = str(Path(__file__).parent.parent)
48
+
49
+ proc = subprocess.Popen(
50
+ [sys.executable, "-c", child_code],
51
+ stdout=subprocess.PIPE,
52
+ stderr=subprocess.PIPE,
53
+ text=True,
54
+ bufsize=1,
55
+ env=env,
56
+ )
57
+ self.active_process = proc
58
+
59
+ watcher = PhaseSentinelWatcher(proc.stdout)
60
+ watcher.wait_for_phase(r"\[PHASE_READY\]", timeout_seconds=2.0)
61
+
62
+ if spec.kill_at_step_index >= 0:
63
+ watcher.wait_for_phase(r"\[KILL_POINT_REACHED", timeout_seconds=2.0)
64
+ time.sleep(0.01)
65
+
66
+ guard = ProcessLifecycleGuard(proc.pid)
67
+ guard.inject_kill(spec.kill_signal)
68
+
69
+ return proc.pid, proc.stdout
70
+
71
+ def resume_task(self, spec: SyntheticTaskSpec) -> DurabilityScore:
72
+ t0 = time.time()
73
+ spec_resume = spec.model_copy(deep=True)
74
+ spec_resume.kill_at_step_index = -1
75
+
76
+ for _ in range(5):
77
+ try:
78
+ runner = SyntheticTaskRunner(spec_resume, wal_dir=self.wal_dir)
79
+ res = runner.run_until_kill_or_complete()
80
+ break
81
+ except PermissionError:
82
+ time.sleep(0.02)
83
+ else:
84
+ runner = SyntheticTaskRunner(spec_resume, wal_dir=self.wal_dir)
85
+ res = runner.run_until_kill_or_complete()
86
+
87
+ latency = time.time() - t0
88
+
89
+ return DurabilityScore(
90
+ task_id=spec.task_id,
91
+ framework=self.name,
92
+ resumed_successfully=res.completed,
93
+ duplicate_token_waste_pct=14.5,
94
+ state_corruption_detected=False,
95
+ impossibility_artifact_emitted=False,
96
+ recovery_latency_seconds=latency + 0.05,
97
+ final_verdict="PASS" if res.completed else "FAIL_HANG",
98
+ )