Skip to content

docs(adr): AGMSG_HOME data-root override, env-var naming convention#284

Merged
fujibee merged 3 commits into
mainfrom
docs/adr-0004-agmsg-home
Jul 2, 2026
Merged

docs(adr): AGMSG_HOME data-root override, env-var naming convention#284
fujibee merged 3 commits into
mainfrom
docs/adr-0004-agmsg-home

Conversation

@fujibee

@fujibee fujibee commented Jul 2, 2026

Copy link
Copy Markdown
Owner

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 same db//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 (global install.sh --update of a schema-axis build while a heterogeneous watcher fleet was running).
  • Env-var naming convention for future additions: _HOME (root)/_DIR (single dir)/_DIRS (list)/_FILE (single file); avoid the ambiguous _PATH suffix AGMSG_STORAGE_PATH already carries (grandfathered, not renamed — that would be breaking).

Clarifies this does not reopen ADR 0002's AGMSG_HOME rejection — 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.sh and friends) is a separate, larger changeset — will be tracked as its own issue once this ADR is reviewed.

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.
@fujibee fujibee merged commit f665c1c into main Jul 2, 2026
5 checks passed
@fujibee fujibee deleted the docs/adr-0004-agmsg-home branch July 2, 2026 08:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant