You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/agents/ci-cleaner.agent.md
+20Lines changed: 20 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -150,6 +150,26 @@ This command:
150
150
151
151
**Success criteria**: All workflows compile successfully without errors
152
152
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**.
Copy file name to clipboardExpand all lines: .github/workflows/hourly-ci-cleaner.md
+15Lines changed: 15 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -167,6 +167,21 @@ Follow the instructions from the ci-cleaner agent to:
167
167
- If stuck on a single issue after 3 attempts, document it and move on
168
168
- Prioritize formatting and linting fixes over complex test failures
169
169
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
+
170
185
## Pull Request Guidelines
171
186
172
187
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