Docs: AGENTS.md for AI agents working on VIctory #1740

Open
ThiagoAlexsander wants to merge 1 commit from upstream-pr/1741 into main
ThiagoAlexsander commented 2026-11-24 21:43:13 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by ThiagoAlexsander on 2026-11-24T21:43:13Z.


Many contributors here work through coding agents, and much of the effort goes into duplicate or invisible work. Several fixes for the same problem appear at once, fixes sit as fork branches inside issue comments, and the same dead ends are found again. This adds an AGENTS.md (the file agents read at the start of a session) with what they need before they start.

Change

A new AGENTS.md, about 100 lines, covering:

  • The project: the crates, with pointers to README.md and docs/architecture.md.
  • Rule #1: docs/asset-policy.md, the pre-commit hook, and the cargo-on-PATH pitfall on Windows.
  • Before writing code:
    • search PRs and issue bodies for existing work;
    • measure first: the translate --validate --list census compared program by program, and VICTORY_GPU_TIMING for the runtime;
    • check the existing VICTORY_ switches;
    • post a short plan on the issue.
  • Running the title unattended:
    • first-run screens persist after one pass;
    • VICTORY_KEYS and VICTORY_CAPTURE (diagnostics build);
    • stray pad or keyboard input skews comparison runs;
    • Windows' ~2 s TDR versus a real hang;
    • note the GPU vendor in every report.
  • Pull requests: what merged PRs here do, i.e. small and single-purpose; <Area>: <outcome> titles (areas from git log); a test that fails on main; CI's exact commands; required Not tested and AI use sections; no unmeasured numbers.
  • Sharing: the test-report format, posting dead ends with numbers, and no GitHub posts unless the person the agent works for asks.

The PR conventions are described as what merged PRs do, not as maintainer rules. Change anything that doesn't match how you want PRs here.

Testing

  • cargo xtask policy (pre-commit hook): 1 file ok.
  • Docs only: no code changes.

Not tested

Nothing to run; the content was checked against the repository at ffe310e (README switches, CI workflow, asset policy, git log title prefixes).

AI use: Claude Code (Claude Opus 5.5) wrote this from the repository and from a day of working in it; I reviewed it before opening the PR.

🤖 Generated with Claude Code

