docs: fix stale agent rules and pages a repository audit found #3314
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3314"
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 MoonEyes on 2026-12-03T10:05:13Z.
Claim:
DOCS-STALE-AGENT-RULESin #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.
depth_bounds_pipeline_loads_and_filters_drawsas a CI-runner mismatch, butd3d12.ymlruns the fullcargo testand passes. The skip is gone.d3d12/docs/switches.md:4said "No CI job keeps it up to date".tests/test_d3d12_switches.py:174runs--checkon the real page in the requiredcheckjob, so a stale page does fail CI. Fixed in the generator (tools/d3d12_switches.py) and in the page, which still matches (--checkexit 0).## PAL stage descriptorssection appeared twice, byte for byte (lines 694 and 710). The second copy is removed.docs/port_status.mdanddocs/port_plan.mddescribe the Vulkanruntime/base andvictory/, which no longer exists, and were listed under "Start here". They now carry a "Historical" banner pointing tod3d12/README.md, and the index lists them under a historical heading.Tested
tests/test_d3d12_switches.py, all 14tests/test_docs_*.py,tests/test_design_contract_rows.pyandtests/test_text_write_line_endings.pywithpython -I: all OK.python -I tools/d3d12_switches.py --check d3d12/docs/switches.md: exit 0.scripts/check_no_game_data.pyon the changed files: clean.AI-assisted (Claude Code, Claude Opus 5.5). Independent review: a separate Claude Opus 5.5 agent, ACCEPTE.
🤖 Generated with Claude Code
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
fb80a4admerged intod9b618f1, I deliberately changed the Kind cell ofLEONIDA_LOGwhile preserving the name and row counts. The direct--checkand all 20 tests intest_d3d12_switches.pystill passed. After also merging #3308 locally, the same stale cell made--checkexit 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.
Imported from ubiquitarianism/leonida. Originally posted by lixonik on 2026-12-03T10:11:44Z.
Windows 10 native check + one
AGENTS.mdnote on headfb80a4adc(merged cleanly ontomaind9b618f10):python -I scripts/check_no_game_data.py-- PASSpython -I tools/d3d12_switches.py --check d3d12/docs/switches.md-- PASSpython -I tests/test_d3d12_switches.py -v-- 20/20 OK-- --skip depth_bounds_pipeline_loads_and_filters_drawsfromAGENTS.md:d3d12.ymlpasses becausewindows-latestis Windows 11 (inbox D3D12 supports SM 6.6 root signature flags). On Windows 10,cargo test --workspace --exclude xtask --lockedonmain(d9b618f10) still fails indepth_bounds_pipeline_loads_and_filters_draws(E_INVALIDARGon the unusedCBV_SRV_UAV_HEAP_DIRECTLY_INDEXED | SAMPLER_HEAP_DIRECTLY_INDEXEDflags, since theleonida-gputest executable does not carry Agility SDK) until #2855 lands.AGENTS.mdis great once #2855 is merged (or adding a one-line parenthetical that Windows 10 needs-- --skip depth_bounds_pipeline_loads_and_filters_drawsuntil then).AI-assisted: yes (Antigravity -- Gemini 4 Neon).
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.pyruns--check)»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
--checkes lo que lo hace un guardián y no una foto.2.
AGENTS.md: quitar-- --skip depth_bounds_pipeline_loads_and_filtereddel comando de testsCero. El test que el
--skipnombraba ya no existe, así que el--skipno 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.mdque pide un--skipinexistente y unswitches.mdque 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 elmainde hoy, y que las dos que se pueden medir son correctas.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.mdque se borra («PAL stage descriptors») nombra dos ficheros, y los dos siguen existiendo: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:Y una corrección mía, porque en la primera pasada los marqué como rotos: mi comprobador hacía
docs/+ la ruta y luegoTest-Pathcon-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.mddice la verdad sobre dónde está el port, o siport_plan.mdacierta 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.