fix(perception): bound LAB replay to AI window
This commit is contained in:
@@ -199,6 +199,8 @@ def publish_e21_lab_instance(
|
||||
store.data_dir,
|
||||
source_session_id=reference.job.session_id,
|
||||
lab_session_id=lab_session_id,
|
||||
timeline_start_ns=round(validated.timeline_start_seconds * 1_000_000_000),
|
||||
timeline_end_ns=round(validated.timeline_end_seconds * 1_000_000_000),
|
||||
)
|
||||
binding = store.publish_lab_instance(
|
||||
session_id=lab_session_id,
|
||||
@@ -210,9 +212,13 @@ def publish_e21_lab_instance(
|
||||
source_result_id=str(e21_document["result_id"]),
|
||||
config_sha256=str(e21_report["identity"]["profile_sha256"]),
|
||||
run_created_at_utc=str(e21_report["created_at_utc"]),
|
||||
duration_seconds=(
|
||||
validated.timeline_end_seconds - validated.timeline_start_seconds
|
||||
),
|
||||
include_recorded_media=False,
|
||||
provenance={
|
||||
"schema_version": "missioncore.e21-lab-publication/v1",
|
||||
"storage_mode": "hard-linked-source-and-bounded-derived-projection",
|
||||
"storage_mode": "bounded-derived-replay-and-projection",
|
||||
"e21_result_id": e21_document["result_id"],
|
||||
"worker_result_id": worker_document["result_id"],
|
||||
"semantic_reference_result_id": reference.result_id,
|
||||
@@ -227,6 +233,8 @@ def publish_e21_lab_instance(
|
||||
498,
|
||||
],
|
||||
"visual_frame_count": frame_count,
|
||||
"timeline_start_seconds": validated.timeline_start_seconds,
|
||||
"timeline_end_seconds": validated.timeline_end_seconds,
|
||||
"source_payloads_mutated": False,
|
||||
},
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user