Load workspace/optimization_plan.json. Returns None if missing.
()
| 93 | |
| 94 | |
| 95 | def load_plan() -> dict | None: |
| 96 | """Load workspace/optimization_plan.json. Returns None if missing.""" |
| 97 | if not PLAN_PATH.exists(): |
| 98 | return None |
| 99 | try: |
| 100 | with open(PLAN_PATH, "r", encoding="utf-8") as f: |
| 101 | return json.load(f) |
| 102 | except (json.JSONDecodeError, OSError) as exc: |
| 103 | print(f"WARNING: Failed to read {PLAN_PATH}: {exc}") |
| 104 | return None |
| 105 | |
| 106 | |
| 107 | # --------------------------------------------------------------------------- |
no outgoing calls
no test coverage detected