Skip to content

render: evaluate direct-mapped sun depth slabs (over budget, ship zero slots) - #4914

Merged
jakildev merged 2 commits into
masterfrom
codex/4874-direct-mapped-sun-slabs
Nov 11, 2026
Merged

jakildev merged 2 commits into
masterfrom
codex/4874-direct-mapped-sun-slabs

Conversation

@jakildev

@jakildev jakildev commented Nov 5, 2026 •

Copy link
Copy Markdown
Owner

Summary

Implements and natively evaluates the opt-in direct-mapped primary sun-depth slab variant (GLSL + Metal). Each primary write issues unconditional atomicMin / atomicMax on slot slab % slots with no resident loads, compare-swap or overflow bit; the receiver checks every occupied slot first and, if any slot's min and max decode to different slabs, the whole texel answers from its nearest word. Direct mode selects the per-pixel wrappers and never constructs or selects the cooperative program; the associative/cooperative mode stays available for comparison.

Outcome: the direct writer keeps every recovery but fails the locked budget, so all three layout twins ship kSunDepthSlabSlots = 0 (with kSunDepthSlabDirectMapped = true as the opt-in selection, the cheaper of the two exact writers). The capacity note records per-cell readings, the collision census and the residuals.

Closes #4874

Evidence (SHA-pinned on the media branch): native evaluation README — capture JSON, raw probe CSVs, run logs, full frames/crops, frozen-arm manifests and patches, ab-timing.{json,md} with every raw run, render-verify logs.

Acceptance evidence

