Retain imported originals on Worker before retiring Core staging
This commit is contained in:
@@ -202,3 +202,21 @@ profile-permitted surface, detection and observed LiDAR returns. See
|
||||
for deployment, visual acceptance and the reproduced 310 m mission failure.
|
||||
The long mission is not qualified: incorrect/low-confidence surface labels leave
|
||||
no full-width local support after approximately six metres.
|
||||
|
||||
## Gaussian import source ownership (2026-11-07)
|
||||
|
||||
Manual LCC/LCC2 imports now require a reachable provider with durable source
|
||||
retention. Core stages originals only until Worker verifies and retains them.
|
||||
Worker owns originals independently of conversion jobs; Core retains the optimized
|
||||
scene and project/edit metadata. Rebuilds use Worker receipts. The analysis archive
|
||||
compatibility route streams from Worker without downloading a local disk copy.
|
||||
See [storage retention](STORAGE_RETENTION.md#imported-scan-originals--owner-amendment-2026-11-07).
|
||||
Onboard direct upload remains outside this implementation.
|
||||
|
||||
Legacy ready projects can be adopted through `POST /projects/{id}/source/retain`
|
||||
without rebuilding or changing scene IDs. It discovers the Worker original,
|
||||
verifies every imported file and pins normalized archive members independently.
|
||||
An explicit matching receipt can complete an old incomplete upload first.
|
||||
An archive already absent because of the retired capacity-eviction logic is
|
||||
adopted only after fresh Worker hash verification against the original manifest;
|
||||
this does not count as newly freed local space.
|
||||
|
||||
@@ -267,3 +267,38 @@ scripts have no universal disk quota: they must implement the declared capture
|
||||
bound and perform closeout. Existing cache quotas and service-log rotation keep
|
||||
their separate writer-owned enforcement. This amendment does not claim that a
|
||||
filesystem-wide automatic limit or remote Worker cleanup has been installed.
|
||||
|
||||
## Imported scan originals — owner amendment, 2026-11-07
|
||||
|
||||
For manual Gaussian LCC/LCC2 folder and ZIP/RAR/7z imports, Mission Core owns
|
||||
**temporary transfer staging**, not permanent original storage. An available
|
||||
Gaussian provider advertising `durable-source/v1` is required before allocating
|
||||
an upload project. An outage mid-transfer preserves unfinished staging for retry.
|
||||
On complete transfer the provider verifies every admitted original by size and
|
||||
SHA-256, flushes the bytes and publishes an independent retention receipt.
|
||||
Core persists that receipt, freshly verifies remote hashes and its local hashes,
|
||||
journals `verified → retiring → remote`, and removes only the declared local
|
||||
source files. Interrupted retirement resumes using that persisted receipt.
|
||||
There is no low-disk exception that deletes an unverified archive.
|
||||
|
||||
Conversion then runs from Worker storage. Its failure, job cancellation or job
|
||||
removal does not remove retained originals. Retry uses the receipt; no full local
|
||||
fallback copy is created. Core keeps optimized SOG/LOD/collision artifacts,
|
||||
source identity/receipt, small optional trajectory metadata, and application edits.
|
||||
The user's original file outside the imported project's source directory is not
|
||||
part of staging and is never deleted by this workflow.
|
||||
|
||||
Older ready projects can be migrated with
|
||||
`POST /api/v1/simulation-worlds/projects/{id}/source/retain`. The endpoint verifies
|
||||
that the existing provider job includes **every** imported file, retains it,
|
||||
then retires staging without changing the world manifest, source bundle identity,
|
||||
viewer settings, artifacts or semantic map. Legacy archives are resolved through the matching Worker ingest record and their
|
||||
original upload descriptor; missing or mismatched ownership is refused. An old job ID alone never authorizes deletion.
|
||||
|
||||
Provider receipts and pins live in the existing persistent Gaussian data volume,
|
||||
independent of containers/jobs. Migration needs the entire volume, configuration,
|
||||
secrets and compatible executor, not just a Docker image. Provider address is a
|
||||
hint; receipt identity and hashes permit relocation to a different host. See the
|
||||
provider repository `docs/SOURCE_RETENTION.md` for its API and portability boundary.
|
||||
This supersedes local-original retention for this narrowly defined import flow;
|
||||
other recordings, unique evidence and application data remain protected above.
|
||||
|
||||
Reference in New Issue
Block a user