<feed xmlns='http://www.w3.org/2005/Atom'>
<title>npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/tools/feature_scan.py, branch ci/exclude-legacy-cpp-runtime-tests</title>
<subtitle>[no description]</subtitle>
<id>https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/atom?h=ci%2Fexclude-legacy-cpp-runtime-tests</id>
<link rel='self' href='https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/atom?h=ci%2Fexclude-legacy-cpp-runtime-tests'/>
<link rel='alternate' type='text/html' href='https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/'/>
<updated>2026-11-29T18:28:18+00:00</updated>
<entry>
<title>Merge pull request #1648 from xel1uz/fix/feature-scan-atomic-out</title>
<updated>2026-11-29T18:28:18+00:00</updated>
<author>
<name>DadaCap</name>
<email>167002618+DadaCap@users.noreply.github.com</email>
</author>
<published>2026-11-29T18:28:18+00:00</published>
<link rel='alternate' type='text/html' href='https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/commit/?id=157038f7b048835bb646be795d5a62dcf26ace7a'/>
<id>urn:sha1:157038f7b048835bb646be795d5a62dcf26ace7a</id>
<content type='text'>
feature_scan: write --out atomically and keep the existing report on failure</content>
</entry>
<entry>
<title>pso_code_base_pairs: count PSOs by code-base stage (SHADER-CODEBASE-PAIRS)</title>
<updated>2026-11-26T05:04:41+00:00</updated>
<author>
<name>GTAVIB4GTAVI</name>
<email>GTAVIB4GTAVI@users.noreply.github.com</email>
</author>
<published>2026-11-24T23:11:09+00:00</published>
<link rel='alternate' type='text/html' href='https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/commit/?id=7c2de8a936897b2322caf574c991746dfe732b01'/>
<id>urn:sha1:7c2de8a936897b2322caf574c991746dfe732b01</id>
<content type='text'>
docs/d3d12_vulkan.md §5.2 leaves the push-constant shape open and 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 pairing is in the executable, not in shaders.rpf. It is in shaders.rpf:
the pipeline library names a program per stage slot, and a stage's resource-layout blob ends with the HASH
digest of the container its code came from, so a stage joins to that program's `uses_code_base` in the
translation index through the container shader_carve.py carved.

The new tool reads the library, as an archive or as a saved library, joins
PSO -&gt; stage slot -&gt; program -&gt; digest -&gt; carved container -&gt; spirv/index.json row, and prints counts only:
graphics PSOs by the number of code-base stages, those stages, the stage slots, the per-stage program counts
and the records it could not resolve. --out writes the same counts as JSON and refuses to name one of its own
inputs.

Measured on Xbox 1.0.2.1 (library 0x65F41EDD 930.048.020, 25,471 graphics records): no PSO has two code-base
stages. 25,027 have none and 444 exactly one - 343 MS, 60 PS, 41 VS - in a corpus of 13,383 VS+PS, 10,726
MS+PS, 1,336 MS, 24 VS and 2 VS+PS+slot 6; 21 records stay unknown because a stage's program is not in the
carve output. Its per-stage program counts (38 VS, 46 PS, 260 MS, 263 CS) are lower than the corpus's own
54 / 93 / 266 / 263: the library holds a second compiled form of 6,522 carved shaders and a program can serve
two slots.

So one 144-byte block with one code base at dwords 34-35 is enough for this package, and the runtime's refusal
of a pair where both stages read it can stand. docs/d3d12_vulkan.md §5.2 and its question 14, docs/boot.md
row 14 and docs/shader_library.md §4 and §6 say so; the stale pairing line in feature_scan.py's header is
corrected, and shader_library.py's header now says slot 6 is used by the 2 records that also have VS and PS.

