feat(history): sqlite wal worker and baseline schema #40

Merged
yuris merged 1 commit from feat/issue-4-sqlite into main 2026-09-22 18:58:29 +00:00
Owner

Motivation

Durable operational ledger and timeline audit logging for life-service without blocking Tokio async workers.

Changes

  • Dedicated blocking SQLite worker thread with mpsc channel interface
  • SQLite WAL mode with synchronous=FULL and foreign_keys=ON
  • Baseline schema for operations, life_events, proposals, item_projection
  • SQL triggers enforcing append-only life_events

Verification

  • Integration tests in tests/history_tests.rs verifying WAL pragmas, thread safety, and append-only trigger aborts

Closes #4

## Motivation Durable operational ledger and timeline audit logging for life-service without blocking Tokio async workers. ## Changes - Dedicated blocking SQLite worker thread with mpsc channel interface - SQLite WAL mode with synchronous=FULL and foreign_keys=ON - Baseline schema for operations, life_events, proposals, item_projection - SQL triggers enforcing append-only life_events ## Verification - Integration tests in tests/history_tests.rs verifying WAL pragmas, thread safety, and append-only trigger aborts ## Related Issues Closes #4
yuris merged commit 4bd9cc86a8 into main 2026-09-22 18:58:29 +00:00
yuris changed title from feat(history): sqlite wal worker and baseline schema (#4) to feat(history): sqlite wal worker and baseline schema 2026-09-23 05:12:09 +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
yuris/life-service!40
No description provided.