# 016 — E2E Tests: HMMM → SLURP → UCXL Decision and Load - Area: test harness under `test/` or `integration_test/` - Priority: Medium ## Background We need an end-to-end test proving HMMM discussions generate SLURP events, which in turn publish encrypted UCXL decisions to DHT, retrievable via UCXI. Also needed are load and error-injection tests. ## Scope / Deliverables - E2E Happy Path: - Simulate a HMMM discussion satisfying thresholds; SLURP integrator generates event with UCXL refs; DecisionPublisher stores decision; UCXI GET retrieves content. - Load Test (lightweight): - Batch N events with batching enabled; assert throughput, no duplicates, bounded latency; ensure breaker never opens in healthy scenario. - Error Injection: - Force SLURP 5xx/timeouts → verify backoff/breaker/DLQ (Issue 012) and eventual recovery. - CI Wire-up: - Make tests runnable in CI with mocked DHT/UCXI or local ephemeral services. ## Acceptance Criteria / Tests - E2E test passes deterministically; artifacts (events + decisions) validate schema; UCXL addresses parse. - Load test achieves configured throughput without error; error-injection test drains DLQ on recovery. ## Notes - Reuse existing integration test patterns (e.g., election integration) for harness structure.