Skip to content

PlatformAgent CRD

The PlatformAgent resource declares everything the operator needs to run one Platform Agent instance: which Hermes image, which service account, which chat integrations, and which framework-level toggles.

apiVersion: kubeagents.x-k8s.io/v1alpha1
kind: PlatformAgent
metadata:
name: platformagent
namespace: kubeagents-system
spec:
harness: { ... } # execution environment + framework
deployment: { ... } # container image, pull policy, containers, volumes
security: { ... } # service account + Workload Identity
telemetry: { ... } # OTLP collector endpoint and the people switch (optional)
networkPolicy: { ... } # generated egress NetworkPolicy (optional)
integration: { ... } # Google Chat, Slack, Teams, git forge
scope: { ... } # projects beyond the management project, and exclusions (optional)
hold: { ... } # clusters an operator has paused the agents' access to (optional)
storage: { size: 80Gi } # data volume size (optional; absent means 50Gi)
mode: next # deprecated and ignored; every install runs the A2A stack (optional; absent reads next)

spec.deployment, spec.security, spec.telemetry, spec.networkPolicy, and spec.proxy are inlined from the shared AgentSpec, so they are common to every agent type. spec.harness is required; spec.integration, spec.telemetry, spec.networkPolicy, spec.proxy, spec.scope, and spec.hold are optional.

spec.mode is deprecated and ignored: every install runs the A2A stack. The enum still accepts today and next, so a stored object that carries today stays valid, and the schema defaults an absent field to next. The mutating webhook rewrites today to next on create and update. The operator patches a stored today to next once and records an Event with reason ModeMigrated. A later release removes the field.

The operator renders the A2A stack:

Component What is rendered Notes
Bus the NATS/JetStream component, its provisioning Job and an hourly Job that compacts the session-state bucket, an ingress NetworkPolicy fencing the bus, an egress NetworkPolicy fencing the session pods, and a session-pod ResourceQuota
A2A gateway its Deployment, with session-pod spawning armed and the console door always on (A2A_CONSOLE_DOOR=true). Its election Lease <agent>-a2a-gateway, which the gateway may only read and renew (the operator’s A2A_GATEWAY_ELECTION=false turns the election off). A PodDisruptionBudget of maxUnavailable: 1 while more than one replica is Ready, and a zone topology spread. It runs availability.a2aGateway.replicas replicas once a gateway on its image holds the Lease, and one before that. Once ProfileSupervisorForm is True, the ConfigMap <agent>-a2a-profile-names, listing the bound and draining AgentProfiles, which the gateway and the MCP server mount runs on the console alone when no chat backend is configured
Capability verifier a Deployment of two replicas, with its own ServiceAccount, a NetworkPolicy fencing it to DNS and the bus, a PodDisruptionBudget of maxUnavailable: 1 and a kubernetes.io/hostname topology spread the only bus principal permitted to read the cap KV bucket, and it needs nothing else; a submission arriving while no verifier is ready is refused terminally, so a node drain must not take both replicas at once
Auth callout the Deployment that authenticates bus clients, its Service, ServiceAccount, Role and RoleBinding, a cluster-scoped ClusterRoleBinding to system:auth-delegator, the identity-map ConfigMaps <agent>-a2a-authmap-<n>, and the keys Secret <agent>-a2a-callout-keys; its two replicas also carry a PodDisruptionBudget of maxUnavailable: 1 and a kubernetes.io/hostname topology spread while no callout is ready the bus refuses every new connection, so a node drain evicts one callout at a time and waits for its replacement to be ready before taking the other
Console server the Deployment and Service <agent>-a2a-console, which serve the A2A console page and proxy its websocket to the bus, and a deny-all ingress NetworkPolicy, <agent>-a2a-console-netpol; the Deployment and Service aren’t rendered, and are removed, while the PlatformAgent carries network-policy-enforcement: absent-accepted reachable only through kubectl port-forward, and that port-forward is also what hands out the console credential
MCP server the Deployment, Service, and ServiceAccount <agent>-a2a-mcp, a deny-all ingress NetworkPolicy <agent>-a2a-mcp-netpol, and the bearer-token Secret <agent>-a2a-mcp-token. Once ProfileSupervisorForm is True it also mounts <agent>-a2a-profile-names rendered by default unless A2A_MCP_DOOR=false (operator.mcpServer.enabled: false in the chart); reachable only through kubectl port-forward with the bearer token from <agent>-a2a-mcp-token
Profile dispatcher the Deployment <agent>-a2a-dispatcher, its ServiceAccount, Role and RoleBinding, and the dispatch ConfigMap, whose profiles are the ones <agent>-a2a-profile-names lists rendered by default unless A2A_PROFILE_DISPATCHER=false (operator.profileDispatcher.enabled: false in the chart)
Teams inbound receiver, when spec.integration.teams.inbound is enabled the Deployment, ServiceAccount and ClusterIP Service <agent>-teams-inbound (port 8100) and the NetworkPolicy <agent>-teams-inbound-netpol; no Ingress, which you provide the one pod the internet reaches; it holds no credential of the install’s own, and the broker admits it to POST /v1/chat/teams/events alone
ServiceAccounts one for the provisioning Job, one for the hourly session-state compact Job (<agent>-a2a-kv-compact), and one for the spawned session pods (beside the verifier’s, callout’s, MCP server’s, and dispatcher’s above) so the callout has an identity to resolve each by
Google Chat, when that is the chat backend the A2A gateway consumes the install’s Chat subscription in place of the Planning Agent, whose Google Chat platform is then not rendered, and carries spec.integration.googleChat.homeChannel the agent’s proactive messages reach that space through the gateway, which posts them as new threads there or as replies on its threads and nowhere else. With homeChannel not a spaces/<id> name, the agent posts nothing to Google Chat unprompted. Unset, the gateway learns the space from the first mention under homeChannelPolicy auto, and the CR carries the HomeChannelUnset condition until it has one
Teams inbound receiver, when spec.integration.teams.inbound is enabled the Deployment, ServiceAccount and ClusterIP Service <agent>-teams-inbound (port 8100) and the NetworkPolicy <agent>-teams-inbound-netpol; no Ingress, which you provide

The operator also renders the task-signing key Secret <agent>-a2a-task-signing-key. Only its public half reaches the callout, and only the dispatcher will mount its seed.

It also renders the session-signing key Secret <agent>-a2a-session-signing-key, a separate keypair. Its seed will sign a credential for a person’s own chat turn on a session pod, naming that pod and its UID, the person, and the turn, and nothing it may reach. The credential’s expiry is bounded by the task credential lifetime ceiling, harness.tuning.profiles.maxTaskDeadlineSeconds (six hours by default): the credential proxy refuses one that expires later. The A2A gateway mounts the seed read-only (mode 0440, readable through the pod’s group). The credential proxy trusts the public half only for session pods, and only for that shape of credential, so it renders beside the session pods’ audience.

To rotate the session-signing key, delete the Secret. The operator does not watch the Secret, so it generates a new one on its next pass, which can take up to its resync interval. The gateway’s seed volume is not optional, so a gateway pod that starts in that window, from a restart, a reschedule or a rollout, waits on the mount and is not ready until the new Secret exists. The credential proxy and its exec tier then restart with the new public half, and the gateway’s mounted file updates in place.

The bus runs harness.tuning.busReplicas NATS servers, three by default. They spread one per node with DoNotSchedule, so one drain takes one server. At three, the bus also has a routes Service and a PodDisruptionBudget of maxUnavailable: 1.

One server isn’t highly available. A node drain or an upgrade that moves its pod takes the bus down while the pod restarts, typically for about two minutes, and longer after a node scale-down (below). The operator says so once each time a new bus pod comes up, in a Normal A2ABusSingleServer Event on the PlatformAgent that links Changing the bus’s server count. It writes the Event once more after an operator restart. Ready and Degraded don’t change. A one-server bus has no PodDisruptionBudget and no safe-to-evict annotation, since on Autopilot either can hold node upgrades.

After a node scale-down, GCE can keep a NATS disk attached to the node being deleted for tens of minutes. The bus pod’s replacement then waits in ContainerCreating, with FailedAttachVolume (RESOURCE_IN_USE_BY_ANOTHER_RESOURCE) in the pod’s Events only, until the old node is gone. On three servers the bus serves on two meanwhile.

The verifier’s and the callout’s topology spreads are ScheduleAnyway, so a single-node install still comes up. There the bus needs busReplicas: 1. On a cluster with no other schedulable node, such as a single-node install, a drain that evicts a callout waits until the node is uncordoned or the drain overrides the budget.

On a bus that already runs, changing busReplicas between 1 and 3 starts a migration that keeps the bus’s data. The operator runs it in phases, shown in status.busMigration and reported by the A2ABusMigrating condition. The admission webhook refuses another change to busReplicas while one runs. A run has two hours going forward; a phase still running then counts as failed, and the way back gets two hours of its own. Objects under a run’s names that the PlatformAgent does not own are never used: a phase that finds one fails and names it.

A migration starts only on a bus whose provisioning has completed (BusProvisioned). A bus never provisioned, with no migration behind it, takes a changed count as asked, since it holds no data yet. That is how the count comes down on a cluster that can’t schedule three servers. After a migration, the next one waits for the provisioning that follows it.

The operator runs the migration’s work in pods of its own image, so it needs OPERATOR_IMAGE set, as the chart does. Without it a busReplicas change starts no migration: the bus keeps its count, and an A2ABusMigrationUnavailable Warning Event says why. The same holds, with the same Event, when the installed CRD is older than the operator and drops status.busMigration. The operator sees its first run’s record dropped, and starts no other until the CRD is applied and the operator restarted.

Three servers to one happens in place. A Job of the operator’s moves each stream’s leader to server 0 and scales the stream to one replica while the bus is still a cluster; then the bus renders one server. Writes keep flowing, with brief stalls as leaders move and while server 0 restarts on its own.

A one-server bus starts its server with a stale-cluster-meta init step. A server that ran in a cluster keeps the cluster’s metadata (/data/jetstream/SYS/_js_) while it runs alone, and a later move back to three servers would bring back, from it, streams that no longer exist. The step removes exactly that directory, and only on <agent>-a2a-nats-0, logging the path and size. It refuses a symbolic link on that path, failing the pod rather than following it: kubectl logs <agent>-a2a-nats-0 -c stale-cluster-meta says what it did.

One server to three copies the streams, behind a write freeze:

  1. The freeze. The callout is rolled so that every replica authenticates only the migration. Then the bus restarts without its static application users. From then on, until the freeze lifts, connections drop and are refused: the console and web logins fail, the gateway and the bridge cannot publish, and tasks wait.

  2. The copy. The operator’s pod snapshots every stream to a staging claim. A pod with no bus access digests the snapshots, and the operator keeps the digests.

  3. The clear. With the snapshot pinned, the operator’s pod deletes the streams from the single server, so it joins the cluster with nothing on disk; the conversion would have dropped them anyway.

  4. The conversion. The bus renders three servers. On a cluster that provisions nodes on demand, such as Autopilot, that includes the nodes for servers 1 and 2. The conversion has 15 minutes of its own (status.busMigration.phaseDeadline) to get all three Ready, so a cluster that cannot schedule servers 1 and 2 turns the run back then, not at the run’s two-hour deadline.

  5. The restore. The operator’s restore pod restores each stream, with its consumers, and raises it to three replicas. Before it restores a stream, it checks the snapshot against the operator’s digests and against the operator’s policy for that stream: its subjects, limits and retention. The stream comes back with the limits the install renders now. A snapshot that does not fit them is refused, which turns the run back: more bytes than the rendered max_bytes, or an oldest message older than the rendered max_age. After, it checks the restored stream against the same policy and deletes one that fails.

    A restore attempt that fails partway is retried, after a wait of 7 seconds for the server to clean up the failed attempt, whose cleanup would otherwise remove the retried stream. Before the step ends, it checks that every restored stream is still on the bus; a stream that vanished fails the step, with the snapshot kept.

    The one exception to the rendered limits is max_consumers. It is raised to the rendered value when the snapshot’s is lower, and never lowered. A wider stream, or one with no limit, keeps its own, because its consumers must still fit.

  6. The settle. Once every stream is raised, the restore pod waits, up to 5 minutes for all of them together, until each stream’s replicas are current and each restored durable consumer answers from its leader. A stream that doesn’t settle in that time turns the run back, like any failed restore.

  7. The release. The bus restarts with its static users and the callout serves the install’s identities again.

The freeze lasts as long as the copy, the conversion and the restore together, which is expected to be minutes; the restore’s settle wait adds up to 5 of them. The staging claim is ReadWriteOncePod, on the default StorageClass, sized for every stream full to its cap plus 10% (15Gi today), so the default StorageClass must support that access mode.

Before a one to three run starts, the operator reads each stream’s size from the bus’s monitoring endpoint. If a stream holds more than the cap the restore puts on it, keeps a message older than its max age (a stream an earlier install kept longer), or the sizes can’t be read, no run starts and nothing freezes. The bus keeps its one server, and an A2ABusMigrationStreamsOverCap Warning Event names each stream and the limit it is over. The operator checks again on later passes and starts the run once every stream is under its cap.

A stream the restore put back that differs from a fresh install of it, on a field outside its policy, is listed in status.busMigration.warnings and reported once as a BusMigrationDrift Warning Event. How long the streams took to settle is in status.busMigration.settleTime, and in a BusMigrationSettled Normal Event.

Most failures turn the run back on its own. Three to one, before the bus has gone to one server, raises the streams back to three replicas. One to three, from the conversion on, renders one server again and restores the same snapshot into it, each stream as it was, its own limits included. A failed restore first deletes the cluster’s partial copies; a failed conversion has none, since nothing was restored, and goes straight back to one server, whose stale-cluster-meta step removes the cluster’s metadata.

In both directions the run then ends Abandoned: the bus runs as before, with its data, and the condition says why. To try the same count again, annotate the PlatformAgent kubeagents.x-k8s.io/bus-migration-start=<run>, naming the abandoned run. Spec changes to other fields, and syncs that change nothing, do not start a new run.

A failed way back stops for a person, and so does a failure with no way back (below). The run is then Failed, status.busMigration.failedIn names where, and the condition names the step to take. A Failed run blocks any other migration, and spec changes leave the bus as it is, until a person acts with an annotation on the PlatformAgent that names the run:

  • Retry: kubectl annotate platformagent <name> -n <namespace> kubeagents.x-k8s.io/bus-migration-retry=<run>-<attempt>, with the value the condition gives. It runs the failed step again with a fresh deadline: the clear (from Clearing, keeping what it already deleted), the rollback (from RollingBack or RollbackRestoring) or the unpin (from Unpinning). A run may be retried three times; each attempt is recorded in status.busMigration.retries.
  • Give up: kubectl annotate platformagent <name> -n <namespace> kubeagents.x-k8s.io/bus-migration-abandon=<run>. For a run that failed during the freeze, this lifts the freeze and runs the provision Job again at once, which recreates, empty, every stream the run did not put back. Ready waits for it. It deletes the staging claim and its snapshot, unless the claim holds the streams’ only copy (below).

A rollback that failed keeps the write freeze, the staging claim and the operator’s digests until then, so a retry restores the same snapshot. Before retrying, check the <agent>-a2a-nats-0 pod, and the restore pod’s termination message (kubectl get pod <agent>-bus-rollback-<run> -o jsonpath='{.status.containerStatuses[0].state.terminated.message}'), which names the stream and the check that failed.

JetStream fixes a stream’s max_consumers when the stream is created, and refuses to change it after. A TASKS stream created narrower than the PlatformAgent now renders, for example before maxSessions was raised, keeps its old width, and the provision Job refuses it. A one to three migration widens it on the way. On a bus that keeps its count, a person can ask for a reshape:

Terminal window
kubectl annotate platformagent <name> -n <namespace> --overwrite kubeagents.x-k8s.io/bus-reshape=<any new value>

A reshape is a migration run of leg Reshape, at the count the bus runs. It freezes writes as one to three does, snapshots TASKS alone, deletes it, and restores it at the rendered width, never narrower, with its messages, sequences and consumers. Then it lifts the freeze. Nothing else on the bus is touched. The freeze lasts as long as the bus’s restart into it, the snapshot and restore of TASKS, and the restart out of it, which is expected to be a few minutes. The failure paths, the retry and the give-up are as for one to three. A failed restore puts TASKS back as it was.

It starts only when all of these hold. Otherwise a Normal A2ABusReshapeNotStarted Event says why:

  • no migration is under way, and the last one isn’t a Failed run waiting for a person;
  • the bus is provisioned (BusProvisioned), or its provision Job refused only TASKS’s width, as it does after a reshape given up with TASKS still narrow;
  • the operator has its own image (OPERATOR_IMAGE);
  • the installed PlatformAgent CRD keeps status.busMigration. An older CRD drops the run’s record, so the request is refused, naming the CRD; once this release’s CRD is applied and the operator restarted, the same request starts;
  • the live TASKS is narrower than the width this PlatformAgent renders. A TASKS with no limit is never narrower;
  • TASKS fits the limits the restore puts on it, as for one to three.

A value already acted on never starts a second reshape: the operator records it on the bus StatefulSet (kubeagents.x-k8s.io/a2a-reshape-consumed), where later migrations don’t replace it. An annotation left in place is therefore inert. To ask again, after a reshape that was undone, set a new value. An operator rolled back to a release before reshapes holds a reshape under way (below), so roll back only to 0.35.0 or later, the first release with that hold.

A later release may run a migration of a kind this one doesn’t, and a rollback can find one under way. status.busMigration.leg then names a leg this operator does not run. Such a run is held, in whatever phase it is in. Nothing advances and no pod or Job is made. The run’s deadline does not apply. The bus keeps its server count and the write freeze, and the provision Job waits. The A2ABusMigrating condition reads LegUnknown, and one A2ABusMigrationLegUnknown Warning Event names the leg.

There are two ways out. Either upgrade back to the operator that started the run, which carries it on where it is, or turns it back if the run’s deadline passed during the hold, or give it up with kubeagents.x-k8s.io/bus-migration-abandon=<run>. Giving up works as it does for a Failed run: the freeze lifts, and the provision Job recreates, empty, every stream the run did not put back. It is never retried, since only the operator that started it knows its way back. Once such a run has ended, any busReplicas change starts a new migration as usual, since this operator can’t read the ended run’s target.

A run that failed in Shrinking (server 0 did not come up on its own) or in Releasing (the servers did not come back with their static users) has no way back to retry. The bus stays at the count it reached. Fix the <agent>-a2a-nats pods, then give the run up to allow the next migration.

Recovering a given-up run’s staging claim

Section titled “Recovering a given-up run’s staging claim”

A one to three run that failed at or after its clear, which emptied the single server, may have the streams’ only full copy on its staging claim. Its failedIn is then any phase from Clearing on: Clearing, Converting, Restoring, RollingBack, RollbackRestoring or Releasing. Retry such a run rather than give it up while retries are left: a retry restores the snapshot into one server on its own.

If it is given up anyway, the operator lifts the freeze, the bus runs one server, and the provision Job recreates every stream empty. It keeps the staging claim <agent>-bus-stage-<run> and the run Secret <agent>-bus-run-<run>, which holds each snapshot file’s SHA-256, and the A2ABusMigrating condition names both. It does not restore the snapshot, and it does not delete either object; both are owned by the PlatformAgent, so deleting the PlatformAgent deletes them. A run’s object name that would pass 63 characters ends in a hash in place of the run. Find them by their labels (the instance label is <namespace>-<name>, cut to 63 characters):

Terminal window
kubectl get platformagent <name> -n <namespace> \
-o jsonpath='{.status.busMigration.runID} {.status.busMigration.failedIn} givenUp={.status.busMigration.givenUp}{"\n"}'
kubectl get pvc,secret -n <namespace> \
-l kubeagents.x-k8s.io/a2a-component=bus-migration,app.kubernetes.io/instance=<namespace>-<name>

To keep the data past the PlatformAgent, keep the volume when its claim is deleted, and take the claim out of the PlatformAgent’s ownership:

Terminal window
PV=$(kubectl get pvc <claim> -n <namespace> -o jsonpath='{.spec.volumeName}')
kubectl patch pv "$PV" -p '{"spec":{"persistentVolumeReclaimPolicy":"Retain"}}'
kubectl patch pvc <claim> -n <namespace> --type=json -p '[{"op":"remove","path":"/metadata/ownerReferences"}]'
kubectl get secret <agent>-bus-run-<run> -n <namespace> -o jsonpath='{.data.run\.json}' | base64 -d > run.json

The claim holds one directory per stream, each with stream.tar.s2 (the server’s snapshot of the stream) and meta.json (its config and state when snapshotted). To copy it out, mount it read-only in a pod of your own (the claim is ReadWriteOncePod, so nothing else may hold it):

Terminal window
kubectl apply -n <namespace> -f - <<'YAML'
apiVersion: v1
kind: Pod
metadata:
name: bus-stage-reader
spec:
securityContext: { runAsNonRoot: true, runAsUser: 65532, fsGroup: 65532, seccompProfile: { type: RuntimeDefault } }
containers:
- name: reader
image: busybox:1.37
command: ["sleep", "3600"]
securityContext: { allowPrivilegeEscalation: false, readOnlyRootFilesystem: true, capabilities: { drop: ["ALL"] } }
volumeMounts: [{ name: stage, mountPath: /stage, readOnly: true }]
volumes:
- name: stage
persistentVolumeClaim: { claimName: <claim>, readOnly: true }
YAML
kubectl exec -n <namespace> bus-stage-reader -- sh -c 'cd /stage && sha256sum */stream.tar.s2 */meta.json'
kubectl cp <namespace>/bus-stage-reader:/stage ./bus-stage-<run>
kubectl delete pod bus-stage-reader -n <namespace>

The checksums should match the data and meta digests in run.json. The bus already runs one server, so set busReplicas: 1 to match it. While the field asks for three, no new run starts unless the bus-migration-start annotation names the given-up run. A new run would snapshot the empty streams onto a claim of its own. Putting the old data back is manual: the operator has no command for it, and restoring a stream takes a bus client allowed $JS.API.STREAM.RESTORE on it, which only a migration’s own identity holds, and only during its restore. Delete the claim once the data is safe or not needed.

The operator keeps the claim on every such give-up, including one where a restore or a rollback restore had already put every stream back. A claim left over then is the accepted cost of never deleting a copy that might be the only one. To tell whether it’s safe to delete, compare each stream’s state.messages and state.last_seq in its meta.json on the claim with the same stream on the bus. If every stream on the bus has at least as many messages, and the same last sequence or a later one, the bus holds everything the claim does.

Disabling Google Chat afterwards, with no other backend configured, leaves the gateway running on the console door alone. The A2A gateway serves Prometheus counters on a metrics-only port, 9096 (container port a2a-metrics, set by A2A_METRICS_PORT), which the chart’s <name>-a2a-gateway-monitoring PodMonitoring scrapes behind platformAgent.podMonitoring; the metrics are listed on Observability. The gateway’s NetworkPolicy, <name>-a2a-gateway-netpol, renders wherever the gateway does, eval door or no door. It admits the gke-gmp-system namespace and the operator’s own pods to that port and nothing else, the operator because its usage poller reads the gateway’s inbound-message counter into status.usage.chatMessagesInboundTotal.

The same port answers /readyz, which the gateway Deployment’s readinessProbe reads every 5 seconds: 503, with the reason, until the gateway has bound its event relay, which on a fresh install waits for the provisioning Job’s TASKS stream. The kubelet’s probe comes from the node, which the policy does not govern.

The gateway’s egress is governed by a second policy, <name>-a2a-gateway-egress, which renders and goes with that one. It admits cluster DNS, the bus, the credential broker and the Kubernetes API server on their ports. It also admits TCP 443 except to private, link-local and shared addresses, for the chat platforms the gateway dials directly. Where the CNI enforces NetworkPolicy, everything else the gateway sends is denied.

Framework-level settings passed to Hermes. clusterName, location, and projectId are all required — the API server rejects a PlatformAgent that omits any of them. The credential proxy only renders its kubeconfig bootstrap (the gcloud container clusters get-credentials that gives the agent a usable kubectl context) when it has the complete triple; with one missing, every kubectl the agent runs resolves to localhost:8080 instead of a cluster.

universeDomain names the Google Cloud API universe domain (googleapis.com in standard Google Cloud, or a sovereign or partner domain in Google Cloud Dedicated). When omitted on GKE, the operator reads /computeMetadata/v1/universe/universe-domain from the node metadata server and records the result in status.resolvedUniverseDomain (status.universeDomainSource: Discovered). When set explicitly (status.universeDomainSource: Spec), the operator checks the value against the metadata server; a mismatch parks phase: Degraded (UniverseDomainMismatch) before workloads render. On a Helm install (platformAgent.harness.universeDomain), setting the value fails helm upgrade if the served PlatformAgent CRD predates spec.harness.universeDomain, and sets GOOGLE_CLOUD_UNIVERSE_DOMAIN on chart-rendered litellm (vertex_ai) and githubMinter (plus githubMinter’s ISSUER_ALLOWLIST) when non-default.

A value under googleapis.com, such as mtls.googleapis.com, names hosts of standard Google Cloud and no other universe. The operator refuses it with phase: Degraded (UniverseDomainMismatch) and a message that says what to set, and helm upgrade fails on it. Set googleapis.com or omit the field.

PlatformAgent fields → Spec lists every spec.harness field with its type, default and constraints. The sections below cover what each block does.

dashboardEnabled publishes port 9119 on the agent Service, but nothing answers there: hermes dashboard binds 127.0.0.1, so a request arriving over the pod network gets connection refused. Reaching it means getting inside the pod’s network namespace. On the default standard runtime, kubectl port-forward svc/<agent> 9119:9119 works directly. If you opt <agent>-gateway into GKE Sandbox (gVisor) via availability.runtimeClassName, use scripts/hermes-dashboard-tunnel.py instead, because port-forward binds in the host-side netns and cannot see the sandbox’s listener.

That script is canonical on the dashboard’s access path and on why the loopback bind is deliberate. The exec relay it uses to get inside the sandbox lives in scripts/exec_tunnel.py, shared with the E2E suite, which reaches the agent API the same way and for the same reason. The container’s readiness probe runs curl against loopback for the same reason a tcpSocket probe cannot work here: kubelet dials the pod IP, and nothing is listening on it.

sessionKVApiKeySecretRef is optional in the API but not in practice, and the 503 above is the milder half of what its absence costs. The k8s-event-watcher in the agent-api-auth sidecar authenticates to that same server, treats an empty SESSION_KV_API_KEY as fatal, and exits on every start — so no cluster events are watched at all, while the container stays Ready and the CR .status says nothing. An installation upgraded from before the key existed is the case that lands here; add the key to the agent Secret and restart the pod.

type names the harness the session pods’ worker image runs. Absent is core-agent, the harness the worker image carries; leave it out for core-agent. claude-code is still accepted so an existing install validates, but the worker image no longer carries it: the gateway runs its session pods on core-agent, as described below.

The operator passes a set value to the gateway as A2A_SESSION_HARNESS, so an install without it keeps the gateway it had. Setting or removing a supported value rolls the A2A gateway once. The gateway passes it to each session pod it spawns as A2A_HARNESS.

If the CRD admits a value this operator or gateway doesn’t know, as it can after a rollback that leaves the CRD newer, the gateway keeps serving and session pods run the default harness. That is said loudly. The PlatformAgent’s SessionHarness condition is False with reason SessionHarnessNotSupported, a Warning event is written, and a gateway that receives such a value logs an error. The condition clears once the value is supported or removed. The gateway is shared by every conversation, so it falls back instead of stopping, unlike an AgentProfile with an unsupported type, which only loses its own pool.

The type is pod configuration only: no route, bus subject or permission depends on it. Every session pod also carries A2A_HARNESS_UNISOLATED set empty, so a worker image can’t turn on the worker’s isolation waiver through its own environment.

provider picks which long-term memory implementation the agents load. Two ship in this repository, and the difference between them is the whole choice:

Value Fits What it costs to run What it gives
multiuser_memory (default) small or personal installs nothing — a per-user Markdown file inside the pod verbatim recall of everything, no ranking or search
kube_agents_memory enterprise deployments a Hindsight API server and a Postgres database in-cluster ranked recall, per-user and shared scopes, consolidation
none — nothing no provider; Hermes’ built-in store only

The split is about how the store is read, not about how good it is. The file provider concatenates everything into the system prompt on every turn, so it is bounded by the context window; Hindsight retrieves only what a question needs, so its cost per turn barely moves as the store grows. A fleet of a few clusters and a handful of people will not reach the bound, and paying for a database there buys nothing.

Anything else is passed through to Hermes untouched, so its own external providers (hindsight, mem0, openviking, …) work if you bring their configuration. none is this API’s spelling of Hermes’ empty string, which cannot be expressed here: an absent field takes the CRD default.

Only a Hindsight-backed provider reaches the specialist profiles, because only that one can be made read-only and scoped by tag. Under any other value the specialists get no provider at all and the Planning Agent keeps the store to itself.

memoryEnabled and userProfileEnabled are a different mechanism — Hermes’ built-in MEMORY.md / USER.md files, which have no per-user scoping. Both providers above replace that store rather than supplement it, so both run with memoryEnabled: false.

The installer’s MEMORY_ENABLED variable is that same built-in store and nothing more; the install copies it into this field unchanged. It is not a master switch — whether the agent remembers anything is provider’s question, and none is how that answers no.

The install reads only the provider: the chart’s hindsight.* values deploy the Hindsight store when the provider is Hindsight-backed (--memory=hindsight), and nothing when it is multiuser_memory or none. See docs/designs/memory.md.

The k8s-event-watcher runs in the gateway pod’s agent-api-auth sidecar, streams warning events from every managed cluster, and posts each surviving incident to the pod-local Session KV server, which opens an autonomous triage session for it. enabled: false stops it from starting at all. Its Prometheus metrics are served on that sidecar’s port 9095 and scraped by the chart’s <name>-gateway-monitoring PodMonitoring on every replica; the chat_metrics plugin’s port 9097 on the platform-agent container has its own, <name>-gateway-chat-monitoring, which selects the pod carrying the leader label; see Concepts → Observability.

Terminal window
kubectl patch platformagent platform-agent -n kubeagents-system --type merge \
-p '{"spec":{"harness":{"eventWatcher":{"enabled":false}}}}'

The field has to exist in the installed CRD for that patch to mean anything, and Helm installs CRDs on first install but never upgrades them. A chart-upgraded install therefore needs the CRDs applied first — worth doing ahead of the incident rather than during it, since a client that does not send strict field validation gets the unknown field pruned and an emergency stop that reports success and does nothing.

Terminal window
kubectl apply --server-side -f k8s-operator/config/crd/bases/

--server-side is not optional here. Client-side apply stores the whole object in the kubectl.kubernetes.io/last-applied-configuration annotation, and this CRD is far past the 262144-byte annotation cap, so a plain kubectl apply fails with metadata.annotations: Too long and leaves the CRD unchanged. make install in k8s-operator/ applies them the same way.

This is an emergency stop, not a tuning knob. It exists for the case where events arrive faster than the agent can triage them — a fleet-wide rollout gone wrong, a node pool flapping — and the cheapest way to get the agent back is to cut the inflow rather than chase the cards it has already been handed. It is all-or-nothing across every watched cluster. To silence one noisy namespace, cluster, reason or workload while the rest still alerts, use alertExclude below.

If the board is merely busy rather than swamped, tuning.maxInProgress is the knob for that — it throttles how many cards run at once without losing the events.

Three consequences before you press it:

  • It rolls the pod. The value reaches the sidecar as an environment variable, so changing it rewrites the pod template. During a storm that restart is usually wanted anyway — it is also what ends the sessions already running.
  • It stops the inflow only. Kanban cards and sessions created from events already delivered keep running and still have to be dealt with on the board. It reclaims nothing either: the watcher’s kubeconfig, token projection, and mounts stay in place, and the sidecar keeps the memory request sized for the caches it is no longer running.
  • Nothing turns it back on. An install left with the watcher off has no incident detection at all, and the container stays Ready throughout — the readiness probe covers the credential proxy, not the watcher. Two things say otherwise: a line in the sidecar log naming the consequence, and the EventWatcher condition on the CR (status below). Set enabled: true, or remove the field, to start watching again.

Unset means enabled. The watcher is how a fleet notices its own incidents, so an install that never mentions the field — which is every install today — keeps watching, and only an explicit false turns it off.

alertExclude is the narrow tool: a list of rules for events that open no incident — no alert, no triage card, no share of the daily alert ceiling. Their clusters stay in scope, so the agent still reads them when asked; spec.scope.exclude is what hides a cluster. Each rule sets one or more of cluster, namespace, reason, kind and name, and matches an event when every part it sets matches. reason and kind are matched without regard to case, and reason also matches the family the watcher groups a reason in, so CrashLoopBackOff covers kubelet’s BackOff events for a restarting container. name takes a trailing * as a prefix, since pod names carry generated suffixes.

spec:
harness:
eventWatcher:
alertExclude:
- namespace: payments # every alert from this namespace, on every cluster
- cluster: { clusterName: staging-a } # every alert from this cluster
- reason: FailedScheduling
cluster:
projectId: my-project
location: us-central1
clusterName: batch
- namespace: shop
kind: Pod
name: inventory-api-*

