letitloop 0.6.0__tar.gz → 0.7.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 (394) hide show
  1. {letitloop-0.6.0 → letitloop-0.7.0}/.github/workflows/ci.yml +2 -2
  2. {letitloop-0.6.0 → letitloop-0.7.0}/CHANGELOG.md +14 -0
  3. {letitloop-0.6.0 → letitloop-0.7.0}/PKG-INFO +13 -42
  4. {letitloop-0.6.0 → letitloop-0.7.0}/README.md +5 -7
  5. {letitloop-0.6.0 → letitloop-0.7.0}/letitloop/__init__.py +1 -1
  6. {letitloop-0.6.0 → letitloop-0.7.0}/letitloop.egg-info/PKG-INFO +13 -42
  7. letitloop-0.7.0/letitloop.egg-info/SOURCES.txt +127 -0
  8. letitloop-0.7.0/letitloop.egg-info/requires.txt +14 -0
  9. letitloop-0.7.0/orchestrator/__init__.py +47 -0
  10. letitloop-0.7.0/orchestrator/cli.py +361 -0
  11. {letitloop-0.6.0 → letitloop-0.7.0}/orchestrator/decorators.py +44 -13
  12. {letitloop-0.6.0 → letitloop-0.7.0}/orchestrator/state.py +42 -18
  13. letitloop-0.7.0/orchestrator/supervisor/__init__.py +15 -0
  14. {letitloop-0.6.0 → letitloop-0.7.0}/pyproject.toml +16 -48
  15. {letitloop-0.6.0 → letitloop-0.7.0}/tests/test_cookbooks.py +48 -0
  16. {letitloop-0.6.0 → letitloop-0.7.0}/tests/test_durable_decorator.py +41 -0
  17. {letitloop-0.6.0 → letitloop-0.7.0}/tests/test_lock.py +0 -55
  18. {letitloop-0.6.0 → letitloop-0.7.0}/tests/test_process_guard.py +0 -51
  19. letitloop-0.6.0/letitloop.egg-info/SOURCES.txt +0 -387
  20. letitloop-0.6.0/letitloop.egg-info/requires.txt +0 -47
  21. letitloop-0.6.0/orchestrator/SKILL.md +0 -292
  22. letitloop-0.6.0/orchestrator/__init__.py +0 -147
  23. letitloop-0.6.0/orchestrator/anti_ouroboros.py +0 -95
  24. letitloop-0.6.0/orchestrator/ast_node_splicer.py +0 -125
  25. letitloop-0.6.0/orchestrator/ast_splicer.py +0 -94
  26. letitloop-0.6.0/orchestrator/audit.py +0 -94
  27. letitloop-0.6.0/orchestrator/auto_healer.py +0 -207
  28. letitloop-0.6.0/orchestrator/budget.py +0 -195
  29. letitloop-0.6.0/orchestrator/checkpoint.py +0 -251
  30. letitloop-0.6.0/orchestrator/cli.py +0 -2622
  31. letitloop-0.6.0/orchestrator/cloud_watchdog.py +0 -149
  32. letitloop-0.6.0/orchestrator/codebase_introspector.py +0 -66
  33. letitloop-0.6.0/orchestrator/component_slicer.py +0 -185
  34. letitloop-0.6.0/orchestrator/config.py +0 -152
  35. letitloop-0.6.0/orchestrator/contract.py +0 -404
  36. letitloop-0.6.0/orchestrator/crypto.py +0 -213
  37. letitloop-0.6.0/orchestrator/dag_validator.py +0 -172
  38. letitloop-0.6.0/orchestrator/dashboard_bridge.py +0 -120
  39. letitloop-0.6.0/orchestrator/env_doctor.py +0 -178
  40. letitloop-0.6.0/orchestrator/errors.py +0 -211
  41. letitloop-0.6.0/orchestrator/events.py +0 -120
  42. letitloop-0.6.0/orchestrator/evidence.py +0 -203
  43. letitloop-0.6.0/orchestrator/failure.py +0 -226
  44. letitloop-0.6.0/orchestrator/fast_sandbox.py +0 -126
  45. letitloop-0.6.0/orchestrator/feasibility_gate.py +0 -115
  46. letitloop-0.6.0/orchestrator/feedback.py +0 -302
  47. letitloop-0.6.0/orchestrator/fixtures/example_contract.json +0 -50
  48. letitloop-0.6.0/orchestrator/fixtures/generated/evidence-cli-run-test-step-1.json +0 -47
  49. letitloop-0.6.0/orchestrator/fixtures/generated/evidence-cli-run-test-step-2.json +0 -47
  50. letitloop-0.6.0/orchestrator/fixtures/generated/evidence-inject-test-a.json +0 -47
  51. letitloop-0.6.0/orchestrator/fixtures/generated/evidence-inject-test-b.json +0 -47
  52. letitloop-0.6.0/orchestrator/fixtures/generated/evidence-inject-test-c.json +0 -47
  53. letitloop-0.6.0/orchestrator/fixtures/generated/evidence-json-test-a.json +0 -47
  54. letitloop-0.6.0/orchestrator/fixtures/generated/evidence-json-test-b.json +0 -47
  55. letitloop-0.6.0/orchestrator/fixtures/generated/fail-report-fail-task-1.json +0 -47
  56. letitloop-0.6.0/orchestrator/fixtures/generated/fail-report-json-task-1.json +0 -47
  57. letitloop-0.6.0/orchestrator/fixtures/generated/fail-report-success-task-1.json +0 -47
  58. letitloop-0.6.0/orchestrator/fixtures/generated/fuzz-engine-design.json +0 -63
  59. letitloop-0.6.0/orchestrator/fixtures/generated/fuzz-engine-impl.json +0 -62
  60. letitloop-0.6.0/orchestrator/fixtures/generated/fuzz-engine-tests.json +0 -62
  61. letitloop-0.6.0/orchestrator/fixtures/generated/fuzz-engine-verify.json +0 -62
  62. letitloop-0.6.0/orchestrator/fixtures/generated/goal-orch-step-1.json +0 -63
  63. letitloop-0.6.0/orchestrator/fixtures/generated/goal-orch-step-2.json +0 -62
  64. letitloop-0.6.0/orchestrator/fixtures/generated/goal-orch-step-3.json +0 -62
  65. letitloop-0.6.0/orchestrator/fixtures/generated/goal-orch-step-4.json +0 -62
  66. letitloop-0.6.0/orchestrator/fixtures/generated/goal-orch-step-5.json +0 -62
  67. letitloop-0.6.0/orchestrator/fixtures/generated/goal-orch-step-6.json +0 -63
  68. letitloop-0.6.0/orchestrator/fixtures/generated/implement-a-thread-safe-token-bucket-rat-task-1.json +0 -53
  69. letitloop-0.6.0/orchestrator/fixtures/generated/orchestrator-checkpoint-rollback-3.json +0 -63
  70. letitloop-0.6.0/orchestrator/fixtures/generated/orchestrator-checkpoint-rollback.json +0 -62
  71. letitloop-0.6.0/orchestrator/fixtures/generated/orchestrator-live-telemetry-2.json +0 -62
  72. letitloop-0.6.0/orchestrator/fixtures/generated/orchestrator-live-telemetry.json +0 -62
  73. letitloop-0.6.0/orchestrator/fixtures/generated/orchestrator-spec-synthesis-1.json +0 -62
  74. letitloop-0.6.0/orchestrator/fixtures/generated/orchestrator-spec-synthesis.json +0 -62
  75. letitloop-0.6.0/orchestrator/fixtures/generated/orchestrator-test-verification-4.json +0 -62
  76. letitloop-0.6.0/orchestrator/fixtures/generated/orchestrator-test-verification.json +0 -62
  77. letitloop-0.6.0/orchestrator/fixtures/generated/perf-step-1.json +0 -61
  78. letitloop-0.6.0/orchestrator/fixtures/generated/perf-step-2.json +0 -62
  79. letitloop-0.6.0/orchestrator/fixtures/generated/perf-step-3.json +0 -62
  80. letitloop-0.6.0/orchestrator/fixtures/generated/perf-step-4.json +0 -62
  81. letitloop-0.6.0/orchestrator/fixtures/generated/perf-step-5.json +0 -63
  82. letitloop-0.6.0/orchestrator/fixtures/generated/phase2-proof-two-step-step-1.json +0 -47
  83. letitloop-0.6.0/orchestrator/fixtures/generated/phase2-proof-two-step-step-2.json +0 -47
  84. letitloop-0.6.0/orchestrator/fixtures/generated/planner-spec-synthesis-impl.json +0 -59
  85. letitloop-0.6.0/orchestrator/fixtures/generated/self-evolution-ast-formatter.json +0 -69
  86. letitloop-0.6.0/orchestrator/fixtures/generated/self-evolution-checkpoint-rollback.json +0 -70
  87. letitloop-0.6.0/orchestrator/fixtures/generated/self-evolution-spec-synthesis.json +0 -70
  88. letitloop-0.6.0/orchestrator/fixtures/generated/self-evolution-step-1.json +0 -70
  89. letitloop-0.6.0/orchestrator/fixtures/generated/self-evolution-step-2.json +0 -70
  90. letitloop-0.6.0/orchestrator/fixtures/generated/self-evolution-step-3.json +0 -70
  91. letitloop-0.6.0/orchestrator/fixtures/generated/self-evolution-step-4.json +0 -70
  92. letitloop-0.6.0/orchestrator/fixtures/generated/self-evolution-step-5.json +0 -65
  93. letitloop-0.6.0/orchestrator/fixtures/generated/self-evolution-telemetry.json +0 -70
  94. letitloop-0.6.0/orchestrator/fixtures/generated/self-evolution-tests.json +0 -71
  95. letitloop-0.6.0/orchestrator/fixtures/generated/spec-telemetry-research-design.json +0 -64
  96. letitloop-0.6.0/orchestrator/fixtures/generated/spec-telemetry-step-1.json +0 -62
  97. letitloop-0.6.0/orchestrator/fixtures/generated/spec-telemetry-step-2.json +0 -62
  98. letitloop-0.6.0/orchestrator/fixtures/generated/spec-telemetry-step-3.json +0 -62
  99. letitloop-0.6.0/orchestrator/fixtures/generated/spec-telemetry-step-4.json +0 -62
  100. letitloop-0.6.0/orchestrator/fixtures/generated/spec-telemetry-step-5.json +0 -62
  101. letitloop-0.6.0/orchestrator/fixtures/generated/spec-telemetry-verification.json +0 -58
  102. letitloop-0.6.0/orchestrator/fixtures/generated/token-bucket-impl.json +0 -69
  103. letitloop-0.6.0/orchestrator/fixtures/generated/token-bucket-step-1.json +0 -70
  104. letitloop-0.6.0/orchestrator/fixtures/generated/token-bucket-step-2.json +0 -70
  105. letitloop-0.6.0/orchestrator/fixtures/generated/token-bucket-step-3.json +0 -60
  106. letitloop-0.6.0/orchestrator/fixtures/generated/token-bucket-tests.json +0 -70
  107. letitloop-0.6.0/orchestrator/fixtures/generated/token-bucket-verify.json +0 -61
  108. letitloop-0.6.0/orchestrator/fixtures/generated/trace-ux-tests-step-1.json +0 -64
  109. letitloop-0.6.0/orchestrator/fixtures/generated/trace-ux-tests-step-2.json +0 -64
  110. letitloop-0.6.0/orchestrator/fixtures/generated/trace-ux-tests-step-3.json +0 -62
  111. letitloop-0.6.0/orchestrator/fixtures/generated/tui-live-telemetry-impl.json +0 -59
  112. letitloop-0.6.0/orchestrator/fixtures/phase1_proof_escalation_contract.json +0 -41
  113. letitloop-0.6.0/orchestrator/fixtures/phase1_proof_happy_path_contract.json +0 -83
  114. letitloop-0.6.0/orchestrator/fixtures/phase1_proof_qc_contract.json +0 -41
  115. letitloop-0.6.0/orchestrator/fixtures/phase1_proof_repair_contract.json +0 -41
  116. letitloop-0.6.0/orchestrator/fixtures/phase2_proof_two_step_goal.json +0 -15
  117. letitloop-0.6.0/orchestrator/fixtures/run_proofs.py +0 -299
  118. letitloop-0.6.0/orchestrator/fixtures/test_normalizer.py +0 -16
  119. letitloop-0.6.0/orchestrator/gate.py +0 -221
  120. letitloop-0.6.0/orchestrator/generator.py +0 -239
  121. letitloop-0.6.0/orchestrator/goal.py +0 -245
  122. letitloop-0.6.0/orchestrator/handoff.py +0 -86
  123. letitloop-0.6.0/orchestrator/hybrid_worker.py +0 -840
  124. letitloop-0.6.0/orchestrator/impossibility.py +0 -162
  125. letitloop-0.6.0/orchestrator/limits.py +0 -60
  126. letitloop-0.6.0/orchestrator/llm.py +0 -324
  127. letitloop-0.6.0/orchestrator/local_tool_calling.py +0 -285
  128. letitloop-0.6.0/orchestrator/mcp_client.py +0 -571
  129. letitloop-0.6.0/orchestrator/mcp_server.py +0 -524
  130. letitloop-0.6.0/orchestrator/memory_bridge.py +0 -182
  131. letitloop-0.6.0/orchestrator/metrics.py +0 -159
  132. letitloop-0.6.0/orchestrator/models.py +0 -350
  133. letitloop-0.6.0/orchestrator/parsing.py +0 -237
  134. letitloop-0.6.0/orchestrator/patch_applier.py +0 -154
  135. letitloop-0.6.0/orchestrator/plan_preview.py +0 -138
  136. letitloop-0.6.0/orchestrator/plan_quality.py +0 -357
  137. letitloop-0.6.0/orchestrator/planner.py +0 -802
  138. letitloop-0.6.0/orchestrator/preferences.py +0 -115
  139. letitloop-0.6.0/orchestrator/preflight.py +0 -141
  140. letitloop-0.6.0/orchestrator/prompts.py +0 -275
  141. letitloop-0.6.0/orchestrator/proposal_ledger.py +0 -194
  142. letitloop-0.6.0/orchestrator/provider_scheduler.py +0 -394
  143. letitloop-0.6.0/orchestrator/qc/__init__.py +0 -153
  144. letitloop-0.6.0/orchestrator/qc/aggregator.py +0 -330
  145. letitloop-0.6.0/orchestrator/qc/parsing.py +0 -287
  146. letitloop-0.6.0/orchestrator/qc/personas.py +0 -242
  147. letitloop-0.6.0/orchestrator/qc/runner.py +0 -569
  148. letitloop-0.6.0/orchestrator/qc_overrule.py +0 -87
  149. letitloop-0.6.0/orchestrator/qc_review.py +0 -282
  150. letitloop-0.6.0/orchestrator/quality_lenses.py +0 -314
  151. letitloop-0.6.0/orchestrator/quality_plan.py +0 -449
  152. letitloop-0.6.0/orchestrator/quality_plane.py +0 -103
  153. letitloop-0.6.0/orchestrator/receipts.py +0 -71
  154. letitloop-0.6.0/orchestrator/reconcile.py +0 -191
  155. letitloop-0.6.0/orchestrator/remediate.py +0 -373
  156. letitloop-0.6.0/orchestrator/replanner.py +0 -433
  157. letitloop-0.6.0/orchestrator/research.py +0 -176
  158. letitloop-0.6.0/orchestrator/review_artifact.py +0 -672
  159. letitloop-0.6.0/orchestrator/safety.py +0 -413
  160. letitloop-0.6.0/orchestrator/sbom.py +0 -136
  161. letitloop-0.6.0/orchestrator/schemas.py +0 -174
  162. letitloop-0.6.0/orchestrator/scope.py +0 -476
  163. letitloop-0.6.0/orchestrator/scrubber.py +0 -98
  164. letitloop-0.6.0/orchestrator/sse_server.py +0 -160
  165. letitloop-0.6.0/orchestrator/subprocess_helper.py +0 -131
  166. letitloop-0.6.0/orchestrator/supervisor/__init__.py +0 -213
  167. letitloop-0.6.0/orchestrator/supervisor/_shared.py +0 -164
  168. letitloop-0.6.0/orchestrator/supervisor/cleanup.py +0 -185
  169. letitloop-0.6.0/orchestrator/supervisor/core.py +0 -1698
  170. letitloop-0.6.0/orchestrator/supervisor/recovery.py +0 -370
  171. letitloop-0.6.0/orchestrator/supervisor/reporting.py +0 -251
  172. letitloop-0.6.0/orchestrator/telemetry.py +0 -109
  173. letitloop-0.6.0/orchestrator/verifier.py +0 -1255
  174. letitloop-0.6.0/orchestrator/webhooks.py +0 -168
  175. letitloop-0.6.0/orchestrator/worker.py +0 -469
  176. letitloop-0.6.0/orchestrator/worker_adapters.py +0 -766
  177. letitloop-0.6.0/orchestrator/worker_pool.py +0 -121
  178. letitloop-0.6.0/orchestrator/worktree.py +0 -393
  179. letitloop-0.6.0/tests/__init__.py +0 -0
  180. letitloop-0.6.0/tests/fault_injection.py +0 -148
  181. letitloop-0.6.0/tests/test_adversarial_audit.py +0 -328
  182. letitloop-0.6.0/tests/test_agent_loop_profiles.py +0 -171
  183. letitloop-0.6.0/tests/test_anti_ouroboros.py +0 -38
  184. letitloop-0.6.0/tests/test_ast_comment_retention.py +0 -64
  185. letitloop-0.6.0/tests/test_ast_node_splicer.py +0 -101
  186. letitloop-0.6.0/tests/test_audit.py +0 -151
  187. letitloop-0.6.0/tests/test_auto_healer.py +0 -101
  188. letitloop-0.6.0/tests/test_benchmarks.py +0 -197
  189. letitloop-0.6.0/tests/test_budget.py +0 -131
  190. letitloop-0.6.0/tests/test_budget_enforcement_e2e.py +0 -62
  191. letitloop-0.6.0/tests/test_checkpoint.py +0 -193
  192. letitloop-0.6.0/tests/test_checkpoint_apply_e2e.py +0 -94
  193. letitloop-0.6.0/tests/test_cli.py +0 -583
  194. letitloop-0.6.0/tests/test_cli_doctor.py +0 -106
  195. letitloop-0.6.0/tests/test_cli_failure_report.py +0 -106
  196. letitloop-0.6.0/tests/test_cloud_watchdog.py +0 -64
  197. letitloop-0.6.0/tests/test_codebase_introspector.py +0 -29
  198. letitloop-0.6.0/tests/test_component_slicer.py +0 -411
  199. letitloop-0.6.0/tests/test_config.py +0 -152
  200. letitloop-0.6.0/tests/test_conformance_sandbox.py +0 -44
  201. letitloop-0.6.0/tests/test_contract.py +0 -303
  202. letitloop-0.6.0/tests/test_crypto.py +0 -53
  203. letitloop-0.6.0/tests/test_dag_validator.py +0 -251
  204. letitloop-0.6.0/tests/test_docker_sandbox.py +0 -157
  205. letitloop-0.6.0/tests/test_dryrun.py +0 -110
  206. letitloop-0.6.0/tests/test_engine_improvements.py +0 -270
  207. letitloop-0.6.0/tests/test_errors.py +0 -145
  208. letitloop-0.6.0/tests/test_event_wiring.py +0 -311
  209. letitloop-0.6.0/tests/test_evidence_flow.py +0 -133
  210. letitloop-0.6.0/tests/test_evidence_ledger.py +0 -92
  211. letitloop-0.6.0/tests/test_exception_containment.py +0 -170
  212. letitloop-0.6.0/tests/test_failure.py +0 -59
  213. letitloop-0.6.0/tests/test_fast_sandbox.py +0 -68
  214. letitloop-0.6.0/tests/test_fault_injection.py +0 -180
  215. letitloop-0.6.0/tests/test_fault_injection_adversarial.py +0 -452
  216. letitloop-0.6.0/tests/test_feasibility_gate.py +0 -109
  217. letitloop-0.6.0/tests/test_feedback.py +0 -186
  218. letitloop-0.6.0/tests/test_framework_examples.py +0 -61
  219. letitloop-0.6.0/tests/test_gate.py +0 -115
  220. letitloop-0.6.0/tests/test_generator.py +0 -95
  221. letitloop-0.6.0/tests/test_goal.py +0 -90
  222. letitloop-0.6.0/tests/test_handoff.py +0 -132
  223. letitloop-0.6.0/tests/test_hardening_batch3.py +0 -298
  224. letitloop-0.6.0/tests/test_hybrid_worker.py +0 -420
  225. letitloop-0.6.0/tests/test_impossibility.py +0 -108
  226. letitloop-0.6.0/tests/test_integration.py +0 -212
  227. letitloop-0.6.0/tests/test_limits.py +0 -108
  228. letitloop-0.6.0/tests/test_live_proofs.py +0 -316
  229. letitloop-0.6.0/tests/test_live_smoke.py +0 -128
  230. letitloop-0.6.0/tests/test_local_tool_calling.py +0 -318
  231. letitloop-0.6.0/tests/test_mcp_client.py +0 -341
  232. letitloop-0.6.0/tests/test_mcp_concurrency.py +0 -52
  233. letitloop-0.6.0/tests/test_mcp_security.py +0 -82
  234. letitloop-0.6.0/tests/test_mcp_server.py +0 -174
  235. letitloop-0.6.0/tests/test_memory_bridge.py +0 -197
  236. letitloop-0.6.0/tests/test_metrics.py +0 -152
  237. letitloop-0.6.0/tests/test_operator_controls.py +0 -177
  238. letitloop-0.6.0/tests/test_parsing.py +0 -211
  239. letitloop-0.6.0/tests/test_patch_applier.py +0 -92
  240. letitloop-0.6.0/tests/test_performance_and_trace.py +0 -138
  241. letitloop-0.6.0/tests/test_plan_gate.py +0 -312
  242. letitloop-0.6.0/tests/test_plan_quality.py +0 -303
  243. letitloop-0.6.0/tests/test_planner.py +0 -132
  244. letitloop-0.6.0/tests/test_pr_verification_scenarios.py +0 -58
  245. letitloop-0.6.0/tests/test_preflight.py +0 -109
  246. letitloop-0.6.0/tests/test_prompts.py +0 -193
  247. letitloop-0.6.0/tests/test_proof_receipt.py +0 -61
  248. letitloop-0.6.0/tests/test_provider_scheduler.py +0 -387
  249. letitloop-0.6.0/tests/test_qc_overrule.py +0 -321
  250. letitloop-0.6.0/tests/test_qc_paths.py +0 -414
  251. letitloop-0.6.0/tests/test_qplane_fail_closed.py +0 -1397
  252. letitloop-0.6.0/tests/test_quality_plan.py +0 -380
  253. letitloop-0.6.0/tests/test_quality_plane.py +0 -1144
  254. letitloop-0.6.0/tests/test_quality_spec_propagation.py +0 -169
  255. letitloop-0.6.0/tests/test_recipes.py +0 -108
  256. letitloop-0.6.0/tests/test_reconcile.py +0 -177
  257. letitloop-0.6.0/tests/test_remediate.py +0 -147
  258. letitloop-0.6.0/tests/test_replan_evidence.py +0 -158
  259. letitloop-0.6.0/tests/test_replanner.py +0 -119
  260. letitloop-0.6.0/tests/test_replanner_integration_e2e.py +0 -50
  261. letitloop-0.6.0/tests/test_research_providers.py +0 -111
  262. letitloop-0.6.0/tests/test_retry_metadata.py +0 -144
  263. letitloop-0.6.0/tests/test_review_artifact.py +0 -369
  264. letitloop-0.6.0/tests/test_safety.py +0 -183
  265. letitloop-0.6.0/tests/test_schemas.py +0 -55
  266. letitloop-0.6.0/tests/test_scope.py +0 -178
  267. letitloop-0.6.0/tests/test_sprint7_adapters.py +0 -181
  268. letitloop-0.6.0/tests/test_state_coverage_expansion.py +0 -598
  269. letitloop-0.6.0/tests/test_subprocess_helper.py +0 -82
  270. letitloop-0.6.0/tests/test_telemetry.py +0 -50
  271. letitloop-0.6.0/tests/test_unit_expansion.py +0 -359
  272. letitloop-0.6.0/tests/test_v032_remediation.py +0 -111
  273. letitloop-0.6.0/tests/test_verifier.py +0 -617
  274. letitloop-0.6.0/tests/test_verifier_ast_fuzz.py +0 -71
  275. letitloop-0.6.0/tests/test_verifier_hardening.py +0 -140
  276. letitloop-0.6.0/tests/test_webhooks.py +0 -419
  277. letitloop-0.6.0/tests/test_worker.py +0 -237
  278. letitloop-0.6.0/tests/test_worker_adapters.py +0 -128
  279. letitloop-0.6.0/tests/test_worker_adapters_extended.py +0 -134
  280. letitloop-0.6.0/tests/test_worker_escaping.py +0 -82
  281. letitloop-0.6.0/tests/test_worker_pool.py +0 -193
  282. letitloop-0.6.0/tests/test_worktree.py +0 -69
  283. letitloop-0.6.0/tests/test_worktree_sandbox.py +0 -307
  284. {letitloop-0.6.0 → letitloop-0.7.0}/.github/ISSUE_TEMPLATE/bug_report.yml +0 -0
  285. {letitloop-0.6.0 → letitloop-0.7.0}/.github/ISSUE_TEMPLATE/config.yml +0 -0
  286. {letitloop-0.6.0 → letitloop-0.7.0}/.github/ISSUE_TEMPLATE/feature_request.yml +0 -0
  287. {letitloop-0.6.0 → letitloop-0.7.0}/.github/dependabot.yml +0 -0
  288. {letitloop-0.6.0 → letitloop-0.7.0}/.github/release-drafter.config.yml +0 -0
  289. {letitloop-0.6.0 → letitloop-0.7.0}/.github/release-drafter.yml +0 -0
  290. {letitloop-0.6.0 → letitloop-0.7.0}/.github/workflows/all-contributors.yml +0 -0
  291. {letitloop-0.6.0 → letitloop-0.7.0}/.github/workflows/codeql.yml +0 -0
  292. {letitloop-0.6.0 → letitloop-0.7.0}/.github/workflows/dependency-review.yml +0 -0
  293. {letitloop-0.6.0 → letitloop-0.7.0}/.github/workflows/issue-claim.yml +0 -0
  294. {letitloop-0.6.0 → letitloop-0.7.0}/.github/workflows/pages.yml +0 -0
  295. {letitloop-0.6.0 → letitloop-0.7.0}/.github/workflows/pr-health-guard.yml +0 -0
  296. {letitloop-0.6.0 → letitloop-0.7.0}/.github/workflows/release-drafter.yml +0 -0
  297. {letitloop-0.6.0 → letitloop-0.7.0}/.github/workflows/release-pypi.yml +0 -0
  298. {letitloop-0.6.0 → letitloop-0.7.0}/.github/workflows/scorecard.yml +0 -0
  299. {letitloop-0.6.0 → letitloop-0.7.0}/.github/workflows/stale.yml +0 -0
  300. {letitloop-0.6.0 → letitloop-0.7.0}/LICENSE +0 -0
  301. {letitloop-0.6.0 → letitloop-0.7.0}/MANIFEST.in +0 -0
  302. {letitloop-0.6.0 → letitloop-0.7.0}/conformance/__init__.py +0 -0
  303. {letitloop-0.6.0 → letitloop-0.7.0}/conformance/adapters/atomic_wal_adapter.py +0 -0
  304. {letitloop-0.6.0 → letitloop-0.7.0}/conformance/adapters/autogen_adapter.py +0 -0
  305. {letitloop-0.6.0 → letitloop-0.7.0}/conformance/adapters/base.py +0 -0
  306. {letitloop-0.6.0 → letitloop-0.7.0}/conformance/adapters/crewai_adapter.py +0 -0
  307. {letitloop-0.6.0 → letitloop-0.7.0}/conformance/adapters/in_memory_adapter.py +0 -0
  308. {letitloop-0.6.0 → letitloop-0.7.0}/conformance/adapters/langgraph_adapter.py +0 -0
  309. {letitloop-0.6.0 → letitloop-0.7.0}/conformance/adapters/letitloop_adapter.py +0 -0
  310. {letitloop-0.6.0 → letitloop-0.7.0}/conformance/adapters/raw_python_adapter.py +0 -0
  311. {letitloop-0.6.0 → letitloop-0.7.0}/conformance/adapters/snapshot_graph_adapter.py +0 -0
  312. {letitloop-0.6.0 → letitloop-0.7.0}/conformance/adapters/unmanaged_script_adapter.py +0 -0
  313. {letitloop-0.6.0 → letitloop-0.7.0}/conformance/harness/__init__.py +0 -0
  314. {letitloop-0.6.0 → letitloop-0.7.0}/conformance/harness/injector.py +0 -0
  315. {letitloop-0.6.0 → letitloop-0.7.0}/conformance/harness/runner.py +0 -0
  316. {letitloop-0.6.0 → letitloop-0.7.0}/conformance/harness/schema.py +0 -0
  317. {letitloop-0.6.0 → letitloop-0.7.0}/conformance/harness/synthetic_engine.py +0 -0
  318. {letitloop-0.6.0 → letitloop-0.7.0}/conformance/scenarios/__init__.py +0 -0
  319. {letitloop-0.6.0 → letitloop-0.7.0}/docs/MCP_GUIDE.md +0 -0
  320. {letitloop-0.6.0 → letitloop-0.7.0}/docs/MCP_SETUP.md +0 -0
  321. {letitloop-0.6.0 → letitloop-0.7.0}/docs/SKILL_GUIDE.md +0 -0
  322. {letitloop-0.6.0 → letitloop-0.7.0}/docs/V033_SCORECARD.md +0 -0
  323. {letitloop-0.6.0 → letitloop-0.7.0}/docs/adapters.md +0 -0
  324. {letitloop-0.6.0 → letitloop-0.7.0}/docs/adr/0001-write-ahead-logging.md +0 -0
  325. {letitloop-0.6.0 → letitloop-0.7.0}/docs/adr/0002-deterministic-verifiers.md +0 -0
  326. {letitloop-0.6.0 → letitloop-0.7.0}/docs/adr/0003-headless-cli-adapters.md +0 -0
  327. {letitloop-0.6.0 → letitloop-0.7.0}/docs/adr/0004-format-aware-acceptance-checks.md +0 -0
  328. {letitloop-0.6.0 → letitloop-0.7.0}/docs/adr/README.md +0 -0
  329. {letitloop-0.6.0 → letitloop-0.7.0}/docs/adr/template.md +0 -0
  330. {letitloop-0.6.0 → letitloop-0.7.0}/docs/auto_healing.md +0 -0
  331. {letitloop-0.6.0 → letitloop-0.7.0}/docs/state_machine.md +0 -0
  332. {letitloop-0.6.0 → letitloop-0.7.0}/letitloop/adapters/__init__.py +0 -0
  333. {letitloop-0.6.0 → letitloop-0.7.0}/letitloop/adapters/autogen.py +0 -0
  334. {letitloop-0.6.0 → letitloop-0.7.0}/letitloop/adapters/crewai.py +0 -0
  335. {letitloop-0.6.0 → letitloop-0.7.0}/letitloop/adapters/fastapi.py +0 -0
  336. {letitloop-0.6.0 → letitloop-0.7.0}/letitloop/adapters/langgraph.py +0 -0
  337. {letitloop-0.6.0 → letitloop-0.7.0}/letitloop/adapters/smolagents.py +0 -0
  338. {letitloop-0.6.0 → letitloop-0.7.0}/letitloop/conformance/__init__.py +0 -0
  339. {letitloop-0.6.0 → letitloop-0.7.0}/letitloop/conformance/adapters/__init__.py +0 -0
  340. {letitloop-0.6.0 → letitloop-0.7.0}/letitloop/conformance/adapters/_durable_mixin.py +0 -0
  341. {letitloop-0.6.0 → letitloop-0.7.0}/letitloop/conformance/adapters/atomic_wal_adapter.py +0 -0
  342. {letitloop-0.6.0 → letitloop-0.7.0}/letitloop/conformance/adapters/autogen_adapter.py +0 -0
  343. {letitloop-0.6.0 → letitloop-0.7.0}/letitloop/conformance/adapters/base.py +0 -0
  344. {letitloop-0.6.0 → letitloop-0.7.0}/letitloop/conformance/adapters/crewai_adapter.py +0 -0
  345. {letitloop-0.6.0 → letitloop-0.7.0}/letitloop/conformance/adapters/in_memory_adapter.py +0 -0
  346. {letitloop-0.6.0 → letitloop-0.7.0}/letitloop/conformance/adapters/json_checkpoint_adapter.py +0 -0
  347. {letitloop-0.6.0 → letitloop-0.7.0}/letitloop/conformance/adapters/langgraph_adapter.py +0 -0
  348. {letitloop-0.6.0 → letitloop-0.7.0}/letitloop/conformance/adapters/letitloop_adapter.py +0 -0
  349. {letitloop-0.6.0 → letitloop-0.7.0}/letitloop/conformance/adapters/llamaindex_adapter.py +0 -0
  350. {letitloop-0.6.0 → letitloop-0.7.0}/letitloop/conformance/adapters/raw_python_adapter.py +0 -0
  351. {letitloop-0.6.0 → letitloop-0.7.0}/letitloop/conformance/adapters/snapshot_graph_adapter.py +0 -0
  352. {letitloop-0.6.0 → letitloop-0.7.0}/letitloop/conformance/adapters/sqlite_wal_adapter.py +0 -0
  353. {letitloop-0.6.0 → letitloop-0.7.0}/letitloop/conformance/adapters/swarm_adapter.py +0 -0
  354. {letitloop-0.6.0 → letitloop-0.7.0}/letitloop/conformance/adapters/unmanaged_script_adapter.py +0 -0
  355. {letitloop-0.6.0 → letitloop-0.7.0}/letitloop/conformance/harness/__init__.py +0 -0
  356. {letitloop-0.6.0 → letitloop-0.7.0}/letitloop/conformance/harness/injector.py +0 -0
  357. {letitloop-0.6.0 → letitloop-0.7.0}/letitloop/conformance/harness/runner.py +0 -0
  358. {letitloop-0.6.0 → letitloop-0.7.0}/letitloop/conformance/harness/schema.py +0 -0
  359. {letitloop-0.6.0 → letitloop-0.7.0}/letitloop/conformance/harness/synthetic_engine.py +0 -0
  360. {letitloop-0.6.0 → letitloop-0.7.0}/letitloop/conformance/reporter.py +0 -0
  361. {letitloop-0.6.0 → letitloop-0.7.0}/letitloop/conformance/scenarios/__init__.py +0 -0
  362. {letitloop-0.6.0 → letitloop-0.7.0}/letitloop/mcp/__init__.py +0 -0
  363. {letitloop-0.6.0 → letitloop-0.7.0}/letitloop/mcp/__main__.py +0 -0
  364. {letitloop-0.6.0 → letitloop-0.7.0}/letitloop-action/scripts/verify_ast.py +0 -0
  365. {letitloop-0.6.0 → letitloop-0.7.0}/letitloop.egg-info/dependency_links.txt +0 -0
  366. {letitloop-0.6.0 → letitloop-0.7.0}/letitloop.egg-info/entry_points.txt +0 -0
  367. {letitloop-0.6.0 → letitloop-0.7.0}/letitloop.egg-info/top_level.txt +0 -0
  368. {letitloop-0.6.0 → letitloop-0.7.0}/orchestrator/exceptions.py +0 -0
  369. {letitloop-0.6.0 → letitloop-0.7.0}/orchestrator/lock.py +0 -0
  370. {letitloop-0.6.0 → letitloop-0.7.0}/orchestrator/process_guard.py +0 -0
  371. {letitloop-0.6.0 → letitloop-0.7.0}/orchestrator/supervisor/liveness.py +0 -0
  372. {letitloop-0.6.0 → letitloop-0.7.0}/orchestrator/token_gate.py +0 -0
  373. {letitloop-0.6.0 → letitloop-0.7.0}/pytest.ini +0 -0
  374. {letitloop-0.6.0 → letitloop-0.7.0}/requirements-ci.txt +0 -0
  375. {letitloop-0.6.0 → letitloop-0.7.0}/setup.cfg +0 -0
  376. {letitloop-0.6.0/orchestrator/fixtures → letitloop-0.7.0/tests}/__init__.py +0 -0
  377. {letitloop-0.6.0 → letitloop-0.7.0}/tests/adapters/__init__.py +0 -0
  378. {letitloop-0.6.0 → letitloop-0.7.0}/tests/adapters/test_adapters_init.py +0 -0
  379. {letitloop-0.6.0 → letitloop-0.7.0}/tests/adapters/test_autogen.py +0 -0
  380. {letitloop-0.6.0 → letitloop-0.7.0}/tests/adapters/test_crewai.py +0 -0
  381. {letitloop-0.6.0 → letitloop-0.7.0}/tests/adapters/test_fastapi.py +0 -0
  382. {letitloop-0.6.0 → letitloop-0.7.0}/tests/adapters/test_langgraph.py +0 -0
  383. {letitloop-0.6.0 → letitloop-0.7.0}/tests/adapters/test_smolagents.py +0 -0
  384. {letitloop-0.6.0 → letitloop-0.7.0}/tests/test_browser_use_cookbook.py +0 -0
  385. {letitloop-0.6.0 → letitloop-0.7.0}/tests/test_cli_watch.py +0 -0
  386. {letitloop-0.6.0 → letitloop-0.7.0}/tests/test_conformance_benchmark.py +0 -0
  387. {letitloop-0.6.0 → letitloop-0.7.0}/tests/test_durable_async.py +0 -0
  388. {letitloop-0.6.0 → letitloop-0.7.0}/tests/test_fuzz_wal_corruptions.py +0 -0
  389. {letitloop-0.6.0 → letitloop-0.7.0}/tests/test_state.py +0 -0
  390. {letitloop-0.6.0 → letitloop-0.7.0}/tests/test_step_failclosed.py +0 -0
  391. {letitloop-0.6.0 → letitloop-0.7.0}/tests/test_supervise.py +0 -0
  392. {letitloop-0.6.0 → letitloop-0.7.0}/tests/test_token_gate.py +0 -0
  393. {letitloop-0.6.0 → letitloop-0.7.0}/tests/test_wal_corruption_recovery.py +0 -0
  394. {letitloop-0.6.0 → letitloop-0.7.0}/tests/test_wal_v2_checksums.py +0 -0
