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.
- letitloop-0.4.0/.github/workflows/benchmark.yml +106 -0
- letitloop-0.4.0/.github/workflows/letitloop-verify.yml +84 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/.github/workflows/pr-benchmark.yml +1 -1
- {letitloop-0.3.3 → letitloop-0.4.0}/CHANGELOG.md +23 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/PKG-INFO +2 -1
- letitloop-0.4.0/docs/MCP_SETUP.md +78 -0
- letitloop-0.4.0/docs/V033_SCORECARD.md +184 -0
- letitloop-0.4.0/docs/plans/2026-08-26-vital-fixes-plus-real-bridges.md +674 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/letitloop/__init__.py +1 -1
- letitloop-0.4.0/letitloop/conformance/adapters/_durable_mixin.py +55 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/letitloop/conformance/adapters/autogen_adapter.py +13 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/letitloop/conformance/adapters/crewai_adapter.py +13 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/letitloop/conformance/adapters/langgraph_adapter.py +16 -1
- {letitloop-0.3.3 → letitloop-0.4.0}/letitloop/conformance/harness/injector.py +53 -28
- {letitloop-0.3.3 → letitloop-0.4.0}/letitloop/conformance/harness/runner.py +83 -3
- letitloop-0.4.0/letitloop/conformance/harness/schema.py +90 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/letitloop/conformance/harness/synthetic_engine.py +5 -0
- letitloop-0.4.0/letitloop/conformance/reporter.py +122 -0
- letitloop-0.4.0/letitloop/mcp/__init__.py +33 -0
- letitloop-0.4.0/letitloop/mcp/__main__.py +6 -0
- letitloop-0.4.0/letitloop-action/scripts/verify_ast.py +140 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/letitloop.egg-info/PKG-INFO +2 -1
- {letitloop-0.3.3 → letitloop-0.4.0}/letitloop.egg-info/SOURCES.txt +22 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/letitloop.egg-info/requires.txt +1 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/letitloop.egg-info/top_level.txt +1 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/cli.py +324 -10
- letitloop-0.4.0/orchestrator/crypto.py +213 -0
- letitloop-0.4.0/orchestrator/dashboard_bridge.py +120 -0
- letitloop-0.4.0/orchestrator/gate.py +227 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/lock.py +35 -17
- letitloop-0.4.0/orchestrator/mcp_server.py +465 -0
- letitloop-0.4.0/orchestrator/remediate.py +371 -0
- letitloop-0.4.0/orchestrator/sbom.py +134 -0
- letitloop-0.4.0/orchestrator/scrubber.py +98 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/pyproject.toml +4 -3
- {letitloop-0.3.3 → letitloop-0.4.0}/pytest.ini +1 -1
- letitloop-0.4.0/tests/test_conformance_benchmark.py +128 -0
- letitloop-0.4.0/tests/test_conformance_sandbox.py +44 -0
- letitloop-0.4.0/tests/test_framework_examples.py +61 -0
- letitloop-0.4.0/tests/test_gate.py +115 -0
- letitloop-0.4.0/tests/test_mcp_server.py +133 -0
- letitloop-0.4.0/tests/test_remediate.py +147 -0
- letitloop-0.3.3/.github/workflows/letitloop-verify.yml +0 -36
- letitloop-0.3.3/letitloop/conformance/harness/schema.py +0 -31
- {letitloop-0.3.3 → letitloop-0.4.0}/.github/ISSUE_TEMPLATE/bug_report.yml +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/.github/ISSUE_TEMPLATE/config.yml +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/.github/ISSUE_TEMPLATE/feature_request.yml +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/.github/dependabot.yml +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/.github/release-drafter.config.yml +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/.github/release-drafter.yml +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/.github/workflows/auto-fix.yml +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/.github/workflows/auto-remediate.yml +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/.github/workflows/ci.yml +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/.github/workflows/codeql.yml +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/.github/workflows/dependency-review.yml +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/.github/workflows/flaky-test-hunter.yml +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/.github/workflows/issue-claim.yml +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/.github/workflows/issue-scaffold.yml +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/.github/workflows/pages.yml +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/.github/workflows/release-drafter.yml +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/.github/workflows/release-pypi.yml +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/.github/workflows/scorecard.yml +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/.github/workflows/stale.yml +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/.github/workflows/welcome-bot.yml +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/LICENSE +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/MANIFEST.in +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/README.md +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/conformance/__init__.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/conformance/adapters/atomic_wal_adapter.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/conformance/adapters/autogen_adapter.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/conformance/adapters/base.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/conformance/adapters/crewai_adapter.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/conformance/adapters/in_memory_adapter.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/conformance/adapters/langgraph_adapter.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/conformance/adapters/letitloop_adapter.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/conformance/adapters/raw_python_adapter.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/conformance/adapters/snapshot_graph_adapter.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/conformance/adapters/unmanaged_script_adapter.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/conformance/harness/__init__.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/conformance/harness/injector.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/conformance/harness/runner.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/conformance/harness/schema.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/conformance/harness/synthetic_engine.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/conformance/scenarios/__init__.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/docs/MCP_GUIDE.md +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/docs/SKILL_GUIDE.md +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/docs/adr/0001-write-ahead-logging.md +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/docs/adr/0002-deterministic-verifiers.md +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/docs/adr/0003-headless-cli-adapters.md +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/docs/adr/0004-format-aware-acceptance-checks.md +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/docs/adr/README.md +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/docs/adr/template.md +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/docs/auto_healing.md +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/letitloop/conformance/__init__.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/letitloop/conformance/adapters/__init__.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/letitloop/conformance/adapters/atomic_wal_adapter.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/letitloop/conformance/adapters/base.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/letitloop/conformance/adapters/in_memory_adapter.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/letitloop/conformance/adapters/letitloop_adapter.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/letitloop/conformance/adapters/raw_python_adapter.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/letitloop/conformance/adapters/snapshot_graph_adapter.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/letitloop/conformance/adapters/unmanaged_script_adapter.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/letitloop/conformance/harness/__init__.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/letitloop/conformance/scenarios/__init__.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/letitloop.egg-info/dependency_links.txt +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/letitloop.egg-info/entry_points.txt +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/SKILL.md +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/__init__.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/anti_ouroboros.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/ast_node_splicer.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/ast_splicer.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/audit.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/auto_healer.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/budget.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/checkpoint.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/cloud_watchdog.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/codebase_introspector.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/component_slicer.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/config.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/contract.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/dag_validator.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/decorators.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/elasticity_governor.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/env_doctor.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/errors.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/events.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/evidence.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/exceptions.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/failure.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/fast_sandbox.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/feasibility_gate.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/feedback.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/fixtures/__init__.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/fixtures/example_contract.json +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/fixtures/generated/evidence-cli-run-test-step-1.json +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/fixtures/generated/evidence-cli-run-test-step-2.json +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/fixtures/generated/evidence-inject-test-a.json +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/fixtures/generated/evidence-inject-test-b.json +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/fixtures/generated/evidence-inject-test-c.json +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/fixtures/generated/evidence-json-test-a.json +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/fixtures/generated/evidence-json-test-b.json +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/fixtures/generated/fail-report-fail-task-1.json +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/fixtures/generated/fail-report-json-task-1.json +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/fixtures/generated/fail-report-success-task-1.json +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/fixtures/generated/fuzz-engine-design.json +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/fixtures/generated/fuzz-engine-impl.json +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/fixtures/generated/fuzz-engine-tests.json +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/fixtures/generated/fuzz-engine-verify.json +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/fixtures/generated/goal-orch-step-1.json +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/fixtures/generated/goal-orch-step-2.json +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/fixtures/generated/goal-orch-step-3.json +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/fixtures/generated/goal-orch-step-4.json +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/fixtures/generated/goal-orch-step-5.json +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/fixtures/generated/goal-orch-step-6.json +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/fixtures/generated/implement-a-thread-safe-token-bucket-rat-task-1.json +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/fixtures/generated/orchestrator-checkpoint-rollback-3.json +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/fixtures/generated/orchestrator-checkpoint-rollback.json +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/fixtures/generated/orchestrator-live-telemetry-2.json +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/fixtures/generated/orchestrator-live-telemetry.json +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/fixtures/generated/orchestrator-spec-synthesis-1.json +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/fixtures/generated/orchestrator-spec-synthesis.json +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/fixtures/generated/orchestrator-test-verification-4.json +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/fixtures/generated/orchestrator-test-verification.json +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/fixtures/generated/perf-step-1.json +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/fixtures/generated/perf-step-2.json +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/fixtures/generated/perf-step-3.json +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/fixtures/generated/perf-step-4.json +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/fixtures/generated/perf-step-5.json +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/fixtures/generated/phase2-proof-two-step-step-1.json +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/fixtures/generated/phase2-proof-two-step-step-2.json +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/fixtures/generated/planner-spec-synthesis-impl.json +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/fixtures/generated/self-evolution-ast-formatter.json +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/fixtures/generated/self-evolution-checkpoint-rollback.json +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/fixtures/generated/self-evolution-spec-synthesis.json +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/fixtures/generated/self-evolution-step-1.json +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/fixtures/generated/self-evolution-step-2.json +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/fixtures/generated/self-evolution-step-3.json +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/fixtures/generated/self-evolution-step-4.json +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/fixtures/generated/self-evolution-step-5.json +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/fixtures/generated/self-evolution-telemetry.json +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/fixtures/generated/self-evolution-tests.json +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/fixtures/generated/spec-telemetry-research-design.json +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/fixtures/generated/spec-telemetry-step-1.json +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/fixtures/generated/spec-telemetry-step-2.json +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/fixtures/generated/spec-telemetry-step-3.json +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/fixtures/generated/spec-telemetry-step-4.json +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/fixtures/generated/spec-telemetry-step-5.json +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/fixtures/generated/spec-telemetry-verification.json +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/fixtures/generated/token-bucket-impl.json +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/fixtures/generated/token-bucket-step-1.json +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/fixtures/generated/token-bucket-step-2.json +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/fixtures/generated/token-bucket-step-3.json +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/fixtures/generated/token-bucket-tests.json +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/fixtures/generated/token-bucket-verify.json +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/fixtures/generated/trace-ux-tests-step-1.json +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/fixtures/generated/trace-ux-tests-step-2.json +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/fixtures/generated/trace-ux-tests-step-3.json +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/fixtures/generated/tui-live-telemetry-impl.json +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/fixtures/phase1_proof_escalation_contract.json +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/fixtures/phase1_proof_happy_path_contract.json +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/fixtures/phase1_proof_qc_contract.json +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/fixtures/phase1_proof_repair_contract.json +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/fixtures/phase2_proof_two_step_goal.json +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/fixtures/run_proofs.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/fixtures/test_normalizer.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/generator.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/goal.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/handoff.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/hybrid_worker.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/impossibility.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/limits.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/live_evolution_engine.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/llm.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/local_tool_calling.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/mcp_client.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/memory_bridge.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/metrics.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/micro_epoch.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/models.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/parsing.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/patch_applier.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/plan_preview.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/plan_quality.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/planner.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/preferences.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/preflight.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/process_guard.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/prompts.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/proposal_ledger.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/provider_scheduler.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/qc/__init__.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/qc/aggregator.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/qc/parsing.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/qc/personas.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/qc/runner.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/qc_overrule.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/qc_review.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/quality_lenses.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/quality_plan.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/quality_plane.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/receipts.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/reconcile.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/replanner.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/research.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/review_artifact.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/safety.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/schemas.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/scope.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/sensory_radar.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/sse_server.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/state.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/subprocess_helper.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/supervisor/__init__.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/supervisor/_shared.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/supervisor/cleanup.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/supervisor/core.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/supervisor/recovery.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/supervisor/reporting.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/surgical_extractor.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/telemetry.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/token_gate.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/verifier.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/webhooks.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/worker.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/worker_adapters.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/worker_pool.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/orchestrator/worktree.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/requirements-ci.txt +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/setup.cfg +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/tests/__init__.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/tests/fault_injection.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_adversarial_audit.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_agent_loop_profiles.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_anti_ouroboros.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_ast_comment_retention.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_ast_node_splicer.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_audit.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_auto_healer.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_benchmarks.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_budget.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_budget_enforcement_e2e.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_checkpoint.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_checkpoint_apply_e2e.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_cli.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_cli_doctor.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_cli_failure_report.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_cli_phase3.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_cloud_watchdog.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_codebase_introspector.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_component_slicer.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_config.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_contract.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_dag_validator.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_docker_sandbox.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_dryrun.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_durable_async.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_durable_decorator.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_elasticity_governor.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_engine_improvements.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_errors.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_event_wiring.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_evidence_flow.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_evidence_flow_cli.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_evidence_ledger.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_exception_containment.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_failure.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_fast_sandbox.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_fault_injection.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_fault_injection_adversarial.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_feasibility_gate.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_feedback.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_generator.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_goal.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_handoff.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_hardening_batch3.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_hybrid_worker.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_impossibility.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_integration.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_limits.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_live_evolution.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_live_evolution_feasibility.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_live_proofs.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_live_smoke.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_local_tool_calling.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_lock.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_mcp_client.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_mcp_concurrency.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_memory_bridge.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_metrics.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_micro_epoch.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_operator_controls.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_parsing.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_patch_applier.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_performance_and_trace.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_plan_gate.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_plan_quality.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_planner.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_pr_verification_scenarios.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_preflight.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_process_guard.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_prompts.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_proof_receipt.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_proposal_ledger.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_provider_scheduler.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_qc_overrule.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_qc_paths.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_qplane_fail_closed.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_quality_plan.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_quality_plane.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_quality_spec_propagation.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_recipes.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_reconcile.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_replan_evidence.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_replanner.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_replanner_integration_e2e.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_research_providers.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_retry_metadata.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_review_artifact.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_safety.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_schemas.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_scope.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_sensory_radar.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_state.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_state_coverage_expansion.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_subprocess_helper.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_supervisor.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_supervisor_resume.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_surgical_slicing.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_telemetry.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_token_gate.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_unit_expansion.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_v032_remediation.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_verifier.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_verifier_ast_fuzz.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_verifier_hardening.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_wal_corruption_recovery.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_wal_v2_checksums.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_webhooks.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_worker.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_worker_adapters.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_worker_adapters_extended.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_worker_escaping.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_worker_pool.py +0 -0
- {letitloop-0.3.3 → letitloop-0.4.0}/tests/test_worktree.py +0 -0
- {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
|
|
@@ -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
|
+
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`.
|