An open source, non-profit web search engine
Let the automation change its own configuration
Daoud Clarke3454b4cbfac3
diff --git a/.github/claude/implement-issue.md b/.github/claude/implement-issue.mdindex 94afaa9..e6773ec 100644--- a/.github/claude/implement-issue.md+++ b/.github/claude/implement-issue.md@@ -78,7 +78,9 @@ last section, so merging it closes the issue.## Rules-- **Never modify anything under `.github/`.** That is the automation's own configuration.+- You may change `.github/` when the issue calls for it. Editing an instruction file+ you are following, or the workflow you are running under, takes effect only once a+ maintainer merges the pull request — never part-way through this run.- One section per run. Never bundle two sections into one pull request.- Do not merge anything, do not change labels.- If you cannot finish, push nothing and explain in the log. A half-finished branch or adiff --git a/.github/claude/plan-issue.md b/.github/claude/plan-issue.mdindex 921d8a9..d5d83cc 100644--- a/.github/claude/plan-issue.md+++ b/.github/claude/plan-issue.md@@ -62,6 +62,8 @@ starts implementation, so make the trade-offs easy to review.## Rules-- **Never modify anything under `.github/`.** That is the automation's own configuration.+- A plan may change `.github/` when the issue is about the automation itself. Say so+ in the pull request body: the run that implements it edits the instructions it is+ following, and a maintainer reviews that before it takes effect.- The pull request adds exactly one file. If you changed anything else, revert it.- Do not merge anything, do not close the issue, do not change labels.diff --git a/docs/plans/issue-391-review-automated-prs.md b/docs/plans/issue-391-review-automated-prs.mdindex 134b3b5..2a241a7 100644--- a/docs/plans/issue-391-review-automated-prs.md+++ b/docs/plans/issue-391-review-automated-prs.md@@ -9,13 +9,10 @@ finalise step that re-runs the gates and opens the pull request. Each pass is athe passes use different models; the steps are chained by repository state (commits onthe branch), not by anything a step has to remember to set.-**Precondition — a human has to apply these, or lift a rule first.** Every section below-edits `.github/`, and `.github/claude/implement-issue.md` tells implementing runs "Never-modify anything under `.github/`". The automation therefore cannot build this issue, and-it cannot grant itself the exception either, since doing so means editing `.github/`.-Either a maintainer applies these two changes by hand (as every `.github/` change in the-history has been), or a maintainer first carves out an exception for issues whose subject-*is* the automation. This plan is written so that either route follows the same steps.+Every section below edits `.github/`, which the automation is now allowed to do: the+instructions a run edits take effect only once a maintainer merges the pull request, so+a run cannot change the rules it is itself following. A maintainer applying these by+hand follows the same steps.Measured on `main` at 5ccc6e2, in the same environment the automation runs in:`make check` is green; `uv run pytest` is `730 passed, 10 skipped, 4 deselected` in 67s.