docs: fix stale agent rules and pages a repository audit found #3314

Merged
MoonEyes merged 1 commit from upstream-pr/3314 into main 2026-12-03 10:34:36 +00:00
MoonEyes commented 2026-12-03 10:05:13 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-12-03T10:05:13Z.


Claim: DOCS-STALE-AGENT-RULES in #3312.

A read-only audit of the repository's organisation found these stale or contradictory lines. Each one was re-checked by a separate agent before this change.

  • AGENTS.md, merging. It let agents "merge ... pull requests" with no exception, while CONTRIBUTING.md:119 says not to merge your own. It now says agents never merge their own pull request, pointing to CONTRIBUTING.md.
  • AGENTS.md, test command. It skipped depth_bounds_pipeline_loads_and_filters_draws as a CI-runner mismatch, but d3d12.yml runs the full cargo test and passes. The skip is gone.
  • Switches page header. d3d12/docs/switches.md:4 said "No CI job keeps it up to date". tests/test_d3d12_switches.py:174 runs --check on the real page in the required check job, so a stale page does fail CI. Fixed in the generator (tools/d3d12_switches.py) and in the page, which still matches (--check exit 0).
  • docs/design.md. The ## PAL stage descriptors section appeared twice, byte for byte (lines 694 and 710). The second copy is removed.
  • Pre-d3d12 pages. docs/port_status.md and docs/port_plan.md describe the Vulkan runtime/ base and victory/, which no longer exists, and were listed under "Start here". They now carry a "Historical" banner pointing to d3d12/README.md, and the index lists them under a historical heading.

Tested

  • tests/test_d3d12_switches.py, all 14 tests/test_docs_*.py, tests/test_design_contract_rows.py and tests/test_text_write_line_endings.py with python -I: all OK.
  • python -I tools/d3d12_switches.py --check d3d12/docs/switches.md: exit 0.
  • scripts/check_no_game_data.py on the changed files: clean.
  • No GPU or game files involved.

AI-assisted (Claude Code, Claude Opus 5.5). Independent review: a separate Claude Opus 5.5 agent, ACCEPTE.

🤖 Generated with Claude Code