A change is in force within about two minutes, without a pod restart: the operator writes the list to a ConfigMap, and the watcher reads it again every minute. If the agent image is older than the operator, a change applies at the next pod restart.

What the rules hold back is counted in the watcher’s k8s_event_watcher_events_filtered_total{gate="alert_excluded"}, and the end-of-day recap says how many events and workloads they held back and names the five noisiest workloads. While the list is set, it replaces a WATCHER_ALERT_EXCLUDE entry in spec.deployment.env, and a move between the two rolls the pod once. The chart renders the list from platformAgent.harness.eventWatcher.alertExclude; a helm upgrade that removes the last rule removes the whole eventWatcher block from the CR, enabled: false with it, so set the emergency stop again after one.

Event watcher tuning and cost maps these fields, and the watcher’s other settings, to their effect on alert noise and on token spend.

The drift-detector runs beside the watcher in the gateway pod’s agent-api-auth sidecar. It pulls GKE admin-activity audit records from a Pub/Sub subscription, drops every call that a person did not make or that changed nothing, and posts what is left to the same pod-local Session KV server the watcher posts to — so a change someone made to a cluster by hand arrives on the board as a card. The control plane, CI, and every service account are dropped alike; on a busy cluster that is the overwhelming majority of the stream.

A change on another cluster in the project that no readable Cluster Agent profile names is logged in the sidecar and not reported, while the sidecar can read its profiles directory. The install’s scope ends at its profiles, so profile the cluster, exclude it under spec.scope.exclude.clusters, or fix the profile the sidecar’s log names. The management cluster is always reported, profile or not, and a cluster the sidecar had already joined when it started stays reported after its exclusion until the gateway pod restarts.

Through install.sh it is on unless you turn it off; the field itself still defaults to false. The two layers differ on purpose — the field is what a hand-written CR or a Helm-only install sets, and neither of those creates a subscription for the detector to read, so the API default stays off and the installer is what turns it on.

It is not free either, and what it costs is GCP resources rather than cluster resources. The subscription it reads comes with an audit log sink and a Pub/Sub topic, all three from the drift-pubsub Terraform module, and the sink exports the admin-activity audit records of every GKE cluster in the project. On an install with a declared spec.scope, each project the scope lists gets a sink of its own into the same topic, and a change on a cluster there is enriched through that cluster’s Cluster Agent profile and reported like one on the management cluster.

The terraform/examples/full-install composition instantiates the module when you set enable_drift_pubsub = true, and writes the field below when you set enable_drift_detector = true alongside it. Asking for the second without the first is refused by a precondition rather than applied.

If you installed with install.sh, one key covers both: ENABLE_DRIFT_DETECTOR in install.env writes the two variables together, and it defaults to true, so an install that says nothing gets the sink, topic, subscription and detector. To go without them, set ENABLE_DRIFT_DETECTOR=false in install.env.

Put it in the file rather than relying on install.sh --enable-drift-detector=false: the run that creates install.env records that flag into it, but install.sh never rewrites that key afterwards, so on every later run the flag applies to the run you pass it to and is recorded nowhere — the next run resolves the default and provisions the three resources again, and upgrade.sh takes no such flag at all. The front doors regenerate terraform.tfvars on every run, so a value written into that file by hand does not survive the next one either.

This reaches an install created before the key existed. Its install.env records no choice, so the next install.sh or upgrade.sh run resolves the default and provisions the three resources — upgrade.sh --plan shows them as additions before you apply.

An install that has neither provisioned the ingress nor applied the module by hand has nothing for the detector to pull. Setting this field there anyway — which now takes a hand-edited CR or chart value, not the composition — gives a process that retries a failing pull for the life of the pod without ever reporting a change, and the pod stays Ready throughout, so an install you switched on by mistake looks exactly like a fleet nobody has touched.

spec:
harness:
driftDetector:
enabled: true

Enabling is necessary and not sufficient. Outside the gateway the detector verifies the cluster name it was given against the cluster its credentials actually reach and exits on a mismatch. Inside it, where the metadata server is closed, that probe times out and the triple is taken on trust (see the detector’s README). So the operator starts it only when projectId, location, and clusterName are all set on spec.harness as well. The API server already rejects a PlatformAgent that omits any of the three or sets one empty, so the case to watch for is an object stored empty before that pattern existed. It stays off however enabled reads, and unlike the watcher, nothing substitutes a placeholder name for it.

projectId has to be the project ID, not the project number. The detector matches it against the project on each audit record, which is always the ID, so a value that is nothing but digits can match nothing. The operator reports the detector as off rather than starting a sidecar that exits on every launch. ScopeUndeclared names the project only in a form spec.scope.projects accepts: on a number it reads the ID off the host cluster’s own series, and otherwise it says nothing. Everything else reading spec.harness accepts a number, so an install can be healthy in every other respect and still be refused here.

subscription and gitopsManagers are the two knobs worth moving from a CR. Leave subscription unset unless you renamed the one the module creates.

gitopsManagers is not what separates automation from people — the detector already does that by principal, and a controller’s writes never reach a card. It names the field managers your GitOps controller writes under, as they appear in an object’s managedFields: argocd-controller, flux, whatever your own controller sets. That is a field-manager string, not a service-account email, and the two are rarely the same.

Matching one changes what a card says rather than whether it exists. When the detector finds a configured manager wrote the drifted fields after the change it is reporting, it marks the card as possibly already reconciled and names the manager. Unset is supported and only loses that hint: ownership is still read and reported, and you get the same cards without the annotation.

Nothing else about the detector is exposed here. Which principals count as human, and which calls are dropped as failed or non-declarative, are compiled into the binary; what reaches it at all is set by the Terraform module’s log sinks, not by the CR.

The controller stall watch is the stall-watch cron job on the Platform Agent’s roster. Every 30 minutes it runs stall_report.py over the namespaces of each cluster that has a Cluster Agent profile, and raises one alert for each namespace with a new stall (autonomous watchdogs). This block tunes what it reads and when it alerts. Absent, the watch skips the system namespaces and annotated namespaces, alerts on the first sweep that sees a stall, and scans its default list of kinds.

spec:
harness:
stallWatch:
excludeNamespaces: [load-test, payments-canary]
minStallAgeMinutes: 30
kinds: [deployments, statefulsets, gateways.gateway.networking.k8s.io]

excludeNamespaces names namespaces the watch never reads, on every cluster. Each item is an exact namespace name; there is no wildcard. If a namespace has an open alert when you exclude it, the watch completes the alert’s card with a note that the namespace was excluded, and the chat line says the same. Up to 100 names.

minStallAgeMinutes holds a new alert until at least one stall in the namespace has lasted that long. A stall’s age is the longer of two values: the age stall_report.py measures on the object (from its condition, its last spec write, or its warning events), and the time since the watch first saw the object stall. A spec write does not restart that second value, as long as the watch saw the object stall on one of its last two sweeps.

A younger stall is not dropped: the watch keeps it in its ledger and checks it again on each sweep, so the alert follows on the first sweep after the stall is old enough. An object that starts to stall in a namespace with an open alert is added to that alert’s card at once. The range is 0 to 1440; unset or 0 alerts on the first sweep that sees the stall.

kinds replaces the default list of resources the watch scans: Deployments, StatefulSets, DaemonSets, Jobs, Gateway API Gateways and HTTPRoutes, cert-manager Certificates, and *.cnrm.cloud.google.com, the Config Connector kinds. Write each item as kubectl names the resource, in lower case: deployments, gateways.gateway.networking.k8s.io. An item of the form *.<suffix> is a group wildcard for every namespaced kind whose API group ends in the suffix. A list you set replaces the wildcard too: name *.cnrm.cloud.google.com in it to keep the Config Connector kinds.

The single item all scans every namespaced kind the cluster serves, with one read per kind per cluster, which is slow on a large fleet. The API server refuses all next to another item, and refuses Secrets, ConfigMaps, Events, Endpoints, EndpointSlices, ControllerRevisions and Leases, which the scan reports nothing from. Up to 20 items. A kind a cluster does not serve is left out on that cluster.

The Config Connector wildcard is in the default list because a managed resource that Config Connector cannot apply shows it in two places only. The controller does not crash and logs only on the object. It records at most a Warning event there, which the event watcher forwards (a day in the life lists the reasons), and it sets the object’s own Ready condition. The ConfigConnector object’s status reports the controller’s health, not the health of the resources it manages. stall_report.py reads the Ready condition as a stale condition once it has been false for longer than the stall threshold, so a SQLInstance stuck on UpdateFailed is a stall like a Deployment past its progress deadline, event or no event.

Two reasons are in progress, not stalled, at any age: Updating (a create or update under way) and Deleting. DependencyNotReady, which lasts as long as the referenced resource’s own create, is a stall after 60 minutes rather than after the usual 15.

The add-on serves about three hundred kinds, so the watch does not read each one in each namespace. On each cluster that serves them, it discovers once which kinds have objects and in which namespaces, with one kubectl get over every namespace for each batch of 10 kinds. It keeps the result in its ledger and reads in a namespace only the kinds it found there, 20 per sweep.

A namespace with more is read in turns, the next 20 on the next sweep, so every kind is read within a few sweeps. The ledger says which kinds wait. Objects in the system namespaces, in excludeNamespaces and in exempt namespaces do not reach the record.

It discovers again after 6 hours, or after 1 hour when a batch failed, on at most 2 clusters per sweep, so a fleet’s refreshes spread out.

A kind that gained its first object between two discoveries is read from the next one. A kind a discovery could not read, or one the cluster started to serve since the last discovery, holds its ledger rows as unread rather than clearing them. A cluster that serves no Config Connector kind runs no discovery.

Separate from this block, the annotation kubeagents.x-k8s.io/stall-watch: exempt opts out without a CR change. On a namespace, the watch does not read the namespace, as if excludeNamespaces named it. On an object that stall_report.py reports (a Deployment, a Gateway, or any other kind the watch scans), the watch leaves that object’s rows out of its alerts. If that leaves an open alert with no stall, the watch completes the alert’s card with a note that names the annotation. The annotation is checked on each object alone: an exempt Deployment does not exempt the Gateway or the HTTPRoute in front of it. A Cluster Agent that runs the gke-stall-detection skill by hand still reports an exempt object.

The operator delivers the three values through the agent’s managed .env (see How config reaches each profile), so a change rolls the agent pod, and the agent cannot override a value from its own .env.

The chart sets this block from platformAgent.harness.stallWatch. On an install made with install.sh, put the block in the TF_VAR_extra_helm_values line in install.env, which a full-mode install.sh or upgrade.sh run applies; a helm upgrade --set value is dropped by the next full-mode run, and the watch then goes back to its defaults. install.env holds one such line, so if it already has a platformAgent key, put harness={stallWatch={...}} inside that key (Operator settings says how the line works):

Terminal window
TF_VAR_extra_helm_values='{platformAgent={harness={stallWatch={excludeNamespaces=["load-test"],minStallAgeMinutes=30}}}}'

On a hand-driven Terraform apply, set extra_helm_values in terraform.tfvars instead; on a bare Helm install, set the block in your values file.

Execution limits per agent persona, where <persona> is one of default (the Planning Agent front door), platform (the Platform Agent), or cluster (every Cluster Agent), plus the board-wide maxInProgress and the dispatcher’s memory admission, the session-pod cap maxSessions, the gateway’s defaultRoute, the session pods’ idle times sessionIdleMinutes and dmSessionIdleMinutes, and the AgentProfile knobs under profiles (the ceiling and its child reserve, warmReplicas, and the dispatcher’s intervals; see AgentProfile).

Unset, maxSessions renders 10, defaultRoute renders platform, and the gateway reaps an idle session pod after 30 minutes (5 for a DM conversation with one message so far). profiles.ceiling follows maxInProgress (6 unless set), and profiles.warmReplicas renders 1 on platform and on session each profile’s concurrency, split over its interactive tiers and held to the ceiling (AgentProfile).

defaultRoute is where the A2A gateway sends a plain conversation’s first message: platform to the Platform Agent, session to a session pod of the conversation’s own. Unset means platform, today’s behaviour; making session the default is a later change, gated on evidence. The operator renders it as A2A_DEFAULT_ADDRESSEE on the gateway and on the Platform Agent container, which the hermes-bridge sidecar copies. Changing it rolls the gateway and the Platform Agent pod. On either route the Platform Agent stays reachable by handle and delegate: opens a session pod.

defaultRoute: session opts an install into the session route. It widens the TASKS consumer budget, because each session counts the replays of its task too (7 consumers rather than 3). A stream cannot be widened once it exists, so on the session route the operator reads TASKS’ live max_consumers from the bus’s monitoring endpoint and fits the session cap to it. status.effectiveSessionCap is maxSessions, or the sessions the stream has room for when that is fewer, and the SessionCapFitted condition and a Warning event say so.

The gateway’s cap, the session quota and the provision Job’s check follow the fitted cap; a new TASKS is still created wide enough for maxSessions. A stream with no room for one session sends plain conversations to platform. The cap stays fitted until TASKS is widened. On a one-server bus, setting busReplicas to 3 widens it and keeps its history. On any bus, a new value on the kubeagents.x-k8s.io/bus-reshape annotation recreates it at the rendered width, keeping its messages (Recreating TASKS wider). On an existing install, until the operator has read the width once, the provision Job waits; a new install starts at maxSessions. On platform none of this runs.

On the session route, session pods get the read-only cluster view by default: kubectl through <name>-kube-proxy and read-only gcloud through the credential broker’s session role (Security and IAM). The view follows the route the operator resolved, so an install held on platform (no room for a session, or a CRD that prunes the cap) gets none. The operator’s A2A_SESSION_CLUSTER_VIEW overrides it, set as Operator settings describes: "true" turns the view on on any route, and "false" turns it off on the session route too. Unset or empty, it follows the route, and any other value is off. The flag doesn’t change the route itself.

Whoever can set spec.harness.tuning.defaultRoute on the PlatformAgent turns the view on with it; whoever runs the operator can turn it off for every install with "false". On a fleet-tier install, a session pod’s memory limit defaults to 6 GiB so that its cluster-wide kubectl lists fit the kubectl admission, all but the full-object Pod lists (What each pod needs).

The per-run limits are opt-in. The operator pins nothing of its own there: what a fleet needs depends on its model quota and on what its agents actually do, so a deployment doing short interactive work should not inherit limits raised for long-running batch work. Unset therefore means whatever the profile’s own config.yaml carries, and the default and cluster configs set no execution limit of their own — Hermes’ defaults apply there: 3 retries, and for the turn budget two different defaults on the pinned release: a gateway turn runs with no cap, and a kanban worker, which is a hermes chat process, with the chat CLI’s own 500.

The platform profile is the exception: the image ships agent.max_turns: 150 in agents/platform/config.yaml, the budget its kanban workers run under, and the fleet audits (Cron jobs) carry their own max_turns: 250 on their roster entries, which the scheduler reads ahead of the profile value; Config reference is canonical for why.

Setting tuning.platform.maxTurns here still wins over the profile value — the overlay is merged after the image force-sync — and a roster entry’s own max_turns only ever raises its job above whichever of the two is in force, never lowers it, so a value above 250 raises the audits too; removing it restores the image’s value rather than Hermes’.

maxInProgress is not. Unset renders 6, because the untuned case is the one that cannot absorb the alternative — see Why dispatch is capped by default below. Set it on the CR to raise or lower that. Either way the value is pinned in the managed scope at /etc/hermes, so it applies over whatever the agent’s own config.yaml says, and removing the field puts the default back.

admission is pinned the same way. On every tick the dispatcher reads kanban.admission from the managed scope and counts the container’s working set, its cgroup memory usage less the inactive file cache, against a budget. Past it the dispatcher refuses a card rather than spawn a worker: the card is blocked with kind capacity and a reason that names the figures, so the thread that filed it is told it is throttled. The budget is the request, not the limit, because the kubelet evicts the pod under node pressure once its working set passes the request. Under GKE Sandbox the limit the container can read is the sandbox’s, not the cgroup’s, so Hermes’ own /proc/meminfo guard never fires there.

Unset, memoryBudgetMiB is the agent container’s memory request in MiB (spec.deployment.resources, 4096 at the default 4Gi), so raising the request raises the budget. workerRssCapMiB (1536) stops a running worker whose process tree passes it and blocks its card the same way. queueBoundSeconds (600) refuses a ready card that memory pressure or a full board has held for that long. failClosed (true) makes a tick that cannot read the memory counters spawn nothing. Effective memoryBudgetMiB must be at least workerRssCapMiB regardless of failClosed. Helm renders setting platformAgent.harness.tuning.admission refuse a smaller budget against the 4096 / 1536 defaults, while webhook admission (where enabled) and operator Degraded (InvalidKanbanAdmission) evaluate both tuning.admission and spec.deployment.resources. PlatformAgent fields lists the bounds.

spec:
harness:
tuning:
maxInProgress: 8 # board-wide; raises the operator's default of 6
admission:
memoryBudgetMiB: 3072 # the dispatcher's budget; defaults to the container's memory request
platform:
apiMaxRetries: 8
maxTurns: 200
cluster:
apiMaxRetries: 8
maxTurns: 150

Raised limits belong with the workload that needs them, not with the platform. A long-running, quota-hungry agent plugin should ship its own tuning — as a patch its installer applies — so that a deployment without it stays on Hermes defaults, and installing the plugin brings the limits it requires along with it.

The GKE Stockout Investigator is the worked example: agentplugins/gke-stockout-investigator/tuning.yaml records the reasoning behind each number, and its install.sh applies it.

The keys are personas rather than profile names because the profiles are not all known when the CR is written: Cluster Agent profiles are scaffolded at runtime, one per managed cluster, with generated names like cluster-<project>-<cluster>-<region>. cluster therefore applies to all of them at once — including ones onboarded after the pod last started, which pick the limits up as they are scaffolded.

Both limits matter because they fail the same way, and it is not an obvious way. A run that exhausts either stops mid-task without ever calling a terminal kanban tool. The card is charged a timed_out failure whose error text names how the turn ended — Iteration budget exhausted (N/M) for maxTurns, turn_exit_reason=all_retries_exhausted_no_response for an apiMaxRetries exhaustion that ends with no response — and retrying re-runs into the same wall, so read that text and the upstream error rate before suspecting the worker.

A maxTurns exhaustion keeps what the run found. At the cap the runtime asks the model for a closing summary and discards any tool call in the answer, and the worker saves the summary as the run’s hand-off. hermes kanban show <id> prints it as the card’s latest summary, the card carries it as a comment that names the budget used, and the next attempt reads it in its prompt under the prior attempt. The card’s own result stays empty, as for every run that does not complete.

The text is the model’s, cut on a word at 4000 characters. When the summary call fails, the worker’s last written answer is saved instead, and the comment says so. A summary that names a GitHub pull request URL is saved on the run only, with no comment: the dispatcher holds a card whose recent comments name one, and the retry is what the hand-off is for.

One apiMaxRetries exhaustion is handled differently: when the retries were spent on provider rate limits (429s), the worker blocks its own card instead, kind transient, with the provider’s error text as the reason; kanban_unblock it once the quota window has passed. A second rate-limit block after an unblock sends the card to triage.

A turn that fails outright, because the provider refused the call (an HTTP 401, a billing wall, a safety block) or the last retry ended on an error, is recorded by the worker itself. So is a worker whose chat() returns before any turn runs, such as on agent init or runtime credential failure.

The error Hermes reported (or the no-turn notice) goes on the card as a comment. The run is charged as crashed and counted, and the card goes back to ready until it reaches its retry limit. The chat thread shows the generic “worker crashed” line for it, so read the card’s comment for the cause. The charge’s own error text names no provider error, so the dispatcher retries the card rather than parking it as an auth or quota failure.

Goal-mode cards, which the dispatcher runs as a loop of turns judged against the card’s goal, get none of this: their failures exit through the dispatcher’s reaper as before, with exit 1, or exit 75 and a rate_limited run for a rate limit or a billing wall. A run that stops without a terminal call and reaches the dispatcher unexplained surfaces instead as a protocol violation, which describes the symptom and hides the cause; the image narrows that window in deploy/docker/patches/kanban_guardrail_exit.py.

Sizing notes: maxTurns is consumed mostly by repository exploration, so scale it against how much the agent has to read rather than how complex the request is. apiMaxRetries exists because Hermes’ default of 3 assumes an interactive session where a human retries; a background worker has nobody to retry it, so a transient burst of upstream 503s ends the run. A 429 retry waits out the delay Google states in the error body (up to 600 s) rather than a few seconds, so a burst shorter than that window is survived; see deploy/docker/patches/rate_limit_retry_delay.py.

A 429 that states no delay at all, as a shared-quota 429 does, waits a jittered 30 to 60 s per retry instead, so the three retries outlast a quota minute; the retry count does not change. See deploy/docker/patches/rate_limit_backoff_floor.py.

Raising maxTurns interacts with maxInProgress: a worker doing the work holds its slot for the whole task and there are only maxInProgress of them, so raising one is a reason to reconsider the other. A coordinator waiting on work it fanned out is the exception — see why dispatch is capped.

A kanban worker is not a coroutine. It is a full hermes … kanban task process — a few hundred MiB resident once its MCP proxies are up, and alive for as long as the task takes, which for an incident triage is minutes rather than seconds. Uncapped, the dispatcher starts one per queued card, and a burst of cluster events queues them faster than they retire.

What follows is invisible in the places you would look. The cgroup OOM killer takes a worker, not PID 1, so there is no container restart and no Kubernetes event; the pod stays Running and the only trace is pid not alive in the kanban ledger. The dispatcher’s retry budget is 1, so the card is stranded rather than re-dispatched, and the work it stood for is never done — a triage report that never arrives, with nothing anywhere reporting a failure.

6 is a floor for a deployment that has not measured itself, not a recommendation. It assumes the operator’s default 8Gi memory limit on the agent container, and the cost of being wrong is asymmetric: too low delays a delegated task, too high loses it silently. An install that lowered the agent’s memory limit through spec.deployment.resources (which replaces the defaults as a block) should set maxInProgress to fit: about 430 MiB per worker over the 1.8 GiB the pod holds idle, so a 4Gi limit fits about five. Raise it once you know your worker footprint and your model quota — that quota is the other shared resource, and for most deployments it binds before memory does.

At the operator’s defaults the budget and this cap are close. The budget is the container’s memory request, 4Gi unless spec.deployment.resources changes it, and it counts the agent container alone. A tick admits one new worker per 512 MiB of headroom under the budget: from an idle set of about 800 MiB that is six, from the 1.5 GiB a gateway idles at, five. Six workers at 430 MiB add about 2.6 GiB, inside the request from the smaller idle set and one worker short from the larger. To admit more, raise the request, not the limit: under node pressure the kubelet evicts the pod once its working set passes the request (admission).

docs/designs/safe-throttling.md is the design for admission by memory beside this count: a pressure guard on the container’s own memory counters, a resident cap per worker, and a capacity refusal that names the alternatives.

The cap comes from the operator, not from the image or the agent’s own config.yaml. The operator pins kanban.max_in_progress in the managed scope at /etc/hermes: the CR’s value, or 6 when it says nothing. Hermes applies that file over the agent’s config on every load, so a value an existing volume was first seeded with, a removed override, or an edit the agent made to its own file has no effect.

An install upgraded onto an operator that changes the default takes the new number on its first reconcile and the pod roll that follows. The dispatcher logs kanban dispatcher: max_in_progress=<n> at startup (Hermes’ _positive_int_setting in gateway/kanban_watchers_common.py, which logs each configured kanban cap as it reads it). The max_in_progress line in agents/chat/config.yaml applies only to an image run without the operator.

One slot is guaranteed to each class of card. A card is classed when an agent files it with kanban_create: one filed from an event-triage or cron-relay session is background, and one filed in a chat turn or through the inject and A2A doors is a user card. A card filed by hand, with hermes kanban create or from the dashboard, never passes through that step and is background unless it is given priority 100 or more (--priority 100); the dashboard can change a card’s priority afterwards. So are the children Hermes’ auto-decompose files for a card created with triage: true: they are written at priority 0, so a user card filed that way runs its decomposed work as background.

At a cap of 2 or more, background cards may hold every slot but one, so a question asked in chat starts at once even while triage is running, and user cards may hold every slot but one, so a door’s fan-out cannot silence alerts. The slots between go to whoever is first, and user cards sort first. At the default of 6 that is one slot for each class and four shared. The price is that a burst of alerts drains more slowly than it would with every slot open to it, and a burst of user work likewise.

At a cap of 2 each class gets exactly one. At a cap of 1 nothing is held: a user card still goes ahead of waiting triage, but it waits for the running card to finish. A top-level user card that waits, because every slot is busy or the only free one is triage’s, gets one line in its thread: ⏳ Queued: the system is busy. Your request will start when a worker frees up. A card filed as part of a request already running (a worker’s child, or a card with a parent link) waits without one.

The wait is bounded. A card that memory pressure or a full board has held past tuning.admission.queueBoundSeconds (600 s by default) is blocked with kind capacity. The queued line settles as stopped, and the Planning Agent answers the thread with the reason and the alternatives (admission).

A full board is logged as what it is. When every slot is busy for six ticks in a row the gateway logs, at most every five minutes:

kanban dispatcher saturated: 6/6 worker slots busy (5 background, 1 user: t_ab12 @cluster-prod 14m [k8s-evt-], t_cd34 @cluster-prod 9m [k8s-evt-]); 1 user card(s) and 2 background card(s) waiting

The card list is shortened here. The real line names up to five cards that hold slots, oldest first within each board, boards in turn; a coordinator only waiting on its own children is left out, because it is not counted as running. The line gets ; N background card(s) held back because one slot is reserved for user cards or ; N user card(s) held back because one slot is reserved for background triage added when a held slot is what stopped them. When the only free slot is the one held for the other class, the line starts kanban dispatcher holding background cards: or kanban dispatcher holding user cards: instead. That line is load, not a fault. The older kanban dispatcher stuck: … Check profile health warning now means what it says: slots were free and still nothing started.

That warning waits for six ticks, so a short saturation would leave no trace. Each user card that waits therefore also writes one kanban priority: <id> queued … line to the gateway log on the tick it is queued. The line says how many user cards are ahead of it, names the cards that held the slots and ends with the same held-back clause, so the wait is readable back afterwards. The card’s queued event on the board carries the holders’ ids as well.

The arithmetic behind 6:

  • Gateway memory. One worker measured about 430 MiB on a live install: hermes chat 207 MiB, two Node MCP proxies about 100 MiB each, a supervisor and an ssh. Six of them are about 2.6 GiB over the gateway’s 1.8 GiB idle set, about 4.4 GiB under the container’s 8Gi limit. A coordinator waiting on its own children gives its slot back but stays resident, so the process count can sit above six; the 8Gi limit leaves room for about fourteen workers at that size. That is the limit’s room; the room a default install uses is the request’s, because the admission budget follows the request (above).

  • Credential proxy. Every worker’s kubectl and gcloud runs through the proxy, which admits a request only when its children fit the proxy’s memory limit: 176 MiB per request after a 192 MiB reserve for the broker and Envoy. At small (default 2Gi limit), that fits 10 at once, held to 8 by CREDENTIAL_PROXY_MAX_CONCURRENT_COMMANDS (fixed medium/fleet profiles stay at 8; under sizingProfile: auto, medium sets 12 and fleet sets 16).

    The proxy slots are shared. The stall watch runs four commands at a time for most of its tick, and cluster-agent reconcile lists four projects at a time. When both run under the 8-slot small default, worker commands wait up to 60 s for a slot and are then refused busy.

  • Model quota. Per-install model rate limits are not measured. A small quota may see 429s at 6; if worker logs show them, lower maxInProgress.

If you raise maxInProgress, check your model quota, and know where the credential proxy stops it. At small (2Gi default), the memory budget admits 10 while the slot cap binds at 8. Fixed profiles keep 8 slots, while under sizingProfile: auto, medium (4Gi) admits 22 with a 12 slot cap and fleet (8Gi) admits 45 with a 16 slot cap. Raising spec.deployment.credentialProxy.resources alone does not raise the slot cap; set spec.deployment.sizingProfile: auto to scale slots too. Keep the memory limit at 2Gi or more, because below it the memory budget binds first.

The cap counts running cards, not resident processes, and one case makes those differ: a coordinator waiting on work it fanned out is discounted, or it would hold the slot its own children need (kanban_scheduling.py). Peak memory is therefore the cap plus however many coordinators are waiting, held down by the dispatcher’s memory admission (tuning.admission) rather than by this number.

Opt-in switches with no compatibility promise. A field here may change meaning, change its default, or be removed outright in any release; an install that depends on one is expected to re-check it at every upgrade. Fields live here while the question they answer is still open — once it is settled the switch either graduates into a supported block or goes away.

Makes the Platform Agent the profile the Hermes gateway runs as, so a chat message is handled by the agent that has the tools instead of arriving at the Planning Agent, which delegates through the router MCP server and the kanban board.

Terminal window
kubectl patch platformagent platform-agent -n kubeagents-system --type merge \
-p '{"spec":{"harness":{"experimental":{"platformFrontDoor":true}}}}'

Three things change while it is on:

  • The gateway container runs hermes --profile platform gateway run.
  • profile-platform.overlay.yaml gains the three profile-shaped things only the default profile carried before: the toolsets each chat platform key resolves, the ingress plugins, and the kanban block. The adapters themselves are not copied — the managed scope at /etc/hermes is machine-global, so platforms.*, display.platforms, the board’s worker cap (tuning.maxInProgress) and the dispatcher’s memory admission (tuning.admission) already land on this profile. The rest of kanban does have to follow the gateway, because the dispatcher and the notifier run in the gateway process and read their settings from its own home. The board itself does not move — Hermes anchors kanban.db at the shared root rather than the active profile, deliberately, so the dispatcher/worker handoff survives — so cards in flight are unaffected by the flip.
  • The entrypoint stops force-syncing profiles/platform/config.yaml from the image and back-fills it instead, on the same terms as the default profile’s own file (except the remote MCP server entries and the plugins.enabled list, which follow the image), so /sethome and monitoring.install_id survive a restart — see How config reaches each profile.

Setting the field back to false reverses all three. The overlay records what it applied, so the keys are unapplied rather than left behind, and the force-sync resumes.

What it costs. The Planning Agent’s lockdown is its whole reason for existing: a front door with three toolsets, so an inbound message cannot reach the full Platform Agent tool surface before a card and a worker turn have framed it. With this on, an inbound message reaches that surface directly. The lockdown is deliberately not copied onto the platform profile — copying it would leave the Platform Agent unable to do the work the flag exists to let it do.

