pso_code_base_pairs: count PSOs by code-base stage (SHADER-CODEBASE-PAIRS) #1423

Merged
GTAVIB4GTAVI merged 1 commit from upstream-pr/1423 into main 2026-11-28 11:42:00 +00:00
GTAVIB4GTAVI commented 2026-11-24 23:52:09 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by GTAVIB4GTAVI on 2026-11-24T23:52:09Z.


Item: SHADER-CODEBASE-PAIRS — claimed in #14 before this PR.

The question

docs/d3d12_vulkan.md §5.2 leaves the push-constant shape open: keep one 64-bit code base at dwords 34–35 in the
144-byte block, or grow it to 168 bytes with one slot per stage, or use a per-stage buffer. It says to decide after
measuring how many real PSOs have two code-base stages. Row 14 of the docs/boot.md checklist asks the same thing,
and tools/feature_scan.py's header says the package cannot answer it: "Which stages are paired in one PSO is in the
executable, not in shaders.rpf."

It can. The pipeline library in shaders.rpf's zlib part names a program per stage slot for all 25,471 graphics
records (tools/shader_library.py), and a stage's resource-layout blob ends with the 16-byte HASH digest of the
container its code came from — the same digest shader_carve.py leaves in every container it carved to
<work>/shaders/dxbc, whose file stem is the translation index's key. So

PSO -> stage slot -> program -> layout digest -> carved container -> spirv/index.json row

and each stage of a PSO picks up that program's uses_code_base.

Answer: none, for 1.0.2.1

Over all 25,471 graphics records of library 0x65F41EDD 930.048.020:

records
PSOs with no code-base stage 25,027
PSOs with exactly one 444
PSOs with two or more 0

The 444 are 343 MS, 60 PS, 41 VS. The stage census is 13,383 VS+PS, 10,726 MS+PS, 1,336 MS, 24 VS and 2 VS+PS+slot 6.
21 records (19 VS+PS, 2 with slot 6) are left unknown: a stage's program has no carved container in the carve output,
so its code base is unknown rather than absent. The tool's per-stage program counts (38 VS, 46 PS, 260 MS, 263 CS)
are lower than the corpus's published 54 / 93 / 266 / 263 of 26,503 because the library holds a second compiled form
of 6,522 carved shaders and one program can serve two stage slots; the corpus counts are reproduced by
tools/feature_scan.py unchanged, so the join sees the same shaders.

So the 144-byte block with one code base is enough for this package, and the runtime's refusal of a PSO whose two
stages both read it (section 3.2) can stay. The docs say that now, the stale feature_scan.py header line is
corrected, and tools/shader_library.py's header note about slot 6 matches the measured 2 records (both with VS+PS).

Tool

tools/pso_code_base_pairs.py (standard library only, python -I), counts only — no shader name, listing, code or
data leaves the work folder:

python -I tools/pso_code_base_pairs.py <work>/shaders --library <package>/shaders.rpf [--out pairs.json]

Accepts the archive or a library saved with tools/shader_library.py --save; reads both spirv/index.json shapes
(an object keyed by container stem, or a list of rows keyed by their own file/name); a container carved under two
stems counts as code-base if either row does; --out refuses to name one of its own inputs (report_paths).

Testing