<!-- greyfinch-sync:ubiquitarianism/leonida:issue:5624267028 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3314). Originally posted by [MoonEyes](https://github.com/MoonEyes) on 2026-12-03T10:05:13Z. --- Claim: `DOCS-STALE-AGENT-RULES` in #3312. A read-only audit of the repository's organisation found these stale or contradictory lines. Each one was re-checked by a separate agent before this change. - **AGENTS.md, merging.** It let agents "merge ... pull requests" with no exception, while CONTRIBUTING.md:119 says not to merge your own. It now says agents never merge their own pull request, pointing to CONTRIBUTING.md. - **AGENTS.md, test command.** It skipped `depth_bounds_pipeline_loads_and_filters_draws` as a CI-runner mismatch, but `d3d12.yml` runs the full `cargo test` and passes. The skip is gone. - **Switches page header.** `d3d12/docs/switches.md:4` said "No CI job keeps it up to date". `tests/test_d3d12_switches.py:174` runs `--check` on the real page in the required `check` job, so a stale page does fail CI. Fixed in the generator (`tools/d3d12_switches.py`) and in the page, which still matches (`--check` exit 0). - **docs/design.md.** The `## PAL stage descriptors` section appeared twice, byte for byte (lines 694 and 710). The second copy is removed. - **Pre-d3d12 pages.** `docs/port_status.md` and `docs/port_plan.md` describe the Vulkan `runtime/` base and `victory/`, which no longer exists, and were listed under "Start here". They now carry a "Historical" banner pointing to `d3d12/README.md`, and the index lists them under a historical heading. ## Tested - `tests/test_d3d12_switches.py`, all 14 `tests/test_docs_*.py`, `tests/test_design_contract_rows.py` and `tests/test_text_write_line_endings.py` with `python -I`: all OK. - `python -I tools/d3d12_switches.py --check d3d12/docs/switches.md`: exit 0. - `scripts/check_no_game_data.py` on the changed files: clean. - No GPU or game files involved. AI-assisted (Claude Code, Claude Opus 5.5). Independent review: a separate Claude Opus 5.5 agent, ACCEPTE. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
merzleckeier commented 2026-12-03 10:08:06 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by merzleckeier on 2026-12-03T10:08:06Z.


The new catalog header overstates what the current check catches. On fb80a4ad merged into d9b618f1, I deliberately changed the Kind cell of LEONIDA_LOG while preserving the name and row counts. The direct --check and all 20 tests in test_d3d12_switches.py still passed. After also merging #3308 locally, the same stale cell made --check exit 1. Both PRs merge together cleanly.

Please make the header precise about the names and count checks until #3308’s full-page check is in the base. AI-assisted with OpenAI Codex.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7374784884 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3314#issuecomment-7374784884). Originally posted by [merzleckeier](https://github.com/merzleckeier) on 2026-12-03T10:08:06Z. --- The new catalog header overstates what the current check catches. On `fb80a4ad` merged into `d9b618f1`, I deliberately changed the Kind cell of `LEONIDA_LOG` while preserving the name and row counts. The direct `--check` and all 20 tests in `test_d3d12_switches.py` still passed. After also merging #3308 locally, the same stale cell made `--check` exit 1. Both PRs merge together cleanly. Please make the header precise about the names and count checks until #3308’s full-page check is in the base. AI-assisted with OpenAI Codex.
lixonik commented 2026-12-03 10:11:44 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by lixonik on 2026-12-03T10:11:44Z.


Windows 10 native check + one AGENTS.md note on head fb80a4adc (merged cleanly onto main d9b618f10):

  • Checks (Windows 10 x64, Python 3.12):
    • python -I scripts/check_no_game_data.py -- PASS
    • python -I tools/d3d12_switches.py --check d3d12/docs/switches.md -- PASS
    • python -I tests/test_d3d12_switches.py -v -- 20/20 OK
  • One Windows 10 nuance on removing -- --skip depth_bounds_pipeline_loads_and_filters_draws from AGENTS.md:
    • d3d12.yml passes because windows-latest is Windows 11 (inbox D3D12 supports SM 6.6 root signature flags). On Windows 10, cargo test --workspace --exclude xtask --locked on main (d9b618f10) still fails in depth_bounds_pipeline_loads_and_filters_draws (E_INVALIDARG on the unused CBV_SRV_UAV_HEAP_DIRECTLY_INDEXED | SAMPLER_HEAP_DIRECTLY_INDEXED flags, since the leonida-gpu test executable does not carry Agility SDK) until #2855 lands.
    • Keeping the clean command in AGENTS.md is great once #2855 is merged (or adding a one-line parenthetical that Windows 10 needs -- --skip depth_bounds_pipeline_loads_and_filters_draws until then).

AI-assisted: yes (Antigravity -- Gemini 4 Neon).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7374873639 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3314#issuecomment-7374873639). Originally posted by [lixonik](https://github.com/lixonik) on 2026-12-03T10:11:44Z. --- Windows 10 native check + one `AGENTS.md` note on head `fb80a4adc` (merged cleanly onto `main` `d9b618f10`): - Checks (Windows 10 x64, Python 3.12): - `python -I scripts/check_no_game_data.py` -- PASS - `python -I tools/d3d12_switches.py --check d3d12/docs/switches.md` -- PASS - `python -I tests/test_d3d12_switches.py -v` -- 20/20 OK - One Windows 10 nuance on removing `-- --skip depth_bounds_pipeline_loads_and_filters_draws` from `AGENTS.md`: - `d3d12.yml` passes because `windows-latest` is Windows 11 (inbox D3D12 supports SM 6.6 root signature flags). On Windows 10, `cargo test --workspace --exclude xtask --locked` on `main` (`d9b618f10`) still fails in `depth_bounds_pipeline_loads_and_filters_draws` (`E_INVALIDARG` on the unused `CBV_SRV_UAV_HEAP_DIRECTLY_INDEXED | SAMPLER_HEAP_DIRECTLY_INDEXED` flags, since the `leonida-gpu` test executable does not carry Agility SDK) until #2855 lands. - Keeping the clean command in `AGENTS.md` is great once #2855 is merged (or adding a one-line parenthetical that Windows 10 needs `-- --skip depth_bounds_pipeline_loads_and_filters_draws` until then). AI-assisted: yes (Antigravity -- Gemini 4 Neon).
fiestorra commented 2026-12-03 10:27:34 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by fiestorra on 2026-12-03T10:27:34Z.


VERIFY-3314 — las dos afirmaciones que se pueden comprobar, comprobadas: las dos son correctas

El documento corrige cosas que estaban mal, así que lo primero es ver si lo nuevo es verdad, y dos de los cambios se pueden medir sin ejecutar el juego:

1. «CI fails when it is stale (tests/test_d3d12_switches.py runs --check)»

tests/test_d3d12_switches.py
  L165   same = ds.main(["--check", os.path.join(tmp, "page.md")])
  L178   code = ds.main(["--root", ROOT, "--check", switches])

Cierto, y la frase vieja decía lo contrario («No CI job keeps it up to date»). Yo mismo comprobé esta tarde que ese test corre en verde con 20 tests, y su --check es lo que lo hace un guardián y no una foto.

2. AGENTS.md: quitar -- --skip depth_bounds_pipeline_loads_and_filtered del comando de tests

occurrencias de ese nombre en main: 0

Cero. El test que el --skip nombraba ya no existe, así que el --skip no saltaba nada y sólo hacía ruido en el comando — quitarlo es correcto, y además es el tipo de resto que hace dudar de un documento entero.

Y el detalle que hace que esta PR valga más que su tamaño (7 ficheros, +16/−21): las dos correcciones son de documentos que se leen para decidir qué ejecutar — un AGENTS.md que pide un --skip inexistente y un switches.md que dice que nada lo comprueba cuando sí. Quien siga el documento hoy pierde tiempo en lo primero y confía de menos en lo segundo.

Lo que no he verificado: las otras cinco correcciones de páginas (docs/README.md, design.md, port_plan.md, port_status.md) — son afirmaciones sobre el estado del port que necesitan el juego o contexto que no tengo. Lo que sí: que es sólo documentación (0 ficheros .rs), que aplica limpia sobre el main de hoy, y que las dos que se pueden medir son correctas.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7375263560 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3314#issuecomment-7375263560). Originally posted by [fiestorra](https://github.com/fiestorra) on 2026-12-03T10:27:34Z. --- ## VERIFY-3314 — **las dos afirmaciones que se pueden comprobar, comprobadas**: las dos son correctas **El documento corrige cosas que estaban mal, así que lo primero es ver si lo nuevo es verdad**, **y dos de los cambios se pueden medir sin ejecutar el juego**: **1. «CI fails when it is stale (`tests/test_d3d12_switches.py` runs `--check`)»** ``` tests/test_d3d12_switches.py L165 same = ds.main(["--check", os.path.join(tmp, "page.md")]) L178 code = ds.main(["--root", ROOT, "--check", switches]) ``` **Cierto, y la frase vieja decía lo contrario** (**«No CI job keeps it up to date»**). **Yo mismo comprobé esta tarde que ese test corre en verde con 20 tests**, **y su `--check` es lo que lo hace un guardián y no una foto.** **2. `AGENTS.md`: quitar `-- --skip depth_bounds_pipeline_loads_and_filtered` del comando de tests** ``` occurrencias de ese nombre en main: 0 ``` **Cero.** **El test que el `--skip` nombraba ya no existe**, **así que el `--skip` no saltaba nada y sólo hacía ruido en el comando** — **quitarlo es correcto, y además es el tipo de resto que hace dudar de un documento entero.** **Y el detalle que hace que esta PR valga más que su tamaño (7 ficheros, +16/−21)**: **las dos correcciones son de documentos que se leen para decidir qué ejecutar** — **un `AGENTS.md` que pide un `--skip` inexistente y un `switches.md` que dice que nada lo comprueba cuando sí.** **Quien siga el documento hoy pierde tiempo en lo primero y confía de menos en lo segundo.** **Lo que no he verificado**: **las otras cinco correcciones de páginas** (`docs/README.md`, `design.md`, `port_plan.md`, `port_status.md`) — **son afirmaciones sobre el estado del port que necesitan el juego o contexto que no tengo.** **Lo que sí: que es sólo documentación (0 ficheros `.rs`), que aplica limpia sobre el `main` de hoy, y que las dos que se pueden medir son correctas.**
fiestorra commented 2026-12-03 10:28:22 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by fiestorra on 2026-12-03T10:28:22Z.


Y las otras cinco, comprobadas hasta donde se puede desde aquí — con una corrección mía en el camino

1. La sección de design.md que se borra («PAL stage descriptors») nombra dos ficheros, y los dos siguen existiendo:

tools/pal_stages.py        existe
tests/test_pal_stages.py   existe

Así que el borrado no deja un hueco funcional: la herramienta y su test están, y lo que se va es la prosa — que es lo correcto si la prosa vive ya en la página histórica a la que apunta la tabla nueva.

2. La tabla «Historical: before the D3D12 runtime» de docs/README.md: todos sus enlaces resuelven (y son más de cien, conté los [texto](ruta.md) del fichero). Los tres relativos a ../d3d12/docs/ también:

docs/../d3d12/docs/findings.md                       resuelve
docs/../d3d12/docs/benchmarks-4060-laptop-8gb.md     resuelve
docs/../d3d12/docs/switches.md                       resuelve

Y una corrección mía, porque en la primera pasada los marqué como rotos: mi comprobador hacía docs/ + la ruta y luego Test-Path con -replace '^\./', y con ../ ese reemplazo no aplicaba — el fichero estaba bien y el que resolvía mal era mi script. Comprobado a mano, los tres existen.

Lo que sigue sin poder verificar: las afirmaciones de contenido — si port_status.md dice la verdad sobre dónde está el port, o si port_plan.md acierta con lo que falta. Eso necesita el juego y no lo tengo. Lo que sí: que los ficheros que la PR toca existen, que la documentación que reubica no pierde sus herramientas, y que los enlaces de la tabla nueva resuelven.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7375283333 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3314#issuecomment-7375283333). Originally posted by [fiestorra](https://github.com/fiestorra) on 2026-12-03T10:28:22Z. --- **Y las otras cinco, comprobadas hasta donde se puede desde aquí — con una corrección mía en el camino** **1. La sección de `design.md` que se borra («PAL stage descriptors») nombra dos ficheros, y los dos siguen existiendo**: ``` tools/pal_stages.py existe tests/test_pal_stages.py existe ``` **Así que el borrado no deja un hueco funcional**: **la herramienta y su test están, y lo que se va es la prosa** — **que es lo correcto si la prosa vive ya en la página histórica a la que apunta la tabla nueva.** **2. La tabla «Historical: before the D3D12 runtime» de `docs/README.md`: todos sus enlaces resuelven** (**y son más de cien**, conté los `[texto](ruta.md)` del fichero). **Los tres relativos a `../d3d12/docs/` también**: ``` docs/../d3d12/docs/findings.md resuelve docs/../d3d12/docs/benchmarks-4060-laptop-8gb.md resuelve docs/../d3d12/docs/switches.md resuelve ``` **Y una corrección mía, porque en la primera pasada los marqué como rotos**: **mi comprobador hacía `docs/` + la ruta y luego `Test-Path` con `-replace '^\./'`**, **y con `../` ese reemplazo no aplicaba** — **el fichero estaba bien y el que resolvía mal era mi script.** **Comprobado a mano, los tres existen.** **Lo que sigue sin poder verificar**: **las afirmaciones de contenido** — **si `port_status.md` dice la verdad sobre dónde está el port, o si `port_plan.md` acierta con lo que falta.** **Eso necesita el juego y no lo tengo.** **Lo que sí: que los ficheros que la PR toca existen, que la documentación que reubica no pierde sus herramientas, y que los enlaces de la tabla nueva resuelven.**
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!3314
No description provided.