docs: migrate agent-facing bd commands to gt bead equivalents#3524
Draft
mk-imagine wants to merge 10 commits intogastownhall:mainfrom
Draft
docs: migrate agent-facing bd commands to gt bead equivalents#3524mk-imagine wants to merge 10 commits intogastownhall:mainfrom
mk-imagine wants to merge 10 commits intogastownhall:mainfrom
Conversation
…WIP) Placeholder for draft PR. Adds 5 routed bd command wrappers under gt bead.
…x6o) Replace repeated Dir(resolveBeadDir(id)).StripBeadsDir() pattern with a single RouteForBead(id) builder method on bdCmd. This prepares for adding 5 new gt bead subcommands that reuse the same routing logic. Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
…hq-x6o) Add 5 new gt bead subcommands that proxy bd commands with automatic prefix-based routing to the correct rig database: - create: routes by --rig flag to target rig - update: routes by bead ID prefix - dep: routes by first bead ID prefix - list: routes by --rig flag to target rig - search: routes by --rig flag to target rig Also adds RouteForPrefix() builder method on bdCmd for commands that accept a prefix rather than a bead ID. Fixes variable shadowing in cat.go and close.go from the RouteForBead refactoring, and adds missing io import to convoy_stage.go. Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
feat: add gt bead subcommands with prefix routing
…ing (WIP) Placeholder for draft PR. Adds RouteForBead() method and migrates 11 call sites.
Add RouteForBead(beadID) method to the bdCmd builder that encapsulates the Dir(resolveBeadDir(id)).StripBeadsDir() pattern into a single call. Also adds RouteForPrefix(prefix) for commands that take a prefix. Migrated call sites: - sling_helpers.go: verifyBeadExists, getBeadInfo, storeFieldsInBead (x2) - bead.go: moveBead source lookup - hook.go: hookBead retry loop - cat.go: bd show passthrough (converted from raw exec.Command) - close.go: bd close passthrough, closeChildren query + close (converted) - convoy_stage.go: bdShow, bdDepList helpers (converted) Also fixes pre-existing compact_report_test.go build failure.
fix: add RouteForBead() to bdCmd builder, migrate 11 call sites
Placeholder for draft PR. Migration of ~285 bd command references across 38 files to gt/gt bead equivalents with prefix routing.
…and formulas (hq-cg5) Migrate ~289 bd command references across 40 template and formula files to their gt equivalents: - bd show/create/update/list/dep/search → gt bead <subcommand> - bd close/ready/mol/formula/cat → gt <subcommand> - bd new → gt bead create (new is an alias for create) Commands without gt equivalents are intentionally kept as bd: sync, blocked, prime, merge-slot, doctor, stats, daemons, activity, info, gate, comment, children, cook, stub
e50fc7d to
49ea80a
Compare
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
Migrate ~285 agent-facing
bdcommand references togt/gt beadequivalents across role templates, message templates, and molecule formulas.Why:
bd(beads CLI) does not support Gas Town's prefix-based routing viaroutes.jsonl. When agents callbd show <prefix>-abcfrom the town root, it fails silently —bdonly queries the local.beads/database.gtwrapsbdwith routing. After this migration, the rule is simple: agents always usegtfor bead operations.Depends on: #3525 (
gt beadcommand wrappers — addsgt bead create/update/dep/list/search)Scope
Migration Mapping
bd show <id>gt show <id>(existing)bd close <id>gt close <id>(existing)bd creategt bead create(#3525)bd updategt bead update(#3525)bd listgt bead list(#3525)bd depgt bead dep(#3525)bd searchgt bead search(#3525)bd molgt mol(existing)Kept:
bd prime,bd doctor,bd versionTest plan
go build ./...passes