feat(perception): qualify inline temporal stability

This commit is contained in:
DCCONSTRUCTIONS
2026-07-24 09:10:07 +03:00
parent cfc7b062da
commit 23181c867b
16 changed files with 2250 additions and 218 deletions
@@ -21,6 +21,7 @@ from k1link.compute import (
prepare_camera_compute_job,
publish_e21_lab_instance,
publish_e22_lab_instance,
publish_e23_lab_instance,
publish_integrated_lab_instance,
)
from k1link.device_plugins.xgrids_k1.analyze import (
@@ -497,6 +498,89 @@ def publish_e22_lab(
)
@lab_app.command("publish-e23")
def publish_e23_lab(
reference: Annotated[
Path,
typer.Option(
exists=True,
file_okay=False,
readable=True,
resolve_path=True,
help="Accepted zero-based E10 result containing exact source masks.",
),
],
worker_result: Annotated[
Path,
typer.Option(
"--worker-result",
exists=True,
file_okay=False,
readable=True,
resolve_path=True,
help="Accepted E23 inline-temporal worker result.",
),
],
source_report: Annotated[
Path,
typer.Option(
"--source-report",
exists=True,
dir_okay=False,
readable=True,
resolve_path=True,
help="Exact E23 1x replay source report.",
),
],
profile: Annotated[
Path,
typer.Option(
exists=True,
dir_okay=False,
readable=True,
resolve_path=True,
help="Bounded E23 inline-temporal profile.",
),
],
session_id: Annotated[
str,
typer.Option("--session-id", help="New immutable LAB session id."),
],
lab_id: Annotated[
str,
typer.Option("--lab-id", help="LAB marker, for example 'LAB E23.2'."),
],
display_name: Annotated[
str,
typer.Option("--display-name", help="Operator-facing saved-session title."),
],
) -> None:
"""Publish an accepted inline-temporal 1x run as an immutable LAB replay."""
repository_root = Path(__file__).resolve().parents[4]
try:
published = publish_e23_lab_instance(
repository_root=repository_root,
reference_result_root=reference,
worker_result_root=worker_result,
source_report_path=source_report,
profile_path=profile,
lab_session_id=session_id,
lab_id=lab_id,
display_name=display_name,
)
except (OSError, SessionIntegrityError, RuntimeError, ValueError) as exc:
console.print(f"[red]E23 LAB publication failed:[/red] {exc}")
raise typer.Exit(code=2) from exc
console.print(
"[green]E23 LAB instance published.[/green] "
f"session={published.binding.session_id}; "
f"source={published.binding.source_session_id}; "
f"result={published.binding.result_id}; "
"speed=1.0; source_payloads_mutated=false"
)
@app.command("serve")
def serve_console(
port: Annotated[