Skip to content

Commit 8817d91

Browse files
authored
Update mission_health.py
1 parent 48381b2 commit 8817d91

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/ix_style/telemetry/mission_health.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
from dataclasses import dataclass, field
66
from datetime import UTC, datetime
7-
from typing import Any
7+
from typing import TYPE_CHECKING, Any
88

99
from ix_style.core.enums import (
1010
ArbitrationOutcome,
@@ -17,7 +17,8 @@
1717
from ix_style.core.ids import IdFactory
1818
from ix_style.fdir.models import FaultPriority, FaultRecord
1919
from ix_style.trust.models import TrustRecord
20-
from ix_style.verification.models import VerificationResult
20+
if TYPE_CHECKING:
21+
from ix_style.verification.models import VerificationResult
2122

2223

2324
_PRIORITY_ORDER: dict[str, int] = {
@@ -118,7 +119,6 @@ def _derive_review_significance(
118119
) -> ReviewSignificance:
119120
if (
120121
dominant_posture is SafetyPosture.SAFE_HOLD
121-
or highest_priority == FaultPriority.P1_CONTAINMENT_CRITICAL.value
122122
or decision_outcome
123123
in {
124124
ArbitrationOutcome.VETO.value,
@@ -258,7 +258,7 @@ def _build_trust_summary(self, records: dict[str, TrustRecord]) -> dict[str, Any
258258
for record in records.values()
259259
if record.posture_driving
260260
),
261-
None,
261+
"",
262262
)
263263

264264
return {

0 commit comments

Comments
 (0)