Skip to content

feat(formula): add --set flag and fix bead prefix for convoy formulas#3276

Closed
ckumar1 wants to merge 1 commit intogastownhall:mainfrom
quickserve-ai:feat/convoy-set-flag-and-bead-prefix
Closed

feat(formula): add --set flag and fix bead prefix for convoy formulas#3276
ckumar1 wants to merge 1 commit intogastownhall:mainfrom
quickserve-ai:feat/convoy-set-flag-and-bead-prefix

Conversation

@ckumar1
Copy link
Copy Markdown
Contributor

@ckumar1 ckumar1 commented Mar 25, 2026

Summary

  • Added --set key=value flag to gt formula run for passing input variables to convoy formulas
  • Fixed bead prefix: executeConvoyFormula used hard-coded hq- prefix; now resolves via config.GetRigPrefix() to match the target rig

Context

Convoy formulas define [inputs] in their TOML (e.g., problem, context, scope) but gt formula run had no mechanism to pass values for them. The only parameterization was --pr and --files. Formulas like design and mol-prd-review that need --problem had no working execution path.

Separately, convoy/leg/synthesis beads were created with hq- prefix (town root) but gt sling dispatches to the target rig, which rejects mismatched prefixes.

Usage

gt formula run design --set problem="Design a caching layer" --set context="Go microservice"
gt formula run mol-prd-review --set problem="Review auth flow" --dry-run

Test plan

  • go build ./cmd/gt
  • go vet ./internal/cmd/
  • --set values injected into template context for both execution and dry-run
  • Bead IDs use rig-scoped prefix instead of hq-

🤖 Generated with Claude Code

Two bugs in executeConvoyFormula found by Krieger (qc-dcj1):

1. No mechanism to pass [inputs] values to convoy formulas. gt formula run
   only accepted --pr and --files, so convoy formulas needing free-form
   inputs (design, mol-prd-review) had no working execution path.

   Added --set key=value flag that injects user-defined variables into
   the template context for both execution and dry-run modes.

2. Convoy/leg/synthesis beads were created with hq- prefix (town root)
   but gt sling dispatches to the target rig, which rejects mismatched
   prefixes. Now uses config.GetRigPrefix() to resolve the rig's actual
   beads prefix.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>

Executed-By: gastown/crew/woodhouse
@A3Ackerman A3Ackerman deleted the feat/convoy-set-flag-and-bead-prefix branch March 26, 2026 04:55
@ckumar1
Copy link
Copy Markdown
Contributor Author

ckumar1 commented Mar 27, 2026

Friendly ping — is this approach heading in the right direction? Happy to adjust if the --set flag design or bead prefix fix doesn't fit the project's direction. Let us know if you'd prefer this structured differently.

@ckumar1
Copy link
Copy Markdown
Contributor Author

ckumar1 commented Apr 2, 2026

Superseded by #3497 (same fix, cleaner cherry-pick from carry/operational).

@ckumar1 ckumar1 closed this Apr 2, 2026
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