Add prepared urban route guidance to Gaussian simulation planning

Introduce a content-bound scene route provider, advisory runtime graph and plan-preview-launch workflow. Preserve live sensing authority and retire blocked intermediate goals without discarding final-arrival evidence. Bound native visual context losslessly and provide verified cache relocation. Full Maroseyka route qualification remains open.
This commit is contained in:
DCCONSTRUCTIONS
2026-10-08 23:42:26 +03:00
parent 2e85d95c71
commit 31b74e4571
34 changed files with 1451 additions and 83 deletions
+6
View File
@@ -6,6 +6,7 @@ bundle alone is not evidence of which cached USD the renderer will load.
import hashlib
import json
import shutil
import uuid
from pathlib import Path
@@ -83,6 +84,11 @@ def prepare_gaussian(source, convert, recipe, *, cache_root=None):
if valid is not None:
return output, valid
directory.mkdir(parents=True, exist_ok=True)
# USD retains all SH coefficients and is slightly larger than its PLY.
# Refuse before conversion rather than filling the Worker volume midway.
required = int(identity["source_bytes"] * 1.25) + 4 * 1024**3
if shutil.disk_usage(directory).free < required:
raise RuntimeError("Недостаточно места для Gaussian USD-кэша: освободите диск или перенесите кэш.")
token = uuid.uuid4().hex
temporary = directory / (token + ".part.usd")
receipt_temporary = directory / (token + ".part.json")