Skills › Compound Engineering › ce-optimize › example-hard-spec.yaml
example-hard-spec.yaml
64 lines · skills/ce-optimize/references/example-hard-spec.yaml at 3449230
1# Minimal first-run template for objective metrics.
2# Start here when "better" is a scalar value from the measurement harness.
4name: improve-build-latency
5description: Reduce build latency without regressing correctness
7metric:
8 primary:
9 type: hard
10 name: build_seconds
11 direction: minimize
12 degenerate_gates:
13 - name: build_passed
14 check: "== 1"
15 description: The build must stay green
16 - name: test_pass_rate
17 check: ">= 1.0"
18 description: Required tests must keep passing
19 diagnostics:
20 - name: artifact_size_mb
21 - name: peak_memory_mb
23measurement:
24 command: "python evaluate.py"
25 timeout_seconds: 300
26 working_directory: "tools/eval"
27 stability:
28 mode: repeat
29 repeat_count: 3
30 aggregation: median
31 noise_threshold: 0.05
33scope:
34 mutable:
35 - "src/build/"
36 - "config/build.yaml"
37 immutable:
38 - "tools/eval/evaluate.py"
39 - "tests/fixtures/"
40 - "scripts/ci/"
42execution:
43 mode: serial
44 backend: worktree
45 max_concurrent: 1
47parallel:
48 port_strategy: none
49 shared_files: []
51dependencies:
52 approved: []
54constraints:
55 - "Keep output artifacts backward compatible"
56 - "Do not skip required validation steps"
58stopping:
59 max_iterations: 4
60 max_hours: 1
61 plateau_iterations: 3
62 target_reached: true
64max_runner_up_merges_per_batch: 0