@@ -126,9 +126,8 @@ def retrieve(self, text):
126126 _Scaler (0.95 ),
127127 threshold = 0.8 ,
128128 pipeline_run_id = RUN ,
129-
130- safety_guard = PassThroughSafetyGuard (),
131- )
129+ safety_guard = PassThroughSafetyGuard (),
130+ )
132131 env = pipeline .run (at = AT ).envelopes [0 ]
133132 self .assertIsInstance (env , ReviewItem )
134133 # Empty cage → CRE_GAP (coverage proposal), not a silent no_candidates.
@@ -165,9 +164,8 @@ def retrieve(self, text):
165164 known_cre_ids = frozenset ({"616-305" }),
166165 cre_id_map = {"616-305" : "uuid-616" },
167166 cre_membership = frozenset ({"uuid-616" , "616-305" }),
168-
169- safety_guard = PassThroughSafetyGuard (),
170- )
167+ safety_guard = PassThroughSafetyGuard (),
168+ )
171169 result = pipeline .run (at = AT )
172170 self .assertEqual (result .stats .linked , 1 )
173171 env = result .envelopes [0 ]
@@ -195,9 +193,8 @@ def retrieve(self, text):
195193 pipeline_run_id = RUN ,
196194 known_cre_ids = frozenset ({"616-305" , "177-260" }),
197195 cre_membership = frozenset ({"616-305" , "177-260" }),
198-
199- safety_guard = PassThroughSafetyGuard (),
200- )
196+ safety_guard = PassThroughSafetyGuard (),
197+ )
201198 result = pipeline .run (at = AT )
202199 self .assertEqual (result .stats .review , 1 )
203200 env = result .envelopes [0 ]
@@ -225,9 +222,8 @@ def test_bogus_cre_id_cannot_produce_link_proposal(self):
225222 threshold = 0.8 ,
226223 pipeline_run_id = RUN ,
227224 cre_membership = frozenset ({"616-305" }),
228-
229- safety_guard = PassThroughSafetyGuard (),
230- )
225+ safety_guard = PassThroughSafetyGuard (),
226+ )
231227 result = pipeline .run (at = AT )
232228 self .assertEqual (result .stats .linked , 0 )
233229 self .assertEqual (result .stats .review , 1 )
@@ -245,9 +241,8 @@ def test_valid_membership_still_auto_links(self):
245241 threshold = 0.8 ,
246242 pipeline_run_id = RUN ,
247243 cre_membership = frozenset ({"616-305" }),
248-
249- safety_guard = PassThroughSafetyGuard (),
250- )
244+ safety_guard = PassThroughSafetyGuard (),
245+ )
251246 result = pipeline .run (at = AT )
252247 self .assertEqual (result .stats .linked , 1 )
253248 env = result .envelopes [0 ]
@@ -267,9 +262,8 @@ def test_review_suggested_links_drop_invalid_ids(self):
267262 threshold = 0.8 ,
268263 pipeline_run_id = RUN ,
269264 cre_membership = frozenset ({"616-305" }),
270-
271- safety_guard = PassThroughSafetyGuard (),
272- )
265+ safety_guard = PassThroughSafetyGuard (),
266+ )
273267 result = pipeline .run (at = AT )
274268 env = result .envelopes [0 ]
275269 self .assertIsInstance (env , ReviewItem )
@@ -300,9 +294,8 @@ def _run_with(self, failing_component, rows):
300294 parts ["scaler" ],
301295 threshold = 0.8 ,
302296 pipeline_run_id = RUN ,
303-
304- safety_guard = PassThroughSafetyGuard (),
305- ).run (at = AT )
297+ safety_guard = PassThroughSafetyGuard (),
298+ ).run (at = AT )
306299
307300 def test_retriever_failure_is_contained (self ):
308301 result = self ._run_with ("retriever" , [_row ()])
@@ -336,9 +329,8 @@ def rerank(self, text, audit):
336329 _Scaler (0.95 ),
337330 threshold = 0.8 ,
338331 pipeline_run_id = RUN ,
339-
340- safety_guard = PassThroughSafetyGuard (),
341- ).run (at = AT )
332+ safety_guard = PassThroughSafetyGuard (),
333+ ).run (at = AT )
342334
343335 self .assertEqual (result .stats .total , 3 )
344336 self .assertEqual (result .stats .errored , 1 )
@@ -368,9 +360,8 @@ def _run(self, rows, scaler_confidence=0.95):
368360 _Scaler (scaler_confidence ),
369361 threshold = 0.8 ,
370362 pipeline_run_id = RUN ,
371-
372- safety_guard = PassThroughSafetyGuard (),
373- ).run (at = AT )
363+ safety_guard = PassThroughSafetyGuard (),
364+ ).run (at = AT )
374365
375366 def test_outcome_per_row_carries_the_queue_id (self ):
376367 result = self ._run ([_row (row_id = "a" ), _row (row_id = "b" )])
@@ -392,9 +383,8 @@ def test_errored_row_is_not_finished(self):
392383 _Scaler (0.95 ),
393384 threshold = 0.8 ,
394385 pipeline_run_id = RUN ,
395-
396- safety_guard = PassThroughSafetyGuard (),
397- ).run (at = AT )
386+ safety_guard = PassThroughSafetyGuard (),
387+ ).run (at = AT )
398388 self .assertEqual ([o .status .value for o in result .outcomes ], ["errored" ])
399389 self .assertEqual (result .finished_row_ids (), [])
400390
@@ -455,9 +445,8 @@ def llm(system: str, user: str) -> str:
455445 threshold = 0.8 ,
456446 pipeline_run_id = RUN ,
457447 shortlist_llm_fn = llm ,
458-
459- safety_guard = PassThroughSafetyGuard (),
460- )
448+ safety_guard = PassThroughSafetyGuard (),
449+ )
461450 result = pipeline .run (at = AT )
462451 env = result .envelopes [0 ]
463452 self .assertIsInstance (env , ReviewItem )
@@ -479,9 +468,8 @@ def llm(system: str, user: str) -> str:
479468 threshold = 0.8 ,
480469 pipeline_run_id = RUN ,
481470 shortlist_llm_fn = llm ,
482-
483- safety_guard = PassThroughSafetyGuard (),
484- ).run (at = AT )
471+ safety_guard = PassThroughSafetyGuard (),
472+ ).run (at = AT )
485473 self .assertEqual (result .stats .linked , 1 )
486474 self .assertNotIn ("shortlist-judge" , result .envelopes [0 ].retrieval .retriever )
487475
@@ -538,9 +526,8 @@ def _score_fn(pairs):
538526 leaf_drilldown_resources = ("asvs" , "aisvs" ),
539527 leaf_drilldown_min_children = 3 ,
540528 leaf_drilldown_min_sections = 0 ,
541-
542- safety_guard = PassThroughSafetyGuard (),
543- ).run (at = AT )
529+ safety_guard = PassThroughSafetyGuard (),
530+ ).run (at = AT )
544531 env = result .envelopes [0 ]
545532 ids = [c .cre_id for c in env .retrieval .reranked ]
546533 self .assertEqual (ids [:2 ], [hub , "noise" ])
@@ -596,9 +583,8 @@ def _score_fn(pairs):
596583 leaf_drilldown_force_resources = ("api" ,),
597584 leaf_drilldown_min_children = 3 ,
598585 leaf_drilldown_min_sections = 20 ,
599-
600- safety_guard = PassThroughSafetyGuard (),
601- ).run (at = AT )
586+ safety_guard = PassThroughSafetyGuard (),
587+ ).run (at = AT )
602588 env = result .envelopes [0 ]
603589 ids = [c .cre_id for c in env .retrieval .reranked ]
604590 self .assertEqual (ids [0 ], leaf )
@@ -658,9 +644,8 @@ def _score_fn(pairs):
658644 leaf_drilldown_resources = (),
659645 leaf_drilldown_min_children = 3 ,
660646 leaf_drilldown_min_sections = 20 ,
661-
662- safety_guard = PassThroughSafetyGuard (),
663- ).run (at = AT )
647+ safety_guard = PassThroughSafetyGuard (),
648+ ).run (at = AT )
664649 env = result .envelopes [0 ]
665650 ids = [c .cre_id for c in env .retrieval .reranked ]
666651 self .assertEqual (ids [0 ], leaf )
0 commit comments