CoolFace
Datasetpublic

cy0307/awesome-loop-engineering

Awesome Loop Engineering Dataset A structured dataset of 1022 papers, official docs, tools, benchmarks, patterns, critiques, and implementation guides for recurring AI-agent systems. Resource Atlas · GitHub field guide · Resource selection · Report a correction   Dataset Summary Each row connects an original source to its contribution, novelty, impact, publication details, lifecycle stages, audience, evidence type, link status, and… See the full description on the dataset page: https://huggingface.co/datasets/cy0307/awesome-loop-engineering.

sourceHugging Facecc0-1.0updated 5d agoView on Hugging Face
3likes4.5kdownloads
ci-repair-loop.md87 linesDownload Raw Back to patterns
1# CI Repair Loop2 3## Objective4 5Turn a failing CI signal into a small, verified fix or a precise escalation note.6 7## Trigger8 9- Schedule: poll failing checks on active branches.10- Event: CI check fails on a PR or protected branch.11- Manual bootstrap/debug command: "repair the failing CI check for this PR."12 13## Intake14 15- Failed check name, logs, artifacts, commit SHA, changed files, and recent successful run.16- Local test commands from project docs.17- Known flaky-test list or CI status page.18 19## Agents20 21- Investigator: extracts the failing command, error, and likely affected files.22- Implementer: makes the smallest patch consistent with the failure.23- Verifier: reruns the local or CI-equivalent command.24- Reporter: summarizes evidence and residual risk.25 26## Workspace And Permissions27 28- Use a clean branch or worktree based on the failing commit.29- Allow read access to CI logs and artifacts.30- Allow local test, lint, typecheck, and build commands.31- Disallow unrelated refactors, dependency upgrades, broad formatting, or changes to protected CI config unless explicitly requested.32 33## Durable State34 35- Failing check URL, command reproduced, exact error, attempted fixes, passing evidence, and unresolved blockers.36 37## Loop Steps38 391. Fetch the failed check and logs.401. Identify the deterministic failing command or closest local equivalent.411. Delegate log extraction, patching, verification, and reporting to separate roles when useful.421. Reproduce locally when possible.431. Patch the smallest cause.441. Rerun the failing command first, then any adjacent cheap checks.451. If green, summarize and push.461. If not reproducible or blocked, write an escalation with logs and hypotheses.47 48## Verification Gates49 50- The original failing command passes locally or in rerun CI.51- The patch is limited to the failure cause.52- New tests are added when the fix changes behavior.53- Output includes exact commands and relevant log excerpts.54 55## Budget And Exit56 57- Max retries: 3 patch attempts.58- Max runtime: 45-90 minutes.59- Stop when the target check passes, the failure is proven flaky, the environment is unavailable, or the fix exceeds scope.60 61## Escalation62 63Escalate for flaky infrastructure, missing credentials, third-party outages, nondeterministic failures without reproduction, or changes requiring owner approval.64 65## Loop Instruction66 67```text68Repair the failing CI check for <PR or branch>.69Start by identifying the exact failing command and reproducing it locally if possible.70Make the smallest scoped patch, rerun the failing command, and report evidence.71Do not change unrelated files or CI configuration unless the logs prove it is necessary.72```73 74Example automation: trigger on failed required checks, or poll active PRs for red CI every 30-60 minutes.75 76## Failure Modes77 78- Treating a CI artifact as stale without checking commit SHA.79- Running only broad checks and missing the failing command.80- Fixing by weakening tests or deleting assertions.81- Chasing flaky failures without a retry budget.82 83## References84 85- [Stop Babysitting Your Coding Agent. Give It Backpressure.](https://generativeprogrammer.com/p/stop-babysitting-your-coding-agent) - Turns tests, linters, builds, and traces into feedback loops for coding agents.86- [GitHub Agentic Workflows](https://github.github.com/gh-aw/) - Runs coding agents from GitHub events or schedules with repository-level guardrails.87