Conversation
…used autoloop PRs Agent-Logs-Url: https://github.com/githubnext/tsessebe/sessions/0307e618-3d47-47a6-930c-8b4e2fd2d486 Co-authored-by: mrjf <180956+mrjf@users.noreply.github.com>
Agent-Logs-Url: https://github.com/githubnext/tsessebe/sessions/0307e618-3d47-47a6-930c-8b4e2fd2d486 Co-authored-by: mrjf <180956+mrjf@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix autoloop to require green CI before accepting iterations
Gate autoloop iteration acceptance on CI green with a bounded fix-retry loop
Apr 21, 2026
This was referenced Apr 22, 2026
Closed
This was referenced Apr 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Today an autoloop iteration is marked ✅ Accepted on the strength of the in-sandbox self-evaluation, which is unreliable by construction (the sandbox can't always install
bun/tscdue to firewall blocks onreleaseassets.githubusercontent.com). CI runs after the push and is not in the acceptance path, so broken commits (e.g. #174's 24TS2339errors) stack up on the long-running branch unnoticed. This change moves the acceptance gate to CI and adds a bounded fix-and-retry loop — no reverts..github/workflows/autoloop.mdgh pr checks --watch --interval 30with a REST fallback. Hardened status parser handlespending/in_progress/neutral/skipped/cancelled/timed_out/action_required. 60-min per-iteration wall-clock cap.--log-failed, extracts a structured summary + normalized failure signature, implements a minimum surgical fix, pushes, re-waits. No-progress guard: two consecutive identical signatures → stop. On exhaustion:paused: truewith one ofci-fix-exhausted: <sig>,stuck in CI fix loop: <sig>, orci-timeout: wall-clock cap reached, plus a program-issue comment listing the last three attempts. Never revert — partial progress is preserved for a human or Evergreen to continue from.pause_reason, records fix-attempt count and CI run link in iteration history / per-iteration comment.ci-fix-exhaustedto theRecent Statusesvocabulary; documented all recognizedPause Reasonvalues in the Machine State field reference..github/workflows/evergreen.mdautoloop/*PRs already flow through the existing PR-health pipeline; on successful fix, Evergreen now also un-pauses the program: checks outmemory/autoloop, setsPaused: false/Pause Reason: —in{program-name}.md, commits, and comments on the program issue. Same 5-attempts-per-HEAD-SHA cap still applies.Example status command (Step 5a)
No
autoloop.lock.ymlregeneration is required — it pulls the prompt at runtime via{{#runtime-import .github/workflows/autoloop.md}}.