Repository navigation
docs: when a pull request can be merged, for maintainers and their agents (DOCS-MAINTAINING-GUIDE) - #2797
docs: when a pull request can be merged, for maintainers and their agents (DOCS-MAINTAINING-GUIDE)#2797MoonEyes wants to merge 10 commits into
Conversation
…ents (DOCS-MAINTAINING-GUIDE) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
@OreoFR @DadaCap ready for your reading, as agreed with MoonEyes: please read Posted by an AI agent (Claude Code) for MoonEyes. |
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
KelboLive
left a comment
There was a problem hiding this comment.
Two rules would block work the repository has just merged, so an agent will read them as wrong:
- "every
Depends on:already merged" misreads the template. The line means "every pull request this one builds on or conflicts with" (.github/pull_request_template.md:4); #2783 merged at 21:05:31Z and its declaredDepends on: #2782merged 16 minutes later. - "no check is failed" is stricter than the repo's own rule.
docs/testing.md:126-127says those jobs can be red on main and to compare rather than block; #2825 merged at 04:06:07Z withcheckandlinux-python-and-viewerred, inherited from main.
Three more that cannot be followed as written:
- "wait for main's CI" after a docs-only merge: CI is skipped on a docs-only push (
ci.yml:5-11), so there is no run to wait for; and #2825 → #2827 landed 2.7 min apart while main's CI takes 11-26 min, i.e. the policy was not in force for the merges it is written from. reviewDecisionis not empty with a changes-requested review — #2472, #221 and #100 all reportCHANGES_REQUESTED.- Checklist 5 narrows the suite to "when the change is not confined to one module";
CONTRIBUTING.md:118asks for the full suite once, always. Quote it exactly, or change it there first.
Consistency items, in the order I would fix them:
- Agent authority contradicts
docs/agent_collaboration.md:121-124("It does not open, change or merge a pull request") while the page says an agent may merge under a maintainer's written yes. One of the two needs the qualifier — this is the rule most likely to be cited by an agent in the wrong direction. - Claim requirements are narrower/wider than
AGENTS.md:52: the guide and template accept an item ID; the page requires a link to the claim comment. #2827 was merged with "Claim: none in the description", and three of the last 25 merges have no claim line at all. - Invented-but-sensible rules should be labelled as new policy, not described as existing practice: "ask before merging
.github/, CI, deps, security, test-weakening" (nothing in AGENTS/CONTRIBUTING, and #2763 — a CI change — was self-merged), "a maintainer asked for a pause", and the "agreed delay" for closing. Also two facts are wrong: the one-open-PR limit does not exist (400 open PRs; CONTRIBUTING.md:20-21 explicitly allows overlapping PRs), and "main has no branch protection" is true (verified:protected: false, no rulesets) — keep that one, it explains why every rule here is manual. - The branch is 74 commits behind main, so its own checklist items 4/5 ("current head merged into current
main") are not met by the branch itself. Merge main in; and mentionscripts/red_green.py, which landed in #2787 and now does checklist 5 mechanically.
Small: tests/test_docs_cli_flags.py's FOREIGN only really covers --match-head-commit; --merge, --limit, --detach, --no-ff pass because unrelated sources contain the strings, so adding them to FOREIGN would make the test honest. The new docs/README.md row is the only one without a final period.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Thanks @KelboLive, and OreoFR for the four questions. Changed on head
Not in the page and never was: a limit of one open pull request. OreoFR's questions are answered in the description. Still a draft: it waits for the written agreement of OreoFR and DadaCap. Posted by an AI agent (Claude Code) for MoonEyes. |
|
@OreoFR @DadaCap a reminder from MoonEyes: the page is ready on head What is needed from each of you, here: "agreed" in writing, or what to change. Nothing is merged before both. Posted by an AI agent (Claude Code) for MoonEyes. |
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
I agree with the page, with these changes before it leaves draft:
(Written with my agent and posted at my request.) |
An unreachable world, translator counts, where an agreed failure is written, pictures, who lifts a pause and the runtime's real-time tests. Also: do not close and reopen to run CI again, and what the d3d12 job does not run. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Verification — VERIFY-2797Verdict: PASS
AI-assisted: yes (Muse Wonder, Muse by Meta) |
Claimed in the coordination issue as: DOCS-MAINTAINING-GUIDE (#2570 (comment))
What and why
A page that says when a pull request can be merged, for a maintainer and for the agent working for one. It is the long form of the "Maintainer quick guide" in CONTRIBUTING.md: a checklist, the commands that check each line, what an agent may and may not do, the in-game gate, what to do when CI is red, what needs a second human, who merges, the comment under a merge, closing, and what to do when a merge breaks something.
The aim is that an agent never merges what it should not, and that a human can tell in two minutes whether a pull request is ready. One line matters most: if one line of the checklist is unclear, the pull request stays open.
To be merged only after OreoFR and DadaCap have read it and agreed, in writing. A draft until then.
Points to decide while reading
CONTRIBUTING.mdsays "Don't wait for GitHub CI"; this page asks for green CI and lists itself as new policy on that. CONTRIBUTING.md is not changed here: that line should follow, in a pull request of its own.make_game.pyand the launch scripts when they can change what the game does. 900 s for a change to memory or to a queue: a hypothesis from a few runs on one card.mainhas no branch protection, so nothing but this page stops a wrong merge. Branch protection is worth its own discussion, with Aslan.Answered from OreoFR's four questions: who counts as the author in a carry (neither verifies nor merges);
mods/gate_driver, the gate scripts,red_green.pyandcheck_no_game_data.pyare on the ask-first list, open pull requests included; the closing delay was not written anywhere, so that reason is gone; the 900 s above.Tested
Docs, plus the list of other programs' flags in
tests/test_docs_cli_flags.py(--match-head-commit,--merge,--limit,--detach,--no-ff:ghandgitflags the page quotes): thetests/test_docs_*.pypass (each run on this branch; the flags test and four others again on the last edit),check_no_game_data.pyis clean. Read by a separate reviewer agent: it refused the first version, accepted the second, refused the version after these reviews, and refused the next one over a single point (aghflag the test does not know), fixed here by using the short flag. That last fix and small wording edits were not read again.GPUs tested: n/a
AI-assisted: yes (Claude Code, reviewed by a separate Claude agent)
Checklist
mainand merges cleanly.🤖 Generated with Claude Code