Skip to content

Commit b8b6c7b

Browse files
authored
Merge pull request #1 from microsoft/marcoolivo-microsoft-upgraded-waddle
Fix hallucinated gh-aw syntax and CLI commands in hackathon content
2 parents 1b016eb + fef70d7 commit b8b6c7b

69 files changed

Lines changed: 184 additions & 210 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

modules/ghaw/challenges/0-00-setup/COACH.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
- Ask for a show-of-hands "green terminal" check after the first 10 minutes.
1515
- Pair any participant who is blocked with a working neighbor; don't let one blocker stall the group.
1616
- `gh aw` installs automatically via `postCreate.sh` in both Codespaces and local dev containers. If a participant sees "command not found", the postCreate script likely failed — have them rebuild the container.
17-
- If `gh aw run ... --dry-run` fails with an API key error, GitHub Copilot is the default zero-config engine. Confirm the participant's account has an active Copilot subscription. For Claude/OpenAI/Gemini, point them to `github.com/settings/codespaces` to add secrets.
17+
- If `gh aw trial ... --dry-run` fails with an API key error, GitHub Copilot is the default zero-config engine. Confirm the participant's account has an active Copilot subscription. For Claude/OpenAI/Gemini, point them to `github.com/settings/codespaces` to add secrets.
1818

1919
---
2020

@@ -25,7 +25,7 @@
2525
| `gh auth status` fails | Not logged in | Run `gh auth login` again; choose HTTPS |
2626
| Codespace build times out | Network / quota | Retry once; fall back to local dev container |
2727
| `gh aw --version` not found | Container image stale or `postCreate.sh` failed | Rebuild container (`Ctrl+Shift+P → Dev Containers: Rebuild Container`); or run `curl -sL https://raw.githubusercontent.com/github/gh-aw/main/install-gh-aw.sh \| bash` manually |
28-
| `gh aw run modules/ghaw/resources/examples/hello-world.md --dry-run` fails | AI engine key missing | Confirm Copilot subscription is active; or set `ANTHROPIC_API_KEY` / `OPENAI_API_KEY` / `GEMINI_API_KEY` as Codespace secrets and rebuild |
28+
| `gh aw trial modules/ghaw/resources/examples/hello-world.md --dry-run` fails | AI engine key missing | Confirm Copilot subscription is active; or set `ANTHROPIC_API_KEY` / `OPENAI_API_KEY` / `GEMINI_API_KEY` as Codespace secrets and rebuild |
2929
| Repository not accessible | Not in the right repo | Confirm the Codespace or local clone is for `microsoft/frontier-agenticdevops-hackathon` |
3030

3131
---
@@ -36,7 +36,7 @@ Before releasing the group to Challenge 1-01, confirm per participant:
3636

3737
- [ ] `gh auth status` exits 0 and shows the correct username
3838
- [ ] `gh aw --version` returns a version string
39-
- [ ] `gh aw run modules/ghaw/resources/examples/hello-world.md --dry-run` completes without errors
39+
- [ ] `gh aw trial modules/ghaw/resources/examples/hello-world.md --dry-run` completes without errors
4040
- [ ] Repository is open and writable (or readable with a documented fallback)
4141

4242
---

modules/ghaw/challenges/0-00-setup/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ gh auth status
7474
gh aw --version
7575

