Skip to content

chore(helm): park the clawdbot gateway in values, not just kubectl - #1051

Merged
lilyshen0722 merged 1 commit into
mainfrom
chore/park-clawdbot-gateway-in-values
Aug 20, 2026
Merged

lilyshen0722 merged 1 commit into
mainfrom
chore/park-clawdbot-gateway-in-values

Conversation

@lilyshen0722

Copy link
Copy Markdown
Contributor

Makes the park durable. kubectl scale --replicas=0 alone is undone by the next Deploy Dev — the template hardcodes replicas: 1 behind agents.clawdbot.enabled, and helm upgrade restores whatever the chart declares. Without this, every deploy silently resurrects a tier whose credentials have been dead since 2026-07-02.

Full context, evidence, and the cleanup checklist: #1050.

The comment in values carries the two things the next reader needs: why it's off (retiring per ADR-021/ADR-023, seven-week credential death nobody noticed), and that identity continuity holds — User rows, memory, and installations survive (ADR-001), so the same agents return as themselves on the pi/OpenCode replacement runtime.

Not in this PR: deploy-dev.yml still builds the gateway image each run (built, not deployed — wasteful, harmless). Neither account can push workflow files (no workflow scope), so that's a checklist item in #1050 for whenever the scope gets added.

🤖 Generated with Claude Code

https://claude.ai/code/session_01XeUH4HVDsDHYPsHJthXjB8

The manual scale-to-0 alone is UNDONE by the next Deploy Dev: the template
hardcodes replicas: 1 behind agents.clawdbot.enabled, and helm upgrade restores
whatever the chart declares. Without this flag flip, every deploy silently
resurrects a tier whose credentials have been dead since 2026-07-02.

Context and cleanup checklist: #1050. Identity continuity holds (ADR-001) —
User rows, memory, and installations survive, so the same agents return as
themselves on the pi/OpenCode replacement runtime.
@lilyshen0722
lilyshen0722 merged commit 7c1ed0f into main Aug 20, 2026
12 checks passed
@lilyshen0722
lilyshen0722 deleted the chore/park-clawdbot-gateway-in-values branch August 20, 2026 18:09
lilyshen0722 added a commit that referenced this pull request Aug 20, 2026
The hardcoded list waited 8 minutes for clawdbot-gateway after #1051 parked
it — enabled: false removes the Deployment entirely — so run 32405914779 went
red while the deploy had fully succeeded (helm ran first; live tag was main's
head; all pods healthy). Every subsequent deploy would repeat that: alarm
fatigue over the exact signal this step exists to give, and a mask over
genuinely failed rollouts.

Deriving from kubectl get deploy means a future workload joins the gate the
moment its chart ships it and a parked one leaves the moment it is disabled —
the gate follows the release rather than a memory of it. A deployment scaled
to zero passes instantly (0 of 0 updated), which is correct: parked is not
stuck. An EMPTY namespace fails loudly rather than vacuously passing.

First workflow push since the scope gap closed — gh auth refresh -s workflow
on lilyshen0722, run by Sam 2026-08-20, per the standing note that previously
misattributed this capability.
lilyshen0722 added a commit that referenced this pull request Aug 20, 2026
The hardcoded list waited 8 minutes for clawdbot-gateway after #1051 parked
it — enabled: false removes the Deployment entirely — so run 32405914779 went
red while the deploy had fully succeeded (helm ran first; live tag was main's
head; all pods healthy). Every subsequent deploy would repeat that: alarm
fatigue over the exact signal this step exists to give, and a mask over
genuinely failed rollouts.

Deriving from kubectl get deploy means a future workload joins the gate the
moment its chart ships it and a parked one leaves the moment it is disabled —
the gate follows the release rather than a memory of it. A deployment scaled
to zero passes instantly (0 of 0 updated), which is correct: parked is not
stuck. An EMPTY namespace fails loudly rather than vacuously passing.

