Install
$ agentstack add skill-epicsagas-epic-harness-eval ✓ scanned · ✓ verified — works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ✓ Network access No
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ✓ Environment & secrets No
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
About
Eval — Quality & Regression Gate
CRITICAL: Run HARNESS_DIR=$(epic path) first. Never use .harness/ in the project directory.
When to Trigger
- Before
/shipcreates a PR (automatic if eval.yaml exists) - After
/gocompletes a feature - On explicit
/evalcommand - When user mentions "regression", "baseline", "eval suite", "quality check"
- CI:
make evalorepic eval --json
Execution Modes
4 dimensions run in parallel where possible:
- eval:correctness — Test pass rate, mutation score, assertion density
- eval:performance — Throughput, latency, memory (opt-in)
- eval:quality — Lint, code quality, LLM-as-judge
- eval:regression — Baseline comparison, score deltas
Process
Step 0: Prerequisites
HARNESS_DIR=$(epic path)
If $HARNESS_DIR/eval/eval.yaml does not exist, run scaffold:
epic eval --init
Read the config:
cat $HARNESS_DIR/eval/eval.yaml
Step 0.5: Scaffold benchmarks (when no benchmark infrastructure exists)
If eval.yaml has benchmarks: [] and no benchmark files are found in the project:
- Generate stub files using the CLI:
``bash epic eval --scaffold `` Supported stacks (auto-detected from project markers):
| Stack | Detected by | Generated file | Output format | |-------|-------------|----------------|---------------| | Rust | Cargo.toml | benches/eval_harness.rs | criterion (exit code) | | Python | pyproject.toml / setup.py | benchmarks/eval_runner.py | JSON composite | | TypeScript | tsconfig.json | benchmarks/eval.ts | JSON composite | | Node.js | package.json | benchmarks/eval.mjs | JSON composite | | Go | go.mod | benchmarks/eval_test.go | JSON composite | | Java | pom.xml / build.gradle | benchmarks/EvalBenchmark.java | exit code | | Kotlin | build.gradle.kts | benchmarks/EvalBenchmark.kt | exit code | | Ruby | Gemfile | benchmarks/eval_benchmark.rb | JSON composite | | PHP | composer.json | benchmarks/eval_benchmark.php | JSON composite | | C# | *.csproj / *.sln | Benchmarks/EvalBenchmark.cs | JSON composite | | Swift | Package.swift | benchmarks/EvalBenchmark.swift | JSON composite | | Elixir | mix.exs | benchmarks/eval_benchmark.exs | JSON composite | | C++ | CMakeLists.txt | benchmarks/eval_benchmark.cpp | exit code |
- Customize the generated file — every file has
# TODO/// TODOmarkers:
- Replace placeholder logic with calls to your actual domain functions
- Adjust the composite score weights to reflect your domain priorities
- For precision/recall benchmarks: wire in your real test set and model
- If
--scaffoldcan't generate a useful stub (domain too complex, custom evaluation logic needed), generate a custom benchmark with LLM assistance:
- Read the project's main source files to understand the domain
- Identify the 2–3 most critical quality signals (latency, accuracy, throughput, precision/recall)
- Write a benchmark that measures those signals and outputs
{"composite": 0.0–1.0, ...} - Save to
benchmarks/eval_runner.{ext}matching the project language
- Wire into eval.yaml:
```yaml benchmarks:
- name: eval_runner
command: python3 benchmarks/evalrunner.py full resulttype: composite # parse composite field from JSON stdout `` Use resulttype: exitcode` for frameworks (criterion, JMH, BenchmarkDotNet) that manage their own output.
Step 1: Run Rust CLI
Execute the structured evaluation via the Rust binary:
epic eval --json
This runs all enabled dimensions and outputs a JSON result. Capture the output.
If the CLI reports llm_judge: SKIPPED (no LLM available in CLI mode), proceed to Step 2 for LLM-as-judge. Otherwise, skip to Step 3.
Step 2: LLM-as-Judge (when llm_judge enabled)
If the quality dimension has llm_judge: true and CLI marked it SKIPPED:
- Sample 3–5 changed files from the current branch:
``bash git diff --name-only $(git merge-base HEAD main) ``
- For each sampled file, evaluate on a 1-10 rubric:
- Readability (naming, structure, flow)
- Correctness (logic, edge cases, error handling)
- DRY (no unjustified duplication)
- Security (no obvious vulnerabilities)
- Average scores across files. Map to 0.0–1.0 scale.
- Record results alongside CLI output.
Step 3: Load Baseline
cat $HARNESS_DIR/eval/baselines/latest.json
If no baseline exists, the current run BECOMES the first baseline. Save it:
epic eval --baseline-update
Report: "First baseline established. Future runs will compare against this."
Step 4: Synthesize Report
Combine CLI output + LLM-as-judge results into a single report:
## Eval Report
- Branch: {branch}
- Commit: {commit_short}
### Correctness: [PASS/WARN/FAIL] — score: {score}
- Tests: {passed}/{total} passing ({pass_rate}%)
- Mutation score: {mutation_score}% (if enabled)
- Delta vs baseline: {+/-delta}
### Performance: [PASS/WARN/FAIL] — score: {score} (if enabled)
- Avg latency: {latency}ms (delta: {+/-delta})
- Throughput: {throughput} (delta: {+/-delta})
### Quality: [PASS/WARN/FAIL] — score: {score}
- Lint errors: {count}
- LLM judge: {score}/10 (if enabled)
### Regression: [PASS/FAIL]
| Dimension | Baseline | Current | Delta | Verdict |
|-----------|----------|---------|-------|---------|
| correctness | {prev} | {cur} | {delta} | {pass/fail} |
| quality | {prev} | {cur} | {delta} | {pass/fail} |
### Overall: [PASS/WARN/FAIL] — {overall_score}
Step 5: Act
- All PASS + no regression: "Eval passed. Run
/shipto create a PR." - WARN: Show warnings. Ask whether to fix before shipping.
- FAIL or regression detected: List each failure with fix hint. "Fix with
/go, then re-run/eval."
Step 6: Save Results
epic eval --baseline-update # if user approves this as new baseline
Results auto-saved to $HARNESS_DIR/eval/results/EVAL-{timestamp}.json.
Anti-Rationalization
| Excuse | Rebuttal | What to do instead | |--------|----------|-------------------| | "Tests pass, no need for eval" | Tests pass today but regress tomorrow without baselines | Run eval and establish a baseline | | "Performance testing is premature" | Latency regressions are invisible until users complain | Enable performance dimension, run benchmarks now | | "Mutation testing is too slow" | Slow mutation catches bugs fast tests miss | Run on changed modules only (--dimension correctness) | | "LLM-as-judge is subjective" | Subjective beats absent — fixed rubric + averaging reduces variance | Use the 4-axis rubric, average across 3+ files | | "We can add eval later" | Later never comes; regressions accumulate silently | Start with correctness+quality, add dimensions incrementally | | "CI will catch regressions" | CI only catches build/test failures, not quality drift | Eval measures what CI misses: mutation score, LLM quality |
Evidence Required
- [ ]
epic eval --jsonoutput captured (all enabled dimensions scored) - [ ] Baseline comparison performed (or first baseline established)
- [ ] Each dimension has PASS/WARN/FAIL verdict
- [ ] No dimension regressed beyond threshold (or explicit user override)
- [ ] Results saved to
$HARNESS_DIR/eval/results/ - [ ] LLM-as-judge scores recorded (if enabled)
Red Flags
- Reporting PASS without actual
epic evaloutput - Skipping regression comparison "because it's the first run" (first run should ESTABLISH baseline)
- Reporting PASS with 0 test coverage
- Ignoring mutation score drops >5%
- Marking eval PASS when any dimension below minimum threshold
- Running eval on main branch instead of feature branch
Source & license
This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: epicsagas
- Source: epicsagas/epic-harness
- License: Apache-2.0
- Homepage: https://crates.io/crates/epic-harness
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet — be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.