Skip to content

Commit 537aaa3

Browse files
authored
Merge branch 'main' into copilot/update-github-actions-versions
2 parents b5fd3a2 + 3298808 commit 537aaa3

2 files changed

Lines changed: 35 additions & 0 deletions

File tree

.github/agents/ci-cleaner.agent.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,26 @@ This command:
150150

151151
**Success criteria**: All workflows compile successfully without errors
152152

153+
## Mandatory Exit Protocol
154+
155+
**Before ending your session, you MUST call a safe-outputs tool.** Never exit without calling one of:
156+
157+
1. **`create_pull_request`** — if you made any changes (even partial fixes). Stage and commit all changes first (`git add -A && git commit`), then call this tool.
158+
2. **`noop`** — if you made no changes because:
159+
- CI was already passing when you checked
160+
- You were unable to reproduce or identify the specific failure
161+
- The failures are too complex to fix automatically
162+
163+
**If you are running low on conversation turns or time:**
164+
1. Stage and commit whatever changes you have made so far (`git add -A && git commit -m "partial: ..."`)
165+
2. Call `create_pull_request` immediately with a description of:
166+
- What CI failures were found
167+
- What fixes were applied (even if incomplete)
168+
- What remains to be fixed
169+
3. Do NOT continue attempting more fixes at the cost of not creating a PR
170+
171+
This is a strict requirement — **every session must produce a safe output**.
172+
153173
## Workflow & Best Practices
154174

155175
### Execution Order

.github/workflows/hourly-ci-cleaner.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,21 @@ Follow the instructions from the ci-cleaner agent to:
167167
- If stuck on a single issue after 3 attempts, document it and move on
168168
- Prioritize formatting and linting fixes over complex test failures
169169

170+
## Mandatory Exit Protocol
171+
172+
**You MUST always call a safe-outputs tool before ending your session. Never exit without calling one of:**
173+
174+
1. **`create_pull_request`** — if you made any changes (even partial). Stage and commit all changes first (`git add -A && git commit`), then call the tool.
175+
2. **`noop`** — if you made no changes:
176+
- CI checks were already passing when you ran them
177+
- You were unable to reproduce or identify the failure
178+
- The failures are too complex to fix automatically
179+
180+
**If you are running out of conversation turns or time:**
181+
- Stage and commit whatever changes you have made so far (`git add -A && git commit`)
182+
- Call `create_pull_request` with a description of what was fixed and what remains
183+
- Do NOT exit without calling a safe-outputs tool
184+
170185
## Pull Request Guidelines
171186

172187
After all fixes are completed and validated, **call the `create_pull_request` MCP tool** (from the safe-outputs MCP server) to create a PR with your changes.

0 commit comments

Comments
 (0)