Skip to content

Commit 58df80e

Browse files
authored
Merge pull request #415 from githubnext/codex/evergreen-schedule-manual-only
Limit Evergreen to schedule and manual dispatch
2 parents 702a764 + 3618801 commit 58df80e

4 files changed

Lines changed: 41 additions & 63 deletions

File tree

.github/workflows/evergreen.lock.yml

Lines changed: 11 additions & 51 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.github/workflows/evergreen.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
---
22
on:
3-
push:
4-
branches: [main]
53
schedule:
64
- cron: "*/15 * * * *"
75
workflow_dispatch:
@@ -498,6 +496,7 @@ imports:
498496
- shared/evergreen/report-template.md
499497

500498
safe-outputs:
499+
max-patch-size: 10240
501500
add-comment:
502501
max: 2
503502
add-labels:
@@ -581,6 +580,15 @@ are merge gates.
581580
If a required skill does not apply, record `not_applicable` as a successful
582581
result rather than saying it was skipped.
583582

583+
## Gate-Clearing Repair Loop
584+
585+
For lint and typecheck gates, do not stop after the first mechanical diagnostic
586+
unless the next fix is risky or unrelated. Run the failing repo-native command,
587+
apply the smallest patch that can clear all current mechanical diagnostics for
588+
that command, rerun the same command, and repeat until it passes, only
589+
non-mechanical blockers remain, or a stop rule applies. Prefer one coherent
590+
gate-clearing commit over several tiny symptom commits.
591+
584592
## Stop States
585593

586594
End each run with exactly one of these states:

.github/workflows/shared/evergreen/repo-policy.md

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,11 @@ readiness controller and the agentic orchestrator must both respect this file.
7676
## Event Fast Paths
7777

7878
- `pull_request` activity types: not wired in the gh-aw Evergreen workflow.
79-
PR activity is covered by schedule/manual/default-branch reconciliation to
80-
avoid gh-aw confused-deputy activation on bot-authored PRs.
81-
- Default-branch `push` policy: `push` to `main` wakes the reconciliation loop
82-
because it can make labeled PRs stale or conflicted.
79+
PR activity is covered by schedule/manual reconciliation to avoid gh-aw
80+
confused-deputy activation on bot-authored PRs.
81+
- Default-branch `push` policy: not wired in v1; the schedule covers `main`
82+
changes that can make labeled PRs stale or conflicted. Use manual dispatch
83+
for urgent reconciliation.
8384
- `workflow_run` policy: not wired in v1; the schedule covers CI state changes.
8485
- Review event policy: not wired (reviews are not merge gates here).
8586
- Deployment event policy: not wired (no deployment gates).
@@ -106,14 +107,18 @@ readiness controller and the agentic orchestrator must both respect this file.
106107
## Repair Policy
107108

108109
- Allowed edits: source, tests, playground, config, and workflow files needed to
109-
clear a configured gate. Keep changes small and targeted (one feature/fix per
110-
commit per repo convention).
110+
clear a configured gate. Keep changes targeted to the failing gate, but a
111+
single Evergreen run may edit multiple files and fix multiple diagnostics when
112+
they come from the same failing command.
111113
- Protected files: `README.md` and `.autoloop/programs/**` must not be modified
112114
unless explicitly requested. `.autoloop/**` and `memory/autoloop` branch state
113115
are Autoloop-owned. Issue #1 (program definition) must not be modified.
114116
- High-risk file policy: dependency manifests and lockfiles (`package.json`,
115117
`bun.lock`, `bunfig.toml`) may be edited only when the failing gate requires
116118
it; prefer deterministic tooling.
119+
- Safe-output patch budget: `10240` bytes, the current gh-aw maximum. This is
120+
intentionally large enough for one coherent lint/typecheck gate-clearing patch
121+
instead of tiny symptom commits.
117122
- Deterministic commands (repo-native, run before agentic edits):
118123
- Install: `bun install`
119124
- Typecheck: `bun run typecheck`
@@ -126,7 +131,9 @@ readiness controller and the agentic orchestrator must both respect this file.
126131
- CI/lint diagnosis policy: when a CI gate fails, fetch the exact failing job
127132
logs and run the targeted repo command locally before editing. For lint
128133
failures, `bun run lint` is the source of truth; do not guess from truncated
129-
GitHub summaries.
134+
GitHub summaries. For lint and typecheck gates, iterate locally until the
135+
current command passes, only non-mechanical blockers remain, or a stop rule
136+
applies.
130137
- Generated file policy: recompile committed lockfiles/snapshots when their
131138
sources change. After editing any `.github/workflows/*.md` workflow, recompile
132139
and commit the generated `.lock.yml`.

.github/workflows/shared/skills/deterministic-repair.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ Find documented commands for:
1414
- code generation
1515
- workflow compilation or validation
1616

17-
Prefer targeted commands over broad commands. Apply or propose only the smallest
18-
safe patch needed for mechanical failures. Route policy conflicts to the
19-
appropriate review or human decision instead of guessing.
17+
Prefer targeted commands over broad commands. Apply or propose the smallest
18+
safe patch that clears the current failing gate, not just the first diagnostic.
19+
For lint and typecheck failures, fix all current mechanical diagnostics from the
20+
same command when they are local and low-risk, then rerun the command before
21+
pushing. Route policy conflicts to the appropriate review or human decision
22+
instead of guessing.

0 commit comments

Comments
 (0)