@@ -45,7 +45,7 @@ jobs:
45
45
 
46
46
  - name: Run unit tests
47
47
  run: |
48
- pytest tests -q --ignore=tests/test_integration.py --ignore=tests/test_benchmarks.py --cov=orchestrator --cov-report=xml
48
+ pytest tests -q -m "not integration" --ignore=tests/test_benchmarks.py --cov=orchestrator --cov-report=xml
49
49
 
50
50
  - name: Upload coverage to Codecov
51
51
  if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.11'
@@ -78,7 +78,7 @@ jobs:
78
78
 
79
79
  - name: Run integration tests (blocking)
80
80
  run: |
81
- pytest tests/test_integration.py -v
81
+ pytest -m integration -v
82
82
 
83
83
  security:
84
84
  runs-on: ubuntu-latest
@@ -3,6 +3,20 @@
3
3
  All notable changes to this project are documented in this file.
4
4
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
5
5
 
6
+ ## [0.7.0] - 2026-10-07
7
+
8
+ ### ⚡ The SQLite of Durable Execution (Micro-Kernel Architecture)
9
+ - **Radical Micro-Kernel Consolidation**: Amputated 70+ legacy coding-agent files, consolidating `letitloop` into an ultra-lean in-process persistence engine exporting `@durable`, `step`, `atomic_marker`, `supervise`, `LivenessSupervisor`, `State`, and `lock`.
10
+ - **Correctness & Corruption Resilience Patches**:
11
+ - **Line-0 Torn Tail Recovery**: Patched LILWAL02 replay to safely truncate interrupted partial writes at line 0 without crashing.
12
+ - **Zero Quadratic Write Amplification**: Decoupled full snapshot serialization from hot `step()` and `async_step()` loops (periodic snapshot every 50 steps or on clean close), reducing disk I/O overhead by up to 98% in long-running pipelines.
13
+ - **Crash-Resilient 2-Phase `atomic_marker`**: Upgraded atomic step markers to a 2-phase commit lifecycle (`.pending.<pid>` $\to$ `.committed`) that cleans up uncommitted locks from dead PIDs.
14
+ - **Fail-Closed State Verification**: Enforced fail-closed corruption handling across state snapshots and WAL journals.
15
+ - **Unified Lean CLI**: Redesigned command-line interface supporting `lil watch`, `lil inspect`, `lil demo`, `lil bench`, and `lil version`.
16
+ - **Zero-Daemon Ecosystem Integration**: Turnkey durable workflows and recipes for `browser-use`, `pydantic-ai`, and `dspy`.
17
+
18
+ ---
19
+
6
20
  ## [0.6.0] - 2026-10-04
