Assemble complete modular LAB recordings on Worker before readiness
This commit is contained in:
@@ -193,8 +193,33 @@ 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.
|
||||
New composition runs now opt into `worker-ready-v1`; legacy runs are not enrolled
|
||||
or rebuilt. The existing Core result reconciler waits for all selected module
|
||||
results, submits a digest-bound `missioncore.replay-build/v1` plan and streams
|
||||
only missing inputs from existing stores. It does not render the new LAB on Mac.
|
||||
A previously published canonical source is restored after Core restart without
|
||||
starting a source exporter. A missing canonical source blocks assembly explicitly.
|
||||
|
||||
The authenticated `/api/v1/laboratory/replay-builds` API registers immutable plans;
|
||||
`/{id}/inputs/{sha}` accepts bounded, hash-verified input streams, and
|
||||
`/{id}/commit` validates the source/member bindings before queueing. Only this
|
||||
input route admits up to 1 GiB per file; other request bodies retain the 8 MiB
|
||||
limit. A single consumer in the existing LAB container runs the existing RRD
|
||||
renderer with the bound FFmpeg asset. No separate model runtime is installed.
|
||||
|
||||
Durable plans/state live under `/lab/presentation/replay-builds/<composition-id>`.
|
||||
An interrupted build resumes after service restart. A successful build publishes
|
||||
the immutable full RRD, then removes only its own input and assembly directories.
|
||||
Active upload/build leases protect it from concurrent full-LAB deletion. Explicit
|
||||
LAB deletion also inventories these owned staging files. No model/source TTL applies.
|
||||
Admission reserves 40 GiB plus declared pending inputs and render headroom.
|
||||
|
||||
Core reports the composition ready only after checking the actual Worker replay
|
||||
manifest. Viewing a new run restores that ready RRD; a missing publication cannot
|
||||
fall back to local assembly. Transport retries are bounded; a failed assembly can
|
||||
be retried via `POST /api/v1/observatory/ai-composition-runs/{id}/retry-replay`
|
||||
without rerunning inference. Core keeps only the small publication receipt and
|
||||
its ordinary, unpinned/pinned local viewing cache under existing storage rules.
|
||||
|
||||
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.
|
||||
|
||||
Reference in New Issue
Block a user