Docs: contribution guidelines for people and AI agents #212

Manually merged
github merged 1 commit from gh-pr/212/head into gh-pr/212/base 2026-11-26 04:15:33 +00:00
Owner

@⁠1bugproof on GitHub · 2026-11-23 21:07 UTC · original
1bugproof:docs/contribution-guidelines → main · +283 −0 · 3 files · 1 commits · merged 2026-11-23 21:56 UTC

The repository has no contribution guidelines, and many PRs are written with AI tools. This adds rules that keep PRs easy to review without turning AI away. Most of them write down what the history already does: Area: commit subjects, PR descriptions that name the hardware tested and what was not tested, skip_test for GPU tests, and the GPL-2.0-only rules from HANDOFF.md.

What is in it

  • CONTRIBUTING.md:
    • check for an open PR or issue before starting
    • one logical change per PR, about 400 changed lines at most, stacked PRs when one depends on another
    • no repo-wide cargo fmt, since the tree is not rustfmt-clean
    • a PR description outline (Tested / Not tested / AI use)
    • commits: Area: outcome, each one builds, fixups squashed
    • where tests go, and GPU and game-data tests that skip when there is nothing to run them on
    • licence and provenance
    • HANDOFF.md / docs/specs/ are left to the maintainer
    • an AI policy: name the tool and model, the author answers for every line, tests are actually run, AI test reports are welcome
  • AGENTS.md: the same rules written as instructions for coding agents, plus build and test commands, known pitfalls (Windows only, PowerShell UTF-8) and a list of things an agent never does.
  • CLAUDE.md: loads AGENTS.md and CONTRIBUTING.md for Claude Code.

Tested

  • Docs only, no code changes. The test commands, paths and the gpu::recomp::runner::skip_test helper they name were checked against the tree at eaa36b6.

Not tested

  • The size limits (~400 / ~800 lines) and the "maintainer's notes" rule for HANDOFF.md are proposals. Adjust them as you see fit.

AI use

  • Written with Claude Code (Claude Opus 5.5) from a look at the repo's commits and PRs; reviewed and directed by me.

🤖 Generated with Claude Code

**@⁠1bugproof** on GitHub · 2026-11-23 21:07 UTC · [original](https://github.com/xcl-dev/xcl/pull/212) `1bugproof:docs/contribution-guidelines` → `main` · +283 −0 · 3 files · 1 commits · merged 2026-11-23 21:56 UTC The repository has no contribution guidelines, and many PRs are written with AI tools. This adds rules that keep PRs easy to review without turning AI away. Most of them write down what the history already does: `Area:` commit subjects, PR descriptions that name the hardware tested and what was not tested, `skip_test` for GPU tests, and the GPL-2.0-only rules from `HANDOFF.md`. **What is in it** - `CONTRIBUTING.md`: - check for an open PR or issue before starting - one logical change per PR, about 400 changed lines at most, stacked PRs when one depends on another - no repo-wide `cargo fmt`, since the tree is not rustfmt-clean - a PR description outline (Tested / Not tested / AI use) - commits: `Area: outcome`, each one builds, fixups squashed - where tests go, and GPU and game-data tests that skip when there is nothing to run them on - licence and provenance - `HANDOFF.md` / `docs/specs/` are left to the maintainer - an AI policy: name the tool and model, the author answers for every line, tests are actually run, AI test reports are welcome - `AGENTS.md`: the same rules written as instructions for coding agents, plus build and test commands, known pitfalls (Windows only, PowerShell UTF-8) and a list of things an agent never does. - `CLAUDE.md`: loads `AGENTS.md` and `CONTRIBUTING.md` for Claude Code. **Tested** - Docs only, no code changes. The test commands, paths and the `gpu::recomp::runner::skip_test` helper they name were checked against the tree at `eaa36b6`. **Not tested** - The size limits (~400 / ~800 lines) and the "maintainer's notes" rule for `HANDOFF.md` are proposals. Adjust them as you see fit. **AI use** - Written with Claude Code (Claude Opus 5.5) from a look at the repo's commits and PRs; reviewed and directed by me. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
CONTRIBUTING.md: small single-purpose PRs (~400 changed lines, stacked
when dependent), Area: commit subjects as in the history, tests with
every logic change, licence and provenance rules, and an AI policy
(disclose tool and model, the author answers for every line, tests
actually run, AI test reports welcome).

AGENTS.md: the same rules as instructions for coding agents, plus build
and test commands and what an agent must never do. CLAUDE.md loads both.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:15:31 +00:00
github manually merged commit 5a537b3efd into gh-pr/212/base 2026-11-26 04:15:33 +00:00
Author
Owner

@⁠ivall on GitHub · 2026-11-23 21:57 UTC · original

Merged (163b55e), thanks - this is the base of the contribution rules now. On top of it (63b9930): a What a PR needs to be merged section in CONTRIBUTING.md (both required checks green, the whole suite run on a GPU with its counts, and for a runtime change two xcl-smoke blocks from the new scripts/smoke.ps1, built from main and from the PR's head commit, with no device removal or crash), a PR template with a Regression run section, and a PR checks workflow that refuses a description without them. One change to your text: AI use is disclosed in the PR's AI use section; the Co-Authored-By trailer is welcome but no longer required (CLAUDE.md, AGENTS.md).

**@⁠ivall** on GitHub · 2026-11-23 21:57 UTC · [original](https://github.com/xcl-dev/xcl/pull/212#issuecomment-7115150156) Merged (163b55e), thanks - this is the base of the contribution rules now. On top of it (63b9930): a **What a PR needs to be merged** section in CONTRIBUTING.md (both required checks green, the whole suite run on a GPU with its counts, and for a runtime change two `xcl-smoke` blocks from the new `scripts/smoke.ps1`, built from main and from the PR's head commit, with no device removal or crash), a PR template with a **Regression run** section, and a `PR checks` workflow that refuses a description without them. One change to your text: AI use is disclosed in the PR's **AI use** section; the `Co-Authored-By` trailer is welcome but no longer required (CLAUDE.md, AGENTS.md).
This discussion has been locked. Commenting is limited to contributors.
No description provided.