diff --git a/.github/agents/Backend_Dev.agent.md b/.github/agents/Backend_Dev.agent.md index 73a18847..c9f6b17e 100644 --- a/.github/agents/Backend_Dev.agent.md +++ b/.github/agents/Backend_Dev.agent.md @@ -45,6 +45,7 @@ Your priority is writing code that is clean, tested, and secure by default. - Run `go fmt ./...`. - Run `go test ./...` to ensure no regressions. - **Coverage (MANDATORY)**: Run the coverage script explicitly. This is NOT run by pre-commit automatically. + - **MANDATORY**: Patch coverage must cover 100% of new/modified code. This prevents CodeCov Report failing CI. - **VS Code Task**: Use "Test: Backend with Coverage" (recommended) - **Manual Script**: Execute `/projects/Charon/scripts/go-test-coverage.sh` from the root directory - **Minimum**: 85% coverage (configured via `CHARON_MIN_COVERAGE` or `CPM_MIN_COVERAGE`) diff --git a/.github/agents/Frontend_Dev.agent.md b/.github/agents/Frontend_Dev.agent.md index be77e7c3..552f6fe5 100644 --- a/.github/agents/Frontend_Dev.agent.md +++ b/.github/agents/Frontend_Dev.agent.md @@ -52,6 +52,7 @@ You do not just "make it work"; you make it **feel** professional, responsive, a - **Gate 2: Logic**: - Run `npm run test:ci`. - **Gate 3: Coverage (MANDATORY)**: + - **MANDATORY**: Patch coverage must cover 100% of new/modified code. This prevents CodeCov Report failing CI. - **VS Code Task**: Use "Test: Frontend with Coverage" (recommended) - **Manual Script**: Execute `/projects/Charon/scripts/frontend-test-coverage.sh` from the root directory - **Minimum**: 85% coverage (configured via `CHARON_MIN_COVERAGE` or `CPM_MIN_COVERAGE`)