letitloop 0.2.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (175) hide show
  1. letitloop-0.2.0.dist-info/METADATA +232 -0
  2. letitloop-0.2.0.dist-info/RECORD +175 -0
  3. letitloop-0.2.0.dist-info/WHEEL +5 -0
  4. letitloop-0.2.0.dist-info/entry_points.txt +4 -0
  5. letitloop-0.2.0.dist-info/licenses/LICENSE +21 -0
  6. letitloop-0.2.0.dist-info/top_level.txt +1 -0
  7. orchestrator/SKILL.md +292 -0
  8. orchestrator/__init__.py +151 -0
  9. orchestrator/anti_ouroboros.py +78 -0
  10. orchestrator/approval.py +139 -0
  11. orchestrator/ast_node_splicer.py +130 -0
  12. orchestrator/ast_splicer.py +94 -0
  13. orchestrator/audit.py +88 -0
  14. orchestrator/budget.py +195 -0
  15. orchestrator/checkpoint.py +248 -0
  16. orchestrator/cli.py +1971 -0
  17. orchestrator/codebase_introspector.py +66 -0
  18. orchestrator/component_slicer.py +185 -0
  19. orchestrator/config.py +152 -0
  20. orchestrator/contract.py +404 -0
  21. orchestrator/dag_validator.py +172 -0
  22. orchestrator/elasticity_governor.py +80 -0
  23. orchestrator/env_doctor.py +166 -0
  24. orchestrator/errors.py +211 -0
  25. orchestrator/events.py +120 -0
  26. orchestrator/evidence.py +203 -0
  27. orchestrator/exceptions.py +37 -0
  28. orchestrator/experimental/arena_arbiter.py +260 -0
  29. orchestrator/experimental/fuzz_engine.py +206 -0
  30. orchestrator/experimental/mutation_tester.py +382 -0
  31. orchestrator/failure.py +226 -0
  32. orchestrator/fast_sandbox.py +126 -0
  33. orchestrator/feasibility_gate.py +115 -0
  34. orchestrator/feedback.py +302 -0
  35. orchestrator/fixtures/__init__.py +0 -0
  36. orchestrator/fixtures/example_contract.json +50 -0
  37. orchestrator/fixtures/generated/evidence-cli-run-test-step-1.json +47 -0
  38. orchestrator/fixtures/generated/evidence-cli-run-test-step-2.json +47 -0
  39. orchestrator/fixtures/generated/evidence-inject-test-a.json +47 -0
  40. orchestrator/fixtures/generated/evidence-inject-test-b.json +47 -0
  41. orchestrator/fixtures/generated/evidence-inject-test-c.json +47 -0
  42. orchestrator/fixtures/generated/evidence-json-test-a.json +47 -0
  43. orchestrator/fixtures/generated/evidence-json-test-b.json +47 -0
  44. orchestrator/fixtures/generated/fail-report-fail-task-1.json +47 -0
  45. orchestrator/fixtures/generated/fail-report-json-task-1.json +47 -0
  46. orchestrator/fixtures/generated/fail-report-success-task-1.json +47 -0
  47. orchestrator/fixtures/generated/fuzz-engine-design.json +63 -0
  48. orchestrator/fixtures/generated/fuzz-engine-impl.json +62 -0
  49. orchestrator/fixtures/generated/fuzz-engine-tests.json +62 -0
  50. orchestrator/fixtures/generated/fuzz-engine-verify.json +62 -0
  51. orchestrator/fixtures/generated/goal-orch-step-1.json +63 -0
  52. orchestrator/fixtures/generated/goal-orch-step-2.json +62 -0
  53. orchestrator/fixtures/generated/goal-orch-step-3.json +62 -0
  54. orchestrator/fixtures/generated/goal-orch-step-4.json +62 -0
  55. orchestrator/fixtures/generated/goal-orch-step-5.json +62 -0
  56. orchestrator/fixtures/generated/goal-orch-step-6.json +63 -0
  57. orchestrator/fixtures/generated/implement-a-thread-safe-token-bucket-rat-task-1.json +53 -0
  58. orchestrator/fixtures/generated/orchestrator-checkpoint-rollback-3.json +63 -0
  59. orchestrator/fixtures/generated/orchestrator-checkpoint-rollback.json +62 -0
  60. orchestrator/fixtures/generated/orchestrator-live-telemetry-2.json +62 -0
  61. orchestrator/fixtures/generated/orchestrator-live-telemetry.json +62 -0
  62. orchestrator/fixtures/generated/orchestrator-spec-synthesis-1.json +62 -0
  63. orchestrator/fixtures/generated/orchestrator-spec-synthesis.json +62 -0
  64. orchestrator/fixtures/generated/orchestrator-test-verification-4.json +62 -0
  65. orchestrator/fixtures/generated/orchestrator-test-verification.json +62 -0
  66. orchestrator/fixtures/generated/perf-step-1.json +61 -0
  67. orchestrator/fixtures/generated/perf-step-2.json +62 -0
  68. orchestrator/fixtures/generated/perf-step-3.json +62 -0
  69. orchestrator/fixtures/generated/perf-step-4.json +62 -0
  70. orchestrator/fixtures/generated/perf-step-5.json +63 -0
  71. orchestrator/fixtures/generated/phase2-proof-two-step-step-1.json +47 -0
  72. orchestrator/fixtures/generated/phase2-proof-two-step-step-2.json +47 -0
  73. orchestrator/fixtures/generated/planner-spec-synthesis-impl.json +59 -0
  74. orchestrator/fixtures/generated/self-evolution-ast-formatter.json +69 -0
  75. orchestrator/fixtures/generated/self-evolution-checkpoint-rollback.json +70 -0
  76. orchestrator/fixtures/generated/self-evolution-spec-synthesis.json +70 -0
  77. orchestrator/fixtures/generated/self-evolution-step-1.json +70 -0
  78. orchestrator/fixtures/generated/self-evolution-step-2.json +70 -0
  79. orchestrator/fixtures/generated/self-evolution-step-3.json +70 -0
  80. orchestrator/fixtures/generated/self-evolution-step-4.json +70 -0
  81. orchestrator/fixtures/generated/self-evolution-step-5.json +65 -0
  82. orchestrator/fixtures/generated/self-evolution-telemetry.json +70 -0
  83. orchestrator/fixtures/generated/self-evolution-tests.json +71 -0
  84. orchestrator/fixtures/generated/spec-telemetry-research-design.json +64 -0
  85. orchestrator/fixtures/generated/spec-telemetry-step-1.json +62 -0
  86. orchestrator/fixtures/generated/spec-telemetry-step-2.json +62 -0
  87. orchestrator/fixtures/generated/spec-telemetry-step-3.json +62 -0
  88. orchestrator/fixtures/generated/spec-telemetry-step-4.json +62 -0
  89. orchestrator/fixtures/generated/spec-telemetry-step-5.json +62 -0
  90. orchestrator/fixtures/generated/spec-telemetry-verification.json +58 -0
  91. orchestrator/fixtures/generated/token-bucket-impl.json +69 -0
  92. orchestrator/fixtures/generated/token-bucket-step-1.json +70 -0
  93. orchestrator/fixtures/generated/token-bucket-step-2.json +70 -0
  94. orchestrator/fixtures/generated/token-bucket-step-3.json +60 -0
  95. orchestrator/fixtures/generated/token-bucket-tests.json +70 -0
  96. orchestrator/fixtures/generated/token-bucket-verify.json +61 -0
  97. orchestrator/fixtures/generated/trace-ux-tests-step-1.json +64 -0
  98. orchestrator/fixtures/generated/trace-ux-tests-step-2.json +64 -0
  99. orchestrator/fixtures/generated/trace-ux-tests-step-3.json +62 -0
  100. orchestrator/fixtures/generated/tui-live-telemetry-impl.json +59 -0
  101. orchestrator/fixtures/phase1_proof_escalation_contract.json +41 -0
  102. orchestrator/fixtures/phase1_proof_happy_path_contract.json +83 -0
  103. orchestrator/fixtures/phase1_proof_qc_contract.json +41 -0
  104. orchestrator/fixtures/phase1_proof_repair_contract.json +41 -0
  105. orchestrator/fixtures/phase2_proof_two_step_goal.json +15 -0
  106. orchestrator/fixtures/run_proofs.py +299 -0
  107. orchestrator/fixtures/test_normalizer.py +16 -0
  108. orchestrator/generator.py +239 -0
  109. orchestrator/goal.py +245 -0
  110. orchestrator/handoff.py +86 -0
  111. orchestrator/hybrid_worker.py +840 -0
  112. orchestrator/impossibility.py +162 -0
  113. orchestrator/limits.py +60 -0
  114. orchestrator/live_evolution_engine.py +247 -0
  115. orchestrator/llm.py +291 -0
  116. orchestrator/local_tool_calling.py +285 -0
  117. orchestrator/lock.py +404 -0
  118. orchestrator/mcp_client.py +571 -0
  119. orchestrator/mcp_server.py +344 -0
  120. orchestrator/memory_bridge.py +182 -0
  121. orchestrator/metrics.py +159 -0
  122. orchestrator/micro_epoch.py +42 -0
  123. orchestrator/models.py +350 -0
  124. orchestrator/parsing.py +237 -0
  125. orchestrator/patch_applier.py +154 -0
  126. orchestrator/plan_preview.py +138 -0
  127. orchestrator/plan_quality.py +357 -0
  128. orchestrator/planner.py +532 -0
  129. orchestrator/preferences.py +115 -0
  130. orchestrator/preflight.py +141 -0
  131. orchestrator/process_guard.py +357 -0
  132. orchestrator/prometheus_exporter.py +207 -0
  133. orchestrator/prompts.py +275 -0
  134. orchestrator/proposal_ledger.py +194 -0
  135. orchestrator/provenance.py +263 -0
  136. orchestrator/provider_scheduler.py +394 -0
  137. orchestrator/qc/__init__.py +153 -0
  138. orchestrator/qc/aggregator.py +330 -0
  139. orchestrator/qc/parsing.py +287 -0
  140. orchestrator/qc/personas.py +242 -0
  141. orchestrator/qc/runner.py +569 -0
  142. orchestrator/qc_overrule.py +87 -0
  143. orchestrator/qc_review.py +282 -0
  144. orchestrator/quality_lenses.py +314 -0
  145. orchestrator/quality_plan.py +449 -0
  146. orchestrator/quality_plane.py +103 -0
  147. orchestrator/reconcile.py +191 -0
  148. orchestrator/replanner.py +433 -0
  149. orchestrator/research.py +176 -0
  150. orchestrator/review_artifact.py +672 -0
  151. orchestrator/safety.py +271 -0
  152. orchestrator/schemas.py +230 -0
  153. orchestrator/scope.py +466 -0
  154. orchestrator/sensory_radar.py +79 -0
  155. orchestrator/skill_installer.py +140 -0
  156. orchestrator/sse_server.py +160 -0
  157. orchestrator/state.py +871 -0
  158. orchestrator/subprocess_helper.py +131 -0
  159. orchestrator/supervisor/__init__.py +184 -0
  160. orchestrator/supervisor/_shared.py +164 -0
  161. orchestrator/supervisor/cleanup.py +185 -0
  162. orchestrator/supervisor/core.py +1680 -0
  163. orchestrator/supervisor/recovery.py +367 -0
  164. orchestrator/supervisor/reporting.py +251 -0
  165. orchestrator/surgical_extractor.py +119 -0
  166. orchestrator/telemetry.py +61 -0
  167. orchestrator/templates.py +268 -0
  168. orchestrator/token_gate.py +245 -0
  169. orchestrator/tui.py +649 -0
  170. orchestrator/verifier.py +1103 -0
  171. orchestrator/webhooks.py +168 -0
  172. orchestrator/worker.py +469 -0
  173. orchestrator/worker_adapters.py +815 -0
  174. orchestrator/worker_pool.py +121 -0
  175. orchestrator/worktree.py +364 -0
@@ -0,0 +1,61 @@
1
+ {
2
+ "task_id": "perf-step-1",
3
+ "title": "Step 1: Implement Dynamic Thinking Budget",
4
+ "status": "DRAFTED",
5
+ "risk_tier": "auto",
6
+ "workspace_scope": {
7
+ "allow": [
8
+ "scratch/"
9
+ ],
10
+ "deny": [
11
+ ".agents/",
12
+ ".claude/",
13
+ ".opencode/",
14
+ "AGENTS.md",
15
+ "memory/"
16
+ ]
17
+ },
18
+ "objective": "Implement dynamic thinking budget in orchestrator/models.py and orchestrator/hybrid_worker.py to support high thinking budgets for planning tasks and 0-1024 low thinking budgets for worker execution steps.",
19
+ "worker": {
20
+ "model": "hybrid:gemini:gemini-3.7-flash",
21
+ "max_attempts": 3,
22
+ "hybrid_critic_model": "openai:gpt-4o-mini",
23
+ "hybrid_max_repair_turns": 3,
24
+ "hybrid_max_tokens": 32000,
25
+ "hybrid_max_cost_usd": 0.3,
26
+ "hybrid_max_identical_verdicts": 2
27
+ },
28
+ "inputs": [],
29
+ "outputs": [
30
+ {
31
+ "path": "scratch/orchestrator/dynamic_thinking_patch.py"
32
+ }
33
+ ],
34
+ "acceptance_checks": [
35
+ {
36
+ "id": "check-1",
37
+ "kind": "content_regex",
38
+ "path": "scratch/orchestrator/dynamic_thinking_patch.py",
39
+ "expected": "(?s).*thinking_budget.*"
40
+ }
41
+ ],
42
+ "quality_spec": {
43
+ "required_sections": [
44
+ "models_thinking_config",
45
+ "worker_thinking_budget_allocation"
46
+ ],
47
+ "quality_dimensions": {
48
+ "completeness": 0.5,
49
+ "correctness": 0.5
50
+ },
51
+ "hard_failures": [
52
+ "syntax_error",
53
+ "missing_budget_bounds_check"
54
+ ],
55
+ "minimum_score": 0.85
56
+ },
57
+ "qc": {
58
+ "required": true,
59
+ "lens": "code_correctness"
60
+ }
61
+ }
@@ -0,0 +1,62 @@
1
+ {
2
+ "task_id": "perf-step-2",
3
+ "title": "Step 2: Implement Concurrent DAG Execution in Supervisor",
4
+ "status": "DRAFTED",
5
+ "risk_tier": "auto",
6
+ "workspace_scope": {
7
+ "allow": [
8
+ "scratch/"
9
+ ],
10
+ "deny": [
11
+ ".agents/",
12
+ ".claude/",
13
+ ".opencode/",
14
+ "AGENTS.md",
15
+ "memory/"
16
+ ]
17
+ },
18
+ "objective": "Implement ThreadPoolExecutor-based concurrent task execution in orchestrator/supervisor.py to run independent DAG contract tasks in parallel.",
19
+ "worker": {
20
+ "model": "hybrid:gemini:gemini-3.7-flash",
21
+ "max_attempts": 3,
22
+ "hybrid_critic_model": "openai:gpt-4o-mini",
23
+ "hybrid_max_repair_turns": 3,
24
+ "hybrid_max_tokens": 32000,
25
+ "hybrid_max_cost_usd": 0.3,
26
+ "hybrid_max_identical_verdicts": 2
27
+ },
28
+ "inputs": [],
29
+ "outputs": [
30
+ {
31
+ "path": "scratch/orchestrator/concurrent_dag_patch.py"
32
+ }
33
+ ],
34
+ "acceptance_checks": [
35
+ {
36
+ "id": "check-2",
37
+ "kind": "content_regex",
38
+ "path": "scratch/orchestrator/concurrent_dag_patch.py",
39
+ "expected": "(?s).*ThreadPoolExecutor.*"
40
+ }
41
+ ],
42
+ "quality_spec": {
43
+ "required_sections": [
44
+ "thread_pool_initialization",
45
+ "dag_dependency_resolution",
46
+ "concurrent_task_dispatch"
47
+ ],
48
+ "quality_dimensions": {
49
+ "completeness": 0.5,
50
+ "correctness": 0.5
51
+ },
52
+ "hard_failures": [
53
+ "deadlock_risk",
54
+ "unhandled_task_exception"
55
+ ],
56
+ "minimum_score": 0.85
57
+ },
58
+ "qc": {
59
+ "required": true,
60
+ "lens": "code_correctness"
61
+ }
62
+ }
@@ -0,0 +1,62 @@
1
+ {
2
+ "task_id": "perf-step-3",
3
+ "title": "Step 3: Implement 3-Tier Verification Engine",
4
+ "status": "DRAFTED",
5
+ "risk_tier": "auto",
6
+ "workspace_scope": {
7
+ "allow": [
8
+ "scratch/"
9
+ ],
10
+ "deny": [
11
+ ".agents/",
12
+ ".claude/",
13
+ ".opencode/",
14
+ "AGENTS.md",
15
+ "memory/"
16
+ ]
17
+ },
18
+ "objective": "Implement 3-tier verification in orchestrator/verifier.py with Tier 0 (<5ms in-memory AST syntax check), Tier 1 (targeted single-file pytest), and Tier 2 (full suite on goal completion).",
19
+ "worker": {
20
+ "model": "hybrid:gemini:gemini-3.7-flash",
21
+ "max_attempts": 3,
22
+ "hybrid_critic_model": "openai:gpt-4o-mini",
23
+ "hybrid_max_repair_turns": 3,
24
+ "hybrid_max_tokens": 32000,
25
+ "hybrid_max_cost_usd": 0.3,
26
+ "hybrid_max_identical_verdicts": 2
27
+ },
28
+ "inputs": [],
29
+ "outputs": [
30
+ {
31
+ "path": "scratch/orchestrator/three_tier_verifier_patch.py"
32
+ }
33
+ ],
34
+ "acceptance_checks": [
35
+ {
36
+ "id": "check-3",
37
+ "kind": "content_regex",
38
+ "path": "scratch/orchestrator/three_tier_verifier_patch.py",
39
+ "expected": "(?s).*ast\\.parse.*pytest.*"
40
+ }
41
+ ],
42
+ "quality_spec": {
43
+ "required_sections": [
44
+ "tier_0_ast_check",
45
+ "tier_1_targeted_test",
46
+ "tier_2_full_suite"
47
+ ],
48
+ "quality_dimensions": {
49
+ "completeness": 0.5,
50
+ "correctness": 0.5
51
+ },
52
+ "hard_failures": [
53
+ "ast_check_missing",
54
+ "tier0_latency_exceeds_threshold"
55
+ ],
56
+ "minimum_score": 0.85
57
+ },
58
+ "qc": {
59
+ "required": true,
60
+ "lens": "code_correctness"
61
+ }
62
+ }
@@ -0,0 +1,62 @@
1
+ {
2
+ "task_id": "perf-step-4",
3
+ "title": "Step 4: Implement Interactive Colorized CLI Trace Command",
4
+ "status": "DRAFTED",
5
+ "risk_tier": "auto",
6
+ "workspace_scope": {
7
+ "allow": [
8
+ "scratch/"
9
+ ],
10
+ "deny": [
11
+ ".agents/",
12
+ ".claude/",
13
+ ".opencode/",
14
+ "AGENTS.md",
15
+ "memory/"
16
+ ]
17
+ },
18
+ "objective": "Implement the 'lil trace <goal-id>' command in orchestrator/cli.py to display an interactive, colorized step-by-step reasoning and latency timeline.",
19
+ "worker": {
20
+ "model": "hybrid:gemini:gemini-3.7-flash",
21
+ "max_attempts": 3,
22
+ "hybrid_critic_model": "openai:gpt-4o-mini",
23
+ "hybrid_max_repair_turns": 3,
24
+ "hybrid_max_tokens": 32000,
25
+ "hybrid_max_cost_usd": 0.3,
26
+ "hybrid_max_identical_verdicts": 2
27
+ },
28
+ "inputs": [],
29
+ "outputs": [
30
+ {
31
+ "path": "scratch/orchestrator/cli_trace_patch.py"
32
+ }
33
+ ],
34
+ "acceptance_checks": [
35
+ {
36
+ "id": "check-4",
37
+ "kind": "content_regex",
38
+ "path": "scratch/orchestrator/cli_trace_patch.py",
39
+ "expected": "(?s).*def\\s+trace.*latency.*"
40
+ }
41
+ ],
42
+ "quality_spec": {
43
+ "required_sections": [
44
+ "trace_cli_command",
45
+ "timeline_formatter",
46
+ "colorized_output_renderer"
47
+ ],
48
+ "quality_dimensions": {
49
+ "completeness": 0.5,
50
+ "correctness": 0.5
51
+ },
52
+ "hard_failures": [
53
+ "missing_trace_command",
54
+ "missing_latency_metrics"
55
+ ],
56
+ "minimum_score": 0.85
57
+ },
58
+ "qc": {
59
+ "required": true,
60
+ "lens": "code_correctness"
61
+ }
62
+ }
@@ -0,0 +1,63 @@
1
+ {
2
+ "task_id": "perf-step-5",
3
+ "title": "Step 5: Add Unit Tests & Verify Performance & Trace",
4
+ "status": "DRAFTED",
5
+ "risk_tier": "auto",
6
+ "workspace_scope": {
7
+ "allow": [
8
+ "scratch/"
9
+ ],
10
+ "deny": [
11
+ ".agents/",
12
+ ".claude/",
13
+ ".opencode/",
14
+ "AGENTS.md",
15
+ "memory/"
16
+ ]
17
+ },
18
+ "objective": "Add comprehensive unit tests in tests/test_performance_and_trace.py covering dynamic thinking budget, DAG concurrency, 3-tier verifier stages, and CLI trace command, ensuring a 100% test pass rate.",
19
+ "worker": {
20
+ "model": "openai:gpt-4o-mini",
21
+ "max_attempts": 2,
22
+ "hybrid_critic_model": "openai:gpt-4o-mini",
23
+ "hybrid_max_repair_turns": 3,
24
+ "hybrid_max_tokens": 32000,
25
+ "hybrid_max_cost_usd": 0.3,
26
+ "hybrid_max_identical_verdicts": 2
27
+ },
28
+ "inputs": [],
29
+ "outputs": [
30
+ {
31
+ "path": "scratch/tests/test_performance_and_trace.py"
32
+ }
33
+ ],
34
+ "acceptance_checks": [
35
+ {
36
+ "id": "check-5",
37
+ "kind": "content_regex",
38
+ "path": "scratch/tests/test_performance_and_trace.py",
39
+ "expected": "(?s).*def\\s+test_.*"
40
+ }
41
+ ],
42
+ "quality_spec": {
43
+ "required_sections": [
44
+ "test_thinking_budget",
45
+ "test_dag_concurrency",
46
+ "test_three_tier_verification",
47
+ "test_cli_trace_timeline"
48
+ ],
49
+ "quality_dimensions": {
50
+ "completeness": 0.5,
51
+ "correctness": 0.5
52
+ },
53
+ "hard_failures": [
54
+ "failing_tests",
55
+ "insufficient_assertions"
56
+ ],
57
+ "minimum_score": 0.9
58
+ },
59
+ "qc": {
60
+ "required": true,
61
+ "lens": "code_correctness"
62
+ }
63
+ }
@@ -0,0 +1,47 @@
1
+ {
2
+ "task_id": "phase2-proof-two-step-step-1",
3
+ "title": "Two-step proof - Step 1 (Implementation)",
4
+ "status": "DRAFTED",
5
+ "risk_tier": "auto",
6
+ "workspace_scope": {
7
+ "allow": [
8
+ "scratch/phase2/proof/"
9
+ ],
10
+ "deny": []
11
+ },
12
+ "objective": "Execute step 1 implementation",
13
+ "worker": {
14
+ "model": "hybrid:gemini:gemini-3.7-flash",
15
+ "max_attempts": 3,
16
+ "hybrid_critic_model": "gemini:gemini-3.7-flash",
17
+ "hybrid_max_repair_turns": 3,
18
+ "hybrid_max_tokens": 32000,
19
+ "hybrid_max_cost_usd": 0.3,
20
+ "hybrid_max_identical_verdicts": 2
21
+ },
22
+ "inputs": [],
23
+ "outputs": [
24
+ {
25
+ "path": "scratch/phase2/proof/step1.txt"
26
+ }
27
+ ],
28
+ "acceptance_checks": [
29
+ {
30
+ "id": "chk-min_size",
31
+ "kind": "min_size",
32
+ "path": "scratch/phase2/proof/step1.txt",
33
+ "expected": 1
34
+ },
35
+ {
36
+ "id": "chk-content",
37
+ "kind": "content_regex",
38
+ "path": "scratch/phase2/proof/step1.txt",
39
+ "expected": ".+"
40
+ }
41
+ ],
42
+ "qc": {
43
+ "required": false,
44
+ "lens": "code_correctness"
45
+ },
46
+ "quality_spec": {}
47
+ }
@@ -0,0 +1,47 @@
1
+ {
2
+ "task_id": "phase2-proof-two-step-step-2",
3
+ "title": "Two-step proof - Step 2 (Verification)",
4
+ "status": "DRAFTED",
5
+ "risk_tier": "auto",
6
+ "workspace_scope": {
7
+ "allow": [
8
+ "scratch/phase2/proof/"
9
+ ],
10
+ "deny": []
11
+ },
12
+ "objective": "Verify step 1 output",
13
+ "worker": {
14
+ "model": "gemini:gemini-3.7-flash",
15
+ "max_attempts": 2,
16
+ "hybrid_critic_model": "gemini:gemini-3.7-flash",
17
+ "hybrid_max_repair_turns": 3,
18
+ "hybrid_max_tokens": 32000,
19
+ "hybrid_max_cost_usd": 0.3,
20
+ "hybrid_max_identical_verdicts": 2
21
+ },
22
+ "inputs": [],
23
+ "outputs": [
24
+ {
25
+ "path": "scratch/phase2/proof/step2.txt"
26
+ }
27
+ ],
28
+ "acceptance_checks": [
29
+ {
30
+ "id": "chk-min_size",
31
+ "kind": "min_size",
32
+ "path": "scratch/phase2/proof/step2.txt",
33
+ "expected": 1
34
+ },
35
+ {
36
+ "id": "chk-content",
37
+ "kind": "content_regex",
38
+ "path": "scratch/phase2/proof/step2.txt",
39
+ "expected": ".+"
40
+ }
41
+ ],
42
+ "qc": {
43
+ "required": false,
44
+ "lens": "code_correctness"
45
+ },
46
+ "quality_spec": {}
47
+ }
@@ -0,0 +1,59 @@
1
+ {
2
+ "task_id": "planner-spec-synthesis-impl",
3
+ "title": "Step 2: Implement automated spec synthesis in planner",
4
+ "status": "DRAFTED",
5
+ "risk_tier": "auto",
6
+ "workspace_scope": {
7
+ "allow": [
8
+ "scratch/"
9
+ ],
10
+ "deny": [
11
+ ".agents/",
12
+ ".claude/",
13
+ ".opencode/",
14
+ "AGENTS.md",
15
+ "memory/"
16
+ ]
17
+ },
18
+ "objective": "Implement automated spec synthesis logic in scratch/spec_synthesis_planner.py with contract generation, schema validation, and fallback handling.",
19
+ "worker": {
20
+ "model": "hybrid:gemini:gemini-3.7-flash",
21
+ "max_attempts": 3,
22
+ "hybrid_critic_model": "gemini:gemini-3.7-flash",
23
+ "hybrid_max_repair_turns": 3,
24
+ "hybrid_max_tokens": 32000,
25
+ "hybrid_max_cost_usd": 0.3,
26
+ "hybrid_max_identical_verdicts": 2
27
+ },
28
+ "inputs": [],
29
+ "outputs": [
30
+ {
31
+ "path": "scratch/spec_synthesis_planner.py"
32
+ }
33
+ ],
34
+ "acceptance_checks": [
35
+ {
36
+ "id": "check-spec-synth-code",
37
+ "kind": "content_regex",
38
+ "path": "scratch/spec_synthesis_planner.py",
39
+ "expected": "def synthesize_spec\\("
40
+ }
41
+ ],
42
+ "quality_spec": {
43
+ "required_sections": [],
44
+ "quality_dimensions": {
45
+ "completeness": 0.4,
46
+ "correctness": 0.4,
47
+ "maintainability": 0.2
48
+ },
49
+ "hard_failures": [
50
+ "syntax_error",
51
+ "missing_synthesize_spec_function"
52
+ ],
53
+ "minimum_score": 0.85
54
+ },
55
+ "qc": {
56
+ "required": true,
57
+ "lens": "code_correctness"
58
+ }
59
+ }
@@ -0,0 +1,69 @@
1
+ {
2
+ "task_id": "self-evolution-ast-formatter",
3
+ "title": "Step 4: In-Memory AST Auto-Formatter in orchestrator/verifier.py",
4
+ "status": "DRAFTED",
5
+ "risk_tier": "auto",
6
+ "workspace_scope": {
7
+ "allow": [
8
+ "scratch/"
9
+ ],
10
+ "deny": [
11
+ ".agents/",
12
+ ".claude/",
13
+ ".opencode/",
14
+ "AGENTS.md",
15
+ "memory/"
16
+ ]
17
+ },
18
+ "objective": "Implement in-memory AST auto-formatter in orchestrator/verifier.py to strip unused imports and normalize Python syntax prior to running deterministic verification checks.",
19
+ "worker": {
20
+ "model": "hybrid:gemini:gemini-3.7-flash",
21
+ "max_attempts": 3,
22
+ "hybrid_critic_model": "openai:gpt-5.6-luna",
23
+ "hybrid_max_repair_turns": 3,
24
+ "hybrid_max_tokens": 32000,
25
+ "hybrid_max_cost_usd": 0.3,
26
+ "hybrid_max_identical_verdicts": 2
27
+ },
28
+ "inputs": [],
29
+ "outputs": [
30
+ {
31
+ "path": "scratch/self_evolution/ast_formatter.py"
32
+ }
33
+ ],
34
+ "acceptance_checks": [
35
+ {
36
+ "id": "check-formatter-func",
37
+ "kind": "content_regex",
38
+ "path": "scratch/self_evolution/ast_formatter.py",
39
+ "expected": "def format_and_clean_ast\\("
40
+ },
41
+ {
42
+ "id": "check-unused-imports",
43
+ "kind": "content_regex",
44
+ "path": "scratch/self_evolution/ast_formatter.py",
45
+ "expected": "strip_unused_imports"
46
+ }
47
+ ],
48
+ "quality_spec": {
49
+ "required_sections": [
50
+ "ASTAutoFormatter",
51
+ "format_and_clean_ast",
52
+ "strip_unused_imports"
53
+ ],
54
+ "quality_dimensions": {
55
+ "completeness": 0.5,
56
+ "correctness": 0.5
57
+ },
58
+ "hard_failures": [
59
+ "syntax_error",
60
+ "destructive_ast_mutation",
61
+ "missing_unused_import_removal"
62
+ ],
63
+ "minimum_score": 0.85
64
+ },
65
+ "qc": {
66
+ "required": true,
67
+ "lens": "code_correctness"
68
+ }
69
+ }
@@ -0,0 +1,70 @@
1
+ {
2
+ "task_id": "self-evolution-checkpoint-rollback",
3
+ "title": "Step 3: Resilient Checkpoint Auto-Rollback in orchestrator/checkpoint.py",
4
+ "status": "DRAFTED",
5
+ "risk_tier": "auto",
6
+ "workspace_scope": {
7
+ "allow": [
8
+ "scratch/"
9
+ ],
10
+ "deny": [
11
+ ".agents/",
12
+ ".claude/",
13
+ ".opencode/",
14
+ "AGENTS.md",
15
+ "memory/"
16
+ ]
17
+ },
18
+ "objective": "Implement resilient auto-rollback logic in orchestrator/checkpoint.py to restore dirty workspace files and WAL state back to the last verified checkpoint if checks fail after max attempts.",
19
+ "worker": {
20
+ "model": "hybrid:gemini:gemini-3.7-flash",
21
+ "max_attempts": 3,
22
+ "hybrid_critic_model": "openai:gpt-5.6-luna",
23
+ "hybrid_max_repair_turns": 3,
24
+ "hybrid_max_tokens": 32000,
25
+ "hybrid_max_cost_usd": 0.3,
26
+ "hybrid_max_identical_verdicts": 2
27
+ },
28
+ "inputs": [],
29
+ "outputs": [
30
+ {
31
+ "path": "scratch/self_evolution/checkpoint_rollback.py"
32
+ }
33
+ ],
34
+ "acceptance_checks": [
35
+ {
36
+ "id": "check-rollback-func",
37
+ "kind": "content_regex",
38
+ "path": "scratch/self_evolution/checkpoint_rollback.py",
39
+ "expected": "def auto_rollback\\("
40
+ },
41
+ {
42
+ "id": "check-wal-restore",
43
+ "kind": "content_regex",
44
+ "path": "scratch/self_evolution/checkpoint_rollback.py",
45
+ "expected": "restore_wal_state"
46
+ }
47
+ ],
48
+ "quality_spec": {
49
+ "required_sections": [
50
+ "CheckpointManager",
51
+ "auto_rollback",
52
+ "restore_wal_state",
53
+ "revert_dirty_files"
54
+ ],
55
+ "quality_dimensions": {
56
+ "completeness": 0.5,
57
+ "correctness": 0.5
58
+ },
59
+ "hard_failures": [
60
+ "syntax_error",
61
+ "unhandled_wal_corruption",
62
+ "missing_dirty_file_revert"
63
+ ],
64
+ "minimum_score": 0.85
65
+ },
66
+ "qc": {
67
+ "required": true,
68
+ "lens": "code_correctness"
69
+ }
70
+ }
@@ -0,0 +1,70 @@
1
+ {
2
+ "task_id": "self-evolution-spec-synthesis",
3
+ "title": "Step 1: Automated Spec Synthesis in orchestrator/planner.py",
4
+ "status": "DRAFTED",
5
+ "risk_tier": "auto",
6
+ "workspace_scope": {
7
+ "allow": [
8
+ "scratch/"
9
+ ],
10
+ "deny": [
11
+ ".agents/",
12
+ ".claude/",
13
+ ".opencode/",
14
+ "AGENTS.md",
15
+ "memory/"
16
+ ]
17
+ },
18
+ "objective": "Implement automated spec synthesis in orchestrator/planner.py to dynamically generate deterministic AST and regex acceptance criteria for underspecified user goals.",
19
+ "worker": {
20
+ "model": "hybrid:gemini:gemini-3.7-flash",
21
+ "max_attempts": 3,
22
+ "hybrid_critic_model": "openai:gpt-5.6-luna",
23
+ "hybrid_max_repair_turns": 3,
24
+ "hybrid_max_tokens": 32000,
25
+ "hybrid_max_cost_usd": 0.3,
26
+ "hybrid_max_identical_verdicts": 2
27
+ },
28
+ "inputs": [],
29
+ "outputs": [
30
+ {
31
+ "path": "scratch/self_evolution/spec_synthesizer.py"
32
+ }
33
+ ],
34
+ "acceptance_checks": [
35
+ {
36
+ "id": "check-spec-synth-func",
37
+ "kind": "content_regex",
38
+ "path": "scratch/self_evolution/spec_synthesizer.py",
39
+ "expected": "def synthesize_spec\\("
40
+ },
41
+ {
42
+ "id": "check-ast-regex-criteria",
43
+ "kind": "content_regex",
44
+ "path": "scratch/self_evolution/spec_synthesizer.py",
45
+ "expected": "(ASTCheck|RegexCheck|acceptance_criteria)"
46
+ }
47
+ ],
48
+ "quality_spec": {
49
+ "required_sections": [
50
+ "SpecSynthesizer",
51
+ "synthesize_spec",
52
+ "ast_criteria_generator",
53
+ "regex_criteria_generator"
54
+ ],
55
+ "quality_dimensions": {
56
+ "completeness": 0.5,
57
+ "correctness": 0.5
58
+ },
59
+ "hard_failures": [
60
+ "syntax_error",
61
+ "missing_ast_generation",
62
+ "missing_regex_generation"
63
+ ],
64
+ "minimum_score": 0.85
65
+ },
66
+ "qc": {
67
+ "required": true,
68
+ "lens": "code_correctness"
69
+ }
70
+ }