The plan_correct_isolated_resolve robot helper patched CorrectionService
at the module level, but correct_decision now resolves the service via
container.correction_service(). The module-level patch had no effect on
the container's already-imported reference, causing the mock to never
intercept the call and the test to fail with exit code 1.
Replace unittest.mock.patch with container.correction_service.override()
which is the idiomatic dependency-injector mechanism and correctly
intercepts the singleton provider.
ISSUES CLOSED: #1025
Add a CLEVERAGENTS_HOME fallback in _resolve_active_plan_id() so isolated subprocess invocations can resolve the active non-terminal plan even when CWD differs from persistent storage. This keeps the existing primary lookup path intact, only falling back when needed, and adds a Robot regression helper/suite that reproduces and verifies the isolated environment behavior without requiring --plan.
ISSUES CLOSED: #1025