You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
docs: update agent/contributor standards, fix stale references, and consolidate docs - #2871
Claimed in the coordination issue as: docs accuracy, deduplication & coding-agent standards update (requested by maintainer)
What and why
Audits AGENTS.md, CONTRIBUTING.md, README.md, and their directly linked docs (docs/agent_collaboration.md, docs/README.md, docs/testing.md) against current ProjectLeonida/mandymain, fixing provably stale/untrue statements, adding crisp engineering requirements for coding agents, and deduplicating/consolidating overlapping documentation into fewer canonical homes (net -10 lines overall).
1. Factual fixes (verified against current main)
Repository URLs and CLI flags (AGENTS.md, CONTRIBUTING.md, docs/agent_collaboration.md, docs/README.md, docs/testing.md): Updated stale ubiquitarianism/leonida repository references, gh issue list -R, gh run download --repo, [claims] search links, and git clone/cd leonida commands to ProjectLeonida/mandy (cd mandy).
Dead upstream links (README.md): Replaced the non-existent https://github.com/ProjectLeonida/Leonida link and private https://github.com/ItsNotRexed/Leonida link with accurate plain-text references (ItsNotRexed/Leonida, now private), consistent with AGENTS.md and CONTRIBUTING.md.
Two-runtime overview & tree map (AGENTS.md): Updated the repository overview to reflect both d3d12/ (leonida.exe, Rust) and make_game.py + runtime/ (gta6rt.exe, C++20), plus launcher/ (index.html, serve.py, launcher/native/), mods/, viewer/studio.html, third_party/xma/, and key scripts (play-d3d12.ps1, play-linux.sh, red_green.py, run_standalone_tests.py).
Current build, test & CI commands (AGENTS.md, CONTRIBUTING.md, docs/testing.md):
Added the d3d12/ Rust workspace build/test commands (matching .github/workflows/d3d12.yml) and launcher/native/ checks (matching .github/workflows/launcher.yml).
Updated viewer tests from node --test tests/test_viewer_streaming.cjs to node --test tests/test_*.cjs (matching .github/workflows/ci.yml, covering both streaming and studio tests).
Updated the stale semantic-suite count (465 files → over 550 files; 554 currently), documented scripts/red_green.py, scripts/check_no_game_data.py, test_docs_*.py, and LEONIDA_TEST_DIR, and noted that macOS CI in .github/workflows/runtime.yml is currently disabled.
Updated docs/agent_collaboration.md from "already in its second thread" (now on its third thread: #14, #1608, #2570) to "moves to a new thread when full".
2. Coding-agent engineering standards (AGENTS.md, aligned in CONTRIBUTING.md)
Root-cause, clean & performant code bar: Require fixing root causes rather than stacking workarounds, and writing simple, clean, modular, maintainable, and performant code (clear structure, small cohesive modules/functions, zero spaghetti or duplicated logic, mindful of hot-path allocations/copies/scans).
Mandatory independent read-only reviewer agent: Require running a separate, read-only reviewer agent (from the code-review tier in CONTRIBUTING.md) to audit diffs, edge cases, red/green tests, and clean-room rules before opening or updating a pull request, and re-running it after non-trivial edits.
PR disclosure consistency: Aligned AGENTS.md and CONTRIBUTING.md so PRs disclose which specific models were used (including the reviewer agent).
3. Simplification, deduplication & consolidation
Single canonical home per topic across AGENTS.md ↔ CONTRIBUTING.md:
CONTRIBUTING.md is now the single home for clean-room rules, claiming/old-repo #17/#18 workflow, shared contributor conventions (LF line endings, same_report_path), AI model tiers/disclosure, PR rules, and the maintainer quick guide.
AGENTS.md is now the single home for repository layout, the coding-agent engineering bar, agent-specific gh/claiming guardrails, measurement discipline, runtime traps, the numpy/Pillow tool list, and the full copy-pasteable no-game-files build/test command reference (CONTRIBUTING.md links there instead of duplicating every command).
Consolidated 4 split benchmark files into 1 (docs/descriptor_lookup.md): Merged docs/descriptor_lookup_{apple,ada,ampere,intel}.md into one docs/descriptor_lookup.md with shared methodology, all four per-GPU measurement tables/specs/replay commands preserved cell-for-cell, dead ItsNotRexed/Leonida links removed, and zero dangling references.
Deduplicated docs/README.md: Removed the duplicate modding.md entry (now listed once beside mod-menu.md and lua-modding.md), replaced the 4 descriptor_lookup_*.md rows with 1 descriptor_lookup.md row, and removed repeated/self-contradictory duplicate sentences in the gameinput.md, pipeline_check.md, and first_light.md rows.
Tested
All checks run on Linux inside a clean worktree branched from ProjectLeonida/mandy:main (6c7f6b60c):
Independently audited by read-only reviewer agents; all 5 follow-up review findings (post-bc8e604cf vs M3 Max f165a13 table capacities/loads, Intel 8df277f--warmup-ms note, Ampere BAR1 idle state & build toolchain, docs/README.md camera mod phrasing, and exact model names) applied and re-verified.
Independent read-only adversarial review (Gemini 4 Neon (XHigh)) completed two rounds on this PR (catching and fixing the pre-bc8e604cf M3 Max 80 MiB / 2,097,152-slot capacity split, the Intel --warmup-ms note, dropped Ampere BAR1/toolchain fields, and docs/README.md modding note) and returned VERDICT: CLEAN (0 MUST-FIX, 0 SHOULD-FIX, 0 NIT) on 4367afb81:
Merged at e04721c7f while I was reviewing, so this is follow-up rather than a blocker — the "Tested" section is truthful (57/57 docs tests, test_i18n_index 9/9, test_design_contract_rows 5/5, clean-room check, git diff --check), and most of the deduplication is genuinely lossless. Four things it leaves behind:
The reviewer rule changed from advice to a gate.docs: recommend AI models and separate reviewer agent in CONTRIBUTING.md #2744recommended a separate reviewer for AI-written changes; this PR makes it "Always … before opening or updating" for every PR, in both AGENTS.md and CONTRIBUTING.md — a normative policy change inside a PR whose stated goal is fixing stale references, and now duplicated in the two files it set out to deduplicate. It is already costing work: @j-weiner released two claims (comments 7284176926, 7285855935) because no reviewer-tier model was available. That should be a maintainer decision, made explicitly, not carried in as cleanup.
A safety sentence was lost with no replacement. "Tests that need the retail package read LEONIDA_GAME_DIR … never copy or commit those files" is gone from both CONTRIBUTING.md and AGENTS.md; only runtime/README.md:630 still says it. Dropping that is the opposite of clean-room hardening — copying a package into the build tree is exactly how an accidental commit happens.
The rename is ~18% done.main still has 58ubiquitarianism/leonida references in 25 files, including docs/design.md, docs/running.md, docs/d3d12_vulkan.md, docs/runtime_ctest_hosts.md, docs/history/README.md and 12 i18n quickstarts. PR docs: name the current repository in the documentation links #2571 had several of these before it was closed 16 minutes after opening for an unrelated red test. Also left inconsistent: docs/README.md now links #563 under mandy while docs/history/README.md still links #18/#563 under ubiquitarianism.
Small but actionable:.github/pull_request_template.md still says "(AGENTS.md asks a coding agent to say so)" although that instruction now lives only in CONTRIBUTING; and python -I scripts/check_no_game_data.py scans git ls-files, i.e. tracked files only, so the new "before every commit" rule only means something after git add or with explicit paths.
Two over-broad wordings worth tightening while the file is fresh: "never cite a pre-23-November-2026 #N as readable" contradicts the repo's own practice (docs/testing.md cites #166/#664; descriptor_lookup.md refers to the old #313), so an agent applying it mechanically would strip provenance; and "old #166/#313 link nowhere" is no longer literally true in mandy, where those numbers exist as unrelated items.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Claimed in the coordination issue as: docs accuracy, deduplication & coding-agent standards update (requested by maintainer)
What and why
Audits
AGENTS.md,CONTRIBUTING.md,README.md, and their directly linked docs (docs/agent_collaboration.md,docs/README.md,docs/testing.md) against currentProjectLeonida/mandymain, fixing provably stale/untrue statements, adding crisp engineering requirements for coding agents, and deduplicating/consolidating overlapping documentation into fewer canonical homes (net-10lines overall).1. Factual fixes (verified against current
main)AGENTS.md,CONTRIBUTING.md,docs/agent_collaboration.md,docs/README.md,docs/testing.md): Updated staleubiquitarianism/leonidarepository references,gh issue list -R,gh run download --repo,[claims]search links, andgit clone/cd leonidacommands toProjectLeonida/mandy(cd mandy).README.md): Replaced the non-existenthttps://github.com/ProjectLeonida/Leonidalink and privatehttps://github.com/ItsNotRexed/Leonidalink with accurate plain-text references (ItsNotRexed/Leonida, now private), consistent withAGENTS.mdandCONTRIBUTING.md.AGENTS.md): Updated the repository overview to reflect bothd3d12/(leonida.exe, Rust) andmake_game.py+runtime/(gta6rt.exe, C++20), pluslauncher/(index.html,serve.py,launcher/native/),mods/,viewer/studio.html,third_party/xma/, and key scripts (play-d3d12.ps1,play-linux.sh,red_green.py,run_standalone_tests.py).AGENTS.md,CONTRIBUTING.md,docs/testing.md):d3d12/Rust workspace build/test commands (matching.github/workflows/d3d12.yml) andlauncher/native/checks (matching.github/workflows/launcher.yml).node --test tests/test_viewer_streaming.cjstonode --test tests/test_*.cjs(matching.github/workflows/ci.yml, covering both streaming and studio tests).465 files→ over 550 files; 554 currently), documentedscripts/red_green.py,scripts/check_no_game_data.py,test_docs_*.py, andLEONIDA_TEST_DIR, and noted that macOS CI in.github/workflows/runtime.ymlis currently disabled.docs/agent_collaboration.mdfrom "already in its second thread" (now on its third thread:#14,#1608,#2570) to "moves to a new thread when full".2. Coding-agent engineering standards (
AGENTS.md, aligned inCONTRIBUTING.md)CONTRIBUTING.md) to audit diffs, edge cases, red/green tests, and clean-room rules before opening or updating a pull request, and re-running it after non-trivial edits.AGENTS.mdandCONTRIBUTING.mdso PRs disclose which specific models were used (including the reviewer agent).3. Simplification, deduplication & consolidation
AGENTS.md↔CONTRIBUTING.md:CONTRIBUTING.mdis now the single home for clean-room rules, claiming/old-repo#17/#18workflow, shared contributor conventions (LF line endings,same_report_path), AI model tiers/disclosure, PR rules, and the maintainer quick guide.AGENTS.mdis now the single home for repository layout, the coding-agent engineering bar, agent-specificgh/claiming guardrails, measurement discipline, runtime traps, the numpy/Pillow tool list, and the full copy-pasteable no-game-files build/test command reference (CONTRIBUTING.mdlinks there instead of duplicating every command).docs/descriptor_lookup.md): Mergeddocs/descriptor_lookup_{apple,ada,ampere,intel}.mdinto onedocs/descriptor_lookup.mdwith shared methodology, all four per-GPU measurement tables/specs/replay commands preserved cell-for-cell, deadItsNotRexed/Leonidalinks removed, and zero dangling references.docs/README.md: Removed the duplicatemodding.mdentry (now listed once besidemod-menu.mdandlua-modding.md), replaced the 4descriptor_lookup_*.mdrows with 1descriptor_lookup.mdrow, and removed repeated/self-contradictory duplicate sentences in thegameinput.md,pipeline_check.md, andfirst_light.mdrows.Tested
All checks run on Linux inside a clean worktree branched from
ProjectLeonida/mandy:main(6c7f6b60c):python3 -I scripts/check_no_game_data.py— exit 0python3 -m unittest discover -s tests -p "test_docs_*.py" -v— 57/57 passedpython3 -I tests/test_i18n_index.py— 9/9 passedpython3 -I tests/test_design_contract_rows.py— 5/5 passedpython3 -I tests/test_exe_checklist.py ExeChecklist.test_this_repository— 1/1 passedpython3 -I tests/test_make_game_preflight.py— 110/110 passed (1 skipped)python3 -I tests/test_progress_dashboard.py— 67/67 passedpython3 -I tests/test_ci_registration.py— 18/18 passedgit diff --check 6c7f6b60c— cleanbc8e604cfvs M3 Maxf165a13table capacities/loads, Intel8df277f--warmup-msnote, Ampere BAR1 idle state & build toolchain,docs/README.mdcamera mod phrasing, and exact model names) applied and re-verified.GPUs tested: n/a (documentation-only change)
AI-assisted: yes (Gemini 4 Neon (High) authoring agent + independent read-only Gemini 4 Neon (XHigh) reviewer agent)
Checklist
mainand merges cleanly (a conflicting pull request is labeledneeds rebase).