pub fn load_file(
path: impl AsRef<Path>,
kind: AgentKind,
) -> Result<AgentDef, LoadError>Expand description
Turn a single agent.md file into an AgentDef.
kind must be provided explicitly by the caller. The old
hardcoded Operator default was structurally wrong: an agent.md
has no knowledge of deployment and should not decide kind in the
loader. The caller passes the kind after resolving the cascade —
Blueprint.default_agent_kind → the sibling $agent_md override
→ CompilerHints.kind_override. spec is produced as
Value::Null; the caller overwrites it if needed.