P2.2: Verify write path implementation - all acceptance tests pass

Verified the complete write path implementation in
crates/miroir-proxy/src/routes/documents.rs:

- POST /indexes/{uid}/documents - Add documents
- PUT /indexes/{uid}/documents - Replace documents
- DELETE /indexes/{uid}/documents/{id} - Delete single document
- DELETE /indexes/{uid}/documents - Delete by IDs array or filter

All key features verified:
- Primary key extraction on hot path
- _miroir_shard injection into every document
- Reserved field validation (400 error for _miroir_shard)
- Two-rule quorum (per-group quorum + overall success)
- X-Miroir-Degraded header when groups miss quorum
- HTTP 503 miroir_no_quorum when no group meets quorum
- Per-batch document grouping by shard
- Independent per-shard routing for DELETE by IDs
- Broadcast routing for DELETE by filter

Acceptance tests: 11/11 passing
Build: Successful

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
jedarden 2026-05-23 13:05:07 -04:00
parent e322e3e0a6
commit 4417b49594
4 changed files with 1664 additions and 954 deletions

View file

@ -3,13 +3,13 @@
"agent": "claude-code-glm-4.7",
"provider": "zai",
"model": "glm-4.7",
"exit_code": 124,
"outcome": "timeout",
"duration_ms": 600001,
"exit_code": 0,
"outcome": "success",
"duration_ms": 380597,
"input_tokens": null,
"output_tokens": null,
"cost_usd": null,
"captured_at": "2026-05-23T15:24:19.379163583Z",
"captured_at": "2026-05-23T17:04:20.541849726Z",
"trace_format": "claude_json",
"pruned": false,
"template_version": null

View file

@ -0,0 +1,2 @@
SessionEnd hook [/home/coding/.ccdash/hooks/session-end.sh] failed: /bin/sh: line 1: /home/coding/.ccdash/hooks/session-end.sh: cannot execute: required file not found

File diff suppressed because one or more lines are too long

View file

@ -1 +1 @@
d02486187df41fc10df30eb0adbd93c6579a3ee6
6227e6f00769ac50b133db327860e05d7a4f07a0