7
21
 
8
22
  ### 🌐 Ecosystem Cookbooks & Resilience Hardening
@@ -1,7 +1,7 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: letitloop
3
- Version: 0.6.0
4
- Summary: Make any Python function crash-proof in 3 lines. Zero tokens wasted on SIGKILL.
3
+ Version: 0.7.0
4
+ Summary: The SQLite of Durable Execution — Zero-daemon in-process durability and process supervisor for Python functions & AI agents.
5
5
  Author-email: sdageltc <sdageltc@users.noreply.github.com>
6
6
  License: MIT
7
7
  Project-URL: Homepage, https://sdageltc.github.io/letitloop/
@@ -9,7 +9,7 @@ Project-URL: Documentation, https://github.com/sdageltc/letitloop#readme
9
9
  Project-URL: Repository, https://github.com/sdageltc/letitloop
10
10
  Project-URL: Bug Tracker, https://github.com/sdageltc/letitloop/issues
11
11
  Project-URL: Discussions, https://github.com/sdageltc/letitloop/discussions
12
- Keywords: agent-loop,durable,wal,crash-recovery,mcp,langchain,crewai,github-action
12
+ Keywords: durable-execution,wal,crash-resilience,agentic-ai,supervisor,langgraph,browser-use,pydantic-ai,dspy,zero-daemon
13
13
  Classifier: Development Status :: 4 - Beta