<!-- greyfinch-sync:Marvisak/VIctory:issue:5480829522 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1741). Originally posted by [ThiagoAlexsander](https://github.com/ThiagoAlexsander) on 2026-11-24T21:43:13Z. --- Many contributors here work through coding agents, and much of the effort goes into duplicate or invisible work. Several fixes for the same problem appear at once, fixes sit as fork branches inside issue comments, and the same dead ends are found again. This adds an `AGENTS.md` (the file agents read at the start of a session) with what they need before they start. ## Change A new `AGENTS.md`, about 100 lines, covering: - **The project:** the crates, with pointers to `README.md` and `docs/architecture.md`. - **Rule #1:** `docs/asset-policy.md`, the pre-commit hook, and the `cargo`-on-`PATH` pitfall on Windows. - **Before writing code:** - search PRs *and issue bodies* for existing work; - measure first: the `translate --validate --list` census compared program by program, and `VICTORY_GPU_TIMING` for the runtime; - check the existing `VICTORY_` switches; - post a short plan on the issue. - **Running the title unattended:** - first-run screens persist after one pass; - `VICTORY_KEYS` and `VICTORY_CAPTURE` (diagnostics build); - stray pad or keyboard input skews comparison runs; - Windows' ~2 s TDR versus a real hang; - note the GPU vendor in every report. - **Pull requests:** what merged PRs here do, i.e. small and single-purpose; `<Area>: <outcome>` titles (areas from `git log`); a test that fails on `main`; CI's exact commands; required **Not tested** and **AI use** sections; no unmeasured numbers. - **Sharing:** the test-report format, posting dead ends with numbers, and no GitHub posts unless the person the agent works for asks. The PR conventions are described as what merged PRs do, not as maintainer rules. Change anything that doesn't match how you want PRs here. ## Testing - `cargo xtask policy` (pre-commit hook): 1 file ok. - Docs only: no code changes. ## Not tested Nothing to run; the content was checked against the repository at `ffe310e` (README switches, CI workflow, asset policy, `git log` title prefixes). AI use: Claude Code (Claude Opus 5.5) wrote this from the repository and from a day of working in it; I reviewed it before opening the PR. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
DenRakEiw commented 2026-11-24 21:57:35 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by DenRakEiw on 2026-11-24T21:57:35Z.

Review: APPROVED


Verified locally merged onto origin/main (70564ae, Windows 11 x64):

  • cargo xtask policy — ok (asset policy: 176 files ok)

Clear, concise contributor guide in AGENTS.md. Note: PR #1707 also adds a root AGENTS.md, so whichever lands second will need a quick rebase/merge.

AI-assisted (Gemini 4 Neon).

<!-- greyfinch-sync:Marvisak/VIctory:review:6048057616 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1741#pullrequestreview-6048057616). Originally posted by [DenRakEiw](https://github.com/DenRakEiw) on 2026-11-24T21:57:35Z. **Review:** APPROVED --- Verified locally merged onto `origin/main` (`70564ae`, Windows 11 x64): - `cargo xtask policy` — ok (`asset policy: 176 files ok`) Clear, concise contributor guide in `AGENTS.md`. Note: PR #1707 also adds a root `AGENTS.md`, so whichever lands second will need a quick rebase/merge. AI-assisted (Gemini 4 Neon).
Calvix2k commented 2026-11-24 23:05:51 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by Calvix2k on 2026-11-24T22:18:54Z.


Duplicate check: #1707 is an older AGENTS.md for the same #1698 request (claimed in #1633, with review feedback already applied: stop-and-ask rule, adapter/driver recording, CI “no checks reported”). Please consolidate on one file rather than merging both. Happy to fold anything this PR has that #1707 lacks into #1707, or close #1707 in favour of this one if you prefer — say which and I will do it.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7146076769 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1741#issuecomment-7146076769). Originally posted by [Calvix2k](https://github.com/Calvix2k) on 2026-11-24T22:18:54Z. --- Duplicate check: #1707 is an older `AGENTS.md` for the same #1698 request (claimed in #1633, with review feedback already applied: stop-and-ask rule, adapter/driver recording, CI “no checks reported”). Please consolidate on one file rather than merging both. Happy to fold anything this PR has that #1707 lacks into #1707, or close #1707 in favour of this one if you prefer — say which and I will do it.
Calvix2k commented 2026-11-24 23:05:55 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by Calvix2k on 2026-11-24T22:28:17Z.


Your draft is broader than #1707, so I am closing #1707 in favour of this one. Please fold in the three things it had from the review on #1707:

  1. Claim before coding: the coordination thread is #1633 with CLAIMS.md; post claiming: <ID> first.
  2. When to stop and ask a person: a Needs human attention: <one line> line and the cases (asset-policy ambiguity, workflows/build/xtask/releases, architecture decisions, conflicting claims, non-reproducible results, running code or merging for someone else).
  3. Measurements/CI: record adapter and driver (DXGI's default can be the iGPU; the selector from #1630 is VICTORY_D3D12_ADAPTER), and note that "no checks reported" on a first-time contributor's PR means waiting for approval, not passing.

Everything else in your file is good.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7146269079 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1741#issuecomment-7146269079). Originally posted by [Calvix2k](https://github.com/Calvix2k) on 2026-11-24T22:28:17Z. --- Your draft is broader than #1707, so I am closing #1707 in favour of this one. Please fold in the three things it had from the review on #1707: 1. **Claim before coding:** the coordination thread is #1633 with [CLAIMS.md](https://github.com/KevinPratap/VIctory/blob/forge-status/CLAIMS.md); post `claiming: <ID>` first. 2. **When to stop and ask a person:** a `Needs human attention: <one line>` line and the cases (asset-policy ambiguity, workflows/build/xtask/releases, architecture decisions, conflicting claims, non-reproducible results, running code or merging for someone else). 3. **Measurements/CI:** record adapter and driver (DXGI's default can be the iGPU; the selector from #1630 is `VICTORY_D3D12_ADAPTER`), and note that "no checks reported" on a first-time contributor's PR means waiting for approval, not passing. Everything else in your file is good.
Marvisak commented 2026-11-25 04:06:59 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-25T03:36:45Z.


Automated triage for the maintainers.

Needs work: needs the maintainer's decision. This adds a 91-line AGENTS.md of instructions addressed to AI agents. It sets contributor process the maintainer has not adopted: required PR sections, title format, "post a plan first", rules on when to post. The repository keeps docs short, and process rules are the maintainer's call. A comment here also proposes a claims process based on a CLAIMS.md in a contributor's fork; that would be an external coordination scheme and should not be folded in without the maintainer. Any useful facts (switches, the asset-policy hook) could go briefly into README.md instead. CI has not run.


Generated by Claude Code

<!-- greyfinch-sync:Marvisak/VIctory:comment:7152077293 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1741#issuecomment-7152077293). Originally posted by [Marvisak](https://github.com/Marvisak) on 2026-11-25T03:36:45Z. --- <!-- victory-triage v1 head=d2c9a469e7ae77db0e393def1d593a7a460f07fc verdict=needs-work at=2026-11-25T03:43:20Z --> Automated triage for the maintainers. **Needs work: needs the maintainer's decision.** This adds a 91-line `AGENTS.md` of instructions addressed to AI agents. It sets contributor process the maintainer has not adopted: required PR sections, title format, "post a plan first", rules on when to post. The repository keeps docs short, and process rules are the maintainer's call. A comment here also proposes a claims process based on a `CLAIMS.md` in a contributor's fork; that would be an external coordination scheme and should not be folded in without the maintainer. Any useful facts (switches, the asset-policy hook) could go briefly into README.md instead. CI has not run. --- _Generated by [Claude Code](https://claude.ai/code)_
neonbyte1 commented 2026-11-28 00:31:06 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by neonbyte1 on 2026-11-28T00:31:06Z.


Checked every command, path and switch against 63bcca43c. Everything below is verified unless noted. Suggested fixes: (1) the crate list omits victory-core and xtask; (2) VICTORY_KEYS and VICTORY_CAPTURE exist only in diagnostics builds, VICTORY_CAPTURE only on Windows (crates/victory-gpu/src/lib.rs:21), worth saying once; (3) VICTORY_GPU_TIMING runs each list on its own (README), so it is for attribution, not frame time; (4) CI is Windows-only and runs no rustfmt, which is why "format only what you changed" matters (cargo fmt --check shows diffs on main); (5) Docs: is rare in git log (2 commits on main), README: is the usual prefix for documentation (5); (6) shader tests need an SM 6.6 dxil.dll (VICTORY_DXIL, README "Windows shader-test validator"), which trips agents often; (7) I could not verify "first-run screens persist after one pass" or "most merged PRs are under ~130 lines" from the code; consider dropping or sourcing them. The wave64/NVIDIA note is only documented outside main (docs/wave64-on-wave32.md in our stack). Given the maintainer triage, trimming the process rules (required sections, "post a plan") to facts, or moving them to README, may be the way forward. We adopted this text for our fork with credit. AI-assisted (Claude); checked against the repository, no game data shared.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7230976465 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1741#issuecomment-7230976465). Originally posted by [neonbyte1](https://github.com/neonbyte1) on 2026-11-28T00:31:06Z. --- Checked every command, path and switch against `63bcca43c`. Everything below is verified unless noted. Suggested fixes: (1) the crate list omits `victory-core` and `xtask`; (2) `VICTORY_KEYS` and `VICTORY_CAPTURE` exist only in diagnostics builds, `VICTORY_CAPTURE` only on Windows (`crates/victory-gpu/src/lib.rs:21`), worth saying once; (3) `VICTORY_GPU_TIMING` runs each list on its own (README), so it is for attribution, not frame time; (4) CI is Windows-only and runs no rustfmt, which is why "format only what you changed" matters (`cargo fmt --check` shows diffs on `main`); (5) `Docs:` is rare in `git log` (2 commits on `main`), `README:` is the usual prefix for documentation (5); (6) shader tests need an SM 6.6 `dxil.dll` (`VICTORY_DXIL`, README "Windows shader-test validator"), which trips agents often; (7) I could not verify "first-run screens persist after one pass" or "most merged PRs are under ~130 lines" from the code; consider dropping or sourcing them. The wave64/NVIDIA note is only documented outside `main` (`docs/wave64-on-wave32.md` in our stack). Given the maintainer triage, trimming the process rules (required sections, "post a plan") to facts, or moving them to README, may be the way forward. We adopted this text for our fork with credit. _AI-assisted (Claude); checked against the repository, no game data shared._
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/1741:upstream-pr/1741'
git switch 'upstream-pr/1741'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/1741'
git switch 'upstream-pr/1741'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/1741'
git switch 'upstream-pr/1741'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/1741'
git switch 'main'
git merge --squash 'upstream-pr/1741'
git switch 'main'
git merge --ff-only 'upstream-pr/1741'
git switch 'main'
git merge 'upstream-pr/1741'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
Marvisak/VIctory!1740
No description provided.