store: consolidate errors' impl Database into the substrate seat #41

Merged
PerishFire merged 1 commit from split-errors-db into main 2026-07-21 03:39:44 +00:00
Owner

Crate-split adaptor-prep A3d, closing Phase A. Errors incident persistence (open/resolve/active/list_incidents, persist_mutation, map_incident_row/parse_json) is pure substrate -- only rusqlite + santi-error contract types/codecs + santi_model::timestamp_now. Moves wholesale into store/db/errors.rs as impl Database with zero call-site churn. errors/mod.rs keeps the SantiStore incident API + ErrorOutbox impl; convert.rs deleted. No domain module under store/ carries impl Database anymore. 40 test groups green, core debt 0.

Crate-split adaptor-prep A3d, closing Phase A. Errors incident persistence (open/resolve/active/list_incidents, persist_mutation, map_incident_row/parse_json) is pure substrate -- only rusqlite + santi-error contract types/codecs + santi_model::timestamp_now. Moves wholesale into store/db/errors.rs as impl Database with zero call-site churn. errors/mod.rs keeps the SantiStore incident API + ErrorOutbox impl; convert.rs deleted. No domain module under store/ carries impl Database anymore. 40 test groups green, core debt 0.
store: consolidate errors' impl Database into the substrate seat
All checks were successful
guard / guard (pull_request) Successful in 1m57s
3d2cc11ca1
Crate-split adaptor-prep A3d, and the close of Phase A. The errors
incident persistence (open/resolve/active/list_incidents, persist_mutation,
and the map_incident_row / parse_json row helpers from convert.rs) is pure
substrate: it touches only rusqlite plus contract types and codecs from
santi-error, and timestamp_now from santi-model. It carried no santi-core
domain types, so it moves wholesale into store/db/errors.rs as impl Database
with zero call-site churn -- callers keep Database::new(&tx).open_incident(..).
crate::timestamp_now is rewritten to santi_model::timestamp_now so the seat
lifts cleanly when db/ becomes the adaptor crate. errors/mod.rs keeps only
the SantiStore incident API and the ErrorOutbox impl; convert.rs is deleted.

With this, no domain module under store/ carries an impl Database anymore --
every inherent Database method now lives under store/db/. 40 workspace test
groups green; core debt 0.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
PerishFire deleted branch split-errors-db 2026-07-21 03:39:44 +00:00
Sign in to join this conversation.
No reviewers
No labels
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
PerishFire/santi!41
No description provided.