Repository navigation
Conversation
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
|
🧠 Matt Pocock Skills Reviewer has completed the skills-based review. ✅
|
|
✅ PR Specification Reviewer completed successfully! PR Specification ReviewerOutcome: The agent completed and reported one or more actions. The no-op output is a completion signal, not a claim that no action was taken. Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.
|
|
✅ Ponytail Reviewer completed successfully! Ponytail ReviewerOutcome: The agent completed and reported no action. A no-op output alone does not verify that all required work was completed or that publication was possible. Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.
|
|
✅ Test Quality Sentinel completed test quality analysis. Test Quality SentinelOutcome: The agent completed and reported no action. A no-op output alone does not verify that all required work was completed or that publication was possible. Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.
|
|
✅ PR Code Quality Reviewer completed the code quality review. PR Code Quality ReviewerOutcome: The agent completed and reported one or more actions. The no-op output is a completion signal, not a claim that no action was taken. Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.
|
Comment MemoryPeek at saved memory (spec-review-history)History |
There was a problem hiding this comment.
Reviewed the changed guidance pinning and release/development catalog behavior. I found no actionable correctness, regression, or test issues in the changed lines.
🔎 Code quality review by PR Code Quality Reviewer · copilot · gpt50 · ~3 AIC · ⌖ ~1 AIC · ⊞ 1.5K
Comment /review to run again
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues are reported for the changes pinning generated guidance to the installed release.
No open issues 🎉
What changed in this PR
Pins generated agent and skill guidance to the installed gh aw release, addressing version skew and catalog churn described in #77390 while preserving development-build behavior.
Changes:
- Uses the embedded prompt inventory for release builds instead of fetching a mutable remote catalog.
- Pins guidance URLs and ref labels to the release tag, including prereleases; development builds retain
main. - Adds tests for version selection, URL rendering, catalog fetching, and reproducible release output.
| File | Description |
|---|---|
pkg/cli/copilot_agents.go |
Selects release-aware guidance refs, pins template links, and uses embedded release catalogs. |
pkg/cli/copilot_agents_test.go |
Tests release and development guidance behavior and release-output consistency. |
Review effort: Balanced (adaptive)
Comment MemoryPeek at saved memory (review-history)History |
There was a problem hiding this comment.
Skills-Based Review 🧠
Applied /diagnosing-bugs and /tdd. The core change is sound: release builds pin guidance URLs and labels to the release tag, while dev builds keep main and remote catalog discovery. One latent issue is flagged inline.
📋 Key Themes & Verification
Key Themes
- Replacer scope: the
mainto ref replacement matches any backtickedmainin the templates, not just the guidance-ref label (inline comment). - Unpinned guide links: three guides under
.github/aw/still hardcodegh-aw/main/URLs, so they drift tomainonce an agent follows them. Those files are outside this diff, so this is a follow-up, not a blocker.
Positive Highlights
- ✅ Release-pinned catalogs avoid mutable remote lists, which addresses #77390.
- ✅ The new test covers stable, prerelease, dev, tag-only, commit-suffixed, and empty-version cases, and checks that release output is deterministic.
- ✅ Every
.github/awlink in the two templates exists in the embedded fallback list.
Verification
TestAgenticWorkflowsGuidanceVersionand related targeted tests pass;gofmtandgo vetare clean.- Full
./pkg/clirun: onlyTestLintCacheModeLiteralsCLIfails. It needs a Docker daemon for actionlint, which this sandbox lacks, so it is environmental and unrelated.
🔧 Suggested follow-ups
- Narrow the replacer as described inline.
- Pin the
https://raw.githubusercontent.com/github/gh-aw/main/links inagentic-chat.md,debug-bootstrap.md, andupgrade-agentic-workflows.md, or document that they are intentionally canonical.
@copilot please address the inline comment.
🧠 Reviewed using Matt Pocock's skills by Matt Pocock Skills Reviewer · copilot · routed: haiku55 xhigh · ~6 AIC · ⌖ ~2 AIC · ⊞ 6.6K
Comment /matt to run again
| // Embedded templates default to main; pin both links and their ref labels. | ||
| return strings.NewReplacer( | ||
| "https://raw.githubusercontent.com/github/gh-aw/main/", "https://raw.githubusercontent.com/github/gh-aw/"+ref+"/", | ||
| "`main`", "`"+ref+"`", |
There was a problem hiding this comment.
[/diagnosing-bugs] The main to ref replacement is broader than intended: it rewrites every backticked main in the templates, not just the guidance-ref label. Any future prose such as "on the main branch" would silently become the release tag. Only the two intended labels match today, so this is a latent corruption path.
💡 Suggested fix
Anchor the pattern to the phrase the templates actually use:
strings.NewReplacer(
"https://raw.githubusercontent.com/github/gh-aw/main/", "https://raw.githubusercontent.com/github/gh-aw/"+ref+"/",
"URLs showing `main`", "URLs showing `"+ref+"`",
).Replace(content)Add a case to TestAgenticWorkflowsGuidanceVersion asserting that an unrelated backticked main survives rendering.
@copilot please address this.
There was a problem hiding this comment.
Fixed in 744f27f: the ref-label replacement now targets only the intended “URLs showing main” phrase, and a regression assertion confirms unrelated backticked main text is preserved.
|
🍳 A little prep to help this PR along! Copilot assignment requested for the following outstanding work:
Keeping the changes focused; human review and CI get the final taste test. No merging or CI triggering. Structured data{
"completed_task": 0,
"head": "6aba14d525c299b18cffd914f579ee80b7453147",
"kind": "requested",
"schema_version": "1",
"state": "4b8699855289b268bebd36b605ba37ae387f8c30e0d60aeadd5b5f72c345b40c",
"work": [
"15e59b9cfa5a63be87463529e7f7e3709f8d1d9e1f727c1af8c2cce44e5d6c3e"
],
"workflow": "pr-sous-chef"
}
|
…rade-dispatcher-skill # Conflicts: # pkg/cli/copilot_agents.go # pkg/cli/copilot_agents_test.go Co-authored-by: copilot-swe-agent[bot] <[email protected]>
| awFiles = embeddedFallbackAWMarkdownFiles() | ||
| } else { | ||
| var err error | ||
| awFiles, err = listAgenticWorkflowsMarkdownFiles(ctx) |
upgrade,init, andfixgenerated guidance frommain, exposing release-pinned repositories to unsupported prompts and catalog churn without a CLI update.mainURLs and remote catalog discovery.gh aw upgradewrites a dispatcher skill that tracksmaininstead of the installed CLI version #77390