letitloop 0.3.3__tar.gz → 0.4.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 (385) hide show
  1. letitloop-0.4.0/.github/workflows/benchmark.yml +106 -0
  2. letitloop-0.4.0/.github/workflows/letitloop-verify.yml +84 -0
  3. {letitloop-0.3.3 → letitloop-0.4.0}/.github/workflows/pr-benchmark.yml +1 -1
  4. {letitloop-0.3.3 → letitloop-0.4.0}/CHANGELOG.md +23 -0
  5. {letitloop-0.3.3 → letitloop-0.4.0}/PKG-INFO +2 -1
  6. letitloop-0.4.0/docs/MCP_SETUP.md +78 -0
  7. letitloop-0.4.0/docs/V033_SCORECARD.md +184 -0
  8. letitloop-0.4.0/docs/plans/2026-08-26-vital-fixes-plus-real-bridges.md +674 -0
  9. {letitloop-0.3.3 → letitloop-0.4.0}/letitloop/__init__.py +1 -1
  10. letitloop-0.4.0/letitloop/conformance/adapters/_durable_mixin.py +55 -0
  11. {letitloop-0.3.3 → letitloop-0.4.0}/letitloop/conformance/adapters/autogen_adapter.py +13 -0
  12. {letitloop-0.3.3 → letitloop-0.4.0}/letitloop/conformance/adapters/crewai_adapter.py +13 -0
  13. {letitloop-0.3.3 → letitloop-0.4.0}/letitloop/conformance/adapters/langgraph_adapter.py +16 -1
  14. {letitloop-0.3.3 → letitloop-0.4.0}/letitloop/conformance/harness/injector.py +53 -28
  15. {letitloop-0.3.3 → letitloop-0.4.0}/letitloop/conformance/harness/runner.py +83 -3
  16. letitloop-0.4.0/letitloop/conformance/harness/schema.py +90 -0
  17. {letitloop-0.3.3 → letitloop-0.4.0}/letitloop/conformance/harness/synthetic_engine.py +5 -0
  18. letitloop-0.4.0/letitloop/conformance/reporter.py +122 -0
  19. letitloop-0.4.0/letitloop/mcp/__init__.py +33 -0
  20. letitloop-0.4.0/letitloop/mcp/__main__.py +6 -0
  21. letitloop-0.4.0/letitloop-action/scripts/verify_ast.py +140 -0
  22. {letitloop-0.3.3 → letitloop-0.4.0}/letitloop.egg-info/PKG-INFO +2 -1
  23. {letitloop-0.3.3 → letitloop-0.4.0}/letitloop.egg-info/SOURCES.txt +22 -0
  24. {letitloop-0.3.3 → letitloop-0.4.0}/letitloop.egg-info/requires.txt +1 -0
  25. {letitloop-0.3.3 → letitloop-0.4.0}/letitloop.egg-info/top_level.txt +1 -0
  26. {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/cli.py +324 -10
  27. letitloop-0.4.0/orchestrator/crypto.py +213 -0
  28. letitloop-0.4.0/orchestrator/dashboard_bridge.py +120 -0
  29. letitloop-0.4.0/orchestrator/gate.py +227 -0
  30. {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/lock.py +35 -17
  31. letitloop-0.4.0/orchestrator/mcp_server.py +465 -0
  32. letitloop-0.4.0/orchestrator/remediate.py +371 -0
  33. letitloop-0.4.0/orchestrator/sbom.py +134 -0
  34. letitloop-0.4.0/orchestrator/scrubber.py +98 -0
  35. {letitloop-0.3.3 → letitloop-0.4.0}/pyproject.toml +4 -3
  36. {letitloop-0.3.3 → letitloop-0.4.0}/pytest.ini +1 -1
  37. letitloop-0.4.0/tests/test_conformance_benchmark.py +128 -0
  38. letitloop-0.4.0/tests/test_conformance_sandbox.py +44 -0
  39. letitloop-0.4.0/tests/test_framework_examples.py +61 -0
  40. letitloop-0.4.0/tests/test_gate.py +115 -0
  41. letitloop-0.4.0/tests/test_mcp_server.py +133 -0
  42. letitloop-0.4.0/tests/test_remediate.py +147 -0
  43. letitloop-0.3.3/.github/workflows/letitloop-verify.yml +0 -36
  44. letitloop-0.3.3/letitloop/conformance/harness/schema.py +0 -31
  45. {letitloop-0.3.3 → letitloop-0.4.0}/.github/ISSUE_TEMPLATE/bug_report.yml +0 -0
  46. {letitloop-0.3.3 → letitloop-0.4.0}/.github/ISSUE_TEMPLATE/config.yml +0 -0
  47. {letitloop-0.3.3 → letitloop-0.4.0}/.github/ISSUE_TEMPLATE/feature_request.yml +0 -0
  48. {letitloop-0.3.3 → letitloop-0.4.0}/.github/dependabot.yml +0 -0
  49. {letitloop-0.3.3 → letitloop-0.4.0}/.github/release-drafter.config.yml +0 -0
  50. {letitloop-0.3.3 → letitloop-0.4.0}/.github/release-drafter.yml +0 -0
  51. {letitloop-0.3.3 → letitloop-0.4.0}/.github/workflows/auto-fix.yml +0 -0
  52. {letitloop-0.3.3 → letitloop-0.4.0}/.github/workflows/auto-remediate.yml +0 -0
  53. {letitloop-0.3.3 → letitloop-0.4.0}/.github/workflows/ci.yml +0 -0
  54. {letitloop-0.3.3 → letitloop-0.4.0}/.github/workflows/codeql.yml +0 -0
  55. {letitloop-0.3.3 → letitloop-0.4.0}/.github/workflows/dependency-review.yml +0 -0
  56. {letitloop-0.3.3 → letitloop-0.4.0}/.github/workflows/flaky-test-hunter.yml +0 -0
  57. {letitloop-0.3.3 → letitloop-0.4.0}/.github/workflows/issue-claim.yml +0 -0
  58. {letitloop-0.3.3 → letitloop-0.4.0}/.github/workflows/issue-scaffold.yml +0 -0
  59. {letitloop-0.3.3 → letitloop-0.4.0}/.github/workflows/pages.yml +0 -0
  60. {letitloop-0.3.3 → letitloop-0.4.0}/.github/workflows/release-drafter.yml +0 -0
  61. {letitloop-0.3.3 → letitloop-0.4.0}/.github/workflows/release-pypi.yml +0 -0
  62. {letitloop-0.3.3 → letitloop-0.4.0}/.github/workflows/scorecard.yml +0 -0
  63. {letitloop-0.3.3 → letitloop-0.4.0}/.github/workflows/stale.yml +0 -0
  64. {letitloop-0.3.3 → letitloop-0.4.0}/.github/workflows/welcome-bot.yml +0 -0
  65. {letitloop-0.3.3 → letitloop-0.4.0}/LICENSE +0 -0
  66. {letitloop-0.3.3 → letitloop-0.4.0}/MANIFEST.in +0 -0
  67. {letitloop-0.3.3 → letitloop-0.4.0}/README.md +0 -0
  68. {letitloop-0.3.3 → letitloop-0.4.0}/conformance/__init__.py +0 -0
  69. {letitloop-0.3.3 → letitloop-0.4.0}/conformance/adapters/atomic_wal_adapter.py +0 -0
  70. {letitloop-0.3.3 → letitloop-0.4.0}/conformance/adapters/autogen_adapter.py +0 -0
  71. {letitloop-0.3.3 → letitloop-0.4.0}/conformance/adapters/base.py +0 -0
  72. {letitloop-0.3.3 → letitloop-0.4.0}/conformance/adapters/crewai_adapter.py +0 -0
  73. {letitloop-0.3.3 → letitloop-0.4.0}/conformance/adapters/in_memory_adapter.py +0 -0
  74. {letitloop-0.3.3 → letitloop-0.4.0}/conformance/adapters/langgraph_adapter.py +0 -0
  75. {letitloop-0.3.3 → letitloop-0.4.0}/conformance/adapters/letitloop_adapter.py +0 -0
  76. {letitloop-0.3.3 → letitloop-0.4.0}/conformance/adapters/raw_python_adapter.py +0 -0
  77. {letitloop-0.3.3 → letitloop-0.4.0}/conformance/adapters/snapshot_graph_adapter.py +0 -0
  78. {letitloop-0.3.3 → letitloop-0.4.0}/conformance/adapters/unmanaged_script_adapter.py +0 -0
  79. {letitloop-0.3.3 → letitloop-0.4.0}/conformance/harness/__init__.py +0 -0
  80. {letitloop-0.3.3 → letitloop-0.4.0}/conformance/harness/injector.py +0 -0
  81. {letitloop-0.3.3 → letitloop-0.4.0}/conformance/harness/runner.py +0 -0
  82. {letitloop-0.3.3 → letitloop-0.4.0}/conformance/harness/schema.py +0 -0
  83. {letitloop-0.3.3 → letitloop-0.4.0}/conformance/harness/synthetic_engine.py +0 -0
  84. {letitloop-0.3.3 → letitloop-0.4.0}/conformance/scenarios/__init__.py +0 -0
  85. {letitloop-0.3.3 → letitloop-0.4.0}/docs/MCP_GUIDE.md +0 -0
  86. {letitloop-0.3.3 → letitloop-0.4.0}/docs/SKILL_GUIDE.md +0 -0
  87. {letitloop-0.3.3 → letitloop-0.4.0}/docs/adr/0001-write-ahead-logging.md +0 -0
  88. {letitloop-0.3.3 → letitloop-0.4.0}/docs/adr/0002-deterministic-verifiers.md +0 -0
  89. {letitloop-0.3.3 → letitloop-0.4.0}/docs/adr/0003-headless-cli-adapters.md +0 -0
  90. {letitloop-0.3.3 → letitloop-0.4.0}/docs/adr/0004-format-aware-acceptance-checks.md +0 -0
  91. {letitloop-0.3.3 → letitloop-0.4.0}/docs/adr/README.md +0 -0
  92. {letitloop-0.3.3 → letitloop-0.4.0}/docs/adr/template.md +0 -0
  93. {letitloop-0.3.3 → letitloop-0.4.0}/docs/auto_healing.md +0 -0
  94. {letitloop-0.3.3 → letitloop-0.4.0}/letitloop/conformance/__init__.py +0 -0
  95. {letitloop-0.3.3 → letitloop-0.4.0}/letitloop/conformance/adapters/__init__.py +0 -0
  96. {letitloop-0.3.3 → letitloop-0.4.0}/letitloop/conformance/adapters/atomic_wal_adapter.py +0 -0
  97. {letitloop-0.3.3 → letitloop-0.4.0}/letitloop/conformance/adapters/base.py +0 -0
  98. {letitloop-0.3.3 → letitloop-0.4.0}/letitloop/conformance/adapters/in_memory_adapter.py +0 -0
  99. {letitloop-0.3.3 → letitloop-0.4.0}/letitloop/conformance/adapters/letitloop_adapter.py +0 -0
  100. {letitloop-0.3.3 → letitloop-0.4.0}/letitloop/conformance/adapters/raw_python_adapter.py +0 -0
  101. {letitloop-0.3.3 → letitloop-0.4.0}/letitloop/conformance/adapters/snapshot_graph_adapter.py +0 -0
  102. {letitloop-0.3.3 → letitloop-0.4.0}/letitloop/conformance/adapters/unmanaged_script_adapter.py +0 -0
  103. {letitloop-0.3.3 → letitloop-0.4.0}/letitloop/conformance/harness/__init__.py +0 -0
  104. {letitloop-0.3.3 → letitloop-0.4.0}/letitloop/conformance/scenarios/__init__.py +0 -0
  105. {letitloop-0.3.3 → letitloop-0.4.0}/letitloop.egg-info/dependency_links.txt +0 -0
  106. {letitloop-0.3.3 → letitloop-0.4.0}/letitloop.egg-info/entry_points.txt +0 -0
  107. {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/SKILL.md +0 -0
  108. {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/__init__.py +0 -0
  109. {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/anti_ouroboros.py +0 -0
  110. {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/ast_node_splicer.py +0 -0
  111. {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/ast_splicer.py +0 -0
  112. {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/audit.py +0 -0
  113. {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/auto_healer.py +0 -0
  114. {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/budget.py +0 -0
  115. {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/checkpoint.py +0 -0
  116. {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/cloud_watchdog.py +0 -0
  117. {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/codebase_introspector.py +0 -0
  118. {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/component_slicer.py +0 -0
  119. {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/config.py +0 -0
  120. {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/contract.py +0 -0
  121. {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/dag_validator.py +0 -0
  122. {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/decorators.py +0 -0
  123. {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/elasticity_governor.py +0 -0
  124. {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/env_doctor.py +0 -0
  125. {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/errors.py +0 -0
  126. {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/events.py +0 -0
  127. {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/evidence.py +0 -0
  128. {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/exceptions.py +0 -0
  129. {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/failure.py +0 -0
  130. {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/fast_sandbox.py +0 -0
  131. {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/feasibility_gate.py +0 -0
  132. {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/feedback.py +0 -0
  133. {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/fixtures/__init__.py +0 -0
  134. {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/fixtures/example_contract.json +0 -0
  135. {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/fixtures/generated/evidence-cli-run-test-step-1.json +0 -0
  136. {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/fixtures/generated/evidence-cli-run-test-step-2.json +0 -0
  137. {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/fixtures/generated/evidence-inject-test-a.json +0 -0
  138. {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/fixtures/generated/evidence-inject-test-b.json +0 -0
  139. {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/fixtures/generated/evidence-inject-test-c.json +0 -0
  140. {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/fixtures/generated/evidence-json-test-a.json +0 -0
  141. {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/fixtures/generated/evidence-json-test-b.json +0 -0
  142. {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/fixtures/generated/fail-report-fail-task-1.json +0 -0
  143. {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/fixtures/generated/fail-report-json-task-1.json +0 -0
  144. {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/fixtures/generated/fail-report-success-task-1.json +0 -0
  145. {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/fixtures/generated/fuzz-engine-design.json +0 -0
  146. {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/fixtures/generated/fuzz-engine-impl.json +0 -0
  147. {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/fixtures/generated/fuzz-engine-tests.json +0 -0
  148. {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/fixtures/generated/fuzz-engine-verify.json +0 -0
  149. {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/fixtures/generated/goal-orch-step-1.json +0 -0
  150. {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/fixtures/generated/goal-orch-step-2.json +0 -0
  151. {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/fixtures/generated/goal-orch-step-3.json +0 -0
  152. {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/fixtures/generated/goal-orch-step-4.json +0 -0
  153. {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/fixtures/generated/goal-orch-step-5.json +0 -0
  154. {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/fixtures/generated/goal-orch-step-6.json +0 -0
  155. {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/fixtures/generated/implement-a-thread-safe-token-bucket-rat-task-1.json +0 -0
  156. {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/fixtures/generated/orchestrator-checkpoint-rollback-3.json +0 -0
  157. {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/fixtures/generated/orchestrator-checkpoint-rollback.json +0 -0
  158. {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/fixtures/generated/orchestrator-live-telemetry-2.json +0 -0
  159. {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/fixtures/generated/orchestrator-live-telemetry.json +0 -0
  160. {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/fixtures/generated/orchestrator-spec-synthesis-1.json +0 -0
  161. {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/fixtures/generated/orchestrator-spec-synthesis.json +0 -0
  162. {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/fixtures/generated/orchestrator-test-verification-4.json +0 -0
  163. {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/fixtures/generated/orchestrator-test-verification.json +0 -0
  164. {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/fixtures/generated/perf-step-1.json +0 -0
  165. {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/fixtures/generated/perf-step-2.json +0 -0
  166. {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/fixtures/generated/perf-step-3.json +0 -0
  167. {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/fixtures/generated/perf-step-4.json +0 -0
  168. {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/fixtures/generated/perf-step-5.json +0 -0
  169. {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/fixtures/generated/phase2-proof-two-step-step-1.json +0 -0
  170. {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/fixtures/generated/phase2-proof-two-step-step-2.json +0 -0
  171. {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/fixtures/generated/planner-spec-synthesis-impl.json +0 -0
  172. {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/fixtures/generated/self-evolution-ast-formatter.json +0 -0
  173. {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/fixtures/generated/self-evolution-checkpoint-rollback.json +0 -0
  174. {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/fixtures/generated/self-evolution-spec-synthesis.json +0 -0
  175. {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/fixtures/generated/self-evolution-step-1.json +0 -0
  176. {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/fixtures/generated/self-evolution-step-2.json +0 -0
  177. {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/fixtures/generated/self-evolution-step-3.json +0 -0
  178. {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/fixtures/generated/self-evolution-step-4.json +0 -0
  179. {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/fixtures/generated/self-evolution-step-5.json +0 -0
  180. {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/fixtures/generated/self-evolution-telemetry.json +0 -0
  181. {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/fixtures/generated/self-evolution-tests.json +0 -0
  182. {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/fixtures/generated/spec-telemetry-research-design.json +0 -0
  183. {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/fixtures/generated/spec-telemetry-step-1.json +0 -0
  184. {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/fixtures/generated/spec-telemetry-step-2.json +0 -0
  185. {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/fixtures/generated/spec-telemetry-step-3.json +0 -0
  186. {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/fixtures/generated/spec-telemetry-step-4.json +0 -0
  187. {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/fixtures/generated/spec-telemetry-step-5.json +0 -0
  188. {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/fixtures/generated/spec-telemetry-verification.json +0 -0
  189. {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/fixtures/generated/token-bucket-impl.json +0 -0
  190. {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/fixtures/generated/token-bucket-step-1.json +0 -0
  191. {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/fixtures/generated/token-bucket-step-2.json +0 -0
  192. {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/fixtures/generated/token-bucket-step-3.json +0 -0
  193. {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/fixtures/generated/token-bucket-tests.json +0 -0
  194. {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/fixtures/generated/token-bucket-verify.json +0 -0
  195. {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/fixtures/generated/trace-ux-tests-step-1.json +0 -0
  196. {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/fixtures/generated/trace-ux-tests-step-2.json +0 -0
  197. {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/fixtures/generated/trace-ux-tests-step-3.json +0 -0
  198. {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/fixtures/generated/tui-live-telemetry-impl.json +0 -0
  199. {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/fixtures/phase1_proof_escalation_contract.json +0 -0
  200. {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/fixtures/phase1_proof_happy_path_contract.json +0 -0
  201. {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/fixtures/phase1_proof_qc_contract.json +0 -0
  202. {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/fixtures/phase1_proof_repair_contract.json +0 -0
  203. {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/fixtures/phase2_proof_two_step_goal.json +0 -0
  204. {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/fixtures/run_proofs.py +0 -0
  205. {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/fixtures/test_normalizer.py +0 -0
  206. {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/generator.py +0 -0
  207. {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/goal.py +0 -0
  208. {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/handoff.py +0 -0
  209. {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/hybrid_worker.py +0 -0
  210. {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/impossibility.py +0 -0
  211. {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/limits.py +0 -0
  212. {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/live_evolution_engine.py +0 -0
  213. {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/llm.py +0 -0
  214. {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/local_tool_calling.py +0 -0
  215. {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/mcp_client.py +0 -0
  216. {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/memory_bridge.py +0 -0
  217. {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/metrics.py +0 -0
  218. {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/micro_epoch.py +0 -0
  219. {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/models.py +0 -0
  220. {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/parsing.py +0 -0
  221. {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/patch_applier.py +0 -0
  222. {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/plan_preview.py +0 -0
  223. {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/plan_quality.py +0 -0
  224. {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/planner.py +0 -0
  225. {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/preferences.py +0 -0
  226. {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/preflight.py +0 -0
  227. {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/process_guard.py +0 -0
  228. {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/prompts.py +0 -0
  229. {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/proposal_ledger.py +0 -0
  230. {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/provider_scheduler.py +0 -0
  231. {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/qc/__init__.py +0 -0
  232. {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/qc/aggregator.py +0 -0
  233. {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/qc/parsing.py +0 -0
  234. {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/qc/personas.py +0 -0
  235. {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/qc/runner.py +0 -0
  236. {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/qc_overrule.py +0 -0
  237. {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/qc_review.py +0 -0
  238. {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/quality_lenses.py +0 -0
  239. {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/quality_plan.py +0 -0
  240. {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/quality_plane.py +0 -0
  241. {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/receipts.py +0 -0
  242. {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/reconcile.py +0 -0
  243. {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/replanner.py +0 -0
  244. {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/research.py +0 -0
  245. {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/review_artifact.py +0 -0
  246. {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/safety.py +0 -0
  247. {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/schemas.py +0 -0
  248. {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/scope.py +0 -0
  249. {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/sensory_radar.py +0 -0
  250. {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/sse_server.py +0 -0
  251. {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/state.py +0 -0
  252. {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/subprocess_helper.py +0 -0
  253. {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/supervisor/__init__.py +0 -0
  254. {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/supervisor/_shared.py +0 -0
  255. {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/supervisor/cleanup.py +0 -0
  256. {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/supervisor/core.py +0 -0
  257. {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/supervisor/recovery.py +0 -0
  258. {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/supervisor/reporting.py +0 -0
  259. {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/surgical_extractor.py +0 -0
  260. {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/telemetry.py +0 -0
  261. {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/token_gate.py +0 -0
  262. {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/verifier.py +0 -0
  263. {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/webhooks.py +0 -0
  264. {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/worker.py +0 -0
  265. {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/worker_adapters.py +0 -0
  266. {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/worker_pool.py +0 -0
  267. {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/worktree.py +0 -0
  268. {letitloop-0.3.3 → letitloop-0.4.0}/requirements-ci.txt +0 -0
  269. {letitloop-0.3.3 → letitloop-0.4.0}/setup.cfg +0 -0
  270. {letitloop-0.3.3 → letitloop-0.4.0}/tests/__init__.py +0 -0
  271. {letitloop-0.3.3 → letitloop-0.4.0}/tests/fault_injection.py +0 -0
  272. {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_adversarial_audit.py +0 -0
  273. {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_agent_loop_profiles.py +0 -0
  274. {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_anti_ouroboros.py +0 -0
  275. {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_ast_comment_retention.py +0 -0
  276. {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_ast_node_splicer.py +0 -0
  277. {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_audit.py +0 -0
  278. {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_auto_healer.py +0 -0
  279. {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_benchmarks.py +0 -0
  280. {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_budget.py +0 -0
  281. {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_budget_enforcement_e2e.py +0 -0
  282. {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_checkpoint.py +0 -0
  283. {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_checkpoint_apply_e2e.py +0 -0
  284. {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_cli.py +0 -0
  285. {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_cli_doctor.py +0 -0
  286. {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_cli_failure_report.py +0 -0
  287. {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_cli_phase3.py +0 -0
  288. {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_cloud_watchdog.py +0 -0
  289. {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_codebase_introspector.py +0 -0
  290. {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_component_slicer.py +0 -0
  291. {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_config.py +0 -0
  292. {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_contract.py +0 -0
  293. {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_dag_validator.py +0 -0
  294. {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_docker_sandbox.py +0 -0
  295. {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_dryrun.py +0 -0
  296. {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_durable_async.py +0 -0
  297. {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_durable_decorator.py +0 -0
  298. {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_elasticity_governor.py +0 -0
  299. {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_engine_improvements.py +0 -0
  300. {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_errors.py +0 -0
  301. {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_event_wiring.py +0 -0
  302. {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_evidence_flow.py +0 -0
  303. {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_evidence_flow_cli.py +0 -0
  304. {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_evidence_ledger.py +0 -0
  305. {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_exception_containment.py +0 -0
  306. {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_failure.py +0 -0
  307. {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_fast_sandbox.py +0 -0
  308. {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_fault_injection.py +0 -0
  309. {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_fault_injection_adversarial.py +0 -0
  310. {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_feasibility_gate.py +0 -0
  311. {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_feedback.py +0 -0
  312. {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_generator.py +0 -0
  313. {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_goal.py +0 -0
  314. {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_handoff.py +0 -0
  315. {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_hardening_batch3.py +0 -0
  316. {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_hybrid_worker.py +0 -0
  317. {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_impossibility.py +0 -0
  318. {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_integration.py +0 -0
  319. {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_limits.py +0 -0
  320. {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_live_evolution.py +0 -0
  321. {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_live_evolution_feasibility.py +0 -0
  322. {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_live_proofs.py +0 -0
  323. {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_live_smoke.py +0 -0
  324. {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_local_tool_calling.py +0 -0
  325. {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_lock.py +0 -0
  326. {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_mcp_client.py +0 -0
  327. {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_mcp_concurrency.py +0 -0
  328. {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_memory_bridge.py +0 -0
  329. {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_metrics.py +0 -0
  330. {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_micro_epoch.py +0 -0
  331. {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_operator_controls.py +0 -0
  332. {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_parsing.py +0 -0
  333. {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_patch_applier.py +0 -0
  334. {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_performance_and_trace.py +0 -0
  335. {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_plan_gate.py +0 -0
  336. {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_plan_quality.py +0 -0
  337. {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_planner.py +0 -0
  338. {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_pr_verification_scenarios.py +0 -0
  339. {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_preflight.py +0 -0
  340. {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_process_guard.py +0 -0
  341. {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_prompts.py +0 -0
  342. {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_proof_receipt.py +0 -0
  343. {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_proposal_ledger.py +0 -0
  344. {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_provider_scheduler.py +0 -0
  345. {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_qc_overrule.py +0 -0
  346. {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_qc_paths.py +0 -0
  347. {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_qplane_fail_closed.py +0 -0
  348. {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_quality_plan.py +0 -0
  349. {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_quality_plane.py +0 -0
  350. {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_quality_spec_propagation.py +0 -0
  351. {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_recipes.py +0 -0
  352. {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_reconcile.py +0 -0
  353. {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_replan_evidence.py +0 -0
  354. {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_replanner.py +0 -0
  355. {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_replanner_integration_e2e.py +0 -0
  356. {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_research_providers.py +0 -0
  357. {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_retry_metadata.py +0 -0
  358. {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_review_artifact.py +0 -0
  359. {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_safety.py +0 -0
  360. {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_schemas.py +0 -0
  361. {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_scope.py +0 -0
  362. {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_sensory_radar.py +0 -0
  363. {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_state.py +0 -0
  364. {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_state_coverage_expansion.py +0 -0
  365. {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_subprocess_helper.py +0 -0
  366. {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_supervisor.py +0 -0
  367. {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_supervisor_resume.py +0 -0
  368. {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_surgical_slicing.py +0 -0
  369. {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_telemetry.py +0 -0
  370. {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_token_gate.py +0 -0
  371. {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_unit_expansion.py +0 -0
  372. {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_v032_remediation.py +0 -0
  373. {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_verifier.py +0 -0
  374. {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_verifier_ast_fuzz.py +0 -0
  375. {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_verifier_hardening.py +0 -0
  376. {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_wal_corruption_recovery.py +0 -0
  377. {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_wal_v2_checksums.py +0 -0
  378. {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_webhooks.py +0 -0
  379. {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_worker.py +0 -0
  380. {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_worker_adapters.py +0 -0
  381. {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_worker_adapters_extended.py +0 -0
  382. {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_worker_escaping.py +0 -0
  383. {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_worker_pool.py +0 -0
  384. {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_worktree.py +0 -0
  385. {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_worktree_sandbox.py +0 -0
@@ -0,0 +1,106 @@
1
+ name: DCP-2.0 Nightly Benchmark — Conformance Moat & Leaderboard
2
+
3
+ on:
4
+ schedule:
5
+ - cron: "0 3 * * *"
6
+ workflow_dispatch:
7
+ push:
8
+ branches: [main]
9
+ paths:
10
+ - "letitloop/conformance/**"
11
+ - "orchestrator/**"
12
+ - ".github/workflows/benchmark.yml"
13
+
14
+ permissions:
15
+ contents: read
16
+
17
+ jobs:
18
+ benchmark:
19
+ runs-on: ubuntu-latest
20
+ timeout-minutes: 15
21
+ permissions:
22
+ contents: read
23
+ steps:
24
+ - name: Checkout
25
+ uses: actions/checkout@v4
26
+ with:
27
+ persist-credentials: false
28
+
29
+ - name: Setup Python 3.11
30
+ uses: actions/setup-python@v5
31
+ with:
32
+ python-version: "3.11"
33
+ cache: "pip"
34
+
35
+ - name: Install
36
+ run: |
37
+ python -m pip install --upgrade pip
38
+ pip install -e ".[dev]"
39
+ pip install pytest pytest-benchmark pytest-xdist
40
+
41
+ - name: Run DCP-2.0 matrix — bench compare all
42
+ run: |
43
+ python -m letitloop.conformance.harness.runner --compare all --export-json results/leaderboard.json --export-markdown docs/benchmark.md
44
+ cat results/leaderboard.json | head -100
45
+
46
+ - name: Generate SVG badges + HTML report
47
+ run: |
48
+ python -c "
49
+ import json, pathlib
50
+ from letitloop.conformance.reporter import write_badges, write_html_report
51
+ data=json.loads(pathlib.Path('results/leaderboard.json').read_text())
52
+ write_badges(data, out_dir='docs/badges')
53
+ write_html_report('docs/bench/index.html', data)
54
+ print('Badges + HTML generated')
55
+ "
56
+ ls -la docs/badges/ || true
57
+ ls -la docs/bench/ || true
58
+
59
+ - name: Upload leaderboard artifact
60
+ uses: actions/upload-artifact@v4
61
+ with:
62
+ name: dcp-leaderboard
63
+ path: |
64
+ results/leaderboard.json
65
+ docs/badges/
66
+ docs/bench/
67
+
68
+ deploy:
69
+ if: github.ref == 'refs/heads/main' && github.event_name != 'pull_request'
70
+ needs: benchmark
71
+ runs-on: ubuntu-latest
72
+ permissions:
73
+ pages: write
74
+ id-token: write
75
+ contents: read
76
+ environment:
77
+ name: github-pages
78
+ url: ${{ steps.deployment.outputs.page_url }}bench/
79
+ steps:
80
+ - name: Checkout
81
+ uses: actions/checkout@v4
82
+
83
+ - name: Download leaderboard
84
+ uses: actions/download-artifact@v4
85
+ with:
86
+ name: dcp-leaderboard
87
+ path: _site_src
88
+
89
+ - name: Prepare Pages site
90
+ run: |
91
+ mkdir -p _site/bench
92
+ cp -r _site_src/docs/bench/* _site/bench/ 2>/dev/null || cp _site_src/results/leaderboard.json _site/bench/ 2>/dev/null || true
93
+ cp -r _site_src/docs/badges _site/ 2>/dev/null || true
94
+ ls -la _site/bench/ || true
95
+
96
+ - name: Setup Pages
97
+ uses: actions/configure-pages@v5
98
+
99
+ - name: Upload Pages artifact
100
+ uses: actions/upload-pages-artifact@v3
101
+ with:
102
+ path: _site
103
+
104
+ - name: Deploy to GitHub Pages
105
+ id: deployment
106
+ uses: actions/deploy-pages@v4
@@ -0,0 +1,84 @@
1
+ name: LetItLoop Proof-Carrying Verification Gate v2 (DCP-2.0 + LILWAL02)
2
+
3
+ # Canonical example workflow template — copy to your repo as .github/workflows/letitloop-verify.yml
4
+ # Billboard: every PR gets a cryptographic LetItLoop durability certificate in <2.5s (fail-closed)
5
+
6
+ on:
7
+ pull_request:
8
+ branches: [main, master]
9
+ push:
10
+ branches: [main]
11
+
12
+ # Top-level least-privilege: no write by default (10/10 OpenSSF Scorecard)
13
+ permissions:
14
+ contents: read
15
+
16
+ jobs:
17
+ verify:
18
+ runs-on: ubuntu-latest
19
+ timeout-minutes: 10
20
+ # Job-level least-privilege (Scorecard: pin permissions per job)
21
+ permissions:
22
+ contents: read
23
+ pull-requests: write
24
+ steps:
25
+ - name: Checkout code
26
+ uses: actions/checkout@v4
27
+ with:
28
+ persist-credentials: false
29
+
30
+ # actions/setup-python v5
31
+ - name: Set up Python 3.11
32
+ uses: actions/setup-python@v5 # v5.3.0
33
+ with:
34
+ python-version: "3.11"
35
+ cache: "pip"
36
+
37
+ - name: Install LetItLoop (for AST/WAL bridge)
38
+ run: |
39
+ python -m pip install --upgrade pip
40
+ pip install -e ".[dev]"
41
+
42
+ # Fast lint + test still run before gate (optional but recommended)
43
+ - name: Ruff lint (0 errors)
44
+ run: python -m ruff check .
45
+
46
+ - name: Pytest (fast, <60s)
47
+ run: python -m pytest -q --durations=10
48
+
49
+ # ─────────────────────────────────────────────────────────────
50
+ # LetItLoop Action v2 — zero-dependency, single dist/index.js
51
+ # In this repo we use the local path. In your repo use the
52
+ # Marketplace pin (example below, replace SHA with release SHA):
53
+ #
54
+ # - uses: sdageltc/letitloop/letitloop-action@8b7f1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d7e8f # v2.0.0
55
+ # with:
56
+ # token: ${{ secrets.GITHUB_TOKEN }}
57
+ # wal-dir: .bench_wal
58
+ # workspace: .
59
+ # fail-closed: "true"
60
+ # ─────────────────────────────────────────────────────────────
61
+ - name: LetItLoop Gate v2 — AST + WAL + HMAC Proof (fail-closed <2.5s)
62
+ uses: ./letitloop-action
63
+ id: gate
64
+ with:
65
+ token: ${{ secrets.GITHUB_TOKEN }}
66
+ wal-dir: ".bench_wal"
67
+ workspace: "."
68
+ fail-closed: "true"
69
+ comment: "true"
70
+
71
+ - name: Gate outputs (proof binding)
72
+ if: always()
73
+ run: |
74
+ echo "verified=${{ steps.gate.outputs.verified }}"
75
+ echo "proof-id=${{ steps.gate.outputs.proof-id }}"
76
+ echo "ast-verdict=${{ steps.gate.outputs.ast-verdict }}"
77
+ echo "wal-verdict=${{ steps.gate.outputs.wal-verdict }}"
78
+
79
+ # Optional: keep DCP bench as separate artifact (not required for <2.5s gate)
80
+ - name: DCP-2.0 Conformance Moat — bench compare all (optional, not in gate budget)
81
+ if: always()
82
+ run: |
83
+ python -m letitloop.conformance.harness.runner --compare all || true
84
+ cat results/leaderboard.json || cat docs/leaderboard.json || true
@@ -24,7 +24,7 @@ jobs:
24
24
  - name: Install LetItLoop
25
25
  run: |
26
26
  pip install -e .
27
- pip install pytest pytest-benchmark
27
+ pip install pytest pytest-benchmark pytest-xdist
28
28
 
29
29
  - name: Run PR Benchmarks
30
30
  id: bench
@@ -5,6 +5,29 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
5
5
 
6
6
  ---
7
7
 
8
+ ## [0.3.3] - 2026-08-26
9
+
10
+ ### Added
11
+ - **LILWAL02 Checksummed WAL v2** (`orchestrator/state.py`): `\nLILWAL02:<len_hex>:<crc32_hex>:<payload>\n` with `zlib.crc32`, byte-accurate torn-tail `truncate(good_end)` + `fsync`, mid-file fail-closed; 8 tests `tests/test_wal_v2_checksums.py`
12
+ - **Native Async Durability** (`orchestrator/decorators.py`): `@durable_async` + `await async_step()` via `contextvars.ContextVar` + `asyncio.Lock`, fast-forward <1ms; 7 tests `tests/test_durable_async.py`
13
+ - **DCP-2.0 Conformance Moat** (`letitloop/conformance/`): harness 4 kill windows (PROMPT/EXEC/WRITE/VERIFY), real `subprocess.Popen` + `SIGKILL`/`taskkill`, adapters for `letitloop`/`langgraph`/`crewai`/`autogen`/`unmanaged`, scenarios DCP-001..004; CLI `lil bench --compare all` / `lil bench --scenario DCP-002` with JSON receipts (`T_resume`, `W_token`, `C_fail`)
14
+ - **500-Cycle Chaos Gate** (`scripts/chaos_fuzzer_v2.py`): 20 parallel sync+async workflows, random kills, 0 corrupted WALs / 0 state loss (80.18s)
15
+ - **Security Hardening**: sandbox `target_path` (`..` reject) + scenario whitelist `DCP-001..004` in `conformance/harness`
16
+ - **Extensive Plan**: `docs/plans/2026-08-26-vital-fixes-plus-real-bridges.md` (P0-P2 + A-D)
17
+
18
+ ### Fixed
19
+ - **Silent failures surfaced**: WAL truncate and `DurableContext.close` no longer swallow `OSError`/`Exception`; `chaos_fuzzer` `shutil` import fixed
20
+ - **60s invariant**: `results/` + `.bench_wal/` now gitignored, scorecard moved to `docs/V033_SCORECARD.md`, `pytest --durations=10`
21
+ - **Bench Moat**: `conformance/harness/runner.py` PYTHONPATH fix (`parents[3]`), DCP-2.0 markdown export, `lil` entrypoint `pip install -e .`
22
+
23
+ ### Changed
24
+ - `tests/test_hardening_batch3.py` now LILWAL02-aware; `1464 passed, 4 skipped` in `59.18s`
25
+
26
+ ## [0.3.2] - 2026-08-23
27
+
28
+ ### Fixed
29
+ - Clean conflict markers, verify 1449/1449 test suite pass (audit closeout)
30
+
8
31
  ## [0.1.0] - 2026-08-17
9
32
 
10
33
  ### 🚀 Added
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: letitloop
3
- Version: 0.3.3
3
+ Version: 0.4.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
@@ -27,6 +27,7 @@ Description-Content-Type: text/markdown
27
27
  License-File: LICENSE
28
28
  Requires-Dist: pyyaml>=6.0
29
29
  Requires-Dist: jsonschema>=4.0.0
30
+ Requires-Dist: psutil>=5.9.0
30
31
  Provides-Extra: dev
31
32
  Requires-Dist: pytest>=7.0; extra == "dev"
32
33
  Requires-Dist: pytest-cov>=4.0; extra == "dev"
@@ -0,0 +1,78 @@
1
+ # LetItLoop MCP Setup — Universal IDE Durability Server
2
+
3
+ The LetItLoop MCP server (`orchestrator/mcp_server.py` / `letitloop/mcp`) exposes durable checkpointing to any MCP-compatible IDE (Cursor, Windsurf, Claude Code, Cline) with **zero code changes**.
4
+
5
+ ## Tools Exposed
6
+
7
+ | Tool | Purpose | Idempotent on `requestId` | Jailed |
8
+ |---|---|---|---|
9
+ | `durable_step(step_id, payload, wal_dir, goal_id)` | Echo step via `@durable_async` — survives `SIGKILL` (LILWAL02 CRC) | ✅ | WAL dir jailed |
10
+ | `checkpoint_state(goal_id, payload, wal_dir)` | Writes atomic `LILWAL02` frame | ✅ | ✅ |
11
+ | `rollback_ast(file_path, backup_ref)` | Safely restores AST node without corrupting surrounding code | ✅ | ✅ |
12
+ | `verify_scope(file_path, allowed_patterns)` | Checks if modification violated `allowed_patterns` | — | ✅ |
13
+ | `emit_receipt(goal_id, wal_dir)` | Generates HMAC-sealed `proof_*.json` + `.sig` | ✅ | ✅ |
14
+ | `bench_compare(scenario)` | Runs single DCP-2.0 scenario | — | — |
15
+ | `wal_verify(wal_path)` | Verifies LILWAL02 CRC per frame | — | ✅ |
16
+
17
+ - **Reconnect resilience**: re-sending the same `requestId` fast-forwards from WAL without duplicate side effects.
18
+ - **Workspace jailing**: any path outside `CWD` (or `LETITLOOP_WORKTREES` / `LETITLOOP_WORKSPACE_ROOT`) fails closed with `SecurityError`.
19
+
20
+ ## Cursor
21
+
22
+ `.cursor/mcp.json`:
23
+
24
+ ```json
25
+ {
26
+ "mcpServers": {
27
+ "letitloop": {
28
+ "command": "python",
29
+ "args": ["-m", "orchestrator.mcp_server"],
30
+ "env": {}
31
+ }
32
+ }
33
+ }
34
+ ```
35
+
36
+ ## Windsurf / Cline / Claude Desktop
37
+
38
+ `mcp_settings.json` or `.vscode/settings.json`:
39
+
40
+ ```json
41
+ {
42
+ "mcp": {
43
+ "servers": {
44
+ "letitloop": {
45
+ "command": "python",
46
+ "args": ["-m", "letitloop.mcp"],
47
+ "cwd": "/path/to/your/repo"
48
+ }
49
+ }
50
+ }
51
+ }
52
+ ```
53
+
54
+ ## CLI
55
+
56
+ ```bash
57
+ # stdio (default, for inspector)
58
+ python -m orchestrator.mcp_server
59
+ python -m letitloop.mcp
60
+
61
+ # via lil
62
+ lil mcp
63
+ # → {"status":"shim","tools":["durable_step","checkpoint_state",...]} when `mcp` SDK absent
64
+
65
+ # inspector
66
+ npx @modelcontextprotocol/inspector python -m orchestrator.mcp_server
67
+ # Then call: durable_step, checkpoint_state, rollback_ast, verify_scope, emit_receipt
68
+ ```
69
+
70
+ ## Testing
71
+
72
+ ```bash
73
+ pytest tests/test_mcp_server.py -q # 4 tests, ~1s (fast)
74
+ ```
75
+
76
+ ## Security
77
+
78
+ All file arguments are resolved and checked with `Path.resolve().relative_to(WORKSPACE_ROOT)` — symlink swaps and `..` traversal are rejected with `SecurityError` (fail-closed). Declare extra worktrees via `LETITLOOP_WORKTREES=/tmp/wt1:/tmp/wt2`.
@@ -0,0 +1,184 @@
1
+ # LetItLoop v0.3.3 Master Sprint — Scorecard
2
+
3
+ **Branch:** `feat/v033-conformance-wal2-async`
4
+ **Commit:** `feat(v0.3.3): conformance moat, LILWAL02 checksums, and async durable engine`
5
+ **Date:** 2026-08-26
6
+ **Invariant:** 1464 tests passed, 4 skipped, 0 failed; `ruff check .` = 0 errors; `pytest -q` = 59.18s (<60s on clean run)
7
+
8
+ ---
9
+
10
+ ## 1. Pre vs Post Metrics
11
+
12
+ | Dimension | pre-v0.3.3 | post-v0.3.3 | Delta |
13
+ |---|---|---|---|
14
+ | **WAL persistence** | Plain JSONL (`_canonical(event)+"\n"`), no checksum, torn-tail rewritten via `_canonical` (lossy for framed files) | **LILWAL02** framed: `\nLILWAL02:<len_hex>:<crc32_hex>:<canonical_json>\n`, `zlib.crc32`; torn-tail truncated via byte-accurate `r+b truncate(good_end)` + audit flag `wal_torn_tail_recovered` | + integrity, + crash atomicity |
15
+ | **WAL replay** | `json.loads` per line, last-line corrupt → rewrite with `_canonical` (downgrades frames) | `_wal_decode_line` validates CRC+length, `all(not ln.strip() for ln in tail)` tail detection, mid-file CRC → `StateError` fail-closed, tail → truncate to last `good_end` | + tamper detection |
16
+ | **Conformance harness** | `conformance/` top-level only, DCP-1.0 synthetic, hardcoded `W_token=0.0` simulation | **`letitloop/conformance/`** subpackage (`harness/`, `adapters/`, `scenarios/DCP-001..004`), DCP-2.0 4 kill windows (PROMPT/EXEC/WRITE/VERIFY), real `T_resume`, `W_token`, `C_fail` via `time.perf_counter()` + `PhaseSentinelWatcher`/`ProcessLifecycleGuard` (real `subprocess.Popen` + `os.kill`/`taskkill /F /T`) | + zero-mock, + moat |
17
+ | **CLI** | `lil bench --framework letitloop` (single) | `lil bench --compare all` → DCP-2.0 matrix (4×4 receipts) + `lil bench --scenario DCP-002` → structured JSON receipt (`T_resume_ms`, `W_token_pct`, `C_fail`, `kill_window`) | + entrypoints |
18
+ | **Async durability** | Only sync `@durable` / `step()` with `threading.local()` | **Native async** `@durable_async` + `await async_step()` using `contextvars.ContextVar` isolation, `asyncio.Lock` per-workflow, fast-forward <1ms without invoking `async_fn` (verified <500ms on Win including fsync) | + concurrency |
19
+ | **Chaos gate** | No 500-iteration gate | `scripts/chaos_fuzzer_v2.py`: 20 parallel sync+async workflows, random `os.kill`/`taskkill` across 500 cycles, 129 kills injected, 0 corrupted WALs, 0 state loss | + durability proof |
20
+ | **Test count** | 1449 passed | **1464 passed** (+15: 8 WAL v2 +7 async) | + coverage |
21
+ | **Ruff** | 0 errors (after fix) | 0 errors | = |
22
+
23
+ ---
24
+
25
+ ## 2. DCP-2.0 Conformance Moat — Real Measured Receipts
26
+
27
+ **Command:** `lil bench --compare all` (also `python -m letitloop.conformance.harness.runner --compare all`)
28
+ **Methodology:** Physical OS subprocess fault injection (`SIGKILL` / `taskkill /F /T`), 4 kill windows, synthetic FILE_WRITE harness with real WAL
29
+
30
+ **Leaderboard (results/leaderboard.json):**
31
+
32
+ | Rank | Archetype | Recovery | Avg W_token | Avg T_resume | Total C_fail |
33
+ |---|---|---|---|---|---|
34
+ | 1 | Atomic WAL Engine (LetItLoop / Temporal) | 100.0% | 0.0% | 30.46 ms | 0 |
35
+ | 2 | Periodic Snapshot Graph (LangGraph / Pregel) | 100.0% | 14.5% | 50.91 ms | 0 |
36
+ | 3 | In-Memory Event Loop (AutoGen / CrewAI) | 0.0% | 100.0% | 0.0 ms | 4 |
37
+ | 4 | Unmanaged Script Execution (Raw Python CLI) | 0.0% | 100.0% | 0.0 ms | 4 |
38
+
39
+ **Single-scenario receipt (DCP-002 EXEC, letitloop):**
40
+ ```json
41
+ {
42
+ "protocol_version": "DCP-2.0",
43
+ "scenario_id": "DCP-002-MID_ACTION",
44
+ "kill_window": "EXEC",
45
+ "framework": "atomic_wal",
46
+ "T_resume_ms": 32.51,
47
+ "W_token_pct": 0.0,
48
+ "C_fail": 0,
49
+ "resumed_successfully": true,
50
+ "final_verdict": "PASS"
51
+ }
52
+ ```
53
+ Verified via:
54
+ - `lil bench --scenario DCP-002` → JSON receipt (stdout + `results/leaderboard.json`)
55
+ - `python -m letitloop.conformance.harness.runner --scenario DCP-002 --framework letitloop`
56
+
57
+ Zero-mock proof: `conformance/adapters/*.py` and `letitloop/conformance/adapters/*.py` use `subprocess.Popen(..., stdout=PIPE)` + `ProcessLifecycleGuard.inject_kill()` → `os.kill(pid, SIGKILL)` (POSIX) / `taskkill /F /T /PID` (Windows), `PhaseSentinelWatcher.wait_for_phase()` on `[PHASE_READY]` / `[KILL_POINT_REACHED]`.
58
+
59
+ ---
60
+
61
+ ## 3. LILWAL02 Checksummed Frame Engine
62
+
63
+ **Format:** `\nLILWAL02:<length_hex>:<crc32_hex>:<canonical_json_payload>\n`
64
+ **Impl:** `orchestrator/state.py:108-153` (`_WAL_FRAME_PREFIX`, `_WalFrameError`, `_wal_frame_encode`, `_wal_decode_line`); `State._append_wal` writes frames; `replay_wal` decodes with byte-offset truncation (`good_end` + `r+b truncate` + `fsync`)
65
+
66
+ **Tests — `tests/test_wal_v2_checksums.py` (8 tests, all passing):**
67
+ - `test_wal_frames_written_in_lilwal02_format`
68
+ - `test_roundtrip_recovery`
69
+ - `test_torn_frame_truncated_on_load` (partial frame → truncated, `wal_torn_tail_recovered` flag)
70
+ - `test_crc_mismatch_tail_truncated` (CRC mismatch tail → truncated to previous valid)
71
+ - `test_crc_mismatch_mid_file_fails_closed` (mid-file CRC → `StateError`)
72
+ - `test_legacy_plain_jsonl_still_loads`
73
+ - `test_mixed_legacy_and_frames`
74
+ - `test_length_hex_mismatch_fails_or_truncates_tail`
75
+
76
+ Backward compat: legacy plain JSONL lines still decode via `json.loads` fallback; mixed files replay correctly. Tamper test in `test_hardening_batch3.py` patched to be LILWAL02-aware (extracts payload after header).
77
+
78
+ ---
79
+
80
+ ## 4. Native Async `@durable_async` & `async_step()`
81
+
82
+ **Impl:** `orchestrator/decorators.py`
83
+ - `contextvars.ContextVar` (`_ASYNC_CONTEXT_VAR`) for task-local isolation across `asyncio.gather()`
84
+ - `DurableAsyncContext` with `asyncio.Lock`, `initialize()`/`close()` mirroring sync `DurableContext`
85
+ - `async def async_step(step_id, async_fn, *args, **kwargs)` — fast path returns `completed_steps[step_id]` without `await` or lock (<5ms verified)
86
+ - `def durable_async(goal_id, wal_dir)` — decorator sets ContextVar token, `await fn()`, resets token
87
+
88
+ **Tests — `tests/test_durable_async.py` (7 tests, all passing):**
89
+ - `test_durable_async_basic_roundtrip` (executes then fast-forwards 0 invocations, <500ms)
90
+ - `test_async_step_fast_forward_under_1ms` (`never_call` not invoked, <5ms)
91
+ - `test_async_contextvar_isolation_via_gather` (2 concurrent workflows, isolated wal_dirs)
92
+ - `test_async_steps_concurrent_within_workflow` (`gather` of two `async_step` within same workflow)
93
+ - `test_async_step_outside_context_warns_and_executes`
94
+ - `test_durable_async_serialization_dataclass`
95
+ - `test_async_step_non_serializable_raises`
96
+
97
+ ---
98
+
99
+ ## 5. 500-Iteration Chaos Kill-Gate
100
+
101
+ **Script:** `scripts/chaos_fuzzer_v2.py`
102
+
103
+ **Design:**
104
+ - 20 parallel workflows per batch (10 sync `@durable` + 10 async `@durable_async`), each 3-step `{"v": n}` with 10ms sleeps, real `subprocess.Popen(sys.executable, "-c", code)` + `os.kill`/`taskkill`
105
+ - Random kill 30% per batch across 4 windows (PROMPT/EXEC/WRITE/VERIFY), 25 batches × 20 = 500 cycles, seed `0xC0FFEE`
106
+ - Post-batch verification: `_check_wal_integrity` via `_wal_decode_line` CRC per line + `load_state` replay; counts `corrupted_wals`, `state_losses`
107
+
108
+ **Last full run (500 cycles, 80.18s):**
109
+ ```json
110
+ {
111
+ "cycles": 500,
112
+ "workers": 20,
113
+ "batches": 25,
114
+ "killed": 129,
115
+ "completed": 500,
116
+ "corrupted_wals": 0,
117
+ "state_losses": 0,
118
+ "zero_state_loss": true,
119
+ "zero_corrupted": true,
120
+ "elapsed_seconds": 80.18,
121
+ "success": true
122
+ }
123
+ ```
124
+ **Small gate (100 cycles, 14.69s) for CI smoke:**
125
+ ```json
126
+ {
127
+ "cycles": 100,
128
+ "workers": 20,
129
+ "batches": 5,
130
+ "killed": 24,
131
+ "completed": 100,
132
+ "corrupted_wals": 0,
133
+ "state_losses": 0,
134
+ "success": true
135
+ }
136
+ ```
137
+ **Invocation:**
138
+ ```bash
139
+ python scripts/chaos_fuzzer_v2.py --cycles 500 --workers 20 --report results/chaos_report.json
140
+ # also: python scripts/chaos_fuzzer_v2.py --cycles 100 --workers 20 # CI smoke (<60s)
141
+ ```
142
+ All WALs remain valid LILWAL02 frames; torn tails truncated atomically; no data loss.
143
+
144
+ ---
145
+
146
+ ## 6. Verification
147
+
148
+ ```bash
149
+ python -m ruff check . # All checks passed!
150
+ python -m pytest -q # 1464 passed, 4 skipped, 0 failed
151
+ python -m pytest -q # 59.18s on Windows (clean .bench_wal) — under 60s threshold after cleanup
152
+ python -m letitloop.conformance.harness.runner --compare all # DCP-2.0 leaderboard
153
+ python -m letitloop.conformance.harness.runner --scenario DCP-002 # JSON receipt
154
+ lil bench --compare all # same via CLI
155
+ lil bench --scenario DCP-002 # same via CLI
156
+ python scripts/chaos_fuzzer_v2.py --cycles 100 --workers 20 # gate
157
+ ```
158
+
159
+ **Files changed (core):**
160
+ - `orchestrator/state.py` — LILWAL02
161
+ - `orchestrator/decorators.py` — async
162
+ - `orchestrator/cli.py` — DCP-2.0 bench entrypoints
163
+ - `letitloop/conformance/` — new subpackage (harness/runner DCP-2.0, adapters, scenarios)
164
+ - `tests/test_wal_v2_checksums.py` — 8 tests
165
+ - `tests/test_durable_async.py` — 7 tests
166
+ - `tests/test_hardening_batch3.py` — LILWAL02-aware tamper test
167
+ - `scripts/chaos_fuzzer_v2.py` — 500-cycle gate
168
+
169
+ **Git:** `feat/v033-conformance-wal2-async` off `origin/main`, author `sdageltc <sdageltc@users.noreply.github.com>`, invariant preserved.
170
+
171
+ ---
172
+
173
+ ## 7. How to Reproduce
174
+
175
+ ```bash
176
+ git checkout feat/v033-conformance-wal2-async
177
+ python -m ruff check .
178
+ python -m pytest -q # expect 1464 passed, 4 skipped
179
+ lil bench --compare all # writes results/leaderboard.json + markdown
180
+ lil bench --scenario DCP-002 # prints DCP-002 receipt
181
+ python scripts/chaos_fuzzer_v2.py --cycles 500 --workers 20
182
+ ```
183
+
184
+ Receipts are structured JSON with `T_resume_ms` (real), `W_token_pct` (real), `C_fail`, `kill_window`.