forked from ajsai47/autocode
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrust-cli.json
More file actions
131 lines (131 loc) · 3.58 KB
/
rust-cli.json
File metadata and controls
131 lines (131 loc) · 3.58 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
{
"version": 1,
"repo": {
"name": "my-cli",
"language": "rust",
"framework": null,
"monorepo": false,
"default_branch": "main"
},
"commands": {
"install": "cargo build",
"test": "cargo test",
"coverage": "cargo tarpaulin --out stdout",
"typecheck": "cargo check",
"lint": "cargo clippy",
"build": "cargo build --release"
},
"coverage": {
"tool": "tarpaulin",
"current": {
"statements": 45,
"branches": 30,
"functions": 40,
"lines": 45
},
"targets": {
"statements": 80,
"branches": 70,
"functions": 80,
"lines": 80
},
"gaps": [
{ "file": "src/cli/args.rs", "coverage": 8, "priority": 1, "type": "utility", "complexity": "medium" },
{ "file": "src/commands/deploy.rs", "coverage": 15, "priority": 2, "type": "handler", "complexity": "high" },
{ "file": "src/commands/init.rs", "coverage": 20, "priority": 3, "type": "handler", "complexity": "medium" },
{ "file": "src/output/formatter.rs", "coverage": 28, "priority": 4, "type": "pure_function", "complexity": "low" },
{ "file": "src/config/loader.rs", "coverage": 35, "priority": 5, "type": "utility", "complexity": "medium" }
]
},
"guardrails": {
"immutable_patterns": ["*.toml", "*.env*", ".github/**", "autocode.manifest.json"],
"max_files_per_pr": 5,
"max_lines_changed": 200
},
"time_budgets": {
"scout_seconds": 180,
"architect_seconds": 180,
"builder_seconds": 600,
"tester_seconds": 600,
"reviewer_seconds": 300,
"cycle_max_seconds": 1800
},
"difficulty": {
"current_level": 1,
"levels": {
"1": "Pure function coverage (no mocking)",
"2": "Utility/helper coverage (light mocking)",
"3": "Fix existing failing tests",
"4": "Integration coverage (DB, API mocks)",
"5": "Feature implementation from tickets",
"6": "Refactoring with behavior preservation"
},
"advance_when": "3 consecutive successful cycles at current level"
},
"model_routing": {
"scout": "sonnet",
"architect": "sonnet",
"builder": "opus",
"tester": "sonnet",
"reviewer": "opus"
},
"brain": {
"knowledge_graph": true,
"pattern_database": true,
"human_feedback": true,
"pattern_retention_days": 90
},
"ci": {
"auto_fix": true,
"max_fix_attempts": 2,
"fixable_categories": ["test_failure", "type_error", "lint_error", "build_error"]
},
"planning": {
"enabled": true,
"max_steps_per_plan": 10,
"auto_plan_issues": false
},
"daemon": {
"enabled": false,
"schedule": "0 */6 * * *",
"max_cycles_per_run": 5,
"daily_budget_usd": 10.00,
"deploy_windows": [],
"notifications": {
"on_failure": "github_issue",
"on_success": "none",
"on_budget_exceeded": "github_issue"
}
},
"discovery": {
"enabled": false,
"modules": {
"untested_changes": true,
"complexity_hotspots": true,
"dependency_audit": true,
"stale_todos": true
},
"complexity_threshold_lines": 300,
"todo_age_days": 30,
"max_items_per_module": 5
},
"budget": {
"session_max_usd": 5.00,
"cycle_max_usd": 2.00,
"warn_at_percent": 80
},
"work_sources": {
"coverage_gaps": true,
"github_issues": { "enabled": false, "labels": ["autocode"], "exclude_labels": ["wontfix", "duplicate"] },
"backlog": true,
"pr_reviews": true,
"tech_debt": false
},
"testing": {
"file_pattern": "*.rs (mod tests)",
"location": "co-located",
"assertion_style": "assert_eq!",
"structure": "#[test]",
"helpers": []
}
}