§12.1 schema fidelity: room-state provenance and quarantine keyed by (principal, room, event id) #148

Closed
opened 2026-08-27 19:21:14 +02:00 by thecrealm · 0 comments
Owner

Review finding 2026-08-27 (B7). Room-state rows carry no before/after/gap provenance (Facts.sq:12-18, FactStores.kt:226) although §12.1 and §3.7 require it; quarantine records are keyed by autoincrement seq (Facts.sq:112-120) so a replayed malformed event duplicates.

Acceptance: provenance column/field on the state entity in sqlite, IndexedDB and in-memory with a numbered migration; quarantine PK per §12.1; conformance rows; migration test incl. the untested "store newer than this katrix" refusal on both stores and a fault-injected failing migration leaving the store intact (§10.7.3).

Review finding 2026-08-27 (B7). Room-state rows carry no before/after/gap provenance (`Facts.sq:12-18`, `FactStores.kt:226`) although §12.1 and §3.7 require it; quarantine records are keyed by autoincrement `seq` (`Facts.sq:112-120`) so a replayed malformed event duplicates. Acceptance: provenance column/field on the state entity in sqlite, IndexedDB and in-memory with a numbered migration; quarantine PK per §12.1; conformance rows; migration test incl. the untested "store newer than this katrix" refusal on both stores and a fault-injected failing migration leaving the store intact (§10.7.3).
thecrealm added
now
and removed
next
labels 2026-09-01 17:09:35 +02:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
thecrealm/katrix#148
No description provided.