docs: update agent/contributor standards, fix stale references, and consolidate docs #2871

Merged
aslan2142 merged 3 commits from upstream-pr/2871 into main 2026-12-01 13:17:24 +00:00
aslan2142 commented 2026-12-01 12:54:25 +00:00 (Migrated from github.com)

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 current ProjectLeonida/mandy main, 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):

  • python3 -I scripts/check_no_game_data.py — exit 0
  • python3 -m unittest discover -s tests -p "test_docs_*.py" -v — 57/57 passed
  • python3 -I tests/test_i18n_index.py — 9/9 passed
  • python3 -I tests/test_design_contract_rows.py — 5/5 passed
  • python3 -I tests/test_exe_checklist.py ExeChecklist.test_this_repository — 1/1 passed
  • python3 -I tests/test_make_game_preflight.py — 110/110 passed (1 skipped)
  • python3 -I tests/test_progress_dashboard.py — 67/67 passed
  • python3 -I tests/test_ci_registration.py — 18/18 passed
  • git diff --check 6c7f6b60c — clean
  • 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.

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

  • Based on current main and merges cleanly (a conflicting pull request is labeled needs rebase).
  • One topic; follow-up work goes in a new pull request.
  • No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here.
  • No translator rule added.
<!-- greyfinch-sync:ubiquitarianism/leonida:issue:5586103403 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2871). Originally posted by [aslan2142](https://github.com/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 current `ProjectLeonida/mandy` `main`, 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`): - `python3 -I scripts/check_no_game_data.py` — exit 0 - `python3 -m unittest discover -s tests -p "test_docs_*.py" -v` — 57/57 passed - `python3 -I tests/test_i18n_index.py` — 9/9 passed - `python3 -I tests/test_design_contract_rows.py` — 5/5 passed - `python3 -I tests/test_exe_checklist.py ExeChecklist.test_this_repository` — 1/1 passed - `python3 -I tests/test_make_game_preflight.py` — 110/110 passed (1 skipped) - `python3 -I tests/test_progress_dashboard.py` — 67/67 passed - `python3 -I tests/test_ci_registration.py` — 18/18 passed - `git diff --check 6c7f6b60c` — clean - 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. 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 - [x] Based on current `main` and merges cleanly (a conflicting pull request is labeled `needs rebase`). - [x] One topic; follow-up work goes in a new pull request. - [x] No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here. - [x] No translator rule added.
aslan2142 commented 2026-12-01 13:17:03 +00:00 (Migrated from github.com)

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-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:

  • python3 -I scripts/check_no_game_data.py: exit 0
  • test_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% PASS
  • git diff --check: clean, zero broken links/anchors/tables

(AI-assisted review.)

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7312380161 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2871#issuecomment-7312380161). Originally posted by [aslan2142](https://github.com/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-`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`: - `python3 -I scripts/check_no_game_data.py`: exit 0 - `test_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% PASS - `git diff --check`: clean, zero broken links/anchors/tables *(AI-assisted review.)*
KelboLive commented 2026-12-01 13:27:01 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by KelboLive on 2026-12-01T13:27:01Z.


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:

  1. The reviewer rule changed from advice to a gate. #2744 recommended 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.
  2. 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.
  3. The rename is ~18% done. main still has 58 ubiquitarianism/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 #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.
  4. 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.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7312643220 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2871#issuecomment-7312643220). Originally posted by [KelboLive](https://github.com/KelboLive) on 2026-12-01T13:27:01Z. --- 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: 1. **The reviewer rule changed from advice to a gate.** #2744 *recommended* 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. 2. **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. 3. **The rename is ~18% done.** `main` still has **58** `ubiquitarianism/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 #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`. 4. **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.
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
ProjectLeonida/mandy!2871
No description provided.