First workflow push since the scope gap closed — gh auth refresh -s workflow
on lilyshen0722, run by Sam 2026-08-20, per the standing note that previously
misattributed this capability.
lilyshen0722 added a commit that referenced this pull request Sep 20, 2026
… deployment (#1819)

Both pages read as current operating guidance and are not. The
clawdbot-gateway Deployment is parked — agents.clawdbot.enabled: false in
values-dev.yaml since #1051 — under ADR-021's staged OpenClaw retirement.

Sam's ruling in the wash inventory keeps both pages: one is the write-up of
the 2026-06-28 incident CLAUDE.md cites, the other is linked twice from
ADR-005 and ADRs are not rewritten. So each gets a first-line note rather
than a rewrite or a delete, and the inventory rows are marked done.

Co-authored-by: Claude Opus 5 <[email protected]>
lilyshen0722 added a commit to KGKallasmaa/commonly that referenced this pull request Nov 10, 2026
…d pin (Team-Commonly#3728)

* chore(deploy): retire the parked gateway from the chart, workflows and pin

ADR-021 Part B accepted this retirement. The gateway has been off since
Team-Commonly#1051, and prod has no gateway Deployment or PVC.

Gone: the gateway Deployment, Service and PVC templates, the filestore
StorageClass, the clawdbot-config ConfigMap, the CLAWDBOT_* env on backend
and ops-runner, the gateway token and the shared GITHUB_PAT projection,
every agents.clawdbot value, the Deploy Dev gateway steps, the
_external/clawdbot submodule, the docker-compose gateway services, and the
local bootstrap. ./dev.sh clawdbot and commonly dev clawdbot now refuse in
plain words.

Why it is safe: no remaining template reads the removed values, and a
private values file that still sets agents.clawdbot.* renders the same
manifest. The only render differences are the intended removals. The
backend keeps its moltbot driver and boots with the env unset, and it
recreates the ConfigMap if a provision path ever writes it.
/api/health/clawdbot now answers not_configured without probing when the
URL is unset.

The tool contract check is gone with the pin. Its native half stays as
verify-preset-tool-names. verify-agent-default-model no longer reads the
gateway seed config. A new guard test fails if a chart template or a deploy
workflow names the gateway again. Agents' User rows and memory are untouched.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_015AKgpN1QhxGKRxQeoqFeov

* chore(deploy): retired gateway: last test reference and docs that still described it

The commonly-bot chart test still listed the deleted gateway template and
failed with ENOENT, which would have turned the agent service tests step
red. That line is gone. The guard test now also fails when any tracked file
outside docs names a deleted template or the retired contract script, so the
same miss cannot recur.

The rest are honest edits to lines that still described the gateway as a
shipped profile: the self-hosting Helm reference, the Kubernetes quick start,
the staging runbook, the agent runtime docs, the Latchkey workflow note, the
cue-signature test header and a provisioner comment. The quick rules also
marked the shared GitHub PAT rule as historical.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_015AKgpN1QhxGKRxQeoqFeov

* chore(deploy): answer review on the gateway retirement

A moltbot provision in docker mode now refuses with 410 before it creates
an agent user or issues a token. The compose service it started is gone,
so the start could only fail, and the install was still recorded as
provisioned. k8s mode and a gateway run with docker provisioning off are
unchanged.

dev.sh up, down and clawdbot stop the two old gateway containers if they
are running. Compose no longer knows them, so down left them holding the
port and the credential mount. Nothing is removed and no volume is touched.

The preset check exempts only the sentence saying the two tools were
removed, so an instruction to call one fails. Comment stripping leaves
strings alone, and an id it cannot read is an error rather than a merged
block. The comment test now fails with stripping off, and the guard scans
the removed env names. Two docs stop describing the gateway as available.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_015AKgpN1QhxGKRxQeoqFeov

---------

Co-authored-by: Claude Opus 5.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