feat(gh-aw): use parent issue as casting brief for /squad cast - #1635
Merged
Conversation
Adds a Brief Resolution step (Step 0) before repo analysis that evaluates both the parent issue content and repository state to determine the primary casting input. Implements a priority cascade: empty+empty=noop, issue-only=issue wins, both=merge, repo-only=repo wins, explicit SOT signal=issue overrides. Closes #1634 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Contributor
🟢 Impact Analysis — PR #1635Risk tier: 🟢 LOW 📊 Summary
🎯 Risk Factors
📦 Modules Affectedroot (1 file)
This report is generated automatically for every PR. See #733 for details. |
Contributor
🛫 PR Readiness Check
PR Scope: 🔧 Infrastructure
|
| Status | Check | Details |
|---|---|---|
| ❌ | Single commit | 2 commits — consider squashing before review |
| ✅ | 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 | 0 active Copilot thread(s) resolved (2 outdated skipped) |
| ✅ | CI passing | All checks passing |
Files Changed (1 file, +31 −0)
| File | +/− |
|---|---|
workflows/squad.md |
+31 −0 |
Total: +31 −0
This check runs automatically on every push. Fix any ❌ items and push again.
See CONTRIBUTING.md and PR Requirements for details.
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates the Cast mode workflow documentation to add Step 0: Brief Resolution, clarifying how /squad cast decides whether the parent issue brief or repository analysis is the primary casting input before proceeding with the existing steps.
Changes:
- Documented a new “Brief Resolution” step with a priority cascade across issue brief vs repo signals.
- Added explicit noop handling guidance when neither the issue nor the repo provide meaningful casting input.
- Clarified how the chosen input priority should influence downstream repo analysis.
Show a summary per file
| File | Description |
|---|---|
| workflows/squad.md | Adds Step 0 documentation describing brief selection, noop behavior, and how to carry that decision into existing Cast steps. |
Review details
- Files reviewed: 1/1 changed files
- Comments generated: 2
- Review effort level: Lite
Comment on lines
+115
to
+117
| Before analyzing the repo, determine the **primary casting input** by evaluating | ||
| two signals: the parent issue body (`github.event.issue.body`) and the repository | ||
| content (README, file structure, etc.). |
Comment on lines
+127
to
+131
| | Any | Explicit SOT signal | **Issue is SOT** — user intent overrides, repo validates only | | ||
|
|
||
| "Explicit SOT signal" means the issue body reads like a team spec — explicit role | ||
| lists, team-size declarations, operating-model descriptions, or language that | ||
| signals "this is what I want." Infer this from structure and detail level. |
…pand SOT acronym Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
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.
Summary
Adds Step 0: Brief Resolution to Cast mode in
workflows/squad.md, inserted before the existing Step 1 (Repo Analysis).This step evaluates two signals — the parent issue body and the repository content — and applies a priority cascade to determine which is the primary casting input:
The noop case posts a helpful comment via
add-commentand stops without opening a PR.All existing steps (1–6) remain unchanged — Brief Resolution just sets context for how downstream steps use the repo analysis.
Closes #1634