docs: AGENTS.md, the repository guidelines for AI coding assistants #820
No reviewers
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
good first issue
help wanted
input
INTEL
invalid
lighting
linux-proton
memory
needs-info
needs-logs
needs-rebase
NVIDIA
performance
pr-diagnostics
pr-docs
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
rendering
report
series-s
shaders
spam
startup
upstream
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/trustno1-coder--VIctory-NVIDIA!820
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-820"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@abilliontokens on GitHub · 2026-11-28 07:02 UTC · original
abilliontokens:docs/repository-guidelines→main· +109 −0 · 1 files · 1 commits · merged 2026-11-29 08:16 UTCWhat this adds
AGENTS.mdat the root, titled "Repository Guidelines" (109 lines, documentation only): what an AI coding assistant needs before changing this tree — what the project is, how the crates fit together, the commands CI runs, the code conventions, the tooling constraints, the tests, and the asset policy as it meets a change. No source, manifest or lockfile is touched.Why it says what it says
It is written for what an assistant would otherwise get wrong, not for what the directory listing already shows:
victory-gpu/src/object.rs);VICTORY_*switches are read throughtoggled!/asked_for!and cached once per process (victory-gpu/src/switch.rs);cargo fmtgate and the tree is far from rustfmt-clean (3777 diff hunks), so a reflexive format buries a change;cargo test --workspacenever compilesvictory-gpu/tests/replay*.rs(they need thediagnosticsfeature);Cargo.lockchange empties every user's shader cache (VICTORY_TRANSLATOR);hle_export!in the module'smodule(), and registering nothing is what routes an import to the host, a title DLL or a stub.How it was checked
Seven parallel read-only passes over the tree (GPU object model, GPU host runtime, shader translator and formats, loader/HLE/CLI, tests, build and policy, scripts and docs), every claim tied to
path:line. Before opening this PR, the line references, function names, counts and the HLE recipe were checked against the sources they cite. That corrected four statements that were wrong (the number ofmod.rsfiles, the HLE function signature, the name of the host-failure function, theShaderErrorderivation), three line references that were off, and a few phrased more strongly than the code supports.The figures were measured on
63b902f, each with its command in the file:VICTORY_*namesgrep -rhoE 'VICTORY_[A-Z0-9_]+' crates apps --include='*.rs' | sort -u | wc -l#[test]functionsgrep -rh '#\[test\]' crates apps xtask --include='*.rs' | wc -l// SAFETY:commentsgrep -rc '// SAFETY:' crates apps --include='*.rs'cargo fmt --all -- --checkcargo xtask policyNot run
The clippy and test gates were not run locally for this change: nothing they inspect changed. CI runs them here as on any pull request.