docs(security): expose missing owner response lanes
This commit is contained in:
@@ -134,6 +134,7 @@ def validate(root: Path) -> None:
|
||||
assert_false(f"rollup.{flag}", rollup_summary[flag])
|
||||
|
||||
lane_by_id = {lane["lane_id"]: lane for lane in rollup["validation_lanes"]}
|
||||
missing_lane_by_id = {lane["lane_id"]: lane for lane in rollup["missing_response_lanes"]}
|
||||
total_templates = 0
|
||||
total_acceptance_checks = 0
|
||||
total_rejection_rules = 0
|
||||
@@ -142,6 +143,7 @@ def validate(root: Path) -> None:
|
||||
snapshot = load_json(security_dir / lane["path"])
|
||||
summary = snapshot["summary"]
|
||||
rollup_lane = lane_by_id[lane["lane_id"]]
|
||||
missing_lane = missing_lane_by_id[lane["lane_id"]]
|
||||
|
||||
assert_equal(f"{lane['lane_id']}.status", summary["owner_response_status"], "waiting_owner_response")
|
||||
assert_equal(f"{lane['lane_id']}.response_template_count", summary["response_template_count"], lane["expected_templates"])
|
||||
@@ -160,6 +162,15 @@ def validate(root: Path) -> None:
|
||||
assert_equal(f"{lane['lane_id']}.rollup_received_response_count", rollup_lane["received_response_count"], 0)
|
||||
assert_equal(f"{lane['lane_id']}.rollup_accepted_response_count", rollup_lane["accepted_response_count"], 0)
|
||||
assert_equal(f"{lane['lane_id']}.rollup_rejected_response_count", rollup_lane["rejected_response_count"], 0)
|
||||
assert_equal(f"{lane['lane_id']}.missing_current_status", missing_lane["current_status"], "waiting_owner_response")
|
||||
assert_equal(
|
||||
f"{lane['lane_id']}.missing_response_template_count",
|
||||
missing_lane["response_template_count"],
|
||||
lane["expected_templates"],
|
||||
)
|
||||
assert_equal(f"{lane['lane_id']}.missing_received_response_count", missing_lane["received_response_count"], 0)
|
||||
assert_equal(f"{lane['lane_id']}.missing_accepted_response_count", missing_lane["accepted_response_count"], 0)
|
||||
assert_equal(f"{lane['lane_id']}.missing_awooop_display_mode", missing_lane["awooop_display_mode"], "observe_missing_response")
|
||||
|
||||
for flag in lane["false_flags"]:
|
||||
assert_false(f"{lane['lane_id']}.{flag}", summary[flag])
|
||||
@@ -171,6 +182,7 @@ def validate(root: Path) -> None:
|
||||
assert_equal("source_packets.total_templates", total_templates, rollup_summary["total_response_template_count"])
|
||||
assert_equal("source_packets.total_acceptance_checks", total_acceptance_checks, rollup_summary["total_acceptance_check_count"])
|
||||
assert_equal("source_packets.total_rejection_rules", total_rejection_rules, rollup_summary["total_rejection_rule_count"])
|
||||
assert_equal("missing_response_lanes.count", len(missing_lane_by_id), len(LANES))
|
||||
|
||||
local_validation = rollup["latest_local_validation"]
|
||||
assert_equal("rollup.latest_local_validation.status", local_validation["status"], "repo_snapshot_guard_pass")
|
||||
|
||||
Reference in New Issue
Block a user