Known limits.

  • One gateway means one profile, so this is not additive. While it is on, the Planning Agent persona sees no chat at all and the router MCP path is unused. Kanban delegation is not: the front door keeps dispatch_in_gateway, so it can still hand a card to a spawned worker — it just does so as the agent that could also have done the work itself.

  • gateway.multiplex_profiles is still off, so a /p/<profile>/ prefix on an API request is ignored. Those requests now land on the Platform Agent rather than the Planning Agent.

  • The hermes dashboard sidecar is deliberately left on the default profile, so the dashboard shows that profile’s sessions while the front door is the platform one.

  • An AgentPlugin without a spec.targetProfile does not follow the gateway. The two halves that decide whether it loads at all stay on the default profile: the image volume is mounted at $HERMES_HOME/plugins/<name>, and the name is added to that profile’s plugins.enabled. With the flag on, the gateway is homed at profiles/platform and reads neither, so the plugin never registers — silently, since nothing errors, and its platforms: block does arrive here through the machine-global managed scope, configuring an adapter that has nothing to configure. The pubsub-platform adapter and the gke-stockout-investigator alert route that depends on it are both affected. Setting spec.targetProfile: platform moves the plugin and its platform_toolsets across.

  • The default profile’s cron roster stops ticking. Hermes binds its cron ticker to one HERMES_HOME — the job store, the execution ledger and .tick.lock all resolve from the gateway process’s own home — so the one roster that ticks becomes profiles/platform/cron/jobs.json. The Platform Agent’s own watchdogs therefore tick natively, which is the upside; the cost is that the three jobs on the default roster never come due.

    Those are cluster-agent-reconcile, which scaffolds a profile for a newly onboarded cluster and prunes one for a deleted cluster; oobe, which runs first-run onboarding (the bootstrap-inventory-* entries ship disabled); and profile-cron-tick, the only thing that ticks a named profile’s own store — so every cluster-* roster goes quiet with it, and so do the idle-install hold on the Platform Agent’s model-run jobs and the catch-up policy that thins them after a pause, which run inside that job. Nothing errors and nothing is logged: a job that is never ticked stays scheduled with a next_run_at in the past.

  • Per-user memory does not follow the gateway either. The front door’s provider is multiuser_memory, committed in agents/chat/config.yaml and reaching the default profile alone. The platform profile is configured as a specialist instead: read_only: true from the image, and a memory.provider its overlay blanks unless spec.harness.memory names a Hindsight-backed store. With the flag on the front door is that profile, so chat has no recall, no per-user profile and no retention — while memory stays in the profile’s toolsets advertising all three.

    The keys cannot be copied as they are across, because profiles/platform/config.yaml is shared: it is also the home of every kanban-spawned specialist and every job on the platform cron roster. Lifting read_only there would let a specialist write the shared corpus, and un-blanking the provider would collapse those writes into one anonymous bucket, since a specialist carries no gateway identity to scope a per-user store by. Carrying memory to the front door needs those settings to be per-process rather than per-profile.

  • First-run onboarding does not follow the gateway. Its job, oobe, is on the default roster the bullet above stops ticking, and its greeting hook — the bootstrap_onboarding plugin — resolves its once-per-deployment markers from the gateway’s home, so on the platform profile it would greet an already-onboarded install and promise a report nothing can deliver. The operator therefore leaves that plugin off the front door deliberately. Bring an install up with the flag off, let onboarding finish, then turn it on.

  • A home channel set with /sethome, or by the first chat message, stays on the profile it was set on. The operator renders no home_channel of its own, so on an install that did not populate the CR’s Google Chat or Slack homeChannel the value lives only in the config file the gateway last wrote. Flipping the flag changes which file that is, and nothing carries it across. The Platform Agent’s own deliver: all watchdogs then tick in-process, where the delivery target is read from the environment alone — so every scheduled report posts nowhere while chat replies stay healthy and the install looks fine. Either populate homeChannel on the CR before flipping, or re-run /sethome after.

  • chat_message_audit stops recording. It is a hook rather than a plugin, and hooks are only ever copied into the root home — nothing puts them on a named profile, and Hermes reads $HERMES_HOME/hooks and returns silently when the directory is absent. tool_call_audit is a plugin, is enabled on this profile and still records the inbound message with its session and pseudonymised user id, so what is actually lost is the record carrying the agent’s response text. Response content remains in the session store.

  • The platform profile’s config.yaml stops being restored from the image on every restart. Handing the file to the agent is the point — that is what lets /sethome and monitoring.install_id survive — but the same change means a key the running agent writes there is not reverted at boot. Keys the image adds still arrive through the back-fill; keys already in the file stay as they were last written, except the remote MCP server entries, which follow the image (below). Operator-owned settings are unaffected: they come from the overlay and the /etc/hermes pins, both re-applied every boot.

  • Cluster profiles that already exist are otherwise unaffected — their config, skills and scaffolding on disk are unchanged and they keep working. What stops is the scheduled work above, which includes cluster-agent-reconcile, so a cluster onboarded while the flag is on gets no profile until the flag goes back off.

  • enabled — the agent’s shell runs in a StatefulSet of its own, reached over SSH with the keypair in the agent’s credential Secret (SANDBOX_SSH_PRIVATE_KEY and its public half in <name>-shell-authorized-keys). This is not a toggle: false is refused with Degraded/ShellSandboxCannotBeDisabled, which changes nothing about the running workload. Absent or true are the same thing. With no keypair the sandbox Pod cannot start at all — the Secret it mounts is not optional — so the operator reports Degraded/ShellSandboxKeysMissing rather than leaving the Pod in ContainerCreating with the reason only in a Pod event. install.sh, upgrade.sh and the Terraform composition generate the pair; a bare helm install that passes none, or a kustomize install (INSTALL.md Method 2) that skipped its Step 2, reaches that state.

  • image — overrides the sandbox image. Empty takes the operator’s default. A pinned image must be at least as new as the operator. The operator runs the image’s entrypoint in an init container that stages the image-shipped trees, and an older image does not have that mode, so the sandbox Pod never starts. A pin also survives every upgrade, and a sandbox older than the agent fails its kubectl calls at the credential proxy, so the operator reports the ShellSandboxPinned condition while the pin differs from its own image.

  • runtimeClassName — runs the model-executing Pods — the shell sandbox (<name>-shell-0), AgentProfile workers, and A2A session Pods (passed to <name>-a2a-gateway as A2A_SESSION_RUNTIME_CLASS) — under a sandboxed container runtime, gvisor being the one GKE offers. The Helm chart and Autopilot Terraform composition default this to gvisor; unset on the raw CRD uses the node default. Separate from spec.deployment.availability.runtimeClassName, which governs the gateway Pod: that Pod holds SQLite databases whose WAL mode gVisor corrupts on the gofer-backed mount, while the model-executing Pods hold none — so an install sandboxes the untrusted Pods without sandboxing the gateway Pod.

    On GKE Standard the cluster needs a node pool created with --sandbox type=gvisor; Autopilot ships the RuntimeClass natively. A RuntimeClass the cluster does not have leaves the CR Degraded naming it, rather than a Pod sitting Pending. When the kube-agents-a2a-gateway-pod admission policy is installed, A2A session Pods only admit unset or gvisor; custom RuntimeClasses require customizing or disabling that policy.

  • resources — requests and limits for the shell container. Merged per key over the operator’s defaults, or over the sizingProfile row when one is set, like credentialProxy.resources under spec.deployment: a CR that sets only the memory pair keeps the default 200m CPU request and 2 CPU limit. The defaults are a 512Mi memory request and a 2Gi memory limit. Only cpu, memory and ephemeral-storage are accepted.

    The shell is where every model-authored command runs, so a fleet sweep that fans out many kubectl calls at once is bounded by this container’s memory. On GKE Autopilot without bursting the limits are set equal to the requests, so there requests.memory is the figure that counts, with limits.memory to match. A change rolls the shell Pod, as an image change does; the image-trees init container and the gateway’s sandbox sidecars keep their own figures.

    The sandbox’s memory guard stops the largest command before the container reaches its limit. The sign to raise the limit is a shell-memory-guard killed line in the shell Pod’s log, or a no-candidate line when many small commands fill it (fleet sizing). Where the guard logs itself disabled, the sign is an OOMKill.

    The operator refuses a request above its limit, a negative quantity, a zero limit, claims, and any other resource name, whether or not the webhook is on. It ignores the override, renders the shell at the profile’s row (the operator’s defaults under small), and reports Degraded with reason InvalidShellSandboxResources when no higher-ranked Degraded cause is present, the agent staying Ready. There is no memory floor. Where the validating webhook is enabled, admission refuses the same override at apply, and warns on the GKE Autopilot memory-per-vCPU band and on a cpu or memory limit set without the same key under requests, for the reasons credentialProxy.resources gives.

The GitHub-writing skills hand the credential broker file content and a commit message rather than a directory both sides mount, so the agent never holds a .git. There is no field for it: the broker keeps the checkout on its own state volume, which closes git’s config-driven exec surface — a hook, a pager, a filter.*.clean, an ext:: transport — and an install that could turn that off would be choosing to keep it open.

The credential broker is a Deployment of its own, never a container of this Pod, so a proxied command reaches it over a ClusterIP Service and nothing crosses as a path. A document travels on stdin, a kubeconfig as a GKE context name, a commit as file content. spec.security.workloadIdentityFederation is optional hardening on top of that, not what places it.

