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

Open
github-bot wants to merge 1 commit from github-bot/gh-1741 into main AGit
Owner

@⁠ThiagoAlexsander on GitHub · 2026-11-24 21:43 UTC · original
ThiagoAlexsander:docs/agents-md → main · +91 −0 · 1 files · 1 commits · open

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

**@⁠ThiagoAlexsander** on GitHub · 2026-11-24 21:43 UTC · [original](https://github.com/Marvisak/VIctory/pull/1741) `ThiagoAlexsander:docs/agents-md` → `main` · +91 −0 · 1 files · 1 commits · open 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)
Many contributors work through coding agents. The file collects what
they need before starting: the asset policy, searching PRs and issue
bodies for existing work, measuring with the translate census and GPU
timing, running the title unattended, and the shape of PRs that get
merged.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:43:26 +00:00
Author
Owner

@⁠Calvix2k on GitHub · 2026-11-24 22:18 UTC · original

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** on GitHub · 2026-11-24 22:18 UTC · [original](https://github.com/Marvisak/VIctory/pull/1741#issuecomment-7146076769) 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.
Author
Owner

@⁠Calvix2k on GitHub · 2026-11-24 22:28 UTC · original

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.

**@⁠Calvix2k** on GitHub · 2026-11-24 22:28 UTC · [original](https://github.com/Marvisak/VIctory/pull/1741#issuecomment-7146269079) 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.
Author
Owner

@⁠Marvisak on GitHub · 2026-11-25 03:36 UTC · original

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

**@⁠Marvisak** on GitHub · 2026-11-25 03:36 UTC · [original](https://github.com/Marvisak/VIctory/pull/1741#issuecomment-7152077293) <!-- 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)_
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/1741/head:github-bot/gh-1741'
git switch 'github-bot/gh-1741'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-1741'
git switch 'github-bot/gh-1741'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-1741'
git switch 'github-bot/gh-1741'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-1741'
git switch 'main'
git merge --squash 'github-bot/gh-1741'
git switch 'main'
git merge --ff-only 'github-bot/gh-1741'
git switch 'main'
git merge 'github-bot/gh-1741'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No reviewers
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.

Dependencies

No dependencies set

Reference
github/Marvisak--VIctory!1741
No description provided.