Commit Graph

11 Commits

Author SHA1 Message Date
d15e4c4338 pull request template: stop pointing at a Commands section that does not exist (PR-TEMPLATE-COMMANDS-SECTION)
The Depends-on prompt sent authors to the coordination issue's Commands section,
but issue #14 has no such section (its sections are How to use it, Open work,
Pull request activity and Rules). The prompt now points at AGENTS.md and the
open pull requests the issue lists. The rest of the template is unchanged.
2026-11-24 16:08:44 +01:00
4f7a347775 ci: label pull requests that conflict with main needs rebase (PR-CONFLICT-LABEL)
Every pull request is reviewed by hand, and with over a hundred open the
reviewer has no quick way to skip the ones that cannot merge as they
stand. tools/pr_conflict_label.py asks the GitHub API for each open pull
request's `mergeable` and labels the conflicting ones `needs rebase`,
removing the label once they merge cleanly again; an answer GitHub has
not computed yet is asked again a few times and otherwise left for the
next run. .github/workflows/conflict-label.yml runs it on a push to main
(all open pull requests), on a pull request being opened, reopened or
pushed to (that one), and hourly.

The job uses pull_request_target so a fork's pull request can be
labeled, and is safe with it: it checks out main, never the pull
request, and the tool reads only the API, so no pull request code runs.
Its token can read contents and write pull requests, nothing else;
tests/test_pr_conflict_label.py checks that, and the tool against a fake
API.

The pull request template also asks for `Fixes: #N` and `GPUs tested:`
lines and has checklist items for "based on current main" and "one
topic"; tests/test_docs_pr_template.py checks the new prompts, and
CONTRIBUTING.md gets a short Pull requests section. The process is
modelled on AnyPS5's (boykopovar/AnyPS5); the code is written here, not
copied.
2026-11-24 02:30:45 +00:00
6bf3b7d281 Revert #3920 (held for the maintainer): it makes docs/design.md a file generated from docs/contracts/*.json
The generated page was already out of step with this round's rows (test_design_contracts), and the PR also
changes AGENTS.md, the PR template, ci.yml and adds an agent skill. docs/design.md keeps its current rows.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 04:16:51 -05:00
152acd7a79 Merge pull request #3920 from Leonida Proto
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

# Conflicts:
#	docs/design.md
2026-11-22 23:09:34 -05:00
16ab807ab4 docs(agents): add Rule -> Enforcer table, preflight entry point, and PR premise check 2026-11-23 02:27:42 +04:00
e9d1382d6c PR template: Depends on also covers pull requests this one conflicts with
Review (@kacper-serewis): the coordination issue asks for the line for every
pull request this one builds on or conflicts with; the prompt said only
"builds on", and told authors to delete the line otherwise.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-22 21:46:06 +00:00
7f1f93c944 PR template test: check the template only; drop "with which tool"
The test pinned four phrasings of AGENTS.md, so a harmless rewording there
would fail it (and, once docs-only pull requests run every tests/test_docs_*.py,
turn an AGENTS.md-only pull request red). It now checks only that the
template has a `Depends on:` and an `AI-assisted:` prompt line.

The AI-assisted prompt no longer asks for the tool: no document asks for that.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-22 21:10:10 +00:00
129d346360 PR template: prompt for Depends on: and for AI assistance, as AGENTS.md already asks
AGENTS.md asks every pull request for a `Depends on: #N` line per pull
request it builds on, and to say that it was AI-assisted. The template
prompted for the claim, the change and the tests, but for neither of these.
This adds the two prompts and no new rule.

tests/test_docs_pr_template.py checks that each of the four things
AGENTS.md asks a pull request to say has a prompt in the template.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-22 20:46:49 +00:00
e0d68c8bb2 Docs: link the coordination issue by its title, not its number
The coordination issue (#156) will move to a successor when its thread
gets long. CONTRIBUTING.md, AGENTS.md, the PR template and the testing
guide now find it as the open issue titled "Coordinating who works on
what" (a search link, and a gh command for agents), so they stay right
without an edit each time.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 00:11:59 +01:00
8a7e5dce94 Docs: claim work in #156 before opening a pull request
@ItsNotRexed asked in #156 for claims to be made there before a PR is
opened. Say so where contributors and their agents look first:
CONTRIBUTING.md, AGENTS.md and the pull request template.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 22:33:56 +01:00
3ecfae302f Add a pull request template from CONTRIBUTING.md
Co-Authored-By: Claude <noreply@anthropic.com>
2026-11-21 14:15:04 +01:00