Abstracts the pod/deployment configuration. The controller synthesises a Deployment from these plus the workspace ConfigMaps. Available fields:

  • image — container image repository.

  • tag — image tag. Applies only when image is set without a tag or digest, falling back to latest there; when image is omitted, the operator’s default platform-agent version applies instead. The credential broker’s image is derived from the same repository and tag unless CREDENTIAL_PROXY_IMAGE (the chart’s credentialProxy.image) pins it, and a pinned one must be at least as new as the operator. The operator reads the broker’s readiness on a health listener (port 8768) that older broker images do not open, so a broker Pod running one never becomes Ready.

  • imagePullPolicy — one of Always, Never, IfNotPresent. Default IfNotPresent.

  • imagePullSecrets — Secrets in the agent’s namespace holding registry credentials, as - name: <secret> entries. Referenced, not created: each must exist before the pod is scheduled. Pod-scoped, so it covers the agent, both injected sidecars, anything in initContainers/sidecars, and the OCI image volumes AgentPlugins mount.

  • browserArgs — extra command-line args for the agent’s browser (e.g. --no-sandbox). The agent image ships no browser and every profile disables the browser toolset, so the field takes effect only on an image you build with a browser in it.

  • availability.replicas — the gateway’s replica count, default 1. The operator runs the gateway as a single replica: a value above 1 renders exactly what 1 renders (one replica, Recreate, no leader election, ReadWriteOnce default claims), and the ReplicasLimited condition (status below) says so. High availability is not supported yet.

    Above one replica the gateway container would run leader_elect.py, which needs an in-cluster ServiceAccount token that container deliberately does not have, so it exits at startup; and the data volumes an install creates at one replica are ReadWriteOnce, so a replica scheduled on another node cannot attach them. The field is not refused at admission, so a CR that already asks for more keeps reconciling. On such an install, claims created earlier keep their access mode, since claims are created once; and a gateway that ran as a StatefulSet (more than one replica over ReadWriteOnce storages) is replaced by the Deployment, which mounts new claims.

    Set it to 1, or remove it, to clear the condition. That can leave the ReplicaSet from the higher count behind, still running pods that crash-loop: if gateway pods keep failing after the condition clears, find it with kubectl get rs -n <namespace> -l app=platform-agent-gateway (a ReplicaSet that isn’t the current one but still has replicas) and run kubectl scale rs <name> -n <namespace> --replicas=0.

  • availability.a2aGateway.replicas — the A2A gateway’s replica count, default 2, minimum 1, maximum 5. One replica holds the gateway’s Lease and does the work; the others stand by and take over within the lease’s 20s if it stops. The operator renders more than one only once a gateway pod on the image it renders holds the Lease (the GatewayElected condition), and one with Recreate until then. Two or more roll with a surge pod, so the namespace’s ResourceQuota needs room for one more gateway pod during a rollout; set 1 where it has none. An install upgrading from one gateway pod goes to two once its new gateway holds the Lease.

    The chart’s quota check and the operator’s own session pod quota both count the standby and the surge pod.

    The elected gateway depends on the API server. A leader whose renewals fail stops about 12s after its last good renewal, and no replica leads until the API server answers again. Chat, the console and the relay stop for the length of a control-plane outage, and a zonal cluster’s control-plane upgrade is several minutes of that. Run a regional control plane where the gateway must stay up through one.

  • availability.runtimeClassName — pod runtime class (e.g. gvisor) for the gateway Pod (<name>-gateway), unset by default. Nested under availability alongside replicas, nodeSelector, tolerations and affinity. Model-executing Pods (<name>-shell-0, AgentProfile workers, and A2A sessions) use harness.experimental.shellSandbox.runtimeClassName instead.

    When set on the gateway Pod, the managed config carries database.journal_mode: delete, and the entrypoint converts Hermes’ existing databases out of WAL once at start-up — state.db, kanban.db and the cron, project, evidence, response, memory and Discord stores Hermes opens through the same journal-mode helper. A sandboxed runtime serves the data volume over a gofer mount that accepts SQLite’s WAL mode and then corrupts it. The Session KV store (session_kv.db on the system-metadata volume) sets WAL itself and is not covered by either. Clearing the field drops the pin, and the databases return to WAL on their next open.

  • env — additional container environment variables.

  • resources — requests and limits for the agent container, replacing the operator’s defaults as a block. The memory request is also the dispatcher’s default admission budget (tuning.admission), so raising it admits more workers at once. Setting it below workerRssCapMiB without raising admission.memoryBudgetMiB or lowering workerRssCapMiB is rejected where the validating webhook is enabled, or reported as Degraded (InvalidKanbanAdmission).

  • credentialProxy.resources — requests and limits for the credential-proxy container, the broker that runs every credentialed command in a pod of its own. Merged over the operator’s defaults per key, unlike resources; spec.deployment.credentialProxy.resources has the defaults it keeps, what the operator refuses, and what admission warns about.

  • credentialProxy.exec.replicas — the number of exec-tier broker pods, 0 to 32: stateless replicas beside the broker pod that answer /v1/exec and /v1/gcp/ only. 0, the default, renders none. A positive count renders the <name>-credential-proxy-exec-tier Deployment, Service, count ConfigMap, NetworkPolicy and (from two replicas) PodDisruptionBudget, and gives the sandbox, the profile workers and the session pods its address. Each replica requests and is limited to 2 CPU and 2Gi, so each one needs a node with that much free, and the pods that turning the tier on restarts (below) need room to start again.

    Turning it on or off restarts the shell sandbox and the profile warm pools, and the A2A gateway under the cluster view; changing between two positive counts restarts nothing. With a positive count the agent’s name must be at most 36 characters, or it is refused and Degraded reports InvalidCredentialProxyExec. The operator does not size the tier from the fleet; CredentialProxyExecReady reports its Ready replicas, and Unschedulable with the scheduler’s message for a replica that has no room.

  • agentAPIAuth.resources — requests and limits for the agent-api-auth sidecar in the gateway pod, the native container that authenticates the agent’s API-server calls and also runs the event watcher and the drift detector, and the audit-report store listener on 8700. Merged per key over the operator’s defaults, or over the sizingProfile row when one is set, like credentialProxy.resources: a CR that sets only limits.memory keeps the default 150m CPU request, 384Mi memory request, 1 CPU limit and 2Gi ephemeral-storage limit.

    The event watcher reads the memory limit through the Downward API and sets its Go soft memory limit to half of it, so raise limits.memory when the watcher is OOM-killed under a large fleet of watched clusters. Overriding limits.cpu also changes the watcher’s GOMAXPROCS, which the Go runtime derives from the container’s CPU limit, so leave limits.cpu at the default unless you mean to. Only cpu, memory and ephemeral-storage are accepted.

    The startup peak depends on the control plane. With the WatchList feature gate, on at Kubernetes 1.32 and from 1.34, the watcher holds a cluster’s whole initial stream until its end, so up to four of the largest backlogs are resident at once. Without the gate the watcher reads the backlog in pages of 500 Events and holds one page per cluster. Steady state scales with the number of watched clusters and their open incidents.

    The operator refuses a request above its limit, a negative quantity, a zero limit, claims, and any other resource name, whether or not the webhook is on. It ignores the override, renders the sidecar at the profile’s row (the operator’s defaults under small), and reports Degraded with reason InvalidAgentAPIAuthResources when no higher-ranked Degraded cause is present, the agent staying Ready. There is no memory floor, unlike the credential proxy, because the watcher derives no admission count from the limit. Where the validating webhook is enabled, admission refuses the same override at apply, and warns on the GKE Autopilot memory-per-vCPU band and on a cpu or memory limit set without the same key under requests, for the reasons credentialProxy.resources gives.

  • initContainers / sidecars — standard init and sidecar containers. A volumeMounts entry naming a reserved volume is refused at admission, the same as extraVolumeMounts. That is the route that needs no user-authored volume at all, and so the one the name reservation exists for; see Reconcile behavior.

    The render also writes two environment variables onto every sidecars entry — POD_NAMESPACE (downward API) and A2A_CAPABILITY_REQUIRED — with different precedence. The operator’s A2A_CAPABILITY_REQUIRED wins, so a value set for that name in the CR is discarded on every reconcile, while POD_NAMESPACE is supplied only as a default and a CR value for it survives. Both are inputs to the A2A capability check the sidecar executor performs, not container configuration; nothing else in the container is rewritten.

  • extraVolumes — custom volumes for the main container. Both halves of the reservation apply: a reserved name, and a source that would carry the A2A bus credential or watcher token, are each refused at admission; see Reconcile behavior.

  • extraVolumeMounts — custom mounts for the main container. A mount has no source, so only the name half applies: an entry naming a reserved volume is refused at admission.

  • sidecarVolumes — custom volumes for the sidecar containers. Same reservations as extraVolumes.

  • The watchers’ broker token is reserved on all five surfaces. The webhook refuses the volume name watcher-credential-proxy-token on sidecars, initContainers, sidecarVolumes, extraVolumes and extraVolumeMounts, and any volume projecting the kubeagents-credential-proxy-watcher audience under another name. Where the webhook did not run, the controller leaves out of the Pod template any user volume under that name or projecting that audience, together with every volumeMount naming one across all five surfaces. The VolumesDropped condition names the dropped volumes and bare watcher-credential-proxy-token mounts with reason WatcherTokenVolumeDropped (or HostPathVolumeDropped when a hostPath volume is dropped too). The token belongs to the gateway’s agent-api-auth container alone.

  • A hostPath entry on either volume list is refused at admission, and on an install where the webhook did not run (the Helm chart ships it off, and one enabled through the chart fails open at its default failurePolicy: Ignore) the controller leaves it out of the Pod template at render, together with every volumeMount naming it on the agent container, the dashboard container, and the CR’s own sidecars/initContainers. The rest of the template renders as written, and the VolumesDropped condition (status below) names what was left out — as many entries as fit in 4096 bytes, then a count of the rest, and an entry longer than that on its own cut with ....

    The budget is the controller’s, not the schema’s: a condition message may hold 32768 characters, and the list stops well short of it because kubectl describe is where it is read and the first few entries are what anyone acts on. Volume names and host paths are the author’s, and nothing bounds their length or their number, so an unbounded list would be one spec away from failing the whole status write — Ready, the phase and every other condition with it.

  • podAnnotations — annotations applied to the generated pod template.

  • scaleToZero — when true, scales the gateway Deployment to 0 replicas (idle cost saving). The shell sandbox, the credential broker and the A2A stack keep running. Once the gateway has no ready replica the PlatformAgent reads phase: Paused, with Ready False and reason ScaledToZero. That tells a paused install from one whose rollout never finishes. Set the field to false or remove it, and the normal phases return: Provisioning while the gateway starts, then Ready. What Ready reports has the detail. On the way back the Platform Agent’s scheduled audits do not all start at once: Catch-ups after a pause.

  • sizingProfile — the preset row the credential-proxy container, the agent-api-auth sidecar and the shell container start from, before the per-key overrides above and under shellSandbox are applied over it; an explicit key always wins. One of small (the default, and what an absent field means: the operator’s defaults as documented above), medium, fleet or auto. The agent container’s own resources are not part of a profile.

    Tier Credential proxy agent-api-auth Shell
    small the defaults above (8 slots) the defaults above the defaults
    medium 1 CPU and 4Gi requests (2 CPU and 4Gi on GKE Autopilot), 2 CPU and 4Gi limits, 8Gi ephemeral-storage (12 slots on auto, 8 fixed) 4Gi memory limit the defaults
    fleet 4 CPU and 8Gi requests, 8 CPU and 8Gi limits, 8Gi ephemeral-storage (16 slots on auto, 8 fixed) 8Gi memory limit 4Gi memory limit

    Figures a row does not name keep the small row’s. auto sets the minimum floor from the cluster count the operator polls into status.usage, the larger of clustersRegistered and clustersMonitored: medium at 10 clusters, fleet at 25. It starts from status.effectiveSizingTier (small when unset, or the explicit tier an edited CR held).

    Above that floor, auto polls live pod metrics (metrics.k8s.io/v1beta1) and broker /metrics every 100 seconds into status.sizing. When any bottleneck dimension stays at or above 75% of the current tier’s capacity continuously for 5 minutes, auto promotes to the lowest relieving tier. After a 30-minute cooldown since the last transition, auto checks every shrinking dimension on tier - 1. If all required metrics are present and at or below 55% of tier - 1 capacity continuously for 25 minutes, it steps down one tier (never below the cluster-count floor). When spec.deployment.scaleToZero is true, absent agent-api-auth metrics do not block step-down because the gateway runs at zero replicas.

    Before each step up under auto, the operator reads every ResourceQuota in the namespace. agent-api-auth (Recreate) and shell (StatefulSet ordered replacement) count after - before. Under in-cluster surge (RollingUpdate, maxSurge: 1, maxUnavailable: 0), credential-proxy requires admission to fit the full replacement pod (after plus one pods/count/pods slot) beside the running pod; off-cluster (Recreate), it counts after - before. On step-down under auto, it checks only the credential-proxy surge pod (after plus one pod slot when active-standby surge is on), omitting agent-api-auth and shell deltas. On step-up, it takes the highest candidate tier admitted, or keeps the running tier. On step-down, missing surge room or LimitRange headroom holds the running tier.

    With a quota or a LimitRange in the namespace, a step is measured only once the running tier’s workloads have settled: each carries the tier’s resources, its rollout is complete and every replica is available. A quota’s used total charges a step only when admission has created its pods. So the pass after a tier change, while workloads recreate or surge, measures nothing and leaves the tier and condition as they are. Each such pass logs the hold and the workload it waits on.

    A workload that is not there has not settled either. The quota charges nothing of it while the step is measured from its row, and a Pod-type LimitRange item is read against its template. So the pass that creates it is the one that lifts the hold.

    On GKE Autopilot without Pod bursting admission sets every limit equal to its request. The operator reads that clamp from autopilot.gke.io/resource-adjustment on the running templates. A clamped limit is read through the requests side for settled checks and utilization denominators. When clamped, every limits.* key of a step (including replacement surge room on credential-proxy) uses the requests movement instead of the row limits. On GKE Standard or bursting Autopilot, limits are compared and counted as written.

    Any refused step sets the SizingCappedByQuota condition (status below) naming the quota and the key, rather than leaving an unschedulable rollout stuck. The message names the tier earned, the running tier the refused step was measured from, and the tier that stays. A count or load that earns fleet with room for the medium step therefore reads as the step up from small until the medium pods settle. The step from medium is then measured, the message changes once, and the Warning event carries that step’s figures.

    A quota whose scopes cannot select these pods is not read, as admission would not read it: Terminating, BestEffort, CrossNamespacePodAffinity, VolumeAttributesClass, or a PriorityClass requirement that does not match the class admission gives these pods. NotTerminating and NotBestEffort quotas bind them and are read. An explicit tier is applied as written, without the check.

    That class is the one admission gives the broker pod a step creates. The operator asks for it with a server-side dry-run create of a Pod built from the broker Deployment’s template, which runs the API server’s Priority plugin and persists nothing. The answer is none on a cluster with no globalDefault PriorityClass, and the default’s name on one that has it, created before or after the install. A quota scoped In that default then binds the pods and is read. Admission is asked only when a PriorityClass-scoped quota constrains a cpu, memory or ephemeral-storage key. One that counts pods or count/* alone asks nothing there, though a pods/count/pods quota still gates a credential-proxy surge.

    When the dry run is refused, the step is held: nothing is measured, the tier and any standing condition stay as written, and the pass logs the hold until admission answers. A broker Deployment that does not exist yet holds the step the same way, before admission is asked.

    Under sizingProfile: auto in-cluster, credential-proxy uses RollingUpdate (maxSurge: 1, maxUnavailable: 0) under operator-coordinated active-standby handoff (after one Recreate hop on upgrade from pre-standby pods; default and fixed profiles keep Recreate). The surge pod warms in standby (/healthz returning 503) while the old pod stays active. It self-activates after 45s only when DNS resolves a clean non-200 or ConnectionRefusedError from an empty Service; DNS/network/HTTP probe errors fail closed and reset the timer.

    Otherwise, the operator drains the old pod, records the active holder on the <agent>-credential-proxy Lease (an audit record the broker never reads), and activates the new pod. Across drain, the old pod keeps /healthz at 200 so Service Endpoints remain non-empty while refusing new commands with retryable 503 draining; Kubernetes terminates it once the replacement passes readiness.

    If node capacity cannot schedule that surge pod and it remains Pending past 2m, auto rolls back to the active running tier, keeps the running active pod untouched, and sets SizingCappedByQuota with reason SurgeUnschedulable. Similarly, if the proxy or gateway Deployment carries ReplicaFailure with exceeded quota on a step up or step down, the next pass reverts to the active tier (or tier - 1 when no running tier differs) and sets SizingCappedByQuota naming the quota.

    The quota refusal is read when a key it names is one the step moved on that pod (or pods/count/pods on a credential-proxy surge) and is not a stale leftover from an earlier row. A key no row moves, or an old ReplicaSet refusal lingering after a rollback, is left to the settled hold instead.

    The lower row is rendered, and once its pods settle the step up waits ten minutes from the step back (though SurgeUnschedulable still monitors new surge pods after 2m). A pod refused at a lower row steps back in turn, while the shell StatefulSet shows its refused pod as a settled hold in the operator log.

    The check also reads the namespace’s LimitRanges, before the quotas, as admission does. Each Container-type item’s max, min and maxLimitRequestRatio are compared with the three sized containers’ requests and limits at the candidate row. Each Pod-type item’s are compared with the sums of the pods those containers run in, read off the running templates with the sized container’s figures swapped for the candidate row’s. The limits are read through the Autopilot clamp where the running templates show one. A row that crosses a bound is refused and the condition names the LimitRange, the item’s scope, the bound, the resource and the container, with reason LimitRangeShort and the figures in a SizingCappedByLimitRange Warning event.

    Neither preflight check reads node capacity. On GKE Standard the medium and fleet rows’ broker requests (1 and 4 CPU) have to fit on one node before a surge or new broker pod can start. A Standard pool therefore needs nodes that fit the fleet row’s 4 CPU request (e2-standard-8 or larger) before load or cluster count reaches fleet under auto (the sizing guide).

    Under sizingProfile: auto in-cluster, any tier change rolls credential-proxy via active-standby handoff without dropping Service endpoints (in-flight commands drain up to 30s while CLI/VCS callers and MCP relays retry pre-admission 503 draining with Retry-After), whereas fixed profiles roll credential-proxy via Recreate. Every tier change restarts <name>-gateway via agent-api-auth (2Gi/4Gi/8Gi unless overridden); only fleet transitions restart <name>-shell (2Gi -> 4Gi), and fixed-2Gi credential-proxy-exec pods stay at 8 slots unchanged. The usage poller runs 30 seconds after election and every five minutes, while auto utilization polling runs every 100 seconds.

    Admission and the reconciler validate an override against the row the CR renders: the explicit profile’s, or under auto the tier status.effectiveSizingTier holds, small before the first pass writes one. A CR run at an explicit fleet with an override the fleet row admits, a 3 CPU request on the proxy, say, keeps it when switched to auto while load or count supports fleet. A higher row never refuses an override a lower one admitted; a step back to a lower row that refuses one renders that row and reports Degraded until the override is corrected, as an override that was never valid does.

Default image: derived dynamically from the operator’s container image at runtime via the OPERATOR_IMAGE env var on the controller manager (e.g. ghcr.io/gke-labs/kube-agents/platform-agent:<version>), overridable operator-wide via the PLATFORM_AGENT_IMAGE env var on the controller manager (see Docker images § Private / custom registry), and falling back to ghcr.io/gke-labs/kube-agents/platform-agent:latest if neither is set. Rebuild with make dev-rebuild-agent ARGS="platform" for local iteration.

imagePullSecrets has the same operator-wide form, IMAGE_PULL_SECRETS on the controller manager, taking comma-separated Secret names. It differs from the image overrides in one way: a CR that sets imagePullSecrets replaces the operator’s list rather than merging with it, so an agent that names its own registry identity is stating it completely. See Docker images § Registry authentication.

credentialProxy.resources is merged over the operator’s defaults per key, unlike resources: a CR that sets only limits.memory, at or above the default memory request, keeps the default requests, the 2 CPU limit and the 8Gi ephemeral-storage limit, which bounds the broker’s scratch clones. The proxy’s state emptyDir (size limit 5Gi) grows by whatever that limit is raised above the 8Gi default, and its /tmp emptyDir keeps its 2Gi, so the kubelet does not evict the pod at the smaller figure.

The default requests are 500m CPU and 1Gi of memory, and on GKE Autopilot 2 CPU and 2Gi, because Autopilot without bursting clamps the limits to the requests. A cpu or memory limit set without its request, below the default request, lowers that request to the limit. On Autopilot a CPU request the CR does not set is held to at most one CPU per GiB of the memory request, so the pair does not fall under the band’s 1 GiB per vCPU floor.

The broker sizes how many commands it admits at once from the memory limit, so that is the key to raise when the proxy is OOM-killed under a large fleet, or pick a sizingProfile row that raises it. Only cpu, memory and ephemeral-storage are accepted, the quantities the container declares.

What the operator refuses. A memory limit below 544Mi (two commands at once), a request above its limit, a negative quantity, a zero limit and claims, which the proxy pod has no use for. A refused override, including an edit of one that was valid, renders the proxy Deployment at the sizing profile’s row (the operator’s defaults under small) rather than at the last accepted override until it is corrected, which rolls the proxy Deployment once (active-standby RollingUpdate under sizingProfile: auto in-cluster, or Recreate otherwise), and the agent stays Ready whether or not the webhook is on. The Degraded condition carries one reason, and reports InvalidCredentialProxyResources when no higher-ranked Degraded cause is present.

What admission adds. Where the validating webhook is enabled, admission refuses the same override at apply and the running proxy is untouched. Admission also warns, using the Autopilot default requests on every cluster type, when memory per CPU on the requests pair leaves the 1 to 6.5 GiB per vCPU band GKE Autopilot admits unchanged, because Autopilot then raises the smaller request and the chart’s quota preflight is short by the difference; Autopilot applies the band to requests only.

It warns too for each of cpu and memory set under limits without the same key under requests, unless the limit equals the request it would be replaced by: Autopilot without bursting sets the limits equal to the requests, so a CR that sets only limits.memory: 3Gi runs at the 2Gi request there. Set the request to the same value, or enable bursting, under which the declared limits stand.

  • serviceAccountName — the KSA the credential broker Pod runs as, with its Workload Identity binding. kubeagents-platform-agent by convention. The gateway Pod runs as its own <name>-gateway-agent, which the operator creates; a value naming that or another operator-created ServiceAccount is refused.

  • serviceAccountAnnotations — passed through to the KSA. Typically holds iam.gke.io/gcp-service-account for Workload Identity binding.

  • workloadIdentityFederation — audience (the pool provider’s full resource name) and serviceAccountEmail (the GSA to impersonate). Set both, or neither: a half-filled block is read as absent. Optional hardening: with it set, the credential broker takes its GCP identity from a projected token file in its own Pod rather than from the metadata server. Without it the broker uses the Workload Identity annotation on its own ServiceAccount; the gateway runs as a separate ServiceAccount with no annotation either way. The chart sets both from platformAgent.security.workloadIdentityFederation; nothing creates the pool, and those commands are in designs/agent-shell-sandboxing.md.

  • egressPolicy — None (default) or Allowlist. Allowlist renders a default-deny egress NetworkPolicy on the agent Pod, with the link-local metadata server’s credential API left off the allowlist (the address is permitted on port 53 alone, where it is the Cloud DNS for GKE resolver). It blocks nothing today, and cannot — unless networkPolicy.enabled: false has withheld the gateway policy, in which case this becomes the Pod’s only policy and default-denies for real on an enforcing CNI.

    Everywhere else: adding a policy is monotone — policies selecting one Pod are unioned and the API has no deny rule — and the same Pod is already selected by <name>-gateway-netpol, which names 169.254.169.254/32 on port 53 only (the resolver; it opens no metadata path) and permits TCP 443 to 0.0.0.0/0 minus the private and link-local ranges. So enabling this widens the Pod’s permitted egress (by the broker on 8765, and by the managed collector namespace on 4317/4318 when the agent is not exporting telemetry) and narrows nothing; what you get is an auditable object, not enforcement.

    The gateway no longer holds a cloud identity and its policy opens no metadata path; narrowing <name>-gateway-netpol’s internet rule is what turns this field into a control, and the capability cost lands then. It will also do nothing on a cluster whose CNI does not enforce NetworkPolicy, which the operator cannot detect. See Credential isolation § Denying the sandbox the metadata server.

  • egressAllowlist — tunes egressPolicy: Allowlist. controlPlaneCIDRs permits the Kubernetes API server on 443 (absent by default, which costs the agent container its API-server connection; a bare address — what the documented gcloud command emits for a public endpoint — is widened to a single-host prefix). extraRules are NetworkPolicy egress rules appended verbatim, except that a rule the operator will not render is refused loudly rather than silently dropped. The agent goes Degraded/EgressAllowlistRefused, the workload stops being reconciled, and the policy keeps being rendered minus the refused destinations. The refused shapes:

    • an ipBlock reaching a metadata address, including in IPv4-mapped form;
    • a rule with no to peers;
    • a peer naming no ipBlock, podSelector or namespaceSelector;
    • an invalid CIDR, in cidr or except;
    • an except outside its cidr, which the API server would reject in a way that wedges the whole reconcile;
    • controlPlaneCIDRs wider than /16 IPv4 or /32 IPv6.
  • scopedServiceAccountPool — the scoped service account pool: the switch that arms it and the project→service-account mapping it serves. Absent (the default) the pool is disarmed and the broker runs on the agent’s own identity, with CREDENTIAL_PROXY_SCOPED_SA_POOL=0 on its container. Leave it off for now: pool members currently hold no IAM grant, so an armed pool turns every mapped-project read into a Forbidden — see the caution on the pool section.

    • enabled — arms the broker, and is the only thing that does: a populated serviceAccounts list with enabled: false renders nothing, and a project declared in spec.scope arms nothing either. With it true the operator renders the mapping into the credential-proxy ConfigMap (scoped-sa-pool.json, version 2, sorted by projectId), mounts it read-only, and sets CREDENTIAL_PROXY_SCOPED_SA_POOL=1. The broker then mints a short-lived token for the account a request’s project maps to and refuses a project with no entry (403, rule gcp.scoped-sa.unmapped-scope) rather than falling back to the ambient credential. enabled: true with an empty list is rejected at kubectl apply, since the broker refuses to start on an empty pool.

    • serviceAccounts — one {projectId, serviceAccountEmail} entry per GCP project the agent may read, each account provisioned by Terraform in the host project (the composition’s scoped_service_accounts output is the source). Keyed on the project rather than the cluster: the project is the IAM unit a scope declaration is written in, and two clusters in one project share an account by design.

      The list is keyed on projectId so a duplicate project is rejected at kubectl apply rather than crashlooping the broker at startup; both fields are pattern-validated, and there is no entry cap — the Terraform module’s scoped_pool_max_accounts is the bound declared on the pool from the host project’s free service-account quota, and the plan holds the derived set to it before any entry reaches this list.

The Workload Identity target GSA (kubeagents-platform-gsa@<project>.iam.gserviceaccount.com) is created and bound by the kube-agents-iam Terraform module with one of these permission sets:

  • read-only (default)
  • custom (roles supplied via the installer’s --custom-roles, the composition’s project_roles)

Optional. Which GCP projects, folders, organisations, Shared VPC hosts and Metrics Scopes, beyond the project the agent runs in, the hourly Cluster Agent reconcile enumerates for GKE clusters, and which projects and clusters it leaves unmanaged. The management project is always in scope and cannot be excluded.

The chart renders it from platformAgent.scope, and the Terraform composition sets that value from scope in its tfvars, which the installer generates from SCOPE_PROJECTS, SCOPE_FOLDERS, SCOPE_ORGANIZATIONS, SCOPE_SHARED_VPC_HOSTS, SCOPE_METRICS_SCOPES, SCOPE_MAX_PROJECTS, SCOPE_EXCLUDE_PROJECTS and SCOPE_EXCLUDE_CLUSTERS in install.env, so on those paths the field is declared there and never by editing the PlatformAgent. The installer refuses a full upgrade over a spec.scope edited by hand until install.env records it (it prints the SCOPE_* lines that reproduce it) or the CR is put back. A retag, or a hand-driven composition apply whose rendered scope is unchanged, leaves the edit in place because Helm sends only the difference between its rendered manifests.

An empty scope is a present block with empty lists, rendered whenever the chart is given one (folders, organizations, sharedVpcHosts, metricsScopes and maxProjects only when the value carries the key, so a release record from before the chart knew them leaves the CR’s lists and cap alone on a retag; the composition always passes all five). A chart that is given nothing (the value is null, its default) renders no block, which leaves the field as it finds it while no earlier release rendered the block and removes it once one has, a removal the reconcile reads as no declaration (the management project alone, nothing retired).

The composition binds the read roles before it writes the CR, which orders creation and not IAM propagation. A first install’s one-shot inventory sweep may still name a scoped project as denied, and the hourly reconcile creates its profiles once the grant has propagated. Absent, the reconcile lists the management project alone, every cluster there getting a Cluster Agent profile, keeps the last declaration’s exclusions and marks nothing newly retiring (a project an earlier block already marked retiring is still pruned on a clean run); an empty projects list in a present block drops the projects an earlier block declared, over two clean runs.

That default reaches every cluster in the management project, the ones nobody deployed the agent for included. A scope with no membership list is the block absent, or present with every membership list empty, which is what the installer renders without SCOPE_* values. While that holds and the event watcher registers a cluster in the management project other than the host, the operator writes the ScopeUndeclared condition with the count and names of the adopted clusters (Status). A profile in another project is not counted: nothing adopted it. To keep the adopted clusters and clear the condition, name the management project in projects; to leave a cluster unmanaged, list it under exclude.clusters, and the next reconcile prunes its profile.

The condition covers a scope that names nothing. The management project stays in scope under any declaration, so a scope that names other projects silences it without retiring the neighbours. On an install made with install.sh, declare the scope in install.env (SCOPE_PROJECTS, SCOPE_EXCLUDE_CLUSTERS) and run upgrade.sh; a hand edit of the CR is refused at the next full upgrade, as the paragraphs above say.

spec:
scope:
projects: # explicit project IDs, in addition to the management project
- payments-prod
- payments-staging
folders: # numeric folder IDs, every project beneath them at any depth
- "123456789012"
sharedVpcHosts: # Shared VPC host project IDs, every service project attached to each
- shared-net-host
metricsScopes: # Metrics Scope scoping-project IDs, every project each scope monitors
- observability-hub
maxProjects: 100 # the most projects a run lists, the management project included
exclude:
projects: # project IDs or shell-style globs, dropped after resolution
- "*-sandbox"
clusters: # one cluster each, by the full triple
- projectId: payments-staging
location: us-central1
clusterName: scratch-cluster
  • projects — project IDs whose clusters get profiles. The agent’s service account needs the read roles in each one (roles/container.clusterViewer, roles/container.viewer, roles/compute.viewer, roles/monitoring.viewer, roles/logging.viewer, roles/iam.securityReviewer, roles/gkehub.viewer, roles/recommender.viewer, the read subset of the read_only_roles the Terraform composition binds in the management project). The composition binds the ones the management project holds, through the kube-agents-iam module’s scope input, in every project the same value names; a CR edited by hand needs the same grants made by hand.

    A project it cannot list is reported as denied, api-disabled or unreachable (Project outcomes) and its existing profiles are kept. Each list is capped at 100 entries, and the run lists at most maxProjects projects in total (100 by default), the management project included; an explicit project past that reads over-cap and is likewise kept but not listed.

  • folders and organizations — numeric IDs of GCP folders and organisations. Each is resolved on every run with one Cloud Asset Inventory call, which names every GKE cluster in every project beneath it, at any depth. spec.scope.folders and spec.scope.organizations has the roles it needs, the asset index’s lag, and how a container the run cannot read or that crosses the cap is carried.

  • sharedVpcHosts and metricsScopes — project IDs of Shared VPC host projects, and of the scoping projects of Cloud Monitoring Metrics Scopes. Neither is a Resource Manager container: each is resolved on every run to the projects it reaches, and those projects then take the projects path above. spec.scope.sharedVpcHosts and spec.scope.metricsScopes has the lookups, the roles they need, and how a monitored project the scope names by number reads.

  • maxProjects — the most projects the reconcile lists per run, the management project included, 1 to 5000, 100 by default: explicit projects, selector members and container members fill it in that fixed order, and a project past it reads over-cap (profiles kept, nothing created).

    The reconcile lists with four workers at every cap and sizes its listing budget from it, 300 seconds per default cap’s worth of projects, and the bootstrap gate’s ceiling on the reconcile follows the budget, so an estate of a few hundred projects declares the number it has rather than reading half of itself over-cap; the snapshot records the cap in force under maxProjects. Each run creates at most 100 profiles and leaves the rest to the next run, so a wide scope onboards in batches a run apart rather than against that ceiling; BOOTSTRAP_MAX_CREATES_PER_TICK under spec.deployment.env sets the number.

    The Terraform composition refuses a plan whose explicit projects and selector members exceed it, while a selector is declared or the cap is below its default, and renders the same value here from its scope.max_projects (SCOPE_MAX_PROJECTS in install.env). A CR edited by hand takes the value directly. The 100-entry cap on each declared list is unchanged: a hand-written list past a hundred entries is the shape folders exist for.

  • exclude.projects — IDs or globs matched against every resolved project ID. An entry that names a number exactly (a glob never matches a number) also matches the number a Metrics Scope named a monitored project by, on whichever route the project is reached, so long as the run can tie the number to the project’s ID.

    The run ties them by naming it, which the grant an entry in projects or a declared folder carries allows, or from the number an earlier run named it by. The snapshot keeps that number on the project’s row and, once the entry has dropped the project and it has no row, in its numbers map, so a number entry keeps matching a project the run named before and can no longer name, and a naming call that times out does not admit the project again.

    A number the run cannot tie to an ID matches only the member the Metrics Scope reports under that bare number. An entry that matches the management project, by ID or by the number a Metrics Scope named it by, is ignored and recorded in the snapshot, never applied.

  • exclude.clusters — single clusters by projectId, location and clusterName, because a cluster name is unique only within a project and location. This replaces the RECONCILE_EXCLUDE environment variable, which matched bare names across every project and keeps working for one release alongside it. An excluded cluster gets no Cluster Agent, and fleet answers, the onboarding sweep and the fleet-audit collectors that list clusters leave it out.

    The credential broker and kube-proxy refuse every route to an excluded cluster’s Kubernetes API, for every caller, the agents’ own commands included. That covers a kubeconfig the broker mints or uses, gcloud container clusters get-credentials, kubectl through kube-proxy, the watchers’ cluster relay and the gke MCP server’s in-cluster tools, each refused as scope.excluded-cluster. While any cluster is excluded, a target that names its project by number is refused too, and so is an in-cluster MCP call whose cluster the broker can’t read. Spell entries by project ID: an entry spelled by project number refuses its location and cluster name in every project. A broker or kube-proxy that can’t read the scope it was given reaches no cluster until it can (scope.exclude-unreadable).

    A GCP metadata read that names an excluded cluster is refused too, as scope.excluded-cluster: gcloud container clusters describe, gcloud container node-pools list and describe, and the gke MCP server’s get_cluster, get_node_pool and list_node_pools.

    A logging read, through gcloud logging read or the broker’s Logging relay, leaves out the cluster’s entries. The broker adds one clause to the filter that matches the cluster’s name, in any project and location, so a cluster that shares an excluded cluster’s name loses its entries too. It refuses a filter it can’t add one to safely.

    A node’s own entries, such as its serial console log and the audit entries about it, carry no cluster name. So the clause matches them by the node’s instance name: gke- or gk3-, then the cluster’s name and a hyphen, or its first 16 characters when it is longer. A cluster whose name starts with the excluded name and a hyphen, or with those 16 characters, loses its node entries too. An entry that names a node by its instance id alone stays in. gcloud compute instances get-serial-port-output is refused for such a node, as scope.excluded-cluster, and so is one whose instance the broker can’t read as a name (an instance id among them) while any cluster is excluded.

    A session’s or profile task’s gcloud container clusters list and gcloud container operations list leave an excluded cluster out too. The broker adds a --filter clause that matches its name, in any project and location, so a cluster that shares the name loses its row too. It refuses a --filter it can’t add the clause to safely, and lists nothing while it can’t read the scope.

    Other project-wide reads, such as an asset search or the instance list, aren’t filtered, and every other caller’s project-wide reads stay allowed, such as the project’s cluster list. Exclusion keeps the agents out of a cluster’s API, workloads, metadata and logs, not out of every caller’s view of the project’s cluster list. These still cover an excluded cluster, through project-wide reads only:

    • the daily upgrade-readiness watch and the Saturday upgrade-readiness-weekly-review, which grade its versions and skip their in-cluster readiness rules;
    • the networking audit’s subnet usage, since its pods still hold their IPs;
    • the GCE audit’s instance listing;
    • the third-party gke MCP server’s list_clusters.

    The upgrade-readiness watch used to read inside an excluded cluster too. It no longer does, because the broker can’t tell its reads from an agent’s. The broker enforces the exclusion, not IAM: the agent’s read roles still reach the cluster. Only a project where the agent holds no roles, bound there or inherited from a folder or organization, fences the service account off.

Each project the reconcile resolves reads one outcome in the run’s snapshot:

Outcome Meaning
ok The project listed its clusters.
denied No role left that grants container.clusters.list. roles/iam.securityReviewer alone keeps a project listable but not manageable, since it carries no container.clusters.get: its clusters list and every profile create fails, which is why the composition refuses a scope whose bindings carry neither roles/container.clusterViewer nor roles/container.viewer. A project reads denied only once every listing role is gone.
api-disabled GKE API off in that project.
unreachable Anything else, including a listing that did not finish within the run’s listing budget.
over-cap Past the maxProjects cap: profiles kept, nothing created, the project not listed.

A project with any outcome but ok keeps its existing profiles.

spec.scope.folders and spec.scope.organizations

Section titled “spec.scope.folders and spec.scope.organizations”

The design recommends folders until the scoped service account pool grants authority. A folder binding reaches every project beneath it, an organisation binding every project in the organisation, including ones nobody meant to manage, and one service account holds the read roles across all of them (Security & IAM).

Resolution. Each is resolved on every run with one Cloud Asset Inventory call (gcloud asset search-all-resources --scope=folders/<id> --asset-types=container.googleapis.com/Cluster), which names every GKE cluster in every project beneath it, at any depth, including projects created since the last run; no per-project listing follows for them. The asset index is what answers, not Resource Manager: a project moved into or out of a folder appears under its new parent once the index has caught up, which after a move can lag by more than an hour, and until then it reads as absent from the container.

A project the index dropped. Because the index and not the declaration dropped it, a project that was reached through a still-declared container and is absent from the index is kept, listed under unmanaged with that reason and the time it was first found absent (absentSince on its row), and is back in scope the run the index places it again.

That holds whether or not it was also named in projects, so dropping the explicit entry while the project moves into the folder costs nothing, and the same holds when the folder is declared in the edit that drops the entry: a container the previous run did not know is what marks that edit, and the same day’s grace applies.

It retires sooner when the declaration speaks, by the container leaving the CR or an exclude.projects entry naming it, and otherwise once it has been absent for a day, over the ordinary two clean runs. That is what retires a project that was deleted or moved under a parent the CR does not declare, since a deleted project answers 403 to describe, never NotFound.

A project dropped from projects, or whose folder leaves the CR, in the same edit that declares the folder it moved into is held that day too, since the index may not place it yet. A rollback to an operator that predates these fields renders a declaration without them, which the reconcile likewise reads as saying nothing about containers, so their members are kept.

Roles. The agent’s service account needs roles/cloudasset.viewer and the read roles above on the container, and cloudasset.googleapis.com enabled in the management project. The Terraform composition binds both on each container its scope value names, through the kube-agents-iam module, and enables the API when a container is declared, and the installer checks before the apply that the credentials Terraform applies with can set IAM policy on each container and that no organisation policy forbids the API. A CR edited by hand needs the same grants made by hand, and recording such a container in install.env later hands its bindings to Terraform, which then needs that permission too.

A container the run cannot read (denied, api-disabled, unreachable) is frozen: the members the previous snapshot reached through it are carried forward under that outcome, nothing is created under them, and the scope prune stays off for the run. A project under two declared containers takes the live listing when either resolves, whichever sorted first, unless the cap is already reached. A member whose per-cluster call answers 403 reads denied for the run, unless it is also explicit or the management project, whose own listing decides.

The snapshot. The snapshot’s containers array lists each container with its outcome and a project count: the projects the lookup returned for ok and over-cap, the members carried forward from the previous snapshot for a failed lookup. A member project’s via names it (folders/<id>), or several sources when more than one produced it.

Past the cap. A container whose members would take the run past the maxProjects cap reads over-cap with nothing created under it. The members the run just resolved are carried reading over-cap, and because the run holds the full member list the prune is not held back. Those members are carried but not listed, and do not count against the containers after it, so a small folder declared beside a large one still lists.

What an operator above the cap does: raise maxProjects to the size of the estate; exclude.projects globs subtract members before the count, so a folder that carries sandboxes or archives is trimmed by pattern; or declare the sub-folders that hold the clusters, each counted on its own.

spec.scope.sharedVpcHosts and spec.scope.metricsScopes

Section titled “spec.scope.sharedVpcHosts and spec.scope.metricsScopes”

Resolution. Each is resolved on every run to the projects it reaches: gcloud compute shared-vpc list-associated-resources <host> for the service projects attached to a host, the host itself not among them, so name it in projects if its own clusters are wanted; gcloud beta monitoring metrics-scopes describe locations/global/metricsScopes/<id> for the projects a scope monitors, the scoping project included.

Those projects then take the projects path above: each lists its own clusters, needs the read roles in it, and reads denied, api-disabled or unreachable on its own. A project that is not a Shared VPC host resolves to no members. A selector’s projects fill the set after the explicit projects and before the containers, each reading over-cap on its own past the cap.

Roles. Nothing is inherited through a Shared VPC or a Metrics Scope, so the Terraform composition resolves each selector when it plans (its kube-agents-scope-resolver module), with the same reads as the run and made as the identity it applies with.

It binds the read roles in every project resolved and in each scoping project, and roles/compute.viewer alone in a host not otherwise in scope, through the kube-agents-iam module. A read that identity cannot make fails the plan before anything is applied, naming the selector, and a monitored project it cannot name is left out by naming its project number in exclude.projects. A project attached or linked after the last apply reads denied until the next one binds it; a CR edited by hand needs the same grants made by hand.

The networking audit also reads a declared host not otherwise in scope, for its firewall rules, subnets and other Compute objects, with that same role and no cluster read. The lookups themselves need compute.projects.get in the host project (roles/compute.viewer carries it) and, for a Metrics Scope, to read the scope in the scoping project: roles/monitoring.metricsScopesViewer (resourcemanager.projects.get and resourcemanager.projects.list) is the narrowest role that grants it, and the read roles above carry both between them, with the Monitoring API enabled in the scoping project (a scope whose API is off reads api-disabled).

Monitored projects named by number. The Monitoring API names monitored projects by project number, so the run names each with gcloud projects describe <number>, which needs resourcemanager.projects.get in that project. A monitored project the account cannot read cannot be named either, and is reported by number under the naming call’s outcome (denied for a 403), or under its ID once an earlier run has named it (every row a scope named by number keeps the number, retiring rows included). One that a Shared VPC host, a folder, an explicit entry or the management project names by ID is listed on that route, and its own listing decides its outcome.

A monitored project whose ID the scope cannot carry, a legacy example.com:name ID, is reported by number as denied with the reason in the log rather than as a failed lookup, so it never holds the prune. Name the number in exclude.projects to drop it. A monitored project the account cannot name and no earlier run has named holds the scope prune for the run, as a folder it cannot read does, because the bare number could be any project, including one the same edit dropped from projects; granting resourcemanager.projects.get there, or excluding the number, releases it.

A selector the run cannot read is frozen exactly as a container is: the members the previous snapshot reached through it are carried under that outcome, nothing is created under them, and the scope prune stays off for the run. The containers array carries a row for it under its via name (sharedVpcHosts/<host>, metricsScopes/<id>). There is no index and no lag behind either lookup: a project detached from the host or unlinked from the scope leaves the set on that run and retires over the ordinary two clean runs. A rollback to an operator that predates these fields keeps their members, as for containers.

How the A2A gateway checks a task’s target

Section titled “How the A2A gateway checks a task’s target”

The A2A gateway checks a profile task’s cluster target against this block before it routes the task. A project named in projects, or the agent’s own project, is admitted directly. An excluded project or cluster is refused.

A project that only a folder, organisation, Shared VPC host or Metrics Scope reaches is admitted only from the resolved scope, which the operator publishes in the <name>-resolved-scope ConfigMap. The project must be listed there as readable. The list must match this spec.scope and be refreshed within two publisher cycles: 40 minutes at the default maxProjects, longer at a higher cap. Otherwise the task is refused as not confirmed in this install’s scope, with the reason: the resolved scope is stale, it reads too large or failed, or the project cannot be read. The ScopeResolved condition on the PlatformAgent says whether the resolved scope is current.

The resolved scope also lists the clusters of the agent’s own project and of each project named in projects that no exclude.projects entry matches. It is published for every scope, explicit projects alone or no scope block included, wherever the chart renders the gateway-pod admission policy. The delegate tool’s list of in-scope clusters reads it; the helper scripts still list the agent’s own project and the explicit projects live. A project named in projects is still admitted directly, whether or not the resolved scope is current.

Rolling the release back past the scope fields

Section titled “Rolling the release back past the scope fields”

Remove the whole spec.scope block from the CR first and re-add it after. A cluster_agent_reconcile.py from before folders and organizations, or from before sharedVpcHosts and metricsScopes, reads the same scope.json, ignores those keys, and finds every container or selector member in its previous snapshot but not in its resolved set, which is the ordinary two-run retire; a CR without the block marks nothing newly retiring. On a default install the agent image follows the operator’s, so an operator rollback is an agent rollback too.

The operator renders the block as scope.json in the agent’s config ConfigMap, mounted read-only at /etc/kube-agents/scope.json, so editing it moves the config hash and rolls the pod. The file records whether the CR carries a scope block at all: a CR without one declares nothing, so the reconcile lists the management project alone and marks nothing newly retiring (a project an earlier block already marked retiring is still pruned on a clean run), keeping the last declaration’s exclusions and carrying its projects, because a block goes missing on its own when a CR write passes an older operator’s webhook. To drop projects, empty projects and keep the block.

Each reconcile run (other than --dry-run) writes what it resolved to fleet_scope.json beside the profiles on the data volume (read by fleet_scope_targets.py and by agent-api-auth’s GET /api/scope endpoint for the web console):

Entry What it holds
declared The declaration the run applied, or on a run that could not read it the last one read.
projects Each project with its outcome: ok, denied, api-disabled, unreachable or over-cap.
unmanaged The profiles whose project the scope never produced or whose prune waits for a clean run. A profile whose identity could not be read is kept but appears under the report’s skipped_no_identity, and under profiles once an earlier run has read its identity.
ignoredExcludes Any exclusion it declined to honour.
containers Every folder, organisation, Shared VPC host and Metrics Scope with its outcome and member count, with resolver reading asset-inventory once a folder or organisation is declared and explicit otherwise; it says nothing about the two selectors.
profiles Each profile’s project as read this run or, for a profile whose identity could not be read, as last read, which is what keeps such a profile attributed while it stays on the volume.

A cluster named in exclude.clusters loses its profile on the next run, unconditionally, as RECONCILE_EXCLUDE always did. A project removed from the scope, or newly matched by an exclude.projects entry, has its profiles pruned over two clean runs. A run is clean when no project came back unreachable, every folder, organisation, Shared VPC host and Metrics Scope resolved ok or over-cap, the management project resolved, listed its own clusters and is the one the previous snapshot named, and the scope file was readable.

The first clean run that finds a previously in-scope project absent records it as retiring in fleet_scope.json and keeps its profiles (listed under unmanaged); the next clean run deletes them, so a scope edit reverted before that run costs nothing. A run that cannot read the declaration is not a clean run and prunes nothing.

One that reads a CR without a scope block keeps the exclusions of the last declaration it read and marks nothing newly retiring, so a rollback to an operator without the field neither re-onboards an excluded cluster nor, on the roll forward, prunes a project the rollback’s own CR write dropped. A profile the scope never produced is kept and listed, which is also what a project dropped while fleet_scope.json was lost between the two runs becomes: declare and drop it again to retire it.

The management project. A management project that changes identity (RECONCILE_PROJECT re-pointed, or the metadata server naming another project) marks the old project retiring on the run the change is seen, once the new project has listed its own clusters, and the next clean run prunes, unless projects names the old project and no exclude.projects entry matches it. An answer from the gcloud config fallback that disagrees with the previous run is treated as unresolved instead. Nothing is created or retired under the management project until an authoritative source, or a fallback answer that matches the previous run, names it.

The onboarding sweep names any folder, organisation, Shared VPC host or Metrics Scope the reconcile could not resolve and, on an install whose scope resolved more than one project, any project it could not list, so a partial roster reads as partial; an install with one project and no container renders the sweep prompt it rendered before scopes existed.

Optional. An operator’s pause for one cluster, several, or all of them. The credential broker and kube-proxy refuse a held cluster’s Kubernetes API to every caller, on the same routes as spec.scope.exclude.clusters, usually within a minute or two of the edit and without restarting any pod. Unlike an exclusion, a held cluster keeps its Cluster Agent profile and its place in fleet answers and audits; those runs meet the same refusal.

  • clusters — single clusters by projectId, location and clusterName, matched as exclude.clusters entries are.
  • all — true holds every cluster, the one the harness runs in included.
  • reason — up to 256 characters, quoted in every refusal.

A held cluster is refused as scope.held-cluster (a rule of the scope.* family it shares with exclusions), with a message that names the hold and its reason and tells the agent to report it and stop. A Cluster Agent task that targets a held cluster is refused for every command, metadata reads included. The Platform Agent’s own reads of the GKE control plane for it (the project’s cluster list, a cluster’s describe) stay allowed. A broker or kube-proxy that can’t read the hold file it was given reaches no cluster until it can (scope.hold-unreadable).

A hold, like an exclusion, is checked when a request starts. A watch, a followed kubectl logs -f, an exec, attach, port-forward or proxy stream, or a watcher stream the broker relays that was opened before the hold reached the component keeps running until it ends.

The operator renders the hold into the <agent>-hold ConfigMap (hold.json), which no pod template hashes, so the edit rolls nothing: the kubelet updates the mounted file and both components read it again on their next request. install.env has no key for it, the chart never renders it, and an upgrade leaves it on the CR. Set it with a patch, and lift it by removing it:

Terminal window
kubectl patch platformagent platform-agent -n kubeagents-system --type merge -p \
'{"spec":{"hold":{"clusters":[{"projectId":"payments-prod","location":"us-central1","clusterName":"prod-1"}],"reason":"INC-1234: rollback in progress"}}}'
# Every cluster:
kubectl patch platformagent platform-agent -n kubeagents-system --type merge -p \
'{"spec":{"hold":{"all":true,"reason":"change freeze"}}}'
# Lift:
kubectl patch platformagent platform-agent -n kubeagents-system --type json -p \
'[{"op":"remove","path":"/spec/hold"}]'

Optional. size is the request of the agent’s <name>-data claim, mounted at /opt/data, and of the shell sandbox’s data claim at the same path. The operator requests the same size for both claims and grows the sandbox’s claim first, so the copy the sandbox takes of the agent’s working directories fits. A StorageClass or a quota that refuses the growth of one claim can leave the two claims at different sizes. Absent, or with no size, the operator default of 50Gi applies; the CRD declares no default, so a later raise of the operator default reaches every CR that does not set the field.

Raising it expands both existing claims online, with no pod restart, where the claim’s StorageClass sets allowVolumeExpansion: true. The shell sandbox’s StatefulSet is recreated once, because its claim template cannot change in place; the sandbox pod keeps running. Each GiB added counts twice against a namespace requests.storage quota and against the project’s disk quota, once for each claim, except on the agent’s claim while expectedClusterProfiles holds it above size.

Where the class cannot expand the claim (allowVolumeExpansion false or unset, a claim with no StorageClass, or a class that does not exist), the operator leaves the claim at its size and sets the DataVolumeNotExpanded condition (status below). A namespace quota that refuses the growth, or a claim not yet bound, is logged by the operator and does not set the condition.

The admission webhook refuses a spec.storage.size lower than the size the stored object resolves to (the 50Gi default when it sets none), because a claim cannot shrink. It also refuses a size of zero or less, and a size above 64Ti, the largest persistent disk, unless the stored object already carries that value; a stored size above 64Ti compares as 64Ti. Removing the field is allowed, and the size then resolves to the default.

Where the stored size is above the default, the existing claims keep their size, only a new claim gets the default, and the webhook warns about the removal. Where the stored size is below the default, the operator grows both claims to the default, with no warning. The webhook compares with the stored object, not with the claims: after a raise and a removal, it admits a size between the default and the claims’ size, and the claims keep the larger size. The chart ships the webhook off; without it, the operator still never shrinks a claim, and it treats a size of zero or less as absent.

The chart sets it from platformAgent.storage.size, the Terraform composition from platform_agent_storage_size and install.sh from PLATFORM_AGENT_STORAGE_SIZE in install.env. While the value is the default, the composition passes the chart nothing, so the CR carries no field.

expectedClusterProfiles (1 to 20000) is how many Cluster Agent profiles the install is expected to hold, one per cluster in scope. It raises the agent’s <name>-data claim, and not the sandbox’s, to at least 8Gi plus 400Mi per profile, rounded up to whole GiB. That’s the size the session stores settle at under the default 90-day retention (Fleet sizing → The data volume). The claim takes the larger of that and size (or the default), so the field only raises it, and the formula passes the 50Gi default above 107 profiles.

Raising it grows the existing claim online, as a raised size does, and the DataVolumeNotExpanded condition covers a class that can’t expand it. The sandbox’s claim holds no session stores; the copy it takes of the agent’s working directories leaves them out. The chart sets it from platformAgent.storage.expectedClusterProfiles.

  • otlpEndpoint — the OTLP/HTTP collector base URL (no /v1/traces suffix; the exporters append their own per-signal path). Up to 2048 characters, http:// or https://.
  • peopleSeen — whether the A2A gateway keeps its people record: one hashed key and a last-active time per person who writes on Google Chat, Slack or Discord, kept 30 days after their last turn. Defaults to true. false writes no key, deletes every key the record holds at the gateway’s next start, and the gateway serves no kubeagents_a2a_gateway_people_seen sample. The chart sets it from platformAgent.telemetry.peopleSeen, and refuses to render false against a served CRD that lacks the field, because helm upgrade does not update CRDs.

Optional, and omitting it is the point: with the field absent the operator discovers an in-cluster collector, falls back to GKE Managed OpenTelemetry when it cannot establish what the cluster has, and disables export altogether when discovery finds no collector (otlpEndpointSource: None). Setting it pins the endpoint and suppresses discovery. The full precedence ladder, the discovery order, and the Helm value that drives LiteLLM and the NetworkPolicy alongside this field are on Deploy → Telemetry.

Configures the operator-generated egress NetworkPolicy.

  • enabled (bool, optional) — toggle operator-managed NetworkPolicy generation. Default true (unset means on). Setting false stops generation and deletes the policies the operator manages for this agent: <name>-gateway-netpol, the <name>-fqdn-netpol FQDNNetworkPolicy, the shared litellm-policy (if LiteLLM is present). The gateway policy also carries the audit-report store’s rule, which goes with it. Deletions check ownership / managed labels first, so a policy that the operator did not create survives. To opt only LiteLLM out of operator NetworkPolicy management while keeping the agent pod’s policies managed, set the annotation kubeagents.x-k8s.io/enable-litellm-network-policy: "false" on the PlatformAgent. When opted out, the operator deletes any managed copy of litellm-policy, leaving LiteLLM unselected (fail-open) unless a replacement policy is provided and managed out-of-band.

    With it off, an install’s own policies over the gateway pod should also admit TCP 8700 from the credential broker’s pods alone: the audit-report store listener’s port.

    Upgrade note: when upgrading from a chart version that shipped the static litellm-policy, Helm prunes the static policy on the first upgrade (unless the live object already carries helm.sh/resource-policy: keep, in which case Helm retains it and the operator adopts it). The operator recreates it once the new operator pod rolls out, acquires leader election, and reconciles. LiteLLM is unselected (fail-open) during this operator rollout window.

    To eliminate this window on an existing cluster, annotate the live policy before upgrading (kubectl annotate netpol litellm-policy helm.sh/resource-policy=keep -n <namespace>); Helm will retain the policy across the upgrade and the operator will adopt it via Server-Side Apply. Alternatively, pre-roll the new operator image before running helm upgrade to narrow the window to controller watch latency (~1s), or manage the policy out-of-band during the transition via litellm.networkPolicy=false. The same window opens on a fresh default install, with no live object to annotate; the chart README’s upgrade notes say how to cover it. Going the other way, from operator-managed back to the static copy, needs a handoff first — see Handing litellm-policy back to Helm in the chart README.

  • dnsClusterIPs ([]string, optional, max 8 items) — pins the cluster DNS Service ClusterIPs in rule 1 of both the agent gateway policy (<name>-gateway-netpol) and the LiteLLM gateway policy (litellm-policy), suppressing dynamic discovery from kube-system/kube-dns. Each entry is a bare IPv4 or IPv6 address with no prefix. Admission bounds the IPv4 octets and rejects the leading-zero form (010.96.0.10) that Go’s net.ParseIP refuses, so the usual typos are apply-time errors. A malformed IPv6 literal can still get past it, in which case the operator drops the entry and falls back to discovery, and says so in its log.

  • metadataDaemon (object, optional) — pins the node-local cloud metadata daemon IP in the metadata rule of litellm-policy (rule 4); the gateway policy has no metadata rule. Its one field, endpoint, is required within it, so metadataDaemon: {} is rejected; an explicit endpoint: "" suppresses the post-NAT metadata rule entirely, for datapaths without a post-NAT daemon. Leave it unspecified to let the operator discover the container port from the kube-system/gke-metadata-server DaemonSet on port metadata-server (promoting metadataDaemonIPSource to Discovered). If undiscoverable, it falls back to 169.254.169.252 on port 988. Overriding the endpoint explicitly opts out of port discovery and uses port 988.

  • additionalEgress ([]EgressRule, optional, max 32 items) — appends custom CIDR and port egress rules to the generated agent gateway policy (<name>-gateway-netpol). (Does not apply to litellm-policy.) A peer CIDR broader than /12 (IPv4) or /48 (IPv6) is rejected at admission, so that a caller-supplied range cannot be widened into an unrestricted egress bypass.

    One shape gets past that check and is dropped by the operator instead: an IPv4-mapped IPv6 block such as ::ffff:0:0/96 is a 128-bit prefix by every textual measure, so it clears the IPv6 floor, and the operator re-measures it against the IPv4 floor once it has collapsed it to the IPv4 block it means.

    An except block that is not a strict subset of its peer’s CIDR is dropped too — the API server rejects the whole policy for one that is not — and a rule left with no usable peer is dropped whole — a rule carrying ports and no peer would otherwise permit egress to every destination. All three are logged, so the operator’s log is where a rule that did not take effect explains itself.

    A rule’s ports list is optional, and omitting it is not one of those drops. A rule with peers and no ports permits every port to those peers, which is what a NetworkPolicy egress rule with an empty port list means. Nothing is logged, because nothing was dropped. List the ports unless that is what you want.

    A peer’s except entries may be written bare (10.0.1.5, meaning a /32) as well as with a prefix, the same as cidr. Unlike cidr there is no prefix floor on them, because an except has to be a strict subset of its peer to be kept at all.

Annotations (kubeagents.x-k8s.io/dns-cluster-ip and kubeagents.x-k8s.io/metadata-daemon-ip) remain available as escape hatches and take precedence over spec.networkPolicy.

The outbound HTTP proxy, for an install whose traffic leaves the cluster through one. Set it through the chart value platformAgent.proxy, which also gives the same variables to LiteLLM and the GitHub token minter.

spec:
proxy:
httpsProxy: http://proxy.corp.example:3128
httpProxy: http://proxy.corp.example:3128
noProxy: [".corp.example"]
egress:
- to: [{ cidr: "10.50.0.10/32" }]
ports: [{ protocol: TCP, port: 3128 }]
caBundleRef:
name: corp-proxy-ca
  • httpsProxy, httpProxy (string, at least one) — the proxy URL for HTTPS and for plain HTTP requests: a scheme, a host (a name, an IPv4 address or a bracketed IPv6 address) and an optional port, with no path. A URL carries no credentials, because it is written into pod specs.
  • noProxy ([]string, optional, max 64 items) — further hosts that bypass the proxy: a host name, a domain suffix with a leading dot, an IP address or a CIDR block. The credential broker’s Google Chat API client matches a host name or a leading-dot suffix only.
  • egress ([]EgressRule, optional, max 8 items) — where the proxy listens, in the form spec.networkPolicy.additionalEgress takes and with the same checks.
  • caBundleRef (optional; needs httpsProxy) — the CA certificates of a proxy that re-signs HTTPS: name is a Secret in the agent’s namespace, and key (default ca.crt) is the key that holds them in PEM.

The operator sets HTTP_PROXY, HTTPS_PROXY and NO_PROXY, each also in lowercase, on the credential broker, the A2A gateway, the Teams inbound receiver and kube-proxy. The chart sets them on LiteLLM and on the GitHub token minter. The agent container gets none.

NO_PROXY always holds localhost, 127.0.0.1, ::1, .svc, .cluster.local, the metadata server (metadata.google.internal, 169.254.169.254, 169.254.169.252) and the Kubernetes API’s Service address, so Workload Identity token requests and traffic to in-cluster names ending in .svc or .cluster.local never go to the proxy. noProxy adds to that list and cannot remove from it. An in-cluster host written as <svc> or <svc>.<ns> matches none of the defaults: list it in noProxy.

List in noProxy a cluster’s control plane too, the install’s own cluster included, when it is on an address the proxy cannot reach, such as a private IP address: kube-proxy would otherwise send those requests to the proxy. kube-proxy’s traces follow the proxy variables too: a collector endpoint the install sets itself goes to the proxy set for its scheme (httpProxy for an http:// endpoint) unless it matches NO_PROXY.

A NetworkPolicy cannot name a host. The egress policies of the A2A gateway, the Teams inbound receiver and LiteLLM admit public addresses on port 443, so a proxy on a private address, or on another port, is reachable from them only through egress. Each of those policies gains exactly the rules listed there. The policies of the broker and kube-proxy limit no egress, and the agent Pod’s policy gains nothing.

The GitHub token minter’s policy admits any address on port 443 and gains the same rules, written by the chart as given. The chart’s values check holds egress to the rules the PlatformAgent holds it to, so a rule with no address, a range wider than the floor, or a bad port stops the install. Where the minter’s policy is rendered, an IPv6 entry that starts with a zero group, the range of IPv4 addresses written in IPv6 form, stops the install too: write the IPv4 address.

With spec.proxy set, no literal proxy entry in spec.deployment.env reaches the broker or the gateway. Without it, those entries pass as before.

Some proxies open each HTTPS request and answer it with a certificate their own CA signed. A pod that trusts only the public CAs refuses that certificate, so every request through such a proxy fails. caBundleRef names that CA:

Terminal window
kubectl -n kubeagents-system create secret generic corp-proxy-ca --from-file=ca.crt=corp-proxy-ca.pem

The credential broker with its exec tier, the A2A gateway, the Teams inbound receiver and kube-proxy then trust the bundle beside the public CAs, for every request they make out of the cluster. The chart value platformAgent.proxy.caBundleRef does the same for LiteLLM and the GitHub token minter. The agent container gets nothing. A host on noProxy that presents a public certificate keeps working.

Whoever holds the private key of a CA in the bundle can answer for any host to those pods, and so read and change their requests, including the ones that carry credentials. Set it only to the CA of a proxy you run. The bundle is read from a Secret so that changing it needs the same rights as changing the token Secrets. Where the web console’s admission policy is on, the console cannot set or change caBundleRef.

Only the named key is mounted. The broker and LiteLLM each run an init container, outbound-ca-trust, that writes the image’s own CA bundle followed by yours into one file, which the main container mounts read-only. A pod reads the bundle when it starts: after creating or changing the Secret, restart the credential broker and its exec tier, the A2A gateway, the Teams inbound receiver, kube-proxy, LiteLLM and the GitHub token minter. If the Secret or the key is missing, the pods start and their requests through the proxy fail on its certificate.

A forge that sets its own caBundleRef keeps that CA for git on its host. Reached through the re-signing proxy, such a forge needs the proxy’s CA in its own bundle too, or no caBundleRef of its own.

The same holds for any host a client checks against that host’s own CA. kubectl and kube-proxy check a cluster’s control plane, reached by IP address, against the cluster’s CA; that includes the install’s own cluster. LiteLLM checks an openai_compatible model server that has its own caBundleSecretRef against that bundle. List such a host in noProxy, or exempt it from re-signing at the proxy.

Enables external integrations. Only the enabled ones need to be present.

  • googleChat — enabled (default false), projectId, serviceAccountEmail, topicName, subscriptionName, allowedUsers, homeChannel, homeChannelPolicy (auto or manual; absent means auto), mode (default or debug, default default), and answerFeedback. serviceAccountEmail optionally names a Google service account in projectId that the credential broker impersonates for Chat API calls and Pub/Sub pulls when the Chat project differs from the agent’s project. answerFeedback defaults to true; false hides the 👍/👎 buttons under answers and keeps no rating (Answer feedback). homeChannelPolicy says whether the gateway may learn the home space from the first mention (spec.integration.slack on the A2A gateway has the rule). When enabled, projectId, topicName, and subscriptionName are required (enforced by a CEL validation rule). Populated by the installer when Google Chat is enabled.

  • slack — enabled (default false), botTokenSecretRef and appTokenSecretRef (Secret refs, required when enabled), allowedUsers, homeChannel, homeChannelName, homeChannelPolicy (auto or manual; absent means auto), and answerFeedback. answerFeedback defaults to true; false hides the 👍/👎 buttons under answers and keeps no rating (Answer feedback). homeChannelPolicy says whether the gateway may learn the home channel from the first mention (spec.integration.slack on the A2A gateway has the rule). Populated by the installer when Slack is enabled. This field arms the A2A gateway’s Slack backend, with or without googleChat; spec.integration.slack on the A2A gateway says what that changes for the home channel, allowedUsers, and a multi-workspace install.

  • teams — enabled (default false), appIdSecretRef and appPasswordSecretRef (Secret refs, required when enabled), tenantId, allowedUsers, allowAllUsers, homeChannel, homeChannelName, adaptiveCards (default true), and inbound.enabled (default false; needs tenantId, which the CRD enforces). backend (gateway or hermes; unset reads as gateway, or as hermes where the operator runs with A2A_TEAMS_BACKEND=false) names what serves Teams, and answerFeedback (default true) draws 👍 and 👎 under answers. Set when the Microsoft Teams integration is enabled.

  • forges — the forges the agent talks to, up to 16. Each entry has a name (required; a DNS label that repositories refer to it by, unique in the list), a provider (github, gitlab, gitea, bitbucket or bitbucket-datacenter), and, with rules that depend on the provider, host, scheme, port, namespace, credentialsRef, caBundleRef and identity. spec.integration.forges has each field’s rules, the one-GitHub-host rule, and what the credential broker does with the Secrets.

  • repositories — the repositories the operator registers, up to 64. Each entry has a forge (required; the name of an entry in forges), repository (required; up to 2048 characters), an optional namespace of its own that overrides the forge’s, and a role (required): gitops, at most one, for the repository that gets the fleet audit’s ledger issue and fix pull requests; managed, any number, for another repository the agent may change through pull requests; context, any number, for one it only reads. Repository roles compares the three. spec.integration.repositories has the accepted spellings, the refusals, and what the operator writes to the <agent>-gitops-state ConfigMap.

  • repositories[].baseBranch — on a gitops or managed entry, the branch every pull request (a merge request on GitLab) onto that repository must target; absent means the repository’s own default branch. spec.integration.repositories[].baseBranch says what the credential broker does with it and the spellings the schema accepts.

  • github — deprecated alias for one forge with provider: github: org is its namespace and gitRepo, when set, is one gitops repository on it; the two resolve identically. Set forges/repositories or github, not both; a resource setting both is refused by a CEL rule on the CRD and by the webhook.

    This is still the spelling install.sh and the full-install Terraform composition write for a github.com install (a GitLab, Bitbucket or GitHub Enterprise Server install writes forges/repositories; see GitLab as the GitOps forge and Bitbucket as the GitOps forge). The Helm chart renders one GitHub forge with no credentialsRef, no caBundleRef, no host other than a spelling of github.com, and at most one repository, the gitops one, with no namespace of its own, this way whichever values key set it, because helm upgrade does not update CRDs and an older CRD would prune forges. To register more repositories on such an install, see Adding repositories to a github.com install.

    It does so only where the forge declares a namespace or the repository, and the repository is one the operator would accept for GitHub: name, owner/name, or an http(s)://, ssh:// or git:// URL, a schemeless host or an scp remote on github.com, www.github.com or ssh.github.com, with no port, naming owner/name. A repository the operator would refuse renders as the lists, so the refusal names the entry that was written. A repository that sets baseBranch renders as the lists too, since the alias has no place for it.

See k8s-operator/api/v1alpha1/platformagent_types.go for the exact struct definitions.

The slack field arms the A2A gateway’s Slack backend; the credential broker’s Socket Mode relay and the Hermes slack platform are not rendered. With googleChat enabled too, one gateway serves both platforms. The operator names both in the agent’s A2A_NOTIFY_CONVERSATIONS, and in A2A_NOTIFY_PLATFORM each one whose homeChannel is set. The agent adds a platform whose channel the gateway learned. With no home channel anywhere, it sends home posts to both, and the gateway keeps each platform’s posts for its digest.

Whichever backend the stack holds, the operator renders an empty ConfigMap <agent>-home-channel beside the gateway and a Role rule that lets the gateway read and patch that one object. With Slack or Google Chat on the gateway, it also renders the gateway env A2A_HOME_CHANNEL_RECORD, A2A_SELF_IMAGE and A2A_HOME_CHANNEL_LEARN, and each platform’s homeChannelPolicy as A2A_SLACK_HOME_POLICY or A2A_GCHAT_HOME_POLICY.

The learned home channel. With homeChannel empty and homeChannelPolicy auto, the gateway makes the channel of the first top-level mention of the agent in a channel the home channel. It checks the channel first: a channel id, not a direct message, not archived, not shared through Slack Connect, and the app a member. It writes the channel to the <agent>-home-channel ConfigMap, which the operator renders empty beside the gateway with a Role rule that lets the gateway read and patch that one object. The gateway env A2A_SLACK_HOME_POLICY, A2A_HOME_CHANNEL_RECORD, A2A_SELF_IMAGE and A2A_HOME_CHANNEL_LEARN carry the contract.

The operator projects the admitted channel (homeChannel when set, else the record) into the <agent>-chat-home ConfigMap, one key per platform: slack_home and gchat_home. It mounts that ConfigMap as a read-only directory in the agent pod and the gateway pod. Both read the file where it is mounted, within about a minute of a change, and no pod restarts for a learn. An agent image older than the operator reads env only and never sees a learned channel: keep the agent image at the operator’s release.

It admits a recorded channel under policy auto when the value is a channel id and no refusal is recorded beside it, and clears HomeChannelUnset then. Otherwise the condition says why: the policy is manual, the recorded value is not a channel id, or the gateway refused the channel (archived, shared through Slack Connect, the app not a member, a direct or group direct message). A hand edit of the record carries the same trust as the field, and the gateway checks the channel before each post: one Slack refuses is recorded as refused, the condition names it, and the next mention replaces it.

manual turns the learn off. A set homeChannel wins; the learned channel stays in the record, so clearing the field returns to it. An allowed member moves the learned channel from the app’s Home tab; the record keeps who moved it and when, and picking the previous channel there moves it back. To forget it, delete the ConfigMap: the operator re-creates it empty and the next mention learns again.

The learned Google Chat home space. spec.integration.googleChat follows the same rule with its own homeChannelPolicy, its own keys in the record (gchat, gchat.setBy, gchat.setAt, gchat.refused) and its own projected file, so an install with both platforms keeps two home channels. The candidate is the first top-level mention of the agent in a named space; a direct message or a group chat never is. The gateway checks the space with the Chat app’s own credentials: a space name, the app a member, and no people outside the organization admitted. A refused space is recorded and HomeChannelUnset names the reason.

Google Chat has no Home tab, so a learned space moves only by setting homeChannel or by removing its gchat keys from the ConfigMap. Both platforms share that ConfigMap, so deleting it forgets both learned homes.

The home channel. The gateway also carries homeChannel and posts the agent’s proactive messages into that channel and nowhere else, as new threads there or as replies on them. Those are the alerts, the scheduled reports, and the fleet audit’s Block Kit report card without its buttons. It must be a channel ID (C..., or G... for a private channel). With it unset and no learned channel admitted, or with it malformed, the agent posts nothing to Slack unprompted; unset with no learned channel admitted, the CR carries the HomeChannelUnset condition.

A kanban card’s report back to the Slack conversation that asked for it is not a proactive post: the gateway serves it with homeChannel unset too, though not with a malformed one, which leaves the gateway’s notify route off altogether.

Who is admitted. allowedUsers applies on the gateway as Google Chat’s does: an absent list (or a single empty string) admits every member, any other list admits only the member IDs it names, matched exactly. A plain ID names a member of the install’s own workspace. An entry T…:U… (a workspace ID, a colon, a member ID) admits that member of another workspace in a Slack Connect channel; nothing else admits one, an absent list included.

The gateway’s user_id principal map, the a2a-slack-principal-map Secret, is optional, mounted when present and read when the gateway starts. It does not admit anyone: a member the list admits and the map names is attributed by the mapped identity, one the map does not name by their Slack member id, and a member the list does not admit is refused whatever the map says. A member of another workspace posting in a Slack Connect channel shared with the install’s is served only when the list names them as T…:U…. That Secret is the whole map: the principal-map ConfigMap is not mounted on a Slack gateway, so adding a Slack user to it admits no one.

One workspace. The gateway serves one Slack workspace: install one bot token from one workspace, or turn Slack off. A multi-workspace install, whose bot-token Secret holds the legacy broker’s comma-separated list of tokens, cannot keep that list, with or without Google Chat. The operator does not check, because it arms on the CR alone. So an install with a list token loses Slack when it upgrades to an operator that arms the gateway. After two usage polls the CR reports SlackConnected=False (ConnectionFailed) and Degraded=True (SlackConnectionFailed), while the gateway pod’s log carries the invalid_auth error. Slack returns once the Secret holds one workspace’s bot token.

The installer checks before it applies: install.sh and a full upgrade.sh refuse an apply that hands Slack to the gateway (Slack on, with or without Google Chat) with a token list, an email in allowedUsers, or a homeChannel that is not a channel ID (when an upgrade is refused). upgrade.sh’s operator and harness re-tags, a full upgrade onto a release that predates the check, and changes made outside the installer skip it.

Each forges entry has these fields:

Field Rules
name Required. A DNS label that repositories refer to it by, unique in the list.
provider github, gitlab, gitea, bitbucket (Bitbucket Cloud) or bitbucket-datacenter (Bitbucket Data Center). Omitted, it is github, and it is required for a forge at a host other than github.com.
host Optional on github and gitlab, where it defaults to the provider’s own (github.com, gitlab.com) and may name a self-managed instance: a GitLab instance on a gitlab forge, or a GitHub Enterprise Server instance on a github forge. On bitbucket it is bitbucket.org only. Required on gitea, where hosted SaaS domains are refused, and on bitbucket-datacenter, where it names the Data Center instance. The hostname alone, with no port and no path: a provider that supports another port takes it in port, and an instance at a context path is not supported. Never a host another provider serves, and never a host at or under a domain where GitHub runs its own services: github.com, githubusercontent.com, githubassets.com, githubapp.com, github.io, github.dev and ghe.com.
scheme https or http, default https. http is accepted only on gitea for in-cluster .svc or .svc.cluster.local Service DNS names.
port Optional on gitea; 1–65535.
namespace Optional. The organisation, user, or group a bare repository name on this forge belongs to, within the provider’s own limit: 39 characters on GitHub, a nested group path on GitLab, 40 characters on Gitea. On Bitbucket it is a workspace ID (Cloud) or a project key (Data Center).
credentialsRef The name of a Secret in the agent’s namespace, for a provider whose credential is a token an administrator holds. Ignored on a github forge, required on gitlab, gitea, bitbucket and bitbucket-datacenter (below).
caBundleRef name, and key (default ca.crt): a Secret in the agent’s namespace holding the PEM CA that signed a self-managed instance’s TLS certificate (below).
identity Optional, on bitbucket and bitbucket-datacenter only: the login the forge’s token acts as, for a token that cannot name its own account (below).

Credentials. GitHub’s credential is the GitHub App, so on a github forge credentialsRef is ignored and admission returns a warning saying so. On a gitlab, gitea, bitbucket or bitbucket-datacenter forge it is required: the Secret holds the access token under the key token (a group or project access token, or a dedicated account’s personal access token on a tier without them). The operator mounts that key into the credential broker’s pod only at /var/run/kube-agents/forge-credentials/<forge-name>/token and renders VCS_FORGES_CONFIG, and the broker reads it on every call, so rotating the token is updating the Secret.

The same Secret may also hold a read-only token under the key read-token (Reporter role, read_repository scope only) on a gitlab forge, or a token that can only read repositories on a bitbucket or bitbucket-datacenter forge. The operator mounts it beside token when the key is present, and the broker presents it only to clone the forge’s context_repos entries, never on a write; without the key a context repository clones with no credential. A missing Secret or token key does not stop the broker; calls to that forge answer FORGE_CREDENTIAL_UNAVAILABLE naming the host until the Secret exists, and the status does not report it.

One GitHub host per install: github.com, or one GitHub Enterprise Server. A second github forge at another host is refused, and so is one host declared for two providers; two github forges at one host still name two organisations. The first github forge declared decides the host. While its host can be read, it keeps the host even when another of its fields is refused. The github_host key, the broker’s configuration and the egress stay on that host, and a later github forge at another host stays refused. A change of the declaration that moves the host writes a GitHubHostChanged Warning Event, because the repositories registered on the old host are then no longer served.

GitHub Enterprise Server. On a GitHub Enterprise Server the operator writes the host into the <agent>-gitops-state ConfigMap as the key github_host, which the agent reads (a github.com install has no such key). The credential broker calls the instance’s REST API at https://<host>/api/v3, and keeps the GitHub App token it mints for it in memory. The chart’s token minter mints on the instance too: it reads the GitHub forge and sets the instance’s API URL and CA on the minter.

install.sh --gitops-host writes a GitHub Enterprise Server forge, through the Terraform composition’s gitops_host and github_ca_secret_name; see GitHub Enterprise Server in INSTALL.md. The chart owns this resource on such an install, so change the forge there, not with a hand edit of this resource.

A private CA. These forges are at a self-managed host: a gitlab forge, a github forge at a GitHub Enterprise Server host, an https gitea forge, and a bitbucket-datacenter forge. Such a forge may also set caBundleRef (name, and key, which defaults to ca.crt): a Secret in the agent’s namespace that holds the PEM CA that signed the instance’s TLS certificate. A CA certificate is public, but it lives in a Secret for its integrity: changing it chooses which servers the broker sends the token to, so it needs the same rights as changing the token Secret.

The operator mounts that key into the credential broker’s pod at /etc/kube-agents/forge-ca/<forge-name>/ca.crt, as it mounts the token, and the broker trusts the CA for this forge’s host and for no other, beside the system CAs, in its API client and in git; git follows no redirect from that host. On a GitHub Enterprise Server forge, the chart also mounts the CA into the token minter, which trusts it for all of its outbound calls, beside its image’s bundle (token minter guide). For this host only, the broker turns off Python’s strict X.509 checks, which refuse a CA certificate without Key Usage; the chain and the hostname are still verified.

The mount is optional: until the Secret exists, calls to the forge answer FORGE_TLS_UNTRUSTED, naming the host and “the Secret or its key ”, and an update needs no restart. The field is refused, in the CRD and in admission, on a forge whose host is empty, gitlab.com, github.com or bitbucket.org in any spelling, because a private CA must never vouch for a host the public CAs sign, and on a gitea forge with scheme: http. Two github forges at one host may not name two different CA bundles.

Bitbucket. bitbucket is Bitbucket Cloud, at bitbucket.org only, and bitbucket-datacenter is a Bitbucket Data Center instance at the declared host. Both need credentialsRef, and the Secret has the keys described above.

Bitbucket tokens. On Bitbucket Cloud the token is a workspace access token, or the API token of an account that exists only for this install. A repository access token reaches one repository. The broker holds one credential per host, so such a token serves an install with one repository only. On Bitbucket Data Center it is a project HTTP access token. The broker sends the token as Authorization: Bearer. Git gets it with the username x-token-auth on Cloud, and as a bearer on Data Center, which needs git 2.46 or later in the broker image.

Identity. The optional field identity (up to 255 characters of letters, digits and ., _, @, +, -, {, }) is for the two Bitbucket providers only, and the CRD and admission refuse it on any other forge. It is the login that the forge’s token acts as, for a token that cannot name its own account through the forge’s API. On bitbucket it is the account UUID, with or without its braces, and any other value is refused. On bitbucket-datacenter it is the username; a project or repository token needs none, because the instance names its user (access-token-user/<project>/<token>) in every answer.

GitLab, Gitea and Bitbucket namespaces. A gitlab, gitea, bitbucket or bitbucket-datacenter forge’s namespace and the groups/owners of the repositories declared on it are also the namespaces (allowedPaths) the broker serves with that token. One such forge per host: a second at a host already declared is refused. Such a forge with neither a namespace nor a repository is not given to the broker. Admission returns a warning, and the operator writes the same text as a Warning Event (reason IntegrationWarning) on the PlatformAgent, since the chart ships the webhook off.

A GitLab group may contain a dot, but a namespace or repository path whose first segment is a forge host (gitlab.com/acme, github.com/acme/infra, or the forge’s own self-managed host) is refused: name the group alone. A repository whose resolved URL is longer than 256 characters is refused too, because the credential broker reads no longer a reference.

Naming a repository on a multi-forge install. On an install that declares a gitlab, gitea or Bitbucket forge beside GitHub, a bare owner/name still names a GitHub repository that the install registered by URL. The sandbox client sends the bare name as the URL of the registration, so crons, skill invocations and --repo arguments do not change.

Use <scheme>://<host>[:<port>]/<path> or <host>/<path> for a GitLab, Gitea or Bitbucket repository. Also use it for a GitHub repository that the install did not register, that an administrator registered without a URL, or that has the same path as a repository on another forge. The broker serves multiple forges, so it refuses a bare owner/name in these cases. The declared forges also decide the forge hosts in the gateway’s FQDN egress policy (the enable-fqdn-network-policy annotation); GitHub’s hosts are always included.

Accepted spellings. repository accepts HTTPS/HTTP (https://, http://), SCP-style SSH (git@...), SSH/Git protocols (ssh://, git://), owner/repo shorthand (e.g. gke-labs/kube-agents), and a bare name qualified by the namespace. On bitbucket-datacenter, write KEY/repository: a clone URL or web URL of the instance (/scm/, /projects/, /users/) is refused with the form to write. On both Bitbucket providers a repository is exactly two segments: workspace/slug on Cloud, KEY/slug on Data Center.

Refusals. Every refusal names the entry at fault, e.g. spec.integration.repositories[1].repository:

Refused by Shape
The CRD A repository naming an undeclared forge, and a second gitops repository.
The webhook, where it is enabled Whitespace, control characters, invalid syntax, the same repository declared twice (in any letter case), a GitHub repository name over 100 characters, a name that still ends in .git after one is stripped, and a host the forge’s provider does not serve, so a repository on another forge is refused rather than rewritten onto the declared one. The chart ships the webhook off, and one enabled through the chart fails open at its default failurePolicy: Ignore.
Reconciliation The same validation again, since a chart install runs with ENABLE_WEBHOOKS=false: an invalid entry is left out of the state ConfigMap, its neighbours are still registered, and the resource surfaces Ready: False and Degraded: True (Reason: InvalidGitRepoURL).

What a refused entry holds back. Where the refused entry is one the GitHub organisation is read from — a GitHub forge, or a gitops or managed repository unless every GitHub forge declares the same namespace, or unless the entry names on its own a gitops or managed repository that was accepted (a second declaration of it) — the operator also leaves the token minter policies as they were, and the agent’s GITHUB_ORG as the running pod has it (unset on a first install), rather than scoping either to another forge’s or another repository’s organisation. So a CR upgraded from a release that accepted a spelling this one refuses keeps its organisation, and its pod is not rolled for it.

The same holds for the ConfigMap: while any github entry in managed_repos or context_repos does not parse — a spelling an earlier release accepted, added by hand — the operator adds token minter policies but prunes none, since the entry may be the repository a policy it tracks is for. It reports the hold as Degraded/MinterPruningHeld naming each entry by its list and position, such as managed_repos[1], never by its value, which can carry a credential; correcting or removing the entry lets the next reconcile prune.

An entry of another type is not the minter’s and holds nothing, and on a GitHub Enterprise Server install neither is a github entry on github.com or with no host. The minter mints for the install’s GitHub host, and the agent skips such an entry, so the minter skips it too and it holds nothing.

What the operator writes. The operator appends each valid gitops and managed repository to managed_repos, and each context repository to context_repos, in the <agent>-gitops-state ConfigMap if absent, as {"type": "<provider>", "url": "https://<host>/<path>"}: https://github.com/<owner>/<name> on GitHub, https://<host>/<owner>/<name> on a GitHub Enterprise Server, https://gitlab.com/<group>/.../<project> or the self-managed host on GitLab, <scheme>://<host>[:<port>]/<owner>/<name> on Gitea, https://bitbucket.org/<workspace>/<slug> on Bitbucket Cloud, or https://<host>/<KEY>/<slug> on Bitbucket Data Center.

The entries carry no role, so the gitops repository is the first managed_repos entry, which is the one the agent’s token refresh mints for when no repository is named. The skills’ resolvers refuse to guess among several entries, so with a managed repository declared beside it a caller names its target with --repo. A gitops repository the list does not yet hold is inserted at the front, and an entry already present is never moved. While a declared gitops repository is refused, no managed repository is appended either, since it would take the first place.

The fleet audit does not need --repo, because the operator also writes the valid gitops repository, as one such entry, to the gitops_repo key of the same ConfigMap, and the audit puts its ledger issue and fixes there (see Which repository gets the ledger). The operator removes the key when no repository has that role or when two have it, and keeps the key as it is while the declaration does not resolve or the gitops repository is refused.

An existing entry counts as present when it names the same repository on github.com in another spelling — a .git suffix, a remote, a run of / after the host — but not in another case, since the agent’s --repo checks compare the spelling (so the declared spelling is added beside it). Nor does it count on www.github.com or ssh.github.com, with or without a scheme, nor under a type other than the forge’s provider, nor in a spelling with two @, nor one over 256 characters, since the agent reads none of those. Reconciliation only adds, and keeps every existing entry as written, so removing a repository means removing it from the CR and editing the ConfigMap.

The two lists. managed_repos is read-write. context_repos names repositories the agent reads and never writes to. An audit consults them for declared intent before it reports a posture as a finding. A diagnosis reads them to find the file that defines a value when the fix is not in a managed repository (Write scope shapes a diagnosis). An administrator may also add entries to it by hand.

An entry may add "ref": "<branch>" to read a branch other than the remote’s default. A ref is kept when it is made of letters, digits, ., _, /, - and, after the first character, @, and passes git’s branch-name rules (no .., @{, // or .lock component, no leading -).

Any other, an empty string, a JSON null or a value that is not a string (a number, a boolean) included, is refused with a warning naming it, and the declared-intent search skips that repository rather than reading its default branch in the pin’s place, so the ledger names it as not searched until the entry is corrected (omit the key to read the default branch). A ref on an entry naming the GitOps repository itself is ignored, because the audit reads that repository at the branch it publishes against. The operator never adds a ref, and keeps one an administrator added to a seeded entry.

What the agent reads. The agent’s skills read every managed_repos entry whose type is a forge the agent image serves (github, or gitlab, gitea, bitbucket and bitbucket-datacenter named host/path), and only github entries with a GitHub URL in context_repos. Any other entry is skipped with a warning naming the key. On a GitHub Enterprise Server install, a github entry on the instance’s host is read too, in both lists, and named <host>/<owner>/<name>. A github entry on github.com, on no host, or on any other host is skipped with a warning, so a repository registered before a move from github.com is not served on the instance under its old name.

The credential broker’s repository gate reads every typed entry, keyed by its type, host and path, so an entry counts only for the forge whose provider it names.

Each same-organization context_repos entry gets a read-only (contents: read) token minter policy, so a private context repository is readable through the credential broker’s snapshot read, provided the GitHub App is installed on it — see Read-only tokens for context repositories. On a gitlab forge, a private context repository is readable the same way when the forge’s Secret holds read-token — see Private context repositories. Nothing that writes consults the key: a context repository stays refused by every version-control verb but capabilities and snapshot.

Adding repositories to a github.com install

Section titled “Adding repositories to a github.com install”

An install that install.sh made for github.com has the deprecated github block: the installer writes org and gitRepo from GITOPS_ORG and GITOPS_REPO. To register more repositories, move to forges and repositories, and clear the github block in the same change. If the lists are added and the block still has a value, the chart stops the upgrade with this message:

set platformAgent.integration.forges and repositories, or platformAgent.integration.github, not both

Set org and gitRepo to empty strings beside the two lists. The chart then renders the lists and no github key:

platformAgent:
integration:
github:
org: ""
gitRepo: ""
forges:
- name: github
provider: github
namespace: my-org
repositories:
- forge: github
repository: infra
role: gitops
- forge: github
repository: app-one
role: managed
- forge: github
repository: runbooks
role: context

The list must hold the GitOps repository with role: gitops. The lists do not take it from the block that you cleared.

On an install made with install.sh, the installer writes the github block itself, so put these keys in the TF_VAR_extra_helm_values line in install.env, which a full-mode install.sh or upgrade.sh run applies. install.env holds one such line, so if it already has a platformAgent key, put integration={...} inside that key (Operator settings says how the line works):

Terminal window
TF_VAR_extra_helm_values='{platformAgent={integration={github={org="",gitRepo=""},forges=[{name="github",provider="github",namespace="my-org"}],repositories=[{forge="github",repository="infra",role="gitops"},{forge="github",repository="app-one",role="managed"},{forge="github",repository="runbooks",role="context"}]}}}'

On a bare Helm install, set the block in your values file. If a file of your own sets github, you can remove those keys there instead of emptying them.

Every repository in the list must be in one GitHub organization, the one where the GitHub App is installed: see Single-organization scoping boundary. The operator skips a repository in another organization when it writes the token minter policies, so the agent gets no token for it.

The operator only adds list entries to the <agent>-gitops-state ConfigMap: to remove a repository, remove it from the list, apply that change, and only then remove its entry from the managed_repos or context_repos key, or the operator adds it again.

spec.integration.repositories[].baseBranch

Section titled “spec.integration.repositories[].baseBranch”

A context entry may not set baseBranch: the CRD refuses one, because a context repository is never written and its branch pin is the ref in the <agent>-gitops-state ConfigMap. The deprecated github alias has no place for a base, so pinning one takes forges/repositories.

For each accepted gitops or managed repository that sets one, the operator adds an entry to CREDENTIAL_PROXY_PINNED_BASES in the credential broker’s environment: a JSON array of {"repository": "https://<host>/<path>", "branch": "<baseBranch>"}, with the forge’s canonical host (github.com for every GitHub spelling, gitlab.com for www.gitlab.com) and the path that forge reads, nested groups included on GitLab. With no base set the variable is not rendered.

The broker then refuses a pull request onto that repository that targets any other branch, a clone of it that names no branch checks the base out, and every pinned branch is refused a direct push on every repository. A repository is matched by host and path, so the same path on another host, or on another forge, is not pinned.

The agent container and the shell sandbox get no copy, and spec.deployment.env can never set the variable. A CREDENTIAL_PROXY_BASE_BRANCH or GITOPS_BASE_BRANCH there still passes through: the broker refuses direct pushes to the branch it names but does not hold pull requests to it.

The CRD schema holds the value to the branch names the broker accepts: up to 200 characters of letters, digits, ., _, / and -, starting with a letter or digit, not HEAD, with no .., /., //, @{ or .lock/, and no trailing /, . or .lock. A refs/heads/ prefix is allowed, and what follows it must start with a letter or digit, not be HEAD, and not start with refs/heads/ or heads/; a value may not start with heads/.

So each base has one spelling, the one the broker targets and protects. Changing a base restarts the broker’s pod and no other. The Helm chart key is platformAgent.integration.repositories[].baseBranch; because helm upgrade does not update CRDs, the chart refuses to render it against an installed CRD that lacks the field.

The operator writes observed state to the status subresource; PlatformAgent fields → Status lists every field with its type. How the usage counters are produced, where inference comes from, and what each condition reports, follows.

usage.toolExecutionsTotal, usage.toolExecutionsBlockedTotal, usage.eventsIngestedTotal, usage.sessionsTotal, usage.chatSessionsTotal, usage.remediationsProposedTotal, usage.chatMessagesInboundTotal, usage.brokerFailuresTotal, usage.chatTurnsErroredTotal, usage.backgroundTasksGaveUpTotal, usage.negativeFeedbackTotal, usage.positiveFeedbackTotal, usage.autonomousNegativeFeedbackTotal, usage.autonomousPositiveFeedbackTotal, usage.lastActiveTime, usage.lastHumanActiveTime, the two cluster gauges and the proposal, people and origin readings are produced by the operator, on the leader and off the reconcile path. So are the three inference totals, usage.inputTokensTotal, usage.outputTokensTotal and usage.spendMicrosUSDTotal. Every five minutes it reads the credential broker’s, the event watcher’s, the chat plugin’s, LiteLLM’s and the A2A gateway’s metrics listeners over the pod network, folds the counter series into totals it keeps with their per-pod baseline in the <name>-usage-counters ConfigMap, so the counters stay monotonic across pod, process and operator restarts, and patches the status only when it is behind.

The gauges are the latest poll’s reading of the watcher’s body, written whenever they change in either direction, and they do not move lastActiveTime. The counters under-count rather than over-count: a listener that cannot be read keeps its baseline and its backlog is added when it is read again, but a backlog past the per-poll ceiling, an honest burst past it, or what a process counted after its last read and before it restarted, is lost once.

A lastActiveTime that stops advancing while commands plainly run is the symptom of a listener the operator cannot reach; the CR’s events name the pod. It advances on any brokered command, including those a scheduled job runs – the Controller Stall Watch cron issues some every 30 minutes by default – so a recent lastActiveTime is not evidence that a person used the agent; lastHumanActiveTime is.

The six proposal fields, the two people fields and the nine origin fields are readings, not totals. A reading’s source is the credential broker, the A2A gateway or the chat plugin. Every 240 seconds the credential broker asks the forge (on GitHub with a read-only token of its own) for the proposals the install authored in each managed repository and the human events on them. The operator projects the latest poll’s values as they stand, outside the ConfigMap.

The outcomes reading (remediationsMergedTotal, remediationsOpen, proposalsAuthored) and the details reading (the other three) each have their own miss streak. One poll that cannot read the broker, or reads it without a reading, leaves that reading’s fields as they were; the second in a row clears them to absent. The broker stops serving a reading more than an hour old. A 0 is a reading.

A broker restart leaves the details fields (remediationsClosedUnmergedTotal, proposalHumanTouches, proposalsMergedUntouched) as they were for one operator poll, and clears them when a second poll in a row finds no details reading. The broker keeps what it read of each proposal in memory, and after a restart it reads every proposal again within an hourly budget of forge calls. A small install is done within the first sweep. An install with a thousand proposals takes some hours, and the fields are absent in between. The outcomes fields return on the first sweep.

The people reading (peopleSeen7d, peopleSeen30d) comes from the A2A gateway: the distinct people who wrote on a chat platform it serves in the last 7 and 30 days, the largest count across gateway pods. The operator reads it only while no chat platform the install enables is served through Hermes, that is, Microsoft Teams on the Hermes path (spec.integration.teams.backend: hermes, or the operator’s A2A_TEAMS_BACKEND=false with no backend named). While the gateway serves Teams every enabled platform is the gateway’s, and the reading is present. Otherwise both fields are absent.

A poll that reads no gateway body carrying both windows is a miss, and so is a poll that finds no running gateway pod. The second miss in a row clears both. With spec.telemetry.peopleSeen: false the gateway serves no sample, so both fields clear the same way. A 0 is a reading, and neither field moves lastActiveTime or lastHumanActiveTime.

topTools is the credential broker’s five most-invoked tool and subcommand pairs since its pod last started, summed across the broker pods. Each row carries the pair’s total and its outcomes (success, error, blocked, busy, abandoned); the rows sort by total, then by tool and subcommand. Every word is from the broker’s own closed vocabularies, so the list carries no command line. A broker restart starts it over, a broker that has run nothing leaves it absent, and the second poll in a row that cannot read the broker clears it. It moves neither time. The summary script and the chat gateway’s /feedback summary print it as the tools (top 5, since broker start) block.

The origins reading (proposalsFromChat, proposalsFromConsole, proposalsFromApi, proposalsFromEvent, proposalsFromDrift, proposalsFromAudit, proposalsFromScheduled, proposalsFromIssue, proposalsFromOther) comes from the chat plugin’s proposals ledger: the pull requests the agent opened and the forge confirmed, counted by the origin of the work that started each. The operator reads it on the gateway pod’s chat metrics listener, summed over the chat platform. The reading is present when all nine origins resolve and the plugin’s read age, when the body carries it, is not above two poll intervals; the plugin serves every origin, zero included, from its first ledger read. Until then, and while the served CRD predates them, the nine fields are absent. A ledger that stops answering therefore clears them about twenty minutes later.

A poll that reads no body with all nine is a miss, and the second miss in a row clears them. A 0 is a reading, and none of the nine moves lastActiveTime or lastHumanActiveTime. A proposal the agent did not see itself open is not counted, so the nine usually sum to at most remediationsProposedTotal.

The operator also serves every counter, cluster gauge, scalar reading and time of this block (the two lists, activeInterfaces and topTools, aside), and status.phase, as Prometheus gauges on its own metrics port. A collector reads them without a query against the status; the series are on Observability.

inference.provider and inference.model are the install’s default model, the one LiteLLM serves under model-default. The operator reads the LiteLLM config ConfigMap the litellm Deployment mounts, or, with no such Deployment, the newest litellm-config or litellm-config-* ConfigMap that carries config.yaml. It takes the litellm_params.model of the model_list entry named model-default, or the first provider-qualified entry when no entry has that name, and splits it at its first /. A Vertex AI endpoint path (projects/…) or a Bedrock ARN keeps its resource id only, so no project id, region or account id is written; every other name is kept as typed, an organisation prefix such as meta-llama/ included.

inference.reasoningEffort is the reasoning_effort on the same entry, as typed (the chart writes litellm.reasoningEffort there). It is absent when the entry states none, so the model thinks at its own default.

The pair is written whole or not at all. Both fields are absent when the namespace has no LiteLLM config, when the litellm Deployment mounts none, or when the default model has no provider or no name. A Deployment that mounts none leaves any remaining litellm-config* ConfigMaps unread, and a model-default entry with a malformed model does not fall back to another entry. A read that fails keeps the last pair. The Ready status update writes the block, and a change to the ConfigMap or to the litellm Deployment’s pod template re-reads it within a reconcile.

usage.activeInterfaces is dashboard unless harness.hermes.dashboardEnabled is false, plus googlechat, slack and teams for each integration entry with enabled: true. It is resolved from the spec on every reconcile and written by the Ready status update when it changes; a pass that parks the CR Degraded before that update leaves the previous value, so read it alongside the Ready condition.

On an install whose served CRD predates the field, the API server drops it from every write; the operator notices from the write’s echo, stops treating the missing field as a change for five minutes at a time, and lands it once this release’s CRD is applied: within five minutes on a quiet install, at once when the Ready status update next writes for any other reason. The other status writers carry the field through as they read it, so a pass that ends Degraded lands nothing new. inference, resolvedUniverseDomain and universeDomainSource follow the same Ready-writer and five-minute reprobe rule under a served CRD that predates them.

A served CRD from before inference.reasoningEffort keeps the provider and model and drops the effort until it is applied.

profileSubmitMaxAgeSeconds is the live PROFILE_SUBMITS stream’s max age, as the A2A provision Job last read it, when it is longer than this release creates the stream with (0 is no age limit). Provisioning never changes an existing stream’s max age, so a stream created by an older release with a longer max age, or edited by hand, keeps its own. The dispatch config’s submit retention is the longer of the two, so a finished task’s tombstone outlives its submission, up to a year: a stream with no age limit, or one longer than a year, gets a year.

The value is read once per provision Job run, and the Job runs again a day after it finishes, so a stream edited by hand is picked up within a day. A Job that fails records nothing. The field is absent when the stream is no longer than this release’s, and before the first report. Only a report the operator can read changes it. Under a served CRD that predates the field the write is dropped and the retention stays this release’s own until the CRD is applied.

The counters and the two times land through the poller above, which consults the same five-minute record. Under a served CRD that predates status.usage they accumulate in the <name>-usage-counters ConfigMap and land with the first patch after this release’s CRD is applied.

Under a served CRD at a previous schema, which has status.usage without the fields added later (the two cluster gauges, the proposal readings, the people readings, the origin readings, chatMessagesInboundTotal, toolExecutionsBlockedTotal, brokerFailuresTotal, chatTurnsErroredTotal, backgroundTasksGaveUpTotal, negativeFeedbackTotal, positiveFeedbackTotal, the two autonomous feedback totals, chatSessionsTotal, the three inference totals and lastHumanActiveTime), the first-schema counters keep landing and the newer fields are probed again every five minutes until this release’s CRD is applied. storageStatus.capacityBytes and freeBytes follow the same rule under a served CRD that predates them.

effectiveSizingTier is the tier the operator last rendered the three sized containers at, small, medium or fleet, written before the render on every pass that reaches it, whatever status the pass ends on. Under spec.deployment.sizingProfile auto, it tracks the active tier across cluster-count floor promotions, utilization-triggered promotions and step-downs, and step-backs on quota or SurgeUnschedulable rollbacks, recording the SizingCappedByQuota condition when capped. Under an explicit profile it repeats that profile.

status.sizing records the proactive utilization state under sizingProfile: activeTier, desiredTier, trigger (cluster-count, utilization, both, or manual), sustain timers (scaleUpSustainedSince and scaleDownSustainedSince), lastTransitionTime, and the peak reading (lastObservedPeakPct, lastObservedDimension, lastObservedWorkload).

Under a served CRD that predates effectiveSizingTier or status.sizing, the five-minute rule above applies. The operator notices the pruning from the write’s echo, and writes and logs once per interval rather than on every pass. Under effectiveSizingTier pruning it renders auto at small; under status.sizing pruning, the cached status.sizing state (including transition and sustain timestamps) is held in memory between 5-minute probes until the updated CRD is applied.

effectiveSessionCap is the session cap the operator renders on the session route, fitted to the live TASKS stream as spec.harness.tuning describes. A pass that cannot read the bus keeps the stored value, and a stored value’s reading is reused for five minutes. It is written only on defaultRoute: session; on platform, the default, a value an earlier opt-in left is cleared.

These condition types appear in conditions; only Ready is always present. The table is generated from k8s-operator/internal/controller/condition_docs.go, and the controller’s tests fail when it writes a condition type that has no row there:

Type Written Meaning
Ready Always Tracks phase; its reason and message carry whatever the reconcile is waiting on, including the reasons that park phase: Degraded (ReservedServiceAccountName, RuntimeClassNotFound, ShellSandboxCannotBeDisabled, UniverseDomainMismatch, ForbiddenVolumeMount, EgressAllowlistRefused, ShellSandboxKeysMissing, and A2AProvisionFailed). What Ready reports says what UniverseDomainMismatch, ShellSandboxKeysMissing, and A2AProvisionFailed mean and how a failed provisioning Job is cleared. Under spec.deployment.scaleToZero: true it reads False with reason ScaledToZero beside phase: Paused once the gateway has no ready replica; the same section says when. With the A2A gateway’s election on, the gateway counts as ready only while its elected leader is, after a 30-second grace from the leader’s election; with no current leader (no holder, its pod gone, or a holder that stopped renewing) it counts its ready replicas.
Degraded Only while degraded Something in the spec, cluster state, or operator install cannot be honoured. Reason is one of InvalidGitRepoURL, CorruptManagedRepos, MinterPruningHeld, A2ABusStreamsMissing, A2AGatewayWaitingForTasks, SlackConnectionFailed, A2ABusServerOutsideMetaGroup, InvalidCredentialProxyResources, InvalidAgentAPIAuthResources, InvalidShellSandboxResources, InvalidCredentialProxyExec, InvalidKanbanAdmission or RBACIncomplete; What Degraded reports says what each means. The refusals above ride the Ready condition instead of this one.
BusCredentialsReady While a callout Deployment exists Whether every replica the callout Deployment asks for is ready, and therefore both serving an identity map and attached to the bus. Reason: CalloutServing (True), CalloutUnavailable, or CalloutAbsent. The operator’s own gates do not read it, and it reads False with 1 of 2 replicas ready while the gateway exists and dispatches; What BusCredentialsReady reports has the gate it differs from.
DispatcherJobMode While the operator runs the profile dispatcher (on by default; operator.profileDispatcher.enabled) with the chart’s A2A_DISPATCHER_JOB_POLICY signal set, from the first pass that reaches the dispatcher Whether the dispatcher runs profile tasks as Jobs: unattended ones, and permit-carrying ones at any tier. Reason: InPlace (True), PolicyMissing, NamespaceNotSelected, NamespaceNotReady, ForeignJobTemplate, or GrantFailed; What DispatcherJobMode reports has each.
A2AConsole While the PlatformAgent carries kubeagents.x-k8s.io/network-policy-enforcement: absent-accepted status: False, Reason: NetworkPolicyNotEnforced, with a Warning event: the A2A console requires NetworkPolicy enforcement, so the operator runs no <agent>-a2a-console. Removed once the annotation is gone: the cluster enforces NetworkPolicy and the installer has run again, or, on a direct Helm install that set it, it is removed from platformAgent.annotations.
SessionHarness While spec.harness.sessionWorker.type names a harness this operator doesn’t render status: False, Reason: SessionHarnessNotSupported, with a Warning event: the CRD admitted a session harness this operator doesn’t know (after a rollback, for example), so the operator doesn’t pass it to the gateway and session pods run the default harness, core-agent. Removed once the value is supported or unset.
RunClaims While spec.harness.tuning.runClaims is true Whether the operator renders A2A_MINT_RUN_CLAIMS on the A2A gateway, which then mints run claims and session turn credentials. The gateway and the credential-proxy broker must both be at a release that ends a session turn credential with its turn, or later, and tags can’t be compared as versions. True, Enabled: both images are the ones the operator derives from its own image (OPERATOR_IMAGE, which must match the image the operator runs; a mirror prefix included), or the annotation kubeagents.x-k8s.io/run-claims-images-verified lists both rendered refs, comma-separated. False, ImagesOverridden, with a Warning event: A2A_GATEWAY_IMAGE, CREDENTIAL_PROXY_IMAGE, PLATFORM_AGENT_IMAGE or spec.deployment.image renders an image other than the derived one; the message names it and its ref. False, VersionUnknown, with a Warning event: OPERATOR_IMAGE is unset, pinned by digest alone, or differs from the image the operator runs, or the operator couldn’t read its own pod. A refusal renders no env; the message gives the fixes: remove the override (or make OPERATOR_IMAGE match), or set the annotation to the refs it quotes. Removed when the field is off.
DispatcherCeiling While the profile dispatcher is switched on How the dispatcher’s identity-map entry and its config compare with what one shard and one ConfigMap can hold. WithinBudget (True); NearBudget (True), past four fifths of either, with a Warning event; ProfilesRefused (False), with a Warning event: the newest profiles aren’t bound and the dispatcher serves the rest; OverBudget (False), with a Warning event, only from draining profiles: no dispatcher until their drains run out. About 650 profiles at two tiers; the config fills first only for profiles that declare many parameters.
A2AIdentityMapApplied Once the operator renders an identity map Whether the auth callout took the identity map this operator rendered, read from every Ready callout pod’s /status by pod IP, again every 30 seconds while unsettled. True, Serving: every Ready pod answered and serves it. False, Refused: a pod refused it and serves its previous map, which can be wider; the message quotes the refusal. False, Pending: a pod is still on an older map or mid-way through its shards. Unknown, StatusUnreadable: a Ready pod didn’t answer and may hold a refusal, so turning to it is a Warning event (a NetworkPolicy on the callout must admit the operator). Unknown, NoReadyCallout: no pod is Ready. Removed when the A2A stack is off.
InferenceKeysServed While the namespace runs the inference gateway (the litellm Deployment) Whether every Ready inference gateway pod has loaded the caller keys the operator mints, one per caller class: agent, a2a-session, curator, and tier-<tier> for each AgentProfile tier in use. Each key is in Secret <name>-inference-key-<class>, a tier’s in the profile namespace, and the litellm-caller-keys Secret lists their SHA-256 digests. These names are reserved for the operator: it records the UID of each Secret it creates in status.inferenceKeys, and replaces any other Secret it finds at one of them, with an InferenceKeySecretReplaced Warning event naming it, so its key never reaches the map. After a rollback to a release that drops that record, every key is replaced once and the condition comes back on a later pass. A pass that finds the condition True marks each class’s key Secret with the annotation kubeagents.x-k8s.io/inference-key-served-sha256, and from the next pass the class’s callers send their key (which key each caller sends). The operator also mints a probe key, class gateway-probe in Secret <name>-inference-key-gateway-probe, which no caller is given and the gateway admits on GET /v1/models alone. Every map the operator writes carries a fresh probe key, its digest in the same update and the previous one dropped, so a pod still on an older map refuses it. It sends only the probe key, as GET /v1/models by pod IP, to each Ready pod the litellm Deployment owns through its ReplicaSet, skipping pods on the host network. True, Served: every pod answered 200. False, NotServed: a pod answered something else; the message names the pod and the status, and the operator looks again every 15 seconds, since a pod loads a new map when the kubelet refreshes its mounted Secret. Unknown, ProbeIncomplete: a pod didn’t answer, and the operator looks again every minute. Unknown, NoReadyGatewayPod: no gateway pod is Ready, and the operator looks again every minute. False, CRDOutdated: the served PlatformAgent CRD’s status.inferenceKeys schema isn’t current (it lacks the field or its tierUnboundAt), so the operator writes no key Secret and no map until the current CRD is applied (Helm doesn’t upgrade CRDs on helm upgrade); it looks again on its steady interval. False, NotWritten: the keys or the map weren’t written, because another PlatformAgent shares the namespace, the CRD couldn’t be read (nothing is written on that pass), a Secret at one of those names is being deleted (the operator creates its own once it’s gone), a Secret to replace couldn’t be checked against the record as the API server holds it (nothing is replaced on that pass), or an API call failed; the message says which.
A2ACalloutRolloutStalled While the auth callout Deployment’s rollout is past its progress deadline status: True, Reason: ProgressDeadlineExceeded. The bus applies a config change without waiting for every callout replica to load the current identity map, so until the rollout finishes some connections may be placed by the previous map. Check the <agent>-a2a-callout Deployment’s rollout (kubectl rollout status) and its pods’ events. Removed once the rollout completes.
A2ABusImageHeld While the bus version guard keeps the bus off the server image the operator would render status: True, Reason: OlderBusImageRefused. The operator records the newest NATS server version it has rendered for the bus in the kubeagents.x-k8s.io/a2a-bus-server-version annotation, before the roll that starts it; with no record, the version the bus StatefulSet runs counts as one. It never applies an older server than that, or an image whose tag doesn’t start with a server version, because an older server isn’t promised to read a newer one’s stores. It keeps the image the StatefulSet already runs if that is the operator’s own image repository with a version at or above the record; otherwise it doesn’t apply the StatefulSet, and the running bus is left as it is. An annotation that can’t be read is treated the same way. This follows an operator rollback to a release with an older bus image, or a bus image (A2A_NATS_IMAGE, the chart’s a2aBus.images.nats) set to an older version or to a reference without a version tag. A digest alone counts as versioned when it is one of the NATS images this operator has pinned; for any other, put the version tag in front of the digest (<repository>:2.11.17-alpine@sha256:...), which pins the same image. The record holds only a version, so it can’t choose an image. The message names both images and what to do, and a Warning event with the same reason is sent when the message changes. Upgrade the operator, or set a bus image whose tag starts with the recorded version or a later one. Removing the annotation clears the guard; do that only for a bus whose data you can lose. Removed once the operator’s image has a versioned tag at or above the record. Only operators from this release on read the record, so it protects rollbacks to this release and later.
A2AProvisionRetrying While the current A2A provision Job has failed pods and has neither completed nor failed status: True, Reason: ProvisionJobPodsFailing. The message names the Job, how many of its pods have failed, and the kubectl logs command that shows why. The Job retries up to its backoffLimit, which can take over an hour, before it fails and A2AProvisionFailed takes over. Not Degraded; BusProvisioned, Ready and the phase are unaffected, because the Job also re-runs on a bus that is already provisioned and a retry can clear by itself (NATS briefly unreachable). A Warning Event is recorded each time the operator sees the failed-pod count rise; it checks every 30 seconds while the Job runs, so pods that fail between two checks share one Event. Removed once the Job is replaced, or once the Job controller decides it has completed or failed, which can be a few seconds before Complete or Failed appears while its pods terminate. Written and cleared by every pass that renders the stack and reaches a status write, whichever phase it ends on; a pass that stops before then leaves it as it stands.
A2AGateway Only on an install upgraded from an operator that ran the A2A gateway at zero replicas for want of a chat backend: from the pass that scales it back to one replica until that replica is ready. Written and cleared by every pass that renders the stack, whichever phase it ends on (Ready, Provisioning, or Degraded for A2AProvisionFailed and ShellSandboxKeysMissing), so only a pass that stops before rendering leaves it as it was status: False, Reason: WaitingForReplica. Every install runs the A2A gateway, on the console door alone when no chat backend is configured. After the upgrade the next pass renders it at one replica, Ready waits on it, and the condition clears once a replica is ready. What A2AGateway reports covers the older NoChatBackend reason and the discord-bot Secret.
SlackConnected While Slack is enabled on the A2A gateway and any scraped gateway pod exports kubeagents_a2a_gateway_slack_connected (first poll 30 seconds after operator leader election, then every five minutes); removed when Slack is disabled or after two consecutive polls with no pod exporting the gauge True, SocketModeConnected: the A2A gateway’s Slack Socket Mode connection is up (maximum reading across reporting replicas is 1; set on the first poll reading 1). False, ConnectionFailed: two consecutive polls read 0 across reporting replicas (Slack auth.test or Socket Mode is failing); projects onto Degraded=True (Reason: SlackConnectionFailed) without changing Ready or phase so an external Slack outage does not take down the console, A2A doors, or gateway PodDisruptionBudget.
BusProvisioned From the first pass that sees the bus provisioning Job complete, whichever phase that pass ends on; kept through the Job’s later re-runs status: True, Reason: ProvisionJobComplete. The record that lets Ready stop counting the Job: the finished Job is removed by its 24 h TTL and rendered again, and a spec edit renders a new one under a new digest, and neither re-run should flip a Ready install to Provisioning for the minute it takes. Until this condition exists the Job counts, so an install upgraded from an operator that never counted the Job (one that could read Ready over an unprovisioned bus) does not inherit a completion nobody saw. The message names the Job that first provisioned the bus. A re-run that fails is still reported as A2AProvisionFailed.
ProfileSupervisorForm True once, from the first pass that finds every profile-task reader (the A2A gateway, the agent pod and, with its door on, the MCP server) on this release’s image and fully rolled out and the bus provisioning Job that adds the gateway relay’s third filter complete; never removed. False while this install renders a reader on an image other than this release’s (a pinned spec.deployment.image) status: True, Reason: SixTokenSupervisorSubject. The dispatcher writes a profile task’s terminal on the six-token supervisor subject (a2a.tasks.p.<profile>.<task>.supervisor) instead of the five-token one, and the gateway relay filters both. It is a latch: a later upgrade that rolls a reader again keeps the dispatcher on the six-token form rather than moving it back for the length of the roll. One pass after it is written, the operator renders A2A_PROFILE_SUPERVISOR_CUTOFF on the A2A gateway and the MCP server, set to this condition’s lastTransitionTime plus ten minutes (on an install that latched earlier, that time may already be in the past at the upgrade), and mounts the <agent>-a2a-profile-names ConfigMap on both, which rolls each once: past that time they no longer take a five-token terminal as the end of a task addressed to a profile that ConfigMap lists. From the latch the dispatcher no longer falls back to the five-token form when the six-token one is refused, and settles the task without a terminal after its retry bound (terminal-unpublished). Each such give-up is logged on the dispatcher container as an ALERT dispatcher_terminal_unpublished line naming the profile, tier and task; a log-based alert matches it with resource.type="k8s_container" resource.labels.container_name="dispatcher" jsonPayload.msg:"ALERT dispatcher_terminal_unpublished". It means a profile’s six-token grant never reached the dispatcher’s connection, an install fault, and the requester sees no end until a stop: the gateway ends a task with no events as never started and holds one with executor events as working. Until it is written, the dispatcher writes the five-token form, which every reader watches. status: False, Reason: ReaderNotOnReleaseImage: the operator renders the reader the message names on an image other than this release’s, the hermes-bridge of a pinned spec.deployment.image, so the install stays on the five-token form. A later release that drops that form keeps it for this install while this holds. Setting the pin to this release’s tag, or removing it, clears it. A reader still on an older release’s image, before or during its rollout, writes nothing.
BusStreamsPresent Once BusProvisioned is True Whether the streams and KV buckets the provisioning Job creates are still on the bus, read every five minutes from the bus’s metrics exporter on port 7777. True, AllPresent: every one was seen. False, StreamsMissing: three polls in a row found the ones the message names missing, and the operator deletes the completed provisioning Job so it runs again and recreates them (Reprovisioning while it runs); once TASKS is back after a loss, however it came back, the operator restarts the A2A gateway and the agent pod whose client container has been running since before the loss, because their TASKS consumers don’t come back on their own (A2ABusClientsRestarted); one that started since binds by itself, and a restart that fails is retried on every poll, with Reprovisioning saying so. A loss of TASKS counts once three polls in a row saw it, or once the operator re-runs the Job while it’s missing. It’s kept in the kubeagents.x-k8s.io/a2a-bus-tasks-lost annotation, so removing the re-run record doesn’t clear an owed restart; removing that annotation does. Re-runs are at most one per 15 minutes and three per 6 hours, recorded in the kubeagents.x-k8s.io/a2a-bus-reprovision annotation. A re-run that completed without bringing some of them back stops the re-runs for exactly those names (ReprovisionDidNotRestore), each lifted on its own once seen back or all of them when the annotation is removed. A loss of any other stream is still confirmed and re-run while a stop holds, and its message names the stopped ones. A failed Job is not re-run. While False, Degraded reads A2ABusStreamsMissing. Unknown, DetectionUnavailable: the bus runs without its exporter (A2A_NATS_EXPORTER_IMAGE). Unknown, ExporterUnreachable: three polls in a row had no usable answer. No verdict is taken while the bus rolls, converts or provisions, and the condition keeps its last one meanwhile, however long that lasts; the bus’s own conditions report the rollout.
A2ABusServersCurrent Once BusProvisioned is True on a bus of more than one server, by the five-minute bus poll while the bus is settled (no roll, conversion or bus migration; a provisioning Job held or running doesn’t stop it, since a roll that re-creates the Job holds it until the meta group forms). Removed on a one-server bus, and while the operator doesn’t know its own namespace and service account (it then can’t reach the servers) Whether every bus server is in the JetStream meta group, read from each server’s /jsz on its monitor port (with or without the metrics exporter). True, AllCurrent: the servers agree on a meta leader that lists every other server as current. False, ServerOutsideMetaGroup: a server has been outside the meta group for at least 5 minutes, either not listed as current by the leader the others agree on, or with no leader agreed at all. For one stray, the other servers still hold every stream’s quorum, so the bus serves but one more server down stops it, and the message names the server, the leader, since when, and what the operator did about it: that it restarted it, or which guard holds the restart back (below), rather than a delete command. With more than one server outside under an agreed leader, it says to leave the pods as they are. With no leader agreed, the message says the bus can’t place or change streams and that it isn’t one stray to restart. Degraded follows False with A2ABusServerOutsideMetaGroup; Ready doesn’t. When a single stray is named, the operator restarts it once by deleting its pod (the StatefulSet recreates it on the same volume), but only if the others are a current quorum, every stream it hosts keeps a majority of current replicas without it, its meta lag hasn’t fallen since the last poll (or the leader doesn’t list it at all, two polls running), no roll, bus migration or config reload is under way, it hasn’t been restarted for the StatefulSet’s revision or in the last 24 hours, and its pod is this StatefulSet’s and not already terminating. Quorum is read from each stream’s own leader, counting only this bus’s servers, so a stream the stray leads, or one with a member nats-server can’t name, holds the restart back, as does a server whose streams can’t be read or a restart record that can’t be read. The record is the kubeagents.x-k8s.io/a2a-meta-repaired annotation on the bus StatefulSet, written before the delete. A restart is a Warning A2ABusServerRestarted Event, the message ends by saying when the operator restarted it, and a server still outside after that is left for a person. A delete that fails may still have happened, so it isn’t tried again, but the message says it failed and no Warning is sent; a delete that deleted nothing (the pod changed or went) takes its record back and is tried afresh on the next poll. An error inside the repair still writes the condition, saying the restart couldn’t be tried that poll. A guard that holds the restart back is named at the end of the message and in a Normal A2ABusServerRepairHeld Event when it changes. True, NoneOutsideLong: a server named earlier has rejoined while another has been outside less than 5 minutes. A healthy server is listed current within seconds of its pod turning Ready, so one still outside after 5 minutes is stuck, not slow. A poll that can’t read a server leaves the condition and the clock as they stand; a server not running (usually one being restarted) restarts the clock. A server the condition already names stays named while it’s still outside, across an operator restart or a roll, from the time kept in the kubeagents.x-k8s.io/a2a-bus-meta-outside annotation. A2ABusMetaGroup is the provisioning Job’s own check and is separate.
A2AVerifier While the capability verifier’s Deployment exists and has no ready replica. A pass that cannot read the Deployment leaves it as it stands status: False, Reason: VerifierNotReady. A capability check that gets no answer is refused, so every submission is refused terminally while this holds. The CR stays Ready: the verifier is on the request path, not the readiness path. Check the <agent>-a2a-verifier Deployment’s pods and their logs, including the previous container’s: a verifier that cannot bind its capability bucket exits, and its log says why. Removed once a replica is ready.
A2ABusMetaGroup On a multi-server bus, on a pass that checks the JetStream meta group before creating the provision Job: present while the group isn’t formed, a server isn’t running, or a server’s view can’t be read, and removed on the pass that sees it formed. Also removed on any pass where the provision Job already exists, on a one-server bus, on a pass where another hold (the callout, or the bus rolling out) keeps the check from running, and when the mode flips to today status: False. Reason: ServerOutsideMetaGroup names the server or servers that don’t report the meta leader a quorum agrees on, or that the leader doesn’t list as current. The provision Job waits, so no stream is created, and the CR isn’t Ready. A server still outside 3 minutes later is restarted once, with an A2ABusServerRestarted Warning, when it is the only one outside, the rest are a quorum, the bus hasn’t been provisioned yet with no server holding a stream or consumer, and its own meta node has started. A server already restarted once and still outside is named as left for a person: delete its pod, or wipe the bus. When no leader is agreed at all, on a fresh bus under the same guards (never provisioned, no server holding a stream or consumer, every meta node started, none restarted before), every server is restarted once after the same 3 minutes, with an A2ABusMetaGroupRestarted Warning; a bus still without a leader after that, or one where a server was already restarted, is named as left for a person (wipe the bus). Reason: ServerNotRunning names a server whose pod is absent, being deleted, or not Running while the others run, such as the one just restarted: the Job waits for it, and nothing is restarted on that account. Reason: MetaGroupUnknown names a running server whose view couldn’t be read, or says no server is running; nothing is held or restarted on its account. The check also runs when the Job is re-created on a running bus, where it can hold the re-run and set this condition; it never restarts anything on a bus that has been provisioned. A server outside a provisioned bus’s meta group is reported by A2ABusServersCurrent, and restarted once under guards by the bus poller.
GatewayElected With the election on, from the first pass that reads a gateway pod holding the Lease. Kept while the gateway runs that image or the operator’s own release. Removed on a roll to another image, or with the election off status: True, Reason: LeaseHeld. The message is the image the Lease holder runs. The operator renders availability.a2aGateway.replicas gateway replicas only while it is set, since a gateway from before the election would act beside an elected one. A status condition doesn’t survive most restores, so a restored install runs one replica until a gateway takes the Lease again.
EventWatcher Only while eventWatcher.enabled is false status: False, Reason: DisabledBySpec. The emergency stop is still pressed and no cluster events are reaching the agent.
DataVolumeNearlyFull While the operator has a reading of the data volume True (NearlyFull) from 90% used, back to False (HasSpace) only below 85%, so a volume at the line does not flap. A full volume fails every task-board and session write with a bare disk I/O error, so this is the early warning. It does not change phase or Ready, since the agent still answers. The message holds no figure and points to storageStatus and the kubeagents_data_volume_bytes metric; freeBytes is current to within a hundredth of the volume, and exact when the status changes. The reading comes from the event watcher, so it clears at once while the watcher is disabled or answers ready without the volume series. With no fleet reading (unreachable or k8s_event_watcher_watch_set_ready below 1), it holds for one poll and clears after two in a row. The Session KV server in the agent container makes the same check and posts to the home channel when usage crosses 90% and when it is back below 85%.
KanbanDispatcherFailing From the first time the task-board dispatcher fails for a whole poll, or a tick on a board runs past 300 s or fails on a database lock after a busy timeout True with reason TicksFailing once a board’s dispatcher fails 60 ticks in a row (about one five-minute poll), or 3 in a streak at least a poll old. True with reason TickStuck once a board’s tick runs past 300 s or fails on a database lock after waiting the busy timeout (120 s by default), as on a locked board; a stuck board takes precedence over a streak, and a good tick that runs past 300 s can set it for one poll. The message names the board with the last error class, or the stuck board, and no tick count or duration; it is written again when the reason, the board, the error class or the count of failing boards changes. Cards on that board are not dispatched; a full data volume is a common cause. False (Ticking) at the first poll where no board meets any rule. A good tick resets a streak and a stuck board, and a quick failure of another kind ends a stuck board; a board the dispatcher stops trying drops out after ten minutes. It does not change phase or Ready. A poll that cannot read the gateway’s chat metrics listener leaves it as it is. A board quarantined as corrupt drops out after ten minutes too.
ForgeConnected While the credential broker reports a forge that holds a managed repository True (RepositoriesAnswer) when every managed repository on every forge answered the broker’s last readings sweep, which attempts each one about every four minutes, the GitOps repository among them. False when one did not, with the worst state as the reason: Unauthorized (the forge refused the credential, or none could be had, as for a GitHub App with no installation on the repository), NotFound, Unreachable, IdentityUnknown (the credential cannot name its account), RateLimited or Failed. Unknown (SweepStale) when the broker’s readings sweep last reported over an hour ago. A repository in the IdentityUnknown state is not attempted again until the broker restarts, so the reason does not clear before then while the sweep reports. The message names forges by provider and the hosts the spec declares for it. When True it gives every forge with how many of its managed repositories answer; when False, only the forges that do not answer, with their failing repositories by state out of the forge’s total; when Unknown, the forges that the sweep no longer reports. It names no repository, and the broker’s log does. The broker reports by provider, so two hosts of one provider are counted together. A change shows in about two polls. A poll that cannot read the broker leaves the condition as it is. The condition is removed while the broker reports no forge: on an install with no managed repository, with the readings sweep turned off, or after a broker restart until its first sweep ends. It does not change phase or Ready, since the agent still answers.
ScopeUndeclared While spec.scope names no project, folder, organization, Shared VPC host or Metrics Scope, spec.harness names the host cluster, and the event watcher registers a cluster in the management project other than the host status: True, Reason: ClustersAdoptedFromProject. Without a membership list the reconcile adopts every GKE cluster in the management project. The message counts them, names the first eight as name (project/location), and points at the remedy: name the management project in spec.scope.projects to keep them, or list each under spec.scope.exclude.clusters (spec.scope); on an installer-made install, set SCOPE_PROJECTS or SCOPE_EXCLUDE_CLUSTERS in install.env. The management project stays in scope under any declaration, so a scope that names other projects silences the condition without retiring the neighbours. Written by the usage poll from the watcher’s k8s_event_watcher_cluster_up series. Absent with the watcher disabled or after two polls in a row without a fleet reading, and removed once that project registers no cluster beyond the host or a scope is declared. Not Degraded; Ready is unaffected.
HomeChannelUnset While the A2A gateway holds a chat backend whose homeChannel is empty (Google Chat, Slack, or Microsoft Teams when the gateway serves it under spec.integration.teams.backend, any of them) and no learned channel or space is admitted for it status: True, Reason: NoHomeChannel. Conversation replies still arrive. When another platform has a home channel, proactive posts go there meanwhile (Chat’s first, then Slack’s, then Teams’). When no platform has one, the gateway refuses them and keeps them for one digest once a channel is set. The message names each platform; the install.env key beside the field only for the platforms the installer configures. Not Degraded; Ready is unaffected. Written and cleared on a pass that ends Ready or Provisioning, and on one that renders the A2A stack and then parks Degraded (ShellSandboxKeysMissing, A2AProvisionFailed); a refusal that returns before the render leaves it as it stands. Set homeChannel, or under homeChannelPolicy auto mention the agent in a channel or a space, or on Slack pick one on the Home tab (spec.integration has the admission rule).
A2ABusMigrating While a bus migration runs (True), and after one ended without converting the bus (False, Abandoned) or stopped for a person (False, Failed); absent once one converted the bus, or when none has run status: True, Reason: InProgress while a run is under way; the message names its phase, which status.busMigration also carries. False, Abandoned: the run ended and the bus runs on as before, data kept. False, Failed: the run stopped where a person has to act, and the message names the step. A reshape (leg Reshape, recreating TASKS wider) reads the same way, its message naming TASKS rather than a server count. True, LegUnknown: the run’s leg is one this operator does not run, a later release’s found after a rollback; it is held where it is, with the freeze, until that release is back or a person abandons it (a run this operator does not run). An install upgraded from an operator that refused bus conversions loses that operator’s A2ABusConversionRefused condition on its first status write. Changing the bus’s server count has the phases.
NoChatPlatform While neither Google Chat nor Slack is enabled, and the gateway does not serve Microsoft Teams (spec.integration.teams.backend) status: True, Reason: NoChatPlatform. Nothing the agent raises unprompted reaches chat. Its audit findings stay in the report store on the data volume and reach the GitOps repository (ledger issues, fix pull requests) when one is registered; alerts are still triaged on the board; other scheduled reports are not delivered. Ask the agent for the audits in the A2A console’s chat pane (on an install that enforces NetworkPolicy), or read the volume with kubectl exec. Not Degraded; Ready is unaffected. A Discord-backed gateway carries it too, since no notifier posts to Discord. Written and cleared on the same passes as HomeChannelUnset. Enable one platform (spec.integration.slack or spec.integration.googleChat with enabled: true, or spec.integration.teams with enabled: true, unless backend is hermes or the operator’s A2A_TEAMS_BACKEND=false applies) to clear it.
ShellSandboxPinned While spec.harness.experimental.shellSandbox.image names an image other than the one the operator would run without it status: True, Reason: ImageDiffersFromOperator. The message names both images. A pin survives operator and agent upgrades, and a sandbox older than the agent fails every kubectl call at the credential proxy with a policy refusal. Not Degraded; Ready is unaffected, since a pin to a mirror or a test build can be deliberate. Written and cleared on a pass that ends Ready or Provisioning, and on one that parks Degraded on ShellSandboxKeysMissing or A2AProvisionFailed. Clear the field, or set it to the operator’s image, to clear it.
A2AMCPServer While the operator runs the MCP server (on by default; operator.mcpServer.enabled) and a ServiceAccount named <agent>-a2a-mcp or a Secret named <agent>-a2a-mcp-token exists that this PlatformAgent does not control status: True, Reason: UnownedServiceAccount or UnownedTokenSecret. Both names are reserved: an account somebody else created would run the MCP server as whatever Workload Identity it carries, and a foreign Secret would arm it with their credential. So the server is not rendered; a server and Service rendered earlier are removed, while the fence and the operator’s own token stay. For an unowned account the broker’s caller list and CREDENTIAL_PROXY_MCP_CALLERS do not name it. Ready is unaffected. The message names the object. Delete it; the condition clears on the next periodic pass, within 15 minutes. A controller reference is not a remedy: the operator would adopt the object as it is, annotations and contents included.
ScopeResolved While a scope publisher may run (the chart renders the kube-agents-a2a-gateway-pod admission policy and <agent>-scope-publisher is this PlatformAgent’s), for any spec.scope; and while spec.scope declares a folder, organization, Shared VPC host or Metrics Scope, also when one can’t A Job named <agent>-scope-publisher-<suffix> (shortened for long names) resolves the scope’s folders, organizations, Shared VPC hosts and Metrics Scopes, and lists the clusters of the management project and the explicit projects, into the <agent>-resolved-scope ConfigMap 15 minutes after each start, or at once for a new membership when no run is active. True, Resolved: a lookup answered within twice the sum of 15 minutes and 5 minutes per started 100 of maxProjects (40 minutes at the default). False reasons: Missing, no readable result yet. Stale, no lookup answered within that bound. HashMismatch, the result predates the membership. TooLarge, the members did not fit. Error, read the Job’s log. UnownedServiceAccount, somebody else owns <agent>-scope-publisher; delete it; it clears within 15 minutes. ScopeRoleNotConferred, the install has no kube-agents-a2a-gateway-pod admission policy from the chart, which the broker’s scope role needs. ScopeBrokerNotReady, there’s no current result and the credential broker hasn’t finished rolling out the template that grants the publisher the scope role; the message gives its replica counts, and no publisher Job starts until it has. Ready is unaffected.
BuiltinSchedules While something about the built-in AgentSchedules or spec.schedules.overrides needs saying. OverrideUnknown is written whether or not the operator runs AgentSchedules; the other reasons only while it does status: False, one of OverrideUnknown, OverrideRefused, ReplacedUnownedSchedule or WritesForbidden. OverrideUnknown: an entry in spec.schedules.overrides names no built-in schedule and no job in the Platform Agent’s cron roster, and is ignored; overrides key on the rendered name, so a canary’s entry is <name>-canary. OverrideRefused: an override sets suspend: false on a run-now-only schedule such as onboarding, which would put it on its nominal cron; only suspend: true is taken there. WritesForbidden: a write the renderer needs was refused with a 403; the message names the verb, the schedule and the API’s reason. If RBAC refused it, as an operator image ahead of its RBAC sees, apply the chart’s RBAC: the writes are on the operator’s namespaced Role in the install namespace. ReplacedUnownedSchedule: an AgentSchedule sat on a reserved built-in name without the operator’s marks, and was deleted to be created again as the built-in (an Event says so too). Built-in names are reserved; don’t create a schedule under one. Fix the override, or let the replacement finish, to clear it.
VolumesDropped Only after a pass that rendered the Pod template around a hostPath on spec.deployment.extraVolumes or .sidecarVolumes, or a volume or mount that would hand a container the credential proxy’s watcher token status: True, Reason: HostPathVolumeDropped or WatcherTokenVolumeDropped. The render leaves the named hostPath or watcher-token entries and every mount naming them out of the Pod template the operator applies, and the message lists them by field and index. Not Degraded: the Pod runs without them. What VolumesDropped reports says which passes write it and which leave it as it stands. Remove the entries to clear it.
ReplicasLimited Only while spec.deployment.availability.replicas is above 1, after a pass that rendered the gateway status: True, Reason: HighAvailabilityNotSupported. The operator runs the gateway as a single replica, whatever the field asks for; the message names the requested count and why a second replica does not start. Not Degraded: the single replica runs. Written on whichever status the pass ends on, on the same terms as VolumesDropped: a refusal that returns before the render neither writes nor clears it. Set the field to 1, or remove it, to clear it.
CredentialProxyExecReady Only while credentialProxy.exec.replicas is above 0 and the agent’s name is accepted for the tier status: True, Reason: AllReplicasReady when every exec-tier replica is Ready. status: False otherwise: Reason: Unschedulable when the scheduler cannot place a replica, with the pod’s name and the scheduler’s message (often Insufficient cpu); Reason: ReplicasUnavailable for any other shortfall. The message counts the Ready replicas against the field. Re-read every 30 s while short; a failed read leaves it as it stands. Not Degraded: a caller that cannot reach the tier falls back to the stateful broker. Each replica needs a node with 2 free CPU. Removed when the field is 0 or unset, or when the name is refused (InvalidCredentialProxyExec). A park that returns before the broker is reconciled (ReservedServiceAccountName, ForbiddenVolumeMount, ShellSandboxCannotBeDisabled, RuntimeClassNotFound, UniverseDomainMismatch) leaves it as it stands, count included, until the park clears.
SizingCappedByQuota Only while spec.deployment.sizingProfile is auto and a tier transition is blocked by a namespace ResourceQuota, a LimitRange bound, an unschedulable credential-proxy surge pod (SurgeUnschedulable), or after admission refused a surged or recreated pod status: True, Reason: ResourceQuotaShort, LimitRangeShort, or SurgeUnschedulable. The message names the desired tier, the running tier, and the blocking quota key, LimitRange bound, or pending surge pod; ResourceQuotaShort and LimitRangeShort record numeric details in their Warning event, while SurgeUnschedulable carries the pending pod and scheduling reason directly in both the condition and Warning event. Not Degraded: the running tier keeps serving safely during an unschedulable surge without dropping the active broker. Cleared once capacity, quota, or bounds allow the step or utilization no longer requires it. Raise the quota, adjust cluster capacity/LimitRange, or name the tier explicitly in sizingProfile.
SessionCapFitted Only while the session cap is fitted below maxSessions on an install that sets spec.harness.tuning.defaultRoute: session, the install fell back to platform, its cap waits on its first reading of the bus, or the served CRD drops the cap. Never on platform, which an unset field resolves to status: True, Reason: TasksStreamNarrow: the live TASKS stream has room for fewer sessions than maxSessions, so status.effectiveSessionCap holds the fitted cap, which the gateway’s cap, the session quota and the provision Job follow. Reason: NoRoomForASession: not one session fits, so plain conversations go to platform. The cap stays fitted until TASKS is widened: on a one-server bus, setting busReplicas to 3 widens it and keeps its history; on any bus, a new value on the kubeagents.x-k8s.io/bus-reshape annotation recreates it at the rendered width, keeping its messages. status: Unknown, Reason: WaitingOnBusWidth: on a provisioned bus the width can’t be read yet, so plain conversations go to session pods at maxSessions and the provision Job waits until it is read. status: True, Reason: StatusFieldPruned: the served PlatformAgent CRD is older than the operator and drops status.effectiveSessionCap, so plain conversations stay with platform until the chart’s crds/ is applied; the operator checks again every five minutes. The message carries no figures; the Warning event names the live width, what maxSessions needs and the fitted cap. Removed once none of these holds, and on platform.
DataVolumeNotExpanded Only while a data claim is smaller than spec.storage.size (or the 50Gi default, raised by expectedClusterProfiles for the agent’s claim) and its StorageClass cannot expand it status: True, Reason: StorageClassCannotExpand. The message names each blocked claim, its current request, the size asked for, and why the class cannot expand it. Not Degraded: the agent runs on the smaller volume. Written on whichever status the pass ends on, Ready or Degraded, and removed once the claims can grow or the size no longer asks for more. After an operator restart it is left as it stands until the next pass reads the claims. Set allowVolumeExpansion: true on the class to clear it. The agent’s claim, when it is below that size and will not grow (its class cannot expand it, or this PlatformAgent does not control it), also gets one DataVolumeUndersized Warning Event per state.
ExternalModelEgress Only while the resolved Google Cloud universe domain is not googleapis.com and status.inference.provider is an external SaaS provider (any provider other than openai_compatible, vertex_ai, hosted_vllm, vllm, ollama, or custom) status: True, Reason: ExternalSaaSProviderInCustomUniverse. Prompts, cluster telemetry excerpts, and tool results leave the sovereign or partner universe boundary to reach the external model provider. Not Degraded: Ready is unaffected, since an operator may authorize external model egress deliberately. Switch LiteLLM to an in-universe endpoint (openai_compatible or vertex_ai with platformAgent.harness.universeDomain set on the chart) to clear it.

Not everything the operator learns is a condition. One thing the bus provisioning Job finds about a stream it could not change is recorded as an Event on the PlatformAgent instead: a TASKS stream created before the render carried a per-subject cap keeps running unbounded, and the pass that first sees the Job complete records a Warning Event, reason TasksSubjectCapMissing, naming the Job, the live and rendered caps, and the nats stream edit that closes the gap with what that edit costs. A stream carrying some other finite cap is drift, not that gap, and stays in the Job’s pod log.

The byte caps of TASKS (8 GiB) and TOPICS-JOURNAL (1 GiB) apply to streams this release creates. An existing stream above its cap keeps it, since provisioning does not edit a stream. The operator then records a Warning Event on the PlatformAgent, reason A2ABusStreamCapAboveRender. It names the stream, its live and new max_bytes, what it holds, and the nats stream edit that lowers it. It also says whether applying the edit now is safe: a stream holding under half the new cap evicts nothing when lowered.

The Event is recorded once per Job run, so roughly daily while the gap stands, because the finished Job is removed by its TTL and run again; Events themselves expire on the cluster’s event TTL (an hour by default), so between runs it can be gone, and the next run records it again. Read it with kubectl describe platformagent or kubectl get events -n kubeagents-system --field-selector involvedObject.kind=PlatformAgent.

EventWatcher is absent on a healthy install rather than True, deliberately. The operator can say it asked for a watcher, but nothing here checks that one is alive, and a permanently-True condition would read as a health signal it is not. Disabling the watcher is also not a Degraded state — it is a decision somebody made, and phase stays Ready. VolumesDropped follows the same shape: it exists while the spec carries a hostPath or watcher-token entry and a pass has rendered around it, and it is the render-side half of the hostPath and watcher-token refusals, which the admission webhook makes at admission on installs where it runs.

It is a claim about the Pod template the operator rendered, not about the Pod that is running. The controller server-side-applies the template and returns as soon as the API server accepts it; nothing waits on the rollout. So on the first pass of an operator carrying this behaviour over a CR that a previous one rendered with real hostPath mounts, the condition reads True while Pods from the previous revision still mount them — until the roll replaces them, or indefinitely if it stalls at progressDeadlineSeconds.

Ready does not close that window either: readyReplicas counts ready Pods across every ReplicaSet the Deployment owns, so one still-ready old Pod is enough for phase: Ready. The operator runs the gateway as a single replica (see availability.replicas above), so the strategy is always Recreate and the window is only as long as the replacement itself.

While the operator can see the roll is unfinished — the workload has not observed the applied template, or it counts Pods that are not on it — the message says so in a sentence of its own. A CR parked Degraded by A2AProvisionFailed or ShellSandboxKeysMissing carries it on the same terms: those two refusals render before they park, so that status write reads the gateway workload back to see whether the roll has finished.

Terminal window
$ kubectl describe platformagent platform-agent -n kubeagents-system
...
Conditions:
Type: EventWatcher
Status: False
Observed Generation: 3
Reason: DisabledBySpec
Message: Cluster event ingestion is disabled by spec.harness.eventWatcher.enabled=false. …

A deliberate pause is not a failure, and the condition says which it is. While spec.deployment.scaleToZero is true and the gateway Deployment has no ready replica, the phase reads Paused. Ready then reads False with reason ScaledToZero, and the message names the field and says how to resume. The pause is reported once the scale-down has converged: a replica still serving keeps the install Ready for the seconds the Deployment controller takes to remove it.

The pod scan still runs first. A crash loop or an unpullable image in the shell sandbox, the credential broker, the A2A gateway or the verifier parks Degraded, as on a running install, since those workloads are not scaled with the gateway. A workload the scan names no fault in but that has no ready replica (a failing readiness probe, a StatefulSet that is gone) keeps the phase Paused, and the message names it after the pause. Clearing the field returns the normal phases: Provisioning while the gateway starts, Ready once it is up. A gateway at zero replicas with the field unset is the start-up wait it always was, Provisioning with Waiting for deployment replicas to be ready.

With the A2A gateway’s election on, Ready follows the elected leader. That is the <agent>-a2a-gateway Lease holder, which alone binds the event relay. A standby reads Ready while the leader may not. So when some replicas are ready and the leader is not, the gateway counts as not ready. Ready reads False with reason Provisioning, naming the gateway Deployment and the leader pod.

  • Grace: a leader elected less than 30 seconds ago gets that long to bind, so a normal failover does not flip Ready. Ready can lag a stuck leader by up to 30 seconds.
  • No current leader: with no holder, a holder whose pod is gone, a holder that stopped renewing, or a failed read, the gateway counts by its ready replicas.
  • Unchanged: at one replica, or with the election off (the operator’s A2A_GATEWAY_ELECTION=false), the gateway counts by its ready replicas.

UniverseDomainMismatch returns before rendering workloads whenever spec.harness.universeDomain is malformed, is under googleapis.com, or disagrees with the host cluster’s GKE metadata server. Of the reasons that park phase: Degraded, ShellSandboxKeysMissing renders the stack in full and reports at the end rather than returning early, because the objects are wanted in place so the Pod starts by itself once the Secret appears.

A failed A2A provisioning Job parks the phase the same way with A2AProvisionFailed, naming the Job to inspect. That signal is prompt where the refusal is deterministic. The script exits 2 for a refusal a re-run cannot clear, the Job’s podFailurePolicy matches exit 2 with FailJob, and the Job fails from its first pod, so the condition is written in seconds. Any other failure (NATS unreachable, an unexpected command failure) matches no rule and still spends the backoffLimit: 20 retry budget, which is the slow path it used to take. While it retries, A2AProvisionRetrying names the Job and its failed-pod count, without changing the phase.

Two installs reach A2AProvisionFailed from opposite ends:

  • A fresh install looks healthy first: NATS 1/1, clients authenticating, while every stream read returns stream not found (err_code=10059). A fresh install with no streams and no Degraded condition is this, not a render fault.
  • An install that already has a bus, with every stream and bucket present, is refused by the script’s closing check when TASKS holds fewer consumers than tuning.maxSessions needs plus a reserve. The reserve is sized from the BRIDGE_CONCURRENCY a declared bridge sidecar sets, or, where the operator renders the bridge, from the operator’s A2A_BRIDGE_CONCURRENCY (10 when unset), up to 1024 workers, the bridge’s own queue capacity. So declaring a bridge sidecar with more workers, or raising A2A_BRIDGE_CONCURRENCY, on an install whose bus already exists reaches it too, and there the symptom is a working bus.

The script’s refusal quotes both numbers, the rule it read the count by, and whether it capped it. Where a sidecar’s entry took the bridge’s default because the render could not read it as a count (a valueFrom, or a reference to one), the condition’s message says the count is what the render read rather than what the CR declares, and states that rule. The script also prints a NOTE: on every run, refused or not, when an entry took the default or a sidecar carries envFrom with no BRIDGE_CONCURRENCY in env, a key the render does not read, since the budget may then be short for the real count.

A stream edit does not clear it: max_consumers is the one limit nats-server will not change on a stream that exists, answering an update that carries a different one with stream configuration update can not change MaxConsumers, and the rendered bus is pinned to nats:2.11. The message names the ways out that do work, and splits them by how they finish:

Way out How it finishes What it costs
Lower tuning.maxSessions until the budget fits the stream By itself: the edit re-renders the provision Job, whose name digests that render, so a new Job appears and runs with nothing else to do Fewer concurrent sessions
Where the CR declares a bridge sidecar with more workers than the bridge’s default of 2, declare it with fewer (a lower BRIDGE_CONCURRENCY, or none); or, where the operator renders the bridge, set the operator’s A2A_BRIDGE_CONCURRENCY to fewer workers (unset, the rendered bridge runs 10). The message offers this lever only above the default, and attributes the need to it alongside maxSessions wherever the declared count moved the reserve, one worker included By itself, the same way Fewer bridge workers
Delete the TASKS stream and let provisioning recreate it at the width the CR asks for Not by itself: nothing re-reads the bus until the Job runs again, so delete the Job to re-run it, or leave it and the 24h TTL will The 72h of task history that stream was holding

Deleting the Job before one of those ways out is taken (the two, or the three where the fewer-workers lever is offered) helps nothing: the same script refuses again against the same stream.

Recreating the stream costs one more step, and the order matters. Once TASKS is back, restart the A2A gateway (kubectl rollout restart deployment/<agent>-a2a-gateway), and the agent workload <agent>-gateway with it where a Hermes bridge sidecar runs. Deleting a stream deletes every consumer on it, and neither of those two durable readers re-creates one, so a gateway left running keeps accepting delegations and spawning session pods while relaying no events, the bridge dispatches nothing, and the CR reads Ready over both; session pods recover by themselves, which hides it.

A gateway restarted before the stream is back waits for it, not ready, and for its durable, which provisioning creates with the stream, then binds once both exist. Past five minutes of that wait, with BusProvisioned already True, the CR also reads Degraded with reason A2AGatewayWaitingForTasks until it binds. A bridge restarted early is less tidy: it waits for its durable but reports ready meanwhile, and if a task was in flight when the stream went, its startup sweep fails and the pod restarts until the stream is back. So restart the bridge’s workload after the stream is back.

The operator takes that step itself once TASKS is back after a loss it saw (BusStreamsPresent), whether a re-run or a fix by hand brought it back. It restarts whichever of the two has been running since before the loss, and the A2ABusClientsRestarted event names them. After a loss the operator didn’t see, such as one fixed between two polls, restart the two yourself.

The Degraded condition carries one reason at a time:

Reason What it means
InvalidGitRepoURL An invalid entry in spec.integration.forges or spec.integration.repositories, such as a namespace outside the provider’s grammar or a repository on a host its forge’s provider does not serve. Subsequent updates are rejected at admission until corrected.
CorruptManagedRepos Unparseable managed_repos JSON in the <agent>-gitops-state ConfigMap; GitOps disabled.
MinterPruningHeld A github entry in that ConfigMap’s managed_repos or context_repos that this release cannot read. The operator prunes no minter policy while it is listed, so a repository removed from the lists keeps its write policy until the entry is corrected or removed. Ready and the phase are left as the workload reports them.
A2ABusStreamsMissing BusStreamsPresent is False: streams or KV buckets the provisioning Job created are missing from the bus. The message is the condition’s, naming them and what the operator is doing about it. It follows BusStreamsPresent while Ready is parked on a refusal too, such as A2AProvisionFailed or ShellSandboxKeysMissing, and when the streams are back it gives way to SlackConnectionFailed (when SlackConnected is False), A2ABusServerOutsideMetaGroup (when A2ABusServersCurrent is False), or the resource, exec-tier, or admission refusal it outranked, or clears.
A2AGatewayWaitingForTasks With NATS up, the A2A gateway’s elected leader (the <agent>-a2a-gateway Lease holder, which binds the event relay) has not turned ready for 5 minutes since the latest of its start, its election and BusProvisioned turning True. A standby can read Ready meanwhile. Provisioning created TASKS, so the leader most likely cannot see it: a different NATS account, wrong credentials, or a mismatched JetStream domain. Its /readyz body on the metrics port names what it waits on. The phase is not changed for it. Ready follows the leader (What Ready reports), so it reads False while the leader waits. Cleared once the leader binds.
SlackConnectionFailed SlackConnected is False while Slack is enabled on the A2A gateway (two consecutive usage polls read kubeagents_a2a_gateway_slack_connected as 0). Check the <agent>-a2a-gateway pod logs for auth.test or Socket Mode errors, and verify bot/app tokens, proxy variables in spec.deployment.env, and proxy egress NetworkPolicy. Ready and the phase keep what the workloads report so a Slack outage does not take down the console, A2A doors, or gateway PDB. Follows SlackConnected while Ready is parked on a refusal too. When Slack connects, Slack is disabled, or the gauge is absent for two polls, it gives way to A2ABusServerOutsideMetaGroup (when A2ABusServersCurrent is False) or any spec refusal it outranked, or clears.
A2ABusServerOutsideMetaGroup A2ABusServersCurrent is False: a bus server has been outside the JetStream meta group for at least 5 minutes. With one stray the other servers hold quorum, so the bus serves but one more server down stops it. The message names the server and what the operator did: restarted it, or which guard holds that back. With more than one outside, it says to leave the pods as they are. With no meta leader agreed at all, the message says the bus can’t place or change streams. Ready is unaffected. Follows A2ABusServersCurrent while Ready is parked on a refusal too, and gives way to any spec refusal it outranked, or clears, when the servers are current again.
InvalidCredentialProxyResources A refused credentialProxy.resources override under spec.deployment; the proxy renders at the sizing profile’s row (the operator’s defaults under small) until it is corrected. Written when no higher-ranked Degraded cause is present.
InvalidAgentAPIAuthResources A refused agentAPIAuth.resources override under spec.deployment; the sidecar renders at the sizing profile’s row (the operator’s defaults under small) until it is corrected. Written when no higher-ranked Degraded cause is present.
InvalidShellSandboxResources A refused shellSandbox.resources override under spec.harness.experimental; the shell renders at the sizing profile’s row (the operator’s defaults under small) until it is corrected. Written when no higher-ranked Degraded cause is present.
InvalidCredentialProxyExec A positive credentialProxy.exec.replicas under spec.deployment on an agent whose name is longer than 36 characters; the exec tier is not rendered, and every command goes to the stateful broker until it is corrected. Written when no higher-ranked Degraded cause is present.
InvalidKanbanAdmission Effective kanban.admission memoryBudgetMiB (from spec.harness.tuning.admission.memoryBudgetMiB, or derived from spec.deployment.resources) is below workerRssCapMiB, so a single worker’s RSS cap exceeds the pod’s admission budget (and at sub-1536MiB budgets leaves zero spawn headroom once the gateway idles). The operator still renders the resolved values into managed-config.yaml and emits a Warning Event, leaving Ready and status.phase to workloads. Raise memoryBudgetMiB (or container memory request when memoryBudgetMiB is unset) to at least workerRssCapMiB, or lower workerRssCapMiB. Written when no higher-ranked Degraded cause is present.
RBACIncomplete Install skew, not a spec fault: the ClusterRole or namespaced Role bound to the operator denies a permission its RBAC markers declare, the shape of an image deployed ahead of its manifests. The message names the denied verbs and the fix. A denial marked (in namespace ...) is written on this agent alone: that namespace, the agent’s own or its profile namespace, lacks the operator’s namespaced Role and a RoleBinding to it. For the install’s profile namespace, delete any hand-made copy and run helm upgrade or make deploy; a namespace neither path renders into gets both by hand. While any other Degraded reason holds the condition the RBAC reason is not written; the operator’s log (RBAC self-check failed at startup, RBAC self-check result changed after) is the only trace.

BusCredentialsReady says whether every replica the callout Deployment asks for is ready, and therefore both serving an identity map and attached to the bus: its readiness probe answers 503 unless both hold. It is the claim about the callout as a whole, not the rule a dispatcher waits on. A workload dispatched before the callout can authenticate it is refused with an error indistinguishable from a bad credential, and one callout replica serving on the current spec is enough to prevent that. The operator’s own gates do not read it.

The gate the operator reads instead. The bus provisioning Job is not created until the callout Deployment’s status shows one ready replica on any template (its principal is authenticated by every replica, all of which serve the current map). The A2A gateway Deployment is not created until the callout Deployment’s status shows at least one replica that is both ready and on the current pod template (ReadyReplicas + UpdatedReplicas - Replicas >= 1). That count is read once the Deployment controller has observed the current generation, from a copy of the Deployment whose generation has reached the one the operator’s own apply of the callout returned in that pass. Once the gateway exists it is reconciled normally.

That gate is narrower than this condition on purpose. The callout’s replicas form a NATS queue group, so one serving replica answers every authorization request, and a callout whose second pod cannot schedule would otherwise withhold a first gateway indefinitely. The lower bound cannot read true while no current-template replica is serving, so a gateway created while this condition is False still has a serving replica to authenticate its sessions. Expect the two to differ: this condition reads False with 1 of 2 replicas ready while the gateway exists and dispatches.

The hold is not silent: the A2A gateway is one of the workloads Ready is a claim about, so while it is withheld by this gate the phase reads Provisioning and the Ready message names the Deployment.

Why the gateway’s creation is what waits. What waits on the callout is not the gateway’s own connection. The gateway is a static principal, NATS_USER=gateway with a rendered password, listed in auth_users and so exempt from the callout exactly as the Hermes bridge sidecar is. It is what the gateway spawns: a session pod authenticates with a projected token that only the callout can turn into a bus identity, so a gateway created while the callout is unready accepts delegations and spawns sessions that cannot connect.

That is the ordering this condition exists to enforce, and the gateway’s creation is the last moment the operator can enforce it. Creation only, so a callout that goes unready later does not freeze a running gateway’s spec, and does not orphan the session pods that carry an ownerReference to it.

The gate’s error directions are both false negatives, and each holds the gateway one more pass before the held reconcile’s requeue clears it. While a terminated callout pod is still counted, one ready replica on the current template reads as none. On the pass that changed the callout’s pod template, the operator’s cached copy of the Deployment may still be the one from before that change, which the gate refuses rather than trusting counts that describe the previous template.

Reasons and messages. Reason: CalloutServing (True), CalloutUnavailable, or CalloutAbsent. The messages differ in what they can name: CalloutServing gives the identity map version being served, the two CalloutUnavailable messages give the ready count against the count asked for, and CalloutAbsent gives neither, because there is no Deployment to read either from.

Ready is counted against spec.replicas, not against the pods that exist. The callout rolls at maxSurge: 1 over maxUnavailable: 0, so a healthy roll spends its whole duration with more pods than it wants, and a callout coming up spends its window with fewer. A condition comparing the two numbers to each other would call the first an outage and the second serving.

CalloutUnavailable also covers a spec change the Deployment controller has not observed yet, where the reported counts describe the spec before the roll; the message says so rather than reporting those counts as current. It does not assert that a named replica has observed a named map version, so a sub-second window after a re-render can report ready while a replica still serves the previous map.

When it is removed. Removed, not set false, only once the callout Deployment is gone, so the condition never describes a callout that is still running. It is re-derived from the callout Deployment on every exit from the reconcile, not at a point in its sequence. So a pass that parks Ready=False for an unrelated reason (a missing shell sandbox keypair, a refused spec.deployment, say) still reports it, rather than leaving it absent or, worse, leaving the last value standing while the callout it named goes away.

DispatcherJobMode says whether the profile dispatcher runs profile tasks as Jobs: unattended tasks, and confirmed changes at any tier. Job mode needs the dispatcher Job admission policy and its binding in the cluster as the chart renders them, the profile namespace selected by that binding, and the dispatcher holding its Jobs Role there. That Role grants create, read and delete on Jobs, and get on the DispatchJobTemplate objects it builds each Job from. Without it, the dispatcher refuses unattended tasks at admission (no-worker) and confirmed changes (change-needs-job). The operator also records a DispatcherJobPolicyMissing Warning Event on each pass the policy or the namespace selection fails, but Events expire; the condition stays.

Reasons.

Reason Status Meaning
InPlace True The last pass that settled Job mode found the policy and binding in place and granted the dispatcher its Jobs Role in the profile namespace.
PolicyMissing False The policy or its binding is missing, unreadable to the operator (Forbidden), or loosened. The message is the DispatcherJobPolicyMissing Event’s and names which.
NamespaceNotSelected False The profile namespace lacks a label the binding selects it by, so the policy does not hold there. The message is the Event’s.
NamespaceNotReady False The profile namespace is absent or lacks the chart’s markers, or the pass did not apply its network fence, which includes a failed fence write or a failed read of the namespace.
ForeignJobTemplate False A DispatchJobTemplate under one of the operator’s names in the profile namespace lacks this agent’s labels. The operator leaves it alone, and Job mode stays off for every profile until it is removed.
GrantFailed False Granting Job mode failed this pass (copying the CA bundle or the gitops state, writing the templates, applying the Jobs Role, or reading the profile namespace). The message carries the error.

Every False reason means the pass left the Job templates out of the dispatch config and revoked the dispatcher’s Jobs Role. If the revoke itself fails, the Role can still stand; the operator logs that error, and the condition keeps the reason that triggered the revoke. Jobs already running are left to finish.

When it changes. It follows what each pass does to the Jobs Role, written on the way out of the reconcile like BusCredentialsReady, so a pass that ends Degraded still writes it. A pass that changes nothing about the Role leaves it as it was: a read of the policy that fails for a reason other than NotFound or Forbidden (a timeout, throttling), or a pass that stops before the dispatcher step. So True describes the last pass that settled Job mode, not the cluster now: the operator does not watch the policy or its binding, so a policy removed since then shows on the next pass that reaches the dispatcher.

When it is removed. Removed, not set False, only by a pass that tore Job mode down or found nothing of it left. With the chart’s signal off, that is once the dispatcher’s Jobs, Job templates and Jobs Role are deleted. With no dispatcher image, it is once the dispatcher is removed. A pass that stops before that teardown (a refused spec, say) or whose teardown fails leaves the condition as it was, because the Jobs Role and the templates are still live.

Every install runs the A2A gateway. With no chat backend configured (neither spec.integration.googleChat nor spec.integration.slack enabled, no Microsoft Teams served by the gateway, no discord-bot Secret with a token key in the namespace, and no door armed on the operator) it runs on the console door alone (A2A_CONSOLE_DOOR=true, rendered on every gateway), so the web console’s chat pane has a gateway behind it, and taking a backend away leaves the same gateway running on the console.

Older operators withheld the gateway instead, or scaled an existing one to zero replicas, and wrote this condition with Reason: NoChatBackend. After the upgrade the next pass renders the gateway at one replica. A gateway that was at zero is scaled back on the same Deployment, the condition becomes WaitingForReplica, and Ready waits on the gateway; once a replica is ready the condition clears. Where the older operator never created the gateway, the condition clears on that first pass and Ready waits on the new gateway. Ready’s message, not this one, says what the replica is waiting on. A NoChatBackend condition on a gateway that is already ready clears on the next pass.

A discord-bot Secret created on a running install is not watched, so the gateway takes it on the next pass, within 15 minutes; kubectl rollout restart deployment/<agent>-a2a-gateway makes it immediate. Rotate the discord-bot token by updating the Secret in place, since deleting and recreating it can roll the gateway onto the console door alone if a reconcile lands in between. The running gateway picks the new token up by itself: DISCORD_TOKEN is in its secret-env digest, so a pass that reads the changed Secret rolls the pod (see Rotating a Secret rolls the pod), and kubectl rollout restart deployment/<agent>-a2a-gateway makes it immediate.

The render leaves the named hostPath or watcher-token entries and every mount naming them out of the Pod template the operator applies. Reason is HostPathVolumeDropped when a hostPath volume is dropped, and WatcherTokenVolumeDropped when only watcher-token entries are dropped. The message lists them by field and index, and on a spec carrying more of them than the controller’s 4096-byte list budget holds it lists as many as fit and counts the rest. Not Degraded: the Pod runs without them. It is a claim about that template and not about the Pod that is running, because nothing here waits on the rollout (the note under the conditions table).

It is written on whichever status the pass ends on, Ready or Degraded, because the drop happens at render and three of the reasons that park phase: Degraded render first. ShellSandboxKeysMissing is among them, which is where a chart-default install sits, and a chart-default install is one with no webhook in front of it.

The refusals that return before the render (ReservedServiceAccountName, ForbiddenVolumeMount, ShellSandboxCannotBeDisabled, UniverseDomainMismatch, RuntimeClassNotFound, EgressAllowlistRefused) neither write it nor clear it. No Pod is rendered on those passes, so the workload still running is whatever the previous pass left, and a condition written there would report the entries out of a Pod this operator never wrote. On an install rolled forward over a CR a pre-fix operator gave real hostPath mounts, that reads as the security property being satisfied while the live Pod still mounts them.

One already present is left exactly as it stands, because the pass that wrote it did render and that Pod is the one running. So while such a refusal holds, the message and the condition’s observedGeneration can both lag the spec until a pass reaches the render again. Remove the entries to clear it.

status.observedGeneration is the metadata.generation the status was last computed from, and the Ready condition, with any Degraded, EventWatcher or VolumesDropped condition written in the same pass, carries it in its own observedGeneration.

Degraded/RBACIncomplete is the exception: it is written when the set of denied permissions changes and left in place otherwise, so its observedGeneration is the generation at which that set last changed. VolumesDropped is the other: a refusal taken before the render leaves it untouched, so while one holds its observedGeneration is that of the last pass which did render.

A spec edit bumps metadata.generation at admission and leaves both behind until the next reconcile, so a Ready condition whose observedGeneration is below metadata.generation describes the previous spec, and kubectl wait --for=condition=Ready on its own can return on it. The field says the operator has processed that generation; it does not say the rollout it triggered has finished. Ready is still derived from replica counts, and during a rollout the replica satisfying it can be the previous one.

Ready is a claim about three workloads (the gateway, the shell sandbox and the credential broker), and about the whole A2A stack as well: the NATS StatefulSet, the auth callout Deployment, the provisioning Job’s first completion (recorded as BusProvisioned, after which the Job’s re-runs do not hold Ready), and the A2A gateway. An install without any of them serves no A2A request, and the message names whichever is missing.

That is also how the callout ordering gate becomes visible: while the operator holds a first gateway creation back for a callout replica to serve, the phase reads Provisioning and names the Deployment it is waiting on. The gateway runs on every install, on the console door alone when no chat backend is configured, so Ready always waits on it.

So to gate on a change, wait for the generation to be observed, then for the rollout of each workload, then for the condition:

Terminal window
gen=$(kubectl get platformagent platform-agent -n kubeagents-system -o jsonpath='{.metadata.generation}')
kubectl wait platformagent/platform-agent -n kubeagents-system --for=jsonpath='{.status.observedGeneration}'="$gen"
kubectl rollout status deployment/platform-agent-gateway -n kubeagents-system
kubectl rollout status statefulset/platform-agent-shell -n kubeagents-system
kubectl rollout status deployment/platform-agent-credential-proxy -n kubeagents-system
# the gateway runs on every install, on the
# console door alone when no chat backend is configured. The verifier is not
# part of `Ready` — a rollout of it should not flip a serving install to
# Provisioning — but a submission arriving while no verifier is ready is
# refused terminally, so an install that stays down reports it as the
# `A2AVerifier` condition, which a Ready CR can carry.
kubectl rollout status deployment/platform-agent-a2a-gateway -n kubeagents-system
kubectl rollout status deployment/platform-agent-a2a-verifier -n kubeagents-system
kubectl wait platformagent/platform-agent -n kubeagents-system --for=condition=Ready

A deployment runs several Hermes profiles from one pod: default (the Planning Agent front door), platform, and one cluster-* profile per managed cluster. The named profiles are each configured by an overlay merged into an image-built base at startup. The default profile is the exception: it takes the operator’s settings by two routes at once — an overlay merged into its config, and a read-only managed scope pinned over it.

Profile Delivery Who owns the file
default Image-built base, writable on the PVC + profile-default.overlay.yaml merged at startup + a narrow set of keys pinned read-only at /etc/hermes Agent owns the file, operator the pins
platform Image-built base + profile-platform.overlay.yaml merged at startup Image owns the base, operator the overlay
platform, with platformFrontDoor on The same two inputs, but the base is back-filled rather than force-synced — and the /etc/hermes pins land here too, because that mount is machine-global Agent owns the file, operator the overlay and the pins
cluster-* Image-built base, copied when the profile is scaffolded and back-filled at startup + profileclass-cluster.overlay.yaml, plus profile-<name>.overlay.yaml if one exists Image owns the base, operator the overlay
tse (optional, when enabled) Image-built base at /opt/tse-template, force-synced at startup when KUBE_AGENTS_ENABLED_PROFILES contains tse + profile-tse.overlay.yaml if one exists Image owns the base, operator the overlay

A cluster profile is the only one that can take two overlays: the class overlay carries tuning.cluster, which applies to all of them, and a plugin targeting one specific cluster produces a profile-<name> overlay for it as well. The class overlay merges first, so the per-profile file wins any conflict.

Why default is also pinned. The pins are the one change-control boundary the front door has: the agent’s own config file is writable, so without them a bad runtime edit survives a restart. (It is not a security sandbox — see the AgentPlugin trust boundary.)

What is pinned is narrow, on purpose. /etc/hermes is machine-global — one file for every profile in the pod, not just default — so it carries only what is identical for every profile and beyond the agent’s own repair:

  • model.*, platforms.*, approvals.cron_mode and display.platforms;
  • kanban.max_in_progress: the board is shared by every profile, and a burst of workers past it is lost to the OOM killer without a restart or an event;
  • kanban.admission: the dispatcher’s memory budget, worker cap, queue bound and fail-closed switch, from spec.harness.tuning.admission; the board is shared and an eviction is pod-wide, so no profile may admit past the pod’s request;
  • terminal.*: where the shell runs, one sandbox per Pod, reached the same way by every profile;
  • database.journal_mode, when the agent Pod has a runtime class: one data volume per Pod, and a corrupted database is found only after the sessions in it are unreadable;
  • security.allow_lazy_installs: pinned to false; every required dependency ships in the image, so runtime package downloads stay off across profiles and restarts;
  • sessions.auto_prune and sessions.retention_days, from spec.harness.retention: one period for every profile, which no profile can lengthen;
  • one hooks.outbound entry that posts tool calls and model requests to the bridge’s loopback activity endpoint, when the A2A bridge is in the Pod, rendered by the operator or declared, and runs the api executor: one endpoint per Pod, signed with a key from the A2A credentials Secret. A list is one leaf, so while that entry is rendered it replaces any hooks.outbound list a profile sets in its own config.yaml: those hooks do not fire.

The reasoning is that as long as a human can reach the agent (platforms) and the agent can reason (model), anything else it breaks it can be talked into fixing.

Everything else the operator owns for the front door goes in profile-default.overlay.yaml instead: plugins.enabled for AgentPlugins with no targetProfile, those plugins’ non-gateway config subtrees, and spec.harness.tuning’s default limits. Those are profile-shaped — pinning them machine-globally would hand the front door’s settings to every specialist — and they are all recoverable by an agent that can still talk and still reason. Nothing the operator renders appears on both routes. What appears on neither, and so stays the image’s alone, is each profile’s toolsets, mcp_servers and memory.

It is also the only profile whose config the running agent writes to: /sethome records the home channel there, the monitoring policy mints monitoring.install_id, and slash commands save preferences. Those two facts pulled in opposite directions, and the managed scope is what resolves them.

The rendering is published as the managed-config.yaml key of the <agent>-config ConfigMap and mounted read-only at /etc/hermes/config.yaml. Hermes treats that directory as an administrator layer and overlays it, per leaf key, on top of $HERMES_HOME/config.yaml at every load. Three things enforce it (hermes_cli/managed_scope.py):

  • load_config deep-merges the managed dict on top of the agent’s own;
  • save_config strips every managed leaf before writing, so a save cannot persist one;
  • hermes config set rejects a managed key by name.

So $HERMES_HOME/config.yaml stays an ordinary writable file — /sethome and the install id work — while every leaf the operator renders is authoritative and immutable at runtime. Whatever ends up in the PVC file, the operator’s value is what loads, so a restart always heals. Earlier shapes did not manage both: mounting the render over $HERMES_HOME/config.yaml made the path read-only and failed every runtime write (/sethome with a permission error, the rest silently), and merging it into the file at startup left every merged key mutable, so an agent that repointed model.base_url at nothing kept that across restarts.

Hermes builds the terminal for some turns, among them a scheduled run and the turn a kanban wake starts, from the profile’s own .env and config.yaml, so the managed terminal.* leaves do not reach them on their own. The entrypoint copies them into every profile’s .env at start-up and refuses to start while a profile still resolves something else — see Container entrypoint.

platforms.<platform>.home_channel is deliberately not pinned, so /sethome can still set it from chat. The platform credentials and endpoints that have no config.yaml equivalent are pinned through a companion /etc/hermes/.env, which Hermes applies last with override=True and refuses to let the agent overwrite — without that, a container env var would beat the pinned platforms.* leaf.

That file also pins values that are not credentials at all. The first is API_SERVER_KEY=cluster-internal-trusted, the non-secret loopback sentinel the Hermes API server on 127.0.0.1:8642 validates. It is pinned here because Hermes’ stage2 hook generates a random API_SERVER_KEY into $HERMES_HOME/.env whenever that file carries none, and the PVC .env is applied with override=True too — ahead of the container env, behind /etc/hermes. Unpinned, the gateway ends up validating against a value no caller has, and the credential proxy, the startup probe and every in-pod loopback call get 401 Invalid gateway API key. The container entrypoint warns at boot when this pin and the container env disagree.

The credential that guards the API from outside is API_SERVER_EXTERNAL_KEY, set from hermes.apiServerSecretRef; the sidecar authenticates the caller against it and swaps in the sentinel.

The second is HERMES_HOME_MODE=2770, the mode Hermes re-applies to $HERMES_HOME at every process start. The container env carries it too, but that is the lowest-precedence of the three layers, so a HERMES_HOME_MODE=0777 line the agent writes into the PVC .env outranks it and widens every directory Hermes secures on the shared volume.

The third is KUBEAGENTS_MODE, pinned to next until no supported agent image predates the removal of today, for an agent image older than the operator that still reads it. It is pinned because an absent key is a key the agent may write.

The fourth is KUBEAGENTS_SCOPE_FILE=/etc/kube-agents/scope.json, where the reconcile finds the spec.scope declaration. The container env carries it too, for the same reason as HERMES_HOME_MODE: a line the agent writes into the PVC .env would otherwise outrank it and hand the reconcile a declaration the agent authored. Its readers are agents/platform/scripts/cluster_agent_reconcile.py, which resolves it every hour, and fleet_scope_targets.py, which reads it when no reconcile snapshot answers, or when the last snapshot recorded no boundary, for these callers:

  • the front door’s roster (agents/chat/scripts/agent_roster.py), which reads the declared scope when it lists the agents;
  • the platform MCP server’s fleet_scope tool;
  • the Platform Agent’s upgrade-readiness-watch and upgrade-readiness-weekly-review jobs, which learn from it whether the install declares a scope before handing the readiness report script the resolved scope beside each project it reads;
  • the sa-role-watch job, which reads the IAM policy of each project in the resolved scope;
  • the onboarding inventory scan (agents/chat/scripts/bootstrap_scan_gate.py), which leaves the declaration’s excluded clusters out of the sweep it files.

The fifth is RECONCILE_PROJECT=, pinned empty. The reconcile reads that variable as the management project ahead of the metadata server, and a management project that changes identity retires the old one’s profiles, so a line the agent wrote into the PVC .env could otherwise re-point it and have two clean runs delete every profile of the real management project. Nothing in the operator or the chart sets the variable; the script treats the empty value as unset.

KUBEAGENTS_RESOLVED_SCOPE_FILE is pinned too, to /etc/kube-agents-resolved/resolved-scope.json: the scope publisher’s <name>-resolved-scope ConfigMap, mounted read-only into the agent container, which is where the helper scripts’ cluster lists come from. The container env carries it too.

On GKE, GKE_PROJECT_ID is also pinned, to spec.harness.projectID. The reconcile reads it as the management project when RECONCILE_PROJECT is empty, so it is pinned for the same reason. A kind install does not pin it, because the container env there carries no project.

KUBEAGENTS_DIAL_ADMINS names the Slack members who may change the autonomy dial on the Slack Home tab. It is pinned on every install from spec.deployment.env, keeping only the comma-separated entries shaped like a Slack member ID. Unset, it is pinned empty, which lets nobody change the dial. A value none of whose entries is a member ID is pinned as none, which also matches nobody. Session KV checks a dial change against it before it records one. Unpinned, a line the agent wrote into the PVC .env could name who may change what the agent may change. It is not in the container env.

The stall watch’s three knobs from spec.harness.stallWatch are pinned too: STALL_WATCH_EXCLUDE_NAMESPACES (a comma list), STALL_WATCH_MIN_AGE_MINUTES and STALL_WATCH_KINDS (a comma list, or all). They are pinned on every install, empty when the CR does not set them, and the watch reads an empty value as its default. Each one changes what the watch reads or when it alerts, so a line the agent wrote into the PVC .env could otherwise silence alerts for a namespace nobody excluded. They are not in the container env.

The earned-autonomy switches KUBEAGENTS_POST_MERGE_CHECK, KUBEAGENTS_AUTOMERGE and KUBEAGENTS_DIAL are pinned the same way, on every install, from spec.deployment.env, each normalised to a value it knows or off. They are not in the container env; the credential isolation reference describes them.

One consequence of the render is worth knowing: the managed overlay is a leaf-level merge, and a list is a leaf, so a list rendered here replaces the image’s rather than unioning with it — for every profile at once. That is why the render emits no lists at all today, and why adding one is the change to think hardest about.

Why the others get overlays. Their config.yaml is assembled at image build time by merging the shared defaults with that profile’s own overlay, content the operator does not have. A cluster-* config additionally carries a runtime cluster_identity stamp that the reconciler matches profiles to clusters by. Rendering either file in full would fork the source of truth and, for cluster profiles, strip that identity record.

Every overlay is a key in the one <agent>-config ConfigMap, so a change to any of them moves the config hash and rolls the pod. That restart is required, not incidental: the merge happens once at startup, so a live ConfigMap update without a restart would be a no-op. The managed key shares the ConfigMap and so rolls the pod too, though for it the restart is belt-and-braces rather than required — it is mounted as a directory, not a subPath, so the kubelet propagates updates and Hermes re-reads the file when its mtime or size changes.

Startup is not the only moment a merge happens. Onboarding a cluster scaffolds a new profile without changing the ConfigMap, so nothing rolls the pod; that profile applies the overlays itself as it is created. Without it a Cluster Agent created between two pod starts would run on Hermes’ own defaults however the CR is tuned.

Ordering. The entrypoint force-syncs each profile’s image-owned files first, then merges the overlays. The reverse order would silently erase every overlay on each restart. The default profile’s config.yaml is the exception to the force-sync: it is the agent’s own file, and a force-sync is exactly what would throw the runtime’s edits away. It is instead seeded from the image on a fresh volume, and thereafter only back-filled — keys the image declares and the live file has lost are restored, keys it already holds are left alone, and the plugins.enabled list gains the names the image’s list has and it lacks (below). Its overlay is merged after that back-fill, so the operator’s settings are not undone by it.

The platform profile’s config.yaml becomes a second exception under platformFrontDoor, and for the same reason: the gateway is homed there, so that file is now the one /sethome and the monitoring policy write to. It leaves the force-sync list and is back-filled from the image template instead, on exactly the terms default gets — keys the template declares and the live file has lost are restored, keys it already holds are left alone. Its overlay merges after that back-fill as it always did. Everything else the image owns in that profile — the persona files, cron/, skills/, governance/, hindsight/ — still force-syncs either way.

A cluster-* profile’s config.yaml is never force-synced: it carries the cluster_identity stamp the cluster reconciler matches the profile to its cluster by, and an overwrite would strip it. It is back-filled from the cluster template instead, on the same fill-only terms — keys the template declares and the live file has lost are restored on a pass, and cluster_identity and every value the file already holds are left alone, except the retired memory.provider key, which the entrypoint drops.

A cluster profile takes these steps, the persona copy, the skills/ replace, the shared plugin refresh, the back-fill and the repairs below, on a pass. A pass runs only when the profile’s .scaffold-stamp does not match the image: the first start on a new image, a start after a pass that warned, or one after the stamp was deleted.

The entrypoint hashes what a pass reads from the image once per start and stamps each cluster profile it refreshed without a warning. On a same-image restart a stamped profile is left as it is, hand edits included. Delete profiles/cluster-*/.scaffold-stamp to send a profile through the pass on the next start. Without the stamp script every profile is refreshed and none is stamped.

