miroir/crates/miroir-proxy
jedarden 84fc20b212 Phase 3: Task Registry + Persistence (SQLite schema, Redis mirror)
Implements the 14-table task-store schema from plan §4 and a Redis
mirror of the same keyspace so the system can survive pod restarts
and run multi-replica HPA.

## Changes

- TaskStore trait defines all 14 table operations
- SqliteTaskStore implements full persistence with WAL mode
- RedisTaskStore implements HA-compatible backend with _index sets
- Schema migration system with version tracking
- TaskRegistryImpl supports runtime-selected backend
- Helm values.schema.json enforces redis+replicas>1 constraint
- Comprehensive property tests (proptest) and integration tests
- Phase 3 DoD integration tests verify all criteria met

## 14 Tables
1. tasks - Miroir task registry
2. node_settings_version - per-(index, node) settings freshness
3. aliases - single-target + multi-target aliases
4. sessions - read-your-writes session pins
5. idempotency_cache - write dedup
6. jobs - work-queued background jobs
7. leader_lease - singleton-coordinator lease
8. canaries - canary definitions
9. canary_runs - canary run history
10. cdc_cursors - per-(sink, index) CDC cursor
11. tenant_map - API-key → tenant mapping
12. rollover_policies - ILM rollover policies
13. search_ui_config - per-index search-UI config
14. admin_sessions - Admin UI session registry

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-03 20:39:58 -04:00
..
src Phase 3: Task Registry + Persistence (SQLite schema, Redis mirror) 2026-05-03 20:39:58 -04:00
static Phase 5: Add Advanced Capabilities verification and UI static assets 2026-05-03 19:01:22 -04:00
tests P3: Add Phase 3 integration tests and finalize Task Registry + Persistence 2026-05-02 18:09:44 -04:00
Cargo.toml Phase 3: Task Registry + Persistence (SQLite schema, Redis mirror) 2026-05-03 20:39:58 -04:00