equipment_generate publishes a runtime asset URL - #770
Open
gidich wants to merge 1 commit into
Open
Conversation
…reeze equipment_generate/run.ts: after mesh_exported bake, station writes a per-subject freeze JSON (openclinxr.equipment-runtime-freeze.v1) under OPENCLINXR_EQUIPMENT_FREEZE_DIR (default tools/openclinxr/asset-pipeline/trellis/ equipment-freezes) recording glbSha256 + runtimeAssetUrl (/xr-assets/medical-equipment/<subject>.glb); plan/run results include runtimeAssetUrl + subjectId + freezeRecordPath (null when unfrozen, fail closed). asset-registry equipment-runtime-asset.ts: resolveDeclaredEquipmentRuntimeAsset returns the freeze-recorded bake URL or a typed miss (no_freeze_record / malformed_freeze_record); GLB presence is never consulted, so a gitignored-only GLB without a freeze JSON fails closed. Node-only module; kept off the "." entry. Two tests (RED then flipped): station publishes URL; resolver returns distinct URLs per declared subject (wall-clock vs bedside-monitor), miss on unknown, fail-closed on GLB-without-freeze, no throw-as-success.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
equipment_generate records a tracked runtime asset URL; asset-registry resolves that bake URL for declared equipment.
Proofs on this tree:
Write-roots only. Do not raise the typecheck freeze. Main push is blocked by ratchet 274>225 independent of this slice.