No GPU and nothing online. On Windows 10 Pro 22H2 (19045), Python 3.12.10, 16 cores, an RTX 2080 Ti that this change never touches:

  • python -I tests/test_pso_code_base_pairs.py — 9 tests, OK. The library, the carve folder and both index shapes are
    built from bytes with the builders in tests/test_shader_library.py: a VS+PS record with both stages on a code
    base, an MS+PS record with only the PS, an unresolved record, a container carved twice, list- and map-shaped
    indexes, archive and saved-library inputs, that the report names no shader, the --out guard and a missing folder.
  • python -I tests/test_shader_library.py (21) and python -I tests/test_text_write_line_endings.py (3) — OK.
  • python -m compileall -q tools tests, and python -I scripts/check_no_game_data.py on every file in the commit —
    clean.
  • The whole tests/ tree through the runner, python -I scripts/run_semantic_tests.py tests -j 4, at 89d7dfcf5:
    plain reports 522 files, 8,099 tests, 42 files failed; with this commit 523 files, 8,108 tests, 42 files failed. The
    two failed lists differ only by test_run_wine_tests and test_build_batch_launch, which pass alone here and fail
    under -j 4 on a loaded machine. The 42 are not touched by this commit: 30 are pytest-based files python -I
    cannot import, 6 more are script-style files the runner collects nothing from (ci.yml:87 sends both kinds to the
    pytest job), and the rest are the Windows-only failures I filed as findings on #14. Rebased onto 6fe83805a after
    that; the re-run goes in a comment below.
  • The real run above is the end-to-end check: 25,471 records, 26,503 index rows, 0 unreadable carve errors.

AI-assisted. Counts only, no game data, per the coordination issue's rules.

