From 7b2439f8f43779441c7277f0cfcbc70c407c069d Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Tue, 26 May 2026 22:58:53 +0100 Subject: [PATCH] Record TubeSpline lowering validation --- docs/fensalir-rendering-rebuild-migration.md | 6 ++++-- docs/implementation-plan.md | 4 +++- notes/current-system-map.md | 3 ++- state/evidence.jsonl | 1 + state/map.yaml | 4 +++- 5 files changed, 13 insertions(+), 5 deletions(-) diff --git a/docs/fensalir-rendering-rebuild-migration.md b/docs/fensalir-rendering-rebuild-migration.md index 73895c7..9002722 100644 --- a/docs/fensalir-rendering-rebuild-migration.md +++ b/docs/fensalir-rendering-rebuild-migration.md @@ -223,8 +223,10 @@ binds them as a pipeline-private generated mesh before applying TubeField material state. The generated-mesh DrawIndexed indirect command signature is shared ABI; TubeField only owns the argument buffer it emits. TubeField expansion is now gated by selected backend packets, so explicit lowering -metadata cannot bypass validation/planning authority. That is engine ownership, -not a reason for Mimir to create a parallel renderer. +metadata cannot bypass validation/planning authority. Validation also rejects +TubeSpline metadata whose claim is not Tube-encoded or whose resource differs +from the claim payload. That is engine ownership, not a reason for Mimir to +create a parallel renderer. ### 3. Calibration Constraint diff --git a/docs/implementation-plan.md b/docs/implementation-plan.md index 4094cc8..be71ae0 100644 --- a/docs/implementation-plan.md +++ b/docs/implementation-plan.md @@ -196,7 +196,9 @@ a named invariant that the native runtime cannot protect yet. generated lowerings can reuse the same draw ABI with their own producer buffers and material bindings. TubeField dispatch now obeys the selected backend packet plan; unplanned `TubeSplineLowering` records are counted but - not expanded. + not expanded. Fensalir validation also rejects TubeSpline lowering metadata + whose claim is not Tube-encoded or whose resource differs from the claim + payload. - `MimirRuntime` queues bioacoustic timeline PCM through Fensalir audio when the active timing witness is allowed. `MimirAudioSynchronizationSettings.Mode` selects `chirp-only`, `passive`, or `hybrid`; passive disables active diff --git a/notes/current-system-map.md b/notes/current-system-map.md index 152dbd0..86ff65a 100644 --- a/notes/current-system-map.md +++ b/notes/current-system-map.md @@ -350,7 +350,8 @@ its compute pass emits private vertex/index/indirect buffers and render binds them as `D3D12PipelinePrivateGeneratedMesh` before applying source/ramp/material state. The DrawIndexed indirect command signature has been lifted to the generated-mesh lane instead of being TubeField-owned. TubeField expansion now -requires a planned TubeField backend packet for the lowering's claim. +requires a planned TubeField backend packet for the lowering's claim, and +validation rejects TubeSpline metadata whose claim/resource authority is split. The current teardown/migration map is `docs/fensalir-rendering-rebuild-migration.md`, paired with Fensalir's diff --git a/state/evidence.jsonl b/state/evidence.jsonl index 5380465..63811a4 100644 --- a/state/evidence.jsonl +++ b/state/evidence.jsonl @@ -154,3 +154,4 @@ {"ts": "2026-05-26T22:49:00+01:00", "type": "implementation", "status": "ok", "note": "Fensalir TubeField now renders through the first explicit pipeline-private generated mesh lane. Compute owns the private D3D12TubeFieldVertex/index/indirect argument layout; render binds those buffers as a D3D12PipelinePrivateGeneratedMesh before applying TubeField source/ramp/material root bindings and ExecuteIndirect. This follows the generated-mesh option without adding a public imported mesh renderer."} {"ts": "2026-05-26T22:52:00+01:00", "type": "implementation", "status": "ok", "note": "Fensalir lifted the DrawIndexed indirect command signature from TubeField to the generated-mesh lane. TubeField still emits its own indirect argument buffer, but future pipeline-private generated mesh lowerings can share the same five-uint D3D12 DrawIndexedArguments ABI with their own producer buffers/material bindings."} {"ts": "2026-05-26T22:55:00+01:00", "type": "implementation", "status": "ok", "note": "Fensalir TubeField expansion now follows selected backend packet authority. D3D12Renderer expands only TubeSplineLowerings whose claim has a planned TubeField packet; unplanned lowerings are counted in debug status instead of rendered. This prevents explicit lowering metadata from bypassing validation/planning."} +{"ts": "2026-05-26T22:58:00+01:00", "type": "implementation", "status": "ok", "note": "Fensalir validation now rejects TubeSpline lowering metadata if the referenced claim is not Tube-encoded or if the lowering resource differs from the claim payload resource. TubeField split authority is caught at validation, before renderer packet gating. Fensalir build/tests/headless reload passed."} diff --git a/state/map.yaml b/state/map.yaml index 706bbd2..40fedf7 100644 --- a/state/map.yaml +++ b/state/map.yaml @@ -345,7 +345,9 @@ accepted_design: 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 - bypass validation/planning authority. + bypass validation/planning authority. Validation also rejects TubeSpline + lowering metadata if its claim is not Tube-encoded or if its resource does + not match the claim payload. - `config/perfect-machine.example.json` declares live owners, sensors, reservoir views, and runtime policy. - `src/Mimir.Runtime/Synchronization` now includes the Perfect Machine module