Record cold-cache LAB playback acceptance and remaining producer integration

This commit is contained in:
DCCONSTRUCTIONS
2026-11-10 03:23:43 +03:00
parent 1317f78672
commit 800518ea80
4 changed files with 145 additions and 10 deletions
+44
View File
@@ -158,3 +158,47 @@ from `k1link.observatory.modular_model_assets`; its legacy promotion CLI is reti
Rollback of compute admission requires a deliberate versioned registry/runtime
change; do not launch the frozen compatibility fixtures as current configuration.
See `outputs/lab-retirement-transport-20261108/REPORT.md` for IDs and evidence.
## Publishing a complete portable LAB recording
The service exposes authenticated read-only manifest and RRD routes:
`GET /api/v1/laboratory/portable-replays/<result-id>/<base-sha>` and
`GET .../recording.rrd?generation=<content-sha>`. The RRD supports Range/If-Range;
manifest identity, source generation, renderer cache key and content hash must
match. Missing publication is 404; missing/corrupt **published** payload is 409,
and a wrong requested generation is 412. Existing Bearer authentication applies;
no public port, arbitrary file reader or new credentials are introduced.
An internal producer publishes a validated `missioncore.ready-lab-replay/v1`
manifest and complete RRF2 file with `ReplayPublications.publish`, or inside the
configured Worker runtime:
```sh
python -m k1link.laboratory.replay_publication --runtime-root /lab --manifest /lab/OWNED_JOB/manifest.json --source /lab/OWNED_JOB/complete.rrd
```
`OWNED_JOB` denotes a producer-owned path, not a literal deployment folder. The
CLI requires existing Worker authority. Payloads live on the bound volume at
`/lab/presentation/portable-replays/<result-id>/<base-sha>/<sha>.rrd`, never in the
image. Existing generations cannot be replaced; exact publication retries are
idempotent. Retain this directory with the runtime during a host move. Full LAB
trash inventories it; active transfer leases block destruction.
Current manifests admit files up to 1 GiB and publication preserves a 40 GiB Worker
free-space reserve. Core uses its existing 4 GiB portable publication budget and
2 GiB free reserve. These refuse new copies without evicting accepted products.
Core retries transient read interruptions at most three times within 30 minutes,
validating Range, ETag, length, RRF2 and SHA-256 before atomic publication. This
is in-process retry, not persistent resume after a Core crash.
Acceptance on 10 November backfilled the three current accepted RRDs unchanged.
Future executor completion is **not yet automatically wired** to this publication
API. Preserve that distinction when introducing a new producer.
For non-destructive cold-view acceptance only, `MISSIONCORE_LAB_VIEW_CACHE_DIR`
redirects the portable cache and its local-copy index to an owned empty test root.
It leaves the source catalog, original cache and full-deletion guards unchanged.
Use the single canonical Core service; remove this environment override and
restart that service after testing, verify the original index/pin, then remove
only the inventoried test copies. It is not a new operational storage destination.
+35 -3
View File
@@ -85,9 +85,10 @@ The operator composition routes the migrated legacy LAB and LiDAR APIs and
four recorded-perception endpoints to the Worker service. Those routes stream
responses with Range, ETag and their existing visualization contracts without
restoring whole compute directories. This does **not** cover every Observatory
path: the separate portable workflow still uses operator source CAS, result
staging/artifact storage and local replay packaging. The 8 November fresh audit
below records this remaining gap. Ready scenes, accepted visual recordings,
path: the portable workflow still has operator source CAS and result staging.
On 10 November complete Worker-published portable recordings gained a verified
restore path; legacy products without a publication retain local replay packaging.
See the dated acceptance below; this is not a universal remote-only resolver. Ready scenes, accepted visual recordings,
semantic maps, edits and compact recovery metadata remain legitimate products.
The Worker owns `experiments/laboratory` under the runtime volume. This is a
@@ -341,3 +342,34 @@ automatic retention implementation. Published result transport now supports CAS-
receipts and corruption checks. Source copies now retire after verified last-consumer completion, never by age.
Unknown historical copies stay protected. Models, images and experimental
environments are excluded. See `outputs/lab-source-lifecycle-20261109/REPORT.md`.
## Complete ready portable products — 10 November 2026
`ReplayPublications` owns full immutable RRDs in the existing managed Worker LAB
volume at `presentation/portable-replays/<result-id>/<base-sha>/`. A strict manifest
binds result, exact source generation, renderer/cache key, content SHA-256 and size.
Publication checks the file, copies atomically, and writes the manifest last.
It is a viewing product, not an input archive or new compute scheduler.
Core reads this product through its existing authenticated LAB connection. Only
verified complete bytes enter the existing portable cache/index and inherit its
pin/TTL/local-delete behavior. Published payload failure is not silently rebuilt;
404 for a not-yet-published legacy product preserves its previous preparation path.
Registered full-LAB deletion includes Worker publication files and composition
identity, blocks active transfers, and protects shared jobs/sources. No Worker TTL
is introduced. Current per-file admission is 1 GiB, operator publication budget
4 GiB with the existing free-space reserve; these are storage admission bounds,
not a cap on the number of model components. Larger visual products need an
explicit admission/chunking change, not deletion of accepted data.
Three existing RAVNOVES004TREE products were published unchanged and restored
through the UI from an empty isolated view cache: TGS 424,391,097 bytes, DDRNet
425,917,464 bytes, composition 488,555,813 bytes. Hashes, Play/Pause/seek and visible
layers passed. Original local copies/index/pin were restored unchanged; only test
copies were removed. Evidence: `outputs/lab-cold-replay-20261110/REPORT.md`.
The producer publication API/CLI exists; automatic invocation by every future
executor is an outstanding integration gate. This backfill and viewing acceptance
must not be described as new inference acceptance or removal of all portable
source/artifact dependencies from Core.
+41
View File
@@ -321,3 +321,44 @@ firewall policy is also board-oriented. Therefore importing a server profile
does not prepare Worker 006 on WireGuard. Worker peer admission and routing need
a separate communications change, independent of the deferred LAB/Docker setup.
No VPS profile, board tunnel or active Worker connection was changed here.
## Cold portable LAB UI acceptance — 2026-11-10
The canonical Core on port 8000 was tested with an isolated empty **viewing cache**
through the existing Chrome UI. The production cache, original recordings, model
artifacts and catalog were retained. No LTE handover or Wi-Fi setting was changed.
| Accepted LAB | Full Worker payload | UI checks |
| --- | ---: | --- |
| TRAVEL TGS | 424,391,097 bytes | Download button, eye, 3D playback, pause, seek to 405 s |
| DDRNet-39 / GOOSE | 425,917,464 bytes | Cold eye, camera/segmentation, playback, pause, seek to 700 s |
| Combined LAB | 488,555,813 bytes | Cold eye, synchronized camera/segmentation/boxes and 3D, pause, seek to 405/60 s |
All three payload SHA-256 values matched the accepted originals. Total full RRD
payload: 1,338,864,374 bytes; this is verified file content, not a measured network
traffic total or an LTE speed measurement. Warm reopening did not rewrite payloads.
The original three files/sidecars, index and pinned composition stayed byte-identical
with unchanged mtimes. Normal service configuration was restored, the three rows
and pin were checked in the UI, and only owned temporary test copies were removed.
The repair adds immutable complete RRD publication on Worker and an authenticated
Core restore reader, using the existing LAB gateway binding. Length, generation,
ETag and SHA-256 are validated before atomic cache registration. A bounded transient
read retry uses Range/If-Range. Wrong-generation/corrupt/unavailable published
products fail visibly; only an absent publication (404) retains legacy assembly.
Full-LAB deletion now inventories the publication, including composition ownership,
while retaining shared jobs and source recordings. No live LAB was deleted to test it.
The current three products were backfilled unchanged; no inference reran. Future
producer completion still needs to invoke the publication API. This acceptance
therefore does not establish a clean-machine install, automatic publication for
all future models, or a universal remote-only resolver. 41 selected Python tests
passed; new files passed Ruff. No frontend code changed.
Local evidence (not public Git payload):
`outputs/lab-cold-replay-20261110/REPORT.md`, `cold-start.json`, `cold-files.json`,
`preservation.json`, `local-closeout.json`, `deployment-closeout.json` and
`combined-playback.jpg`. Source modules:
`laboratory/replay_publication.py`, `laboratory/replay_restore.py`,
`web/worker_ready_replays.py` under `src/k1link`.
+25 -7
View File
@@ -52,13 +52,31 @@ LAB с Worker; повторно доказывать уже наблюдавшу
TGS, а не восстановление одной из трёх переносимых LAB кнопкой интерфейса.
Подробности: [Wi-Fi-проверка](WORKER_CONNECTIONS.md#wi-fi-result-transport-acceptance--2026-11-10).
Оставшийся продуктовый шаг: взять одну переносимую LAB в изолированном пустом
кэше и проверить её полный штатный путь до воспроизведения. Сначала установить,
как восстанавливаются её точные зависимости: текущий PortableReplayService собирает
запись из локальных входов и сам Worker не запрашивает. Готовность API-транспорта
не закрывает этот разрыв. Автоматический повтор в UI и реальный сетевой обрыв
проверять отдельно; рабочие/закреплённые данные ради теста не удалять. Длительная
работа остаётся отдельной проверкой, а не основанием бесконечно повторять короткие тесты.
Продуктовый шаг закрыт 10 ноября: все три действующие LAB RAVNOVES004TREE
проверены через штатный интерфейс с изолированным пустым кэшем готовых записей.
TRAVEL TGS загружена отдельной кнопкой; DDRNet/GOOSE и составная LAB — при открытии
глазиком. Получено 1 338 864 374 байта полных RRD с Worker, размеры и SHA-256 точно
совпали с принятыми версиями. Во всех трёх проверены видимые слои, Play/Pause и
перемотка; повторное открытие использовало кэш. Штатные рабочие файлы, их времена
изменения, индекс и закрепление композиции сохранены. Тестовый кэш удалён.
Для этого добавлены публикация полной неизменяемой записи в управляемом томе Worker
и получение через существующее подключение LAB. Проверяется поколение, длина и хеш;
при кратком транспортном сбое чтение повторяется с Range/If-Range. Автоматическая
дозагрузка проверена тестом с обрывом после 1 MiB; реальный обрыв сети в UI на этом
шаге не имитировался. Полный UI-прогон выполнен на Wi-Fi, не на LTE.
Граница принятого: три существующие записи без изменения их содержимого заранее
опубликованы на Worker. Автоматическая публикация полного продукта каждым будущим
исполнителем ещё не подключена; для неопубликованных legacy-записей сохранён старый
путь сборки. Исходные записи, общие зависимости и метаданные в этой проверке не
стирались. Это пустой кэш просмотра, не развёртывание нового Mac и не доказательство
универсального remote-only контура. Следующее изменение вычислительного контура
должно подключить публикацию к завершению задания, с ownership и приёмкой, без
повторного переноса модели/датасета на операторский компьютер.
Доказательства: [полная приёмка просмотра](WORKER_CONNECTIONS.md#cold-portable-lab-ui-acceptance--2026-11-10),
[локальный отчёт](../outputs/lab-cold-replay-20261110/REPORT.md).
### 2. Довести WireGuard как дополнительное подключение воркера