Commit 45c3345
fix(squad): start coding-agent sessions for squad:copilot issues; rename go/no-go workflows (#219)
* fix(squad): start coding-agent sessions for squad:copilot issues; rename go/no-go workflows
Also rename the issue go/no-go decision workflows for discoverability:
- issue-nogo.yml -> issue-go-no.yml ("Issue Go: No")
- issue-assign.md -> issue-go-yes.md ("Issue Go: Yes")
- issue-clarify.md -> issue-go-clarify.md ("Issue Go: Clarify")
Display names set via gh-aw frontmatter `name:`; agentic .lock.yml recompiled.
NOTE: requires a COPILOT_ASSIGN_TOKEN repo secret (a PAT that can assign the
coding agent) for the assignment step to succeed.
Refs #194
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
* docs(squad): link COPILOT_ASSIGN_TOKEN setup instructions in team.md
Add a "Setting up COPILOT_ASSIGN_TOKEN" note to the Coding Agent section
with links to fine-grained PAT creation, repository-secret setup, and the
GitHub docs describing the exact token/permissions required to assign the
Copilot coding agent. Docs-only; no workflow/code changes.
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
* feat(squad): nudge maintainer to assign Copilot when auto-assign is off
Add a deterministic post-check step to the "Issue Go: Yes" workflow that
checks whether the approved (go:yes, squad:copilot) issue is actually
assigned to the Copilot coding agent. When the COPILOT_ASSIGN_TOKEN secret
is not configured (so squad-heartbeat cannot auto-assign), it posts a
comment tagging the human assignee(s) explaining they must assign the issue
to Copilot to start the work. When the token IS configured, the step is a
no-op to avoid noise, since Ralph will auto-assign shortly.
Runs in the injection-safe post-check job (not the agentic prompt), so the
logic is deterministic. Grants that job issues:write to post the comment.
Security note: issue-go-yes.lock.yml now references the COPILOT_ASSIGN_TOKEN
secret only inside an expression (secrets.COPILOT_ASSIGN_TOKEN != '') to
detect presence; the secret value is never read, logged, or sent anywhere.
Refs #194
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
* refactor(squad): post Copilot-assignment nudge via agent, not post-check
Move the "assign this issue to Copilot" nudge out of the deterministic
post-check job (which required issues:write) into the agent's single
assignment comment, posted through the existing add-comment safe output.
The post-check job is back to issues:read.
Because the agent cannot read secrets, the gating is computed
deterministically in the trusted "Prepare assignment context" shell step:
NUDGE_NEEDED is true only when COPILOT_ASSIGN_TOKEN is absent (evaluated as
the boolean `secrets.COPILOT_ASSIGN_TOKEN != ''`, never the value) AND the
coding agent is not already an assignee. That result is injected into the
trusted system-policy.md so the agent includes or omits the
"### 🤖 Action needed" section accordingly.
Security note: the raw COPILOT_ASSIGN_TOKEN value is materialized in exactly
one place in the compiled lock — gh-aw's "Redact secrets in logs" step — so
its value is scrubbed from agent logs and is never placed in the agent
inference step or the prepare step (which only see the boolean).
Refs #194
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
* fix(squad): keep COPILOT_ASSIGN_TOKEN out of the posted issue comment
The Copilot-assignment nudge must not expose workflow internals in the
public issue thread. Remove the ".squad/team.md / COPILOT_ASSIGN_TOKEN
setup" reference from the nudge the agent posts, and add explicit guards
(system policy + comment-format template) instructing the agent to never
mention COPILOT_ASSIGN_TOKEN, repository secrets, or workflow internals in
the comment. The nudge now simply asks the assignee to assign the issue to
Copilot from the Assignees menu.
Refs #194
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
* Potential fix for pull request finding
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
* Potential fix for pull request finding
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
---------
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>1 parent 926f2f1 commit 45c3345
8 files changed
Lines changed: 199 additions & 121 deletions
File tree
- .github/workflows
- .squad
- templates/workflows
Lines changed: 52 additions & 52 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
2 | 3 | | |
3 | 4 | | |
4 | 5 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
Lines changed: 60 additions & 57 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 37 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
2 | 3 | | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
6 | | - | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
7 | 10 | | |
8 | 11 | | |
9 | 12 | | |
| |||
44 | 47 | | |
45 | 48 | | |
46 | 49 | | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
47 | 54 | | |
48 | 55 | | |
49 | 56 | | |
| |||
70 | 77 | | |
71 | 78 | | |
72 | 79 | | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
73 | 96 | | |
74 | 97 | | |
75 | 98 | | |
| |||
85 | 108 | | |
86 | 109 | | |
87 | 110 | | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
88 | 116 | | |
89 | 117 | | |
90 | 118 | | |
| |||
226 | 254 | | |
227 | 255 | | |
228 | 256 | | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
229 | 260 | | |
230 | 261 | | |
231 | 262 | | |
| |||
241 | 272 | | |
242 | 273 | | |
243 | 274 | | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
244 | 280 | | |
245 | 281 | | |
246 | 282 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
129 | 129 | | |
130 | 130 | | |
131 | 131 | | |
132 | | - | |
133 | | - | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
134 | 141 | | |
135 | 142 | | |
136 | | - | |
137 | | - | |
| 143 | + | |
| 144 | + | |
138 | 145 | | |
139 | 146 | | |
140 | 147 | | |
| |||
144 | 151 | | |
145 | 152 | | |
146 | 153 | | |
147 | | - | |
| 154 | + | |
148 | 155 | | |
149 | 156 | | |
150 | 157 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
29 | 53 | | |
30 | 54 | | |
31 | 55 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
133 | 133 | | |
134 | 134 | | |
135 | 135 | | |
136 | | - | |
137 | | - | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
138 | 145 | | |
139 | 146 | | |
140 | | - | |
141 | | - | |
| 147 | + | |
| 148 | + | |
142 | 149 | | |
143 | 150 | | |
144 | 151 | | |
| |||
148 | 155 | | |
149 | 156 | | |
150 | 157 | | |
151 | | - | |
| 158 | + | |
152 | 159 | | |
153 | 160 | | |
154 | 161 | | |
| |||
0 commit comments