From 9887d8de5ccd4d67a36c39698de3b1177475988b Mon Sep 17 00:00:00 2001 From: mrjf Date: Tue, 7 Jul 2026 13:36:54 -0500 Subject: [PATCH] Raise Evergreen daily AI guardrail --- .github/workflows/evergreen.lock.yml | 6 +++--- .github/workflows/evergreen.md | 2 +- .github/workflows/shared/evergreen/quota-policy.md | 10 ++++++---- .github/workflows/shared/evergreen/repo-policy.md | 1 + 4 files changed, 11 insertions(+), 8 deletions(-) diff --git a/.github/workflows/evergreen.lock.yml b/.github/workflows/evergreen.lock.yml index 9c0e6460..f552b14e 100644 --- a/.github/workflows/evergreen.lock.yml +++ b/.github/workflows/evergreen.lock.yml @@ -1,4 +1,4 @@ -# gh-aw-metadata: {"schema_version":"v4","frontmatter_hash":"6a6cf00641bb3e220bec68c7f5ebaab707920c1be2f33ef768c40f694757cccc","body_hash":"00c525d87c7893c3d9c37866274ca2c8715f403c15ff2c840f545ba056484be8","compiler_version":"v0.79.4","strict":true,"agent_id":"copilot","engine_versions":{"copilot":"1.0.60"}} +# gh-aw-metadata: {"schema_version":"v4","frontmatter_hash":"0af03d80b98ed6f82acf69a24e78123a9a8e729cfc0db874bc822c34b0bf578e","body_hash":"7bc0760d4e0788a27dba500fedd574e5c9c1a727605bf1f73585e96116f8fd79","compiler_version":"v0.79.4","strict":true,"agent_id":"copilot","engine_versions":{"copilot":"1.0.60"}} # gh-aw-manifest: {"version":1,"secrets":["COPILOT_GITHUB_TOKEN","GH_AW_CI_TRIGGER_TOKEN","GH_AW_GITHUB_MCP_SERVER_TOKEN","GH_AW_GITHUB_TOKEN","GITHUB_TOKEN"],"actions":[{"repo":"actions/checkout","sha":"df4cb1c069e1874edd31b4311f1884172cec0e10","version":"v6.0.3"},{"repo":"actions/download-artifact","sha":"3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c","version":"v8.0.1"},{"repo":"actions/github-script","sha":"3a2844b7e9c422d3c10d287c895573f7108da1b3","version":"v9.0.0"},{"repo":"actions/setup-node","sha":"48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e","version":"v6.4.0"},{"repo":"actions/upload-artifact","sha":"043fb46d1a93c77aae656e7c1c64a875d1fc6a0a","version":"v7.0.1"},{"repo":"github/gh-aw-actions/setup","sha":"d059700c6a8ec3b5fd798b9ea60f5d048447b918","version":"v0.79.4"}],"containers":[{"image":"ghcr.io/github/gh-aw-firewall/agent:0.27.0"},{"image":"ghcr.io/github/gh-aw-firewall/api-proxy:0.27.0"},{"image":"ghcr.io/github/gh-aw-firewall/squid:0.27.0"},{"image":"ghcr.io/github/gh-aw-mcpg:v0.3.25","digest":"sha256:c10331ad17668ef89f38f5e356678788a40b0cd5fef96e8f92e1d9c1de47cbaa","pinned_image":"ghcr.io/github/gh-aw-mcpg:v0.3.25@sha256:c10331ad17668ef89f38f5e356678788a40b0cd5fef96e8f92e1d9c1de47cbaa"},{"image":"ghcr.io/github/github-mcp-server:v1.1.2","digest":"sha256:30197479d8036c7811892bc07e06f9a05c9ef3cdd79bc59f256d50647f95788c","pinned_image":"ghcr.io/github/github-mcp-server:v1.1.2@sha256:30197479d8036c7811892bc07e06f9a05c9ef3cdd79bc59f256d50647f95788c"},{"image":"node:lts-alpine","digest":"sha256:2bdb65ed1dab192432bc31c95f94155ca5ad7fc1392fb7eb7526ab682fa5bf14","pinned_image":"node:lts-alpine@sha256:2bdb65ed1dab192432bc31c95f94155ca5ad7fc1392fb7eb7526ab682fa5bf14"}]} # ___ _ _ # / _ \ | | (_) @@ -106,7 +106,7 @@ jobs: actions: read contents: read env: - GH_AW_MAX_DAILY_AI_CREDITS: "5000" + GH_AW_MAX_DAILY_AI_CREDITS: "20000" outputs: comment_id: "" comment_repo: "" @@ -171,7 +171,7 @@ jobs: GH_AW_RUN_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} GH_AW_WORKFLOW_DISPATCH_AW_CONTEXT: ${{ github.event.inputs.aw_context || '' }} GH_AW_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - GH_AW_MAX_DAILY_AI_CREDITS: "5000" + GH_AW_MAX_DAILY_AI_CREDITS: "20000" with: github-token: ${{ secrets.GITHUB_TOKEN }} script: | diff --git a/.github/workflows/evergreen.md b/.github/workflows/evergreen.md index de37bc46..e686770e 100644 --- a/.github/workflows/evergreen.md +++ b/.github/workflows/evergreen.md @@ -20,7 +20,7 @@ on: permissions: read-all timeout-minutes: 30 -max-daily-ai-credits: 5000 +max-daily-ai-credits: 20000 network: allowed: diff --git a/.github/workflows/shared/evergreen/quota-policy.md b/.github/workflows/shared/evergreen/quota-policy.md index 8154f0f1..fa7ae455 100644 --- a/.github/workflows/shared/evergreen/quota-policy.md +++ b/.github/workflows/shared/evergreen/quota-policy.md @@ -5,10 +5,12 @@ Quota is per PR and per continuous application of the `evergreen` label. 1. Quota starts when `evergreen` is applied and continues across runs while the label remains. 2. The per-PR budget is **5000 AI credits** (see `repo-policy.md`). -3. New commits do not reset quota by themselves. -4. Empty CI-trigger commits do not count as semantic repair attempts. -5. Cheap deterministic monitoring runs should consume little or no quota. -6. Reapplying `evergreen` after exhaustion starts a fresh quota; keep prior +3. The daily Evergreen workflow guardrail is **20000 AI credits** so scheduled + repair runs do not stop after one or two substantial PR passes. +4. New commits do not reset quota by themselves. +5. Empty CI-trigger commits do not count as semantic repair attempts. +6. Cheap deterministic monitoring runs should consume little or no quota. +7. Reapplying `evergreen` after exhaustion starts a fresh quota; keep prior memory. On quota exhaustion: diff --git a/.github/workflows/shared/evergreen/repo-policy.md b/.github/workflows/shared/evergreen/repo-policy.md index 077b1934..f6819ea9 100644 --- a/.github/workflows/shared/evergreen/repo-policy.md +++ b/.github/workflows/shared/evergreen/repo-policy.md @@ -100,6 +100,7 @@ by the maintainer. Evergreen must follow it for all repo-specific behavior. - Per-PR AI-credit budget: **5000** AI credits per continuous application of the `evergreen` label. +- Daily Evergreen workflow AI-credit guardrail: **20000** AI credits. - Max runs: bounded by the budget; scheduled monitoring should use little quota. - Max repeated attempts per failure signature: stop repeating a path already recorded as failing in memory.