feat: add default_formula rig config for sling dispatch#3284
Merged
steveyegge merged 1 commit intogastownhall:mainfrom Mar 27, 2026
Merged
Conversation
…gt-y18) resolveFormula now checks rig property layers (wisp → bead → system default) before falling back to settings/config.json. This enables: gt rig config set <rig> default_formula mol-evolve to override the mol-polecat-work default per-rig, eliminating the need for manual --formula flags on gt sling. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
❌ 5 Tests Failed:
View the top 3 failed test(s) by shortest run time
To view more test analytics, go to the Test Analytics Dashboard |
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
default_formulato rig property layers sogt slinguses the rig's configured formula instead of always defaulting tomol-polecat-workgt rig config set myrig default_formula mol-custom--formulaflag still overrides the configured defaultMotivation
Different projects may need different default formulas for their polecats. Currently the only way to use a non-default formula is to pass
--formulaon everygt slinginvocation, which is error-prone. A per-rig config eliminates this.Test plan
TestResolveFormula— 6 subtests covering precedence: explicit flag, hookRawBead, system default, wisp layer override, explicit overrides wisp, empty rigName fallbackgt rig config set <rig> default_formula <formula>persists and is picked up bygt sling--formulaflag still overrides the default🤖 Generated with Claude Code