# 009 — Integration Tests: UCXI + DHT Encryption + Search - Area: tests under `pkg/ucxi/`, `pkg/dht/`, e2e harness - Priority: Medium ## Background There are good unit tests across modules, but no end-to-end UCXI HTTP tests through encrypted DHT and back, nor tests proving address-based search works with full UCXL strings. ## Scope / Deliverables - Add UCXI HTTP tests using httptest: - PUT content at valid UCXL addresses (with temporal), GET back exact bytes. - DELETE + 404 on subsequent GET. - Encrypted DHT path tests (mocked DHT ok): assert encrypt/decrypt with role. - Search tests that insert multiple cached entries and verify agent/role/project/task filters. ## Acceptance Criteria / Tests - `go test ./...` passes and includes new UCXI/DHT e2e cases. - Invalid addresses during PUT/GET return UCXL-400 codes (after Issue 004). ## Notes - Consider a small fake DHT interface to keep tests hermetic.