Spaces:
Configuration error

Yash030 Claude Opus 4.7 commited on
Commit
169f06f
·
1 Parent(s): 2bb6974

feat: migrate from Dolt/MySQL to SQLite for faster boot and sync

Browse files

- Replace StateKV Dolt/pymysql backend with sqlite3 stdlib (single file DB)
- Add audit_log table to track agent writes (replaces dolt_log versioning)
- Remove Dolt server from Dockerfile and start.sh — no more 5min cold boot wait
- Sync only agentmemory.db + .hmac + second-brain/ (~5MB vs 232MB)
- Restore downloads targeted files instead of full snapshot
- Remove pymysql from requirements.txt

Boot time: ~3min → ~10sec. Backup cycle: 20min → instant when unchanged.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>

6 files changed +221 -241
Files changed (6)
Dockerfile-3
requirements.txt-2
src/app.py+15-21
src/db.py+96-116
start.sh+1-27
sync.py+109-72