Correct Fensalir resource ownership map
This commit is contained in:
parent
a3ed0590eb
commit
8d6fe14462
5 changed files with 47 additions and 24 deletions
|
|
@ -182,9 +182,12 @@ FensalirResource {
|
|||
|
||||
Mimir may mint stable resource keys from native/GPU handles, but Fensalir owns
|
||||
resolution. A DSL packet may reference `mimir:resource:*`; it may not treat a
|
||||
bare string as payload truth. If the resource contract is absent, expired,
|
||||
CPU-only, or incompatible with the selected backend, lowering must defer instead
|
||||
of rendering a lie with nice lighting.
|
||||
bare string as payload truth. In the same runtime, a Mimir-declared buffer is a
|
||||
Fensalir resource slot once the declaration is accepted; native/shared handle
|
||||
metadata is an import edge, not a separate payload authority. If the resource
|
||||
contract is absent, expired, duplicated, CPU-only, or incompatible with the
|
||||
selected backend, lowering must defer instead of rendering a lie with nice
|
||||
lighting.
|
||||
|
||||
Current proof surface:
|
||||
|
||||
|
|
@ -196,10 +199,12 @@ Current proof surface:
|
|||
evidence DSL to bind the declared resource directly and produce one planned
|
||||
`TubeField` packet with no deferred requests.
|
||||
|
||||
Current blocker for visible rendering is below this contract: Fensalir still
|
||||
needs a D3D12 packet/resource resolver that imports or aliases GPU-resident
|
||||
structured buffers, textures, meshes, surface pages, and volumes and binds them
|
||||
to the selected shader lowering. That is engine ownership, not a reason for
|
||||
Fensalir now owns the first D3D12 resource resolver cut below this contract:
|
||||
declared structured/curve buffers allocate, reuse, and retire engine-owned GPU
|
||||
slots under their resource keys. Current blocker for visible rendering is
|
||||
shader binding: selected `TubeField` packets must consume those resolved slots
|
||||
through a concrete lowering. Texture, mesh, surface-page, and volume resolvers
|
||||
remain explicit future engine cuts. That is engine ownership, not a reason for
|
||||
Mimir to create a parallel renderer.
|
||||
|
||||
### 3. Calibration Constraint
|
||||
|
|
|
|||
|
|
@ -152,13 +152,20 @@ a named invariant that the native runtime cannot protect yet.
|
|||
- `MimirFensalirFieldLowering` now emits `AquariumFieldResourceDeclaration`
|
||||
rows for live native/GPU payload views. Observation claims reference
|
||||
`mimir:resource:*` keys, and Fensalir validation/planning can reject or defer
|
||||
packets whose resources are missing, CPU-only, or backend-incompatible.
|
||||
packets whose resources are missing, duplicated, CPU-only, or
|
||||
backend-incompatible.
|
||||
`Mimir.BufferSmoke --fensalir-field-evidence-smoke` proves the first
|
||||
hardware-free receipt with one declared resource, three claims, one planned
|
||||
resource-backed `TubeField` packet, and two deferred non-backend claims.
|
||||
`Mimir.BufferSmoke --fensalir-field-dsl-resource-smoke` proves Fensalir's DSL
|
||||
evidence compiler can bind a declared resource and produce one planned
|
||||
`TubeField` packet with no deferred requests.
|
||||
- Fensalir now owns the first in-process D3D12 field resource resolver cut:
|
||||
declared structured/curve buffer resources allocate, reuse, and retire
|
||||
engine-owned GPU slots under the resource key. Mimir-declared buffers are
|
||||
Fensalir buffers in the same runtime. Visible rendering still needs the
|
||||
TubeField shader binding that consumes those resolved slots; texture,
|
||||
mesh, surface-page, and volume resource kinds remain future engine cuts.
|
||||
- `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
|
||||
|
|
|
|||
|
|
@ -320,14 +320,20 @@ The live payload boundary is now explicit. Mimir declares each live native/GPU
|
|||
payload view as an `AquariumFieldResourceDeclaration` with resource key, kind,
|
||||
residency, shader access, format, shape, valid time range, version, and native
|
||||
handle metadata. Field claims and lowering requests reference those
|
||||
`mimir:resource:*` keys. The handle string is only a name; Fensalir validation
|
||||
and planning own typed resource resolution before shader lowering.
|
||||
`mimir:resource:*` keys. The handle string is only a name; Fensalir validation,
|
||||
planning, and renderer-owned resource slots own typed resource resolution before
|
||||
shader lowering. Mimir-declared buffers are Fensalir buffers in the same
|
||||
runtime; native/shared handle metadata is an import edge, not a separate
|
||||
authority regime.
|
||||
The current smokes prove planning, not visible packet rendering:
|
||||
`--fensalir-field-evidence-smoke` now produces one planned resource-backed
|
||||
`TubeField` packet from Mimir's spectrum intent, and
|
||||
`--fensalir-field-dsl-resource-smoke` proves the Fensalir DSL can bind the same
|
||||
kind of declared resource directly. The next blocker is engine-side D3D12
|
||||
packet/resource binding for structured buffers/textures/meshes/pages/volumes.
|
||||
kind of declared resource directly. Fensalir now has the first D3D12 resolver
|
||||
cut for structured/curve buffers: it allocates, reuses, and retires
|
||||
engine-owned GPU slots under the declared resource key. The next blocker is
|
||||
shader-side packet binding for those resolved TubeField resources, plus later
|
||||
texture/mesh/page/volume resolvers.
|
||||
|
||||
The current teardown/migration map is
|
||||
`docs/fensalir-rendering-rebuild-migration.md`, paired with Fensalir's
|
||||
|
|
|
|||
|
|
@ -140,3 +140,4 @@
|
|||
{"ts": "2026-05-26T14:50:33+01:00", "type": "implementation", "status": "ok", "note": "MimirRuntime now publishes AquariumFieldEvidenceFrame on every AquariumSceneState from live rolling buffers, latest observations, audio sync calibration constraints, and per-source surface intent. Existing direct spectrum splines remain diagnostic; Fensalir receives backend-neutral domains/claims/candidates through FieldEvidenceFrame. dotnet build Mimir.slnx --no-restore passed with the pre-existing EveRelay CA2024 warning, and --fensalir-field-evidence-smoke still passes."}
|
||||
{"ts": "2026-05-26T16:21:31+01:00", "type": "implementation", "status": "ok", "note": "Added the typed Fensalir resource boundary for field evidence. AquariumFieldEvidenceFrame now carries AquariumFieldResourceDeclaration rows; claims/packets that use mimir:resource:* handles validate against declared resources, and the lowering planner defers missing, CPU-only, or backend-incompatible resource requests. MimirFensalirFieldLowering emits resource declarations from live MimirBridgePayloadView/native handles, and observation claims reference those resource keys instead of bare kind:handle strings. dotnet build Mimir.slnx passed with the pre-existing EveRelay CA2024 warning; BufferSmoke --fensalir-field-evidence-smoke passed with domains=4 resources=1 claims=3 candidates=3 packets=0 requests=3 errors=False."}
|
||||
{"ts": "2026-05-26T16:42:17+01:00", "type": "implementation", "status": "blocked", "note": "Resource-backed Fensalir lowering now reaches planned packets but not visible rendering. Mimir audio spectrum/waveform surface intents use the source observation's mimir:resource:* key, so --fensalir-field-evidence-smoke produces one planned TubeField packet and two deferred non-backend claims. Fensalir's AquariumFieldScriptCompiler.CompileEvidence can bind declared resources in DSL; --fensalir-field-dsl-resource-smoke produces one planned TubeField packet with no deferred requests. The next blocker is engine-side D3D12 packet/resource resolution: Fensalir must import/alias GPU-resident structured buffers, textures, meshes, surface pages, and volumes and bind them to selected shader lowerings before planned packets can render visibly."}
|
||||
{"ts": "2026-05-26T17:29:30+01:00", "type": "correction", "status": "ok", "note": "Corrected the resource-boundary model: Mimir is a client running inside the Fensalir runtime, so Mimir-declared buffers are Fensalir resource declarations, not cross-process payload truth. Fensalir now has the first D3D12 field resource registry cut for declared structured/curve buffers: valid declarations allocate/reuse/retire engine-owned GPU slots under the resource key, and duplicate resource keys are validation errors. Visible rendering is now blocked on TubeField shader binding for resolved slots, not on deciding who owns the buffers. Texture, mesh, surface-page, and volume resource kinds remain future Fensalir resolver cuts."}
|
||||
|
|
|
|||
|
|
@ -290,18 +290,22 @@ accepted_design:
|
|||
- `MimirFensalirFieldLowering` now emits `AquariumFieldResourceDeclaration`
|
||||
rows for live payload views. Observation claims reference
|
||||
`mimir:resource:*` keys, and Fensalir validation/planning can reject or
|
||||
defer packets whose resource declaration is missing, CPU-only, or
|
||||
backend-incompatible. Audio spectrum/waveform surface intents now use the
|
||||
source observation resource key and plan as `TubeField` packets when the
|
||||
resource is compatible. `Mimir.BufferSmoke --fensalir-field-evidence-smoke`
|
||||
proves one declared resource, three claims, one planned resource-backed
|
||||
`TubeField` packet, two deferred non-backend claims, and no validation
|
||||
errors. `--fensalir-field-dsl-resource-smoke` proves Fensalir's field
|
||||
evidence DSL can bind a declared resource directly and produce one planned
|
||||
`TubeField` packet with no deferred requests. Visible packet rendering is
|
||||
blocked on a Fensalir D3D12 packet/resource resolver that imports/binds
|
||||
structured buffers, textures, meshes, surface pages, and volumes to selected
|
||||
shader lowerings.
|
||||
defer packets whose resource declaration is missing, CPU-only, duplicated,
|
||||
or backend-incompatible. Audio spectrum/waveform surface intents now use
|
||||
the source observation resource key and plan as `TubeField` packets when
|
||||
the resource is compatible. `Mimir.BufferSmoke
|
||||
--fensalir-field-evidence-smoke` proves one declared resource, three
|
||||
claims, one planned resource-backed `TubeField` packet, two deferred
|
||||
non-backend claims, and no validation errors.
|
||||
`--fensalir-field-dsl-resource-smoke` proves Fensalir's field evidence DSL
|
||||
can bind a declared resource directly and produce one planned `TubeField`
|
||||
packet with no deferred requests. Fensalir now owns the first in-process
|
||||
D3D12 field resource registry: declared structured/curve buffer resources
|
||||
allocate/reuse/retire engine-owned GPU slots under the resource key.
|
||||
Mimir-declared buffers are therefore Fensalir resources in the same runtime,
|
||||
not cross-process payload truth. Visible packet rendering is blocked on
|
||||
binding those resolved slots into a concrete TubeField shader lowering and
|
||||
then adding honest texture/mesh/page/volume resolvers.
|
||||
- `config/perfect-machine.example.json` declares live owners, sensors,
|
||||
reservoir views, and runtime policy.
|
||||
- `src/Mimir.Runtime/Synchronization` now includes the Perfect Machine module
|
||||
|
|
|
|||
Loading…
Reference in a new issue