Repository navigation
ADR-053: stop injecting NODESPACED_DB_PATH from the daemon service definitions - #1594
Conversation
… (ADR-053) The launchd plist and systemd unit injected NODESPACED_DB_PATH pointing at $HOME/.nodespace/database/nodespace.db — the exact path the daemon already derives in resolve_db_path when the variable is unset. Under ADR-053 the database registry is the source of truth for which database the daemon opens, so hard-coding the path in the service definition is redundant. Remove the injection from both the macOS plist and the Linux systemd unit; the daemon falls back to the same default, so the database location is unchanged. Co-Authored-By: Claude Opus 4.8 <[email protected]>
|
APPROVE — the data-safety claim is independently verified; this is a safe, well-scoped removal. The one thing that mattered: does removing the injection move the DB? No — verified.The risk in dropping
Byte-identical. The daemon falls through to exactly the path that was being injected, so the database location does not change. ✅ Other checks
Scope / follow-upThis is only the first half of the final #1532 criterion (stop the plist/systemd injection). The second half — removing the vestigial Merge gate
Approve. |
Part of the ADR-053 epic (#1532) — the first half of the final acceptance criterion ("remove
active_database_path+ plistNODESPACED_DB_PATHinjection").What changed
The macOS launchd plist and the Linux systemd unit (
daemon_setup.rs) injectedNODESPACED_DB_PATH=$HOME/.nodespace/database/nodespace.db— the exact path the daemon already derives inresolve_db_path()when the variable is unset. Under ADR-053 the database registry is the source of truth for which database the daemon opens, so hard-coding the path in the service definition is redundant. This removes the injection from both service definitions.Safety
Verified the daemon's default (
resolve_db_path()→$HOME/.nodespace/database/nodespace.db) is identical to the removed injected value, so the database location does not change.NODESPACED_DB_PATHremains honored when set (integration tests / alternate deployments still redirect storage viatest-support), it is simply no longer injected by the packaged service definition.Scope note
The other half of the criterion — removing the vestigial
active_database_pathsetting (the daemon never reads it for DB selection; itsselect/reset-databasecommands are effectively no-ops) and re-sourcing the Settings DB-path display fromDatabaseService.List— is a separate focused change tracked on #1532, since it touches the settings proto + the tauri command layer + the frontend.