Files
NODEDC_MISSION_CORE/docs/SIMULATION_IMPORT_STORAGE_20261116.md
T

6.8 KiB

Simulation import and storage acceptance — 2026-11-16

Current import contract

LAB → Simulations uses the shared window-header plus button. The plus opens the import form; dropping a supported PLY or LCC/LCC2 archive/folder into the main workspace admits a background import directly. The whole workspace displays the supported-input overlay. The import queue is independent of the modal and workspace lifetime. File handles still belong to the browser session: browser reload is not resumable-file-handle acceptance.

Core stages upload bytes only until the Worker retains the original and returns a verified receipt. Worker runs the conversion; Core publishes the verified SOG/streamed rendering product. Original downloads stream from Worker. The old raw-PLY local import endpoint returns 410. Missing Worker does not enable a local conversion fallback.

LCC/LCC2 follows upload → retained original → ingest/extracted-source receipt → build → verified ready artifacts. The original and extracted-source receipts have separate deletion lifecycles. Gaussian PLY currently produces visual products, not a collision mesh; opening the viewer does not qualify rover simulation.

Physical source cleanup

Two legacy local PLY originals (Bamboo Trail and Forest Scan) were retained on Worker and checked by byte count and SHA-256 before local retirement. Their ready render assets were verified and both scenes opened in the actual UI afterward. Freed 831,479,037 bytes (about 793 MiB). Riverside already had a Worker-side original; its independent AI simulator cache remains owned by that runtime.

The twelve pre-existing LCC projects had no remaining local originals. Ready scenes, collision products, manual edits, maps, saved runs, settings and rollback data were retained. Missing catalog entries alone are not cleanup evidence.

Explicit full deletion

New simulation projects use a durable Core deletion intent, persisted before API acknowledgement. The UI keeps the row with deleting/waiting status; Worker failure retries automatically and Core restart resumes the journal. Processing is cancelled and its local writer stops before cleanup. Worker job, prepared source receipt and original source receipt are removed before local products and catalog metadata. Shared job/source owners are preserved until the last owner is deleted. Existing independent saved runs/maps/edits block deletion with an explanation.

Worker serializes upload ownership admission and deletion, tracks active original/result readers, persists job/source deletion journals and resumes partially completed cleanup. Native executor requests belonging to the job are cancelled; their running/queued records must disappear before removing working files. Small completed tombstones remain as idempotency receipts, not as retained input/output payloads.

Native startup reconciles records provably older than the current OS boot before accepting work. Interrupted responses release the waiting deletion; a previously published completion is preserved. Current-boot orphaned native records still fail closed for process reconciliation rather than deleting under a possibly live child. Physical power loss was not exercised. The three old PLY worlds still have a distinct, explicitly labelled “Hide location” action. This is not full deletion of their independent simulator-owned data.

Qualified runtime and rollback

Gaussian Pipeline deployed revision 277f4b20d011bf0fde2f4b178cfed042449b8dc5, image ndc/gaussian-pipeline:277f4b2, digest sha256:393b20ebf9d58784cbf419a895632f83b8b8c0f89002300989a2bdc43e94573c. Only the existing pipeline service was replaced; gateway, terrain executor, SplatTransform 3.3.3 and persistent data remain in their original contour. The separate native executor is updated independently as described below.

Rollback image: ndc/gaussian-pipeline:1ae2088, revision 1ae2088693ecda3f1bcc92a4159d7c45aa74fe79, digest sha256:3aa6c1c4b6619244d84de51ba386a63b14433dc540f830d17e3c54fa5e30f7c9. Rollback stops new admissions first; source/deletion journal compatibility must be reviewed before serving deletions from an older image.

Native executor is installed at D:/NDC_GAUSSIAN_PIPELINE/runtimes/5a40af071c6295c7db5872f804c03f6c0b569ff4. The existing NODEDC Gaussian Pipeline Executor scheduled task now points there. Its previous runtime 932877ac55b379a0686a6299aafeb494ff5a43a6 remains the rollback and dependency owner: the new runtime junction reuses its node_modules only after matching package-lock SHA-256 690da6bf015ad71a634ac93eb5a44526448bc59c80923086a42753d43e5d28ef. Do not delete that dependency owner while the junction is in use. Previous task XML is retained under staging/native-before-5a40af0.xml. No second executor or GPU environment was added.

The ready-scene UI check exposed that the prior native runtime did not yet consume cancellation requests even though the API did. The versioned native update closes that gap. Pending browser imports also offer full deletion: wait for an in-flight project creation to return its identity, abort upload, persist the server deletion intent, then keep the server row until cleanup completes. A late file-check result cannot recreate a cancelled import; deleting projects cannot be requeued.

Validation

  • Gaussian Pipeline: 73 tests pass (8 native executor tests also pass on Windows Worker), including shared sources, partial cleanup recovery, active build cancellation and detached native request handling.
  • Core: 53 focused backend tests passed before the final dependency fix; 8 deletion tests pass after it, including durable deletion recovery, shared owners, saved-dependency refusal and HTTP 202 intent persistence.
  • Frontend: TypeScript project check, 17 focused architecture/import tests, typography gate and production build pass. Final full frontend suite: 1,619 tests pass. Browser queue tests cover deletion during validation, server creation, active upload, failed delete retry, and retention of the row until a fresh server listing confirms removal.
  • Actual UI: plus/import of the synthetic temporary PLY continued after workspace close/reopen; ready scene and original download verified by SHA-256. External native drag/drop is covered by event tests, not claimed as live desktop QA.
  • Actual UI full deletion completed at 2026-11-16T14:52:34Z for the synthetic temporary scene after owner confirmation. Physical SSH checks found no job directory, retained source receipt, source upload bytes, upload metadata or pin. Core project, deletion intent, catalog entry and editor cache were absent. All 22 protected metadata files of other scenes retained their exact SHA-256. Small completed job/source tombstones remain for idempotency.
  • Live UI exposed an overbroad 8 MiB dependency guard: an unrelated large geometry JSON blocked deletion. Replaced with bounded streaming identity scanning; tests cover an unrelated 9 MiB file and identity crossing a 64 KiB boundary. No user scene was deleted.