From e2a1d5b4aef0b0e1944a21c989a31c396e0a2acb Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Thu, 28 May 2026 20:05:03 +0100 Subject: [PATCH] Record reservoir resolve authority --- docs/fensalir-rendering-rebuild-migration.md | 21 ++++++++++++++++++-- docs/implementation-plan.md | 13 +++++++++--- notes/current-system-map.md | 2 +- state/evidence.jsonl | 4 ++++ state/map.yaml | 4 ++-- 5 files changed, 36 insertions(+), 8 deletions(-) diff --git a/docs/fensalir-rendering-rebuild-migration.md b/docs/fensalir-rendering-rebuild-migration.md index add59cd..1503721 100644 --- a/docs/fensalir-rendering-rebuild-migration.md +++ b/docs/fensalir-rendering-rebuild-migration.md @@ -30,6 +30,7 @@ debug output is already in the production-shaped bridge: ```text rolling buffer slice + source identity + calibration + surface intent -> Fensalir field claim +-> TubeField candidate producer, if that is the selected claim family -> selected lowering under budget -> evidence lanes and temporal guide -> presentation @@ -40,6 +41,21 @@ Mimir must not send "draw these lines" as a production order. It should say support, and material intent." Fensalir then chooses direct tube SDF, mesh, field splats, or another lowering. +The shared Fensalir spatiotemporal reservoir remains the rendering organ. +TubeField is only the current claim/candidate producer for rolling-buffer +spectrum surfaces. It may own tube-specific resource binding, Catmull-Rom +evaluation, SDF/proxy geometry, and material sampling, but it must not become a +private renderer or final composition authority. + +This is an intentional divergence from pure ReSTIR. Fensalir is not only +resampling lighting after a known primary surface; it is often sampling the +visible field candidate itself. TubeField therefore has to generate local +primary tube-visibility candidates before reservoir reuse. The shared reservoir +owns the temporal-antialiasing-shaped decision about which field candidate persists into +presentation. There is no separate TAA owner in the target architecture: +reservoir resolve reconstructs smooth presentation directly from selected field +evidence instead of repairing unstable pixels after the fact. + ## Invariants - Mimir owns raw retention. Fensalir may snapshot or import the five-second @@ -52,7 +68,8 @@ field splats, or another lowering. spatialization, and stems. - OBS owns broadcast composition only. - Render packets are cached lowerings. They are not scene truth. -- TAA may validate pixel history. It does not own source identity. +- Reservoir resolve owns temporal antialiasing and reconstruction. TAA is not a + separate source-identity or presentation-history authority. - Networked phones and Raven may publish local observations and decoded timing state. They do not become independent clock authorities. @@ -473,7 +490,7 @@ Acceptance: | Direct debug path | Can be disabled without changing runtime timing state. | | Observation bridge | Produces typed evidence without device reads or rendering. | | Fensalir lowering swap | Direct tube vs future splat/mesh lowering preserves claim ids. | -| TAA guide | Pixel history follows evidence validity, not producer folklore. | +| Reservoir guide | Presentation history follows evidence validity, not producer folklore. | | OBS output | OBS receives final program surfaces, not raw clock chaos. | ## Research And Maps diff --git a/docs/implementation-plan.md b/docs/implementation-plan.md index 98ce308..47c5ac6 100644 --- a/docs/implementation-plan.md +++ b/docs/implementation-plan.md @@ -25,7 +25,14 @@ field/evidence machine. Mimir must submit synchronized buffers, constraints, surface intent, and calibration evidence; Fensalir lowers them into claims with travel/depth, metadata, control, and reservoir-guide lanes. Any path that only paints pixels is a fallback/debug draw and must not be mistaken for the -spatiotemporal machine. +spatiotemporal machine. The shared Fensalir spatiotemporal reservoir is the +organ that owns temporally reused field presentation; TubeField is only the +current rolling-buffer tube claim/candidate producer feeding that organ. +Because Fensalir often samples visible field candidates directly rather than +lighting samples after a known primary hit, claim producers may need +deterministic local visibility generation before reservoir reuse. Reservoir +resolve owns temporal antialiasing and reconstruction; TAA is not a separate +hidden owner of field identity. Those claims are not inherently pixel-sized. Pixel-level resolve consumes the reservoir, but claim support is chosen from the represented field. Smooth @@ -320,8 +327,8 @@ a named invariant that the native runtime cannot protect yet. backend packet plan; unplanned `TubeSplineLowering` records are counted but not expanded. TubeField now writes stable field ids, real tube normals, coverage/confidence, and domain-validity guide data into the same scene - metadata/control/reservoir-guide targets that post resolve uses for - spatiotemporal history validation. TubeField render now binds the engine + metadata/control/reservoir-guide targets that reservoir resolve uses for + spatiotemporal reconstruction. 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 diff --git a/notes/current-system-map.md b/notes/current-system-map.md index 9a066f8..a6fb8cf 100644 --- a/notes/current-system-map.md +++ b/notes/current-system-map.md @@ -504,7 +504,7 @@ a handle: Mimir uploads the current spectral amplitudes as row-major Float32 data into a Fensalir-owned GPU structured buffer before TubeField compute reads it. TubeField writes stable field ids, real tube normals, coverage/confidence, and domain-validity guide data into the same scene metadata/control/reservoir -guide targets consumed by post resolve for spatiotemporal history validation. +guide targets consumed by reservoir resolve for spatiotemporal reconstruction. 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 diff --git a/state/evidence.jsonl b/state/evidence.jsonl index 5c5c569..e3bc505 100644 --- a/state/evidence.jsonl +++ b/state/evidence.jsonl @@ -214,3 +214,7 @@ {"ts": "2026-05-28T14:17:52+01:00", "type": "implementation", "status": "ok", "note": "TubeField spectrum material now separates normalized material value from shaped Y amplitude: geometry still applies AmplitudePower for tube height, while radius, blackbody ramp coordinate, and emission use the normalized Catmull-Rom sample, so emission is normalized^2 * scale instead of a double-shaped value. Mimir now declares the live blackbody ramp from E:\\Projects\\Aetheria\\Assets\\Resources\\Gradients\\blackbody.png; spectrum upload smoke passes and the headless verification capture is artifacts/runtime/mimir-spectrum-dashboard-blackbody-material-fixed.png."} {"ts": "2026-05-28T14:24:24+01:00", "type": "decision", "status": "ok", "note": "Mimir now consumes the Fensalir built-in blackbody ramp resource instead of declaring a project-local Aetheria absolute path; Fensalir owns the copied asset at Assets/Textures/Gradients/blackbody.png and exposes AquariumBuiltInFieldResources for client declarations."} {"ts": "2026-05-28T15:07:14+01:00", "type": "decision", "status": "ok", "note": "Spectrum TubeField emission scale now drives high normalized blackbody-ramp samples hard enough to cross Fensalir's bright-pass bloom, while hue comes from the Fensalir built-in blackbody ramp and intensity comes from normalized amplitude squared."} +{"ts": "2026-05-28T19:09:40+01:00", "type": "correction", "status": "ok", "note": "Corrected the Fensalir reservoir authority wording: the shared spatiotemporal field reservoir is the rendering organ, while TubeField is only the current rolling-buffer tube claim/candidate producer. Mimir and Fensalir docs now explicitly forbid payload-specific paths from becoming private reservoir renderers or final composition authorities."} +{"ts": "2026-05-28T19:49:23+01:00", "type": "implementation", "status": "ok", "note": "Fensalir TubeField now feeds the shared field reservoir without device removal on the synthetic spectrum dashboard. The producer uses deterministic tile-local candidate enumeration for opaque primary tube visibility, cheap same-pixel temporal reuse, conservative compatible-neighbor spatial reuse, finite projection guards, explicit tile-count SRV binding, and first-frame reservoir clearing. Headless proof: artifacts/runtime/restir-spectrum-dashboard-deterministic-initial.png."} +{"ts": "2026-05-28T19:54:37+01:00", "type": "decision", "status": "ok", "note": "Recorded the Fensalir reservoir/TAA divergence: pure ReSTIR usually reuses lighting/path samples after primary visibility is known, while Fensalir often samples visible field candidates directly. Claim producers own local visibility candidate generation; the shared reservoir owns temporally reused field presentation; TAA remains only a pixel filter/denoiser, not the owner of field identity."} +{"ts": "2026-05-28T19:59:14+01:00", "type": "correction", "status": "ok", "note": "Promoted the reservoir/TAA decision: target architecture has no separate TAA organ. Claim producers generate local visibility candidates; the shared spatiotemporal reservoir plus reservoir resolve own temporal antialiasing, history validation, reconstruction, and temporally reused field presentation. Downstream pixel-history filtering cannot repair missing field identity."} diff --git a/state/map.yaml b/state/map.yaml index 7579ea0..838c32f 100644 --- a/state/map.yaml +++ b/state/map.yaml @@ -462,8 +462,8 @@ accepted_design: render binds that generated mesh before applying TubeField material state. TubeField writes stable field ids, real tube normals, coverage/confidence, and domain-validity guide data into the scene metadata/control/reservoir - guide targets consumed by post resolve for spatiotemporal history - validation. TubeField render now binds the engine blue-noise texture, + guide targets consumed by reservoir resolve for spatiotemporal + reconstruction. 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