MCPcopy Create free account
hub / github.com/RightNow-AI/autokernel / load_plan

Function load_plan

orchestrate.py:95–104  ·  view source on GitHub ↗

Load workspace/optimization_plan.json. Returns None if missing.

()

Source from the content-addressed store, hash-verified

93
94
95def 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# ---------------------------------------------------------------------------

Callers 3

get_or_create_stateFunction · 0.85
cmd_reportFunction · 0.85
cmd_planFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected