@@ -198,9 +198,13 @@ def __post_init__(self) -> None:
198198 ),
199199 )
200200 object .__setattr__ (self , "notes" , _normalize_text_tuple (self .notes , "notes" ))
201- if not self .evidence_bundle_ids and self .kind is not DossierArtifactKind .PROVENANCE_MANIFEST :
201+ if (
202+ not self .evidence_bundle_ids
203+ and self .kind is not DossierArtifactKind .PROVENANCE_MANIFEST
204+ ):
202205 raise ContractValueError (
203- "dossier artifacts require evidence_bundle_ids unless they are provenance manifests."
206+ "dossier artifacts require evidence_bundle_ids unless they are "
207+ "provenance manifests."
204208 )
205209
206210 def is_provenance_backed (self ) -> bool :
@@ -255,7 +259,9 @@ def __post_init__(self) -> None:
255259 if not self .supports_artifact_ids :
256260 raise ContractValueError ("dossier evidence references require supports_artifact_ids." )
257261 if not self .supports_requirement_ids :
258- raise ContractValueError ("dossier evidence references require supports_requirement_ids." )
262+ raise ContractValueError (
263+ "dossier evidence references require supports_requirement_ids."
264+ )
259265
260266
261267@dataclass (frozen = True , slots = True )
@@ -416,7 +422,11 @@ def trace_thread_ids(self) -> tuple[str, ...]:
416422 def open_trace_thread_ids (self ) -> tuple [str , ...]:
417423 """Return trace thread IDs that are not closed."""
418424
419- return tuple (thread .trace_thread_id for thread in self .trace_threads if not thread .is_closed ())
425+ return tuple (
426+ thread .trace_thread_id
427+ for thread in self .trace_threads
428+ if not thread .is_closed ()
429+ )
420430
421431 def blocking_trace_thread_ids (self ) -> tuple [str , ...]:
422432 """Return trace thread IDs that explicitly block acceptance."""
@@ -434,14 +444,18 @@ def runtime_artifact_ids(self) -> tuple[str, ...]:
434444 """Return runtime artifact IDs in manifest order."""
435445
436446 return tuple (
437- artifact .artifact_id for artifact in self .artifacts if artifact .kind .is_runtime_artifact ()
447+ artifact .artifact_id
448+ for artifact in self .artifacts
449+ if artifact .kind .is_runtime_artifact ()
438450 )
439451
440452 def closure_artifact_ids (self ) -> tuple [str , ...]:
441453 """Return closure artifact IDs in manifest order."""
442454
443455 return tuple (
444- artifact .artifact_id for artifact in self .artifacts if artifact .kind .is_closure_artifact ()
456+ artifact .artifact_id
457+ for artifact in self .artifacts
458+ if artifact .kind .is_closure_artifact ()
445459 )
446460
447461 def required_evidence_bundle_ids (self ) -> tuple [str , ...]:
0 commit comments