The remote MCP server entries inside both of these files do follow the image (see the config reference). The back-fill recurses only through mappings and a server’s args is a list, so it would otherwise stay as the image that scaffolded the profile spelled it for the life of the volume.

The entrypoint repairs it in each cluster profile’s config.yaml on a pass through the profile, and in the platform profile’s at every start when it is the front door: for a server the template routes through the credential proxy’s MCP relay (gke and developer_knowledge), the whole args list and the MCP_REMOTE_BEARER_FILE entry in its env become the template’s, so a hand edit to either is reverted at the next pass or start; for any other remote server the image ships, only the User-Agent header value is set. Nothing else in the file is changed.

The plugins.enabled list follows the image for the same reason: it is a list, so the back-fill never enters it. In the default, platform and every cluster profile it gains the names the image template’s list has and the live list lacks, appended after the agent’s own. Nothing is removed, so a name the agent dropped on purpose comes back, which is the price of a plugin that ships enabled. Without it a volume scaffolded before a plugin existed would carry the plugin into every image and never load it.

Merge semantics. These differ between the two mechanisms, which is the easiest thing to get wrong here. In a startup overlay — every profile including default — maps merge recursively, lists union, and scalars are replaced by the overlay; precedence, lowest to highest, is Hermes built-in default → the value committed in agents/<persona>/config.yaml → the operator overlay from the CR. In the managed scope the merge is per leaf key, so a list replaces rather than unions, and it wins over everything else because it is applied at every load rather than once at startup.