14
14
  Classifier: Intended Audience :: Developers
15
15
  Classifier: Intended Audience :: Science/Research
@@ -18,51 +18,24 @@ Classifier: Operating System :: OS Independent
18
18
  Classifier: Programming Language :: Python :: 3
19
19
  Classifier: Programming Language :: Python :: 3.11
20
20
  Classifier: Programming Language :: Python :: 3.12
21
- Classifier: Topic :: Software Development :: Build Tools
22
- Classifier: Topic :: Software Development :: Code Generators
21
+ Classifier: Topic :: Software Development :: Libraries :: Python Modules
23
22
  Classifier: Topic :: Software Development :: Testing
24
23
  Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
25
24
  Requires-Python: >=3.11
26
25
  Description-Content-Type: text/markdown
27
26
  License-File: LICENSE
28
- Requires-Dist: pyyaml>=6.0
29
- Requires-Dist: jsonschema>=4.0.0
30
27
  Requires-Dist: psutil>=5.9.0
31
- Provides-Extra: compliance
32
- Requires-Dist: cryptography>=41.0.0; extra == "compliance"
28
+ Provides-Extra: adapters
29
+ Requires-Dist: fastapi>=0.100.0; extra == "adapters"
30
+ Requires-Dist: langgraph<2,>=1.2; extra == "adapters"
33
31
  Provides-Extra: dev
