diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index 79dc004..b336c85 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -1,6 +1,8 @@ ## Summary - + + +Closes # ## Implementation and evidence @@ -23,6 +25,7 @@ ## Checklist +- [ ] I claimed the linked issue before starting, and the claim was still mine when I opened this pull request. - [ ] I reviewed the changes and disclosed material AI assistance below, if applicable. - [ ] The change preserves native ARM64 and Metal-first requirements. - [ ] I added relevant tests or explained why they are not applicable. diff --git a/AGENTS.md b/AGENTS.md index 66a4b8f..930d93c 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -45,6 +45,19 @@ No AI slop (section 29). Read docs/interfaces.md and docs/progress.md before implementation. +## Claiming work before you start + +Several people and coding agents work on this repository at the same time. An issue with no visible claim is the only signal that a task is free, so claim before you edit anything. + +1. **Check.** Read the issue's comments, assignees and labels, its linked pull requests, and open pull requests that touch the same files. If someone holds a live claim, pick another task. Do not start parallel work on a claimed task. +2. **Claim.** Comment `/claim` on the issue (or run `scripts/agent-queue.sh claim `). Where the claim workflow is enabled, wait for its grant comment and the `claimed-by:` label; a refusal names the reason. Where it is not enabled yet, your comment is the claim and the earliest valid claim comment wins. One issue per claim; claim follow-up tasks separately. +3. **Respect file ownership.** Two claimed tasks never edit the same files at the same time. If the issue lists files, edit only those; ask the maintainer before widening the list. +4. **Keep it alive.** A claim lapses 24 hours after the latest grant, `/progress ` comment, or push to the linked pull request. Post `/progress` at least once a day while you work. Lapsed tasks return to the queue and may be claimed by anyone. +5. **Release.** If you stop, comment `/release` so the task returns to the queue. Use `/blocked ` instead if you are waiting on another task. +6. **Link.** Open the pull request from a branch named `task/-` with `Closes #` in its description. + +An agent acting for a contributor claims in that contributor's name and must not claim work for areas that contributor may not claim (`.github/agent-queue.json`). Never remove, overwrite or ignore another person's claim; ask the maintainer to `/reassign` instead. See `docs/coordination/agent-tasks.md` when present. + ## Changelog maintenance - At the start of every engineering task, read `CHANGELOG.md` alongside the relevant project documentation. Review the existing `[Unreleased]` entries before implementation to avoid duplicating completed work. diff --git a/CHANGELOG.md b/CHANGELOG.md index eb668ca..b472c6f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,7 @@ remains unsupported. ### Added +- Added explicit claim-before-work rules for contributors and coding agents to `AGENTS.md`, `CONTRIBUTING.md` and the pull request template: check for existing claims, claim with `/claim`, keep a 24-hour lease alive with `/progress`, `/release` when stopping, and link the claimed issue. Without the claim workflow, the earliest valid claim comment wins. - Added CPU block decoders for BC2, BC3, BC4 and BC5 (UNORM and SNORM) in `xenora-texture`, with tests whose expected texels were derived by hand from the Microsoft and Khronos block-compression specifications. Interpolated values truncate toward zero, as the existing BC1 decoder does; GPU upload and sampling of these formats are not implemented yet. - Added `dbt::tests::sib_store_executes_through_the_native_dbt`, an independent DBT execution test that runs the SIB store form `mov [rsp + 0x20], rbx` through the native ARM64 DBT and diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 7793da3..8f75725 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -6,6 +6,7 @@ Xenora is an experimental Xbox Series X|S recompilation framework for Apple Sili - Read `README.md` and, when present, `AGENTS.md`, `docs/interfaces.md`, `docs/status.toml` and the relevant architecture decisions. - Discuss substantial changes in an issue before implementing them; small fixes do not require prior approval. +- Claim an issue before working on it by commenting `/claim`, and check that nobody else holds a live claim first. Claims lapse after 24 hours without a `/progress` comment or a push; comment `/release` if you stop. Coding agents follow the same rules; see "Claiming work before you start" in `AGENTS.md`. - Use a native ARM64 macOS environment with Rust and the appropriate Xcode/Metal tools. LLVM AMDGPU tools are needed for ISA fixture generation; extra tooling depends on the subsystem. - Keep changes focused and preserve existing public interfaces unless a change is justified and documented.