Two writers, two authorities. Both spec.harness.tuning (operator policy) and an AgentPlugin’s spec.config (plugin-supplied) land in the same overlay file, but not with equal rights. A plugin’s config is restricted to approvals, platforms, and platform_toolsets, and for an untargeted plugin only platforms reaches the machine-global managed scope — the rest goes to the front door’s overlay. The agent subtree holding the execution limits is dropped from plugin config and writable only by the operator. That is a coordination boundary rather than a security one — plugin code executes in-process and could change these at runtime — but it keeps limits with board-wide consequences in one reviewable place.

Credentials reach the agent pod as environment, through SecretKeyRef, and a container’s environment is fixed for the life of the pod: editing the Secret changes nothing a running container can see. So the operator does for Secrets what the config hash does for ConfigMaps. It reads the Secret keys the rendered pod spec consumes as environment, digests them with an HMAC-SHA256 keyed by the UID of each Secret they come from, and stamps the result on the pod template as kubeagents.x-k8s.io/secret-env-hash. Rotating one of those keys moves the digest, which changes the template, which rolls the pod onto the new value.

Three pods are stamped: the gateway, the credential proxy, and the A2A gateway, which on a Slack-armed install is the pod that reads the Slack tokens. The A2A auth callout also reads Secrets as environment (its bus password and its issuer and encryption seeds) but is not stamped, so after rotating one of those, run kubectl rollout restart deployment/<agent>-a2a-callout.

