Record cold-cache LAB playback acceptance and remaining producer integration
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user