"""Persistent implementation phase shared by local recipes and the supervisor.""" import json from pathlib import Path def _preferences(root): path = Path(root) / "tests/golden/WBV2/autopilot/preferences.json" return json.loads(path.read_text()) if path.is_file() else {} def implementation_only(root): return _preferences(root).get("verificationTiming") == "after_all_features" def verification_blocked(root): preferences = _preferences(root) return (preferences.get("verificationTiming") == "after_all_features" and preferences.get("allFeaturesImplemented") is not True)