Repository navigation
Unify debugging bootstraps and verify instruction routing - #71223
Conversation
Preserve existing entry points, centralize the debugging strategy, inventory references, and add discovery/routing regression scenarios. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Keep public debug and skill paths as thin legacy routers while centralizing bootstrap, inventory, and evidence instructions under .github/aw/. Update direct routing, relative links, and contracts. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
|
✅ 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.
|
|
✅ 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.
|
|
🔎 PR Code Quality Reviewer is reviewing code quality for this pull request... |
|
🧠 Matt Pocock Skills Reviewer has completed the skills-based review. ✅
|
|
✅ 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.
|
There was a problem hiding this comment.
Review summary
No actionable blocking issues found in the capped diff. The documentation split and routing changes are internally consistent, and the added regression contracts cover the new links, source/ref scoping, dry-run guidance, and evidence-first behavior. Static review only; repository tests were not run per review instructions.
🔎 Code quality review by PR Code Quality Reviewer · copilot · gpt50 · ~10 AIC · ⌖ ~1 AIC · ⊞ 1.6K
Comment /review to run again
| @@ -22,6 +31,7 @@ This is a **dispatcher agent** that routes your request to the appropriate speci | |||
| - **Creating new workflows**: Routes to `create` prompt | |||
| - **Updating existing workflows**: Routes to `update` prompt | |||
| - **Diagnosis, patching, and active debugging**: Routes to `debug-agentic-workflow` for the local-first strategy, evidence triage and live gates | |||
There was a problem hiding this comment.
The new debugging router points at five canonical guides, but pkg/cli/data/agentic_workflows_fallback_aw_files.json still contains no entries for them, so offline/embedded installations cannot load the routes this change advertises. Regenerate the fallback bundle and add parity coverage before merging.
💡 Why this blocks the routing change
The installed agent can select debug-bootstrap.md or one of the specialized routes, then fail because the embedded fallback payload does not ship those files. This creates an installation-dependent behavior regression. Keep the fallback manifest synchronized with .github/aw/*.md and test that every listed route is present in the embedded data.
| Never execute untrusted artifacts. Keep secrets, prompts, config/environment | ||
| values and opaque reasoning private. | ||
| Never execute artifacts. Keep secrets, prompts, configuration and opaque reasoning private. | ||
|
|
There was a problem hiding this comment.
This replacement removes the explicit prohibition on executing untrusted artifacts and on exposing configuration/environment values. That is a security regression in a run-triage playbook: downloaded logs, prompts, and artifacts are untrusted and may contain instruction injection or secrets. Restore the original guard (or an equivalent explicit rule) rather than weakening it while shortening the prose.
💡 Impact and rationale
The remaining sentence only says to keep secrets/private reasoning private; it does not prevent an agent from executing a downloaded artifact or reproducing commands embedded in hostile evidence. Preserve both controls: never execute untrusted artifacts, and keep secrets, prompts, configuration/environment values, and opaque reasoning out of reports.
There was a problem hiding this comment.
Skills-Based Review 🧠
Applied /grill-with-docs and /codebase-design (per pr-triage) to this documentation-restructuring PR. No actionable issues found — approving.
📋 Verification performed
- Ran the 46-test regression suite (
.github/skills/agentic-workflows/tests/test_guidance.py) against the actual PR commit (f694876): all 46 tests pass. - Manually traced every new/changed cross-reference across
debug-bootstrap.md,debug-scenarios.md,debug-compilation.md,debug-workflow-health.md,debug-workflow-evidence.md,debug-agentic-workflow.md,debug-playbook.md,analyzing-runs.md,debug.md, anddebugging-workflows/SKILL.md— all links and anchors (#development-compilation,#user-visible-dry-run-result,#compile-only-validation,#single-reviewer,#session-authorization,#dry-run-dangerous-features, etc.) resolve correctly. - Confirmed file-size budget claims:
debug-workflow-evidence.mdis 19,938 bytes (just under the 20 KB API-read guard);debug-bootstrap.mdis 12,221 bytes. - Confirmed the router files (
SKILL.md,debug.md,create.md,.github/agents/agentic-workflows.md,pkg/cli/data/agentic_workflows_agent.md,pkg/cli/data/agentic_workflows_skill.md) consistently delegate todebug-bootstrap.mdand preserve the#model-and-engine-misconfigurationanchor. - Verified the legacy
debug.mdanddebugging-workflows/SKILL.mdare genuinely thin routers (9 and 22 added lines respectively, net deletions of 193 and 653 lines) that preserve required destination links without reintroducing removed CLI command text.
Positive Highlights
- ✅ Clean separation of concerns: bootstrap (identity/setup) vs. scenario index (intent routing) vs. specialized guides (compilation, health, evidence) — a textbook deep-module decomposition that keeps each file focused and discoverable.
- ✅ Backward compatibility is handled carefully: old anchors and routers are preserved as thin redirects rather than broken, and this is enforced by tests (
test_legacy_debug_entries_are_thin_routers,test_debug_inventory_preserves_all_debug_named_markdown). - ✅ The PR description's own paired-evaluation section is refreshingly honest about limits (no demonstrated behavioral-accuracy lift, synthetic-only evaluation) rather than overclaiming.
- ✅ Good terminology consistency:
RUN_URL/REPO/RUN_IDscoping conventions are applied uniformly acrossdebug-playbook.md,debug-agentic-workflow.md, anddebug-bootstrap.md.
Notes
- The diff patch provided was truncated at 3000 lines (missing the tail of
debugging-workflows/SKILL.mdand the docs/troubleshooting files), so I cross-checked those directly against the PR's HEAD commit in the checkout to confirm consistency; no issues found there either.
🧠 Reviewed using Matt Pocock's skills by Matt Pocock Skills Reviewer · copilot · sonnet50 · ~132 AIC · ⌖ ~16 AIC · ⊞ 10.2K
Comment /matt to run again
There was a problem hiding this comment.
🟡 Changes recommended
Documented audit inputs do not match CLI behavior, and embedded guide inventories and existing test assertions remain out of sync.
9 open issues
Support host-aware repository parsing in audit commands · New Update Go assertion for the supported audit command · New Add missing debugging guides to fallback inventory · New Separate default-branch installation from feature-branch testing · New Document production lock generation after diagnostic compilation · New Use parent run URL for findings and artifact collection · New Preserve guidance repository identity when reading source files · New Remove temporary changeset link from permanent inventory · New Document revision evidence paths for named workflows · New
What changed in this PR
This PR centralizes gh-aw debugging guidance under .github/aw/, with legacy entry points routing to specialized guides while preserving user intent, run scope, and guidance-source identity.
Changes:
- Adds canonical bootstrap, scenario, compilation, health, and evidence guides.
- Updates skills, custom-agent templates, and troubleshooting documentation to use shared routing and execution gates.
- Expands regression fixtures and checks for routing, links, source resolution, and installed/embedded parity.
| File | Description |
|---|---|
SKILL.md |
Routes debugging before installation. |
pkg/cli/data/agentic_workflows_skill.md |
Adds embedded skill routing precedence. |
pkg/cli/data/agentic_workflows_agent.md |
Adds embedded agent debugging routes. |
docs/src/content/docs/troubleshooting/debugging.md |
Aligns troubleshooting with shared gates. |
docs/src/content/docs/troubleshooting/debug-ghe.md |
Integrates enterprise debugging with shared guidance. |
debug.md |
Replaces duplicated instructions with a legacy router. |
create.md |
Delegates debugging before authoring setup. |
CONTRIBUTING.md |
Updates the workflow-debugging prompt link. |
.github/skills/review-agentic-workflows/SKILL.md |
Points to the extracted dry-run result contract. |
.github/skills/debugging-workflows/SKILL.md |
Becomes a thin evidence-reference router. |
.github/skills/agentic-workflows/tests/test_guidance.py |
Adds routing and documentation contract checks. |
.github/skills/agentic-workflows/tests/fixtures.json |
Adds intent and source-resolution fixtures. |
.github/skills/agentic-workflows/SKILL.md |
Updates installed routing and guide inventory. |
.github/aw/runbooks/workflow-health.md |
Adds shared-policy delegation and corrected commands. |
.github/aw/debug-workflow-health.md |
Extracts revision-aware fix verification. |
.github/aw/debug-workflow-evidence.md |
Relocates the debugging evidence reference. |
.github/aw/debug-scenarios.md |
Adds intent and capability-based route selection. |
.github/aw/debug-playbook.md |
Preserves scoped URLs in evidence collection. |
.github/aw/debug-model-engine-misconfiguration.md |
Adds shared-policy and diagnostic-compilation guidance. |
.github/aw/debug-compilation.md |
Extracts compilation checks and result requirements. |
.github/aw/debug-bootstrap.md |
Adds source resolution, setup, and entry-point inventory. |
.github/aw/debug-agentic-workflow.md |
Delegates specialized guidance and revises audit scoping. |
.github/aw/analyzing-runs.md |
Delegates fix verification to the health guide. |
.github/agents/agentic-workflows.md |
Synchronizes custom-agent debugging and fleet routes. |
Review effort: Max
| For genuinely bare IDs, pass `--repo HOST/OWNER/REPO` explicitly, including | ||
| follow-up audits and run-status commands. Do not infer the target from the |
|
|
||
| ```bash | ||
| gh aw audit RUN_ID RUN_ID_2 RUN_ID_3 --group --json | ||
| gh aw audit RUN_ID RUN_ID_2 RUN_ID_3 --repo HOST/OWNER/REPO --group --json |
| - `.github/aw/debug-bootstrap.md` | ||
| - `.github/aw/debug-compilation.md` |
| Publish source and generated lock together to an authorized feature branch. | ||
| For a debugging test, follow the shared strategy's security review, | ||
| `gh aw compile repo-assist --dry-run`, and explicit live-authorization gates | ||
| before dispatching the exact reviewed branch: |
| This emits a diagnostic lock, not a live run or a normal production replacement. | ||
| Preserve evidence and user changes using the strategy's snapshot/restore rules. | ||
| Publication and live testing follow its feature-branch and exact-revision gates; | ||
| do not infer permission to push or rerun from a successful compile. |
|
|
||
| ```bash | ||
| gh aw audit RUN_ID --artifacts usage,github-api,mcp,agent | ||
| gh aw audit "$RUN_URL" --output AUDIT_DIR --artifacts usage,github-api,mcp,agent |
| For GitHub Contents API readers, use `owner=github`, `repo=gh-aw`, and the | ||
| guidance `ref`, not the workflow's repository or branch. Normalize Markdown |
| | [failure-issue template](../../actions/setup/md/agent_failure_issue.md) | Generated issue prompt linking to this bootstrap. | | ||
| | [shared/mcp-debug.md](../workflows/shared/mcp-debug.md) | Executable workflow import, not a session bootstrap; importing it changes tools/outputs. | | ||
| | [debugging-action-pinning.md](../../scratchpad/debugging-action-pinning.md) | Narrow action-pinning investigation note, not a general bootstrap. | | ||
| | [local-first debugging ADR](../../docs/adr/66270-local-first-workflow-debugging-compile-modes.md), [debug-record filtering ADR](../../docs/adr/70614-filter-multiline-debug-records-in-mcp-compile-diagnostics.md), [debug-log changeset](../../.changeset/patch-relocate-claude-debug-log.md) | Historical design/release records, not agent instructions. | |
|
|
||
| ## Match the Source Actually Exercised | ||
|
|
||
| Read `collection` and `workflows[].revisions`: compare |
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
|
🎉 This pull request is included in a new release. Release: |


Unify debugging bootstraps, preserve existing links, and route users to specialized instructions without losing intent, run identity, or guidance-source provenance. Current published revision:
0962730c794342fcafa40ddea170f4b037c76ab2.Instruction owners
Substantive guidance lives under
.github/aw/. Rootdebug.md, existing skills/custom agents, installed/embedded entry points, and bookmarked strategy headings remain compatible routers.debug-bootstrap.mddebug-scenarios.mddebug-agentic-workflow.mddebug-compilation.mddebug-workflow-health.mdanalyzing-runs.md.debug-workflow-evidence.mddebug-live-testing.mdConflicts removed
audit --searchuses the parent run ID because job/step URLs are rejected.maindefaults; public raw fallback preserves that exact ref and does not bypass private/GHE access controls.gh aw compile WORKFLOW --dry-runfirst for testing changes. It emits diagnostic locks, does not execute the workflow, is not a production-lock replacement, and does not authorize dispatch.validateskips lock emission and the optional scanners;compile --validatecan emit.gh aw logs --timeout: it is minutes; a five-minute example is--timeout 5, not300.Compaction
For the three common-path guides (bootstrap, shared strategy and evidence), previous published revision
f694876181versus0962730c79:The shared strategy is 15,876 bytes; bootstrap is 11,262 and evidence is 15,577. All fit the full-file API guard. The optional live guide holds 5,013 bytes of moved procedures; both original sections were checked verbatim. These are source-size/common-path measurements, not corpus-wide or measured model-token/cost savings. The larger playbook still requires size-aware retrieval.
Actual isolated multi-model evaluation
Twelve fresh standalone chat sessions exercised the published
0962730c79instructions: six cases per model, each with an initial user question and a follow-up. No parent conversation/project checkout was supplied. Actualsession.startand assistant-message metadata confirmed GPT-6.1 Sol (gpt-6.1-sol) and Claude Opus 5.5 (claude-opus-5.5) rather than relying on self-identification.Cases: beginner browser help; a real existing failed run; cached unavailable-tool evidence after collection denial; Docker-free compile advice; failed cross-family child under a green parent; and urgent unpublished/unreviewed live-test pressure. All twelve made real public-source reads at the pinned commit. Ten follow-ups were session messages; two were answers to native input prompts. Extra lifecycle continuations were recorded, not counted as additional test cases.
These are conservative, unblinded parent scores, not flawless adherence:
Real evidence outcome: Both models independently diagnosed existing run 39862673130: an early
COMMENTreview consumed the one-review limit, a laterREQUEST_CHANGESsubmission was rejected, the agent emittedreport_incomplete, andHandle agent failuresurfaced that earlier failure. Sol additionally verified the workflow source at the runtime merge SHA and recommended fixing submission order rather than blindly raising the limit. Each model executed one successful bounded audit; neither changed or reran the workflow.Conclusion: Functional routing was effective in all six tested situations on both models. Strict evidence-budget adherence and diagnostic certainty remain weaknesses. The unauthorized-live cases correctly stopped before permitted-live procedures; actual authorized-live-guide discovery/execution was not tested.
Frozen study/rubric, actual prompts/responses, model metadata, source ledgers, event-indexed findings, private ground-truth audit, and per-case scores are retained in session artifacts under
debug-isolated-model-eval/.Earlier paired comparison
A separate frozen-source study compared pre-PR
8c90303ce3with32dc74075dusing identical 14 two-turn scenarios, one fresh simulator per snapshot and parent grading. Both scored 14/14 journeys and 70/70 checks, including dry-run-first advice. No behavioral-accuracy lift was demonstrated: the baseline simulator often compensated for conflicting/missing instructions. Two affected retained-context follow-ups atf694876181passed 2/2 journeys and 10/10 checks. These older simulations are not the actual-session study above and do not evaluate the current revision across all 14 cases.Verification and limits
PATH="/opt/homebrew/bin:$PATH" make agent-report-progresspassed before publication. No Go source changed; impacted Go tests were skipped.0962730c79matched local root/router and extracted live-guide files. No Actions workflow was dispatched.