Stabilize Daily Model Inventory Copilot startup by removing fragile quoted jq allow-tool#32505
Merged
Merged
Conversation
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix daily model inventory checker engine failure
Stabilize Daily Model Inventory Copilot startup by removing fragile quoted jq allow-tool
May 16, 2026
pelikhan
reviewed
May 16, 2026
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot stopped work on behalf of
pelikhan due to an error
May 16, 2026 01:05
Contributor
There was a problem hiding this comment.
Pull request overview
Stabilizes the “Daily Model Inventory Checker” Copilot startup by removing a fragile, heavily-escaped jq allow-tool entry that intermittently caused the Copilot CLI to exit early.
Changes:
- Replaces the workflow’s
tools.bashallowlist with a wildcard ("*"), resulting in--allow-all-toolsin the compiled Copilot invocation. - Updates the compiled lock workflow to remove the previously generated quoted
jq--allow-tool shell(...)entry. - Extends the Go workflow compilation test to assert
--allow-all-toolsis present and that the quotedjqallow-tool pattern is absent.
Show a summary per file
| File | Description |
|---|---|
pkg/workflow/daily_model_inventory_workflow_test.go |
Adds regression assertions around compiled workflow tool flags/patterns. |
.github/workflows/daily-model-inventory.md |
Changes bash tool configuration to wildcard, impacting compiled Copilot permissions. |
.github/workflows/daily-model-inventory.lock.yml |
Reflects the recompiled Copilot invocation without the quoted jq allow-tool entry. |
Copilot's findings
Tip
Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
- Files reviewed: 3/3 changed files
- Comments generated: 1
Comment on lines
301
to
307
| tools: | ||
| cli-proxy: true | ||
| playwright: | ||
| mode: cli | ||
| bash: | ||
| - "cat /tmp/gh-aw/model-inventory/inventory.json" | ||
| - "jq . /tmp/gh-aw/model-inventory/inventory.json" | ||
| - "jq . /tmp/gh-aw/model-inventory/artifacts/*/models.json" | ||
| - "jq . /tmp/gh-aw/model-inventory/artifacts/*/raw.json" | ||
| - "jq '[.data[] | keys] | add | unique' /tmp/gh-aw/model-inventory/artifacts/openai-models/raw.json" | ||
| - "jq '[.data[] | keys] | add | unique' /tmp/gh-aw/model-inventory/artifacts/anthropic-models/raw.json" | ||
| - "jq '[.models[] | keys] | add | unique' /tmp/gh-aw/model-inventory/artifacts/gemini-models/raw.json" | ||
| - "jq . /tmp/gh-aw/model-inventory/reflect.json" | ||
| - "jq \".endpoints[] | select(.provider == \\\"copilot\\\") | .models\" /tmp/gh-aw/model-inventory/reflect.json" | ||
| - "cat /tmp/gh-aw/model-inventory/artifacts/copilot-billing-multipliers/multipliers.json" | ||
| - "jq . /tmp/gh-aw/model-inventory/artifacts/copilot-billing-multipliers/multipliers.json" | ||
| - "jq '.models[]' /tmp/gh-aw/model-inventory/artifacts/copilot-billing-multipliers/multipliers.json" | ||
| - "find /tmp/gh-aw/model-inventory -type f" | ||
| - "cat pkg/workflow/data/model_aliases.json" | ||
| - "cat pkg/cli/data/model_multipliers.json" | ||
| - "*" | ||
| github: |
This was referenced May 16, 2026
Open
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.
Daily Model Inventory Checkerintermittently failed before agent execution: Copilot exited immediately withexitCode=1and no stderr/stdout. The failing run included a quoted jq-filtershell(...)allow-tool argument in the generated Copilot command line.Root-cause mitigation in workflow tool allow-list
daily-model-inventory.md.reflect.jsonvia safer, simpler allowed commands already present (jq . /tmp/gh-aw/model-inventory/reflect.json,cat, etc.).Compiled workflow alignment
daily-model-inventory.lock.ymlso the generated Copilot invocation no longer includes:--allow-tool 'shell(jq ".endpoints[] | select(.provider == \"copilot\") | .models" /tmp/gh-aw/model-inventory/reflect.json)'Regression guard
pkg/workflow/daily_model_inventory_workflow_test.gowith an assertion that this quoted jq allow-tool pattern is absent from the compiled lock workflow.