From 3e8a0e1fb709b9d2c8857c80ebe81fd535542c7e Mon Sep 17 00:00:00 2001 From: Steve Yegge Date: Sat, 27 Dec 2025 00:38:40 -0800 Subject: [PATCH] fix: Remove hardcoded gastown from role templates (gt-ne41f) Use {{ .RigName }} and {{ .IssuePrefix }} template variables instead of hardcoded 'gastown' and 'gt-' in prefix routing examples. --- internal/templates/roles/crew.md.tmpl | 4 ++-- internal/templates/roles/deacon.md.tmpl | 2 +- internal/templates/roles/mayor.md.tmpl | 7 +++---- internal/templates/roles/polecat.md.tmpl | 4 ++-- 4 files changed, 8 insertions(+), 9 deletions(-) diff --git a/internal/templates/roles/crew.md.tmpl b/internal/templates/roles/crew.md.tmpl index 2165f63d..96734796 100644 --- a/internal/templates/roles/crew.md.tmpl +++ b/internal/templates/roles/crew.md.tmpl @@ -87,8 +87,8 @@ Town ({{ .TownRoot }}) `bd` commands automatically route to the correct rig based on issue ID prefix: ``` -bd show gt-xyz # Routes to gastown beads (from anywhere in town) -bd show hq-abc # Routes to town beads +bd show {{ .IssuePrefix }}-xyz # Routes to {{ .RigName }} beads (from anywhere in town) +bd show hq-abc # Routes to town beads ``` **How it works:** diff --git a/internal/templates/roles/deacon.md.tmpl b/internal/templates/roles/deacon.md.tmpl index 98b8beb1..bd4148e1 100644 --- a/internal/templates/roles/deacon.md.tmpl +++ b/internal/templates/roles/deacon.md.tmpl @@ -75,7 +75,7 @@ beads clean while maintaining an audit trail. ## Prefix-Based Routing `bd` commands automatically route to the correct rig based on issue ID prefix: -- `bd show gt-xyz` routes to gastown beads +- `bd show -xyz` routes to that rig's beads - `bd show hq-abc` routes to town beads Routes defined in `~/gt/.beads/routes.jsonl`. Debug with: `BD_DEBUG_ROUTING=1 bd show ` diff --git a/internal/templates/roles/mayor.md.tmpl b/internal/templates/roles/mayor.md.tmpl index 724021f8..4c657b07 100644 --- a/internal/templates/roles/mayor.md.tmpl +++ b/internal/templates/roles/mayor.md.tmpl @@ -53,7 +53,7 @@ Each rig has a `mayor/rig/` directory - that's YOUR working copy for that rig. - `/polecats/*` - Those are POLECATS, not you ### ALWAYS work from: -- `/mayor/rig/` for that rig's work (e.g., `gastown/mayor/rig/`) +- `/mayor/rig/` for that rig's work (e.g., `{{ .RigName }}/mayor/rig/`) - Run `bd` commands here - they use THIS clone's .beads/ - Run `gt` commands here - identity is detected from cwd - Edit code here - this is your working copy @@ -114,9 +114,8 @@ Town ({{ .TownRoot }}) `bd` commands automatically route to the correct rig based on issue ID prefix: ``` -bd show gt-xyz # Routes to gastown beads (from anywhere in town) -bd show hq-abc # Routes to town beads -bd show bd-def # Routes to beads rig +bd show {{ .IssuePrefix }}-xyz # Routes to {{ .RigName }} beads (from anywhere in town) +bd show hq-abc # Routes to town beads ``` **How it works:** diff --git a/internal/templates/roles/polecat.md.tmpl b/internal/templates/roles/polecat.md.tmpl index df68e171..d2e93b60 100644 --- a/internal/templates/roles/polecat.md.tmpl +++ b/internal/templates/roles/polecat.md.tmpl @@ -84,8 +84,8 @@ Town ({{ .TownRoot }}) `bd` commands automatically route to the correct rig based on issue ID prefix: ``` -bd show gt-xyz # Routes to gastown beads (from anywhere in town) -bd show hq-abc # Routes to town beads +bd show {{ .IssuePrefix }}-xyz # Routes to {{ .RigName }} beads (from anywhere in town) +bd show hq-abc # Routes to town beads ``` **How it works:**