fix(provision): platform-managed workspace must fail-closed when CP proxy env absent (#2162) #2164
Reference in New Issue
Block a user
Delete Branch "fix/2162-platform-managed-fail-closed-missing-proxy"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Fixes #2162.
Root cause
applyPlatformManagedLLMEnvreturnedHasUsableLLMCred: truewhenMOLECULE_LLM_BASE_URL+MOLECULE_LLM_USAGE_TOKENwere empty, causing claude-code workspaces to boot credential-less and hit the 600s provision-timeout sweep (adk-demo dark-wedge class, ws29b95be9).Fix
HasUsableLLMCred: false(wastrue).MISSING_PLATFORM_PROXY, symmetric to the BYOKMISSING_BYOK_CREDENTIALhard-fail (#711).Regression tests
TestApplyPlatformManagedLLMEnv_MissingProxyEnvFailClosed: assertsHasUsableLLMCred=falsewhen proxy env absent.TestApplyPlatformManagedLLMEnv_ProxyEnvPresentInjectsCredential: assertsANTHROPIC_API_KEY+ANTHROPIC_BASE_URLinjected when proxy env present.Refs: #2162, #711, #1994
core-qa official-approve — #2162 fail-closed. Verified by CTO: empty-proxy path returns HasUsableLLMCred=false + prepareProvisionContext aborts MISSING_PLATFORM_PROXY (symmetric to BYOK), with the watch-fail regression test. CI/Platform(Go)+all-required green. qa APPROVE.
core-security official-approve — #2162 fail-closed platform-managed provision. No credential-less boot; aborts MISSING_PLATFORM_PROXY. security APPROVE.
/qa-recheck
/security-recheck