---
name: Backfill Tests for Maximum Coverage
---

# Story 29: Backfill Tests for Maximum Coverage

## User Story
As a user, I want us to backfill tests across existing code so overall coverage is as high as we can reasonably achieve.

## Acceptance Criteria
- We add unit and integration tests to existing code paths with a goal of maximizing coverage.
- New tests are prioritized for critical workflows (filesystem access, project open/close, tool execution, chat flow).
- Coverage improvements are measured and reported for each test backfill batch.
- The work continues until coverage is as high as practically achievable with the current architecture.

## Out of Scope
- Major refactors solely to increase coverage (unless required to make code testable).
- Introducing new testing frameworks beyond those listed in `specs/tech/STACK.md`.