fix(goose): declare args parameter in generated recipes#2402
Open
natelastname wants to merge 2 commits intogithub:mainfrom
Open
fix(goose): declare args parameter in generated recipes#2402natelastname wants to merge 2 commits intogithub:mainfrom
natelastname wants to merge 2 commits intogithub:mainfrom
Conversation
mnriem
requested changes
Apr 29, 2026
Collaborator
mnriem
left a comment
There was a problem hiding this comment.
Can you add some positive and negative tests?
Author
Sure, please let me know if there's anything else I can do. |
Contributor
There was a problem hiding this comment.
Pull request overview
Fixes Goose YAML recipe generation so recipes that include {{args}} also declare an args parameter, preventing goose recipe validate failures.
Changes:
- Override
GooseIntegration._render_yamlto emit aparameterssection declaringargs. - Add integration tests asserting generated Goose recipes declare
argswhen{{args}}appears in the prompt. - Add a control test confirming the base
YamlIntegrationrenderer does not declareparameters.
Show a summary per file
| File | Description |
|---|---|
src/specify_cli/integrations/goose/__init__.py |
Adds Goose-specific YAML rendering that includes an args parameter definition. |
tests/integrations/test_integration_goose.py |
Adds tests verifying the new Goose renderer behavior and documenting the base renderer behavior. |
Copilot's findings
Tip
Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
- Files reviewed: 2/2 changed files
- Comments generated: 1
Comment on lines
+3
to
+4
| import re | ||
|
|
Collaborator
|
Please address Copilot feedback |
87641b3 to
5cbe958
Compare
Author
I just edited my previous commit to remove the unused import. |
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.
Description
Fixes an issue in the Goose integration where generated recipes include
{{args}}in the prompt but do not declare a correspondingargsparameter.This causes
goose recipe validateto fail with:The fix overrides
_render_yamlinGooseIntegrationto include aparameterssection declaring theargsparameter, ensuring all generated recipes are valid.Testing
uv run specify --helpuv sync --extra test && uv run pytestgoose recipe validate)AI Disclosure
Consulted ChatGPT to reason through the root cause and propose an implementation approach. Final code and validation were done manually.