# Phase 04 — Deferred Items

## Pre-existing Test Failures (from Plan 02 security integration)

These tests fail because Plan 02 introduced real Spring Security but did not update all existing integration tests to pass JWT auth headers. The security filter returns 403 before controllers can return the expected error codes.

1. **AgentSseControllerIT.sseConnect_unknownAgent_returns404** — expects 404, gets 403 (security blocks unauthenticated request)
2. **AgentCommandControllerIT.sendCommandToUnregisteredAgent_returns404** — expects 404, gets 403
3. **AgentCommandControllerIT.acknowledgeUnknownCommand_returns404** — expects 404, gets 403
4. **JwtRefreshIT (all 5 tests)** — all failing, likely needs bootstrap token for agent registration step

**Root cause:** Plan 02 emptied TestSecurityConfig and activated real SecurityConfig, but did not update pre-existing ITs to include JWT auth or adjust expected status codes for unauthenticated requests.

**Discovered during:** Plan 03 execution (04-03)
**Scope:** Out of scope for Plan 03 (pre-existing, not caused by signing changes)
