forked from loongclaw-ai/loongclaw
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTaskfile.yml
More file actions
124 lines (105 loc) Β· 3.87 KB
/
Taskfile.yml
File metadata and controls
124 lines (105 loc) Β· 3.87 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
version: "3"
tasks:
fmt:
desc: Check formatting for all crates
cmds:
- cargo fmt --all -- --check
lint:
desc: Run clippy across workspace targets
cmds:
- cargo clippy --workspace --all-targets --all-features
lint:strict:
desc: Run clippy with warnings denied (migration gate)
cmds:
- cargo clippy --workspace --all-targets --all-features -- -D warnings
test:
desc: Run workspace unit and doc tests
cmds:
- cargo test --workspace
test:all-features:
desc: Run tests with all features enabled
cmds:
- cargo test --workspace --all-features
test:daemon:stress:
desc: Stress daemon test binary across thread modes to catch intermittent regressions
cmds:
- ./scripts/stress_daemon_tests.sh 10 default,2,1
smoke:
desc: Run representative spec-runner smoke scenarios
cmds:
- cargo run -p loongclaw-daemon --bin loongclaw -- run-spec --spec examples/spec/runtime-extension.json --print-audit
- cargo run -p loongclaw-daemon --bin loongclaw -- run-spec --spec examples/spec/tool-search.json --print-audit
- cargo run -p loongclaw-daemon --bin loongclaw -- run-spec --spec examples/spec/programmatic-tool-call.json --print-audit
benchmark:pressure:
desc: Run programmatic pressure benchmark with gate enforcement
cmds:
- ./scripts/benchmark_programmatic_pressure.sh
check:docs:
desc: "Validate doc governance (dev mode: warn on missing local .docs release traces)"
cmds:
- scripts/check-docs.sh
check:docs:strict:
desc: Validate doc governance in strict release mode (missing .docs artifacts fail)
cmds:
- LOONGCLAW_RELEASE_DOCS_STRICT=1 scripts/check-docs.sh
check:github-labels:
desc: Validate generated GitHub label taxonomy artifacts
cmds:
- python3 scripts/sync_github_labels.py --check
- bash scripts/test_sync_github_labels.sh
check:architecture:
desc: Validate architecture boundary budgets and memory-operation abstraction
cmds:
- scripts/check_architecture_boundaries.sh
check:architecture:strict:
desc: Fail on any architecture boundary budget violations
cmds:
- LOONGCLAW_ARCH_STRICT=true scripts/check_architecture_boundaries.sh
check:conventions:
desc: Validate repo convention contracts
vars:
SKILL_DIR: '{{.HOME}}/.claude/skills/convention-engineering'
CONFIG_FILE: '{{default ".convention-engineering.json" .CONFIG}}'
preconditions:
- sh: test -f "{{.SKILL_DIR}}/scripts/main.go"
msg: "convention-engineering skill not installed"
- sh: test -f "{{.CONFIG_FILE}}"
msg: "convention config not found"
cmds:
- GO111MODULE=off go run {{.SKILL_DIR}}/scripts/main.go --repo-root . --config {{.CONFIG_FILE}} --json
check:dep-graph:
desc: Validate workspace crate dependency graph against architecture contract
cmds:
- scripts/check_dep_graph.sh
check:harness:
desc: Verify agent guide mirrors are identical
cmds:
- diff CLAUDE.md AGENTS.md
check:deny:
desc: Run cargo-deny (advisories, bans, sources)
preconditions:
- sh: command -v cargo-deny
msg: "cargo-deny not installed. Run: cargo install cargo-deny"
cmds:
- cargo deny check advisories bans licenses sources
verify:
desc: Canonical local verification gate (strict superset of CI checks)
cmds:
- task: fmt
- task: lint:strict
- task: check:architecture:strict
- task: check:dep-graph
- task: check:conventions
- task: check:harness
- task: test
- task: test:all-features
- task: check:docs
- task: check:github-labels
- task: check:deny
verify:full:
desc: Extended verification including architecture, smoke, and benchmark gates
cmds:
- task: verify
- task: check:architecture:strict
- task: smoke
- task: benchmark:pressure