34
32
  Requires-Dist: pytest>=7.0; extra == "dev"
35
33
  Requires-Dist: pytest-cov>=4.0; extra == "dev"
36
34
  Requires-Dist: pytest-asyncio>=0.21; extra == "dev"
37
35
  Requires-Dist: pytest-xdist>=3.0; extra == "dev"
38
36
  Requires-Dist: hypothesis>=6.100.0; extra == "dev"
39
- Requires-Dist: jsonschema>=4.0.0; extra == "dev"
40
- Requires-Dist: ruff>=0.1.0; extra == "dev"
41
- Requires-Dist: bandit>=1.7.5; extra == "dev"
42
- Requires-Dist: pre-commit>=3.0; extra == "dev"
43
- Requires-Dist: fastapi>=0.100.0; extra == "dev"
44
- Requires-Dist: httpx>=0.24.0; extra == "dev"
45
37
  Requires-Dist: langgraph<2,>=1.2; extra == "dev"
46
- Provides-Extra: financial-agent
47
- Requires-Dist: certifi>=2024.0.0; extra == "financial-agent"
48
- Requires-Dist: langgraph<2,>=1.2; extra == "financial-agent"
49
- Requires-Dist: yfinance<2,>=1.0; extra == "financial-agent"
50
- Provides-Extra: openai
51
- Requires-Dist: openai>=1.0.0; extra == "openai"
52
- Provides-Extra: anthropic
53
- Requires-Dist: anthropic>=0.18.0; extra == "anthropic"
54
- Provides-Extra: google
55
- Requires-Dist: google-generativeai>=0.4.0; extra == "google"
56
- Provides-Extra: fastapi
57
- Requires-Dist: fastapi>=0.100.0; extra == "fastapi"
58
- Provides-Extra: all-providers
59
- Requires-Dist: openai>=1.0.0; extra == "all-providers"
60
- Requires-Dist: anthropic>=0.18.0; extra == "all-providers"
61
- Requires-Dist: google-generativeai>=0.4.0; extra == "all-providers"
62
- Provides-Extra: telemetry
63
- Requires-Dist: opentelemetry-api>=1.20; extra == "telemetry"
64
- Requires-Dist: opentelemetry-sdk>=1.20; extra == "telemetry"
65
- Requires-Dist: prometheus-client>=0.19; extra == "telemetry"
38
+ Requires-Dist: ruff>=0.1.0; extra == "dev"
66
39
  Dynamic: license-file
