Implement write-path rejection of reserved `_miroir_*` field names per plan §5 "Reserved fields": - `_miroir_shard`: Always rejected (unconditional) - `_miroir_updated_at`: Rejected when anti_entropy.enabled: true - `_miroir_expires_at`: Never rejected for writes (clients SET it) Changes: - Expand unit tests in documents.rs to cover all matrix cells - Add helper function for building reserved field errors - Add test for orchestrator shard injection flow - Add test for validation order (_miroir_shard before PK check) - Fix ttl_enabled parameter passing in search.rs and multi_search.rs All tests pass: 12 unit tests + 6 integration tests Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| routes | ||
| admin_session.rs | ||
| auth.rs | ||
| client.rs | ||
| error.rs | ||
| lib.rs | ||
| main.rs | ||
| middleware.rs | ||
| otel.rs | ||
| scoped_key_rotation.rs | ||