refactor(db): move ticketing database to shared worktree location

The SQLite database now lives at ../settledreach.db, shared across all
git worktrees. This eliminates binary merge conflicts that occurred
whenever two branches modified the database independently.

All Python connectors (ticket CLI, sqlite_connector, decisions_sync)
now resolve the DB path relative to their own location — three levels
up from db/connectors/ reaches the worktree parent. The _main_worktree()
git-rev-parse pattern and config.json sqlite_db key are removed.

The database file is untracked from git; a backup mechanism commits
snapshots through the main branch (see following commits).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-02-12 16:54:00 +01:00
co-authored by Claude Opus 4.6
parent ffb73a6a77
commit c21671d44c
6 changed files with 15 additions and 53 deletions
+2 -3
View File
@@ -8,9 +8,8 @@ client/export/
client/reports/
client/*.import
# Database journal files (transient, not the DB itself)
db/commonwealth.db-wal
db/commonwealth.db-shm
# Database (shared across worktrees at ../settledreach.db, not tracked)
db/commonwealth.db*
# Python
__pycache__/