docs(adr): AGMSG_HOME data-root override, env-var naming convention#284
Merged
Conversation
Records the design decided for the desktop app's standalone mode: an optional AGMSG_HOME env var that, when set, points every install (CLI and the app's bundled fallback) at the same db/teams/run root, avoiding the schema-mismatch class of failure behind the 2026-06-30 storage fleet incident. Unset behavior is unchanged for existing CLI installs; the app defaults its own unset case to ~/.agmsg/ and prefers a detected system install over its bundled fallback when present. Also documents a naming convention for future env vars (_HOME/_DIR/_DIRS/ _FILE, avoid the ambiguous _PATH suffix AGMSG_STORAGE_PATH already carries) so new additions don't repeat that ambiguity. Design only — implementation is a separate, larger changeset threading the override through storage.sh/join.sh/actas-lock.sh/resolve-project.sh/ config.sh and friends, tracked separately.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Records the design decided for the desktop app's standalone mode (
worktrees/desktop-app):AGMSG_HOME: an optional env var that, when set, points every install (CLI and the desktop app's bundled fallback) at the samedb//teams//run/root. When unset, each consumer keeps its current default — CLI installs are unaffected; the app defaults its own unset case to~/.agmsg/and prefers a detected system install over its bundled fallback when present. This avoids the schema-mismatch class of failure behind the 2026-06-30 storage fleet incident (globalinstall.sh --updateof a schema-axis build while a heterogeneous watcher fleet was running)._HOME(root)/_DIR(single dir)/_DIRS(list)/_FILE(single file); avoid the ambiguous_PATHsuffixAGMSG_STORAGE_PATHalready carries (grandfathered, not renamed — that would be breaking).Clarifies this does not reopen ADR 0002's
AGMSG_HOMErejection — that was scoped to external type-plugin discovery, a different concern from this ADR's data-root override.Scope
Design only. Implementation (threading the override through
storage.sh/join.sh/actas-lock.sh/resolve-project.sh/config.shand friends) is a separate, larger changeset — will be tracked as its own issue once this ADR is reviewed.