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.
- {letitloop-0.6.0 → letitloop-0.7.0}/.github/workflows/ci.yml +2 -2
- {letitloop-0.6.0 → letitloop-0.7.0}/CHANGELOG.md +14 -0
- {letitloop-0.6.0 → letitloop-0.7.0}/PKG-INFO +13 -42
- {letitloop-0.6.0 → letitloop-0.7.0}/README.md +5 -7
- {letitloop-0.6.0 → letitloop-0.7.0}/letitloop/__init__.py +1 -1
- {letitloop-0.6.0 → letitloop-0.7.0}/letitloop.egg-info/PKG-INFO +13 -42
- letitloop-0.7.0/letitloop.egg-info/SOURCES.txt +127 -0
- letitloop-0.7.0/letitloop.egg-info/requires.txt +14 -0
- letitloop-0.7.0/orchestrator/__init__.py +47 -0
- letitloop-0.7.0/orchestrator/cli.py +361 -0
- {letitloop-0.6.0 → letitloop-0.7.0}/orchestrator/decorators.py +44 -13
- {letitloop-0.6.0 → letitloop-0.7.0}/orchestrator/state.py +42 -18
- letitloop-0.7.0/orchestrator/supervisor/__init__.py +15 -0
- {letitloop-0.6.0 → letitloop-0.7.0}/pyproject.toml +16 -48
- {letitloop-0.6.0 → letitloop-0.7.0}/tests/test_cookbooks.py +48 -0
- {letitloop-0.6.0 → letitloop-0.7.0}/tests/test_durable_decorator.py +41 -0
- {letitloop-0.6.0 → letitloop-0.7.0}/tests/test_lock.py +0 -55
- {letitloop-0.6.0 → letitloop-0.7.0}/tests/test_process_guard.py +0 -51
- letitloop-0.6.0/letitloop.egg-info/SOURCES.txt +0 -387
- letitloop-0.6.0/letitloop.egg-info/requires.txt +0 -47
- letitloop-0.6.0/orchestrator/SKILL.md +0 -292
- letitloop-0.6.0/orchestrator/__init__.py +0 -147
- letitloop-0.6.0/orchestrator/anti_ouroboros.py +0 -95
- letitloop-0.6.0/orchestrator/ast_node_splicer.py +0 -125
- letitloop-0.6.0/orchestrator/ast_splicer.py +0 -94
- letitloop-0.6.0/orchestrator/audit.py +0 -94
- letitloop-0.6.0/orchestrator/auto_healer.py +0 -207
- letitloop-0.6.0/orchestrator/budget.py +0 -195
- letitloop-0.6.0/orchestrator/checkpoint.py +0 -251
- letitloop-0.6.0/orchestrator/cli.py +0 -2622
- letitloop-0.6.0/orchestrator/cloud_watchdog.py +0 -149
- letitloop-0.6.0/orchestrator/codebase_introspector.py +0 -66
- letitloop-0.6.0/orchestrator/component_slicer.py +0 -185
- letitloop-0.6.0/orchestrator/config.py +0 -152
- letitloop-0.6.0/orchestrator/contract.py +0 -404
- letitloop-0.6.0/orchestrator/crypto.py +0 -213
- letitloop-0.6.0/orchestrator/dag_validator.py +0 -172
- letitloop-0.6.0/orchestrator/dashboard_bridge.py +0 -120
- letitloop-0.6.0/orchestrator/env_doctor.py +0 -178
- letitloop-0.6.0/orchestrator/errors.py +0 -211
- letitloop-0.6.0/orchestrator/events.py +0 -120
- letitloop-0.6.0/orchestrator/evidence.py +0 -203
- letitloop-0.6.0/orchestrator/failure.py +0 -226
- letitloop-0.6.0/orchestrator/fast_sandbox.py +0 -126
- letitloop-0.6.0/orchestrator/feasibility_gate.py +0 -115
- letitloop-0.6.0/orchestrator/feedback.py +0 -302
- letitloop-0.6.0/orchestrator/fixtures/example_contract.json +0 -50
- letitloop-0.6.0/orchestrator/fixtures/generated/evidence-cli-run-test-step-1.json +0 -47
- letitloop-0.6.0/orchestrator/fixtures/generated/evidence-cli-run-test-step-2.json +0 -47
- letitloop-0.6.0/orchestrator/fixtures/generated/evidence-inject-test-a.json +0 -47
- letitloop-0.6.0/orchestrator/fixtures/generated/evidence-inject-test-b.json +0 -47
- letitloop-0.6.0/orchestrator/fixtures/generated/evidence-inject-test-c.json +0 -47
- letitloop-0.6.0/orchestrator/fixtures/generated/evidence-json-test-a.json +0 -47
- letitloop-0.6.0/orchestrator/fixtures/generated/evidence-json-test-b.json +0 -47
- letitloop-0.6.0/orchestrator/fixtures/generated/fail-report-fail-task-1.json +0 -47
- letitloop-0.6.0/orchestrator/fixtures/generated/fail-report-json-task-1.json +0 -47
- letitloop-0.6.0/orchestrator/fixtures/generated/fail-report-success-task-1.json +0 -47
- letitloop-0.6.0/orchestrator/fixtures/generated/fuzz-engine-design.json +0 -63
- letitloop-0.6.0/orchestrator/fixtures/generated/fuzz-engine-impl.json +0 -62
- letitloop-0.6.0/orchestrator/fixtures/generated/fuzz-engine-tests.json +0 -62
- letitloop-0.6.0/orchestrator/fixtures/generated/fuzz-engine-verify.json +0 -62
- letitloop-0.6.0/orchestrator/fixtures/generated/goal-orch-step-1.json +0 -63
- letitloop-0.6.0/orchestrator/fixtures/generated/goal-orch-step-2.json +0 -62
- letitloop-0.6.0/orchestrator/fixtures/generated/goal-orch-step-3.json +0 -62
- letitloop-0.6.0/orchestrator/fixtures/generated/goal-orch-step-4.json +0 -62
- letitloop-0.6.0/orchestrator/fixtures/generated/goal-orch-step-5.json +0 -62
- letitloop-0.6.0/orchestrator/fixtures/generated/goal-orch-step-6.json +0 -63
- letitloop-0.6.0/orchestrator/fixtures/generated/implement-a-thread-safe-token-bucket-rat-task-1.json +0 -53
- letitloop-0.6.0/orchestrator/fixtures/generated/orchestrator-checkpoint-rollback-3.json +0 -63
- letitloop-0.6.0/orchestrator/fixtures/generated/orchestrator-checkpoint-rollback.json +0 -62
- letitloop-0.6.0/orchestrator/fixtures/generated/orchestrator-live-telemetry-2.json +0 -62
- letitloop-0.6.0/orchestrator/fixtures/generated/orchestrator-live-telemetry.json +0 -62
- letitloop-0.6.0/orchestrator/fixtures/generated/orchestrator-spec-synthesis-1.json +0 -62
- letitloop-0.6.0/orchestrator/fixtures/generated/orchestrator-spec-synthesis.json +0 -62
- letitloop-0.6.0/orchestrator/fixtures/generated/orchestrator-test-verification-4.json +0 -62
- letitloop-0.6.0/orchestrator/fixtures/generated/orchestrator-test-verification.json +0 -62
- letitloop-0.6.0/orchestrator/fixtures/generated/perf-step-1.json +0 -61
- letitloop-0.6.0/orchestrator/fixtures/generated/perf-step-2.json +0 -62
- letitloop-0.6.0/orchestrator/fixtures/generated/perf-step-3.json +0 -62
- letitloop-0.6.0/orchestrator/fixtures/generated/perf-step-4.json +0 -62
- letitloop-0.6.0/orchestrator/fixtures/generated/perf-step-5.json +0 -63
- letitloop-0.6.0/orchestrator/fixtures/generated/phase2-proof-two-step-step-1.json +0 -47
- letitloop-0.6.0/orchestrator/fixtures/generated/phase2-proof-two-step-step-2.json +0 -47
- letitloop-0.6.0/orchestrator/fixtures/generated/planner-spec-synthesis-impl.json +0 -59
- letitloop-0.6.0/orchestrator/fixtures/generated/self-evolution-ast-formatter.json +0 -69
- letitloop-0.6.0/orchestrator/fixtures/generated/self-evolution-checkpoint-rollback.json +0 -70
- letitloop-0.6.0/orchestrator/fixtures/generated/self-evolution-spec-synthesis.json +0 -70
- letitloop-0.6.0/orchestrator/fixtures/generated/self-evolution-step-1.json +0 -70
- letitloop-0.6.0/orchestrator/fixtures/generated/self-evolution-step-2.json +0 -70
- letitloop-0.6.0/orchestrator/fixtures/generated/self-evolution-step-3.json +0 -70
- letitloop-0.6.0/orchestrator/fixtures/generated/self-evolution-step-4.json +0 -70
- letitloop-0.6.0/orchestrator/fixtures/generated/self-evolution-step-5.json +0 -65
- letitloop-0.6.0/orchestrator/fixtures/generated/self-evolution-telemetry.json +0 -70
- letitloop-0.6.0/orchestrator/fixtures/generated/self-evolution-tests.json +0 -71
- letitloop-0.6.0/orchestrator/fixtures/generated/spec-telemetry-research-design.json +0 -64
- letitloop-0.6.0/orchestrator/fixtures/generated/spec-telemetry-step-1.json +0 -62
- letitloop-0.6.0/orchestrator/fixtures/generated/spec-telemetry-step-2.json +0 -62
- letitloop-0.6.0/orchestrator/fixtures/generated/spec-telemetry-step-3.json +0 -62
- letitloop-0.6.0/orchestrator/fixtures/generated/spec-telemetry-step-4.json +0 -62
- letitloop-0.6.0/orchestrator/fixtures/generated/spec-telemetry-step-5.json +0 -62
- letitloop-0.6.0/orchestrator/fixtures/generated/spec-telemetry-verification.json +0 -58
- letitloop-0.6.0/orchestrator/fixtures/generated/token-bucket-impl.json +0 -69
- letitloop-0.6.0/orchestrator/fixtures/generated/token-bucket-step-1.json +0 -70
- letitloop-0.6.0/orchestrator/fixtures/generated/token-bucket-step-2.json +0 -70
- letitloop-0.6.0/orchestrator/fixtures/generated/token-bucket-step-3.json +0 -60
- letitloop-0.6.0/orchestrator/fixtures/generated/token-bucket-tests.json +0 -70
- letitloop-0.6.0/orchestrator/fixtures/generated/token-bucket-verify.json +0 -61
- letitloop-0.6.0/orchestrator/fixtures/generated/trace-ux-tests-step-1.json +0 -64
- letitloop-0.6.0/orchestrator/fixtures/generated/trace-ux-tests-step-2.json +0 -64
- letitloop-0.6.0/orchestrator/fixtures/generated/trace-ux-tests-step-3.json +0 -62
- letitloop-0.6.0/orchestrator/fixtures/generated/tui-live-telemetry-impl.json +0 -59
- letitloop-0.6.0/orchestrator/fixtures/phase1_proof_escalation_contract.json +0 -41
- letitloop-0.6.0/orchestrator/fixtures/phase1_proof_happy_path_contract.json +0 -83
- letitloop-0.6.0/orchestrator/fixtures/phase1_proof_qc_contract.json +0 -41
- letitloop-0.6.0/orchestrator/fixtures/phase1_proof_repair_contract.json +0 -41
- letitloop-0.6.0/orchestrator/fixtures/phase2_proof_two_step_goal.json +0 -15
- letitloop-0.6.0/orchestrator/fixtures/run_proofs.py +0 -299
- letitloop-0.6.0/orchestrator/fixtures/test_normalizer.py +0 -16
- letitloop-0.6.0/orchestrator/gate.py +0 -221
- letitloop-0.6.0/orchestrator/generator.py +0 -239
- letitloop-0.6.0/orchestrator/goal.py +0 -245
- letitloop-0.6.0/orchestrator/handoff.py +0 -86
- letitloop-0.6.0/orchestrator/hybrid_worker.py +0 -840
- letitloop-0.6.0/orchestrator/impossibility.py +0 -162
- letitloop-0.6.0/orchestrator/limits.py +0 -60
- letitloop-0.6.0/orchestrator/llm.py +0 -324
- letitloop-0.6.0/orchestrator/local_tool_calling.py +0 -285
- letitloop-0.6.0/orchestrator/mcp_client.py +0 -571
- letitloop-0.6.0/orchestrator/mcp_server.py +0 -524
- letitloop-0.6.0/orchestrator/memory_bridge.py +0 -182
- letitloop-0.6.0/orchestrator/metrics.py +0 -159
- letitloop-0.6.0/orchestrator/models.py +0 -350
- letitloop-0.6.0/orchestrator/parsing.py +0 -237
- letitloop-0.6.0/orchestrator/patch_applier.py +0 -154
- letitloop-0.6.0/orchestrator/plan_preview.py +0 -138
- letitloop-0.6.0/orchestrator/plan_quality.py +0 -357
- letitloop-0.6.0/orchestrator/planner.py +0 -802
- letitloop-0.6.0/orchestrator/preferences.py +0 -115
- letitloop-0.6.0/orchestrator/preflight.py +0 -141
- letitloop-0.6.0/orchestrator/prompts.py +0 -275
- letitloop-0.6.0/orchestrator/proposal_ledger.py +0 -194
- letitloop-0.6.0/orchestrator/provider_scheduler.py +0 -394
- letitloop-0.6.0/orchestrator/qc/__init__.py +0 -153
- letitloop-0.6.0/orchestrator/qc/aggregator.py +0 -330
- letitloop-0.6.0/orchestrator/qc/parsing.py +0 -287
- letitloop-0.6.0/orchestrator/qc/personas.py +0 -242
- letitloop-0.6.0/orchestrator/qc/runner.py +0 -569
- letitloop-0.6.0/orchestrator/qc_overrule.py +0 -87
- letitloop-0.6.0/orchestrator/qc_review.py +0 -282
- letitloop-0.6.0/orchestrator/quality_lenses.py +0 -314
- letitloop-0.6.0/orchestrator/quality_plan.py +0 -449
- letitloop-0.6.0/orchestrator/quality_plane.py +0 -103
- letitloop-0.6.0/orchestrator/receipts.py +0 -71
- letitloop-0.6.0/orchestrator/reconcile.py +0 -191
- letitloop-0.6.0/orchestrator/remediate.py +0 -373
- letitloop-0.6.0/orchestrator/replanner.py +0 -433
- letitloop-0.6.0/orchestrator/research.py +0 -176
- letitloop-0.6.0/orchestrator/review_artifact.py +0 -672
- letitloop-0.6.0/orchestrator/safety.py +0 -413
- letitloop-0.6.0/orchestrator/sbom.py +0 -136
- letitloop-0.6.0/orchestrator/schemas.py +0 -174
- letitloop-0.6.0/orchestrator/scope.py +0 -476
- letitloop-0.6.0/orchestrator/scrubber.py +0 -98
- letitloop-0.6.0/orchestrator/sse_server.py +0 -160
- letitloop-0.6.0/orchestrator/subprocess_helper.py +0 -131
- letitloop-0.6.0/orchestrator/supervisor/__init__.py +0 -213
- letitloop-0.6.0/orchestrator/supervisor/_shared.py +0 -164
- letitloop-0.6.0/orchestrator/supervisor/cleanup.py +0 -185
- letitloop-0.6.0/orchestrator/supervisor/core.py +0 -1698
- letitloop-0.6.0/orchestrator/supervisor/recovery.py +0 -370
- letitloop-0.6.0/orchestrator/supervisor/reporting.py +0 -251
- letitloop-0.6.0/orchestrator/telemetry.py +0 -109
- letitloop-0.6.0/orchestrator/verifier.py +0 -1255
- letitloop-0.6.0/orchestrator/webhooks.py +0 -168
- letitloop-0.6.0/orchestrator/worker.py +0 -469
- letitloop-0.6.0/orchestrator/worker_adapters.py +0 -766
- letitloop-0.6.0/orchestrator/worker_pool.py +0 -121
- letitloop-0.6.0/orchestrator/worktree.py +0 -393
- letitloop-0.6.0/tests/__init__.py +0 -0
- letitloop-0.6.0/tests/fault_injection.py +0 -148
- letitloop-0.6.0/tests/test_adversarial_audit.py +0 -328
- letitloop-0.6.0/tests/test_agent_loop_profiles.py +0 -171
- letitloop-0.6.0/tests/test_anti_ouroboros.py +0 -38
- letitloop-0.6.0/tests/test_ast_comment_retention.py +0 -64
- letitloop-0.6.0/tests/test_ast_node_splicer.py +0 -101
- letitloop-0.6.0/tests/test_audit.py +0 -151
- letitloop-0.6.0/tests/test_auto_healer.py +0 -101
- letitloop-0.6.0/tests/test_benchmarks.py +0 -197
- letitloop-0.6.0/tests/test_budget.py +0 -131
- letitloop-0.6.0/tests/test_budget_enforcement_e2e.py +0 -62
- letitloop-0.6.0/tests/test_checkpoint.py +0 -193
- letitloop-0.6.0/tests/test_checkpoint_apply_e2e.py +0 -94
- letitloop-0.6.0/tests/test_cli.py +0 -583
- letitloop-0.6.0/tests/test_cli_doctor.py +0 -106
- letitloop-0.6.0/tests/test_cli_failure_report.py +0 -106
- letitloop-0.6.0/tests/test_cloud_watchdog.py +0 -64
- letitloop-0.6.0/tests/test_codebase_introspector.py +0 -29
- letitloop-0.6.0/tests/test_component_slicer.py +0 -411
- letitloop-0.6.0/tests/test_config.py +0 -152
- letitloop-0.6.0/tests/test_conformance_sandbox.py +0 -44
- letitloop-0.6.0/tests/test_contract.py +0 -303
- letitloop-0.6.0/tests/test_crypto.py +0 -53
- letitloop-0.6.0/tests/test_dag_validator.py +0 -251
- letitloop-0.6.0/tests/test_docker_sandbox.py +0 -157
- letitloop-0.6.0/tests/test_dryrun.py +0 -110
- letitloop-0.6.0/tests/test_engine_improvements.py +0 -270
- letitloop-0.6.0/tests/test_errors.py +0 -145
- letitloop-0.6.0/tests/test_event_wiring.py +0 -311
- letitloop-0.6.0/tests/test_evidence_flow.py +0 -133
- letitloop-0.6.0/tests/test_evidence_ledger.py +0 -92
- letitloop-0.6.0/tests/test_exception_containment.py +0 -170
- letitloop-0.6.0/tests/test_failure.py +0 -59
- letitloop-0.6.0/tests/test_fast_sandbox.py +0 -68
- letitloop-0.6.0/tests/test_fault_injection.py +0 -180
- letitloop-0.6.0/tests/test_fault_injection_adversarial.py +0 -452
- letitloop-0.6.0/tests/test_feasibility_gate.py +0 -109
- letitloop-0.6.0/tests/test_feedback.py +0 -186
- letitloop-0.6.0/tests/test_framework_examples.py +0 -61
- letitloop-0.6.0/tests/test_gate.py +0 -115
- letitloop-0.6.0/tests/test_generator.py +0 -95
- letitloop-0.6.0/tests/test_goal.py +0 -90
- letitloop-0.6.0/tests/test_handoff.py +0 -132
- letitloop-0.6.0/tests/test_hardening_batch3.py +0 -298
- letitloop-0.6.0/tests/test_hybrid_worker.py +0 -420
- letitloop-0.6.0/tests/test_impossibility.py +0 -108
- letitloop-0.6.0/tests/test_integration.py +0 -212
- letitloop-0.6.0/tests/test_limits.py +0 -108
- letitloop-0.6.0/tests/test_live_proofs.py +0 -316
- letitloop-0.6.0/tests/test_live_smoke.py +0 -128
- letitloop-0.6.0/tests/test_local_tool_calling.py +0 -318
- letitloop-0.6.0/tests/test_mcp_client.py +0 -341
- letitloop-0.6.0/tests/test_mcp_concurrency.py +0 -52
- letitloop-0.6.0/tests/test_mcp_security.py +0 -82
- letitloop-0.6.0/tests/test_mcp_server.py +0 -174
- letitloop-0.6.0/tests/test_memory_bridge.py +0 -197
- letitloop-0.6.0/tests/test_metrics.py +0 -152
- letitloop-0.6.0/tests/test_operator_controls.py +0 -177
- letitloop-0.6.0/tests/test_parsing.py +0 -211
- letitloop-0.6.0/tests/test_patch_applier.py +0 -92
- letitloop-0.6.0/tests/test_performance_and_trace.py +0 -138
- letitloop-0.6.0/tests/test_plan_gate.py +0 -312
- letitloop-0.6.0/tests/test_plan_quality.py +0 -303
- letitloop-0.6.0/tests/test_planner.py +0 -132
- letitloop-0.6.0/tests/test_pr_verification_scenarios.py +0 -58
- letitloop-0.6.0/tests/test_preflight.py +0 -109
- letitloop-0.6.0/tests/test_prompts.py +0 -193
- letitloop-0.6.0/tests/test_proof_receipt.py +0 -61
- letitloop-0.6.0/tests/test_provider_scheduler.py +0 -387
- letitloop-0.6.0/tests/test_qc_overrule.py +0 -321
- letitloop-0.6.0/tests/test_qc_paths.py +0 -414
- letitloop-0.6.0/tests/test_qplane_fail_closed.py +0 -1397
- letitloop-0.6.0/tests/test_quality_plan.py +0 -380
- letitloop-0.6.0/tests/test_quality_plane.py +0 -1144
- letitloop-0.6.0/tests/test_quality_spec_propagation.py +0 -169
- letitloop-0.6.0/tests/test_recipes.py +0 -108
- letitloop-0.6.0/tests/test_reconcile.py +0 -177
- letitloop-0.6.0/tests/test_remediate.py +0 -147
- letitloop-0.6.0/tests/test_replan_evidence.py +0 -158
- letitloop-0.6.0/tests/test_replanner.py +0 -119
- letitloop-0.6.0/tests/test_replanner_integration_e2e.py +0 -50
- letitloop-0.6.0/tests/test_research_providers.py +0 -111
- letitloop-0.6.0/tests/test_retry_metadata.py +0 -144
- letitloop-0.6.0/tests/test_review_artifact.py +0 -369
- letitloop-0.6.0/tests/test_safety.py +0 -183
- letitloop-0.6.0/tests/test_schemas.py +0 -55
- letitloop-0.6.0/tests/test_scope.py +0 -178
- letitloop-0.6.0/tests/test_sprint7_adapters.py +0 -181
- letitloop-0.6.0/tests/test_state_coverage_expansion.py +0 -598
- letitloop-0.6.0/tests/test_subprocess_helper.py +0 -82
- letitloop-0.6.0/tests/test_telemetry.py +0 -50
- letitloop-0.6.0/tests/test_unit_expansion.py +0 -359
- letitloop-0.6.0/tests/test_v032_remediation.py +0 -111
- letitloop-0.6.0/tests/test_verifier.py +0 -617
- letitloop-0.6.0/tests/test_verifier_ast_fuzz.py +0 -71
- letitloop-0.6.0/tests/test_verifier_hardening.py +0 -140
- letitloop-0.6.0/tests/test_webhooks.py +0 -419
- letitloop-0.6.0/tests/test_worker.py +0 -237
- letitloop-0.6.0/tests/test_worker_adapters.py +0 -128
- letitloop-0.6.0/tests/test_worker_adapters_extended.py +0 -134
- letitloop-0.6.0/tests/test_worker_escaping.py +0 -82
- letitloop-0.6.0/tests/test_worker_pool.py +0 -193
- letitloop-0.6.0/tests/test_worktree.py +0 -69
- letitloop-0.6.0/tests/test_worktree_sandbox.py +0 -307
- {letitloop-0.6.0 → letitloop-0.7.0}/.github/ISSUE_TEMPLATE/bug_report.yml +0 -0
- {letitloop-0.6.0 → letitloop-0.7.0}/.github/ISSUE_TEMPLATE/config.yml +0 -0
- {letitloop-0.6.0 → letitloop-0.7.0}/.github/ISSUE_TEMPLATE/feature_request.yml +0 -0
- {letitloop-0.6.0 → letitloop-0.7.0}/.github/dependabot.yml +0 -0
- {letitloop-0.6.0 → letitloop-0.7.0}/.github/release-drafter.config.yml +0 -0
- {letitloop-0.6.0 → letitloop-0.7.0}/.github/release-drafter.yml +0 -0
- {letitloop-0.6.0 → letitloop-0.7.0}/.github/workflows/all-contributors.yml +0 -0
- {letitloop-0.6.0 → letitloop-0.7.0}/.github/workflows/codeql.yml +0 -0
- {letitloop-0.6.0 → letitloop-0.7.0}/.github/workflows/dependency-review.yml +0 -0
- {letitloop-0.6.0 → letitloop-0.7.0}/.github/workflows/issue-claim.yml +0 -0
- {letitloop-0.6.0 → letitloop-0.7.0}/.github/workflows/pages.yml +0 -0
- {letitloop-0.6.0 → letitloop-0.7.0}/.github/workflows/pr-health-guard.yml +0 -0
- {letitloop-0.6.0 → letitloop-0.7.0}/.github/workflows/release-drafter.yml +0 -0
- {letitloop-0.6.0 → letitloop-0.7.0}/.github/workflows/release-pypi.yml +0 -0
- {letitloop-0.6.0 → letitloop-0.7.0}/.github/workflows/scorecard.yml +0 -0
- {letitloop-0.6.0 → letitloop-0.7.0}/.github/workflows/stale.yml +0 -0
- {letitloop-0.6.0 → letitloop-0.7.0}/LICENSE +0 -0
- {letitloop-0.6.0 → letitloop-0.7.0}/MANIFEST.in +0 -0
- {letitloop-0.6.0 → letitloop-0.7.0}/conformance/__init__.py +0 -0
- {letitloop-0.6.0 → letitloop-0.7.0}/conformance/adapters/atomic_wal_adapter.py +0 -0
- {letitloop-0.6.0 → letitloop-0.7.0}/conformance/adapters/autogen_adapter.py +0 -0
- {letitloop-0.6.0 → letitloop-0.7.0}/conformance/adapters/base.py +0 -0
- {letitloop-0.6.0 → letitloop-0.7.0}/conformance/adapters/crewai_adapter.py +0 -0
- {letitloop-0.6.0 → letitloop-0.7.0}/conformance/adapters/in_memory_adapter.py +0 -0
- {letitloop-0.6.0 → letitloop-0.7.0}/conformance/adapters/langgraph_adapter.py +0 -0
- {letitloop-0.6.0 → letitloop-0.7.0}/conformance/adapters/letitloop_adapter.py +0 -0
- {letitloop-0.6.0 → letitloop-0.7.0}/conformance/adapters/raw_python_adapter.py +0 -0
- {letitloop-0.6.0 → letitloop-0.7.0}/conformance/adapters/snapshot_graph_adapter.py +0 -0
- {letitloop-0.6.0 → letitloop-0.7.0}/conformance/adapters/unmanaged_script_adapter.py +0 -0
- {letitloop-0.6.0 → letitloop-0.7.0}/conformance/harness/__init__.py +0 -0
- {letitloop-0.6.0 → letitloop-0.7.0}/conformance/harness/injector.py +0 -0
- {letitloop-0.6.0 → letitloop-0.7.0}/conformance/harness/runner.py +0 -0
- {letitloop-0.6.0 → letitloop-0.7.0}/conformance/harness/schema.py +0 -0
- {letitloop-0.6.0 → letitloop-0.7.0}/conformance/harness/synthetic_engine.py +0 -0
- {letitloop-0.6.0 → letitloop-0.7.0}/conformance/scenarios/__init__.py +0 -0
- {letitloop-0.6.0 → letitloop-0.7.0}/docs/MCP_GUIDE.md +0 -0
- {letitloop-0.6.0 → letitloop-0.7.0}/docs/MCP_SETUP.md +0 -0
- {letitloop-0.6.0 → letitloop-0.7.0}/docs/SKILL_GUIDE.md +0 -0
- {letitloop-0.6.0 → letitloop-0.7.0}/docs/V033_SCORECARD.md +0 -0
- {letitloop-0.6.0 → letitloop-0.7.0}/docs/adapters.md +0 -0
- {letitloop-0.6.0 → letitloop-0.7.0}/docs/adr/0001-write-ahead-logging.md +0 -0
- {letitloop-0.6.0 → letitloop-0.7.0}/docs/adr/0002-deterministic-verifiers.md +0 -0
- {letitloop-0.6.0 → letitloop-0.7.0}/docs/adr/0003-headless-cli-adapters.md +0 -0
- {letitloop-0.6.0 → letitloop-0.7.0}/docs/adr/0004-format-aware-acceptance-checks.md +0 -0
- {letitloop-0.6.0 → letitloop-0.7.0}/docs/adr/README.md +0 -0
- {letitloop-0.6.0 → letitloop-0.7.0}/docs/adr/template.md +0 -0
- {letitloop-0.6.0 → letitloop-0.7.0}/docs/auto_healing.md +0 -0
- {letitloop-0.6.0 → letitloop-0.7.0}/docs/state_machine.md +0 -0
- {letitloop-0.6.0 → letitloop-0.7.0}/letitloop/adapters/__init__.py +0 -0
- {letitloop-0.6.0 → letitloop-0.7.0}/letitloop/adapters/autogen.py +0 -0
- {letitloop-0.6.0 → letitloop-0.7.0}/letitloop/adapters/crewai.py +0 -0
- {letitloop-0.6.0 → letitloop-0.7.0}/letitloop/adapters/fastapi.py +0 -0
- {letitloop-0.6.0 → letitloop-0.7.0}/letitloop/adapters/langgraph.py +0 -0
- {letitloop-0.6.0 → letitloop-0.7.0}/letitloop/adapters/smolagents.py +0 -0
- {letitloop-0.6.0 → letitloop-0.7.0}/letitloop/conformance/__init__.py +0 -0
- {letitloop-0.6.0 → letitloop-0.7.0}/letitloop/conformance/adapters/__init__.py +0 -0
- {letitloop-0.6.0 → letitloop-0.7.0}/letitloop/conformance/adapters/_durable_mixin.py +0 -0
- {letitloop-0.6.0 → letitloop-0.7.0}/letitloop/conformance/adapters/atomic_wal_adapter.py +0 -0
- {letitloop-0.6.0 → letitloop-0.7.0}/letitloop/conformance/adapters/autogen_adapter.py +0 -0
- {letitloop-0.6.0 → letitloop-0.7.0}/letitloop/conformance/adapters/base.py +0 -0
- {letitloop-0.6.0 → letitloop-0.7.0}/letitloop/conformance/adapters/crewai_adapter.py +0 -0
- {letitloop-0.6.0 → letitloop-0.7.0}/letitloop/conformance/adapters/in_memory_adapter.py +0 -0
- {letitloop-0.6.0 → letitloop-0.7.0}/letitloop/conformance/adapters/json_checkpoint_adapter.py +0 -0
- {letitloop-0.6.0 → letitloop-0.7.0}/letitloop/conformance/adapters/langgraph_adapter.py +0 -0
- {letitloop-0.6.0 → letitloop-0.7.0}/letitloop/conformance/adapters/letitloop_adapter.py +0 -0
- {letitloop-0.6.0 → letitloop-0.7.0}/letitloop/conformance/adapters/llamaindex_adapter.py +0 -0
- {letitloop-0.6.0 → letitloop-0.7.0}/letitloop/conformance/adapters/raw_python_adapter.py +0 -0
- {letitloop-0.6.0 → letitloop-0.7.0}/letitloop/conformance/adapters/snapshot_graph_adapter.py +0 -0
- {letitloop-0.6.0 → letitloop-0.7.0}/letitloop/conformance/adapters/sqlite_wal_adapter.py +0 -0
- {letitloop-0.6.0 → letitloop-0.7.0}/letitloop/conformance/adapters/swarm_adapter.py +0 -0
- {letitloop-0.6.0 → letitloop-0.7.0}/letitloop/conformance/adapters/unmanaged_script_adapter.py +0 -0
- {letitloop-0.6.0 → letitloop-0.7.0}/letitloop/conformance/harness/__init__.py +0 -0
- {letitloop-0.6.0 → letitloop-0.7.0}/letitloop/conformance/harness/injector.py +0 -0
- {letitloop-0.6.0 → letitloop-0.7.0}/letitloop/conformance/harness/runner.py +0 -0
- {letitloop-0.6.0 → letitloop-0.7.0}/letitloop/conformance/harness/schema.py +0 -0
- {letitloop-0.6.0 → letitloop-0.7.0}/letitloop/conformance/harness/synthetic_engine.py +0 -0
- {letitloop-0.6.0 → letitloop-0.7.0}/letitloop/conformance/reporter.py +0 -0
- {letitloop-0.6.0 → letitloop-0.7.0}/letitloop/conformance/scenarios/__init__.py +0 -0
- {letitloop-0.6.0 → letitloop-0.7.0}/letitloop/mcp/__init__.py +0 -0
- {letitloop-0.6.0 → letitloop-0.7.0}/letitloop/mcp/__main__.py +0 -0
- {letitloop-0.6.0 → letitloop-0.7.0}/letitloop-action/scripts/verify_ast.py +0 -0
- {letitloop-0.6.0 → letitloop-0.7.0}/letitloop.egg-info/dependency_links.txt +0 -0
- {letitloop-0.6.0 → letitloop-0.7.0}/letitloop.egg-info/entry_points.txt +0 -0
- {letitloop-0.6.0 → letitloop-0.7.0}/letitloop.egg-info/top_level.txt +0 -0
- {letitloop-0.6.0 → letitloop-0.7.0}/orchestrator/exceptions.py +0 -0
- {letitloop-0.6.0 → letitloop-0.7.0}/orchestrator/lock.py +0 -0
- {letitloop-0.6.0 → letitloop-0.7.0}/orchestrator/process_guard.py +0 -0
- {letitloop-0.6.0 → letitloop-0.7.0}/orchestrator/supervisor/liveness.py +0 -0
- {letitloop-0.6.0 → letitloop-0.7.0}/orchestrator/token_gate.py +0 -0
- {letitloop-0.6.0 → letitloop-0.7.0}/pytest.ini +0 -0
- {letitloop-0.6.0 → letitloop-0.7.0}/requirements-ci.txt +0 -0
- {letitloop-0.6.0 → letitloop-0.7.0}/setup.cfg +0 -0
- {letitloop-0.6.0/orchestrator/fixtures → letitloop-0.7.0/tests}/__init__.py +0 -0
- {letitloop-0.6.0 → letitloop-0.7.0}/tests/adapters/__init__.py +0 -0
- {letitloop-0.6.0 → letitloop-0.7.0}/tests/adapters/test_adapters_init.py +0 -0
- {letitloop-0.6.0 → letitloop-0.7.0}/tests/adapters/test_autogen.py +0 -0
- {letitloop-0.6.0 → letitloop-0.7.0}/tests/adapters/test_crewai.py +0 -0
- {letitloop-0.6.0 → letitloop-0.7.0}/tests/adapters/test_fastapi.py +0 -0
- {letitloop-0.6.0 → letitloop-0.7.0}/tests/adapters/test_langgraph.py +0 -0
- {letitloop-0.6.0 → letitloop-0.7.0}/tests/adapters/test_smolagents.py +0 -0
- {letitloop-0.6.0 → letitloop-0.7.0}/tests/test_browser_use_cookbook.py +0 -0
- {letitloop-0.6.0 → letitloop-0.7.0}/tests/test_cli_watch.py +0 -0
- {letitloop-0.6.0 → letitloop-0.7.0}/tests/test_conformance_benchmark.py +0 -0
- {letitloop-0.6.0 → letitloop-0.7.0}/tests/test_durable_async.py +0 -0
- {letitloop-0.6.0 → letitloop-0.7.0}/tests/test_fuzz_wal_corruptions.py +0 -0
- {letitloop-0.6.0 → letitloop-0.7.0}/tests/test_state.py +0 -0
- {letitloop-0.6.0 → letitloop-0.7.0}/tests/test_step_failclosed.py +0 -0
- {letitloop-0.6.0 → letitloop-0.7.0}/tests/test_supervise.py +0 -0
- {letitloop-0.6.0 → letitloop-0.7.0}/tests/test_token_gate.py +0 -0
- {letitloop-0.6.0 → letitloop-0.7.0}/tests/test_wal_corruption_recovery.py +0 -0
- {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
|
|
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
|
|
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.
|
|
4
|
-
Summary:
|
|
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:
|
|
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 ::
|
|
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:
|
|
32
|
-
Requires-Dist:
|
|
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
|
-
|
|
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
|
-
**
|
|
49
|
+
**The SQLite of Durable Execution — Zero-daemon in-process durability and process supervisor for Python functions & AI agents.**
|
|
77
50
|
|
|
78
51
|
[](https://sdageltc.github.io/letitloop/)
|
|
79
52
|
[](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.
|
|
199
|
-
|
|
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
|
|
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
|
|
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
|
-
**
|
|
9
|
+
**The SQLite of Durable Execution — Zero-daemon in-process durability and process supervisor for Python functions & AI agents.**
|
|
10
10
|
|
|
11
11
|
[](https://sdageltc.github.io/letitloop/)
|
|
12
12
|
[](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.
|
|
132
|
-
|
|
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
|
|
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
|
|
168
|
+
lil watch agent_script.py --max-restarts 10 --backoff 1.0
|
|
171
169
|
```
|
|
172
170
|
|
|
173
171
|
---
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: letitloop
|
|
3
|
-
Version: 0.
|
|
4
|
-
Summary:
|
|
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:
|
|
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 ::
|
|
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:
|
|
32
|
-
Requires-Dist:
|
|
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
|
-
|
|
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
|
-
**
|
|
49
|
+
**The SQLite of Durable Execution — Zero-daemon in-process durability and process supervisor for Python functions & AI agents.**
|
|
77
50
|
|
|
78
51
|
[](https://sdageltc.github.io/letitloop/)
|
|
79
52
|
[](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.
|
|
199
|
-
|
|
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
|
|
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
|
|
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,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
|
+
]
|