7676
# 4. Dry-run smoke test
77-
gh aw run modules/ghaw/resources/examples/hello-world.md --dry-run
77+
gh aw trial modules/ghaw/resources/examples/hello-world.md --dry-run
7878
```
7979

8080
> All four commands must succeed before you move on. If any fail, see **Common Blockers** in the coach guide.
@@ -84,7 +84,7 @@ gh aw run modules/ghaw/resources/examples/hello-world.md --dry-run
8484
| Command | Expected output |
8585
|---|---|
8686
| `gh aw --version` | Returns a version string (e.g., `gh-aw version 1.x.x`) |
87-
| `gh aw run modules/ghaw/resources/examples/hello-world.md --dry-run` | Prints generated workflow YAML; exits 0 |
87+
| `gh aw trial modules/ghaw/resources/examples/hello-world.md --dry-run` | Previews the workflow without executing it; exits 0 |
8888

8989
---
9090

modules/ghaw/challenges/0-00-setup/meta.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ success_criteria:
1717
- "`gh auth status` exits 0 and shows your username"
1818
- "`gh --version` returns gh >= 2.x"
1919
- "`gh aw --version` returns a version string"
20-
- "`gh aw run modules/ghaw/resources/examples/hello-world.md --dry-run` completes without errors"
20+
- "`gh aw trial modules/ghaw/resources/examples/hello-world.md --dry-run` completes without errors"
2121
- "`ls modules/ghaw/resources/examples/hello-world.md` confirms the embedded example exists"
2222
tags:
2323
- setup

modules/ghaw/challenges/1-01-morning-briefing/COACH.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -125,8 +125,7 @@ safe-outputs:
125125
create-issue:
126126
title-prefix: '[Morning Briefing] '
127127

128-
engines:
129-
- copilot
128+
engine: copilot
130129

131130
tools:
132131
github:
@@ -162,7 +161,7 @@ Keep the summary concise — 5-7 sentences total.
162161
- `tools: github: toolsets: [issues, pull_requests]` — agent can query data
163162
- `safe-outputs: create-issue:` with title prefix — consistent naming
164163
- Body: clear, structured instructions with specific counts to gather and format
165-
- `engines: [copilot]` — free, reliable default
164+
- `engine: copilot` — free, reliable default
166165

167166
**Production-ready reference solution:** See `coaches/sample-solutions/track-1/1-01-morning-briefing.md`
168167

modules/ghaw/challenges/1-02-safe-and-sound/COACH.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ A coach can verify completion when the squad can show:
120120
create-issue:
121121
title-prefix: "[...]"
122122
noop:
123-
engines: ...
123+
engine: copilot
124124
---
125125
```
126126
- Remind: "2 or 4 spaces per level, consistent throughout."
@@ -146,8 +146,7 @@ safe-outputs:
146146
title-prefix: '[TODO Scan] '
147147
noop:
148148
149-
engines:
150-
- copilot
149+
engine: copilot
151150
152151
tools:
153152
github:

modules/ghaw/challenges/1-03-the-watcher/COACH.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,8 +123,7 @@ safe-outputs:
123123
add-comment:
124124
noop:
125125

126-
engines:
127-
- copilot
126+
engine: copilot
128127

129128
tools:
130129
github:

modules/ghaw/challenges/1-04-label-maker/COACH.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ A coach can verify completion when the squad can show:
7777
**Root cause:** Safe-outputs config doesn't actually specify an allowlist, or allowlist is too broad.
7878

7979
**Coach response:**
80-
- "Your safe-outputs should specify exact labels. For example: `safe-outputs: add-labels: labels: [bug, feature, question]`"
80+
- "Your safe-outputs should specify exact labels. For example: `safe-outputs: add-labels: allowed: [bug, feature, question]`"
8181
- Show them: "This means the agent can ONLY apply these three labels. It can't invent others."
8282
- Verify: "Check your frontmatter — is the allowlist enforced?"
8383

@@ -123,16 +123,15 @@ permissions:
123123

124124
safe-outputs:
125125
add-labels:
126-
labels:
126+
allowed:
127127
- bug
128128
- feature
129129
- question
130130
- documentation
131131
- help-wanted
132132
noop:
133133

134-
engines:
135-
- copilot
134+
engine: copilot
136135
---
137136

