feat: add local surface review triage
This commit is contained in:
@@ -159,6 +159,7 @@ def test_k1_local_surface_is_dynamic_source_bound_and_read_only(
|
||||
source = E10LidarFieldSource(source_path)
|
||||
try:
|
||||
detail = model.frame_detail(source, 2)
|
||||
review = model.review_detail(source)
|
||||
assert model.report["source"]["passive_processing_only"] is True
|
||||
assert model.report["source"]["firmware_or_device_commands_used"] is False
|
||||
assert model.report["surface_model"]["hardcoded_height_m"] is None
|
||||
@@ -180,8 +181,13 @@ def test_k1_local_surface_is_dynamic_source_bound_and_read_only(
|
||||
assert detail["prediction"]["available"] is True
|
||||
assert detail["temporal"]["compared"] is True
|
||||
assert detail["authority"]["commands_enabled"] is False
|
||||
assert review["available"] is True
|
||||
assert review["ground_truth"] is False
|
||||
assert review["criteria"]["prediction_inlier_fraction_floor"] == 0.85
|
||||
assert review["summary"]["item_count"] == len(review["items"])
|
||||
assert "1.27" not in repr({"identity": model.identity, "report": model.report})
|
||||
assert str(tmp_path) not in repr(detail)
|
||||
assert str(tmp_path) not in repr(review)
|
||||
finally:
|
||||
source.close()
|
||||
model.close()
|
||||
@@ -202,9 +208,14 @@ def test_k1_local_surface_is_dynamic_source_bound_and_read_only(
|
||||
router,
|
||||
"/api/v1/lidar/local-surfaces/{model_id}/timeline",
|
||||
)
|
||||
review_route = _endpoint(
|
||||
router,
|
||||
"/api/v1/lidar/local-surfaces/{model_id}/review",
|
||||
)
|
||||
catalog = catalog_route(limit=10) # type: ignore[operator]
|
||||
frame = frame_route(model_id=output.name, frame_index=2) # type: ignore[operator]
|
||||
timeline = timeline_route(model_id=output.name) # type: ignore[operator]
|
||||
review = review_route(model_id=output.name) # type: ignore[operator]
|
||||
assert catalog["valid_total"] == 1
|
||||
assert catalog["items"][0]["status"] == "diagnostic-only"
|
||||
assert frame["model_id"] == output.name
|
||||
@@ -213,3 +224,6 @@ def test_k1_local_surface_is_dynamic_source_bound_and_read_only(
|
||||
assert sum(timeline["prediction_available"]) >= 4
|
||||
assert len(timeline["temporal_jump"]) == 8
|
||||
assert str(tmp_path) not in repr(timeline)
|
||||
assert review["review_profile_id"] == "missioncore-local-surface-attention/v1"
|
||||
assert review["access"] == "read-only"
|
||||
assert str(tmp_path) not in repr(review)
|
||||
|
||||
Reference in New Issue
Block a user