feat(perception): stabilize pre-capture methodology

This commit is contained in:
DCCONSTRUCTIONS
2026-07-28 17:47:06 +03:00
parent 1f20e0d7d9
commit d729abab31
65 changed files with 9698 additions and 152 deletions
+9 -2
View File
@@ -254,7 +254,7 @@ def build_e30_materialization(
source=source,
)
identity = {
identity: dict[str, object] = {
"schema_version": E30_MATERIALIZATION_SCHEMA,
"review_pack": {
"result_id": _required_string(review.manifest, "result_id"),
@@ -635,7 +635,14 @@ def _engineering_triage(
) -> dict[str, object]:
"""Route evidence without pretending that a rule is a semantic verdict."""
selected_count = int(metadata["selected_point_count"])
selected_count_value = metadata["selected_point_count"]
if (
not isinstance(selected_count_value, int)
or isinstance(selected_count_value, bool)
or selected_count_value < 0
):
raise E30MaterializationError("selected point count is invalid")
selected_count = selected_count_value
detector_score = metadata.get("detector_score")
stratum = _required_string(item, "stratum")
locator = _required_object(item, "e29_locator")