miroir/crates
jedarden 5cb4776c44 P2.10: Implement custom HTTP header contract test suite
Implement comprehensive contract test suite for plan §5 "Custom HTTP headers".
Tests assert every custom HTTP header behaves exactly per its specification.

Tests cover:
- Request headers: present, absent, malformed → expected status codes
- Response headers: format validation and echo tests
- Forward-compatibility: unknown X-Miroir-* headers are silently ignored
- Meilisearch compatibility: vanilla client behavior preserved

All 11 headers from plan §5 are covered:
- X-Miroir-Degraded (Response)
- X-Miroir-Settings-Version (Response)
- X-Miroir-Min-Settings-Version (Request)
- X-Miroir-Settings-Inconsistent (Response)
- X-Miroir-Session (Both)
- Idempotency-Key (Request)
- X-Miroir-Over-Fetch (Request)
- X-Miroir-Tenant (Request)
- X-Admin-Key (Request)
- X-CSRF-Token (Request)
- X-Search-UI-Key (Request)

Tests are marked with #[ignore] for features not yet implemented.
Associated feature beads are responsible for removing #[ignore] and
ensuring tests pass.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-20 07:14:53 -04:00
..
miroir-core P4.2 Node addition: migration-aware dual-write routing + admin routes 2026-05-11 21:43:40 -04:00
miroir-ctl P3: Phase 3 Task Registry + Persistence — COMPLETE 2026-05-02 16:50:42 -04:00
miroir-proxy P2.10: Implement custom HTTP header contract test suite 2026-05-20 07:14:53 -04:00