Current state
| Metric |
Actual |
Target |
| Statements |
85.9% |
80% ✅ |
| Branches |
73.5% |
80% |
| Functions |
96.8% |
80% ✅ |
| Lines |
85.8% |
80% ✅ |
Context
The 80% threshold is enforced in services/agent/vitest.config.spec.ts as part of #3334. Only branch coverage is below the threshold.
Focus areas
- Identify branches (conditionals, optional chains, early returns) not covered by current tests
- Run `pnpm --filter agent test:coverage` and inspect the HTML report for uncovered branches
How to check progress
```bash
pnpm --filter agent test:coverage
```
Current state
Context
The 80% threshold is enforced in
services/agent/vitest.config.spec.tsas part of #3334. Only branch coverage is below the threshold.Focus areas
How to check progress
```bash
pnpm --filter agent test:coverage
```