Criterion Check run Observed
1. Executed collision/recovery controls python3 scripts/tests/test_render_sun_depth_slab.py Pass. Both dialects, both modes: direct 61,802 write sets / 15,276 recoveries / 6,870 collisions; 48 splat-extrema residuals. Named min/max, bypass-collision, early-accept, empty-gap and clear mutants fail; direct dispatch selects no cooperative window.
2. Native positive-fire recovery ir-acquire gpu -- python3 scripts/perf/sun_depth_slab_capture.py --output <dir> --build-dir <arm> --label <arm> for zero / associative / direct Pass. 58/58 shots CLEAN per arm. Zero reproduces the loss (2,347 cardinal / 2,428 oblique missing). Every fully repaired case — stacks of 8 and 128, reversed order, h60/h90, layered-2 cardinal and layered-3/4 oblique, revoxelize/revoxelized, every moving-track static pose, both suns — is 0 missing / 0 excess in the direct arm with 0 direct collisions. Oblique in-window h30 keeps its 772 legitimate excess. Every moving shot equals its static pose; every unchanged control is byte-identical to zero. Direct full frame = associative full frame on 43/44 static captures. Residuals: cardinal layered-3/4 (437/379 overflowed/collided texels, nearest-only in all arms, = zero); oblique-layered-2-h60-step40 (associative census: 2/2 complete mod-3 collisions + 277/249 overflowed rows; direct 279/251 collisions): direct differs from associative on 44 receiver pixels and all 44 equal the zero arm's nearest-only pixel (2,352 vs 2,344 missing, 0 excess). Receivers and full frames inspected.
3. Locked performance gates python3 scripts/perf/sun_depth_slab_timing.py --output <dir> --baseline <zero> --head <direct> --arm associative=<assoc> --pairs 5 FAIL (recorded). 75/75 runs QUIET=guarded, CLEAN. gpu:bakeSunShadowMap: canvas-lower +1.792 ms (2.403x, lower95 +1.430) vs F=0.064; canvas-stacked-128 +1.341 ms (1.979x, lower95 +1.005) vs F=0.029 — fails (i) and (ii). Frame mean 1.328x / 1.343x, p99 1.189x / 1.240x on those cells (fail); canvas-default-raster 1.028x / 0.966x, perf-grid zoom1 0.986x / 0.984x, zoom4 0.956x / 0.957x (pass). Associative attribution: +2.233 / +2.234 ms.
4. Regression and parity Harness suites, parity audit, probe tests, render-verify.py, light-verify.py --if-changed Pass with inherited rows attributed. Source-face query/overflow/index/index-coverage, shadow-layer union, legacy bake, mixed-source, projected-face boundary, cooperative/grazing index, impulse, detached receiver, sun hierarchy, test_sun_query_probe.py, dependency contract: all pass. Parity audit 148 GLSL / 137 Metal, 5 allowlisted. SunPrimaryDepthProbeRowTest.* 4/4 (zero and direct builds). IRPerfGrid 21/21. light-verify all PASS. IRCanvasStress 21/59 FAIL on head; same-session master control (480f39294, frozen tree) fails the identical 21 rows — inherited (macOS reference refresh, #4904). Native OpenGL: cross-host smoke debt.
5. Reviewable decision Layout twins, capacity note, evidence Compiled out. All three twins: 0 slots, direct selector true. docs/design/sun-face-index-capacity.md states the measured over-budget result, per-cell readings, collision counts and residuals.

Test plan

  • fleet-build --target IRCanvasStress IRPerfGrid IrredenEngineTest at zero slots (final), plus associative and direct arm builds; arms frozen from one revision.
  • fleet-run IrredenEngineTest --gtest_filter='SunPrimaryDepthProbeRowTest.*' — 4/4.
  • 16 layout-consuming harness suites + shader_parity_audit.py (listed above).
  • ruff check, lint_comment_refs.py, git diff --check, test_fleet_tests_workflow_paths.sh (98 pass).

Plan departures

  • Rebased onto master 480f39294 and re-froze all arms from that revision; the Codex-era partial evidence (zero arm on 89b210770) is superseded, not mixed in.
  • Timing lease: each profile run took its own guarded benchmark window via ir-run rather than one outer ir-acquire benchmark hold — under an outer hold the nested runs report no QUIET verdict. An unguarded canvas-lower set is retained as attribution only.
  • render-harness-tests fix: split summarize_probe into stdlib-only scripts/perf/sun_depth_slab_census.py, dropped the timing driver's Pillow route (local hashlib), registered the drivers in the dependency-contract population, and taught test_render_projected_face_boundary.py the new constant bool.
  • Master control for criterion 4 used IRREDEN_BUILD_DIR=<tree>: render-verify.py --build-dir alone does not forward the dir to its fleet-run launch.

Overlap check

fleet-pr-overlap --base master --repo engine --no-self: VERDICT: overlap, every shared path (with stacked spatial PRs #4939, #4940, #4944 on VALIDATION.md, system_bake_sun_shadow_map.hpp, test_render_legacy_shadow_bake.py) trial-merges clean.

Authored by Codex (GPT-6) (implementation), native evaluation and harness fixes by Claude (runtime claude) on macOS/Metal.

🤖 Generated with Claude Code

@jakildev jakildev added fleet:wip Work in progress — not ready for review fleet:author-codex Implementation last authored by Codex; route review to Claude fleet:authored-on-macos PR was authored and smoke-tested on macOS Metal backend labels Nov 5, 2026
@github-actions

github-actions Bot commented Nov 5, 2026

Copy link
Copy Markdown

Perf gate

Head host slug: linux-x86_64-epyc-9v45-96-unknown

perf comparison: ec70f10 → f8151ff-ci

baseline: /home/runner/work/_temp/perf-baseline/history/linux-x86_64-epyc-9v45-96-unknown/ec70f10c01d23624051e8c800651a24d365eb254
head: /home/runner/work/IrredenEngine/IrredenEngine/save_files/perf/f8151ff84-ci

host calibration

  • host: linux-x86_64-epyc-9v45-96-unknown (matches baseline)
  • ref_ms: head 60.35 vs baseline 57.81 (load_factor 1.04×)
  • calibration target: 50.00 ms (informational)
  • baseline capture: perf-baseline@ec70f10c0 (branch tip); master ef578cf13, finished 2026-10-30T06:47:02Z, 6.0 d before the head run, ref_ms 57.81
  • weighting: raw (class-matched capture; load_factor 1.04×; no calibration-scaling entry)
  • attribution: no measured master improvement between capture master ef578cf13 and merge base f77113dc0 (48 commits)

thresholds: regress ≥ 10%, improve ≥ 5%

voxel cull effectiveness

cell ratio (base→head) avg visible total avg feeder
target=IRLuaPerfGrid,zoom=1,sub_mode=full,sub_base=1 1.000 → 1.000 (+0.0pp) 262144 → 262144 262144 → 262144 0 → 0
target=IRLuaPerfGrid,zoom=4,sub_mode=full,sub_base=1 0.788 → 0.788 (+0.0pp) 156630 → 156630 262144 → 262144 50080 → 50080 (1.000×)
target=IRPerfGrid,zoom=1,sub_mode=full,sub_base=1 1.000 → 1.000 (+0.0pp) 262144 → 262144 262144 → 262144 0 → 0
target=IRPerfGrid,zoom=4,sub_mode=full,sub_base=1 0.990 → 0.990 (+0.0pp) 255592 → 255592 262144 → 262144 3862 → 3862 (1.000×)

frame timing (ms)

cell avg p99
target=IRLuaPerfGrid,zoom=1,sub_mode=full,sub_base=1 316.79 → 312.02 (-1.5%) 1066.40 → 1113.73 (+4.4%)
target=IRLuaPerfGrid,zoom=4,sub_mode=full,sub_base=1 789.82 → 758.18 (-4.0%) 1545.76 → 1442.47 (-6.7%) ↓
target=IRPerfGrid,zoom=1,sub_mode=full,sub_base=1 374.51 → 386.07 (+3.1%) 5352.30 → 5642.03 (+5.4%)
target=IRPerfGrid,zoom=4,sub_mode=full,sub_base=1 1038.25 → 1028.56 (-0.9%) 1765.57 → 1670.71 (-5.4%) ↓

GPU frame timing (ms; separate from stage samples)

cell envelope (base→head) buffer spans (base→head) coverage (base→head)
target=IRLuaPerfGrid,zoom=1,sub_mode=full,sub_base=1 unavailable → unavailable unavailable → unavailable unavailable → unavailable
target=IRLuaPerfGrid,zoom=4,sub_mode=full,sub_base=1 unavailable → unavailable unavailable → unavailable unavailable → unavailable
target=IRPerfGrid,zoom=1,sub_mode=full,sub_base=1 unavailable → unavailable unavailable → unavailable unavailable → unavailable
target=IRPerfGrid,zoom=4,sub_mode=full,sub_base=1 unavailable → unavailable unavailable → unavailable unavailable → unavailable

GPU stage timing (avg ms per sampled invocation)

cell canvasClear voxelCompact voxelStage1 voxelCardinalElect voxelStage2 voxelSunFaces textToTrixel buildLightOcclusionGrid computeVoxelAO bakeSunShadowMap computeSunShadow computeLightVolume lightingToTrixel fogToTrixel trixelToFb resolvePerAxisScreenDepth fbToScreen
target=IRLuaPerfGrid,zoom=1,sub_mode=full,sub_base=1 41.55→41.31 41.33→40.14 36.55→35.80 0.67→0.69 36.45→34.83 4.99→4.61 ↓ — 0.00→0.00 1.25→2.32 ⚠ 4.76→9.61 ⚠ 14.71→12.36 ↓ 12.88→12.24 3.28→2.64 ↓ 1.13→0.91 ↓ 0.18→0.13 ↓ — 6.27→5.20 ↓
target=IRLuaPerfGrid,zoom=4,sub_mode=full,sub_base=1 79.40→74.97 ↓ 244.57→234.15 156.41→150.70 4.78→2.36 ↓ 138.90→133.49 4.74→4.76 — 0.00→0.00 1.10→1.98 ⚠ 11.51→17.61 ⚠ 13.01→11.62 ↓ 11.18→10.45 ↓ 6.15→5.33 ↓ 1.43→0.95 ↓ 0.18→0.13 ↓ — 5.95→5.01 ↓
target=IRPerfGrid,zoom=1,sub_mode=full,sub_base=1 34.41→35.77 46.16→45.70 37.51→37.41 5.65→5.49 29.86→29.94 5.64→5.94 0.72→0.72 0.00→0.00 0.76→0.70 ↓ 25.80→29.90 ⚠ 11.84→11.85 24.91→24.65 4.17→4.08 1.20→1.19 0.13→0.12 ↓ 0.00→0.00 6.09→5.71 ↓
target=IRPerfGrid,zoom=4,sub_mode=full,sub_base=1 81.24→80.63 301.09→295.48 248.74→246.41 3.77→3.59 217.66→214.78 5.05→4.95 0.77→0.72 ↓ 0.00→0.00 0.69→0.55 ↓ 7.89→15.42 ⚠ 12.22→11.39 ↓ 10.81→10.44 4.76→4.13 ↓ 1.32→0.96 ↓ 0.15→0.12 ↓ 0.00→0.00 5.63→4.91 ↓

top CPU systems by avg ms (head)

target=IRLuaPerfGrid,zoom=1,sub_mode=full,sub_base=1

pipeline system avg ms (base→head)
RENDER SingleVoxelToCanvasFirst 164.152 → 160.489 (-2.2%)
RENDER ComputeLightVolume 27.204 → 24.282 (-10.7%) ↓
RENDER CanvasToFramebuffer 12.842 → 11.855 (-7.7%) ↓
RENDER BakeSunShadowMap 1.225 → 6.947 (+467.1%) ⚠
RENDER ComputeSunShadow 4.687 → 4.894 (+4.4%)
UPDATE PropagateTransform 2.792 → 2.820 (+1.0%)
RENDER LightingToTrixel 3.394 → 2.731 (-19.5%) ↓
UPDATE FogRevealEval 2.312 → 2.440 (+5.5%)

target=IRLuaPerfGrid,zoom=4,sub_mode=full,sub_base=1

pipeline system avg ms (base→head)
RENDER SingleVoxelToCanvasFirst 630.881 → 601.690 (-4.6%)
RENDER ComputeLightVolume 23.692 → 21.736 (-8.3%) ↓
RENDER ComputeSunShadow 11.466 → 13.559 (+18.3%) ⚠
RENDER CanvasToFramebuffer 12.352 → 10.582 (-14.3%) ↓
RENDER BakeSunShadowMap 1.089 → 5.978 (+448.9%) ⚠
RENDER LightingToTrixel 6.399 → 5.474 (-14.5%) ↓
RENDER ComputeVoxelAO 5.526 → 4.781 (-13.5%) ↓
UPDATE PropagateTransform 2.609 → 2.698 (+3.4%)

target=IRPerfGrid,zoom=1,sub_mode=full,sub_base=1

pipeline system avg ms (base→head)
RENDER SingleVoxelToCanvasFirst 167.005 → 172.144 (+3.1%)
RENDER ComputeSunShadow 25.352 → 25.129 (-0.9%)
RENDER ComputeLightVolume 23.052 → 22.934 (-0.5%)
RENDER LightingToTrixel 14.689 → 14.503 (-1.3%)
RENDER CanvasToFramebuffer 11.851 → 11.365 (-4.1%)
RENDER BakeSunShadowMap 1.836 → 9.011 (+390.8%) ⚠
UPDATE PropagateTransform 3.727 → 3.722 (-0.1%)
RENDER FogToTrixel 3.556 → 3.532 (-0.7%)

target=IRPerfGrid,zoom=4,sub_mode=full,sub_base=1

pipeline system avg ms (base→head)
RENDER SingleVoxelToCanvasFirst 859.274 → 847.288 (-1.4%)
RENDER ComputeLightVolume 22.681 → 21.516 (-5.1%) ↓
RENDER ComputeSunShadow 7.820 → 11.050 (+41.3%) ⚠
RENDER CanvasToFramebuffer 11.706 → 10.845 (-7.4%) ↓
RENDER BakeSunShadowMap 1.105 → 6.298 (+470.0%) ⚠
RENDER LightingToTrixel 4.901 → 4.249 (-13.3%) ↓
RENDER ComputeVoxelAO 4.129 → 3.980 (-3.6%)
UPDATE PropagateTransform 3.837 → 3.815 (-0.6%)

…o slots

Adds a compile-time direct-mapped variant of the opt-in raster sun
depth-slab layer in GLSL and Metal: each primary write issues unconditional
min/max atomics on slot slab % slots with no resident loads or claim, and
the receiver falls back to the nearest word for the whole texel when any
occupied slot's extrema decode to different slabs. Direct mode selects the
per-pixel bake wrappers and never constructs the cooperative program.

Native Metal evaluation on three frozen arms from one revision: the direct
arm repairs every beyond-throw case the associative layer repairs (0 missing
/ 0 excess, zero direct collisions on repaired cases); the residual layered
scene's colliding texels fall back exactly to the nearest-only answer. The
locked timing gate fails on both small raster cells (bakeSunShadowMap
+1.79 / +1.34 ms against floors of 0.064 / 0.029 ms; frame mean 1.33x /
1.34x), so all three layout twins ship zero slots and the capacity note
records the residual.

Also relocates the capture and timing drivers under scripts/perf/, splits
the probe census into a stdlib-only module so the harness dependency
contract holds, and teaches two Metal shader adapters the new bool constant.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@jakildev
jakildev force-pushed the codex/4874-direct-mapped-sun-slabs branch from eaf49b8 to 1072a57 Compare November 11, 2026 08:29
@jakildev jakildev changed the title render: add direct-mapped sun slabs pending native evaluation render: evaluate direct-mapped sun depth slabs (over budget, ship zero slots) Nov 11, 2026
@jakildev jakildev added fleet:author-claude Implementation last authored by Claude; route review to Codex and removed fleet:author-codex Implementation last authored by Codex; route review to Claude labels Nov 11, 2026
@jakildev
jakildev marked this pull request as ready for review November 11, 2026 08:31
@jakildev jakildev added fleet:changes-made Agent addressed human feedback — ready for human re-review and removed fleet:wip Work in progress — not ready for review fleet:amending-mac-pool-5 labels Nov 11, 2026
@jakildev

Copy link
Copy Markdown
Owner Author

Addressed fleet:design-unblocked (unpark: re-adopt on the Claude runtime, finish criteria 2–5):

  • render-harness-tests red → fixed. Split the probe census into stdlib-only scripts/perf/sun_depth_slab_census.py, removed the timing driver's Pillow route, registered the drivers in the dependency-contract population; test_render_projected_face_boundary.py now rewrites constant bool. All 16 layout-consuming suites pass locally.
  • Rebased on master 480f39294, re-froze zero / associative / direct arms from that one revision.
  • Criterion 2 (native capture): pass. 58/58 CLEAN per arm; direct = 0 missing / 0 excess with 0 collisions on every repaired case; the 44 residual-scene pixels where direct differs from associative all equal the nearest-only answer.
  • Criterion 3 (timing): fail, recorded. 75/75 runs QUIET=guarded. Bake +1.79 ms (2.40x) / +1.34 ms (1.98x) vs floors 0.064 / 0.029 ms; frame mean 1.33x / 1.34x on the small cells.
  • Criterion 4: PerfGrid 21/21, light-verify pass; CanvasStress 21/59 failures are the identical rows on a same-session master control (inherited, render: refresh stale macos-debug ShapeDebug and CanvasStress references #4904).
  • Criterion 5: compiled out at zero slots; capacity note updated. PR now Closes #4874, out of draft.

Evidence: https://github.com/jakildev/IrredenEngine/blob/e7deda5a054a76dcc04c18bdc31624befdbed2e7/docs/pr-screenshots/claude/4874-direct-mapped-sun-slabs/README.md — worker (pool-5, claude)

@jakildev jakildev removed the fleet:changes-made Agent addressed human feedback — ready for human re-review label Nov 11, 2026

@jakildev jakildev left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review — render: evaluate direct-mapped sun depth slabs (over budget, ship zero slots)

Verdict: needs-fix

The direct-mapped shader/C++ twins, whole-texel collision fallback, associative-mode preservation, and zero-slot shipped configuration match the approved plan. The executed host harness covers both dialects and both modes with positive mutation controls, and the recorded native evaluation takes the plan's allowed failure branch: the performance gate failed, so all three layout twins remain at zero slots and the residual is documented.

Needs-fix

  • scripts/fleet/fleet_codex_policy.py:21 — the new sun_depth_slab_capture.py display allow rule cannot launch the driver in its required form. DISPLAY_VALIDATORS generates only a bare python3 scripts/perf/sun_depth_slab_capture.py … exception, while sun_depth_slab_capture.py::main rejects that form unless IR_ACQUIRE_HELD_VERB proves an enclosing ir-acquire gpu/benchmark lease. The required ir-acquire gpu -- python3 … prefix does not match the bare exception and therefore remains inside the macOS sandbox with no WindowServer access; the issue thread explicitly identified this exact boundary. I reproduced the bare policy form at this head and it exits 2 with run under ir-acquire gpu --. Please either provide a narrowly scoped outside-sandbox entry point/profile that acquires the GPU lease and then invokes this driver, or avoid registering this unusable exception. Add an execution-policy regression test for the actual supported invocation, not only the set-equality test that the driver appears in DISPLAY_VALIDATORS.

Acceptance (issue #4874)

Criterion Assessment
Executed collision/recovery controls Met. The local harness passed both dialects/modes and every named direct mutation failed by name.
Positive-fire native recovery Met by the SHA-pinned three-arm evidence described in the PR and issue thread: repaired cases remain exact; collided residuals fall back to nearest-only.
Locked performance gates Met via the plan's bounded failure branch. The direct arm is over budget and the PR records the measurements instead of adopting it.
Regression and parity Locally established for the focused slab harness and tools tests; shader parity and the completed lightweight checks are green. The current linux-build, render-harness-tests, fleet-tests, and perf-gate runs were still pending when reviewed, so they are unread rather than green.
Reviewable decision Met. CPU/GLSL/Metal twins agree on zero slots with direct mapping selected as the retained opt-in implementation, and the capacity note records the result.

Tests run

  • python3 scripts/tests/test_render_sun_depth_slab.py — 10 tests passed.
  • python3 scripts/tests/test_render_sun_depth_slab_tools.py — 3 tests passed.
  • python3 scripts/fleet/tests/test_fleet_codex.py Transport.test_display_validator_list_covers_every_fleet_run_driver — passed, but it does not exercise the supported command form identified above.
  • git diff --check origin/master...HEAD — passed.

🤖 Reviewed by Codex GPT-5.6 Sol (runtime codex, review-pr skill)

Opus recheck not required (reviewed at opus class).

@jakildev jakildev added fleet:needs-fix Fleet reviewer found issues — author must address and removed fleet:reviewing-mac-pool-2 labels Nov 11, 2026
@jakildev jakildev removed the fleet:needs-fix Fleet reviewer found issues — author must address label Nov 11, 2026
A bare `python3 scripts/perf/sun_depth_slab_capture.py` is the form the
macOS Codex policy runs outside the sandbox, but the driver refused it
without an enclosing ir-acquire lease, and an `ir-acquire gpu --` prefix
stays sandboxed. The driver now re-runs itself under `ir-acquire gpu --`
when no gpu/benchmark lease is held (guarded against recursion), and keeps
Pillow out of module scope so that path is stdlib-only.

Tests: the bare launch re-execs with the exact argv under a stub
ir-acquire and the recursion guard refuses; both fail against the prior
driver. The policy check and execpolicy suite now assert the bare form is
allowed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@jakildev jakildev added fleet:changes-made Agent addressed human feedback — ready for human re-review and removed fleet:amending-mac-pool-3 labels Nov 11, 2026
@jakildev

Copy link
Copy Markdown
Owner Author

Addressed feedback (9161b36d8):

  • fleet_codex_policy.py:21 — unusable sun_depth_slab_capture.py display exception → fixed by making the bare form the supported one. The driver now takes its own lease: with no gpu/benchmark lease held, main() re-runs itself as ir-acquire gpu -- <python> <driver> <args…>, so the policy's existing outside-sandbox python3 scripts/perf/sun_depth_slab_capture.py … rule runs the whole matrix under one GPU lease. A recursion guard (IR_SUN_SLAB_CAPTURE_REEXEC) refuses if ir-acquire ever fails to export its lease. ir-acquire gpu -- python3 … (the evidence's recorded form) still works unchanged. Pillow moved into capture() so the lease path is stdlib-only.
  • Execution-policy regression for the supported invocation: fleet_codex_policy.check() now asserts python3 scripts/perf/sun_depth_slab_capture.py --output o → allow; test_package_smoke_gets_the_display_validator_decision runs codex execpolicy check on the bare and absolute-path forms; the text-level test asserts both allow rules.
  • Driver regression: CaptureLeaseTest in scripts/tests/test_render_sun_depth_slab_tools.py launches the bare form against a stub ir-acquire (IR_ACQUIRE seam) and asserts the exact re-exec argv with no output written, and that the recursion guard exits 2. Positive control: both tests fail against the prior driver (FAILED (failures=2)).

Ran on macOS:

  • python3 scripts/tests/test_render_sun_depth_slab_tools.py: 5 OK
  • python3 scripts/tests/test_render_sun_depth_slab.py: 10 OK
  • python3 scripts/tests/test_harness_dependency_contract.py: 12 OK
  • python3 scripts/fleet/tests/test_fleet_codex.py: 33 OK (codex present)
  • fleet_codex_policy.check() for worker and sonnet-reviewer: 24 cases each
  • ruff check: clean; lint_comment_refs.py: clean
  • End-to-end: a bare launch through the real ir-acquire (--build-dir pointing at a missing dir) passed the lease gate and stopped at Could not find executable IRCanvasStress, so the lease export works.

— worker (pool-3, claude)

@jakildev jakildev removed the fleet:changes-made Agent addressed human feedback — ready for human re-review label Nov 11, 2026

@jakildev jakildev left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Re-review — render: evaluate direct-mapped sun depth slabs (over budget, ship zero slots)

Verdict: approve

Prior-review resolution

  • ✅ scripts/fleet/fleet_codex_policy.py:21 — the bare display-exempt capture invocation previously could not acquire its required GPU lease. Verified fixed at 9161b36d8: sun_depth_slab_capture.py::main now re-execs the same argv under ir-acquire gpu, holds one lease across the matrix, and refuses recursion if the lease marker is not exported. The generated policy still grants the supported bare form, and the new policy plus driver tests exercise both the re-exec argv and the failure guard.

No new findings in the post-review delta.

Acceptance (issue #4874)

Criterion Grade Basis
Executed collision and recovery controls met Evidence row 1 reports positive direct recovery/collision counts in both dialects and modes; the shipped harness contains the oracle, zero-slot, named mutation, and dispatch-selection controls.
Positive-fire native recovery met Evidence row 2 and the SHA-pinned native report record 58/58 CLEAN shots per arm, positive zero-arm loss, exact direct recovery on repaired cases, zero collisions there, and nearest-only behavior for the residual differences.
Locked performance gates met Evidence row 3 records 75/75 guarded CLEAN runs across all five cells. The direct arm fails the locked small-cell gates, so the bounded failure branch correctly ships zero slots.
Regression and parity met Evidence row 4 records the required harness, parity, probe, PerfGrid, and light checks; a matched master control attributes the CanvasStress failures as inherited. Native OpenGL remains cross-host smoke debt.
Reviewable decision met The C++, GLSL, and Metal layout twins ship zero slots with the direct selector retained, and the capacity note records timing, collisions, and residual limits.

Tests run

  • python3 scripts/tests/test_render_sun_depth_slab_tools.py — 5 tests passed.
  • python3 scripts/fleet/tests/test_fleet_codex.py — 33 tests passed.
  • git diff --check origin/master...HEAD — passed.
  • Current head checks observed green for formatting, lint, shader parity, headers, comment references, and the other completed lightweight jobs; linux-build, render-harness-tests, fleet-tests, and perf-gate were still pending and are not claimed green here.

🤖 Reviewed by Codex GPT-5 (runtime codex, opus-class review-pr skill)

Opus recheck not required (reviewed at opus class).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fleet:approved Fleet reviewer approved — ready for human merge fleet:author-claude Implementation last authored by Claude; route review to Codex fleet:authored-on-macos PR was authored and smoke-tested on macOS Metal backend fleet:needs-windows-smoke PR needs windows-debug build + smoke-run validation fleet:runtime-claude Pin this assignment to Claude

Projects

None yet

Development

Successfully merging this pull request may close these issues.

render: load-free direct-mapped slab table for the raster sun depth-slab layer

1 participant