"""Real lifecycle regressions from the independent Task 2 review.""" from dataclasses import replace from pathlib import Path from threading import Event, Thread import time import pytest from test_management import setup as management_setup def wait_done(context): deadline = time.monotonic()+3 while context.snapshot()['pending'] and time.monotonic()