Gastown pack: fall back to repo CLAUDE.md or AGENTS.md for quality-gate guidance#27
Open
brianhealey wants to merge 1 commit intogastownhall:mainfrom
Open
Gastown pack: fall back to repo CLAUDE.md or AGENTS.md for quality-gate guidance#27brianhealey wants to merge 1 commit intogastownhall:mainfrom
brianhealey wants to merge 1 commit intogastownhall:mainfrom
Conversation
…te guidance When pack-specific quality-gate guidance is missing or empty, agents now fall back to the repo's own instructions file (CLAUDE.md for Claude, AGENTS.md for other providers) instead of skipping quality gates entirely. - Add InstructionsFile to PromptContext and template data - Add quality_gates template function that extracts the quality-gates section from the repo's provider-specific instructions file - Create shared quality-gates.md.tmpl template in the Gastown pack - Update crew.md.tmpl to use the shared template with fallback - Wire InstructionsFile through template_resolve and cmd_prime paths Closes w-d4dba7b056 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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
quality_gatestemplate function that extracts the quality-gates section from the provider-specific instructions filequality-gates.md.tmpltemplate in the Gastown pack with hardcoded defaults as final fallbackInstructionsFilefrom the resolved provider throughPromptContextinto template dataTest plan
extractQualityGatesparses markdown headings correctly (6 subtests)quality_gatesfunction reads from fake FS, handles missing files and empty argsgo test ./...andgo vet ./...cleanCloses w-d4dba7b056
🤖 Generated with Claude Code