138137
# Label Maker
@@ -156,7 +155,7 @@ Explain your reasoning in a comment on the issue summarizing why you applied (or
156155
- `permissions: contents: read` — minimal
157156
- `safe-outputs: add-labels:` with explicit allowlist — constrained labels
158157
- `noop:` path — escape hatch for unclear cases
159-
- `engines: [copilot]` — reliable default
158+
- `engine: copilot` — reliable default
160159
- Body: clear heuristics with keywords and examples
161160
- Includes feedback comment so user understands the classification
162161

modules/ghaw/challenges/2-01-triage-bot/COACH.md

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ Agent: Use grep results as a hint; apply your judgment and post comment.
108108
**Coach response:**
109109
- "Did you set `on: issues: types: [opened]` in the frontmatter?"
110110
- Show them: `issue_comment` (for comments) vs `issues` (for issue events)
111-
- Have them recompile: `gh aw compile triage-bot.md`
111+
- Have them recompile: `gh aw compile triage-bot`
112112
- Then create a fresh test issue to trigger it
113113

114114
### Pitfall 2: Label Not Applied (But Comment Posted)
@@ -187,8 +187,7 @@ safe-outputs:
187187
allowlist: [bug, feature-request, documentation, question, duplicate]
188188
add-comment: {}
189189

190-
engines:
191-
- copilot
190+
engine: copilot
192191
---
193192

194193
# Issue Triage Bot
@@ -216,10 +215,10 @@ Keep the comment warm and welcoming—this is our first interaction with the con
216215
**Why this works:**
217216
- `on: issues: types: [opened]` — fires immediately when new issue created
218217
- `permissions: issues: read` — minimal, agent doesn't write directly
219-
- `safe-outputs: add-labels: allowlist:` — gates to 5 safe choices
218+
- `safe-outputs: add-labels: allowed:` — gates to 5 safe choices
220219
- `safe-outputs: add-comment:` — permission granted to post comment
221220
- Body: natural language, clear decision tree, emphasizes friendliness
222-
- `engines: [copilot]` — free, reliable for classification
221+
- `engine: copilot` — free, reliable for classification
223222

224223
---
225224

@@ -230,7 +229,7 @@ Suggest this breakdown:
230229
| Phase | Time | What to Do |
231230
|-------|------|-----------|
232231
| Read & orient | 3 min | Read the challenge, ask questions |
233-
| Write frontmatter | 5 min | Set up `on:`, `permissions`, `safe-outputs`, `engines` |
232+
| Write frontmatter | 5 min | Set up `on:`, `permissions`, `safe-outputs`, `engine` |
234233
| Write body | 7 min | Draft classification logic + comment template |
235234
| Compile & test | 8 min | Compile, create test issue, watch Actions tab |
236235
| Debug & refine | 5 min | Fix any label/comment issues |
@@ -266,7 +265,7 @@ If a squad finishes in <20 minutes:
266265
If a squad is stuck:
267266

268267
- [ ] Is the workflow file named `triage-bot.md` in `.github/workflows/`?
269-
- [ ] Did they run `gh aw compile triage-bot.md`?
268+
- [ ] Did they run `gh aw compile triage-bot`?
270269
- [ ] Does `.lock.yml` exist? (`ls .github/workflows/triage-bot.lock.yml`)
271270
- [ ] Is frontmatter valid YAML? (spaces, not tabs; proper indentation)
272271
- [ ] Is `on: issues:` spelled correctly? (not `issue:`)

modules/ghaw/challenges/2-01-triage-bot/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ Create a gh-aw workflow named `triage-bot.md` in `.github/workflows/` that:
4949
## Success Criteria
5050

5151
- [ ] `.github/workflows/triage-bot.md` exists with valid gh-aw frontmatter
52-
- [ ] Frontmatter includes: `on: issues:`, `permissions`, `safe-outputs:`, `engines`
52+
- [ ] Frontmatter includes: `on: issues:`, `permissions`, `safe-outputs:`, `engine`
5353
- [ ] Safe-outputs has an allowlist limiting labels to: `bug`, `feature-request`, `documentation`, `question`, `duplicate`
5454
- [ ] `.github/workflows/triage-bot.lock.yml` compiles without errors
5555
- [ ] You manually test by creating a test issue in your repo

modules/ghaw/challenges/2-01-triage-bot/meta.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ prerequisite_capabilities:
1313
description: Build an event-driven workflow that categorises every new issue with an AI label and posts a friendly comment explaining the classification and next steps.
1414
success_criteria:
1515
- `.github/workflows/triage-bot.md` exists with valid gh-aw frontmatter
16-
- Frontmatter includes: `on: issues:`, `permissions`, `safe-outputs:`, `engines`
16+
- Frontmatter includes: `on: issues:`, `permissions`, `safe-outputs:`, `engine`
1717
- Safe-outputs has an allowlist limiting labels to: `bug`, `feature-request`, `documentation`, `question`, `duplicate`
1818
- `.github/workflows/triage-bot.lock.yml` compiles without errors
1919
- You manually test by creating a test issue in your repo

0 commit comments

Comments
 (0)