From 45780ad4c12251d80c4ccc9609cbf436a7d62525 Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Fri, 29 May 2026 01:50:15 +0100 Subject: [PATCH] Record TubeField column reservoir authority --- docs/implementation-plan.md | 12 ++++++------ notes/current-system-map.md | 12 ++++++------ state/evidence.jsonl | 1 + state/map.yaml | 13 +++++++------ 4 files changed, 20 insertions(+), 18 deletions(-) diff --git a/docs/implementation-plan.md b/docs/implementation-plan.md index c77b264..68468c1 100644 --- a/docs/implementation-plan.md +++ b/docs/implementation-plan.md @@ -335,12 +335,12 @@ a named invariant that the native runtime cannot protect yet. ping-ponged structured buffer with the same four rows per pixel; it emits the resolved HDR field texture that bloom and presentation consume. The presentation shader is no longer a hidden history/TAA owner. - TubeField render now binds the engine - blue-noise texture and jitters its tube-local SDF sample inside the proxy - fragment shader, then lets the scene depth buffer resolve opaque generated - field geometry by nearest surface instead of draw order. The visual remains a - generated proxy bridge and still exposes segment structure; a smoother - tube-specific marcher is a later renderer-quality cut. Fensalir validation + TubeField now feeds the shared reservoir from rolling-buffer column packets + instead of generated segment packets: expansion emits one GPU-resident column + record per logical history/source column, ReSTIR tile binning admits those + columns, and candidate evaluation samples the Catmull-Rom tube SDF/material + directly from the source buffer. Generated mesh draw args are zeroed for the + live path and remain only a diagnostic reference. Fensalir validation also rejects TubeSpline lowering metadata whose claim is not Tube-encoded or whose resource differs from the claim diff --git a/notes/current-system-map.md b/notes/current-system-map.md index 7e96845..265b871 100644 --- a/notes/current-system-map.md +++ b/notes/current-system-map.md @@ -509,12 +509,12 @@ Fensalir's shared reservoir history update now runs as a compute pass over four structured rows per pixel and emits the resolved HDR field texture for bloom/presentation, so the presentation shader is no longer a hidden history owner. -TubeField render also binds the engine blue-noise texture, jitters the -tube-local SDF sample in the proxy fragment shader, and uses scene depth so -opaque field geometry resolves by nearest generated surface instead of draw -order. The live image still exposes generated segment structure; this is the -current bounded generated-mesh/reservoir bridge, not the final smooth tube -marcher. +TubeField now feeds the shared reservoir from GPU-resident rolling-buffer +column packets instead of generated segment packets. Fensalir emits one column +packet per logical spectrum history/source column, bins those columns into +screen tiles, and evaluates Catmull-Rom tube SDF/material samples directly from +the source buffer during the ReSTIR passes. Generated mesh draw args are zeroed +for the live path and remain only a diagnostic reference. `Mimir.BufferSmoke --mimir-spectrum-upload-smoke` verifies this through the actual `MimirRuntime` frame path and confirms the legacy direct spline and buffer-field dashboard inputs are empty. The same path declares the local diff --git a/state/evidence.jsonl b/state/evidence.jsonl index dfcf296..a6ecbb8 100644 --- a/state/evidence.jsonl +++ b/state/evidence.jsonl @@ -225,3 +225,4 @@ {"ts": "2026-05-28T21:25:00+01:00", "type": "implementation", "status": "ok", "note": "Fensalir reservoir history update/reuse now runs in a shared compute pass, not the presentation shader. The pass writes the next four structured rows per pixel and emits a resolved HDR field texture consumed by bloom/presentation. Verified with Fensalir and Mimir builds, --mimir-spectrum-upload-smoke, and headless synthetic spectrum capture artifacts/runtime/reservoir-history-compute-spectrum-smoke.png."} {"ts": "2026-05-28T21:45:00+01:00", "type": "correction", "status": "ok", "note": "Noisy reservoir smoke traced to TubeField reuse/export, not Mimir packet lowering. Fensalir now re-evaluates shifted temporal/spatial TubeField samples at the receiving pixel and exports the best four deterministic current candidates into shared reservoir rows. Verified with Fensalir/Mimir builds, --mimir-spectrum-upload-smoke, and headless capture artifacts/runtime/reservoir-deterministic-top4-spectrum.png. Remaining dashboard busyness is many age-column tubes plus generated proxy segment structure, not fixed by smoke timing."} {"ts": "2026-05-28T22:05:00+01:00", "type": "decision", "status": "ok", "note": "For many-hundreds-spline rendering, Fensalir stays on cheap segmented TubeField proxies rather than spline-wide SDF evaluation. The current cut fixes segment continuity by carrying consistent start/end radius pairs through generated proxy vertices and storing true start/end radii in compute segment packets. Verified with Fensalir/Mimir builds, --mimir-spectrum-upload-smoke, and headless capture artifacts/runtime/tubefield-cheap-continuity-spectrum.png."} +{"timestamp":"2026-05-29T01:46:00+01:00","type":"decision","status":"ok","note":"Fensalir TubeField spectrum rendering now uses rolling-buffer column packets as reservoir candidate authority rather than generated segment packets. Expansion emits one GPU-resident column packet per logical history/source column, ReSTIR evaluates Catmull-Rom SDF/material samples directly from the source buffer, and generated mesh draw args are zeroed for the live path. Verified through Mimir.App headless synthetic spectrum capture artifacts/runtime/mimir-column-packet-final-headless.png."} diff --git a/state/map.yaml b/state/map.yaml index 17d7579..932df0f 100644 --- a/state/map.yaml +++ b/state/map.yaml @@ -469,12 +469,13 @@ accepted_design: shared Fensalir compute pass over a ping-ponged structured buffer with the same four rows per pixel; it emits the resolved HDR field texture that bloom and presentation consume. The presentation shader is no longer a - hidden history/TAA owner. TubeField render now binds the engine blue-noise texture, - jitters its tube-local SDF sample inside the proxy fragment shader, and - uses scene depth so opaque generated field geometry resolves by nearest - surface rather than draw order. The current visual still exposes generated - segment structure; it is the bounded generated-mesh/reservoir bridge, not - yet the final smooth tube marcher. + hidden history/TAA owner. TubeField reservoir input has moved from + generated segment packets to rolling-buffer column packets: expansion emits + one GPU-resident column record per logical history/source column, tile + binning admits those columns, and ReSTIR candidate evaluation samples the + Catmull-Rom tube SDF/material directly from the source buffer. Generated + mesh draw args are zeroed for the live path and remain only a diagnostic + reference. The generated-mesh DrawIndexed indirect command signature is shared ABI now; TubeField only owns the argument buffer it emits. TubeField expansion is now gated by the selected backend packet plan, so lowering metadata cannot