<!-- greyfinch-sync:ubiquitarianism/leonida:issue:5482362033 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/1423). Originally posted by [GTAVIB4GTAVI](https://github.com/GTAVIB4GTAVI) on 2026-11-24T23:52:09Z. --- Item: SHADER-CODEBASE-PAIRS — claimed in [#14](https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7146787349) before this PR. ## The question `docs/d3d12_vulkan.md` §5.2 leaves the push-constant shape open: keep one 64-bit code base at dwords 34–35 in the 144-byte block, or grow it to 168 bytes with one slot per stage, or use a per-stage buffer. It says to decide after measuring how many real PSOs have two code-base stages. Row 14 of the `docs/boot.md` checklist asks the same thing, and `tools/feature_scan.py`'s header says the package cannot answer it: "Which stages are paired in one PSO is in the executable, not in `shaders.rpf`." It can. The pipeline library in `shaders.rpf`'s zlib part names a program per stage slot for all 25,471 graphics records (`tools/shader_library.py`), and a stage's resource-layout blob ends with the 16-byte `HASH` digest of the container its code came from — the same digest `shader_carve.py` leaves in every container it carved to `<work>/shaders/dxbc`, whose file stem is the translation index's key. So PSO -> stage slot -> program -> layout digest -> carved container -> spirv/index.json row and each stage of a PSO picks up that program's `uses_code_base`. ## Answer: none, for 1.0.2.1 Over all 25,471 graphics records of library `0x65F41EDD` 930.048.020: | | records | |---|---:| | PSOs with no code-base stage | 25,027 | | PSOs with exactly one | 444 | | **PSOs with two or more** | **0** | The 444 are 343 MS, 60 PS, 41 VS. The stage census is 13,383 VS+PS, 10,726 MS+PS, 1,336 MS, 24 VS and 2 VS+PS+slot 6. 21 records (19 VS+PS, 2 with slot 6) are left unknown: a stage's program has no carved container in the carve output, so its code base is unknown rather than absent. The tool's per-stage program counts (38 VS, 46 PS, 260 MS, 263 CS) are lower than the corpus's published 54 / 93 / 266 / 263 of 26,503 because the library holds a second compiled form of 6,522 carved shaders and one program can serve two stage slots; the corpus counts are reproduced by `tools/feature_scan.py` unchanged, so the join sees the same shaders. So the 144-byte block with one code base is enough for this package, and the runtime's refusal of a PSO whose two stages both read it (section 3.2) can stay. The docs say that now, the stale `feature_scan.py` header line is corrected, and `tools/shader_library.py`'s header note about slot 6 matches the measured 2 records (both with VS+PS). ## Tool `tools/pso_code_base_pairs.py` (standard library only, `python -I`), counts only — no shader name, listing, code or data leaves the work folder: ``` python -I tools/pso_code_base_pairs.py <work>/shaders --library <package>/shaders.rpf [--out pairs.json] ``` Accepts the archive or a library saved with `tools/shader_library.py --save`; reads both `spirv/index.json` shapes (an object keyed by container stem, or a list of rows keyed by their own `file`/`name`); a container carved under two stems counts as code-base if either row does; `--out` refuses to name one of its own inputs (`report_paths`). ## Testing No GPU and nothing online. On Windows 10 Pro 22H2 (19045), Python 3.12.10, 16 cores, an RTX 2080 Ti that this change never touches: - `python -I tests/test_pso_code_base_pairs.py` — 9 tests, OK. The library, the carve folder and both index shapes are built from bytes with the builders in `tests/test_shader_library.py`: a VS+PS record with both stages on a code base, an MS+PS record with only the PS, an unresolved record, a container carved twice, list- and map-shaped indexes, archive and saved-library inputs, that the report names no shader, the `--out` guard and a missing folder. - `python -I tests/test_shader_library.py` (21) and `python -I tests/test_text_write_line_endings.py` (3) — OK. - `python -m compileall -q tools tests`, and `python -I scripts/check_no_game_data.py` on every file in the commit — clean. - The whole `tests/` tree through the runner, `python -I scripts/run_semantic_tests.py tests -j 4`, at `89d7dfcf5`: plain reports 522 files, 8,099 tests, 42 files failed; with this commit 523 files, 8,108 tests, 42 files failed. The two failed lists differ only by `test_run_wine_tests` and `test_build_batch_launch`, which pass alone here and fail under `-j 4` on a loaded machine. The 42 are not touched by this commit: 30 are pytest-based files `python -I` cannot import, 6 more are script-style files the runner collects nothing from (`ci.yml:87` sends both kinds to the pytest job), and the rest are the Windows-only failures I filed as findings on #14. Rebased onto `6fe83805a` after that; the re-run goes in a comment below. - The real run above is the end-to-end check: 25,471 records, 26,503 index rows, 0 unreadable carve errors. AI-assisted. Counts only, no game data, per the coordination issue's rules.
GTAVIB4GTAVI commented 2026-11-25 00:05:05 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by GTAVIB4GTAVI on 2026-11-25T00:05:05Z.


Re-run on the rebased head (230be6c59, base 6fe83805a), same machine, same command:

python -I scripts/run_semantic_tests.py tests -j 4
528 files, 8,162 tests, 41 files failed in 721 s with 4 jobs

The failed set is the pre-existing one, unchanged by this commit: 30 files python -I cannot import pytest in,
6 script-style files the runner collects nothing from, test_mesh_alloc_single_writer (relative sys.path insert),
and test_run_wine_tests, which passes alone (72 tests) and fails under -j 4 on a loaded box — filed as findings
on #14. test_ci_registration is
green here because the rebase picked up fd0a53907; the file count is 528 rather than 523 because main has 5 more
test files than the 89d7dfcf5 this was first measured against.

python -I tests/test_pso_code_base_pairs.py (9), python -I tests/test_shader_library.py (21),
python -I tests/test_text_write_line_endings.py (3), python -I tests/test_tool_stdout_encoding.py (4) and
python -m compileall -q tools tests make_game.py are all green at this head.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7148120359 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/1423#issuecomment-7148120359). Originally posted by [GTAVIB4GTAVI](https://github.com/GTAVIB4GTAVI) on 2026-11-25T00:05:05Z. --- Re-run on the rebased head (`230be6c59`, base `6fe83805a`), same machine, same command: ``` python -I scripts/run_semantic_tests.py tests -j 4 528 files, 8,162 tests, 41 files failed in 721 s with 4 jobs ``` The failed set is the pre-existing one, unchanged by this commit: 30 files `python -I` cannot import pytest in, 6 script-style files the runner collects nothing from, `test_mesh_alloc_single_writer` (relative `sys.path` insert), and `test_run_wine_tests`, which passes alone (72 tests) and fails under `-j 4` on a loaded box — filed as findings on [#14](https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7147794650). `test_ci_registration` is green here because the rebase picked up `fd0a53907`; the file count is 528 rather than 523 because main has 5 more test files than the `89d7dfcf5` this was first measured against. `python -I tests/test_pso_code_base_pairs.py` (9), `python -I tests/test_shader_library.py` (21), `python -I tests/test_text_write_line_endings.py` (3), `python -I tests/test_tool_stdout_encoding.py` (4) and `python -m compileall -q tools tests make_game.py` are all green at this head.
GeorgiyDemo commented 2026-11-25 00:05:09 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by GeorgiyDemo on 2026-11-25T00:05:09Z.


Tested 230be6c59 on Apple M5 Pro (16-core GPU), macOS 26.7.3 (25G342), against main 364ab4eab (Python tooling; no GPU or game data):

  • python3 -I tests/test_pso_code_base_pairs.py: 9/9 OK at this head (0.2 s; the fixtures build the pipeline library, containers and index synthetically, as the test header says).
  • python3 -m compileall -q tools/pso_code_base_pairs.py tools/shader_library.py tools/feature_scan.py tests/test_pso_code_base_pairs.py: exit 0.
  • No baseline on main: tools/pso_code_base_pairs.py does not exist there, so the test fails at import. I did not run the real shaders.rpf scan, only the synthetic tests.

AI-assisted; synthetic fixtures only, no game data.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7148121907 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/1423#issuecomment-7148121907). Originally posted by [GeorgiyDemo](https://github.com/GeorgiyDemo) on 2026-11-25T00:05:09Z. --- Tested `230be6c59` on Apple M5 Pro (16-core GPU), macOS 26.7.3 (25G342), against `main` `364ab4eab` (Python tooling; no GPU or game data): - `python3 -I tests/test_pso_code_base_pairs.py`: **9/9 OK** at this head (0.2 s; the fixtures build the pipeline library, containers and index synthetically, as the test header says). - `python3 -m compileall -q tools/pso_code_base_pairs.py tools/shader_library.py tools/feature_scan.py tests/test_pso_code_base_pairs.py`: exit 0. - No baseline on `main`: `tools/pso_code_base_pairs.py` does not exist there, so the test fails at import. I did not run the real `shaders.rpf` scan, only the synthetic tests. AI-assisted; synthetic fixtures only, no game data.
GTAVIB4GTAVI commented 2026-11-25 00:06:28 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by GTAVIB4GTAVI on 2026-11-25T00:06:28Z.


Rebased onto 1154976d4 (main now), head e17069dec; the rebase is clean and the measured lines in §5.2 and boot row 14 are intact. Nothing in the 19 commits since the previous base touches tools/pso_code_base_pairs.py, tools/shader_library.py, tools/feature_scan.py or docs/shader_library.md; docs/d3d12_vulkan.md moved in the resource-heap and query sections, well above §5.2.

tests/test_pso_code_base_pairs.py (9), tests/test_tool_stdout_encoding.py (4) and scripts/check_no_game_data.py on all seven files are green at the new head; the whole-tree run at this base follows in a comment below.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7148146232 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/1423#issuecomment-7148146232). Originally posted by [GTAVIB4GTAVI](https://github.com/GTAVIB4GTAVI) on 2026-11-25T00:06:28Z. --- Rebased onto `1154976d4` (main now), head `e17069dec`; the rebase is clean and the measured lines in §5.2 and boot row 14 are intact. Nothing in the 19 commits since the previous base touches `tools/pso_code_base_pairs.py`, `tools/shader_library.py`, `tools/feature_scan.py` or `docs/shader_library.md`; `docs/d3d12_vulkan.md` moved in the resource-heap and query sections, well above §5.2. `tests/test_pso_code_base_pairs.py` (9), `tests/test_tool_stdout_encoding.py` (4) and `scripts/check_no_game_data.py` on all seven files are green at the new head; the whole-tree run at this base follows in a comment below.
GTAVIB4GTAVI commented 2026-11-25 00:24:12 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by GTAVIB4GTAVI on 2026-11-25T00:24:12Z.


@mumogg rebased since the "stale" review — ready for another look. (No permission to re-request the review from this account, so: this comment is the ping.)

head:  e17069dec   (pushed 2026-11-24 19:06 local, after the review)
base:  1154976d4   (main, 19 commits ahead of the previous base)
mergeable: true    files: 7   +398/-11   new files: tools/pso_code_base_pairs.py, tests/test_pso_code_base_pairs.py

What the rebase touched: nothing of mine. docs/d3d12_vulkan.md moved in the resource-heap and query sections above
§5.2, and the rebase was clean; §5.2 and docs/boot.md row 14 still carry the measured count. tools/pso_code_base_pairs.py,
tools/shader_library.py, tools/feature_scan.py and docs/shader_library.md are untouched upstream.

Checked at this head on Windows 10 Pro 22H2 (19045) / Python 3.12.10, no GPU, no game data in the commit:
tests/test_pso_code_base_pairs.py 9 OK, tests/test_tool_stdout_encoding.py 4 OK, tests/test_shader_library.py
21 OK, tests/test_text_write_line_endings.py 3 OK, compileall -q tools tests make_game.py exit 0,
scripts/check_no_game_data.py on all seven files clean. Whole-tree run_semantic_tests.py tests -j 4 numbers for
this base are in the next comment; the failed set is the pre-existing 41 (30 pytest-import files, 6 script-style
files, 5 Windows-only), none of them touched here.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7148472815 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/1423#issuecomment-7148472815). Originally posted by [GTAVIB4GTAVI](https://github.com/GTAVIB4GTAVI) on 2026-11-25T00:24:12Z. --- @mumogg rebased since the "stale" review — ready for another look. (No permission to re-request the review from this account, so: this comment is the ping.) ``` head: e17069dec (pushed 2026-11-24 19:06 local, after the review) base: 1154976d4 (main, 19 commits ahead of the previous base) mergeable: true files: 7 +398/-11 new files: tools/pso_code_base_pairs.py, tests/test_pso_code_base_pairs.py ``` What the rebase touched: nothing of mine. `docs/d3d12_vulkan.md` moved in the resource-heap and query sections above §5.2, and the rebase was clean; §5.2 and `docs/boot.md` row 14 still carry the measured count. `tools/pso_code_base_pairs.py`, `tools/shader_library.py`, `tools/feature_scan.py` and `docs/shader_library.md` are untouched upstream. Checked at this head on Windows 10 Pro 22H2 (19045) / Python 3.12.10, no GPU, no game data in the commit: `tests/test_pso_code_base_pairs.py` 9 OK, `tests/test_tool_stdout_encoding.py` 4 OK, `tests/test_shader_library.py` 21 OK, `tests/test_text_write_line_endings.py` 3 OK, `compileall -q tools tests make_game.py` exit 0, `scripts/check_no_game_data.py` on all seven files clean. Whole-tree `run_semantic_tests.py tests -j 4` numbers for this base are in the next comment; the failed set is the pre-existing 41 (30 pytest-import files, 6 script-style files, 5 Windows-only), none of them touched here.
GTAVIB4GTAVI commented 2026-11-25 01:07:36 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by GTAVIB4GTAVI on 2026-11-25T01:07:36Z.


Whole-tree run at this base, both trees, same box (Windows 10 Pro 22H2 build 19045, Python 3.12.10, 16 cores), same command, back to back:

                          files  tests  failed
main  1154976d4            527   8,153     41     setup/base3_tests.log
head  e17069dec (this)     528   8,162     42     setup/head3_tests.log
       python -I scripts/run_semantic_tests.py tests -j 4

+1 file and +9 tests are tools/pso_code_base_pairs.py and tests/test_pso_code_base_pairs.py. The two failed lists
differ by one name, test_build_batch_launch, which is the third file of
the load-sensitivity finding: it
passes alone here (Ran 2 tests, 10 s) and fails under -j 4 while a 16-thread vk_pipeline_check was running; it
passed in the other two runs on this box. Everything else in the 41 predates this branch and is filed on #14: 30
pytest-based files python -I cannot import pytest in, 6 script-style files the runner collects nothing from
(ci.yml:87 sends both kinds to the pytest job), test_mesh_alloc_single_writer (relative sys.path.insert(0, 'tools')), test_world_names / test_bink_names / test_opus_tags (PermissionError repr), and
test_run_wine_tests (same load finding).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7149231953 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/1423#issuecomment-7149231953). Originally posted by [GTAVIB4GTAVI](https://github.com/GTAVIB4GTAVI) on 2026-11-25T01:07:36Z. --- Whole-tree run at this base, both trees, same box (Windows 10 Pro 22H2 build 19045, Python 3.12.10, 16 cores), same command, back to back: ``` files tests failed main 1154976d4 527 8,153 41 setup/base3_tests.log head e17069dec (this) 528 8,162 42 setup/head3_tests.log python -I scripts/run_semantic_tests.py tests -j 4 ``` +1 file and +9 tests are `tools/pso_code_base_pairs.py` and `tests/test_pso_code_base_pairs.py`. The two failed lists differ by one name, `test_build_batch_launch`, which is the third file of [the load-sensitivity finding](https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7147794650): it passes alone here (`Ran 2 tests`, 10 s) and fails under `-j 4` while a 16-thread `vk_pipeline_check` was running; it passed in the other two runs on this box. Everything else in the 41 predates this branch and is filed on #14: 30 pytest-based files `python -I` cannot import pytest in, 6 script-style files the runner collects nothing from (`ci.yml:87` sends both kinds to the pytest job), `test_mesh_alloc_single_writer` (relative `sys.path.insert(0, 'tools')`), `test_world_names` / `test_bink_names` / `test_opus_tags` (`PermissionError` repr), and `test_run_wine_tests` (same load finding).
GTAVIB4GTAVI commented 2026-11-25 01:09:36 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by GTAVIB4GTAVI on 2026-11-25T01:09:36Z.


Heads-up for whoever picks this up: CI has not run on this PR. check-runs on e17069dec is 0 and the commit
status is pending — first-time-contributor workflows sit until someone with Actions access approves the run, so a
reviewer waiting for green checks will wait forever. Nothing here depends on them: the suite numbers, compileall,
and scripts/check_no_game_data.py results for this head are in the three comments above, and
tests/test_pso_code_base_pairs.py builds its pipeline library, containers and index by hand, so it needs no GPU, no
game files and no CI.

head  e17069dec   base 1154976d4   mergeable true   7 files +398/-11
check-runs: 0     status: pending   requested_reviewers: none   reviews: none
<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7149265663 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/1423#issuecomment-7149265663). Originally posted by [GTAVIB4GTAVI](https://github.com/GTAVIB4GTAVI) on 2026-11-25T01:09:36Z. --- Heads-up for whoever picks this up: **CI has not run on this PR.** `check-runs` on `e17069dec` is 0 and the commit status is `pending` — first-time-contributor workflows sit until someone with Actions access approves the run, so a reviewer waiting for green checks will wait forever. Nothing here depends on them: the suite numbers, `compileall`, and `scripts/check_no_game_data.py` results for this head are in the three comments above, and `tests/test_pso_code_base_pairs.py` builds its pipeline library, containers and index by hand, so it needs no GPU, no game files and no CI. ``` head e17069dec base 1154976d4 mergeable true 7 files +398/-11 check-runs: 0 status: pending requested_reviewers: none reviews: none ```
GTAVIB4GTAVI commented 2026-11-26 05:34:52 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by GTAVIB4GTAVI on 2026-11-26T05:34:52Z.


Rebased onto main a73a57e13 (was e17069dec, 828 commits back). One conflict, in docs/shader_library.md: main added a --compute-hashes bullet where this PR adds the pso_code_base_pairs.py bullet, so both are kept. tests/test_pso_code_base_pairs.py re-run after the rebase: 9 tests, 0 failures. Nothing else changed.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7183615966 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/1423#issuecomment-7183615966). Originally posted by [GTAVIB4GTAVI](https://github.com/GTAVIB4GTAVI) on 2026-11-26T05:34:52Z. --- Rebased onto `main` `a73a57e13` (was `e17069dec`, 828 commits back). One conflict, in `docs/shader_library.md`: `main` added a `--compute-hashes` bullet where this PR adds the `pso_code_base_pairs.py` bullet, so both are kept. `tests/test_pso_code_base_pairs.py` re-run after the rebase: 9 tests, 0 failures. Nothing else changed.
sodove commented 2026-11-28 11:26:32 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by sodove on 2026-11-28T11:26:32Z.


#1423 | head 7c2de8a936897b2322caf574c991746dfe732b01 | python3 -I tests/test_pso_code_base_pairs.py -v | red: import error (pso_code_base_pairs absent, 0 tests ran) | green: 9 passed | Import-only baseline → pass

The new pso_code_base_pairs tool was absent on main, so the baseline stopped at import. The nine synthetic code-base pairing and CLI tests passed after merging.

Copied the PR tests onto clean main 4a54aedcb6b66525e0c9f72a6ea10263337c9141 for the baseline, then merged that main into the recorded PR head and reran those files. Ubuntu 26.04.1 (WSL2), Python 3.14.4. Unittest failure/error counts include subtests where applicable. AI-assisted with OpenAI Codex. Batch claim.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7238553835 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/1423#issuecomment-7238553835). Originally posted by [sodove](https://github.com/sodove) on 2026-11-28T11:26:32Z. --- #1423 | head `7c2de8a936897b2322caf574c991746dfe732b01` | `python3 -I tests/test_pso_code_base_pairs.py -v` | red: import error (pso_code_base_pairs absent, 0 tests ran) | green: 9 passed | **Import-only baseline → pass** The new pso_code_base_pairs tool was absent on main, so the baseline stopped at import. The nine synthetic code-base pairing and CLI tests passed after merging. Copied the PR tests onto clean main `4a54aedcb6b66525e0c9f72a6ea10263337c9141` for the baseline, then merged that main into the recorded PR head and reran those files. Ubuntu 26.04.1 (WSL2), Python 3.14.4. Unittest failure/error counts include subtests where applicable. AI-assisted with OpenAI Codex. [Batch claim](https://github.com/ProjectLeonida/mandy/issues/2570#issuecomment-7238450840).
DadaCap commented 2026-11-28 11:42:02 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by DadaCap on 2026-11-28T11:42:02Z.


Merged, thank you @GTAVIB4GTAVI! This PR (pso_code_base_pairs: count PSOs by code-base stage (SHADER-CODEBASE-PAIRS)) passed its own tests with main merged in during sodove's verification of this shader batch, so it went in with the batch.

AI-assisted (Claude Code, Claude Opus 5.5), posted for the maintainers.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7238724380 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/1423#issuecomment-7238724380). Originally posted by [DadaCap](https://github.com/DadaCap) on 2026-11-28T11:42:02Z. --- Merged, thank you @GTAVIB4GTAVI! This PR (pso_code_base_pairs: count PSOs by code-base stage (SHADER-CODEBASE-PAIRS)) passed its own tests with main merged in during sodove's verification of this shader batch, so it went in with the batch. AI-assisted (Claude Code, Claude Opus 5.5), posted for the maintainers.
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!1423
No description provided.