Read-only Code and Tooling calls currently acquire an AgentSession that unconditionally runs Runtime.Load and Runtime.Init. This couples project inspection to toolchain/environment readiness, adds startup latency, and can prevent semantic recovery on malformed projects before the analyzer runs. Make Runtime initialization lazy and concurrency-safe: Code/Tooling must start the production agent without Runtime lifecycle; Build/Test/Lint/Stop initialize Runtime on first use; runtime initialization failures retain the existing typed env-blocked Test response. Verify real GetProjectInfo/GetSemanticIndex against malformed source and preserve runtime behavior. Supports #268 and codefly-dev/mind#369.
Read-only Code and Tooling calls currently acquire an AgentSession that unconditionally runs Runtime.Load and Runtime.Init. This couples project inspection to toolchain/environment readiness, adds startup latency, and can prevent semantic recovery on malformed projects before the analyzer runs. Make Runtime initialization lazy and concurrency-safe: Code/Tooling must start the production agent without Runtime lifecycle; Build/Test/Lint/Stop initialize Runtime on first use; runtime initialization failures retain the existing typed env-blocked Test response. Verify real GetProjectInfo/GetSemanticIndex against malformed source and preserve runtime behavior. Supports #268 and codefly-dev/mind#369.