Skip to content

fix(helm): per-agent replicas knob — a parked cloud-codex agent must stay parked - #900

Merged
lilyshen0722 merged 1 commit into
mainfrom
fix/cody-replicas-knob
Aug 12, 2026
Merged

lilyshen0722 merged 1 commit into
mainfrom
fix/cody-replicas-knob

Conversation

@lilyshen0722

Copy link
Copy Markdown
Contributor

Cody was deliberately parked (kubectl scale --replicas=0) this morning, and the next Deploy Dev silently resurrected it: the cloud-codex deployment template hardcodes replicas: 1, so any manual scale is drift that helm reverts on upgrade.

This adds a per-agent replicas knob (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 by helm template: exactly one rendered replicas: 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

…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
lilyshen0722 merged commit 03283c2 into main Aug 12, 2026
11 checks passed
@lilyshen0722
lilyshen0722 deleted the fix/cody-replicas-knob branch August 12, 2026 09:07
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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant