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.
- letitloop-0.2.0.dist-info/METADATA +232 -0
- letitloop-0.2.0.dist-info/RECORD +175 -0
- letitloop-0.2.0.dist-info/WHEEL +5 -0
- letitloop-0.2.0.dist-info/entry_points.txt +4 -0
- letitloop-0.2.0.dist-info/licenses/LICENSE +21 -0
- letitloop-0.2.0.dist-info/top_level.txt +1 -0
- orchestrator/SKILL.md +292 -0
- orchestrator/__init__.py +151 -0
- orchestrator/anti_ouroboros.py +78 -0
- orchestrator/approval.py +139 -0
- orchestrator/ast_node_splicer.py +130 -0
- orchestrator/ast_splicer.py +94 -0
- orchestrator/audit.py +88 -0
- orchestrator/budget.py +195 -0
- orchestrator/checkpoint.py +248 -0
- orchestrator/cli.py +1971 -0
- orchestrator/codebase_introspector.py +66 -0
- orchestrator/component_slicer.py +185 -0
- orchestrator/config.py +152 -0
- orchestrator/contract.py +404 -0
- orchestrator/dag_validator.py +172 -0
- orchestrator/elasticity_governor.py +80 -0
- orchestrator/env_doctor.py +166 -0
- orchestrator/errors.py +211 -0
- orchestrator/events.py +120 -0
- orchestrator/evidence.py +203 -0
- orchestrator/exceptions.py +37 -0
- orchestrator/experimental/arena_arbiter.py +260 -0
- orchestrator/experimental/fuzz_engine.py +206 -0
- orchestrator/experimental/mutation_tester.py +382 -0
- orchestrator/failure.py +226 -0
- orchestrator/fast_sandbox.py +126 -0
- orchestrator/feasibility_gate.py +115 -0
- orchestrator/feedback.py +302 -0
- orchestrator/fixtures/__init__.py +0 -0
- orchestrator/fixtures/example_contract.json +50 -0
- orchestrator/fixtures/generated/evidence-cli-run-test-step-1.json +47 -0
- orchestrator/fixtures/generated/evidence-cli-run-test-step-2.json +47 -0
- orchestrator/fixtures/generated/evidence-inject-test-a.json +47 -0
- orchestrator/fixtures/generated/evidence-inject-test-b.json +47 -0
- orchestrator/fixtures/generated/evidence-inject-test-c.json +47 -0
- orchestrator/fixtures/generated/evidence-json-test-a.json +47 -0
- orchestrator/fixtures/generated/evidence-json-test-b.json +47 -0
- orchestrator/fixtures/generated/fail-report-fail-task-1.json +47 -0
- orchestrator/fixtures/generated/fail-report-json-task-1.json +47 -0
- orchestrator/fixtures/generated/fail-report-success-task-1.json +47 -0
- orchestrator/fixtures/generated/fuzz-engine-design.json +63 -0
- orchestrator/fixtures/generated/fuzz-engine-impl.json +62 -0
- orchestrator/fixtures/generated/fuzz-engine-tests.json +62 -0
- orchestrator/fixtures/generated/fuzz-engine-verify.json +62 -0
- orchestrator/fixtures/generated/goal-orch-step-1.json +63 -0
- orchestrator/fixtures/generated/goal-orch-step-2.json +62 -0
- orchestrator/fixtures/generated/goal-orch-step-3.json +62 -0
- orchestrator/fixtures/generated/goal-orch-step-4.json +62 -0
- orchestrator/fixtures/generated/goal-orch-step-5.json +62 -0
- orchestrator/fixtures/generated/goal-orch-step-6.json +63 -0
- orchestrator/fixtures/generated/implement-a-thread-safe-token-bucket-rat-task-1.json +53 -0
- orchestrator/fixtures/generated/orchestrator-checkpoint-rollback-3.json +63 -0
- orchestrator/fixtures/generated/orchestrator-checkpoint-rollback.json +62 -0
- orchestrator/fixtures/generated/orchestrator-live-telemetry-2.json +62 -0
- orchestrator/fixtures/generated/orchestrator-live-telemetry.json +62 -0
- orchestrator/fixtures/generated/orchestrator-spec-synthesis-1.json +62 -0
- orchestrator/fixtures/generated/orchestrator-spec-synthesis.json +62 -0
- orchestrator/fixtures/generated/orchestrator-test-verification-4.json +62 -0
- orchestrator/fixtures/generated/orchestrator-test-verification.json +62 -0
- orchestrator/fixtures/generated/perf-step-1.json +61 -0
- orchestrator/fixtures/generated/perf-step-2.json +62 -0
- orchestrator/fixtures/generated/perf-step-3.json +62 -0
- orchestrator/fixtures/generated/perf-step-4.json +62 -0
- orchestrator/fixtures/generated/perf-step-5.json +63 -0
- orchestrator/fixtures/generated/phase2-proof-two-step-step-1.json +47 -0
- orchestrator/fixtures/generated/phase2-proof-two-step-step-2.json +47 -0
- orchestrator/fixtures/generated/planner-spec-synthesis-impl.json +59 -0
- orchestrator/fixtures/generated/self-evolution-ast-formatter.json +69 -0
- orchestrator/fixtures/generated/self-evolution-checkpoint-rollback.json +70 -0
- orchestrator/fixtures/generated/self-evolution-spec-synthesis.json +70 -0
- orchestrator/fixtures/generated/self-evolution-step-1.json +70 -0
- orchestrator/fixtures/generated/self-evolution-step-2.json +70 -0
- orchestrator/fixtures/generated/self-evolution-step-3.json +70 -0
- orchestrator/fixtures/generated/self-evolution-step-4.json +70 -0
- orchestrator/fixtures/generated/self-evolution-step-5.json +65 -0
- orchestrator/fixtures/generated/self-evolution-telemetry.json +70 -0
- orchestrator/fixtures/generated/self-evolution-tests.json +71 -0
- orchestrator/fixtures/generated/spec-telemetry-research-design.json +64 -0
- orchestrator/fixtures/generated/spec-telemetry-step-1.json +62 -0
- orchestrator/fixtures/generated/spec-telemetry-step-2.json +62 -0
- orchestrator/fixtures/generated/spec-telemetry-step-3.json +62 -0
- orchestrator/fixtures/generated/spec-telemetry-step-4.json +62 -0
- orchestrator/fixtures/generated/spec-telemetry-step-5.json +62 -0
- orchestrator/fixtures/generated/spec-telemetry-verification.json +58 -0
- orchestrator/fixtures/generated/token-bucket-impl.json +69 -0
- orchestrator/fixtures/generated/token-bucket-step-1.json +70 -0
- orchestrator/fixtures/generated/token-bucket-step-2.json +70 -0
- orchestrator/fixtures/generated/token-bucket-step-3.json +60 -0
- orchestrator/fixtures/generated/token-bucket-tests.json +70 -0
- orchestrator/fixtures/generated/token-bucket-verify.json +61 -0
- orchestrator/fixtures/generated/trace-ux-tests-step-1.json +64 -0
- orchestrator/fixtures/generated/trace-ux-tests-step-2.json +64 -0
- orchestrator/fixtures/generated/trace-ux-tests-step-3.json +62 -0
- orchestrator/fixtures/generated/tui-live-telemetry-impl.json +59 -0
- orchestrator/fixtures/phase1_proof_escalation_contract.json +41 -0
- orchestrator/fixtures/phase1_proof_happy_path_contract.json +83 -0
- orchestrator/fixtures/phase1_proof_qc_contract.json +41 -0
- orchestrator/fixtures/phase1_proof_repair_contract.json +41 -0
- orchestrator/fixtures/phase2_proof_two_step_goal.json +15 -0
- orchestrator/fixtures/run_proofs.py +299 -0
- orchestrator/fixtures/test_normalizer.py +16 -0
- orchestrator/generator.py +239 -0
- orchestrator/goal.py +245 -0
- orchestrator/handoff.py +86 -0
- orchestrator/hybrid_worker.py +840 -0
- orchestrator/impossibility.py +162 -0
- orchestrator/limits.py +60 -0
- orchestrator/live_evolution_engine.py +247 -0
- orchestrator/llm.py +291 -0
- orchestrator/local_tool_calling.py +285 -0
- orchestrator/lock.py +404 -0
- orchestrator/mcp_client.py +571 -0
- orchestrator/mcp_server.py +344 -0
- orchestrator/memory_bridge.py +182 -0
- orchestrator/metrics.py +159 -0
- orchestrator/micro_epoch.py +42 -0
- orchestrator/models.py +350 -0
- orchestrator/parsing.py +237 -0
- orchestrator/patch_applier.py +154 -0
- orchestrator/plan_preview.py +138 -0
- orchestrator/plan_quality.py +357 -0
- orchestrator/planner.py +532 -0
- orchestrator/preferences.py +115 -0
- orchestrator/preflight.py +141 -0
- orchestrator/process_guard.py +357 -0
- orchestrator/prometheus_exporter.py +207 -0
- orchestrator/prompts.py +275 -0
- orchestrator/proposal_ledger.py +194 -0
- orchestrator/provenance.py +263 -0
- orchestrator/provider_scheduler.py +394 -0
- orchestrator/qc/__init__.py +153 -0
- orchestrator/qc/aggregator.py +330 -0
- orchestrator/qc/parsing.py +287 -0
- orchestrator/qc/personas.py +242 -0
- orchestrator/qc/runner.py +569 -0
- orchestrator/qc_overrule.py +87 -0
- orchestrator/qc_review.py +282 -0
- orchestrator/quality_lenses.py +314 -0
- orchestrator/quality_plan.py +449 -0
- orchestrator/quality_plane.py +103 -0
- orchestrator/reconcile.py +191 -0
- orchestrator/replanner.py +433 -0
- orchestrator/research.py +176 -0
- orchestrator/review_artifact.py +672 -0
- orchestrator/safety.py +271 -0
- orchestrator/schemas.py +230 -0
- orchestrator/scope.py +466 -0
- orchestrator/sensory_radar.py +79 -0
- orchestrator/skill_installer.py +140 -0
- orchestrator/sse_server.py +160 -0
- orchestrator/state.py +871 -0
- orchestrator/subprocess_helper.py +131 -0
- orchestrator/supervisor/__init__.py +184 -0
- orchestrator/supervisor/_shared.py +164 -0
- orchestrator/supervisor/cleanup.py +185 -0
- orchestrator/supervisor/core.py +1680 -0
- orchestrator/supervisor/recovery.py +367 -0
- orchestrator/supervisor/reporting.py +251 -0
- orchestrator/surgical_extractor.py +119 -0
- orchestrator/telemetry.py +61 -0
- orchestrator/templates.py +268 -0
- orchestrator/token_gate.py +245 -0
- orchestrator/tui.py +649 -0
- orchestrator/verifier.py +1103 -0
- orchestrator/webhooks.py +168 -0
- orchestrator/worker.py +469 -0
- orchestrator/worker_adapters.py +815 -0
- orchestrator/worker_pool.py +121 -0
- orchestrator/worktree.py +364 -0
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
{
|
|
2
|
+
"task_id": "self-evolution-step-1",
|
|
3
|
+
"title": "Step 1: 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 in orchestrator/planner.py to dynamically infer and synthesize 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/planner_spec_synthesis.py"
|
|
32
|
+
}
|
|
33
|
+
],
|
|
34
|
+
"acceptance_checks": [
|
|
35
|
+
{
|
|
36
|
+
"id": "check-spec-synth-ast",
|
|
37
|
+
"kind": "content_regex",
|
|
38
|
+
"path": "scratch/self_evolution/planner_spec_synthesis.py",
|
|
39
|
+
"expected": "def synthesize_acceptance_criteria\\("
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"id": "check-spec-synth-regex",
|
|
43
|
+
"kind": "content_regex",
|
|
44
|
+
"path": "scratch/self_evolution/planner_spec_synthesis.py",
|
|
45
|
+
"expected": "ast\\.parse|content_regex|ast_check"
|
|
46
|
+
}
|
|
47
|
+
],
|
|
48
|
+
"quality_spec": {
|
|
49
|
+
"required_sections": [
|
|
50
|
+
"imports",
|
|
51
|
+
"spec_synthesis_logic",
|
|
52
|
+
"ast_rule_generator",
|
|
53
|
+
"contract_integration"
|
|
54
|
+
],
|
|
55
|
+
"quality_dimensions": {
|
|
56
|
+
"completeness": 0.5,
|
|
57
|
+
"correctness": 0.5
|
|
58
|
+
},
|
|
59
|
+
"hard_failures": [
|
|
60
|
+
"syntax_error",
|
|
61
|
+
"missing_ast_generator",
|
|
62
|
+
"missing_regex_generator"
|
|
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-step-2",
|
|
3
|
+
"title": "Step 2: Live Token & Cost Telemetry in TUI and CLI",
|
|
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 turn-level telemetry tracking token consumption, latency, and estimated USD cost across turns for lil trace and lil dashboard.",
|
|
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/telemetry.py"
|
|
32
|
+
}
|
|
33
|
+
],
|
|
34
|
+
"acceptance_checks": [
|
|
35
|
+
{
|
|
36
|
+
"id": "check-telemetry-metrics",
|
|
37
|
+
"kind": "content_regex",
|
|
38
|
+
"path": "scratch/self_evolution/telemetry.py",
|
|
39
|
+
"expected": "class (TokenTelemetry|TelemetryTracker)"
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"id": "check-cost-estimation",
|
|
43
|
+
"kind": "content_regex",
|
|
44
|
+
"path": "scratch/self_evolution/telemetry.py",
|
|
45
|
+
"expected": "estimate_cost|calculate_usd_cost"
|
|
46
|
+
}
|
|
47
|
+
],
|
|
48
|
+
"quality_spec": {
|
|
49
|
+
"required_sections": [
|
|
50
|
+
"pricing_models",
|
|
51
|
+
"telemetry_tracker",
|
|
52
|
+
"tui_dashboard_widget",
|
|
53
|
+
"trace_formatter"
|
|
54
|
+
],
|
|
55
|
+
"quality_dimensions": {
|
|
56
|
+
"completeness": 0.5,
|
|
57
|
+
"correctness": 0.5
|
|
58
|
+
},
|
|
59
|
+
"hard_failures": [
|
|
60
|
+
"syntax_error",
|
|
61
|
+
"missing_cost_calculation",
|
|
62
|
+
"missing_latency_tracker"
|
|
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-step-3",
|
|
3
|
+
"title": "Step 3: In-Memory AST Auto-Formatter in Verifier",
|
|
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 an in-memory AST auto-formatter in orchestrator/verifier.py that strips unused imports and formats 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/verifier_formatter.py"
|
|
32
|
+
}
|
|
33
|
+
],
|
|
34
|
+
"acceptance_checks": [
|
|
35
|
+
{
|
|
36
|
+
"id": "check-ast-strip-imports",
|
|
37
|
+
"kind": "content_regex",
|
|
38
|
+
"path": "scratch/self_evolution/verifier_formatter.py",
|
|
39
|
+
"expected": "strip_unused_imports|remove_unused_imports"
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"id": "check-in-memory-format",
|
|
43
|
+
"kind": "content_regex",
|
|
44
|
+
"path": "scratch/self_evolution/verifier_formatter.py",
|
|
45
|
+
"expected": "format_python_ast|format_in_memory"
|
|
46
|
+
}
|
|
47
|
+
],
|
|
48
|
+
"quality_spec": {
|
|
49
|
+
"required_sections": [
|
|
50
|
+
"import_stripper",
|
|
51
|
+
"ast_transformer",
|
|
52
|
+
"in_memory_formatter",
|
|
53
|
+
"verifier_hook"
|
|
54
|
+
],
|
|
55
|
+
"quality_dimensions": {
|
|
56
|
+
"completeness": 0.5,
|
|
57
|
+
"correctness": 0.5
|
|
58
|
+
},
|
|
59
|
+
"hard_failures": [
|
|
60
|
+
"syntax_error",
|
|
61
|
+
"destructive_ast_transformation",
|
|
62
|
+
"missing_import_stripper"
|
|
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-step-4",
|
|
3
|
+
"title": "Step 4: Resilient Checkpoint Auto-Rollback",
|
|
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 automatic rollback in orchestrator/checkpoint.py to restore dirty workspace files and WAL state back to the last verified checkpoint if acceptance checks fail after maximum 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-method",
|
|
37
|
+
"kind": "content_regex",
|
|
38
|
+
"path": "scratch/self_evolution/checkpoint_rollback.py",
|
|
39
|
+
"expected": "def rollback_to_last_verified\\("
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"id": "check-wal-reconciliation",
|
|
43
|
+
"kind": "content_regex",
|
|
44
|
+
"path": "scratch/self_evolution/checkpoint_rollback.py",
|
|
45
|
+
"expected": "reconcile_wal|restore_dirty_files"
|
|
46
|
+
}
|
|
47
|
+
],
|
|
48
|
+
"quality_spec": {
|
|
49
|
+
"required_sections": [
|
|
50
|
+
"checkpoint_manager",
|
|
51
|
+
"rollback_engine",
|
|
52
|
+
"wal_reconciliation",
|
|
53
|
+
"dirty_file_recovery"
|
|
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_file_restoration"
|
|
63
|
+
],
|
|
64
|
+
"minimum_score": 0.85
|
|
65
|
+
},
|
|
66
|
+
"qc": {
|
|
67
|
+
"required": true,
|
|
68
|
+
"lens": "code_correctness"
|
|
69
|
+
}
|
|
70
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
{
|
|
2
|
+
"task_id": "self-evolution-step-5",
|
|
3
|
+
"title": "Step 5: Comprehensive Unit & Integration Tests",
|
|
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": "Construct end-to-end integration and unit tests validating spec synthesis, telemetry tracking, AST formatting, and checkpoint rollback mechanisms.",
|
|
19
|
+
"worker": {
|
|
20
|
+
"model": "openai:gpt-5.6-luna",
|
|
21
|
+
"max_attempts": 2,
|
|
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/test_self_evolution.py"
|
|
32
|
+
}
|
|
33
|
+
],
|
|
34
|
+
"acceptance_checks": [
|
|
35
|
+
{
|
|
36
|
+
"id": "check-test-suites",
|
|
37
|
+
"kind": "content_regex",
|
|
38
|
+
"path": "scratch/self_evolution/test_self_evolution.py",
|
|
39
|
+
"expected": "def test_spec_synthesis|def test_telemetry|def test_ast_formatter|def test_checkpoint_rollback"
|
|
40
|
+
}
|
|
41
|
+
],
|
|
42
|
+
"quality_spec": {
|
|
43
|
+
"required_sections": [
|
|
44
|
+
"test_spec_synthesis",
|
|
45
|
+
"test_telemetry",
|
|
46
|
+
"test_ast_formatter",
|
|
47
|
+
"test_checkpoint_rollback",
|
|
48
|
+
"test_e2e_evolution_loop"
|
|
49
|
+
],
|
|
50
|
+
"quality_dimensions": {
|
|
51
|
+
"completeness": 0.5,
|
|
52
|
+
"correctness": 0.5
|
|
53
|
+
},
|
|
54
|
+
"hard_failures": [
|
|
55
|
+
"syntax_error",
|
|
56
|
+
"missing_rollback_test",
|
|
57
|
+
"missing_synthesis_test"
|
|
58
|
+
],
|
|
59
|
+
"minimum_score": 0.9
|
|
60
|
+
},
|
|
61
|
+
"qc": {
|
|
62
|
+
"required": true,
|
|
63
|
+
"lens": "code_correctness"
|
|
64
|
+
}
|
|
65
|
+
}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
{
|
|
2
|
+
"task_id": "self-evolution-telemetry",
|
|
3
|
+
"title": "Step 2: Live Token & Cost Telemetry in orchestrator/tui.py and orchestrator/cli.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 live token usage, latency tracking, and USD cost estimation across execution turns for lil trace and lil dashboard.",
|
|
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/telemetry.py"
|
|
32
|
+
}
|
|
33
|
+
],
|
|
34
|
+
"acceptance_checks": [
|
|
35
|
+
{
|
|
36
|
+
"id": "check-telemetry-tracker",
|
|
37
|
+
"kind": "content_regex",
|
|
38
|
+
"path": "scratch/self_evolution/telemetry.py",
|
|
39
|
+
"expected": "class TokenCostTelemetry"
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"id": "check-cost-calc",
|
|
43
|
+
"kind": "content_regex",
|
|
44
|
+
"path": "scratch/self_evolution/telemetry.py",
|
|
45
|
+
"expected": "def calculate_cost\\("
|
|
46
|
+
}
|
|
47
|
+
],
|
|
48
|
+
"quality_spec": {
|
|
49
|
+
"required_sections": [
|
|
50
|
+
"TokenCostTelemetry",
|
|
51
|
+
"track_turn",
|
|
52
|
+
"calculate_cost",
|
|
53
|
+
"render_dashboard_telemetry"
|
|
54
|
+
],
|
|
55
|
+
"quality_dimensions": {
|
|
56
|
+
"completeness": 0.5,
|
|
57
|
+
"correctness": 0.5
|
|
58
|
+
},
|
|
59
|
+
"hard_failures": [
|
|
60
|
+
"syntax_error",
|
|
61
|
+
"missing_cost_calculation",
|
|
62
|
+
"missing_latency_tracking"
|
|
63
|
+
],
|
|
64
|
+
"minimum_score": 0.85
|
|
65
|
+
},
|
|
66
|
+
"qc": {
|
|
67
|
+
"required": true,
|
|
68
|
+
"lens": "code_correctness"
|
|
69
|
+
}
|
|
70
|
+
}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
{
|
|
2
|
+
"task_id": "self-evolution-tests",
|
|
3
|
+
"title": "Step 5: Comprehensive Unit and E2E Integration Tests in tests/test_self_evolution.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": "Create unit and end-to-end integration tests in tests/test_self_evolution.py covering spec synthesis, telemetry calculation, resilient checkpoint rollback, and AST auto-formatting.",
|
|
19
|
+
"worker": {
|
|
20
|
+
"model": "openai:gpt-5.6-luna",
|
|
21
|
+
"max_attempts": 2,
|
|
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/test_self_evolution.py"
|
|
32
|
+
}
|
|
33
|
+
],
|
|
34
|
+
"acceptance_checks": [
|
|
35
|
+
{
|
|
36
|
+
"id": "check-test-classes",
|
|
37
|
+
"kind": "content_regex",
|
|
38
|
+
"path": "scratch/self_evolution/test_self_evolution.py",
|
|
39
|
+
"expected": "class TestSelfEvolution"
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"id": "check-test-cases",
|
|
43
|
+
"kind": "content_regex",
|
|
44
|
+
"path": "scratch/self_evolution/test_self_evolution.py",
|
|
45
|
+
"expected": "def test_"
|
|
46
|
+
}
|
|
47
|
+
],
|
|
48
|
+
"quality_spec": {
|
|
49
|
+
"required_sections": [
|
|
50
|
+
"TestSpecSynthesis",
|
|
51
|
+
"TestTelemetry",
|
|
52
|
+
"TestCheckpointRollback",
|
|
53
|
+
"TestASTFormatter",
|
|
54
|
+
"TestE2ESelfEvolution"
|
|
55
|
+
],
|
|
56
|
+
"quality_dimensions": {
|
|
57
|
+
"completeness": 0.5,
|
|
58
|
+
"correctness": 0.5
|
|
59
|
+
},
|
|
60
|
+
"hard_failures": [
|
|
61
|
+
"syntax_error",
|
|
62
|
+
"failing_tests",
|
|
63
|
+
"mock_bypass_without_assertion"
|
|
64
|
+
],
|
|
65
|
+
"minimum_score": 0.9
|
|
66
|
+
},
|
|
67
|
+
"qc": {
|
|
68
|
+
"required": true,
|
|
69
|
+
"lens": "code_correctness"
|
|
70
|
+
}
|
|
71
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
{
|
|
2
|
+
"task_id": "spec-telemetry-research-design",
|
|
3
|
+
"title": "Step 1: Research and design spec synthesis and live telemetry architecture",
|
|
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": "Analyze orchestrator/planner.py and orchestrator/tui.py interfaces to specify contract schemas for automated spec synthesis and telemetry stream rendering.",
|
|
19
|
+
"worker": {
|
|
20
|
+
"model": "gemini:gemini-3.7-flash",
|
|
21
|
+
"max_attempts": 2,
|
|
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_telemetry_design.md"
|
|
32
|
+
}
|
|
33
|
+
],
|
|
34
|
+
"acceptance_checks": [
|
|
35
|
+
{
|
|
36
|
+
"id": "check-design-doc-exists",
|
|
37
|
+
"kind": "content_regex",
|
|
38
|
+
"path": "scratch/spec_telemetry_design.md",
|
|
39
|
+
"expected": ".*Spec Synthesis.*Live Telemetry.*"
|
|
40
|
+
}
|
|
41
|
+
],
|
|
42
|
+
"quality_spec": {
|
|
43
|
+
"required_sections": [
|
|
44
|
+
"Spec Synthesis Architecture",
|
|
45
|
+
"Live Telemetry Protocol",
|
|
46
|
+
"Interface Contracts",
|
|
47
|
+
"Verification Strategy"
|
|
48
|
+
],
|
|
49
|
+
"quality_dimensions": {
|
|
50
|
+
"completeness": 0.4,
|
|
51
|
+
"correctness": 0.4,
|
|
52
|
+
"feasibility": 0.2
|
|
53
|
+
},
|
|
54
|
+
"hard_failures": [
|
|
55
|
+
"missing_spec_synthesis_contract",
|
|
56
|
+
"missing_telemetry_stream_definition"
|
|
57
|
+
],
|
|
58
|
+
"minimum_score": 0.85
|
|
59
|
+
},
|
|
60
|
+
"qc": {
|
|
61
|
+
"required": true,
|
|
62
|
+
"lens": "code_correctness"
|
|
63
|
+
}
|
|
64
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
{
|
|
2
|
+
"task_id": "spec-telemetry-step-1",
|
|
3
|
+
"title": "Step 1: Inspect planner and TUI components for spec synthesis and telemetry hooks",
|
|
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": "Analyze orchestrator/planner.py and orchestrator/tui.py to identify spec synthesis data structures, telemetry event dispatchers, and existing test coverage.",
|
|
19
|
+
"worker": {
|
|
20
|
+
"model": "gemini:gemini-3.7-flash",
|
|
21
|
+
"max_attempts": 2,
|
|
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_telemetry/step1_architecture_spec.json"
|
|
32
|
+
}
|
|
33
|
+
],
|
|
34
|
+
"acceptance_checks": [
|
|
35
|
+
{
|
|
36
|
+
"id": "check-step1-output",
|
|
37
|
+
"kind": "content_regex",
|
|
38
|
+
"path": "scratch/spec_telemetry/step1_architecture_spec.json",
|
|
39
|
+
"expected": "\"spec_synthesis\""
|
|
40
|
+
}
|
|
41
|
+
],
|
|
42
|
+
"quality_spec": {
|
|
43
|
+
"required_sections": [
|
|
44
|
+
"planner_analysis",
|
|
45
|
+
"tui_telemetry_analysis",
|
|
46
|
+
"test_plan"
|
|
47
|
+
],
|
|
48
|
+
"quality_dimensions": {
|
|
49
|
+
"completeness": 0.5,
|
|
50
|
+
"correctness": 0.5
|
|
51
|
+
},
|
|
52
|
+
"hard_failures": [
|
|
53
|
+
"empty_spec",
|
|
54
|
+
"missing_event_schema"
|
|
55
|
+
],
|
|
56
|
+
"minimum_score": 0.8
|
|
57
|
+
},
|
|
58
|
+
"qc": {
|
|
59
|
+
"required": true,
|
|
60
|
+
"lens": "code_correctness"
|
|
61
|
+
}
|
|
62
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
{
|
|
2
|
+
"task_id": "spec-telemetry-step-2",
|
|
3
|
+
"title": "Step 2: Implement 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": "Add automated spec synthesis capabilities to orchestrator/planner.py to dynamically generate structured task specifications.",
|
|
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_telemetry/step2_planner_impl.py"
|
|
32
|
+
}
|
|
33
|
+
],
|
|
34
|
+
"acceptance_checks": [
|
|
35
|
+
{
|
|
36
|
+
"id": "check-step2-output",
|
|
37
|
+
"kind": "content_regex",
|
|
38
|
+
"path": "scratch/spec_telemetry/step2_planner_impl.py",
|
|
39
|
+
"expected": "def synthesize_spec|class SpecSynthesizer"
|
|
40
|
+
}
|
|
41
|
+
],
|
|
42
|
+
"quality_spec": {
|
|
43
|
+
"required_sections": [
|
|
44
|
+
"imports",
|
|
45
|
+
"synthesis_logic",
|
|
46
|
+
"validation"
|
|
47
|
+
],
|
|
48
|
+
"quality_dimensions": {
|
|
49
|
+
"completeness": 0.4,
|
|
50
|
+
"correctness": 0.6
|
|
51
|
+
},
|
|
52
|
+
"hard_failures": [
|
|
53
|
+
"syntax_error",
|
|
54
|
+
"unhandled_schema_validation"
|
|
55
|
+
],
|
|
56
|
+
"minimum_score": 0.85
|
|
57
|
+
},
|
|
58
|
+
"qc": {
|
|
59
|
+
"required": true,
|
|
60
|
+
"lens": "code_correctness"
|
|
61
|
+
}
|
|
62
|
+
}
|