docs: update agent/contributor standards, fix stale references, and consolidate docs #2871
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2871"
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?
Imported from ubiquitarianism/leonida. Originally posted by aslan2142 on 2026-12-01T12:54:25Z.
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).Imported from ubiquitarianism/leonida. Originally posted by aslan2142 on 2026-12-01T13:17:03Z.
Independent read-only adversarial review (
Gemini 4 Neon (XHigh)) completed two rounds on this PR (catching and fixing the pre-bc8e604cfM3 Max 80 MiB / 2,097,152-slot capacity split, the Intel--warmup-msnote, dropped Ampere BAR1/toolchain fields, anddocs/README.mdmodding note) and returnedVERDICT: CLEAN(0 MUST-FIX, 0 SHOULD-FIX, 0 NIT) on4367afb81:python3 -I scripts/check_no_game_data.py: exit 0test_docs_*.py(57/57),test_i18n_index.py(9/9),test_design_contract_rows.py(5/5),test_exe_checklist.py,test_make_game_preflight.py,test_progress_dashboard.py: 100% PASSgit diff --check: clean, zero broken links/anchors/tables(AI-assisted review.)
Imported from ubiquitarianism/leonida. Originally posted by KelboLive on 2026-12-01T13:27:01Z.
Merged at
e04721c7fwhile I was reviewing, so this is follow-up rather than a blocker — the "Tested" section is truthful (57/57 docs tests,test_i18n_index9/9,test_design_contract_rows5/5, clean-room check,git diff --check), and most of the deduplication is genuinely lossless. Four things it leaves behind:AGENTS.mdandCONTRIBUTING.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 (comments7284176926,7285855935) because no reviewer-tier model was available. That should be a maintainer decision, made explicitly, not carried in as cleanup.LEONIDA_GAME_DIR… never copy or commit those files" is gone from bothCONTRIBUTING.mdandAGENTS.md; onlyruntime/README.md:630still 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.mainstill has 58ubiquitarianism/leonidareferences in 25 files, includingdocs/design.md,docs/running.md,docs/d3d12_vulkan.md,docs/runtime_ctest_hosts.md,docs/history/README.mdand 12 i18n quickstarts. PR #2571 had several of these before it was closed 16 minutes after opening for an unrelated red test. Also left inconsistent:docs/README.mdnow links#563undermandywhiledocs/history/README.mdstill links#18/#563underubiquitarianism..github/pull_request_template.mdstill says "(AGENTS.md asks a coding agent to say so)" although that instruction now lives only in CONTRIBUTING; andpython -I scripts/check_no_game_data.pyscansgit ls-files, i.e. tracked files only, so the new "before every commit" rule only means something aftergit addor with explicit paths.Two over-broad wordings worth tightening while the file is fresh: "never cite a pre-23-November-2026
#Nas readable" contradicts the repo's own practice (docs/testing.mdcites #166/#664;descriptor_lookup.mdrefers to the old #313), so an agent applying it mechanically would strip provenance; and "old #166/#313 link nowhere" is no longer literally true inmandy, where those numbers exist as unrelated items.