refactor(lab): move execution to Worker and manage replay and transfer lifecycles

This commit is contained in:
DCCONSTRUCTIONS
2026-11-10 01:09:39 +03:00
parent cd34b6ce1a
commit fe5900ff3b
101 changed files with 9305 additions and 2256 deletions
+60
View File
@@ -5,6 +5,17 @@ real device plugin investigates an owner-controlled XGRIDS/LixelKity K1 as a
black-box sensor. Preserve the device, the host, the working LAN, raw evidence,
and the boundary between Mission Core and vendor-specific integration code.
- Owner clarification (2026-11-08): LAB trash means permanent deletion of that
LAB's admitted files on Core and Worker, followed by removal from history.
Do not replace it with catalog-only hiding or leave unreachable result bytes.
Source recordings and files shared by retained LABs are separate owners.
Worker acknowledgement is mandatory; on failure keep a retryable history row.
Local-copy expiry/delete is a separate action that preserves history and Worker
results. Pin protects against expiry, not explicit full-LAB deletion.
A LAB module/registered component, its model, benchmark and shared inputs are
not disposable run output. Missing UI history alone is never evidence of junk;
establish ownership and dependencies before retiring an old experiment.
## Single working directory — owner requirement, 2026-10-08
The governing Ops record is [MISSIONCOR-50 — Фундаментальная архитектура Mission Core](https://ops.nodedc.ru/nodedc/browse/MISSIONCOR-50),
@@ -75,6 +86,55 @@ links to that record for monorepo, storage, resource and live-only telemetry rul
retain the immutable algorithm result and human provenance separately.
See `docs/SEMANTIC_EDITOR.md` for the delivered scope and outstanding gates.
## LAB placement — owner clarification, 2026-11-08
All supported laboratory execution, raw inputs, intermediate arrays and heavy
working directories belong to the portable Worker runtime. The operator Core is
a viewport: retain ready visual products, semantic maps/manual edits and bounded
metadata, never a silent local compute fallback. See
`docs/LAB_AND_INSTALLER_STORAGE.md` and `deploy/laboratory/README.md`.
Canonical Ops policy: [MISSIONCOR-97 — Storage rules](https://ops.nodedc.ru/nodedc/browse/MISSIONCOR-97).
Read its current rules before a new LAB/AI data producer or storage migration;
keep current implementation distinct from the dated distributed-storage research.
A LAB viewing result means a full playable recording with synchronized
segmentation/camera frames, 3D cuboids and timeline where the experiment provides
those layers. Catalog JSON, a screenshot or a textual report does not establish
playback acceptance. Preserve the current UI; do not add neural/narrative reports
or redesign LAB as part of storage migration. Later owner clarification on
8 November explicitly adds global Storage settings (configurable local LAB-copy
retention), offline pins, actual local availability and removal of local copies.
Run history must remain discoverable independently of replay compatibility or
local cache presence. These are requirements, not features already implemented
by the storage audit; see `outputs/storage-fresh-audit-20261108/REPORT.md`.
Verify real playback before retiring local working data; preserve accepted
recordings, Gaussians, semantic edits and original captures.
The configurable LAB-copy TTL (default 30 days) applies exclusively to unpinned
local viewing copies in Mission Core, never to Worker experiments or their models.
Integrated/experimental model assets, installed executor packages/images, runtime
environments and experimental configurations are retained until a separate owner
decision consolidates the pipeline, even under `cache` or `derived`. Do not apply
LAB-copy TTL or absence-from-UI cleanup to them. A disposable transport package
means job input/output transfer bytes, not an executor/model distribution. Before retiring an intermediate
copy, verify publication/retry readers, shared owners and restoration of its exact
identity. See the 8 November intermediate-store rules in
`docs/STORAGE_RETENTION.md` and `outputs/intermediate-storage-review-20261108/REPORT.md`.
Portable source/result transfer uses shared physical-disk reservations (2 GiB
free reserve), not fixed 8/4 GiB directory ceilings or model-count limits.
Source copies registered by admitted producers retire only after durable queue
consumers finish and exact originals remain available. HTTP reader locks span the
whole response. Preserve unknown paths, changed originals, shared filesystem
owners and pending publication/reconciliation. Source retirement is not a TTL.
Result closeout retains manifest/receipt for archive-backed retries; do not
readmit retired compute definitions merely to retire historical copies.
Use an explicit target allowlist for one-time historical cleanup and verify
unselected files; unknown old copies are not automatically adopted by a scan.
These rules do not change installed model/executor assets or viewing-copy TTL.
See the 9 November transfer lifecycle section of `docs/STORAGE_RETENTION.md`.
## Non-negotiable safety boundaries
- Default to non-mutating discovery or read-only operations. CoreBluetooth BLE