The digest is keyed because the annotation is readable by anyone who can read pods. An unkeyed hash would let that reader verify guesses at a low-entropy value offline, whereas the UID is on the Secret object, and reading it takes the same get on the Secret that reads the values. (A UID also travels on Events and owner references that point at the Secret; the operator creates neither.)

Five details decide whether you will see it happen.

  • Within fifteen minutes, not immediately. The operator does not watch Secrets — it holds no list or watch on them, deliberately — so nothing wakes a reconcile when one changes. A healthy pass instead asks to be requeued after secretEnvReprobeInterval, and the re-read happens then. kubectl rollout restart deployment/<agent>-gateway still works and is immediate.

  • Only what the pod reads as environment. A key no container references is not in the digest, and editing it rolls nothing. Neither does a key the pod mounts: the kubelet refreshes a mounted Secret file in place, so hashing one would roll a pod over a change it was going to see anyway.

    The gateway mounts exactly one item of platform-agent-secrets that way, SANDBOX_SSH_PRIVATE_KEY, and because an init container copies it into an emptyDir at pod start, rotating that one key still needs a restart — as it did before this change. The shell sandbox mounts its own <agent>-shell-authorized-keys, and deliberately never names platform-agent-secrets at all.

    The A2A gateway has a second such mount: on a Slack-armed install it mounts the a2a-slack-principal-map Secret, and the gateway reads that map once, when it starts, so an edit to it needs kubectl rollout restart deployment/<agent>-a2a-gateway.

  • Whichever Secret the pod actually names. The refs are read off the rendered pod spec, so a CR that supplies its own SecretKeyRef pointing at a different Secret is covered without naming it anywhere.

  • A missing Secret is not an error. It digests to a marker, so creating the Secret later moves the digest and rolls the pod, and an install whose credentials arrive after the agent behaves the way you would expect. A Secret the operator cannot read for any other reason — an API error rather than a NotFound — keeps the digest the last good pass computed, so a blip neither rolls the pod nor stops the rest of the reconcile.

  • Recreating a Secret rolls the pod once, even with the same values. The digest’s key is built from the UID of every Secret it reads, which an in-place edit, kubectl apply, or a patch keeps and a delete-and-create (including kubectl replace --force) replaces. A metadata-only write — a new label or annotation — changes neither the UID nor the values and rolls nothing.