tests/test_pso_code_base_pairs.py builds the library, the carve folder and both translation-index shapes from
bytes: 9 tests, no game data. The tool's __main__ block sets errors="replace" on stdout like every other tool,
which tests/test_tool_stdout_encoding.py checks. Also run: compileall, scripts/check_no_game_data.py,
test_shader_library.py (21) and test_text_write_line_endings.py (3). Whole-suite comparison, `python -I
scripts/run_semantic_tests.py tests -j 4` on Windows 11: plain 89d7dfcf5 reports 522 files, 8,099 tests, 42 files
failed; with this commit 523 files, 8,108 tests, 42 files failed - the two lists differ only by
test_run_wine_tests and test_build_batch_launch, which both pass alone on this machine and fail under -j 4 on a
loaded box. Those 42 are unchanged by this commit: 30 are pytest-based files that `python -I` cannot import and 6
more are script-style files the runner collects nothing from (ci.yml:87 runs both kinds elsewhere), plus the
Windows-only failures in test_world_names, test_bink_names, test_opus_tags, test_ci_registration and
test_mesh_alloc_single_writer. All of them are filed as findings on #14.

Claimed in the coordination issue as SHADER-CODEBASE-PAIRS (issue #14, comment 7146787349). AI-assisted.

Co-Authored-By: Claude Opus 5.5 &lt;noreply@anthropic.com&gt;
</content>
</entry>
<entry>
<title>feature_scan: write --out atomically and keep the old report on failure</title>
<updated>2026-11-25T06:58:47+00:00</updated>
<author>
<name>xel1uz</name>
<email>16402913+xel1uz@users.noreply.github.com</email>
</author>
<published>2026-11-25T06:56:53+00:00</published>
<link rel='alternate' type='text/html' href='https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/commit/?id=362b854007f09b5f0c61ea9c4829cd9f7d3b26ce'/>
<id>urn:sha1:362b854007f09b5f0c61ea9c4829cd9f7d3b26ce</id>
<content type='text'>
Write JSON to a same-directory temporary file and replace the report only after serialization succeeds. On write failure, keep the existing report and remove the temporary file; preserve the current error message and exit code.

Evidence (run from /home/hampa/work/leonida-feature-scan):

Tests:
- Original: git checkout upstream/main -- tools/feature_scan.py &amp;&amp; /home/hampa/work/.venv/bin/python -m pytest tests/test_feature_scan.py -q -&gt; rc 1; 1 failed, 15 passed. The existing report was empty instead of the 23-byte sentinel.
- Fixed: git checkout HEAD -- tools/feature_scan.py &amp;&amp; /home/hampa/work/.venv/bin/python -m pytest tests/test_feature_scan.py -q -&gt; rc 0; 16 passed.

File-size-limit reproduction (synthetic shaders only):
- Setup: mkdir -p /home/hampa/.hermes/profiles/mikuling/cache/scratch/feature-scan-ulimit1.hlUt9B/shaders/dxbc /home/hampa/.hermes/profiles/mikuling/cache/scratch/feature-scan-ulimit1.hlUt9B/out; python3 -c 'import json,sys; json.dump([{"stage":"synthetic_stage_"+str(i)+"_"+("x"*80)} for i in range(40)], open(sys.argv[1],"w"))' /home/hampa/.hermes/profiles/mikuling/cache/scratch/feature-scan-ulimit1.hlUt9B/shaders/dxbc/index.json; printf '{"previous": "sentinel report"}\\n' &gt; /home/hampa/.hermes/profiles/mikuling/cache/scratch/feature-scan-ulimit1.hlUt9B/out/report.json
- Before: bash -c 'ulimit -f 1; python3 -I -B tools/feature_scan.py "$1" --out "$2" &gt;/dev/null' _ /home/hampa/.hermes/profiles/mikuling/cache/scratch/feature-scan-ulimit1.hlUt9B/shaders /home/hampa/.hermes/profiles/mikuling/cache/scratch/feature-scan-ulimit1.hlUt9B/out/report.json -&gt; rc 2; report 32 bytes before, 1024 bytes after (old contents replaced by partial JSON).
- After: bash -c 'trap "" XFSZ; ulimit -f 1; python3 -I -B tools/feature_scan.py "$1" --out "$2" &gt;/dev/null' _ /home/hampa/.hermes/profiles/mikuling/cache/scratch/feature-scan-ulimit1.hlUt9B/shaders /home/hampa/.hermes/profiles/mikuling/cache/scratch/feature-scan-ulimit1.hlUt9B/out/report.json -&gt; rc 2; report 32 bytes before and after, with no temp file remaining.
</content>
</entry>
<entry>
<title>feature_scan: ask report_paths for the report-path guard</title>
<updated>2026-11-24T20:25:13+00:00</updated>
<author>
<name>Enea Cortese</name>
<email>148778899+breachato@users.noreply.github.com</email>
</author>
<published>2026-11-24T20:25:13+00:00</published>
<link rel='alternate' type='text/html' href='https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/commit/?id=772efbb17a90619e8135b2dda91875df9ec30593'/>
<id>urn:sha1:772efbb17a90619e8135b2dda91875df9ec30593</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Count only JSON true for SPIR-V code-base use</title>
<updated>2026-11-23T19:23:49+00:00</updated>
<author>
<name>Arkex-ai</name>
<email>279266118+Arkex-ai@users.noreply.github.com</email>
</author>
<published>2026-11-23T19:23:49+00:00</published>
<link rel='alternate' type='text/html' href='https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/commit/?id=19240dbcd3e6e22273b76a03d73bc79b3eeaa195'/>
<id>urn:sha1:19240dbcd3e6e22273b76a03d73bc79b3eeaa195</id>
<content type='text'>
</content>
</entry>
<entry>
<title>docs: point feature_scan at its --help usage line (#6542)</title>
<updated>2026-11-23T18:49:32+00:00</updated>
<author>
<name>凉开水</name>
<email>88872603+liang-kai-shui@users.noreply.github.com</email>
</author>
<published>2026-11-23T18:49:32+00:00</published>
<link rel='alternate' type='text/html' href='https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/commit/?id=50c398d9f1703a03043395fc91a6bc590350f155'/>
<id>urn:sha1:50c398d9f1703a03043395fc91a6bc590350f155</id>
<content type='text'>
Squash-merged after diff review of PR #6542</content>
</entry>
<entry>
<title>Count distinct FSSM payloads in G-buffer census cohorts (#6726)</title>
<updated>2026-11-23T16:50:58+00:00</updated>
<author>
<name>Kacper Serewiś</name>
<email>kacper@serewis.nl</email>
</author>
<published>2026-11-23T16:50:58+00:00</published>
<link rel='alternate' type='text/html' href='https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/commit/?id=775287b7da1d01516b2cdddb4166c7e7e1b063de'/>
<id>urn:sha1:775287b7da1d01516b2cdddb4166c7e7e1b063de</id>
<content type='text'>
Squash-merged after diff review of PR #6726</content>
</entry>
<entry>
<title>tools: accept UTF-8 BOM JSON inputs in ten utilities (#6779)</title>
<updated>2026-11-23T15:56:38+00:00</updated>
<author>
<name>Komarov</name>
<email>itskomarov@gmail.com</email>
</author>
<published>2026-11-23T15:56:38+00:00</published>
<link rel='alternate' type='text/html' href='https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/commit/?id=d239fd8556ba3289a2e1ddbd33db1702305ffc62'/>
<id>urn:sha1:d239fd8556ba3289a2e1ddbd33db1702305ffc62</id>
<content type='text'>
Squash-merged after diff review of PR #6779 - tools: fix BOM-prefixed JSON inputs in 10 utilities (batch 01)</content>
</entry>
<entry>
<title>Merge pull request #4579 from Lucas</title>
<updated>2026-11-23T04:16:06+00:00</updated>
<author>
<name>ItsNotRexed</name>
<email>300290919+ItsNotRexed@users.noreply.github.com</email>
</author>
<published>2026-11-23T04:16:06+00:00</published>
<link rel='alternate' type='text/html' href='https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/commit/?id=e5012d43790b477570f8b2433dc65cb9c08a7a19'/>
<id>urn:sha1:e5012d43790b477570f8b2433dc65cb9c08a7a19</id>
<content type='text'>
Co-Authored-By: Claude Opus 5.5 &lt;noreply@anthropic.com&gt;
</content>
</entry>
<entry>
<title>feature_scan: protect the corpus index from hard-linked report paths</title>
<updated>2026-11-23T03:10:27+00:00</updated>
<author>
<name>Lucas</name>
<email>71415887+check3D@users.noreply.github.com</email>
</author>
<published>2026-11-23T03:10:27+00:00</published>
<link rel='alternate' type='text/html' href='https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/commit/?id=cae4e87be303ab828020835f906adad223d7b40a'/>
<id>urn:sha1:cae4e87be303ab828020835f906adad223d7b40a</id>
<content type='text'>
</content>
</entry>
</feed>
