Skip to content

Commit a26d90c

Browse files
docs: fix legacy repositories:/checkout: references in prompts (#512)
1 parent ca3de98 commit a26d90c

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

prompts/debug-ado-agentic-workflow.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ This job executes the approved safe outputs using the write token. Failures here
347347
|-------|-------|-----|
348348
| Patch doesn't apply | Merge conflicts — target branch diverged since the agent ran | Rerun the pipeline; consider more frequent schedules |
349349
| Target branch not found | Branch name doesn't exist in the repository | Check `safe-outputs.create-pull-request.target-branch` |
350-
| Repository not in allowed list | Agent tried to create PR in a repo not in `checkout:` | Add the repository to both `repositories:` and `checkout:` |
350+
| Repository not in allowed list | Agent tried to create PR in a repo not in `repos:` | Add the repository to `repos:` (with `checkout: true`, which is the default) |
351351
| Patch too large | Patch file exceeds 5 MB limit | Reduce the scope of changes in agent instructions |
352352
| Path validation failed | Patch contains `..`, `.git`, or absolute paths | This is a security violation — review what the agent generated |
353353

prompts/update-ado-agentic-workflow.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ When adding new fields, place them in the conventional front matter order:
3939

4040
```
4141
name → description → target → engine → schedule → workspace → pool →
42-
repositories → checkout → tools → mcp-servers → safe-outputs →
42+
repos → tools → mcp-servers → safe-outputs →
4343
triggers → steps → post-steps → setup → teardown → network →
4444
permissions → parameters
4545
```
@@ -244,9 +244,9 @@ Before finalizing any update, verify:
244244

245245
3. **Schedule syntax**: The schedule expression uses valid fuzzy schedule syntax. Valid frequencies: `daily`, `weekly on <day>`, `hourly`, `every Nh`, `every N minutes`, `bi-weekly`, `tri-weekly`. Valid time specs: `around HH:MM`, `between HH:MM and HH:MM`.
246246

247-
4. **Repository aliases**: Every alias in `checkout:` exists in `repositories:`.
247+
4. **Repository aliases**: Every repo alias used in agent instructions or safe-output `repository:` fields exists as an entry in `repos:` with `checkout: true` (the default).
248248

249-
5. **Workspace consistency**: If `workspace: repo` is set, ensure `checkout:` has additional repositories. If only `self` is checked out, `workspace: repo` is unnecessary (the compiler warns about this).
249+
5. **Workspace consistency**: If `workspace: repo` is set, ensure `repos:` has at least one additional repository with `checkout: true`. If only `self` is checked out, `workspace: repo` is unnecessary (the compiler warns about this).
250250

251251
6. **Network domains**: If new MCPs or external services are added, ensure required domains are in `network.allowed`.
252252

0 commit comments

Comments
 (0)