From 6081847bde05b217d75e3b67033463bb8e0cd905 Mon Sep 17 00:00:00 2001 From: mayor Date: Fri, 2 Jan 2026 12:24:34 -0800 Subject: [PATCH] fix: Use 'hq' prefix for town beads instead of 'gm' MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Town beads should use 'hq-' prefix to match documented architecture: - Town beads (~/gt/.beads/): hq-* prefix for mayor mail, coordination - Rig beads: project-specific prefix The 'gm' prefix was causing convoy creation failures due to prefix mismatch. Fixes #19 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- internal/cmd/install.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/internal/cmd/install.go b/internal/cmd/install.go index 00c795f2..99e46b61 100644 --- a/internal/cmd/install.go +++ b/internal/cmd/install.go @@ -195,13 +195,13 @@ func runInstall(cmd *cobra.Command, args []string) error { } // Initialize town-level beads database (optional) - // Town beads (gm- prefix) stores mayor mail, cross-rig coordination, and handoffs. + // Town beads (hq- prefix) stores mayor mail, cross-rig coordination, and handoffs. // Rig beads are separate and have their own prefixes. if !installNoBeads { if err := initTownBeads(absPath); err != nil { fmt.Printf(" %s Could not initialize town beads: %v\n", style.Dim.Render("⚠"), err) } else { - fmt.Printf(" ✓ Initialized .beads/ (town-level beads with gm- prefix)\n") + fmt.Printf(" ✓ Initialized .beads/ (town-level beads with hq- prefix)\n") } // NOTE: Agent beads (gt-deacon, gt-mayor) are created by gt rig add, @@ -276,10 +276,10 @@ func writeJSON(path string, data interface{}) error { } // initTownBeads initializes town-level beads database using bd init. -// Town beads use the "gm-" prefix for mayor mail and cross-rig coordination. +// Town beads use the "hq-" prefix for mayor mail and cross-rig coordination. func initTownBeads(townPath string) error { - // Run: bd init --prefix gm - cmd := exec.Command("bd", "init", "--prefix", "gm") + // Run: bd init --prefix hq + cmd := exec.Command("bd", "init", "--prefix", "hq") cmd.Dir = townPath output, err := cmd.CombinedOutput()