Repository navigation
fix(helm): per-agent replicas knob — a parked cloud-codex agent must stay parked - #900
Merged
Merged
Conversation
…stay parked cloud-codex deployments hardcoded replicas: 1, so parking an agent with kubectl scale --replicas=0 was drift the next helm upgrade silently reverted — Cody resurrected on today's deploy exactly that way, minutes after being deliberately parked. The knob defaults to 1 (no behavior change for agents that don't set it) and Cody's values entry pins 0: Deployment, PVC, token secret, and AgentInstallation identity all stay, so flipping back to 1 revives it whole. Deleting the values block instead would tear the state down. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01XeUH4HVDsDHYPsHJthXjB8
lilyshen0722
added a commit
that referenced
this pull request
Aug 13, 2026
…un 401'd before its model (#912) The Guide's first live smoke run failed with "Incorrect API key provided: placeholder" from platform.openai.com — not the model (deepseek-v4-flash authenticates fine, probed) but the openai-moderation-enforce guardrail, whose OPENAI_API_KEY is the literal placeholder. Every guarded native run dies on the guardrail before reaching any model, which is also the probable cause of the native fleet's 98% July failure rate (predating the August LiteLLM outage the #891 review surfaced). NATIVE_RUNTIME_GUARDRAILS becomes helm-tracked (a kubectl-set env is drift the next upgrade reverts — the #900 lesson) and dev pins it to injection-guard only: LiteLLM-native, keyless, and the guardrail that actually matters for untrusted input. Restore the moderation layer when a real OpenAI key lands in the api-keys secret. Claude-Session: https://claude.ai/code/session_01XeUH4HVDsDHYPsHJthXjB8 Co-authored-by: Claude Fable 5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Cody was deliberately parked (
kubectl scale --replicas=0) this morning, and the nextDeploy Devsilently resurrected it: the cloud-codex deployment template hardcodesreplicas: 1, so any manual scale is drift that helm reverts on upgrade.This adds a per-agent
replicasknob (default 1 — no change for agents that don't set it) and pins Cody's values entry to 0. Parking via values preserves the Deployment spec, PVC, token secret, and AgentInstallation identity — flip to 1 to revive whole. Verified byhelm template: exactly one renderedreplicas: 0(cody), chart lint clean.No deploy urgency: Cody is manually scaled to 0 again right now; this makes the park survive the next deploy.
🤖 Generated with Claude Code
https://claude.ai/code/session_01XeUH4HVDsDHYPsHJthXjB8