Skip to content

docs(gh-aw): clarify Auto-Cast first-run UX, add canonical fallback, Cast PR return guidance (#1700) - #1702

Merged
bradygaster merged 1 commit into
devfrom
squad/1700-auto-cast-ux-guidance
Aug 13, 2026
Merged

docs(gh-aw): clarify Auto-Cast first-run UX, add canonical fallback, Cast PR return guidance (#1700)#1702
bradygaster merged 1 commit into
devfrom
squad/1700-auto-cast-ux-guidance

Conversation

@bradygaster

Copy link
Copy Markdown
Owner

Closes #1700

Summary

Ports and refines the UX guidance changes validated in E2E runs against issue #1 of bradygaster/squad. Targets dev only — no merge requested.

Changes

  • workflows/squad.md — adds safe fallback prose to {canonical_mode}/{canonical_command} variable definitions; updates first-run Auto-Cast Pivot comment to be warmer and explicitly say the original command is paused this run; appends return-to-originating-issue + rerun instruction to Cast Step 6 PR body
  • test/gh-aw-quality.test.ts — focused non-duplicative #1700 describe block with 3 assertions: canonical fallback, paused-run wording, Cast PR body return/rerun. 82/82 tests pass
  • docs/demo-agentic-sdlc-walkthrough.md — labels two-issue explicit Cast as deliberate presenter variant; notes inline auto-Cast path
  • docs/src/content/docs/guide/gh-aw.md — concise no-team auto-Cast callout in Research section

Validation

  • gh aw compile workflows/squad.md --strict --no-emit passes at repo root; pre-existing dispatch-workflow strict-check failure from gh aw compile in worktree subpath not introduced here
  • npx vitest run test/gh-aw-quality.test.ts — 82/82 pass in isolated worktree
  • npm run build — passes (SDK + CLI)
  • Markdownlint finding at docs/demo-agentic-sdlc-walkthrough.md:312 (MD018) is pre-existing, not in a changed line
  • git diff --cached --diff-filter=D — 0 deletions; exactly 4 files

Live E2E Evidence

Threat Detector Note

Any threat-detector warnings on this PR are upstream parse_error findings from the agentic workflow engine, not security findings from these content changes.

…Cast PR return guidance

- workflows/squad.md: add safe fallback clauses to canonical_mode/canonical_command
  definitions; update first-run Auto-Cast Pivot comment to be warmer, explain
  paused-run state, and give explicit merge/rerun instruction; append return-to-
  originating-issue rerun instruction to Cast Step 6 PR body
- test/gh-aw-quality.test.ts: add focused non-duplicative #1700 describe with
  3 assertions: canonical fallback wording, paused-run wording, Cast PR body
  return/rerun instruction
- docs/demo-agentic-sdlc-walkthrough.md: label two-issue explicit Cast as
  deliberate presenter variant and note inline auto-Cast path
- docs/src/content/docs/guide/gh-aw.md: add concise no-team auto-Cast callout
  in Research section

Closes #1700

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: fcedf035-540a-4d9d-8dc5-df265d91fe34
Copilot AI lite review requested due to automatic review settings August 13, 2026 17:19
@github-actions

Copy link
Copy Markdown
Contributor

🟡 Impact Analysis — PR #1702

Risk tier: 🟡 MEDIUM

📊 Summary

Metric Count
Files changed 4
Files added 0
Files modified 4
Files deleted 0
Modules touched 3

🎯 Risk Factors

  • 4 files changed (≤5 → LOW)
  • 3 modules touched (2-4 → MEDIUM)

📦 Modules Affected

docs (2 files)
  • docs/demo-agentic-sdlc-walkthrough.md
  • docs/src/content/docs/guide/gh-aw.md
root (1 file)
  • workflows/squad.md
tests (1 file)
  • test/gh-aw-quality.test.ts

This report is generated automatically for every PR. See #733 for details.

@github-actions

github-actions Bot commented Aug 13, 2026

Copy link
Copy Markdown
Contributor

🛫 PR Readiness Check

ℹ️ This comment updates on each push. Last checked: commit 4be3ace

PR Scope: 🔧 Infrastructure

⚠️ 2 item(s) to address before review

Status Check Details
Single commit 1 commit — clean history
Not in draft Ready for review
Branch up to date Up to date with dev
Copilot review No Copilot review yet — it may still be processing
Changeset present No source files changed — changeset not required
Scope clean No .squad/ or docs/proposals/ files
No merge conflicts No merge conflicts
Copilot threads resolved 2 unresolved Copilot thread(s) — fix and resolve before merging
CI passing All checks passing

Files Changed (4 files, +32 −7)

File +/−
docs/demo-agentic-sdlc-walkthrough.md +1 −1
docs/src/content/docs/guide/gh-aw.md +2 −0
test/gh-aw-quality.test.ts +23 −0
workflows/squad.md +6 −6

Total: +32 −7


This check runs automatically on every push. Fix any ❌ items and push again.
See CONTRIBUTING.md and PR Requirements for details.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR refines the gh-aw Squad documentation and contract tests to clarify the Auto-Cast first-run experience (including safe canonical fallbacks, “paused this run” wording), and to guide users to merge the Cast PR and rerun the originating command.

Changes:

  • Update workflows/squad.md Auto-Cast Pivot guidance with canonical fallbacks, warmer first-run messaging, and Cast PR return/rerun instructions.
  • Add focused #1700 contract coverage in test/gh-aw-quality.test.ts for the new UX text.
  • Clarify explicit-vs-auto Cast guidance in the demo walkthrough and gh-aw docs guide.
Show a summary per file
File Description
workflows/squad.md Clarifies canonical fallback prose, first-run Auto-Cast comment wording, and Cast PR body guidance.
test/gh-aw-quality.test.ts Adds #1700-focused assertions for canonical fallback, paused-run wording, and PR body return/rerun guidance.
docs/src/content/docs/guide/gh-aw.md Adds a concise “no team yet?” Auto-Cast callout in the Research section.
docs/demo-agentic-sdlc-walkthrough.md Reframes the two-issue Cast flow as a deliberate presenter variant and points to inline auto-Cast.

Review details

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

  • Files reviewed: 4/4 changed files
  • Comments generated: 2
  • Review effort level: Lite

Comment thread workflows/squad.md
##### Step 6: Open PR

`create-pull-request`: branch `squad/cast-{repo}`, title `[squad] Cast your Squad — {description}`, body with team summary. Files: `.squad/`, `.github/agents/squad.agent.md`, `meet-the-squad.md`. Stage only these.
`create-pull-request`: branch `squad/cast-{repo}`, title `[squad] Cast your Squad — {description}`, body with team summary. Append to the PR body: "After merging, return to the originating issue and rerun `{canonical_command}` to resume your work." Files: `.squad/`, `.github/agents/squad.agent.md`, `meet-the-squad.md`. Stage only these.
Comment on lines +1121 to +1123
it('canonical_mode definition includes safe fallback for unresolvable mode', () => {
expect(squadContent).toMatch(/if.*canonical_mode.*cannot be determined.*safe fallback|safe fallback.*\/squad/i);
});
@bradygaster
bradygaster merged commit 04a5c23 into dev Aug 13, 2026
17 checks passed
@bradygaster
bradygaster deleted the squad/1700-auto-cast-ux-guidance branch August 20, 2026 07:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

docs(gh-aw): clarify Auto-Cast first-run and merge/rerun guidance, add non-duplicative contract coverage, document explicit-vs-auto Cast

2 participants