"""Recheck the post-COMMIT/pre-ack fault after the full campaign has drained.""" import json import time from verify import EVIDENCE,dbtool,save,check campaign = json.loads((EVIDENCE/'pipeline-results.json').read_text(encoding='utf-8')) case = next(x for x in campaign['scenarios'] if x['scenario']=='after_result_commit') deadline = time.monotonic()+40 while True: final = dbtool('inspect',case['job']['attachment_id']) if any(e['event']=='duplicate_ignored' for e in final['events']): break check(time.monotonic()