Repository navigation
render: add a composite draw witness and attribute the gl query cost - #5183
Conversation
The GL exact overflowed-tile query term is the query running in hidden fragments of coincident caster canvases. In the far-128 fixture each of the 128 casters shades the whole stack at bit-identical depth (128.0 invocations per owned sample on master, all cross-canvas), and every one of those fragments walks the record hierarchy. Forcing early fragment tests on the early source-face route, staged as a control, cuts the composite by 94%. IR_COMPOSITE_DRAW_WITNESS counts per-draw fragment-shader invocations and the samples each draw owns at composite end (an in-order depth-EQUAL stencil first-claim replay), with the counters outside the measured shaders. The controller gains a binary snapshot, an interleaved pre/post A/B, the witness and the early-tests control. Against a binary with the four-word order records reverted, they cut far-128 by 27% in Debug and Release, short of a half. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
jakildev
left a comment
There was a problem hiding this comment.
Review — render: add a composite draw witness and attribute the gl query cost
Verdict: needs-fix
The phase-0 diagnostic approach is sound, but the current head does not pass its controller suite or whitespace validation.
Needs-fix
docs/perf/sun-overflowed-tile-query/run_matrix.py:165—early_tests_bytes()rejects every non-darwin host via the process-globalBACKEND, sotest_controller.pyfails on the Linux CI/reviewer host before it can validate the OpenGL-only staging transform. Make this helper validate the supplied early-route shader independently of the host backend (keep command dispatch restricted to OpenGL), then run the controller suite cross-platform.docs/perf/sun-overflowed-tile-query/windows-opengl-mechanism/debug/pre-tree/tree.diff:31— retainedtree.diffsnapshots contain whitespace-only added lines (also lines 111 and 203, with the same three lines in the release snapshot), sogit diff --check origin/master...HEADand the requiredwhitespacecheck fail. Preserve the evidence without trailing spaces or add the appropriate tracked-artifact handling so the repository check is green.
Praise
engine/prefabs/irreden/render/composite_draw_witness.hpp::Recorderkeeps the counters outside the measured shaders and records the ownership replay separately, which matches the issue's diagnostic constraint.
Checked
- Read the complete #4935 issue thread, PR metadata, commits, comments, inline comments, diff, and retained evidence summaries.
python3 docs/perf/sun-overflowed-tile-query/test_controller.py— failed: 31 tests ran;BinaryAB.test_early_tests_control_forces_early_tests_on_the_early_route_onlyraisesStageErroron this Linux host.git diff --check origin/master...HEAD— failed on six retainedtree.diffwhitespace-only lines; this matches the failedwhitespaceGitHub check.- Remaining GitHub checks were in progress at review time.
Test plan the author should run before merge
-
python3 docs/perf/sun-overflowed-tile-query/test_controller.py -
git diff --check origin/master...HEAD
Escalation: author-agent to address, then re-request review.
🤖 Reviewed by Codex (sonnet-reviewer role)
Opus recheck required: the diagnostic changes OpenGL draw-state and pipeline-statistics behavior in the render path.
early_tests_bytes() refused every non-OpenGL host, so the controller suite failed on macOS before it could check the OpenGL-only staging transform. The transform is now host-independent and main() refuses the early-tests variant off OpenGL, with a test for each half. The retained pre-tree tree.diff snapshots carry whitespace-only added lines from the reverted source. tree.json pins their sha256, so they opt out of trailing-space checks the way docs/**/*.patch already does. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Addressed feedback:
|
Perf gateHead host slug: perf comparison: 1600afd → 3d3918b-cibaseline: host calibration
thresholds: regress ≥ 10%, improve ≥ 5% voxel cull effectiveness
frame timing (ms)
GPU frame timing (ms; separate from stage samples)
GPU stage timing (avg ms per sampled invocation)
top CPU systems by avg ms (head)
|
| pipeline | system | avg ms (base→head) |
|---|---|---|
| RENDER | SingleVoxelToCanvasFirst |
180.112 → 187.967 (+4.4%) |
| RENDER | ComputeLightVolume |
24.096 → 25.002 (+3.8%) |
| RENDER | ComputeSunShadow |
12.907 → 13.808 (+7.0%) |
| RENDER | CanvasToFramebuffer |
11.391 → 11.971 (+5.1%) |
| RENDER | BakeSunShadowMap |
6.815 → 6.787 (-0.4%) |
| UPDATE | FogRevealEval |
3.825 → 3.996 (+4.5%) |
| RENDER | LightingToTrixel |
2.605 → 2.923 (+12.2%) ⚠ |
| UPDATE | PropagateTransform |
2.917 → 2.781 (-4.7%) |
target=IRLuaPerfGrid,zoom=4,sub_mode=full,sub_base=1
| pipeline | system | avg ms (base→head) |
|---|---|---|
| RENDER | SingleVoxelToCanvasFirst |
563.873 → 587.729 (+4.2%) |
| RENDER | ComputeSunShadow |
25.516 → 27.168 (+6.5%) |
| RENDER | ComputeLightVolume |
21.208 → 22.995 (+8.4%) |
| RENDER | CanvasToFramebuffer |
10.526 → 11.174 (+6.2%) |
| RENDER | BakeSunShadowMap |
5.858 → 6.294 (+7.4%) |
| RENDER | LightingToTrixel |
5.334 → 6.085 (+14.1%) ⚠ |
| RENDER | ComputeVoxelAO |
5.546 → 5.961 (+7.5%) |
| UPDATE | FogRevealEval |
3.819 → 3.879 (+1.6%) |
target=IRPerfGrid,zoom=1,sub_mode=full,sub_base=1
| pipeline | system | avg ms (base→head) |
|---|---|---|
| RENDER | SingleVoxelToCanvasFirst |
199.623 → 205.012 (+2.7%) |
| RENDER | ComputeSunShadow |
33.508 → 34.436 (+2.8%) |
| RENDER | ComputeLightVolume |
23.367 → 24.056 (+2.9%) |
| RENDER | LightingToTrixel |
15.265 → 16.538 (+8.3%) |
| RENDER | CanvasToFramebuffer |
12.228 → 12.343 (+0.9%) |
| RENDER | BakeSunShadowMap |
8.484 → 8.886 (+4.7%) |
| RENDER | FogToTrixel |
3.592 → 3.804 (+5.9%) |
| UPDATE | PropagateTransform |
3.740 → 3.760 (+0.5%) |
target=IRPerfGrid,zoom=4,sub_mode=full,sub_base=1
| pipeline | system | avg ms (base→head) |
|---|---|---|
| RENDER | SingleVoxelToCanvasFirst |
840.096 → 892.418 (+6.2%) |
| RENDER | ComputeSunShadow |
34.897 → 37.833 (+8.4%) |
| RENDER | ComputeLightVolume |
21.870 → 24.325 (+11.2%) ⚠ |
| RENDER | CanvasToFramebuffer |
10.803 → 11.291 (+4.5%) |
| RENDER | BakeSunShadowMap |
6.192 → 6.484 (+4.7%) |
| RENDER | LightingToTrixel |
4.541 → 5.061 (+11.5%) ⚠ |
| RENDER | ComputeVoxelAO |
4.609 → 5.030 (+9.1%) |
| UPDATE | PropagateTransform |
3.772 → 3.961 (+5.0%) |
jakildev
left a comment
There was a problem hiding this comment.
Review — render: add a composite draw witness and attribute the gl query cost
Verdict: approve
The follow-up resolves both prior blockers; the phase-0 witness remains properly isolated from the measured shaders and correctly stops before the rejected phase-1 lever.
Praise
engine/prefabs/irreden/render/composite_draw_witness.hpp::Recorderbrackets the measured draws externally, then uses a separate first-claim replay for ownership; that preserves the diagnostic premise while accounting for equal-depth ties.
Checked
- Re-read the complete #4935 issue thread, current PR metadata, commits, PR discussion, inline comments, and the changed controller, evidence summaries, and render code.
python3 docs/perf/sun-overflowed-tile-query/test_controller.py— passed: 32 tests.git diff --check origin/master...HEAD— passed.fleet-build --detach --target IRCanvasStress, terminalfleet-jobs wait— succeeded, exit 0 (macOS Metal build).linux-buildandrender-harness-testsGitHub checks are still in progress; they are unread, not treated as passing.
Test plan the author should run before merge
- Let the in-progress Linux build and render-harness checks complete successfully.
- Re-run the GL witness on its Windows target after any render-path change.
Escalation: please Opus-recheck before merge (touches: engine/render and composite draw-state diagnostics).
🤖 Reviewed by Codex (sonnet-reviewer role)
Opus recheck required: the GL-only pipeline-statistics and stencil replay changes need final review on their native render path.
Perf gateHead host slug: perf comparison: b309c9f → 0e501ca-cibaseline: host calibration
thresholds: regress ≥ 10%, improve ≥ 5% voxel cull effectiveness
frame timing (ms)
GPU frame timing (ms; separate from stage samples)
GPU stage timing (avg ms per sampled invocation)
top CPU systems by avg ms (head)
|
| pipeline | system | avg ms (base→head) |
|---|---|---|
| RENDER | SingleVoxelToCanvasFirst |
221.593 → 212.951 (-3.9%) |
| RENDER | ComputeLightVolume |
26.250 → 24.577 (-6.4%) ↓ |
| RENDER | CanvasToFramebuffer |
14.773 → 14.227 (-3.7%) |
| RENDER | ComputeSunShadow |
13.119 → 12.612 (-3.9%) |
| UPDATE | FogRevealEval |
8.618 → 7.712 (-10.5%) ↓ |
| RENDER | BakeSunShadowMap |
6.145 → 5.635 (-8.3%) ↓ |
| UPDATE | PropagateTransform |
3.668 → 3.691 (+0.6%) |
| UPDATE | LuaWaveStateToOffset |
3.274 → 2.947 (-10.0%) ↓ |
target=IRLuaPerfGrid,zoom=4,sub_mode=full,sub_base=1
| pipeline | system | avg ms (base→head) |
|---|---|---|
| RENDER | SingleVoxelToCanvasFirst |
729.250 → 719.996 (-1.3%) |
| RENDER | ComputeSunShadow |
26.492 → 25.800 (-2.6%) |
| RENDER | ComputeLightVolume |
22.641 → 22.706 (+0.3%) |
| RENDER | CanvasToFramebuffer |
14.167 → 13.687 (-3.4%) |
| UPDATE | FogRevealEval |
7.354 → 7.198 (-2.1%) |
| RENDER | ComputeVoxelAO |
6.886 → 6.843 (-0.6%) |
| RENDER | BakeSunShadowMap |
5.002 → 5.266 (+5.3%) |
| RENDER | LightingToTrixel |
5.192 → 5.025 (-3.2%) |
target=IRPerfGrid,zoom=1,sub_mode=full,sub_base=1
| pipeline | system | avg ms (base→head) |
|---|---|---|
| RENDER | SingleVoxelToCanvasFirst |
235.817 → 235.366 (-0.2%) |
| RENDER | ComputeSunShadow |
34.222 → 35.026 (+2.3%) |
| RENDER | ComputeLightVolume |
23.624 → 24.562 (+4.0%) |
| RENDER | LightingToTrixel |
18.734 → 19.024 (+1.5%) |
| RENDER | CanvasToFramebuffer |
14.799 → 14.648 (-1.0%) |
| RENDER | BakeSunShadowMap |
8.113 → 8.157 (+0.5%) |
| UPDATE | FogRevealEval |
7.265 → 7.078 (-2.6%) |
| UPDATE | PropagateTransform |
4.769 → 4.782 (+0.3%) |
target=IRPerfGrid,zoom=4,sub_mode=full,sub_base=1
| pipeline | system | avg ms (base→head) |
|---|---|---|
| RENDER | SingleVoxelToCanvasFirst |
1101.999 → 1091.112 (-1.0%) |
| RENDER | ComputeSunShadow |
34.622 → 34.191 (-1.2%) |
| RENDER | ComputeLightVolume |
24.498 → 24.559 (+0.2%) |
| RENDER | CanvasToFramebuffer |
13.496 → 13.528 (+0.2%) |
| UPDATE | FogRevealEval |
7.735 → 7.315 (-5.4%) ↓ |
| RENDER | ComputeVoxelAO |
5.662 → 5.538 (-2.2%) |
| RENDER | BakeSunShadowMap |
5.175 → 5.208 (+0.6%) |
| UPDATE | PropagateTransform |
4.747 → 4.746 (-0.0%) |
jakildev
left a comment
There was a problem hiding this comment.
Review — render: add a composite draw witness and attribute the gl query cost
Verdict: needs-fix
Sonnet flagged the GL-only pipeline-statistics and stencil replay. On closer read, I confirm that the replay preserves the measured draws, reconstructs first-owner ties against final depth, and correctly stops before the refuted phase-1 lever; the retained pre-tree provenance is not self-consistent, however.
Needs-fix
docs/perf/sun-overflowed-tile-query/run_matrix.py::snapshot/tree_provenance—snapshot()writes a terminal newline totree.diffbut recordsdiff_sha256from the pre-newline string. Both committed pre-tree records therefore claim4181baea…, while the exact committed Debug and Releasetree.diffbytes hash tof446b190….tree_provenance()then checks only the binary hash and never verifies the recorded diff or shader-directory hash, so the retained snapshot cannot enforce the reverted source/shader identity it says it pins. Hash the bytes actually written, verify the recorded diff, shader directory, and build type when reopening a pre tree, update both retained records, and add a mutation test that proves each mismatch is rejected.
Praise
engine/prefabs/irreden/render/composite_draw_witness.hpp::Recorderkeeps statistics outside the measured shaders, and the depth-EQUAL/stencil first-claim replay correctly reproduces the first winner under the productionLESStie rule.
Checked
- Read the complete #4935 issue thread, both Sonnet reviews, the author response, current PR discussion, inline-comment set, commits, relevant module/rule docs, implementation, controller, and retained summaries.
python3 docs/perf/sun-overflowed-tile-query/test_controller.py— passed: 32 tests.git diff --check origin/master...HEAD— passed.- Independently SHA-256 checked both committed pre-tree diffs: recorded
4181baea…; exact bytesf446b190…in both Debug and Release. - Current head remains
76eb0556b4f41e563f974332c014494993d62f42; render-harness, perf, format, header, and whitespace checks pass.linux-buildis still in progress and is unread, not treated as passing.
Test plan the author should run before merge
- Add snapshot-provenance positive controls, then rerun
python3 docs/perf/sun-overflowed-tile-query/test_controller.py. - Recompute and verify both committed
tree.diffhashes from their exact bytes. - Let
linux-buildcomplete successfully.
🤖 Reviewed by Codex GPT-5 (opus-reviewer role; review-pr skill)
`snapshot` hashed the revert diff before appending the final newline it wrote, and wrote it in text mode, so on Windows `tree.diff` carried CRLF bytes that matched neither its record nor the committed copy. Write the exact bytes and hash those. Reopening a pre tree now checks its recorded build type, binary, diff and shader-directory hashes, not only the binary. The two retained `tree.json` records now carry `f446b190…`, the hash of their committed `tree.diff`. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Addressed feedback:
|
jakildev
left a comment
There was a problem hiding this comment.
Review — render: add a composite draw witness and attribute the gl query cost
Verdict: approve
The current delta resolves the retained-snapshot integrity defect and keeps the diagnostic isolated from the measured shader path.
Praise
docs/perf/sun-overflowed-tile-query/run_matrix.py::snapshotnow records the exacttree.diffbytes it writes, whiletree_provenancechecks the binary, diff, shader set, and build type before a pre-tree is reused.engine/prefabs/irreden/render/composite_draw_witness.hpp::Recordercontinues to bracket production draws externally and replays ownership separately, preserving the measured path.
Checked
- Read the complete #4935 issue thread; PR metadata, commits, discussion, reviews, and inline-comment set; the changed render/device code, controller, and retained evidence summaries.
python3 docs/perf/sun-overflowed-tile-query/test_controller.py— passed: 35 tests.git diff --check origin/master...HEAD— passed.fleet-build --detach --target IRCanvasStress, terminalfleet-jobs wait— succeeded, exit 0 (macOS Metal build).linux-build,render-harness-tests, andperf-gateare in progress and unread, not treated as passing.- Acceptance: #5183 is a correctly scoped phase-0 prerequisite referenced by #4935, rather than completion of its superseding shipped-lever plan. The intentionally deferred GL-cut, render-verify, and Metal criteria are documented as such.
Test plan the author should run before merge
- Let the in-progress Linux build, render-harness, and perf-gate checks complete successfully.
- Re-run the GL witness on its Windows target after any composite draw-state change.
Escalation: please Opus-recheck before merge (touches: engine/render and GL pipeline-statistics / depth-stencil replay diagnostics).
🤖 Reviewed by Codex GPT-5 (sonnet-reviewer role; review-pr skill)
Opus recheck required: the GL-only pipeline-statistics and first-claim depth/stencil replay need final review on their native render path.
Perf gateHead host slug: perf comparison: 1600afd → 74e86c2-cibaseline: host calibration
thresholds: regress ≥ 10%, improve ≥ 5% voxel cull effectiveness
frame timing (ms)
GPU frame timing (ms; separate from stage samples)
GPU stage timing (avg ms per sampled invocation)
top CPU systems by avg ms (head)
|
| pipeline | system | avg ms (base→head) |
|---|---|---|
| RENDER | SingleVoxelToCanvasFirst |
180.112 → 183.885 (+2.1%) |
| RENDER | ComputeLightVolume |
24.096 → 24.794 (+2.9%) |
| RENDER | ComputeSunShadow |
12.907 → 13.430 (+4.1%) |
| RENDER | CanvasToFramebuffer |
11.391 → 11.986 (+5.2%) |
| RENDER | BakeSunShadowMap |
6.815 → 6.913 (+1.4%) |
| UPDATE | FogRevealEval |
3.825 → 3.780 (-1.2%) |
| UPDATE | PropagateTransform |
2.917 → 2.793 (-4.3%) |
| RENDER | LightingToTrixel |
2.605 → 2.643 (+1.5%) |
target=IRLuaPerfGrid,zoom=4,sub_mode=full,sub_base=1
| pipeline | system | avg ms (base→head) |
|---|---|---|
| RENDER | SingleVoxelToCanvasFirst |
563.873 → 582.095 (+3.2%) |
| RENDER | ComputeSunShadow |
25.516 → 26.346 (+3.3%) |
| RENDER | ComputeLightVolume |
21.208 → 21.652 (+2.1%) |
| RENDER | CanvasToFramebuffer |
10.526 → 10.789 (+2.5%) |
| RENDER | BakeSunShadowMap |
5.858 → 5.990 (+2.3%) |
| RENDER | ComputeVoxelAO |
5.546 → 5.925 (+6.8%) |
| RENDER | LightingToTrixel |
5.334 → 5.693 (+6.7%) |
| UPDATE | FogRevealEval |
3.819 → 3.784 (-0.9%) |
target=IRPerfGrid,zoom=1,sub_mode=full,sub_base=1
| pipeline | system | avg ms (base→head) |
|---|---|---|
| RENDER | SingleVoxelToCanvasFirst |
199.623 → 202.464 (+1.4%) |
| RENDER | ComputeSunShadow |
33.508 → 30.227 (-9.8%) ↓ |
| RENDER | ComputeLightVolume |
23.367 → 23.353 (-0.1%) |
| RENDER | LightingToTrixel |
15.265 → 14.707 (-3.7%) |
| RENDER | CanvasToFramebuffer |
12.228 → 11.919 (-2.5%) |
| RENDER | BakeSunShadowMap |
8.484 → 8.407 (-0.9%) |
| UPDATE | PropagateTransform |
3.740 → 3.804 (+1.7%) |
| RENDER | FogToTrixel |
3.592 → 3.741 (+4.1%) |
target=IRPerfGrid,zoom=4,sub_mode=full,sub_base=1
| pipeline | system | avg ms (base→head) |
|---|---|---|
| RENDER | SingleVoxelToCanvasFirst |
840.096 → 866.299 (+3.1%) |
| RENDER | ComputeSunShadow |
34.897 → 35.764 (+2.5%) |
| RENDER | ComputeLightVolume |
21.870 → 22.583 (+3.3%) |
| RENDER | CanvasToFramebuffer |
10.803 → 10.618 (-1.7%) |
| RENDER | BakeSunShadowMap |
6.192 → 5.961 (-3.7%) |
| RENDER | ComputeVoxelAO |
4.609 → 4.646 (+0.8%) |
| RENDER | LightingToTrixel |
4.541 → 4.365 (-3.9%) |
| UPDATE | PropagateTransform |
3.772 → 3.819 (+1.2%) |
jakildev
left a comment
There was a problem hiding this comment.
Opus reviewer recheck
Verdict: approve
Sonnet flagged the retained-evidence provenance mismatch and cross-host controller concerns; on closer read I confirm both are resolved at the current head. The prior Opus finding is fixed: the pre-tree snapshots are now written and hashed as exact bytes, their records pin the committed-byte hash, and the retained older run provenance is described without rewriting historical output.
Checked
- Read the complete PR and #4935 threads, reviewed the current-head delta, and traced the witness through the canvas-to-framebuffer, render-device, OpenGL query, replay, and controller paths.
- Verified both retained pre-tree
tree.difffiles hash tof446b1906f35e2a1c9ac655fe88fbf74824c9153f4c8eb48ef9b35f0e6aa94bd, matching theirtree.jsonrecords. - Ran
python3 docs/perf/sun-overflowed-tile-query/test_controller.py: 35 tests passed. - Ran
git diff --check origin/master...HEAD: passed. - Current CI is green for changes, lint/reference checks, formatting, header/instruction checks, perf gate, render harness tests, and whitespace.
linux-buildand the aggregateall-checkswere still pending at review time and are not claimed as passing evidence here.
Test plan
- Let
linux-buildandall-checkscomplete before merge. - Re-run the GL witness after future render-state or composite-draw changes, preserving first-claim replay and exact-byte provenance checks.
Human merge authority remains with the maintainer.
🤖 Reviewed by Codex GPT-5 (opus-reviewer role; review-pr skill)
|
Cross-host smoke OK on macos (fresh checkout + IRShapeDebug --auto-screenshot 10 — build clean, exit 0, no shader/compiler log warnings; ir-run: RESULT=CLEAN). Runtime: Codex. |
Summary
On Windows GL, the exact overflowed-tile query term in
far-128comes from 127 hidden caster canvases, not from the walk being slow. The 128 coincident caster canvases each shade the whole stack at bit-identical depth, and every one of those fragments runs the query. This adds an env-gated, GL-only composite draw witness (IR_COMPOSITE_DRAW_WITNESS), successor controller subcommands, and the retained phase-0 evidence (docs/perf/sun-overflowed-tile-query/windows-opengl-mechanism/, README § "GL mechanism: every coincident caster shades the stack"). The plan's correction-3 stop fires (the excess is cross-canvas), so phase 1 is not built and #4935 goes back to re-plan.Screenshots
No visual change. The witness is disarmed unless the env var is set; post-binary
diagnosegivesproduction_matches_oracle: truein 5 of 5 cases.Acceptance evidence
run_matrix.py witness --build debug(pre and post, 5 cases × 3 variants)early-testscontrol reaches 1.00python3 docs/perf/sun-overflowed-tile-query/test_controller.pyrun_matrix.py ab-timing --build debug(5 pairs, all CLEAN and guarded)far-12865.65 → 48.01 ms, −26.9% (upper −25.9%): not met by #4936 alonerun_matrix.py ab-timing --build release --cases far-128run_matrix.py diagnose --build debug(post)production_matches_oracletrue in all 5run_matrix.py ab-timing --name early-tests-timing --variants production ablation early-teststree_provenancetree.diffhashes to06efb088…(CRLF) against a recorded4181baea…. Rewritten to the committed LF bytes, both are accepted with build type, binary, diff and shader-directory hashes all matchingReviewer notes
Plan departures
early-testscontrol. Correction 3's stop makes the per-query count moot.far-128only, the case criterion 2 judges. Debug runs all five cases. The host had 8 other active panes, and quiet-window contention cost hours.84d6f7bc9reverted, built in this tree and snapshotted (pre-tree/tree.json,tree.diff).Notes for reviewer
fleet-pr-overlap: VERDICT overlap, all trial merges clean. render/metal: draw consecutive draws to one target in one render pass (#4994) #5100 and render: bound Metal frame overlap and pace input [WIP] #5161 touchrender_device.hpp, render: bound Metal frame overlap and pace input [WIP] #5161 touchesopengl_render_impl.cpp, and render: prototype event-cursor picks from completed images #5135 touchessystem_entity_canvas_to_framebuffer.hpp.45a220089.run_matrix.pydiffers from the measured controller (2a3bd59a6f52…) in two ways. First, the OpenGL-only refusal ofearly-testsmoved fromearly_tests_bytes()tomain(), so an OpenGL run stages and dispatches exactly as measured. Second,snapshotnow writes and hashes the exacttree.diffbytes, and reopening a pre tree checks the recorded build type, diff and shader-directory hashes as well as the binary.pre-tree/tree.jsonrecords now carryf446b190…, the hash of their committedtree.diff. Thetree.jsoncopies inside the runs'provenance.json/summary.json/witness.jsonkeep the4181baea…they were recorded with (README § "Retained evidence").clang-formatis not installed on this Windows host, soformat-changedcould not run. The new C++ was kept within the LLVM 100-column style by hand.CLAUDE.mdmentions the witness yet.GLAPI.h/GLAPITrace.h/funcs_list.txtgainglStencilFunc/glStencilOpby hand, in the same shape as the generated entries.Refs #4935
🤖 Generated with Claude Code