Add SQLite-backed local storage for queue and audit state #319

Open
opened 2026-07-01 12:52:51 -04:00 by didericis-codex · 0 comments
Collaborator

Summary

Add a stdlib SQLite storage layer for bot-bottle local runtime state, starting with the supervise queue and audit log. This also gives forge-native work a shared storage foundation instead of adding one-off persistence in PR #318.

Acceptance criteria

  • Supervise proposals and responses are persisted through SQLite instead of JSON files.
  • Audit entries are persisted through SQLite instead of JSONL log files.
  • Existing public supervise helpers keep their current call shape where practical so sidecars and CLI callers do not need a behavioral rewrite.
  • The implementation stays stdlib-only and keeps the existing sidecar queue mount contract working.
  • Unit tests cover queue round-trips, pending discovery, response waits, archive semantics, and audit round-trips.
## Summary Add a stdlib SQLite storage layer for bot-bottle local runtime state, starting with the supervise queue and audit log. This also gives forge-native work a shared storage foundation instead of adding one-off persistence in PR #318. ## Acceptance criteria - Supervise proposals and responses are persisted through SQLite instead of JSON files. - Audit entries are persisted through SQLite instead of JSONL log files. - Existing public supervise helpers keep their current call shape where practical so sidecars and CLI callers do not need a behavioral rewrite. - The implementation stays stdlib-only and keeps the existing sidecar queue mount contract working. - Unit tests cover queue round-trips, pending discovery, response waits, archive semantics, and audit round-trips.
didericis added the Kind/Feature label 2026-07-01 12:59:31 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: didericis/bot-bottle#319