67
40
 
68
41
  <p align="center">
@@ -73,7 +46,7 @@ Dynamic: license-file
73
46
 
74
47
  # let it loop (LIL)
75
48
 
76
- **Make any Python function or AI agent workflow crash-proof in 3 lines. Zero tokens wasted on SIGKILL.**
49
+ **The SQLite of Durable Execution — Zero-daemon in-process durability and process supervisor for Python functions & AI agents.**
77
50
 
78
51
  [![Official Website](https://img.shields.io/badge/Website-LetItLoop-0284c7?logo=googlechrome&logoColor=white)](https://sdageltc.github.io/letitloop/)
79
52
  [![PyPI version](https://img.shields.io/pypi/v/letitloop.svg?color=blue)](https://pypi.org/project/letitloop/)
@@ -195,10 +168,8 @@ See [docs/adapters.md](docs/adapters.md) for complete framework recipes, lifecyc
195
168
  ### 1. Zero-Daemon Local Durability (Zero Infrastructure)
196
169
  No background Go servers, no Redis queues, and no PostgreSQL cluster configuration. LetItLoop embeds a single-file Write-Ahead Log (`LILWAL02`) that logs step outputs atomically. If your script dies from `SIGKILL (137)`, OOM, or spot eviction, running the script again instantly fast-forwards to the exact interrupted step in **~14ms**.
197
170
 
198
- ### 2. Source-Span AST Node Splicer (0% Comment Loss)
199
- Temporal and existing orchestrators only manage task state. LetItLoop includes a surgical Python concrete syntax tree (CST) engine built specifically for self-coding AI agents:
200
- - Replaces targeted functions and classes with surgical precision.
201
- - **0% Comment Loss**: Guarantees module docstrings, inline comments, licensing headers, and class indentation are never stripped or hallucinated away by LLM whole-file rewrites.
171
+ ### 2. Zero Write Amplification & Fast-Forward Replay
172
+ Unlike naive state serialization engines that rewrite full megabyte JSON snapshots on every single step ($O(N^2 \cdot S)$ write amplification), LetItLoop appends compact CRC32-framed delta records to an in-process WAL. Hot steps execute at native CPU speed with decoupled periodic snapshotting, allowing resumed executions to replay hundreds of steps in under **15ms**.
202
173
 
203
174
  ### 3. Proof-Carrying CI Gate (`letitloop-action`)
204
175
  LetItLoop generates signed HMAC-SHA256 receipts recording execution invariants and test outputs. Drop [`letitloop-action@v2`](https://github.com/sdageltc/letitloop-action) into GitHub Actions to block AI pull requests from hallucinating passing test outputs or altering protected function signatures.
@@ -223,7 +194,7 @@ Empirical results from the open [DCP-2.0 Durability Benchmark](https://sdageltc.
223
194
  > [!NOTE]
224
195
  > **Methodological Disclosure & Architectural Trade-offs**:
225
196
  > 1. **Why 100% durability is physically impossible**: If a non-maskable `SIGKILL` strikes while an uncommitted external network request is actively in flight, that single step must be re-executed upon resume, producing an empirical ~1.4%–2.8% token re-execution overhead.
226
- > 2. **The I/O Overhead Trade-off**: LetItLoop trades **~3.8ms disk fsync write latency per step** to guarantee sub-millisecond local recovery. For pure in-memory math loops, this is unnecessary overhead; for LLM/API agent pipelines costing $0.10–$2.00 per step, paying 3.8ms disk I/O to guarantee zero lost progress is an overwhelming net win.
197
+ > 2. **The I/O Overhead Trade-off**: LetItLoop trades **~3.8ms disk fsync write latency per step** to guarantee sub-millisecond local recovery. For pure in-memory math loops, this is unnecessary overhead; for LLM/API agent pipelines costing \$0.10–\$2.00 per step, paying 3.8ms disk I/O to guarantee zero lost progress is an overwhelming net win.
227
198
 
228
199
  ---
229
200
 
@@ -234,7 +205,7 @@ Empirical results from the open [DCP-2.0 Durability Benchmark](https://sdageltc.
234
205
 
235
206
  ```bash
236
207
  # Supervise execution and auto-respawn process on unhandled SIGKILL/crash until completion
237
- lil run --task auth-refactor --supervise --strict
208
+ lil watch agent_script.py --max-restarts 10 --backoff 1.0
238
209
  ```
239
210
 
240
211
  ---
@@ -6,7 +6,7 @@
6
6
 
7
7
  # let it loop (LIL)
8
8
 
9
- **Make any Python function or AI agent workflow crash-proof in 3 lines. Zero tokens wasted on SIGKILL.**
9
+ **The SQLite of Durable Execution — Zero-daemon in-process durability and process supervisor for Python functions & AI agents.**
10
10
 
11
11
  [![Official Website](https://img.shields.io/badge/Website-LetItLoop-0284c7?logo=googlechrome&logoColor=white)](https://sdageltc.github.io/letitloop/)
12
12
  [![PyPI version](https://img.shields.io/pypi/v/letitloop.svg?color=blue)](https://pypi.org/project/letitloop/)
@@ -128,10 +128,8 @@ See [docs/adapters.md](docs/adapters.md) for complete framework recipes, lifecyc
128
128
  ### 1. Zero-Daemon Local Durability (Zero Infrastructure)
129
129
  No background Go servers, no Redis queues, and no PostgreSQL cluster configuration. LetItLoop embeds a single-file Write-Ahead Log (`LILWAL02`) that logs step outputs atomically. If your script dies from `SIGKILL (137)`, OOM, or spot eviction, running the script again instantly fast-forwards to the exact interrupted step in **~14ms**.
130
130
 
131
- ### 2. Source-Span AST Node Splicer (0% Comment Loss)
132
- Temporal and existing orchestrators only manage task state. LetItLoop includes a surgical Python concrete syntax tree (CST) engine built specifically for self-coding AI agents:
133
- - Replaces targeted functions and classes with surgical precision.
134
- - **0% Comment Loss**: Guarantees module docstrings, inline comments, licensing headers, and class indentation are never stripped or hallucinated away by LLM whole-file rewrites.
131
+ ### 2. Zero Write Amplification & Fast-Forward Replay
132
+ Unlike naive state serialization engines that rewrite full megabyte JSON snapshots on every single step ($O(N^2 \cdot S)$ write amplification), LetItLoop appends compact CRC32-framed delta records to an in-process WAL. Hot steps execute at native CPU speed with decoupled periodic snapshotting, allowing resumed executions to replay hundreds of steps in under **15ms**.
135
133
 
136
134
  ### 3. Proof-Carrying CI Gate (`letitloop-action`)
137
135
  LetItLoop generates signed HMAC-SHA256 receipts recording execution invariants and test outputs. Drop [`letitloop-action@v2`](https://github.com/sdageltc/letitloop-action) into GitHub Actions to block AI pull requests from hallucinating passing test outputs or altering protected function signatures.
@@ -156,7 +154,7 @@ Empirical results from the open [DCP-2.0 Durability Benchmark](https://sdageltc.
156
154
  > [!NOTE]
157
155
  > **Methodological Disclosure & Architectural Trade-offs**:
158
156
  > 1. **Why 100% durability is physically impossible**: If a non-maskable `SIGKILL` strikes while an uncommitted external network request is actively in flight, that single step must be re-executed upon resume, producing an empirical ~1.4%–2.8% token re-execution overhead.
159
- > 2. **The I/O Overhead Trade-off**: LetItLoop trades **~3.8ms disk fsync write latency per step** to guarantee sub-millisecond local recovery. For pure in-memory math loops, this is unnecessary overhead; for LLM/API agent pipelines costing $0.10–$2.00 per step, paying 3.8ms disk I/O to guarantee zero lost progress is an overwhelming net win.
157
+ > 2. **The I/O Overhead Trade-off**: LetItLoop trades **~3.8ms disk fsync write latency per step** to guarantee sub-millisecond local recovery. For pure in-memory math loops, this is unnecessary overhead; for LLM/API agent pipelines costing \$0.10–\$2.00 per step, paying 3.8ms disk I/O to guarantee zero lost progress is an overwhelming net win.
160
158
 
161
159
  ---
162
160
 
@@ -167,7 +165,7 @@ Empirical results from the open [DCP-2.0 Durability Benchmark](https://sdageltc.
167
165
 
168
166
  ```bash
169
167
  # Supervise execution and auto-respawn process on unhandled SIGKILL/crash until completion
170
- lil run --task auth-refactor --supervise --strict
168
+ lil watch agent_script.py --max-restarts 10 --backoff 1.0
171
169
  ```
172
170
 
173
171
  ---
@@ -1,6 +1,6 @@
1
1
  """LetItLoop — Deterministic durability kernel and crash-resilient execution gate."""
2
2
 
3
- __version__ = "0.6.0"
3
+ __version__ = "0.7.0"
4
4
 
5
5
  from orchestrator.decorators import (
6
6
  DurableSerializationError,
@@ -1,7 +1,7 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: letitloop
3
- Version: 0.6.0
4
- Summary: Make any Python function crash-proof in 3 lines. Zero tokens wasted on SIGKILL.
3
+ Version: 0.7.0
4
+ Summary: The SQLite of Durable Execution — Zero-daemon in-process durability and process supervisor for Python functions & AI agents.
5
5
  Author-email: sdageltc <sdageltc@users.noreply.github.com>
6
6
  License: MIT
7
7
  Project-URL: Homepage, https://sdageltc.github.io/letitloop/
@@ -9,7 +9,7 @@ Project-URL: Documentation, https://github.com/sdageltc/letitloop#readme
9
9
  Project-URL: Repository, https://github.com/sdageltc/letitloop
10
10
  Project-URL: Bug Tracker, https://github.com/sdageltc/letitloop/issues
11
11
  Project-URL: Discussions, https://github.com/sdageltc/letitloop/discussions
12
- Keywords: agent-loop,durable,wal,crash-recovery,mcp,langchain,crewai,github-action
12
+ Keywords: durable-execution,wal,crash-resilience,agentic-ai,supervisor,langgraph,browser-use,pydantic-ai,dspy,zero-daemon
13
13
  Classifier: Development Status :: 4 - Beta
14
14
  Classifier: Intended Audience :: Developers
15
15
  Classifier: Intended Audience :: Science/Research
@@ -18,51 +18,24 @@ Classifier: Operating System :: OS Independent
18
18
  Classifier: Programming Language :: Python :: 3
19
19
  Classifier: Programming Language :: Python :: 3.11
20
20
  Classifier: Programming Language :: Python :: 3.12
21
- Classifier: Topic :: Software Development :: Build Tools
22
- Classifier: Topic :: Software Development :: Code Generators
21
+ Classifier: Topic :: Software Development :: Libraries :: Python Modules
23
22
  Classifier: Topic :: Software Development :: Testing
24
23
  Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
25
24
  Requires-Python: >=3.11
26
25
  Description-Content-Type: text/markdown
27
26
  License-File: LICENSE
28
- Requires-Dist: pyyaml>=6.0
29
- Requires-Dist: jsonschema>=4.0.0
30
27
  Requires-Dist: psutil>=5.9.0
31
- Provides-Extra: compliance
32
- Requires-Dist: cryptography>=41.0.0; extra == "compliance"
28
+ Provides-Extra: adapters
29
+ Requires-Dist: fastapi>=0.100.0; extra == "adapters"
30
+ Requires-Dist: langgraph<2,>=1.2; extra == "adapters"
33
31
  Provides-Extra: dev
34
32
  Requires-Dist: pytest>=7.0; extra == "dev"
35
33
  Requires-Dist: pytest-cov>=4.0; extra == "dev"
36
34
  Requires-Dist: pytest-asyncio>=0.21; extra == "dev"
37
35
  Requires-Dist: pytest-xdist>=3.0; extra == "dev"
38
36
  Requires-Dist: hypothesis>=6.100.0; extra == "dev"
39
- Requires-Dist: jsonschema>=4.0.0; extra == "dev"
40
- Requires-Dist: ruff>=0.1.0; extra == "dev"
41
- Requires-Dist: bandit>=1.7.5; extra == "dev"
42
- Requires-Dist: pre-commit>=3.0; extra == "dev"
43
- Requires-Dist: fastapi>=0.100.0; extra == "dev"
44
- Requires-Dist: httpx>=0.24.0; extra == "dev"
45
37
  Requires-Dist: langgraph<2,>=1.2; extra == "dev"
46
- Provides-Extra: financial-agent
47
- Requires-Dist: certifi>=2024.0.0; extra == "financial-agent"
48
- Requires-Dist: langgraph<2,>=1.2; extra == "financial-agent"
49
- Requires-Dist: yfinance<2,>=1.0; extra == "financial-agent"
50
- Provides-Extra: openai
51
- Requires-Dist: openai>=1.0.0; extra == "openai"
52
- Provides-Extra: anthropic
53
- Requires-Dist: anthropic>=0.18.0; extra == "anthropic"
54
- Provides-Extra: google
55
- Requires-Dist: google-generativeai>=0.4.0; extra == "google"
56
- Provides-Extra: fastapi
57
- Requires-Dist: fastapi>=0.100.0; extra == "fastapi"
58
- Provides-Extra: all-providers
59
- Requires-Dist: openai>=1.0.0; extra == "all-providers"
60
- Requires-Dist: anthropic>=0.18.0; extra == "all-providers"
61
- Requires-Dist: google-generativeai>=0.4.0; extra == "all-providers"
62
- Provides-Extra: telemetry
63
- Requires-Dist: opentelemetry-api>=1.20; extra == "telemetry"
64
- Requires-Dist: opentelemetry-sdk>=1.20; extra == "telemetry"
65
- Requires-Dist: prometheus-client>=0.19; extra == "telemetry"
38
+ Requires-Dist: ruff>=0.1.0; extra == "dev"
66
39
  Dynamic: license-file
67
40
 
68
41
  <p align="center">
@@ -73,7 +46,7 @@ Dynamic: license-file
73
46
 
74
47
  # let it loop (LIL)
75
48
 
76
- **Make any Python function or AI agent workflow crash-proof in 3 lines. Zero tokens wasted on SIGKILL.**
49
+ **The SQLite of Durable Execution — Zero-daemon in-process durability and process supervisor for Python functions & AI agents.**
77
50
 
78
51
  [![Official Website](https://img.shields.io/badge/Website-LetItLoop-0284c7?logo=googlechrome&logoColor=white)](https://sdageltc.github.io/letitloop/)
79
52
  [![PyPI version](https://img.shields.io/pypi/v/letitloop.svg?color=blue)](https://pypi.org/project/letitloop/)
@@ -195,10 +168,8 @@ See [docs/adapters.md](docs/adapters.md) for complete framework recipes, lifecyc
195
168
  ### 1. Zero-Daemon Local Durability (Zero Infrastructure)
196
169
  No background Go servers, no Redis queues, and no PostgreSQL cluster configuration. LetItLoop embeds a single-file Write-Ahead Log (`LILWAL02`) that logs step outputs atomically. If your script dies from `SIGKILL (137)`, OOM, or spot eviction, running the script again instantly fast-forwards to the exact interrupted step in **~14ms**.
197
170
 
198
- ### 2. Source-Span AST Node Splicer (0% Comment Loss)
199
- Temporal and existing orchestrators only manage task state. LetItLoop includes a surgical Python concrete syntax tree (CST) engine built specifically for self-coding AI agents:
200
- - Replaces targeted functions and classes with surgical precision.
201
- - **0% Comment Loss**: Guarantees module docstrings, inline comments, licensing headers, and class indentation are never stripped or hallucinated away by LLM whole-file rewrites.
171
+ ### 2. Zero Write Amplification & Fast-Forward Replay
172
+ Unlike naive state serialization engines that rewrite full megabyte JSON snapshots on every single step ($O(N^2 \cdot S)$ write amplification), LetItLoop appends compact CRC32-framed delta records to an in-process WAL. Hot steps execute at native CPU speed with decoupled periodic snapshotting, allowing resumed executions to replay hundreds of steps in under **15ms**.
202
173
 
203
174
  ### 3. Proof-Carrying CI Gate (`letitloop-action`)
204
175
  LetItLoop generates signed HMAC-SHA256 receipts recording execution invariants and test outputs. Drop [`letitloop-action@v2`](https://github.com/sdageltc/letitloop-action) into GitHub Actions to block AI pull requests from hallucinating passing test outputs or altering protected function signatures.
@@ -223,7 +194,7 @@ Empirical results from the open [DCP-2.0 Durability Benchmark](https://sdageltc.
223
194
  > [!NOTE]
224
195
  > **Methodological Disclosure & Architectural Trade-offs**:
225
196
  > 1. **Why 100% durability is physically impossible**: If a non-maskable `SIGKILL` strikes while an uncommitted external network request is actively in flight, that single step must be re-executed upon resume, producing an empirical ~1.4%–2.8% token re-execution overhead.
226
- > 2. **The I/O Overhead Trade-off**: LetItLoop trades **~3.8ms disk fsync write latency per step** to guarantee sub-millisecond local recovery. For pure in-memory math loops, this is unnecessary overhead; for LLM/API agent pipelines costing $0.10–$2.00 per step, paying 3.8ms disk I/O to guarantee zero lost progress is an overwhelming net win.
197
+ > 2. **The I/O Overhead Trade-off**: LetItLoop trades **~3.8ms disk fsync write latency per step** to guarantee sub-millisecond local recovery. For pure in-memory math loops, this is unnecessary overhead; for LLM/API agent pipelines costing \$0.10–\$2.00 per step, paying 3.8ms disk I/O to guarantee zero lost progress is an overwhelming net win.
227
198
 
228
199
  ---
229
200
 
@@ -234,7 +205,7 @@ Empirical results from the open [DCP-2.0 Durability Benchmark](https://sdageltc.
234
205
 
235
206
  ```bash
236
207
  # Supervise execution and auto-respawn process on unhandled SIGKILL/crash until completion
237
- lil run --task auth-refactor --supervise --strict
208
+ lil watch agent_script.py --max-restarts 10 --backoff 1.0
238
209
  ```
239
210
 
240
211
  ---
@@ -0,0 +1,127 @@
1
+ CHANGELOG.md
2
+ LICENSE
3
+ MANIFEST.in
4
+ README.md
5
+ pyproject.toml
6
+ pytest.ini
7
+ requirements-ci.txt
8
+ .github/dependabot.yml
9
+ .github/release-drafter.config.yml
10
+ .github/release-drafter.yml
11
+ .github/ISSUE_TEMPLATE/bug_report.yml
12
+ .github/ISSUE_TEMPLATE/config.yml
13
+ .github/ISSUE_TEMPLATE/feature_request.yml
14
+ .github/workflows/all-contributors.yml
15
+ .github/workflows/ci.yml
16
+ .github/workflows/codeql.yml
17
+ .github/workflows/dependency-review.yml
18
+ .github/workflows/issue-claim.yml
19
+ .github/workflows/pages.yml
20
+ .github/workflows/pr-health-guard.yml
21
+ .github/workflows/release-drafter.yml
22
+ .github/workflows/release-pypi.yml
23
+ .github/workflows/scorecard.yml
24
+ .github/workflows/stale.yml
25
+ conformance/__init__.py
26
+ conformance/adapters/atomic_wal_adapter.py
27
+ conformance/adapters/autogen_adapter.py
28
+ conformance/adapters/base.py
29
+ conformance/adapters/crewai_adapter.py
30
+ conformance/adapters/in_memory_adapter.py
31
+ conformance/adapters/langgraph_adapter.py
32
+ conformance/adapters/letitloop_adapter.py
33
+ conformance/adapters/raw_python_adapter.py
34
+ conformance/adapters/snapshot_graph_adapter.py
35
+ conformance/adapters/unmanaged_script_adapter.py
36
+ conformance/harness/__init__.py
37
+ conformance/harness/injector.py
38
+ conformance/harness/runner.py
39
+ conformance/harness/schema.py
40
+ conformance/harness/synthetic_engine.py
41
+ conformance/scenarios/__init__.py
42
+ docs/MCP_GUIDE.md
43
+ docs/MCP_SETUP.md
44
+ docs/SKILL_GUIDE.md
45
+ docs/V033_SCORECARD.md
46
+ docs/adapters.md
47
+ docs/auto_healing.md
48
+ docs/state_machine.md
49
+ docs/adr/0001-write-ahead-logging.md
50
+ docs/adr/0002-deterministic-verifiers.md
51
+ docs/adr/0003-headless-cli-adapters.md
52
+ docs/adr/0004-format-aware-acceptance-checks.md
53
+ docs/adr/README.md
54
+ docs/adr/template.md
55
+ letitloop/__init__.py
56
+ letitloop-action/scripts/verify_ast.py
57
+ letitloop.egg-info/PKG-INFO
58
+ letitloop.egg-info/SOURCES.txt
59
+ letitloop.egg-info/dependency_links.txt
60
+ letitloop.egg-info/entry_points.txt
61
+ letitloop.egg-info/requires.txt
62
+ letitloop.egg-info/top_level.txt
63
+ letitloop/adapters/__init__.py
64
+ letitloop/adapters/autogen.py
65
+ letitloop/adapters/crewai.py
66
+ letitloop/adapters/fastapi.py
67
+ letitloop/adapters/langgraph.py
68
+ letitloop/adapters/smolagents.py
69
+ letitloop/conformance/__init__.py
70
+ letitloop/conformance/reporter.py
71
+ letitloop/conformance/adapters/__init__.py
72
+ letitloop/conformance/adapters/_durable_mixin.py
73
+ letitloop/conformance/adapters/atomic_wal_adapter.py
74
+ letitloop/conformance/adapters/autogen_adapter.py
75
+ letitloop/conformance/adapters/base.py
76
+ letitloop/conformance/adapters/crewai_adapter.py
77
+ letitloop/conformance/adapters/in_memory_adapter.py
78
+ letitloop/conformance/adapters/json_checkpoint_adapter.py
79
+ letitloop/conformance/adapters/langgraph_adapter.py
80
+ letitloop/conformance/adapters/letitloop_adapter.py
81
+ letitloop/conformance/adapters/llamaindex_adapter.py
82
+ letitloop/conformance/adapters/raw_python_adapter.py
83
+ letitloop/conformance/adapters/snapshot_graph_adapter.py
84
+ letitloop/conformance/adapters/sqlite_wal_adapter.py
85
+ letitloop/conformance/adapters/swarm_adapter.py
86
+ letitloop/conformance/adapters/unmanaged_script_adapter.py
87
+ letitloop/conformance/harness/__init__.py
88
+ letitloop/conformance/harness/injector.py
89
+ letitloop/conformance/harness/runner.py
90
+ letitloop/conformance/harness/schema.py
91
+ letitloop/conformance/harness/synthetic_engine.py
92
+ letitloop/conformance/scenarios/__init__.py
93
+ letitloop/mcp/__init__.py
94
+ letitloop/mcp/__main__.py
95
+ orchestrator/__init__.py
96
+ orchestrator/cli.py
97
+ orchestrator/decorators.py
98
+ orchestrator/exceptions.py
99
+ orchestrator/lock.py
100
+ orchestrator/process_guard.py
101
+ orchestrator/state.py
102
+ orchestrator/token_gate.py
103
+ orchestrator/supervisor/__init__.py
104
+ orchestrator/supervisor/liveness.py
105
+ tests/__init__.py
106
+ tests/test_browser_use_cookbook.py
107
+ tests/test_cli_watch.py
108
+ tests/test_conformance_benchmark.py
109
+ tests/test_cookbooks.py
110
+ tests/test_durable_async.py
111
+ tests/test_durable_decorator.py
112
+ tests/test_fuzz_wal_corruptions.py
113
+ tests/test_lock.py
114
+ tests/test_process_guard.py
115
+ tests/test_state.py
116
+ tests/test_step_failclosed.py
117
+ tests/test_supervise.py
118
+ tests/test_token_gate.py
119
+ tests/test_wal_corruption_recovery.py
120
+ tests/test_wal_v2_checksums.py
121
+ tests/adapters/__init__.py
122
+ tests/adapters/test_adapters_init.py
123
+ tests/adapters/test_autogen.py
124
+ tests/adapters/test_crewai.py
125
+ tests/adapters/test_fastapi.py
126
+ tests/adapters/test_langgraph.py
127
+ tests/adapters/test_smolagents.py
@@ -0,0 +1,14 @@
1
+ psutil>=5.9.0
2
+
3
+ [adapters]
4
+ fastapi>=0.100.0
5
+ langgraph<2,>=1.2
6
+
7
+ [dev]
8
+ pytest>=7.0
9
+ pytest-cov>=4.0
10
+ pytest-asyncio>=0.21
11
+ pytest-xdist>=3.0
12
+ hypothesis>=6.100.0
13
+ langgraph<2,>=1.2
14
+ ruff>=0.1.0
@@ -0,0 +1,47 @@
1
+ """orchestrator — deterministic durability kernel and crash-resilient execution."""
2
+
3
+ __version__ = "0.7.0"
4
+
5
+ from .decorators import (
6
+ DurableSerializationError,
7
+ async_step,
8
+ atomic_marker,
9
+ durable,
10
+ durable_async,
11
+ step,
12
+ )
13
+ from .lock import acquire_lock, release_lock
14
+ from .state import (
15
+ IllegalTransitionError,
16
+ State,
17
+ StateError,
18
+ create_initial_state,
19
+ load_state,
20
+ save_state,
21
+ )
22
+ from .supervisor.liveness import (
23
+ CircuitBreakerError,
24
+ LivenessSupervisor,
25
+ supervise,
26
+ )
27
+
28
+ __all__ = [
29
+ "__version__",
30
+ "durable",
31
+ "durable_async",
32
+ "step",
33
+ "async_step",
34
+ "atomic_marker",
35
+ "supervise",
36
+ "LivenessSupervisor",
37
+ "CircuitBreakerError",
38
+ "DurableSerializationError",
39
+ "State",
40
+ "StateError",
41
+ "IllegalTransitionError",
42
+ "create_initial_state",
43
+ "load_state",
44
+ "save_state",
45
+ "acquire_lock",
46
+ "release_lock",
47
+ ]