The roll is a stop-start on the gateways and an active-standby surge on auto-sized brokers. At the default single replica the gateway’s update strategy is Recreate. <name>-credential-proxy also uses Recreate for default and fixed sizingProfile settings, stopping the old pod before starting the new one (up to fifteen minutes on a cold image pull). Under sizingProfile: auto (in-cluster), <name>-credential-proxy instead uses active-standby RollingUpdate after its first migration from pre-standby pods. Expect one such restart per agent the first time an operator carrying this change reconciles: the annotation is new, so the first pass adds it once.

The A2A gateway joined the stamped pods later, so the first operator that stamps it restarts each A2A gateway once in the same way. An operator upgrade that changes how the digest is computed restarts each stamped pod once in the same way.

  • On create/update, the controller ensures the Deployment, Service, ServiceAccount, and ConfigMaps match the spec.

  • On delete, it garbage-collects owned resources (note that litellm-policy is owned by Deployment/litellm rather than PlatformAgent, so deleting PlatformAgent preserves litellm-policy while LiteLLM is still running to prevent fail-open egress).

  • The admission webhook (behind cert-manager) validates the spec before it’s persisted. It enforces at most one PlatformAgent per cluster, forbids sensitive environment variable overrides (API_SERVER_KEY, HERMES_HOME) and privileged containers/volumes (hostPath), and requires each imagePullSecrets entry to name a Secret. It refuses a spec.storage.size lower than the size the stored object resolves to (the 50Gi default when it sets none), not above zero or above 64Ti. It also acts as a name-based tripwire against obvious privileged service account names (cluster-admin, system:admin).

    The hostPath and watcher-token refusals have a second layer in the controller: a hostPath or watcher-token entry that reaches the reconcile anyway — the Helm chart ships the webhook off, and one enabled through the chart fails open at its default failurePolicy: Ignore — is left out of the Pod template at render with every mount naming it, and the VolumesDropped condition reports it. Note that full RBAC least-privilege enforcement is handled by controller- and pipeline-level policies rather than the admission webhook.

  • The webhook admits that one PlatformAgent in the operator’s own namespace only. A PlatformAgent created in any other namespace is refused on metadata.namespace: the Role that carries the operator’s write verbs is bound in the operator’s namespace and its profile namespace only (Security and IAM). One that already exists elsewhere, created while the webhook was off, is updated with a warning naming the two namespaces that need the Role. It reports RBACIncomplete until they hold it.

  • The webhook also refuses a user volume or mount on spec.deployment that would carry the A2A bus credential or the credential proxy’s watcher token by a route other than the operator’s own projection. The refused shapes are the reserved volume names a2a-bus-token and watcher-credential-proxy-token, a serviceAccountToken projection for the bus audience (a2a-bus) or watcher audience (kubeagents-credential-proxy-watcher) under any name, and a secret volume or projected secret source naming one of the Secrets the operator renders with bus credentials or keys in them (<name>-a2a-nats-creds, <name>-a2a-nats-config, <name>-a2a-callout-keys, <name>-a2a-nats-tls, <name>-a2a-nats-ca, <name>-a2a-task-signing-key, <name>-a2a-session-signing-key).

    The render also leaves the same entries, and every mount naming them, out of the Pod (reporting the watcher-token ones on VolumesDropped). That happens whether or not admission ran; it is not a fallback for a skipped webhook, though a skipped webhook is when it is the only thing left. env references to those Secrets are not checked. This is a guard against misconfiguration rather than a boundary between the containers of one Pod, since a ServiceAccount token is pod-scoped.

  • The kubeagents.x-k8s.io/prevent-deletion: "true" annotation on a PlatformAgent blocks deletion of the resource via the validating webhook (ValidateDelete). This serves as an accidental-deletion guardrail rather than an authorization control — ValidateUpdate does not block removing the annotation, so any principal with update permissions can patch the annotation off before deleting.

  • The kubeagents.x-k8s.io/enable-litellm-network-policy: "false" annotation on a PlatformAgent opts the shared litellm-policy out of operator reconciliation and deletes any managed copy without affecting the agent pod’s own NetworkPolicy. Note that deleting the managed policy leaves LiteLLM unselected (fail-open) unless a replacement NetworkPolicy is managed out-of-band.

  • The kubeagents.x-k8s.io/otlp-collector-namespace annotation sets the collector namespace for litellm-policy when LiteLLM exports to an in-cluster collector whose namespace cannot be derived from spec.telemetry.otlpEndpoint.

  • The kubeagents.x-k8s.io/litellm-upstream-egress annotation adds one egress rule to litellm-policy, to the model server an openai_compatible gateway calls. Its value is compact JSON in one of two forms: {"namespace":"models","port":8000} admits that namespace on that TCP port (for an in-cluster Service, the server pod’s port), and {"cidrs":["10.20.0.0/24"],"port":443} admits those ranges on that port.

    port is 1 to 65535, namespace a DNS-1123 label, and cidrs holds 1 to 50 entries, each no wider than /12 (IPv4) or /48 (IPv6) and none reaching 169.254.0.0/16, fe80::/10 or a metadata address. A value that breaks any of these, sets both forms or neither, or carries an unknown field is ignored: the operator logs Ignoring invalid annotation value with the reason, adds no rule, and the reconcile carries on. Inference gateway covers how the chart derives the value from litellm.openaiCompatible.

  • The kubeagents.x-k8s.io/network-policy-enforcement: absent-accepted annotation is stamped by the Terraform composition when an install onto an existing cluster proceeds without NetworkPolicy enforcement, and a direct Helm install can set it through platformAgent.annotations. The operator reads it: the A2A console requires NetworkPolicy enforcement, so it runs no <agent>-a2a-console and the PlatformAgent reports A2AConsole False (NetworkPolicyNotEnforced). Installing without NetworkPolicy enforcement says what it means.

  • Under the Helm chart, platformAgent.annotations is the route to these annotations. The chart stamps three of them itself: enable-litellm-network-policy from litellm.networkPolicy=false, otlp-collector-namespace from a non-empty telemetry.collectorNamespace, and litellm-upstream-egress from litellm.openaiCompatible when the provider is openai_compatible and the server needs a rule. When it does, an entry that disagrees with the value fails the render — see PlatformAgent annotations in the chart README.

  • The Helm chart renders and applies the CR (the install engine drives it through terraform apply); you can also edit it directly with kubectl edit.