Repository navigation
Conversation
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
| `.github/aw/debug-scenarios.md`; load only the selected specialized route. | ||
|
|
||
| Load the target repository's `.github/aw/instructions.md`, if present. It | ||
| overrides this agent. Use `@.github/aw/instructions.md` only in a matching checkout, |
|
🧠 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.
|
|
✅ 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.
|
|
✅ Design Decision Gate 🏗️ completed the design decision gate check. See the comment below for the result and any generated ADR draft. Design Decision Gate 🏗️Outcome: 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.
|
|
✂️ Ponytail Reviewer has started processing this pull request |
|
✅ PR Code Quality Reviewer completed the code quality review.
|
There was a problem hiding this comment.
Overview
Reviewed PR head 6e03541fc93cec6dc576421dce1ddac7e2bab59a against the agentic-workflows router and prompt-token-efficiency prefix contracts.
Key issue
- The new route table maps generic diagnosis to
debug-bootstrap.md, omitting the requireddebug-agentic-workflow.mdroute; this can bypass local-first evidence and live-gate guidance. Inline comment added on.github/agents/agentic-workflows.md:31.
The existing security comment about repository overlay precedence remains applicable and was not duplicated. No specification updates were proposed.
Coverage
Reviewed the prefetched diff and changed guidance/test files; no tests or conformance scripts were run per static-review policy.
Generated by PR Specification Reviewer for #77808 · copilot · gpt50 · ~4 AIC · ⌖ ~2 AIC · ⊞ 1.6K
Comment /review-specs to run again
| | Request | Guide | | ||
| |---|---| | ||
| | Create / update | `.github/aw/create-agentic-workflow.md` / `.github/aw/update-agentic-workflow.md` | | ||
| | Diagnose / run analysis | `.github/aw/debug-bootstrap.md` / `.github/aw/analyzing-runs.md` | |
There was a problem hiding this comment.
This route drops the direct debug guide required by the router contract. .github/skills/agentic-workflows/SKILL.md distinguishes generic diagnosis/patching (.github/aw/debug-agentic-workflow.md) from existing-run analysis (.github/aw/analyzing-runs.md), while debug-bootstrap.md is only the preliminary route for sessions needing CLI setup or run-URL scoping. Please keep the diagnosis route pointed at debug-agentic-workflow.md and reserve bootstrap for that qualified case; otherwise a normal diagnosis can miss the local-first evidence and live-gate instructions.
There was a problem hiding this comment.
The dispatcher keeps diagnosis on .github/aw/debug-agentic-workflow.md and reserves bootstrap for CLI setup/run-URL scoping; the route distinction is now asserted in fc85fdd.
Comment MemoryPeek at saved memory (spec-review-history)History |
Comment MemoryPeek at saved memory (pr-code-quality-reviewer)Note This comment is managed by comment memory.Expand the saved memory block to view or edit the persistent context for this thread.
|
There was a problem hiding this comment.
Found one blocking test-contract issue: the new prefix assertions inspect the first 8,000 bytes rather than the marker-delimited instruction prefix, so they can pass while required guidance is outside the actual prefix. No tests were run per the static-review instructions.
🔎 Code quality review by PR Code Quality Reviewer · copilot · gpt50 · ~3 AIC · ⌖ ~1 AIC · ⊞ 1.5K
Comment /review to run again
| data = (ROOT / ".github/agents/agentic-workflows.md").read_bytes() | ||
| marker = b"<!-- instruction-prefix-end -->" | ||
| self.assertLessEqual(data.index(marker) + len(marker), 7500) | ||
| prefix = data[:8000].decode("utf-8") |
There was a problem hiding this comment.
The contract being tested is the bytes through instruction-prefix-end (the marker is what the production loader uses to delimit the prefix), but this assertion suite slices an unrelated fixed 8,000 bytes. As a result, a required route/rule could be moved after the marker and these checks would still pass, allowing the exact prefix regression this test is intended to catch. Slice through the marker (or assert the marker-bounded prefix) before checking these rules.
There was a problem hiding this comment.
The dispatcher contract checks use the prefix ending at instruction-prefix-end, and the route assertions run against that slice. fc85fdd adds the direct-route assertions.
Comment MemoryPeek at saved memory (review-history)History |
There was a problem hiding this comment.
🟡 Changes recommended
The wording changes remove exact text required by two existing Go tests, causing deterministic failures until the assertions or template wording are updated.
2 open issues
What changed in this PR
This PR makes gh-aw guidance usable within truncated prompt reads and addresses workflow-design completeness gaps identified in #77806.
Changes:
- Moves routing and mandatory safety rules before an explicit prefix marker.
- Adds owner resolution, edit handling, missing-input reporting, and plain-language persona guidance.
- Synchronizes the embedded agent prompt and extends prefix-contract tests.
| File | Description |
|---|---|
pkg/cli/data/agentic_workflows_agent.md |
Synchronizes the CLI’s embedded routing and safety guidance. |
.github/skills/agentic-workflows/tests/test_guidance.py |
Adds checks for prefix limits, routes, and completeness rules. |
.github/aw/create-agentic-workflow.md |
Compresses guidance and adds explicit evaluation requirements. |
.github/agents/agentic-workflows.md |
Places key routes and safety rules before the prefix marker. |
Review effort: Balanced (dynamic)
| Load the target repository's `.github/aw/instructions.md`, if present. It | ||
| overrides this agent. Use `@.github/aw/instructions.md` only in a matching checkout, | ||
| never as the guidance-repository overlay. |
There was a problem hiding this comment.
Skills-Based Review 🧠
Applied /grill-with-docs and /codebase-design, plus /tdd on the test contracts. Requesting changes: the prefix split is sound, but the rewrite adds a contradictory failure signal and drops two recommendation guardrails.
📋 Key Themes & Highlights
Key Themes
- Contradictory failure signal:
report_incompleteis now required for missing design input in ad hoc mode (create-agentic-workflow.md:106). It triggers failure tracking even on exit 0, so it does not fit interactive evaluation. - Lost guardrails:
state assumptions and alternativesandwithout option dumpswere removed. No test covers either. - Weak contract tests: the new assertions are substring checks, so they still pass on contradictory wording.
- Unaddressed security thread: the overlay line (
agentic-workflows.md:23) still says the repositoryinstructions.mdoverrides this agent. The existing advanced-security comment on that line is unresolved.
Positive Highlights
- ✅ Early routes and safety rules now sit inside the 7,500-byte prefix (dispatcher marker at 6,658 bytes)
- ✅
pkg/cli/data/agentic_workflows_agent.mdmatches the dispatcher file exactly - ✅ All route targets exist. On a clean export of the PR head, the guidance suite passes (82 tests) and
check-instruction-prefixespasses
@copilot please address the review comments above.
🧠 Reviewed using Matt Pocock's skills by Matt Pocock Skills Reviewer · copilot · routed: haiku55 xhigh · ~10 AIC · ⌖ ~2 AIC · ⊞ 6.6K
Comment /matt to run again
| - Resolve each responsible owner from CODEOWNERS or maintainer metadata. If unresolved, | ||
| say so and identify who must confirm. For later edits, state whether to update the | ||
| same target or noop; update changed content and noop only when no change is needed. | ||
| If required input is missing, call `report_incomplete`; never silently noop. |
There was a problem hiding this comment.
[/grill-with-docs] report_incomplete is the wrong signal for a missing design input. Per .github/aw/safe-outputs-runtime.md, it triggers failure handling even when the process exits 0, and it is meant for unavailable tools or data. Interactive evaluation has no safe-output channel, and the Modes section asks for focused questions, so this rule conflicts with it.
💡 Suggested fix
Scope the rule by context. In interactive or ad hoc mode, ask one focused question. In workflow or issue-form runs, call report_incomplete only when required data or tools are unavailable. Keep noop for no-change cases.
@copilot please address this.
There was a problem hiding this comment.
The prompt now scopes report_incomplete to workflow/issue-form runs with unavailable required data or tools, while interactive/ad hoc runs ask one focused question; that wording is in 6448013.
| window, grouping and a stable dedup key. | ||
| - Use one comparison table for multiple scenarios; name shared triggers/write | ||
| paths. Offer file generation only as the next explicit implementation step. | ||
| Ask 1-2 questions only if answers change the recommendation; otherwise state assumptions. |
There was a problem hiding this comment.
[/grill-with-docs] This removes and alternatives from the recommendation rule, so ad hoc answers can list assumptions with no comparison. The Modes change also drops without option dumps. Restore both.
💡 Suggested fix
Restore state assumptions and alternatives on this line, and restore keep it short, iterative and without option dumps in the Modes section (around line 42). Both guard recommendation quality, and no test covers either.
@copilot please address this.
There was a problem hiding this comment.
The prompt retains state assumptions and alternatives and without option dumps; fc85fdd adds regression assertions for both.
| ".github/aw/create-agentic-workflow.md": ( | ||
| "read-only", "create-agentic-workflow-design.md", "create-agentic-workflow-validation.md", | ||
| "gh aw compile <workflow-id>", "noop", "Default:", | ||
| "gh aw compile <workflow-id>", "noop", "Default:", "CODEOWNERS", |
There was a problem hiding this comment.
[/tdd] These contract checks are substring matches. CODEOWNERS, report_incomplete, and noop would still pass if the rule were reworded into a contradiction like the one flagged on create-agentic-workflow.md line 106.
💡 Suggested test
Assert each rule in its context, for example: the sentence containing report_incomplete must also contain required input. Write this check red first, against the current contradictory wording, then fix the rule to make it pass.
@copilot please address this.
There was a problem hiding this comment.
The existing test checks the report_incomplete sentence for workflow/issue-form context and required-data/tool unavailability, plus the interactive question behavior. fc85fdd adds assertions for related recommendation wording.
| @@ -1,38 +1,35 @@ | |||
| --- | |||
| description: Design, evaluate, create and compile gh-aw workflows with explicit intent, scope and safety. | |||
| description: Design and compile gh-aw workflows with explicit intent, scope and safety. | |||
There was a problem hiding this comment.
[/codebase-design] The description drops create and evaluate, the two main modes, so create requests may be harder to discover.
💡 Suggested fix
Restore the original wording: Design, evaluate, create and compile gh-aw workflows with explicit intent, scope and safety. It adds about 18 bytes, which stays well under the 7,500-byte prefix budget.
@copilot please address this.
There was a problem hiding this comment.
The description again includes Design, evaluate, create and compile; fc85fdd adds a regression assertion for that contract.
|
🍳 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": "6e03541fc93cec6dc576421dce1ddac7e2bab59a",
"kind": "requested",
"schema_version": "1",
"state": "4258f133fadfa0f21e11538b034054cf86ad8a9b2fe65b619a4f200b72ad8cfe",
"work": [
"071f892806ca3856876c1f398fc20b9dd8961fbbf9459a8fda47486ea927bedf",
"21342be7d493fe81c75e3a530e013cbfaa1a64fb1f4bf79e6f9bd32edaff9c37",
"24df7e663bebdd90482ce6eedbdd13e0f05f1621ec65356d54f3655a7efef210",
"3355745701a0d74d88a6afc3e40bdcc827c9c8e86e1c2e55b3f7873bfb2276bf",
"34f38971738f6a752a646bd7797a6c8d47fb096e4eb6f91e946a91255433c8c4",
"498bff329d58adaaacbe5ef67f1f0f395002d4a315c0c0c7abedc3a3cb73c9a6",
"51e2287c3d1ee41b7e13769862add61dcd292a623cf943abc5968c984e246bcf",
"548ae13f2e242010eca3ccb645cd2af3f922a3642998f60d73f52a0cbb459811",
"8acb61a077717e3a460018aacdfde96fd489f77606cd36169e2328d9079b75bb"
],
"workflow": "pr-sous-chef"
}
|
…-exploration-another-one Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
| load only the selected route. Reuse already-loaded guides. URLs showing `main` | ||
| are defaults only when no guidance ref is supplied. | ||
|
|
||
| Load the target repository's `.github/aw/instructions.md`, if present. It |
|
Category: bug
|
|
🍳 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": "64480136dda31a3d148e33ca8de8ddeb9be4b8de",
"kind": "requested",
"schema_version": "1",
"state": "3d63c1775496cb269173f15e790e236a20657f68e3d27427f74a84ca67b3de92",
"work": [
"071f892806ca3856876c1f398fc20b9dd8961fbbf9459a8fda47486ea927bedf",
"21342be7d493fe81c75e3a530e013cbfaa1a64fb1f4bf79e6f9bd32edaff9c37",
"24df7e663bebdd90482ce6eedbdd13e0f05f1621ec65356d54f3655a7efef210",
"3355745701a0d74d88a6afc3e40bdcc827c9c8e86e1c2e55b3f7873bfb2276bf",
"42e5d572d9d75b7168fe7d0aeda0717cc07e65ed240f6d299e6fec661214f1ac",
"498bff329d58adaaacbe5ef67f1f0f395002d4a315c0c0c7abedc3a3cb73c9a6",
"548ae13f2e242010eca3ccb645cd2af3f922a3642998f60d73f52a0cbb459811"
],
"workflow": "pr-sous-chef"
}
|
…-exploration-another-one Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Triage
|

Agent guidance exceeded the 7,500-byte contract, hiding key routes and safety rules. Ad hoc workflow recommendations also lacked explicit owner resolution, edit behavior, missing-input handling, and persona fit.
report_incompletefor missing inputs, and a plain-language operator/output-reader line for non-technical personas.