ChatOps
Chat is the harness’s primary interface — for requests from humans and for the unprompted messages the harness raises itself (Proactive alerts). The interactive channels shipping today are Google Chat (the reference channel; enable with the installer’s --enable-google-chat) and Slack (enable it in the installer’s chat menu, or with --enable-slack). Both are opt-in and default to disabled. An experimental Microsoft Teams Bot Framework outbound relay (spec.integration.teams, below) also ships: it delivers the agent’s replies and posts, and an inbound receiver, off by default, takes the messages people type in Teams (Microsoft Teams app setup). Proactive alerts and reports reach a Teams home while the A2A gateway serves Teams, which is the default.
Both channels terminate at the Planning Agent — the default Hermes profile in the agent pod, and the only profile that receives chat ingress. It knows which specialists exist because the roster is injected into every turn by the agent_roster plugin (its router MCP tool list_agents re-reads the same list on demand). It files the work as a card on the shared kanban board (kanban_create), assigned to the specialist that can execute it. Results come back on their own: the gateway posts each completed card’s answer into the thread verbatim, and the Planning Agent handles the hand-off and anything that blocks or fails.
The Platform Agent does the actual infrastructure work as a delegated kanban worker, and per-cluster Cluster Agents handle single-cluster runtime debugging; neither receives chat directly. A user still sees a single conversational agent regardless of channel — the delegation is visible only as progress updates in the thread. The design of record for this coordination model is docs/designs/agent-communication.md.
On a large fleet the roster counts the Cluster Agents by project and location instead of naming each, and the Planning Agent looks a named cluster’s agent up with list_agents before it files the card. The switch is the number of Cluster Agents, above KUBEAGENTS_ROSTER_SUMMARY_THRESHOLD, 20 unless set. A fleet of four Cluster Agents never reaches it. Set the variable in the chart value platformAgent.deployment.env, or in the PlatformAgent CR’s spec.deployment.env on an install that no chart manages; a value that is not a whole number keeps the default, and changing it rolls the agent pod.
platformAgent: deployment: env: - name: KUBEAGENTS_ROSTER_SUMMARY_THRESHOLD value: "100"Google Chat terminates at the A2A gateway: the Chat app, topic and subscription, pulled through the credential broker by the gateway, with the allowedUsers list deciding who is answered. Proactive alerts and scheduled reports reach the home channel through the gateway. The gateway posts them there as new threads or as replies in those threads. A reply a person types in one of those threads starts a new conversation rather than continuing the investigation that raised the alert.
The reports of the cards a triage files reach the alert’s thread the same way, and so do the answers of the cards the agent files for a question you asked it in chat. They post in the thread or DM you asked in, whether or not a home channel is configured (a home channel that is set but is not a space name turns this off too). Either way there are two differences from delivery through a Hermes chat platform. A card’s progress is one plan message the gateway edits in place with KAGE_SLACK_UX on, and a message per note with it off. A file the card produced is not attached. The design of record is docs/designs/spec-chatops-gateway.md.
Google Chat
Section titled “Google Chat”Google Chat is the reference channel. Setup is automated by the install: the chat-pubsub Terraform module provisions the backend when Google Chat is enabled (the installer’s --enable-google-chat, or enable_google_chat = true in terraform.tfvars). Each question you send the app in a DM is answered in its own thread, and a reply in that thread continues it, as on Slack.
How it’s wired
Section titled “How it’s wired”- A Pub/Sub topic and subscription are created in the target GCP project.
- Your Google Chat app (configured separately in the Chat API console) publishes events to the topic. A GCP project holds only one Chat app, so a project already running one cannot also run this — see Prerequisites.
- The A2A gateway pulls the subscription through the credential broker and publishes each message as a task on the bus; the Planning Agent answers it through the
hermes-bridgecontainer in its pod (How a chat question is answered).
Allowed users
Section titled “Allowed users”Google Chat ingress is gated by spec.integration.googleChat.allowedUsers (a list of user emails, collected by the installer as ALLOWED_USERS). Leaving it empty allows everyone the Chat app is visible to. A sender not on the list gets one notice and nothing else (Which messages it answers).
Home channel
Section titled “Home channel”spec.integration.googleChat.homeChannel on the PlatformAgent is the space an alert-driven report lands in when there is no thread to reply into. Set GOOGLE_CHAT_HOME_CHANNEL in install.env, pass --google-chat-home-channel, or set the field on the PlatformAgent resource. Left unset, the gateway learns the home space from the first mention (below). Until it has one, alert-driven reports have nowhere to go until the digest below. The investigation still runs (and still opens its remediation PR when a GitOps repository is configured), so the only visible symptom is silence in chat.
The operator hands the field to the A2A gateway, which posts the agent’s proactive messages to that space and nowhere else, and /sethome does not reach it. The field must name a space (spaces/<id>); a malformed value turns the agent’s unprompted Google Chat posts off. With no home space, the PlatformAgent carries the HomeChannelUnset condition and the installer warns before it applies.
With the field unset and spec.integration.googleChat.homeChannelPolicy auto (the default), the first top-level mention of the agent in a named space makes that space the home channel. A direct message or a group chat never does, and neither does a reply inside a thread or a command. The gateway checks the space first: the app is a member, and the space does not admit people outside your organization. It then posts one line in that thread saying so, and proactive posts follow within about a minute with no pod restarted.
manual turns the learn off, so homeChannel alone decides. A set homeChannel wins over a learned space. To move a learned space, set the field. To forget it, remove the gchat keys from the <agent>-home-channel ConfigMap and mention the agent again. Both platforms share that ConfigMap, so deleting it forgets Slack’s learned channel too (the learned home channel has the record).
The agent sends home posts to each platform on the gateway that has a home channel. A channel or space the gateway learned counts. When no platform has one, the gateway refuses them and keeps each platform’s posts apart, up to fifty for thirty days. It posts one digest once that platform’s home channel is set.
What it looks like end to end
Section titled “What it looks like end to end”How a chat question is answered follows one question from the gateway’s ingress line to the card’s report in the thread. In short:
- User DMs the app or @-mentions it in a space.
- Chat sends the message event to the topic; the gateway pulls it from the subscription and publishes it as a task, and the
hermes-bridgecontainer runs it as a Planning Agent turn. - The Planning Agent picks the right specialist from the injected roster and files a kanban card with the full request context (
kanban_create). The two questions the roster answers itself, which GCP projects are in scope and where the host cluster is, get a direct reply and no card. - The gateway’s kanban dispatcher spawns the specialist — for infrastructure work, the Platform Agent (
hermes -p platform) — which runs the tool loop and completes the card with a one-linesummaryand the full answer inresult. A card filed from chat goes ahead of background triage, and one worker slot is held for it (Why dispatch is capped by default). If it has to wait anyway, the thread says⏳ Queued: the system is busy. Your request will start when a worker frees up.and the specialist’s progress joins that message once it starts. The wait is bounded: afterspec.harness.tuning.admission.queueBoundSeconds(600 s by default) the dispatcher blocks the card with kindcapacity, the queued line settles as stopped, and the Planning Agent replies in the thread with the reason and the alternatives. - The gateway posts the card’s progress into the thread (one plan message edited in place with
KAGE_SLACK_UXon, a message per note with it off) and then its report. The Planning Agent is woken for none of it; it is woken when a card blocks or fails.
A file the card produced is not attached: Chat’s media.upload refuses app authentication, so an install reaching Chat through the credential proxy can never produce a native attachment, and the gateway posts the report without it.
Session metadata
Section titled “Session metadata”Every Chat message carries session context (space, user, thread) that flows through Hermes and out as OpenTelemetry spans. The full trace is documented in docs/designs/gchat-session-metadata-data-flow.md.
A Google Chat app in another GCP project or organization
Section titled “A Google Chat app in another GCP project or organization”When your Google Workspace domain lives in a different GCP organization or project from the GKE cluster, set CHAT_PROJECT_ID (--chat-project-id in install.sh, or chat_project_id in terraform.tfvars) to the GCP project that hosts the Google Chat app.
Google Chat authenticates outbound spaces.messages.* API calls by the calling service account’s owning GCP project, so a service account in the GKE project cannot post as a Chat app registered in the Workspace project. Across GCP organizations, Domain Restricted Sharing (iam.allowedPolicyMemberDomains) on the Workspace project also blocks granting roles/pubsub.subscriber on the Chat Pub/Sub subscription directly to kubeagents-platform-gsa@<project_id>.iam.gserviceaccount.com. In the other direction, the GKE organization’s policy typically blocks granting roles/iam.workloadIdentityUser to a service account from the Workspace organization.
When CHAT_PROJECT_ID differs from PROJECT_ID, the install provisions around both constraints:
- It enables
chat.googleapis.com,gsuiteaddons.googleapis.com, andpubsub.googleapis.cominCHAT_PROJECT_IDinstead of enabling the Chat and Workspace Add-ons APIs inPROJECT_ID. - It creates a dedicated service account
kubeagents-chat-gsa@<chat_project_id>.iam.gserviceaccount.cominCHAT_PROJECT_ID, and bindsroles/pubsub.subscriberandroles/pubsub.vieweron the Chat subscription to that service account (same-org binding insideCHAT_PROJECT_ID). - It grants
kubeagents-platform-gsa@<project_id>.iam.gserviceaccount.comroles/iam.serviceAccountTokenCreatoronkubeagents-chat-gsa@<chat_project_id>.iam.gserviceaccount.comas a service-account resource. - It sets
spec.integration.googleChat.projectIdandspec.integration.googleChat.serviceAccountEmailon thePlatformAgentresource. The operator passesGOOGLE_CHAT_SERVICE_ACCOUNTto the credential broker, whoseGoogleChatRelayimpersonateskubeagents-chat-gsa@<chat_project_id>.iam.gserviceaccount.comfor both Chat API calls and Pub/Sub subscription pulls.
When the identity running install.sh or terraform apply cannot administer CHAT_PROJECT_ID, set CHAT_MANAGE_PROJECT=false (--chat-manage-project=false, or chat_manage_project = false in terraform.tfvars). The install then creates nothing in CHAT_PROJECT_ID and still wires projectId and serviceAccountEmail into the PlatformAgent resource. Have an administrator of CHAT_PROJECT_ID run these commands before configuring the Chat app in the console:
CHAT_PROJECT_ID="your-workspace-chat-project"CHAT_PROJECT_NUMBER="$(gcloud projects describe "${CHAT_PROJECT_ID}" --format='value(projectNumber)')"GKE_PROJECT_ID="your-gke-host-project"AGENT_GSA="kubeagents-platform-gsa@${GKE_PROJECT_ID}.iam.gserviceaccount.com"CHAT_GSA="kubeagents-chat-gsa@${CHAT_PROJECT_ID}.iam.gserviceaccount.com"CHAT_TOPIC="platform-agent-chat-events"CHAT_SUB="platform-agent-chat-events-sub"
gcloud services enable chat.googleapis.com gsuiteaddons.googleapis.com pubsub.googleapis.com \ --project="${CHAT_PROJECT_ID}"gcloud beta services identity create --service=gsuiteaddons.googleapis.com --project="${CHAT_PROJECT_ID}"gcloud beta services identity create --service=chat.googleapis.com --project="${CHAT_PROJECT_ID}"
gcloud iam service-accounts create kubeagents-chat-gsa \ --project="${CHAT_PROJECT_ID}" \ --display-name="Platform Agent Google Chat Service Account"gcloud iam service-accounts add-iam-policy-binding "${CHAT_GSA}" \ --project="${CHAT_PROJECT_ID}" \ --member="serviceAccount:${AGENT_GSA}" \ --role="roles/iam.serviceAccountTokenCreator"
gcloud pubsub topics create "${CHAT_TOPIC}" --project="${CHAT_PROJECT_ID}"gcloud pubsub subscriptions create "${CHAT_SUB}" \ --topic="${CHAT_TOPIC}" --ack-deadline=60 --project="${CHAT_PROJECT_ID}"
gcloud pubsub topics add-iam-policy-binding "${CHAT_TOPIC}" \ --project="${CHAT_PROJECT_ID}" \ --member="serviceAccount:chat-api-push@system.gserviceaccount.com" \ --role="roles/pubsub.publisher"gcloud pubsub topics add-iam-policy-binding "${CHAT_TOPIC}" \ --project="${CHAT_PROJECT_ID}" \ --member="serviceAccount:service-${CHAT_PROJECT_NUMBER}@gcp-sa-gsuiteaddons.iam.gserviceaccount.com" \ --role="roles/pubsub.publisher"gcloud pubsub subscriptions add-iam-policy-binding "${CHAT_SUB}" \ --project="${CHAT_PROJECT_ID}" \ --member="serviceAccount:${CHAT_GSA}" \ --role="roles/pubsub.subscriber"gcloud pubsub subscriptions add-iam-policy-binding "${CHAT_SUB}" \ --project="${CHAT_PROJECT_ID}" \ --member="serviceAccount:${CHAT_GSA}" \ --role="roles/pubsub.viewer"See Security and IAM for the identity boundary and lifecycle.
Slack is opt-in. Enable it in the installer’s chat menu, where the installer prompts for the token values below, or pass --enable-slack with the tokens as flags.
How it’s wired
Section titled “How it’s wired”- The installer’s Slack interview collects
SLACK_BOT_TOKEN,SLACK_APP_TOKEN,SLACK_ALLOWED_USERS,SLACK_HOME_CHANNEL, andSLACK_HOME_CHANNEL_NAME; the chart stores the tokens in the credentials Secret and wires the CR’sslacksection. - Slack app setup covers creating the app, its tokens, the allowlist and how to verify.
Slack terminates at the A2A gateway, on the same app and tokens, over Socket Mode (no public webhook required), with or without Google Chat. The Hermes Slack listener and the credential broker’s Socket Mode relay are not rendered, so one app has one Socket Mode consumer. The slack field of spec.integration has the detail.
Who is answered is decided by the same allowedUsers list, as on Google Chat: a sender must be on the list (or the list must be empty, which allows all), and one who is not is dropped with a notice. A member of another workspace, posting in a channel shared with yours through Slack Connect, is served only when the list names them as T…:U… (their workspace ID, a colon, their member ID); an empty list serves no such member. The gateway’s user_id principal map (the a2a-slack-principal-map Secret) is optional: a sender it names is attributed by the identity it maps them to, and any other admitted sender by their Slack member id.
Proactive alerts and scheduled reports reach the home channel through the gateway, and the gateway takes a single bot token. When the agent sends a structured message beside its answer (a report’s headline and rows, a question with its choices, the plan of the cards it filed), the gateway lays it out in Slack. That layout is the headline in bold, the rows with their severity, a collapsed section for the detail, buttons, and a coloured side bar; a message Slack cannot show posts as its text instead. A click on a choice button answers as your reply (below); a link button opens its page. The design of record is docs/designs/spec-chatops-gateway.md.
The gateway draws the interactive parts itself, from what the agent’s messages carry. Your message gets the reaction for its kind of ask (the emoji listed under Reactions), ⏸️ while the work waits on you and ❌ if it failed. The kind comes off when the answer posts, on the message that asked for the work. That holds even when its cards finish after you have asked something else, as long as each card sent its first marked message before you asked again. The gateway only ever removes its own reactions.
A button on a question, or the one next step an answer offers, is your reply. Clicking it sends the button’s answer as your message in the thread, checked against the allowed-users list like a typed one, so a click from someone the gateway would not answer changes nothing. The question then loses its buttons and shows ✓ <your name>: <the button>, by your Slack display name, never an @-mention.
A reply you type in the thread instead answers it the same way with your reply’s first words. The exceptions are stop, a status question or a short question about progress (such as “how is the upgrade doing”), /session and a delegate … request. A question is answered once, by the first click or reply. A next step an answer offers is not a question, so a reply you type leaves its button in place.
Slack shows Working… on the thread from your message until the work, the agent’s cards included, has settled, paused while it waits on you, and the thread is titled after your first ask, up to its first question. Opening a new assistant thread, or the bot’s Messages tab on an app using agent view, shows the three suggested prompts listed under Agent view.
These need the app to hold reactions:write, users:read and assistant:write, to subscribe assistant_thread_started (and app_home_opened for agent view), and to have interactivity on. The gateway’s manifest (Slack app setup) has all of them. So does the manifest that hermes slack manifest prints, except that with --no-assistant it lacks assistant:write, the assistant view and assistant_thread_started. On an app built with only the scopes the gateway needs to read and answer messages, add them and reinstall the app. Otherwise the reactions, the answered line, Working… and the prompts silently do not appear, while the answers still arrive. A button on a message posted before a gateway restart still answers when clicked, but a reply typed under it leaves its buttons in place.
Allowed users
Section titled “Allowed users”Slack ingress is gated by SLACK_ALLOWED_USERS, a comma-separated list of Slack member IDs such as U0123ABCD, matched exactly: an email or display name matches nobody. Slack app setup says how to find a member ID. The A2A gateway answers a message from a member not on the list once, with a notice naming the member’s ID, so an admin can add it. Leaving the list empty allows every member of the workspace (the operator sets SLACK_ALLOW_ALL_USERS=true in that case), which in a shared workspace lets anyone there drive the agent.
Slash commands
Section titled “Slash commands”The gateway answers no registered slash command; it reads its own two, /session and /feedback, from the message text (What the gateway changes on Slack).
Until you do, a typed /hermes <subcommand> arrives as an ordinary channel message rather than a command. The legacy_slash_commands plugin on the Planning Agent profile unwraps that form before the gateway resolves it, so /hermes sethome behaves as /sethome either way — registering the slashes adds Slack’s autocomplete, not the behaviour. The plugin’s README is the design of record.
/new (alias /reset) starts a fresh session and history, after the gateway asks the user to confirm. Asking the Planning Agent in words to reset the chat gets that command named back: the agent cannot clear a conversation itself and does not claim to. /undo is disabled on this profile, because rewinding the chat reverses nothing a specialist has done.
Agent view
Section titled “Agent view”With KAGE_SLACK_UX on, the default (see Reactions for turning it off), the Slack bot offers three suggested prompts: is anything unhealthy in my clusters right now, what’s on the board, and which clusters are behind their release channel. Tapping one sends it as the user’s message. Slack shows them when a user starts a new assistant thread or, on an app using agent view, opens the bot’s Messages tab. An assistant thread that already exists, a channel mention, and an app whose manifest carries neither view (one generated with --no-assistant, or built by hand without them) do not show them. No PlatformAgent field replaces the three.
Slack’s agent view, where the bot’s DM opens on a Messages tab, needs a new manifest, and the switch cannot be undone. Once Slack applies a manifest carrying agent view, the app cannot go back to the assistant view it has today. The manifest also replaces the whole app definition, so pass the name, description and long description your app already has; left out, the name and description become Hermes’s and the long description is dropped. Drop --long-description if your app has none; Hermes refuses one under 175 characters or over 4,000. Run it with the flag on, which is what names the agent view after --name; with the flag off it reads “Chat with Hermes in Slack Messages.”:
kubectl exec -n kubeagents-system deploy/platform-agent-gateway -c platform-agent -- \ hermes slack manifest --agent-view --name "<app name>" --description "<app description>" \ --long-description "<app long description>"Paste the output into your app’s App Manifest page in the Slack App Console and reinstall the app when Slack asks. Try agent view on an app nobody else depends on first. The manifest does not subscribe agent_session_stopped, so Slack offers no Stop button on a running reply. With the flag off the manifest and the DM are Hermes’s own; with it on or off, hermes slack manifest without --agent-view prints the same manifest and never switches the view.
Home channel
Section titled “Home channel”SLACK_HOME_CHANNEL designates the channel an unprompted message lands in when no user thread is involved. Set it to a monitoring/oncall channel your team already watches.
It is optional at install time. The home channel is spec.integration.slack.homeChannel on the PlatformAgent, or, with the field empty, the channel the gateway learns from the first mention (below). The operator hands it to the A2A gateway, which posts the agent’s proactive messages (alerts, scheduled reports, and the fleet audit’s report card) into that channel and nowhere else, as new threads or as replies in them. /sethome does not reach it: an allowed member moves it from the app’s Home tab (below). The field must be a channel ID (C..., or G... for a private channel), not a name; with it set to something else the agent posts nothing to Slack unprompted.
Until a home channel exists, the gateway keeps the posts it refused, up to fifty for thirty days, and posts one digest into the channel once one is set. It refuses and keeps them only when no platform on the gateway has a home channel. With Google Chat holding one, Slack’s home posts go to Chat until Slack has its own.
With it unset and spec.integration.slack.homeChannelPolicy auto (the default), the first top-level mention of the agent in a channel makes that channel the home channel. The gateway checks the channel first: not a direct message, not archived, not shared through Slack Connect, and the app a member. It then records the channel in the <agent>-home-channel ConfigMap beside the gateway and posts one line in the mention’s thread. The operator projects the recorded channel into a file it mounts in the agent pod and the gateway pod; both read it within about a minute, and no pod restarts. Until the learn the PlatformAgent carries the HomeChannelUnset condition and the installer warns before it applies.
manual turns the learn off, so homeChannel alone decides. A set homeChannel wins over a learned channel; the learned one stays in the record, so clearing the field returns to it. To forget it, delete that ConfigMap: the operator re-creates it empty, the file empties within about a minute, and the next mention learns again. A reply a person types in one of those threads starts a new conversation rather than continuing the investigation that raised the alert.
To move it later, pick another channel on the app’s Home tab (the Slack Home tab): the gateway checks the channel as it checks a mention and records it. One line in the new channel names who moved it, one in the old channel says it moved, and both pods follow within about two minutes.
A typed @bot /sethome or @bot /hermes sethome is answered by the Slack adapter with where to move it, the Home tab, and who may; it moves nothing, learns nothing and starts no task. The mention form reaches the agent: a bare /sethome is Slack’s own slash command, refused by the client when it is not registered and dropped by the gateway when it is (moving the app removes the block). Google Chat has no picker: its space field, or the space the gateway learned, decides.
A scheduled brief posts flat in that channel, never inside a thread. A job that wants its output in a thread names an explicit deliver= target instead.
Reactions
Section titled “Reactions”The KAGE_SLACK_UX flag is on by default. It changes how reactions work, turns on the buttons below, turns the first inventory report, fleet-audit reports and the findings nudge into cards, and changes how the harness’s own messages read on Slack (below).
To turn the flag off, add KAGE_SLACK_UX=false to the chart value platformAgent.deployment.env; Breaking changes in recent releases shows the install.env line. A hand edit of the CR’s spec.deployment.env can be lost at the next chart apply. An install that never set the flag has it on, and any value other than 1, true, yes or on turns it off. With it off the agent follows the Hermes Slack adapter, adding 👀 to your message when it starts and ✅ or ❌ when the turn ends, and nothing else on this page that the flag gates changes.
What the reaction means
Section titled “What the reaction means”With the flag on, your message gets a reaction for the kind of ask it is as soon as the agent picks it up, chosen from its words:
| Reaction | Kind of ask |
|---|---|
| 🔍 | something to investigate |
| 🌐 | the whole fleet |
| ⬆️ | an upgrade or version |
| 💰 | cost |
| 🛡️ | security |
| 🛠️ | a change |
| 📋 | the board |
| 🚨 | an incident |
| 👀 | anything else |
That reaction comes off when the answer posts, and work that succeeded is left with no reaction; work that failed is left with ❌. A turn the agent answers itself settles as soon as it ends.
For work the agent hands to the board, the reaction stays on past the acknowledgement until every card the turn opened for your message has finished, along with any follow-up cards those cards’ workers filed in the thread. The ❌ goes on if any of them gave up, stopped on something no agent can do (a block of kind capability, such as a cluster that does not exist), or the turn itself failed.
While a card the turn opened waits on you, or a follow-up filed by one that has since finished, ⏸️ joins it, and comes off once you answer. A follow-up that had already given up, or stopped on a capability block, when the card above it completed is told in the thread on its own and leaves your message without ❌.
A cancelled turn has its reaction taken off. Work still running when the agent restarts, or a card closed by hand rather than finishing, leaves the reaction on; a card archived by hand counts as finished, without ❌. The agent only ever removes its own reactions, and a reaction it cannot remove stays on.
The status message
Section titled “The status message”With the flag on, a thread’s board work shows as one status message instead of a progress message per card. The message is a plan with a line for each card, including each card a fanned-out card filed (one per cluster checked for a fleet question, up to ten). Each line shows the card’s latest notes and whether it is running, waiting on you, done or failed, edited in place as notes arrive. Waiting on you covers a question, work handed to you for review or sent back for changes, and a card stopped for blocking over and over.
A card’s row appears, running, as soon as the card starts work, before its first note; a card that finishes, fails or stops to wait on you before its row appears gets its row then.
A row’s title is the card’s name until its first note, then the card’s latest note while it runs, with a step count once it has more than one, and that note alone if it fails. It reads waiting on you while the card waits. Once the card is done, the title is the first line of the card’s summary (or of its result, when it gave no summary), or the card’s name when it finished without either. In a plan of several cards, each title starts with the card’s name. A card’s line opens to its latest notes.
A card stopped on something no agent can do (a block of kind capability) shows as failed rather than waiting on you. A card you unblock shows as running again, a running or waiting card archived by hand shows as failed with an Archived note, and a card the dispatcher retries after a crash or a timeout stays running.
The card’s report still posts as its own message when it finishes. The exception is a card beneath one that filed several and is still working in the same thread, such as one per cluster for a fleet question, or the card one of those hands on to the cluster’s own agent. Its row carries its result, and the filing card’s report, which waits for every card it filed, gives the answer. A filed card that fails or asks you something is told as any other card is.
The thread shows Slack’s Working… status while the agent answers any message, which needs slack-sdk 3.44 or later in the image. Once the agent hands your message’s work to the board, kube-agents also marks the thread’s session as working from the acknowledgement on, between the agent’s replies. For a message the agent puts no reaction on, such as a thread reply without a mention, that starts when the first card starts instead. The session is marked paused while the only cards left are waiting on you, and closed once every card has settled.
A plan with no new note or settled card for half an hour is set aside. Its cards still update their rows on it, and the status clears unless one of them is waiting on you. Answering one brings Working… back on that plan. A card silent that long can leave the thread without Working… while it still runs; its next note starts a new plan and brings Working… back.
A set-aside plan with no card waiting on you or failed is dropped four hours after it was set aside, or after a card on it was answered or unblocked (a card settling on it does not extend that). A card on it that settles later still posts its report but no longer updates its row.
When the agent restarts, a card’s next note, its settling, or the next liveness signal from a card still running starts a new plan. A card that settles there, other than by being archived, closes the thread’s session, or pauses it while the card waits on you, so Working… from before the restart does not stay. It can also clear Working… for another card from before the restart that is still running, until that card’s next liveness signal or note. Past 20 cards the oldest finished ones leave the plan first.
A channel thread is titled after its first ask, up to the ask’s first question, as a DM thread is titled after its ask. A thread that a crash-looping workload’s alert or a drift alert started is titled for it instead, such as payments-api crashloop in prod-east or checkout-gateway HPA drift in prod-east. If Slack refuses the plan, the thread falls back to a rolling progress message per card until those cards settle, or for half an hour after the last of them goes quiet. A card settling still updates its row on the plan, and Working… holds while those cards run and pauses while they wait on you.
Collapsed cards and option buttons
Section titled “Collapsed cards and option buttons”With the flag on, work handed to the board also reads more quietly in Slack. When a card completes, blocks or fails, its rolling progress message (the plan’s fallback) collapses to its last line. A completed card’s message posts the worker’s report, or its summary when there is no report or the report adds nothing to it, without the ✔ … done head line; a card that finished with neither keeps the head line.
That message leads with its first sentence in bold, code kept as code, and folds the rest under why, collapsed; a closing question stays below the fold, as written. A first sentence longer than 150 characters is cut at its last comma, semicolon or spaced dash, or before “due to” or “because”, that leaves a headline short enough, and the rest of the sentence opens what follows. A comma before “which”, “who” or “that” is not used, since what follows it is no sentence.
In a thread, when the answer ends by asking which of two to five listed options to take, each option gets a button labelled with its bold lead (an “Option 2:” prefix dropped). The one marked “(Recommended)” is drawn as the primary button. Such a question is “Which of these would you like?” or “How would you like to proceed?”, not a yes/no question such as “Shall I proceed?” or an open one such as “Anything else?”. Its opening paragraph, each option’s label and first sentence (when every option has one), and the question stay in sight, and the rest folds under why. A click answers with the button’s label as your reply in the thread.
When there is one obvious next step instead, the agent marks it for the presenters, and in a thread it becomes a single button under the answer, such as upgrade plan for seeded-c. Clicking it, even on an older answer, sends those words as your reply, exactly as typing them would. Options the answer asks you to choose from take the step’s place.
The mark is never shown as text: on Google Chat, outside a thread, with the flag off, and wherever no button can be drawn, you read the answer alone. The one exception is a reply streamed into Slack as it is written, which happens only with the agent’s streaming.enabled setting on: it keeps the mark as its last line, with no button.
An answer that posts whole, as below, still gets the button under it. The exceptions are a report with options to act on, one too long to draw in one message, and one sent where the Slack adapter sends Slack’s own markdown blocks or no rich blocks. An answer posts whole, as before, when:
- it is a report with options to act on;
- it opens with a heading, a list, a code block, a quote, a table row or a bold label;
- its first sentence holds a link or a mention, or runs onto a second line, or runs past 150 characters with no such place to cut it;
- its first line ends in a colon;
- nothing follows that sentence;
- the rest holds a horizontal rule;
- it runs past 12,000 characters;
- the Slack adapter is set to send Slack’s own markdown blocks or no rich blocks.
A card that blocks, crashes, times out or gives up posts no line of its own (except a question, below) once the wake asking its creator to explain it has been queued. The agent that created the card then tells the failure; for work you asked for, that is the Planning Agent. If that wake fails, the card’s own failure line posts instead, and a wake that then succeeds on a retry tells the failure a second time. A failure line still waiting on its wake when the same card recovers (it completes, hands off for review or is moved to done) is dropped, so it never lands beneath the recovery.
The agent’s reply to that wake opens with its first sentence in bold. When it ends on one short yes/no question, such as “Check it there?”, a Try again button follows it (an open or either/or question stays text). Clicking it sends “Try again” as your reply in the thread, and the message is rewritten to name who clicked. When the reply marks its next step, that step is the button instead, such as check seeded-a, whatever the question. The reply posts as written if the agent restarts between the wake and its reply; outside a thread the question stays text, and a step the reply marks is not shown.
Six gaps remain, each leaving the failure untold, and the last three are logged:
- a queued wake that is lost to a restart or an interrupt before the Planning Agent answers;
- a restart between the card failing and the wake being queued;
- the card’s notifications stopping, after repeated failed posts or a sweep of stale subscriptions, before the wake is tried;
- a failure line whose post keeps failing;
- a held line dropped because too many cards are holding lines at once;
- a held line dropped because the card recovered, when the wake after it never succeeds.
The lines a card does post name the agent working it when the card has one, such as @platform, without the board name or the card’s id. Other platforms are unchanged.
Pull-request and blocked-card moments
Section titled “Pull-request and blocked-card moments”Two moments get a message of their own with the flag on.
When a card opens a pull request on GitHub, or a merge request on gitlab.com or on the GitLab host of your GitOps repository or one of your managed repositories, the thread gets it beside a green side bar. The message has Open PR (Open MR for a merge request) and Files changed buttons, once per pull or merge request in each thread, until the agent restarts.
It is posted as soon as the card’s worker opens it, whatever the card goes on to say about it, under the pull request’s title. When the worker’s line naming it reaches the thread in the same update, it is posted under that line instead. A pull request opened outside a card’s work, such as by a scheduled audit, is posted only when a progress note or report says it was opened.
When a card blocks because it needs something from you, its question posts in place of the blocked line, beside a yellow side bar, with up to 2,000 characters of its detail and a “waiting on you” line. A first line longer than 150 characters shows only its first sentence in bold, and the rest of the line opens the detail. A first sentence too long as well is cut. A statement is cut as an answer’s is, or at a word when it has no place to cut. A question is cut at a word, ending in “…” where the detail resumes, so it still reads as a question.
The cut never falls inside a link. Code, bold or italic it falls inside is closed in the bold line and reopened below. When a long code span or link would leave only a few words in bold, the cut moves into the code span or past the link. No part of the question shows twice; a link in the bold line shows its label there, and the link itself opens the detail on a line of its own. The note that wakes the Planning Agent tells it the question is already posted so that it need not ask it again.
A question that ends with two to five short options, right after a line ending in a question mark, gets a button for each. The exception is a line whose last sentence is a recognised go-ahead ask (“Shall I proceed?”, “Sound good?”) and offers no choice with “which” or “or”: that list is the plan and stays as text. A go-ahead ask in other words (“Should I apply it?”), or one after a comma, dash or another question (“Here’s the plan, sound good?”), is not recognised, and its list gets buttons. Any other shape of question keeps its options as text, as does a question outside a thread, since a click answers in the thread it was clicked in.
Clicking one answers as if you had typed it as your reply in the thread, with the card’s name added while the agent still holds the question (after a restart the click answers with the label alone). It runs as your message and passes the same user and channel checks a typed reply does, so a user the adapter would not answer changes nothing by clicking. A click never needs an @-mention.
A typed reply in the thread needs one only where the Slack adapter is set to require a mention in threads, or, in a channel that requires a mention, to ignore every message without one. Where it is set to ignore a message addressed to someone else, a typed reply that opens by mentioning another person is ignored unless it also mentions the agent.
The Planning Agent still takes your answer back to the card; the question’s text also names the card, so a typed reply that starts a new conversation with the agent still finds it. Once the card moves on the buttons and the “waiting on you” line come off the question, however you answered; a restart in between leaves them on it.
In a thread, the question then shows who answered and what (✓ <name>: <answer>, your Slack display name, else your real name or handle, in plain text, never an @-mention). A click leaves that line at once, and a typed reply leaves it with your reply’s first words, less any mention of the agent it opens with, once the card resumes. One reply answers one question, so where two cards ask in one thread, the reply goes to the first card to resume. A card archived, finished or given up without resuming loses its buttons without the line.
In a thread, the Planning Agent posts nothing after carrying your answer to the card, unless carrying it fails, when it says so. A card stops on a question with options when you ask to choose yourself, such as “give me two or three ways to fix it and ask me which one”; otherwise it answers with the fix it recommends. With the flag off, and on Google Chat, the card’s blocked line posts and the agent’s reply to it asks the question.
Buttons
Section titled “Buttons”Alert buttons
Section titled “Alert buttons”With KAGE_SLACK_UX on, the alert for a crash-looping workload reads as one line on Slack, such as “🚨 payments-api in prod-east keeps crashing. Looking now.”; alerts for other reasons, and alerts on other platforms, read as before. An incident’s triage edits its alert in place instead of replying under it. The alert becomes a one-line headline, then a button per proposed option showing its title, with the recommended one highlighted and marked “(recommended)”, and a button for each console link on the report’s 🔗 line. The report, up to its first horizontal rule, is folded underneath.
A drift alert’s triage adds a line under the headline saying what changed, who changed it and when, and marks the recommended button by its highlight alone. Its usual buttons are Put Git’s version back and Keep it · update Git, each of which opens a pull request, and its fold is titled diff, since the report opens on the changed field’s value before and after.
Clicking an option answers as if you had replied in the thread yourself with apply Option B: <its title>, or apply: <its title> when there is a single fix. The agent replaces the option buttons with a line such as “✓
A typed reply in the alert’s thread needs one only where the Slack adapter is set to require a mention in threads, or, in a channel that requires a mention, to ignore every message without one. Where it is set to ignore a message addressed to someone else, a typed reply that opens by mentioning another person is ignored unless it also mentions the agent.
A later click runs nothing if someone the agent answers has already replied in the thread since the options appeared with apply, apply B or apply Option B. The letter is one the alert offers, when its options are lettered, and a please or thanks after the command does not change that. The same holds for a reply of apply Option B: and that option’s title, whole or clipped as the button shows it. The option buttons are then replaced with a line saying the alert was answered in the thread; link buttons stay.
The report arrives as a threaded reply as before when:
- it does not parse into options;
- it is a second report in the same thread;
- it is too long to fold;
- it has a table above its first horizontal rule, or a horizontal rule above its headline, options or links;
- Slack refuses the edit.
Stuck-task report buttons
Section titled “Stuck-task report buttons”The daily stuck-task report shows a Retry and a Drop button under each task it names. Retry sends the task back to the board to run again, and Drop archives it. Either acts only on a task that is blocked when you press it. A button on an older post leaves alone a task that has moved on since, but acts on one that has blocked again. Anyone the agent answers may press them. The task’s row then reads “✓ Retrying.” or “Dropped.”, followed by who pressed and when. A press acts on the board directly and never starts an agent turn.
On Google Chat, the report shows the same buttons. Google Chat draws every button under the message, so the report numbers its tasks and labels each button with the task’s number: “Retry 1” and “Drop 1”. The task’s line then ends with “✓ Retrying.” or “Dropped.”, who pressed, and the time in UTC. A press that did not land keeps the buttons and says so on the line.
On Microsoft Teams, where the gateway serves it, the report shows Retry and Drop under each task, as on Slack. The result then shows on a line under the task, worded as on Google Chat, and the buttons go. A press that did not land keeps the buttons and says so. After a gateway restart, a press on an older report still acts, and its result is posted as a new message.
Files a card produced
Section titled “Files a card produced”The gateway does not attach a file the card names in its artifacts list (What the gateway changes on Slack); the agent still has to declare the file for it to leave the sandbox. Its terminal and file tools run in a separate sandbox pod, so a file it writes is on a volume the gateway cannot read. Only the paths the artifacts list names are copied across to the gateway for delivery, and only for as long as the delivery takes.
Four ceilings apply to that copy: 8 MiB per file, 16 files per card, 16 MiB across the card, and a two-minute deadline for the lot. A file that exceeds one is skipped with a warning in the gateway log while the rest of the card still delivers. Paths under the sandbox’s credential and system directories are refused outright. agents/platform/scripts/sandbox_artifact_patch.py holds the limits and the denied prefixes.
Harness messages
Section titled “Harness messages”With KAGE_SLACK_UX on, the harness’s own messages stay out of the way on Slack. Scheduled reports arrive without the Cronjob Response header, job ID and footer. The long-turn heartbeat, if it is enabled for Slack, says the agent is still working without naming the tool running. The agent does not announce that it is back after a restart, post the session-database warnings (the error stays in the log), or append Hermes’ tip about its queueing setting.
Its replies about restarting, shutting down, stopping, being busy with an earlier message, a command sent while it is working, or a /steer it could not take are written plainly in its own voice. They carry no console commands or error text, and its replies about the model provider failing or turning a request down read the same way. That covers the English replies; an install set to another display language gets Hermes’ translation of the restart and stop replies. Other chat platforms are unchanged, and with the flag off nothing changes.
Sending another message while it works
Section titled “Sending another message while it works”Through the gateway, a message sent while the Planning Agent is still answering an earlier one in the same conversation is queued as a follow-up behind the running task; see Follow-ups while a task runs.
Conversations through the A2A gateway
Section titled “Conversations through the A2A gateway”The A2A gateway takes chat in place of the Planning Agent’s chat platforms. It holds Google Chat, Slack and Microsoft Teams, in any combination, in one process. Microsoft Teams stays on the Planning Agent’s adapter where spec.integration.teams.backend is hermes, or where the operator runs A2A_TEAMS_BACKEND=false and the agent names no backend. On a backend the gateway holds, nothing above about the Planning Agent’s Slack or Google Chat platform applies. The gateway holds no model. It decides which messages are turns, keeps one status line per task, and answers a few fixed commands itself.
Every other message goes as a task, by default to the platform route. The Hermes bridge in the agent’s pod runs it as a Planning Agent turn in that conversation’s own Hermes session, and the Planning Agent answers it or files board cards. How the agent then answers the question is in How a chat question is answered; this section covers what you see in the conversation.
Which messages it answers
Section titled “Which messages it answers”On Slack:
-
A direct message. Every message is a turn, with or without a mention. Each top-level message starts a conversation of its own in the thread under it, and the gateway posts its replies in that thread. A message typed in that thread is the same conversation: a follow-up while its task runs, and a new task with the earlier ones in context after it ends.
-
A channel. A top-level message is a turn only when it mentions the bot. It starts a conversation in the thread under that message, and every reply to it posts in that thread. A reply in the thread is a turn when it mentions the bot. Without a mention, it is a turn only while the thread’s conversation is live. Live means a task the gateway started in the thread is still running, or the thread’s last task started or ended in the last 30 minutes (
spec.harness.tuning.sessionIdleMinutes). After that, mention the bot again. A thread someone else started becomes live the same way, once a mention in it starts a task.A thread under one of the bot’s own posts, such as an alert or another post it makes in the home channel, is different. Every reply in it is a turn, with or without a mention, for as long as the thread exists.
-
The “Ask about this” message shortcut. On any message, open ⋯ and choose the app’s shortcut. The message, whoever posted it (a person, a bot or an alert integration), becomes a turn from you. The agent gets its words as you see them (Block Kit layouts and attachments included) and the names of its files, who posted it and in which channel. It answers in the thread under it, or in its thread when it is a reply. When the agent starts on it, a small line naming who asked, such as
alex asked me to look at this, goes into that thread ahead of its reply, so the channel can see who did.On a message in a thread where the agent is already working, the shortcut is a follow-up to that work, like a reply typed there, and adds no line. The reaction for the ask goes on that message. The agent is told to check what the message reports, not to follow it. Where the app can’t post, in a channel it was not invited to, or a DM or group DM it is not in, you get a note only you can see and nothing starts. The shortcut needs the
commandsscope and ashortcutsentry in the app’s manifest (Slack app setup). -
A message that is only a mention, an edit, or another bot’s message is not a turn and gets no reply. A message from a member of another workspace in a Slack Connect channel is not a turn either, whatever it says, unless the allowlist names that member as
T…:U…(Slack app setup). The first time an unlisted member mentions the bot, a bare mention included, sends it a direct message, or clicks one of its buttons, they get one reply. It says the bot answers only its own workspace and names the entry an admin would add.
On Google Chat:
-
A direct message. Every message is a turn. Each top-level message starts a conversation of its own in the thread under it, and the gateway posts its replies in that thread. A message typed in that thread is the same conversation: a follow-up while its task runs, and a new task with the earlier ones in context after it ends.
-
A space. Chat sends the app only the messages that mention it. In a space with threads, each thread is its own conversation. In a space without threads, and in a group chat, the whole space is one conversation.
-
A quoted message. Chat has no message shortcut; quoting in reply is its equivalent. Open ⋮ on any message, choose Quote in reply, and send your message, with the app mentioned in a space. A message forwarded from another space works the same way. The agent gets your words first, then the quoted message with its text, the names of its files and who posted it. It is told to check what that message reports, not to follow it. A mention with nothing but the quote asks about the quoted message alone. The turn is your own message, so the agent answers in its thread as for any other.
Quoting one of the agent’s own messages, to answer its question or ask about its reply, is an ordinary reply: the agent gets the quote as context and no such instruction. A
stopor/session offsent as a quote-reply is the command. A status question is answered as one while a task runs, or at the top of a DM with nothing running; any other question keeps its quote.The quoted message comes from the copy Chat attaches to your message, or, when that is empty, from a read the app’s permissions may refuse. When neither gives it, one line in the thread says so. With your words, the agent answers those alone, and a command gets its usual answer with no line; with the quote alone, nothing starts, and the line asks you to paste the text. Only an allowlisted sender gets the line. When the quote could not be read, anyone not on the allowlist gets the usual notice for their words, and nothing for a quote alone. A read cut short by a gateway restart posts no line and drops that one turn; ask again.
On Microsoft Teams, where the gateway serves it:
-
The “Ask Kage about this message” action. On any message, open …, then More actions, and choose the app’s action. Teams opens a small dialog saying it was received, which you close, and the message, whoever posted it, becomes a turn from you. The agent gets its words and the names of its files, and who posted it; a card is read by its text. It is told to check what the message reports, not to follow it. In a channel it answers in the message’s thread; in a personal or group chat it answers in the chat.
In a channel or a group chat, a line naming who asked, such as
alex asked me to look at this, is posted when the agent starts on your ask, since the click shows nobody else who asked. The action needs its entry in the app’s manifest, and the app installed where the message is (Microsoft Teams app setup).The dialog says the click arrived and where a reply can appear, and promises none. A sender the allowlist does not admit sees it and nothing more: only the member who clicked sees the dialog, but the click is answered before the gateway has decided on its sender, and the thread is the channel’s. The same holds where the Planning Agent serves Teams, which does not take the action.
A sender the allowlist does not admit gets one notice, once per sender until the gateway restarts, and nothing else. The exception is a Slack reply under one of the bot’s own posts that doesn’t mention the bot: that is dropped with only an info-level log line and no notice, since the sender was likely talking to someone else. A mention gets them the notice. On Slack, a sender who used the message shortcut gets it as a note only they can see, every time, rather than in the thread. On Slack it reads ⛔ I can't verify who you are on slack (id U0123ABCD), so I can't take asks from you yet — an admin has to add you to the allowed users list (or correct their principal map entry). On Google Chat it names gchat, the sender’s email and the allowed users list. The fix is in Troubleshooting, for Slack and for Google Chat.
A press of a Stop button, Slack’s, Google Chat’s or Microsoft Teams’s, from such a sender gets no notice at all: the press asked for nothing, and the notice would name them in a thread the space reads. Their first typed message gets it.
What the gateway changes on Slack
Section titled “What the gateway changes on Slack”| Before the gateway | On the gateway |
|---|---|
Slash commands: /new, /sethome, /steer, /hermes … |
None of them. The gateway reads two commands, /session and /feedback; a typed @bot /sethome is answered by the Slack adapter with where the home channel moves, the Home tab, not by a command. |
Reactions, buttons, cards and the plan status message (KAGE_SLACK_UX) |
On Slack, what the agent sends laid out as before, with reactions, answered buttons and Working… (Slack). On Google Chat, the agent’s answers and its cards’ work (the plan, the reports, the moments) laid out as text, with buttons where a message offers choices or links, and one status line per task. The line is edited in place while the task runs and ends as a bare ✅, or as the one-line acknowledgement of work handed to a card (Google Chat). The status line has a Stop button while the task runs. That layout has no switch: KAGE_SLACK_UX=false turns off the cards’ work on Google Chat as on Slack, and the agent’s answers stay laid out. |
| Slack agent view and suggested prompts | The three suggested prompts, in a new assistant thread or on an agent-view app’s Messages tab. |
| The home channel (Google Chat, Slack): proactive alerts and scheduled reports | Posted by the gateway to the home channel on the PlatformAgent: spec.integration.googleChat.homeChannel on Google Chat, spec.integration.slack.homeChannel (a channel ID) on Slack, or the one the gateway learned from the first mention when the field is empty. |
| A board card’s progress and report post into the thread | A card the agent files while answering reports into the conversation you asked in, its plan and its report laid out, on Slack and on Google Chat. A file the card produced is not attached. |
| A message sent while the agent works interrupts its turn | It is queued as a follow-up to the running task. |
| An unlisted Slack sender is ignored silently | An unlisted sender gets one notice (not for an unmentioned reply under the bot’s own post). |
| Several Slack workspaces from one install | One workspace. |
What a task looks like
Section titled “What a task looks like”On Slack
Section titled “On Slack”The gateway posts no status line: Working… on the thread, the reaction on your message and the plan of the agent’s cards show where the task is, and a task whose submission never reached the gateway’s bus posts ❌ could not reach the bus; try again. A card the agent files while answering posts each progress note as a message of its own, and then its report, into the thread. The answer posts as a message of its own. The exception is a task the agent delegates to an AgentProfile, since nothing else in the thread shows a profile’s progress. It gets a status line of its own, ⏳ submitted… (delegated to <profile>). The line moves to ⚙️ working with the profile’s progress, and closes to ✅ (delegated to <profile>) when the profile is done.
If the profile hasn’t started on that request yet, its line says so in the meantime, as When it is busy describes.
On Google Chat and the A2A console
Section titled “On Google Chat and the A2A console”Each turn that becomes a task posts a status line, ⏳ submitted…, which the gateway edits as the task moves: ⚙️ **working**, followed by the agent’s latest progress note. On Google Chat and on Microsoft Teams the line has a Stop button while the task runs (the Stop button on Google Chat and Microsoft Teams). The note shows only with googleChat.mode: debug, and that setting also governs the console when the gateway holds Google Chat. A gateway without Google Chat (Slack, or no chat backend) is rendered no mode, so its console always shows the note.
On Microsoft Teams, where the gateway serves it, the bot also shows Teams’s typing indicator in the conversation while work it handed to a card is still open, from the plan’s first line until the answer. While the first agent is working, its own line and Stop button show it, and the indicator stays off. The indicator stops while the agent is waiting on you, and ten minutes after the hand-off, your next message or the bot’s last post or update there, whichever is latest. Teams draws the indicator in a one-to-one chat with the bot and not in a channel thread, where the status line and the plan are the signs of work.
On Microsoft Teams, where the gateway serves it, your message also gets the bot’s reaction for its kind of ask, with the emoji Slack uses (What the reaction means). It comes off when the turn ends, and a turn that failed leaves ❌. For work the agent hands to the board, the reaction comes off at the acknowledgement, returns when the board’s plan posts, and comes off again when the cards finish. To turn the reactions off, set A2A_TEAMS_MESSAGE_MARKS=false on the operator, through the chart’s operator.extraEnv; a reaction already on a message then stays, and the status line is unchanged either way.
On the A2A console the answer posts as a message of its own, and the status line then reads ✅ **completed**. On Google Chat the answer posts as a message of its own, with its 👍 and 👎 buttons, and the status line ends as a bare ✅. When the agent hands the work to a card, its one-line acknowledgement replaces the status line instead, and the card’s plan and report follow. Nothing reads completed. Chat marks the edited line as edited.
A task that fails posts ❌ failed — <why>, in plain words, or ❌ failed: <text> when the reason arrived as plain text; one that is cancelled posts 🛑 canceled, unless you stopped it (see stop below); one the executor refuses posts 🚫 the executor rejected the task — <why>. When the agent needs something from you it posts ❓ <its question>; your next message in the conversation is the answer. On Google Chat, the gateway rewrites the markdown Chat’s text format has no syntax for. A heading becomes a bold line, a rule is dropped, and a bulleted list’s marker becomes the one Chat draws a bullet from. A pipe table becomes a monospace block with its columns lined up.
On Google Chat, the agent’s answer is one formatted text message. Its first sentence is bold, the rest is detail or an open “why” section with any table as a monospace block, and a next step or its options are buttons under it. The final answer to each ask, and each alert or report the agent posts on its own, ends with 👍 and 👎 buttons after any others (Answer feedback).
A card’s progress draws one plan message edited in place. A card’s report, the needs-you question, the pull-request message, the fleet-audit card, the first-run report, the findings nudge and the stuck-task report lay out the same way as on Slack. The stuck-task report’s Retry and Drop are numbered. Google Chat draws no reactions on your message, since the app’s credential cannot add one.
A first sentence longer than 150 characters is cut at a clause, as on Slack, or at a word when no clause fits. The bold line then ends in “…” and the detail opens on one, so no word of it is lost. The same cut holds on Slack.
A link button opens its link. A choice button is your reply: clicking it sends the button’s answer as your message in the conversation, checked against the allowed-users list like a typed one. A click from someone the gateway would not answer changes nothing. The question then loses its choice buttons and shows ✓ <your name>: <the button>, by your Chat display name (or “Someone” when Chat gives none), never an @-mention.
A reply you type in the conversation answers the question the same way, with your reply’s first words, unless it is a command the gateway reads itself: stop, a status question, /session, /feedback or a delegate … request. A next step an answer offers takes no typed reply, and a question posted to the home channel answers only by its buttons. A question is answered once, by the first click or reply, until the agent asks again on the same message. A button on a message posted before a gateway restart answers the same way.
On Microsoft Teams, where the gateway serves it, the same messages arrive as one card: the bold first sentence, the detail, a plan’s steps or a report’s rows, the “why” section drawn open, and the buttons under it. A choice button and a typed reply answer as on Google Chat, and the card then shows ✓ <your name>: <the button, or your reply's first words> by your Teams display name. When the card cannot be edited, as for one posted before a gateway restart, that line is posted as a new message.
An install with adaptiveCards: false gets the text with no buttons; type the answer there.
Follow-ups while a task runs
Section titled “Follow-ups while a task runs”A conversation runs one task at a time. A message sent while its task runs, other than the commands below, goes to that task as a follow-up, and the gateway answers ✏️ got it, I'll take that next. The agent finishes the turn it is on, then takes each follow-up in the order it arrived as a further turn in the same session, so it answers with the earlier turns in context. Each turn’s answer posts as soon as the next turn starts, and the last one closes the task. A task takes at most 16 follow-ups.
One the agent cannot take is answered ⚠️ not taken: <why>. Send it again after the answer., for one of these reasons:
- the task has already taken as many follow-ups as it runs;
- it was already finishing;
- the message had no text;
- the task’s capability check did not pass;
- the agent’s executor cannot continue a session.
When the task ends, follow-ups that never ran are counted in ⚠️ N queued follow-up(s) did not run before the task ended; send them again if they still matter, and follow-ups that arrived as it finished in ⚠️ N follow-up(s) arrived as the task finished and were not taken; send them again.
If the task has produced nothing yet, a follow-up gets ✏️ steering sent — task <id> has shown nothing on its event stream yet, so no reply is promised: it may still be starting, or nothing may have taken it; if it is still silent 10m0s after it was submitted, your next message here starts a new task instead. When that time is up and nobody has written since, the gateway posts ⚠️ task <id> has produced nothing on its event stream in 10m0s; unless it starts first, your next message here starts a new task instead of going to it. The next message then posts ⚠️ task <id> has produced nothing on its event stream in 10m0s, so this conversation is released and this message is handled as a new turn and starts a new task. The 10 minutes are the gateway’s A2A_FIRST_EVENT_GRACE. A request handed to another agent whose line already says it is waiting (see When it is busy) gets that line changed instead of the separate message.
Besides /session, a bare /feedback and /feedback summary, two kinds of message are commands rather than follow-ups. Each must be the whole message; case and punctuation are ignored, and on Slack a mention of the bot is stripped first, so @bot stop counts.
-
stop,cancelorabort. With a task running, the gateway answers🛑 cancel sent — the task ends when the executor confirms, and the status line ends at🛑 **canceled**when it does. The reply the agent is still writing stops too, and files no card after the stop; one that the agent had not yet started when the stop arrived, or an agent image older than this behaviour, can still file one. Your next message starts a new task.Nothing the stopped task writes after the stop reaches the conversation: no note, question or answer. Its line closes at 🛑 instead of a separate
🛑 canceledmessage. A task with no line of its own, such as a delegated task on Slack, which shows task status itself, posts one🛑 canceledso the conversation sees it end. If the session had handed the work to other agents, onestopstops every one of those tasks too, with the one reply; the conversation can hand off new work once they have all ended.On Google Chat and Microsoft Teams the status line answers instead, as it does for the Stop button below: the gateway posts nothing, the line reads
🛑 cancel sent — the task ends when the executor confirmswith its button gone, and🛑 **canceled**when the executor confirms. A secondstopchanges the line to🛑 cancel already sent — the task ends when the executor confirms. A task with no status line keeps the posted replies below, as does astopthat the cards’ stop answers (A2A_CARD_STOP=true, outside a conversation whose tasks go to a session worker).A second
stopbefore the task ends gets🛑 cancel already sent — the task ends when the executor confirms. With nothing running in the conversation,stopgets🤷 nothing is running. In a conversation that has run a task, the reply adds that if the agent filed a card for it, that card keeps working until it finishes. A card outlives the turn that filed it, and by defaultstopcannot reach it.On an install whose operator sets
A2A_CARD_STOP=true,stopstops the cards instead, except in a conversation whose tasks go to a session worker (the/sessionroute below, or afterdelegate), which keeps the card notice. It posts🛑 stopping this conversation's cards…, which becomes🛑 stopped 2 cards: <title>, <title>naming up to five cards, with a note for anything it could not promise, such as cards that had already finished or a card that may still start.CARD_STOP_ENABLED=trueininstall.env, or the chart’soperator.cardStop.enabled, sets it.With no card open it answers
🤷 nothing is running, or🤷 no card was open in this conversationif you’ve asked something new in the meantime. Card titles are shown as plain text, so a title can’t mention anyone or add a link; dots and colons in a title show as look-alikes, so a URL in it isn’t clickable.With a task running, the cards are stopped right after the cancel. A second
stopwhile the cards are being stopped gets🛑 already stopping this conversation's cards — the answer comes when the executor confirms. Once the first stop finishes the gateway checks once more for cards filed since, saying nothing unless it stops one.It skips that check, and says why, if you’ve asked something new by then, if the conversation has moved to a session worker, or if card stopping has been turned off. If the cards can’t be stopped, or the answer takes longer than 75 seconds, you get
⚠️ couldn't confirm that this conversation's cards stopped; if the agent filed a card for it, it may still be working. In the console the page may also show the agent’s own short summary of the stop beside this reply.A
stopacts only on the conversation it is sent in, so on Slack or Google Chat send it in the task’s thread: a new top-level message in a channel or a DM is a new conversation. A top-levelstopin a Slack or Google Chat DM starts nothing and gets🤷 nothing is running here — each question runs in its own thread, so reply in that question's thread. -
Who can press Stop. On Slack, Google Chat and Microsoft Teams, only someone who asked for work in the thread can press its Stop button: the person who asked, or anyone who sent a follow-up while the task ran. Anyone else’s press changes nothing. The line of a task that has ended answers anyone, since it stops nothing. When the gateway can’t tell who asked, anyone it answers in the thread can press it. That is where nothing has run yet, once any ask is older than a day (by default), or with more people or asks than it keeps track of. A typed
stopis not the button; anyone the gateway answers can type it.What a refused press sees differs by backend. On Slack the presser gets no reply. On Google Chat, in a space or a group chat, the presser alone sees one line:
Only the person who asked can press Stop here. If it must stop, type stop.Nobody else is notified. The button stays on the line until the task ends, so that line is what tells a refused press from a slow one. The line does not appear in a direct message, or when Google Chat names the presser by no user account. On Microsoft Teams, in a channel or a group chat, the running task’s status line reads✋ Only the person who asked can press Stop here. If it must stop, type stop.until the task’s next update replaces it. Everyone in the conversation can see it, and it names nobody. -
Slack’s Stop button. On a Slack app that subscribes
agent_session_stopped(Slack app), the thread’s Working… line has a Stop button.On an install with
A2A_CARD_STOP=truethe button cancels the running reply and stops the thread’s cards asstopdoes. It posts none of the🛑messages and answers with one reply:Stopped.when the work stopped;Stopped, except one task that didn't respond: <title>.when one card would not stop;Nothing was running.when there was nothing to stop;No tasks were running yet. I'm still answering your latest question.when there was nothing to stop but a newer question of yours is running;I couldn't stop the work in this thread. Press Stop again.when the stop could not be confirmed and another press can help, orI couldn't stop the work in this thread.when it can’t.
Pressing it again while a stop is still running adds nothing, unless you had asked something new since, which it stops too. Without
A2A_CARD_STOP, and in a conversation whose tasks go to a session worker, the button does exactly what typingstopdoes. -
The Stop button on Google Chat and Microsoft Teams. The status line has a Stop button while the task runs. On Microsoft Teams the button is on the line’s card, so an install with
adaptiveCards: falsehas none; typestopthere. A press sends the same cancel asstop, and the line itself answers, as for a typedstop: it reads🛑 cancel sent — the task ends when the executor confirmswith the button gone, and🛑 **canceled**when the executor confirms. The press posts nothing else; a second press adds nothing.A press the cards’ stop answers (
A2A_CARD_STOP=true, outside a conversation whose tasks go to a session worker) is a typedstopinstead: its messages, the cards stopped, and the button gone at the line’s next edit. A press on the line of a task that has ended cancels nothing: the line readsℹ️ this task has endedwhen the gateway no longer knows the task, or🛑 **canceled**again when the gateway stopped it. -
A status question, exactly one of
status,progress,any progress,any update,any updates,what is it doing,what's it doing,what are you doing,what's happening,what is happening,what's going on,what is going on,where are we,how's it goingorhow is it going. With a task running, the gateway answers from the task’s event stream without asking the agent:🔎 task <id> is **working** (2m14s so far), the request it is working on, its state history, its latest progress note, and the line(answered by stream replay — no live connection to the executor). A task with no events yet gets📭 no events on the stream for this task yet. With nothing running, a status question is an ordinary message and starts a task, except at the top level of a Slack or Google Chat DM, where it gets the samenothing is running herereply asstop. Any other wording, such as “how is the upgrade doing”, is a follow-up, which the agent answers itself.
When it is busy
Section titled “When it is busy”The agent answers a fixed number of tasks at once: the Hermes bridge’s worker count, 10 unless the operator’s A2A_BRIDGE_CONCURRENCY sets another. When a new task starts while at least that many tasks from other conversations are outstanding, counting the running ones, its status line reads ⏳ **queued** — 12 requests are ahead of yours; I'll start on it as soon as there's room in place of ⏳ submitted…. It changes to ⚙️ **working** when the task starts. On Slack, which keeps no status line, the notice posts as a message of its own and stays as written. The notice is informational: the task is already submitted. The operator’s A2A_BUSY_NOTICE_AT moves the threshold. A conversation on the session route below never gets the notice, since it runs on a pod of its own.
A single request the agent hands to an AgentProfile, such as the cluster agent, has a status line of its own, on Slack too, and that agent may not start on it at once. Once the request has waited 30 seconds with nothing from that agent, the line reads ⏳ **waiting** — the cluster agent hasn't started on this yet in place of ⏳ submitted…. The gateway checks once a minute, so the notice shows within about a minute and a half. When other requests to that agent haven’t started either, it adds ; 2 other requests sent through me are waiting for it too. It says only that the request hasn’t started, not why, and the number changes as they start. It changes to ⚙️ **working** when that agent starts.
If nothing has started by A2A_FIRST_EVENT_GRACE, the same line becomes ⚠️ **didn't start** — the cluster agent didn't start on this in 10 minutes; ask again to start a new request, instead of the separate message described above. A request whose line is read by a program, through the inject or A2A doors, gets neither, as with the queued notice. Nor does a request in a batch of several; for those, a status question lists each one not yet started as waiting to start.
/session
Section titled “/session”By default every conversation’s tasks go to the platform route above. /session moves the conversation to the session route, where the conversation gets a session pod of its own, started from the chat profile. The same pod takes each of the conversation’s tasks in turn, so each one carries on from the last. The pod is deleted 30 minutes after your last message in the conversation (spec.harness.tuning.sessionIdleMinutes), and at most 4 hours after it started. Your next message after that starts a new pod, which reads the conversation so far.
A DM conversation with only one message so far is on a shorter clock: its pod goes 5 minutes after your last message (dmSessionIdleMinutes), since most DMs are a single question. Its second message puts it back on the 30.
An install runs at most 10 session pods at once (spec.harness.tuning.maxSessions). When a conversation needs a new pod at that cap, the pod that has been idle longest is deleted to make room, and its conversation is told ⏸️ this session was paused to make room for another conversation; your next message here starts it fresh with the conversation so far. If every other conversation with a pod still has a task in progress, the new task waits in line instead, with one message that moves as the line does: ⏳ queued — every session worker is busy and you're next in line; I'll start if one frees up in the next few minutes (or how many conversations are ahead). It starts when a slot frees, oldest first; stop takes it out of the line, and later messages in the conversation wait behind it.
After five minutes in line, wherever it is in the line, it is taken out with 🚦 not started: every session worker stayed busy while this waited …, which also names any later messages dropped with it. When 20 conversations are already waiting, it is refused at once with 🚦 not started: 10 session workers are already running (cap 10). …. Messages from a chat app, the console and the eval harness’s inject door wait this way. A task sent through the A2A door is refused at the cap rather than queued, because an A2A caller is a program that reads that answer as nothing started. A follow-up to a task on the session route gets ✏️ steering sent — the worker picks it up at its next turn boundary if the task is still running.
On Slack, start the message with the bot’s mention, @bot /session, because Slack takes a bare leading / as one of its own slash commands. In a Google Chat space, mention the app as with any message.
| You send | The gateway answers |
|---|---|
/session |
🧵 session route on — your next message opens a session pod; /session off returns to platform. In a Slack channel thread it asks for a mention instead: 🧵 session route on — mention me in your next message to open a session pod (a Slack thread carries unmentioned replies only once a task has started); /session off returns to platform. In a Slack or Google Chat DM, where /session sent top-level opens a thread of its own: 🧵 session route on — reply in this thread to open a session pod; /session off returns to platform. |
/session <text> |
Turns the route on and runs <text> as its first task. |
/session off |
↩️ session route off — back to platform. With a session task still running: ⚠️ a session task is still running — stop it first, then /session off. When the route was not on: ℹ️ not on the session route; nothing to turn off. Sent top-level in a Slack or Google Chat DM: ℹ️ /session off acts on the thread it's typed in — reply /session off in that question's thread. |
/session again |
ℹ️ already on the session route. |
/session stop |
ℹ️ to leave the session route say /session off; to stop a running task say stop. Nothing is stopped. |
If a task is already running on the platform route when you send /session, that task finishes there, and the message after it opens the first session pod; /session <text> sent then is not run, and the gateway says so. A message that starts with delegate, such as delegate check the node pools, sends that one task to a fresh session pod and leaves the conversation on the platform route.
Answer feedback
Section titled “Answer feedback”On Slack, Google Chat and Microsoft Teams, the final answer to each ask ends with 👍 and 👎 buttons. That is the agent’s own answer or, when it hands the work to a card, the card’s report rather than its acknowledgement, once per ask however many cards it fanned out to. An ask whose cards were still running when the agent restarted gets none. The exception is a card that posts progress after the restart while the thread’s latest question was also handed to cards: its report is rated under that question. In a conversation, plan rows, progress, questions waiting on you and notices have none. A tap from someone the gateway would not answer changes nothing.
On Slack, Google Chat and Microsoft Teams, the agent’s own home-channel posts carry the same buttons, labelled Useful and Not useful: an alert, kept through the triage that rewrites it, and a scheduled or audit report. They come after the post’s own buttons, such as a drift alert’s two, which stay first. Replies in an alert’s thread, such as the triage card’s progress, have none. A rating there counts as a rating of that alert or report, not of an answer, so a 👎 on an alert you found noisy does not read as a wrong answer. Its box says only the post is kept, since nobody asked a question, and its export names the alert’s trigger rather than a question.
Each rating is counted. What follows is Slack and Google Chat; Teams differs, below. The button you tapped fills in. The gateway keeps your question and the answer with it, and nothing else from the thread, so an operator can turn the exchange into an evaluation case: a 👎 as a case to fix, a 👍 as a good answer to keep. A 👍 shows nothing more. A 👎 opens a box asking what was wrong (optional, one line), kept with it. The box says how long your question and the answer are kept, or only the answer when the question is no longer on record. Cancel keeps the 👎 without a note.
On Slack, Send thanks you with a line only you see. It also links the project’s feedback form if you want to tell the kube-agents maintainers. Nothing is filled in for you, and the form opens a public issue, so leave your install’s details out.
On Google Chat, the box is a card in the answer’s thread that only you see. In a group chat or a space without threads, or when Chat will not take it in the thread, the card posts at the top level of the space, still only to you. In a direct message with the app, it is a card in the direct message itself, which only you read.
On Google Chat, Send or Cancel collapses the card to the same thanks line and the form link. If your note did not arrive with Send, the card collapses to “The note did not reach me; your rating stands as it was.” If your 👎 was already replaced by a 👍, the card says the rating changed and keeps no note; if the write fails, the card stays for another Send.
In a Google Chat space, the filled button shows the latest tap by anyone, while each person’s rating is kept separately.
Microsoft Teams draws the buttons while the gateway’s Teams backend is armed. They are on the card, so an install with adaptiveCards: false has none, and neither has a message too large for a card. A 👍 is one tap. A 👎 unfolds a form inside the card, on your screen alone, with the same optional question, a line on how long your question and the answer are kept, and a Send button. On an answer that line always names the question; on an alert or a report it names only the post. The 👎 is kept when you press Send, with a note or without one; there is no Cancel, and a 👎 you do not send keeps nothing.
After the first rating, the Teams card gains the line “Feedback recorded. Thank you.” Everyone in the conversation sees it, and it names neither the rater nor the rating; no button fills in. A rating on a message from before the gateway last restarted, or an old one it no longer remembers, is still counted, but the card does not change and its text is not kept with the rating. An alert that is rewritten after a rating is drawn without the line until the next rating. A card that the added line would make too large is left as it is too.
You have one rating per answer, so a 👍 on an answer you gave a 👎 replaces it, note and all, and the reverse. The last seven days’ count of answer ratings, such as “This week: 4 👍, 1 👎”, is on the Slack Home tab only, refreshed every five minutes; Google Chat has no Home tab. On Slack, no scope beyond the ones Slack lists is needed.
What a rating keeps can include cluster names and whatever else the question and answer held. It is stored in the feedback bucket of the install’s NATS server, and only the gateway can read or write its records. The setup job can list the bucket’s keys, which hold the task and a string derived from the rater’s Slack member ID, Google Chat address, or Microsoft Entra object ID or Teams user ID. The bucket drops each record 30 days after it was given. Nothing is sent anywhere else. An install whose NATS server has no such bucket draws no buttons; the gateway checks for one again every minute for half an hour after it starts.
The counts are on the gateway’s metrics and in the PlatformAgent’s status.usage as negativeFeedbackTotal and positiveFeedbackTotal; ratings on the alerts and reports the agent posts on its own count apart, as autonomousNegativeFeedbackTotal and autonomousPositiveFeedbackTotal (Observability). To read what was kept, run the gateway’s export in its pod. It writes a tar with a directory per rating, each holding a draft task.yaml for an evaluation case and the question, answer and any note as transcript.md:
kubectl exec -n kubeagents-system deploy/<name>-a2a-gateway -- \ /gateway feedback export --since 7d > feedback.tarFor an alert or report, transcript.md holds the post and says nobody asked, and the draft’s prompt names the trigger to plant instead of a question.
To turn it off, set spec.integration.slack.answerFeedback: false or spec.integration.googleChat.answerFeedback: false in the PlatformAgent CR, or the chart’s platformAgent.integration.<slack|googleChat>.answerFeedback. On an install made with install.sh, put that value in a TF_VAR_extra_helm_values line in install.env, for example TF_VAR_extra_helm_values='{platformAgent={integration={googleChat={answerFeedback=false}}}}'. Answers, alerts and reports then carry no buttons and nothing is kept. With both platforms on, either field turns it off on both. Tapping a button already posted counts nothing, keeps nothing and opens no box; Slack still highlights the tapped button. Ratings kept before you turned it off stay until the bucket drops them.
On Microsoft Teams, set spec.integration.teams.answerFeedback: false. A2A_TEAMS_ANSWER_FEEDBACK=false on the operator, through the chart’s operator.extraEnv, turns it off too. Each is the same one switch as the two fields above: it turns feedback off on every platform the install has, not on Teams alone. On a Teams card already posted, the 👎 form still unfolds, and Send keeps nothing.
/feedback
Section titled “/feedback”/feedback is the gateway’s other command: how to report a problem with kube-agents itself (the harness, the agent, the operator, the docs) rather than with your cluster. Sent on its own, the gateway answers in place, starts no task, and whatever the conversation is doing carries on:
📝 To report a problem with kube-agents itself:• Open an issue: https://github.com/gke-labs/kube-agents/issues• Or use the feedback form, which needs no account: https://gke-labs.github.io/kube-agents/feedbackA report needs a one-line summary, the kind (Bug, Feature request, Question or Other) and what happened. A submission becomes a public issue, so keep cluster names, project ids and anything read from a Secret out of it.To have it written up and filed for you, send `/feedback <what happened>` — I'll show you the exact text and ask before anything is filed.For a usage summary of this install you can paste into a report, send `/feedback summary`.Sent with text, /feedback the cost report posted twice this morning, the message is an ordinary turn and the Planning Agent answers it. It writes the report up as the form would receive it, a one-line summary, the kind and what happened in your words, says that a submission becomes a public issue on gke-labs/kube-agents, and asks for a yes. Nothing is filed until you give one. On yes it hands the exact text to the platform specialist, which files it through the public feedback form; the reply names the issue the form opened. The form needs no account and the install needs no GitHub credential for it. The same text sent again within a day is not filed twice: the reply names the issue already open.
The draft also offers to add the install’s usage summary, with no names in it: the environment and usage sections of the block /feedback summary prints. The lines the agent cannot read from where it runs say unavailable. Say add the usage summary. The reply is an ack, and the block is posted into the thread when the specialist’s card completes. Your next message, a yes included, gets the draft shown again with the block as its environment, and the question asked again. Only a yes to that draft files, so nothing is attached that you did not read. When the block could not be rendered, the draft comes back without it.
When the install cannot reach the form, the reply says that nothing was filed and gives the composed text back with the two links above, so you can file it yourself. An air-gapped install, or one whose credential broker has no route to the form’s hosts, answers this way every time.
On Slack, start the message with the bot’s mention, @bot /feedback, as for /session.
/feedback summary
Section titled “/feedback summary”/feedback summary is the one /feedback <text> the gateway answers itself. It posts one fenced block, short enough to read in full before pasting it into an email or a chat message, with no model in the loop. The block holds:
- the image tag, the mode, the Kubernetes version, and the install’s age and readiness;
- the model as
provider/namefrom the resource’sstatus.inference(unavailablewhile the operator has not written it); - the reasoning effort configured on that model, from the same status (
unsetwhen the config states none,unavailablewith the model); - the
status.usagecounters and readings; - one
proposals by origin:line, the origins whose count is above zero, as the agent reports them (nonewhen all are zero,no readingwhen the status has none); - the credential broker’s top five
tool/subcommandpairs since its pod started, fromstatus.usage.topTools(unavailablewhile the status holds no list); - the install’s token and spend totals since install, from
status.usage, which the operator keeps across LiteLLM restarts; - a roll-up of the chat turns the gateway’s own records still hold (ended, cancelled, active);
- a short feedback template.
The line is labelled chat turns, not tasks, because the script’s tasks line counts kanban cards and the two pastes from one install would otherwise disagree under one label. The roll-up’s window is fourteen days, or the install’s session TTL when that is shorter, since the gateway deletes a conversation’s records once it has been idle that long. The gateway’s records hold a turn’s start, a cancel and whether it is the conversation’s running turn, not its outcome: a turn that ended any other way counts as ended, where the script’s block tells done from failed.
It names no cluster, project, namespace, task or person. The gateway audits the block outside two lines: its model: line, which carries only the provider and model name from the status, and its proposals by origin: line, which carries only fixed words and digits. It refuses to post a block whose audited lines contain the install’s own name, namespace, or any naming string from its declaration (the harness, scope, integration, security, telemetry and network-policy settings), and says so instead. The block’s own words, such as a bucket or interface name, are not refused.
The one figure the gateway cannot see from where it runs, latency, is in the block scripts/feedback-summary.sh prints from a workstation. That block has the same environment, usage, performance and feedback sections, the same check, and more besides (the cluster scale counts, LiteLLM’s live token, spend and latency figures and recent task rows). When the gateway cannot read the PlatformAgent resource, it says the summary is unavailable and points at the script.
In the A2A console a usage summary button in the chat footer sends the same command, and the block it answers with has a copy button. The web console answers /feedback summary itself, with the same block under the same check. Its chat turns line reads unavailable over the full fourteen days, because that console cannot read the gateway’s records. The Hermes gateway (Slack beside Google Chat) does not read this command, as for the rest of /feedback.
The Slack Home tab
Section titled “The Slack Home tab”Opening the app’s Home tab in Slack shows a dashboard of the fleet, drawn without a model call, so it costs no tokens.
Fleet lists the clusters the agent manages, and any other cluster an open finding names, worst first. A member project’s clusters are the ones the scope publisher listed for it in the resolved scope. The management project’s clusters, and those of the projects spec.scope.projects names, which the publisher does not list, come from their Cluster Agents until those retire. A cluster whose name repeats across projects is shown as project/cluster.
Each cluster shows its worst open finding and how many more it has, or no open findings; past 15 it names how many more clusters there are. Until the first onboarding report is delivered, or its findings are in the queue, a cluster with no open finding shows ⚪ no findings registered yet instead. In that time, until someone writes to the agent within a week of the scan, the panel adds “Send me a message to get your first report and findings.”
A project whose clusters the tab has no list for is named instead of dropping out. Member projects the publisher could not read share one (clusters unread) line, which names up to three projects and then how many more; the management or an explicit project with no Cluster Agent yet gets a (clusters not listed here) line. Either line is drawn ⚪ health unknown, never green, is always shown past the 15-cluster cap, and is not counted as a cluster: with only such lines, the count reads No clusters listed.
Waiting on you lists the questions with buttons that are still open in the threads where you asked, each with an Open thread button. Running lists the cards in progress, each with the cluster its agent is scoped to, when the tab lists that cluster. Recent pull requests lists the last five pull requests cards opened. Last audit names the fleet audit that finished most recently, with its counts and a button to its ledger issue. Any panel but Fleet is left out when it is empty, and times show in your own time zone. If the agent’s pod cannot be read, the tab says so instead of showing an empty fleet.
The tab is drawn when you open it and drawn again, for about ten minutes after that, when a card moves or a question is asked or answered. Waiting on you comes from questions the gateway posted since it last restarted.
Only a member on the allowed users list sees the dashboard; anyone else who opens the tab sees one line saying the fleet is shown only to the people the install lets ask it. With the list left empty, that is every member of the app’s own workspace, checked with users.info; if that check fails, the tab is left blank rather than refused. A Slack Connect guest the list names as T…:U… sees it too, checked the same way. The app needs the Home tab turned on and the app_home_opened event in its manifest (Slack app setup). Under the dashboard, the Home channel panel names where alerts and reports post and lets an allowed member pick another channel (Home channel).
With KUBEAGENTS_DIAL=on (off by default), the Autonomy dial panel sits above the Home channel panel. It shows what the agent may change on its own: Explain (finds and explains, changes nothing), Propose fixes (opens a pull request, your team merges) or Auto-merge proven fixes (your pipeline merges proven fixes).
Under the level, each kind of fix shows one repository’s clean merges toward the auto-merge offer, for example org/infra · 3 of 5 clean merges · off, with a picker when the kind has fixes in more than one repository. The state is off, Pending: rules PR #N while the pull request that changes it is open, or auto-merges. A note under the row says why the last change did nothing, when it did nothing, or that the kind is stepping down (below).
When an auto-merged fix is still broken, the post-merge check opens a pull request that adds a deny rule. The row shows it as pending, with the note Stepping down: PR #N was still broken after it merged. Once the deny rule merges, the row reads off and the note Stepped down: …. If the pull request is closed instead, the row goes back to auto-merges. To allow the kind again, delete the step-down’s deny rule from the rules file by hand.
A member listed in KUBEAGENTS_DIAL_ADMINS also gets the level’s radio buttons and a Request auto-merge or Stop button for the repository shown. Everyone else sees the same lines read-only. The agent checks the presser on every change, and its one-line answer appears under the panel for the person who pressed. While a step-down’s pull request is open, Stop answers that it is already stopping and opens nothing, and Request auto-merge is refused until that pull request is merged or closed.
Risk-tier rules (max_risk in .kube-agents/automation.yaml) apply only to dev and test environments and obey the dial’s top-level Auto-merge ceiling. They do not yet appear as per-kind clean-merge rows on the panel. For changes under clusters/<cluster>/, KUBEAGENTS_POST_MERGE_CHECK verifies merged risk-classified pull requests (verified_healthy) and opens a reason: step-down pull request if an auto-merged change is still broken.
People seen
Section titled “People seen”The gateway keeps a record of the people who write to it, so an install can count them. Each person who writes on Google Chat, Slack, Discord or, where the gateway serves it, Microsoft Teams, once the gateway has verified them, has one hashed key and the time of their last turn, within an hour. A person is the identity the gateway attributes the turn to, so a principal map that folds two member IDs into one identity makes them one person. The key is derived for this record alone and matches no other pseudonym the install keeps.
The doors and the A2A console are not people and get no key. A platform the install still serves through Hermes, Microsoft Teams on the Hermes path (spec.integration.teams.backend: hermes, or the operator’s A2A_TEAMS_BACKEND=false with no backend named), is outside the record.
The record is the people bucket of the install’s NATS server, and only the gateway can read or write its records. The setup job can list the bucket’s keys, which are the hashes alone. Whoever holds the gateway’s attribution salt and a directory of addresses can re-identify a Google Chat sender’s key by hashing the directory, as they can the other pseudonyms the gateway stamps on each turn today. The bucket drops each key 30 days after the person’s last turn. Nothing is sent anywhere else.
The gateway’s metrics serve two counts, the people seen in the last 7 days and in the last 30 (Observability). Each is one number; no key is in a label. The keys derive from the gateway’s salt, which the installer keeps across upgrades. If the salt changes, everyone gets a new key, and the counts read as new people for one window.
To remove one person, whoever holds the gateway’s NATS credentials deletes that person’s key from the bucket. The count drops at once. The delete leaves a marker that carries the key’s name, and the bucket’s 30-day limit removes it.
To turn the record off, set spec.telemetry.peopleSeen: false in the PlatformAgent CR, or the chart’s platformAgent.telemetry.peopleSeen. On an install made with install.sh, put that value in a TF_VAR_extra_helm_values line in install.env, for example TF_VAR_extra_helm_values='{platformAgent={telemetry={peopleSeen=false}}}'. The gateway then writes no key and serves no sample. At its next start it deletes every key the bucket holds.
How a chat question is answered
Section titled “How a chat question is answered”A message from Google Chat or Slack reaches the A2A gateway rather than a listener in the agent pod. The Planning Agent still answers it, and still hands cluster work to a specialist as a kanban card. What the gateway changes is how the message reaches the Planning Agent, over the message bus, and how the card’s answer gets back to the thread, through the gateway. Setting up the Slack app for the gateway is covered in Slack app setup.
The commands below assume the default resource names (platform-agent) and the kubeagents-system namespace. The gateway logs one JSON object per line.
-
The gateway takes the message. It refuses a sender the channel’s allowed-users list does not admit. It posts a status line in the thread that reads
⏳ submitted…(on Google Chat; Slack shows Working… on the thread instead), and publishes the message as a task for theplatformaddressee. When at least as many requests are already waiting or running as the bridge runs at once (10 by default), the status line says how many are ahead of yours instead:⏳ queued — 10 requests are ahead of yours; I'll start on it as soon as there's room. Each message that starts a turn logs aningressline with itstaskId,conversationandaddressee:Terminal window kubectl logs deployment/platform-agent-a2a-gateway -n kubeagents-system -c gateway | grep '"msg":"ingress"' -
The bridge hands it to the Planning Agent. The
hermes-bridgecontainer in the agent pod takes the task from the bus and sends its text to the Hermes API server in the same pod. The server runs it as a turn under thedefaultprofile: the Planning Agent (on an install that enables the experimentalplatformFrontDoor, the Platform Agent instead). Every message in one thread lands in the same Hermes session, so a turn sees the thread’s earlier turns. The status line changes to⚙️ working. The bridge logs which executor it runs when it starts, and atask acceptedline for each task:Terminal window kubectl logs deployment/platform-agent-gateway -n kubeagents-system -c hermes-bridge | grep -E 'hermes bridge consuming|task accepted'The startup line should carry
"executor":"api". Its"profile":"platform"is the bus address the bridge takes tasks from, not the Hermes profile that runs the turn.apiis the only executor. The operator ignoresA2A_BRIDGE_EXECUTOR=cliand logs that once. A bridge sidecar that aPlatformAgentdeclares withBRIDGE_EXECUTOR=cli, or with no API server key, exits at start and logs the variable to change. -
The Planning Agent files a card and acknowledges. It routes the request: to the Cluster Agent for a named cluster’s live runtime state (or the host cluster’s agent for “this cluster”) when one is on the roster, otherwise to
platform. It files a kanban card for that specialist, then replies with one short line naming what is being checked, such aschecking prod-east.The gateway posts that line as a message (on Google Chat, the status line becomes that line). The turn has ended; the work has not. The gateway logs the end of the turn:Terminal window kubectl logs deployment/platform-agent-a2a-gateway -n kubeagents-system -c gateway | grep '"msg":"task terminal"'A failed turn’s line carries
reason, the executor’s reason token. When the executor’s failure is a model API error the gateway recognises, the line also carriescause, such asapi-error-529-overloaded_errororapi-error-503. A core-agent turn’s failure is classified by kind too:context-length,max-tokens,empty-response,compaction,panic,blocked,timeout,transportorincomplete-stream. A turn that failed with reasonerror_during_executionand an error the gateway doesn’t recognise carriescause: unknown. Neither field copies the executor’s own text.A message sent while a turn is still running is queued as the next turn in the same session (
✏️ got it, I'll take that next). One sent after the acknowledgement starts a new turn. -
The specialist works the card. The kanban dispatcher in the agent pod starts the specialist against its own profile, with its own identity, permissions and cluster access (Security and IAM is canonical). No setting is needed to let it read a cluster. To inspect the cards and read one:
Terminal window kubectl exec deployment/platform-agent-gateway -n kubeagents-system -c platform-agent -- hermes kanban listkubectl exec deployment/platform-agent-gateway -n kubeagents-system -c platform-agent -- hermes kanban show <task_id> -
The answer comes back to the thread. Before a task’s first turn the bridge records which conversation its Hermes session answers, so the card is addressed to that conversation. As the specialist works, the gateway posts each progress note into the thread or DM you asked in, and then the card’s result. Two things differ from delivery through a Hermes chat platform. A card’s progress is one plan message the gateway edits in place with
KAGE_SLACK_UXon, and a message per note with it off. A file the card produced is not attached.If the card blocks or fails, the thread gets the card’s own blocked or failed line from the notifier. The Planning Agent’s wake for it runs in the bridge’s session, and its reply is not posted. The gateway posts only into a conversation it is still holding, the one whose session record carries the card’s context, and refuses anything else. It logs each post it makes:
Terminal window kubectl logs deployment/platform-agent-a2a-gateway -n kubeagents-system -c gateway | grep -E '"msg":"(chat.notify route armed|notify posted|notify refused)'At startup
chat.notify route armedshould carry"conversations":true. Eachnotify postedline names the conversation it posted into in itsthreadfield, the same key as theconversationfield on the question’singressline.
The session pods that Security and IAM describes are a different path. The gateway starts one only for a message that begins with the word delegate (delegate: check prod-east), which runs that one task in its own pod, or for a conversation moved onto its session route with the /session command. Such a pod reads the cluster only under the session pods’ cluster view: on by default when the install sets defaultRoute: session, or with the operator’s A2A_SESSION_CLUSTER_VIEW=true. Any other message follows the steps above, which that setting does not affect.
Microsoft Teams
Section titled “Microsoft Teams”An experimental Microsoft Teams Bot Framework relay (spec.integration.teams) connects the A2A gateway, or on the Hermes path the Hermes gateway, to /v1/chat/teams/* on the credential broker. The broker holds TEAMS_APP_ID and TEAMS_APP_PASSWORD, mints and caches Microsoft Entra OAuth 2.0 client_credentials tokens, and enforces optional single-tenant isolation (TEAMS_TENANT_ID). Outbound calls on /v1/chat/teams/api are restricted to POST v3/conversations/<id>/activities, plus PUT on one activities/<id> for the gateway’s status line (excluding /activities/history), on official Bot Framework hosts (smba.trafficmanager.net and *.botframework.com, with query strings, fragments, and HTTP redirects refused). The same hosts take PUT and DELETE on one activity’s reactions/<reaction>, for the bot’s own reaction on your message. POST v3/conversations opens a one-to-one chat with one person, held to the install’s tenant, and needs a tenant set.
The broker also relays GET v3/conversations/<id>/pagedmembers, which reads one conversation’s members. It returns member ids and whether there are more, never names or emails.
A shared channel or a group chat can hold members of other organizations. With allowAllUsers on and tenantId set, the gateway that serves Teams, on either path, reads each sender’s member record there. The broker relays GET v3/conversations/<id>/members/<member> for the read and returns the member’s ids and, when the record names a tenant, whether it is the install’s, never the tenant id. A sender whose record names another tenant gets no answer and is told once. One whose record cannot be read, or names no tenant, gets no answer. A sender whose Entra object id is in allowedUsers is served without the read. Each answer is reused for five minutes. With allowAllUsers off, no such read is made.
Where the gateway makes this read, it needs the bot in the conversation. A person who uses the message action in a chat the bot is not in gets no answer there: the bot tells them so in their personal chat, quoting the message’s words when it has any.
The in-pod event queue (/v1/chat/teams/events, /ack, /nack) is wired between its consumer and the credential broker. The consumer is the A2A gateway, or on the Hermes path the Hermes gateway, and it, not the broker, applies the user allowlist (allowedUsers / allowAllUsers). List users by Entra ID Object ID (from.aadObjectId) or from.id: an inbound Teams activity carries no UPN or email, so such entries match no one, and display names are never matched.
Proactive alerts and the default scheduled reports (below) go to Google Chat and Slack, and to the Teams home channel while the A2A gateway serves Teams. On the Hermes path, a cron job whose deliver names teams posts its report to the Teams home channel (TEAMS_HOME_CHANNEL, rendered from homeChannel).
Where the gateway serves Teams, the home channel is spec.integration.teams.homeChannel. It must be a conversation ID (19:... for a channel or group chat, a:... for a personal chat), never a channel thread. With it set to something else the agent posts nothing to Teams unprompted, and its card reports into Teams conversations stop too. With it empty, the PlatformAgent carries the HomeChannelUnset condition. The gateway then keeps the posts it refused, up to fifty for thirty days, and posts one digest into the channel once it is set. It refuses and keeps them only when no platform on the gateway has a home channel.
The A2A chat gateway consumes that queue instead of the Hermes adapter unless spec.integration.teams.backend is hermes: the broker admits the gateway pod as a caller, and the Hermes Teams platform is not rendered. A PlatformAgent that names no backend gets gateway. A2A_TEAMS_BACKEND=false on the operator, through the chart’s operator.extraEnv, keeps every such agent on the Hermes adapter.
What this means for an evaluator: enabling spec.integration.teams alone gives you the outbound half. Alerts and scheduled reports post to the Teams home channel, as Adaptive Cards by default. A message typed in Teams reaches the agent only with the inbound receiver on (spec.integration.teams.inbound.enabled, with tenantId). The operator then runs a pod that accepts the requests Microsoft delivers for the bot, verifies Microsoft’s signature on each one, and hands the message to the install. You expose its Service with your own Ingress and TLS certificate and register that address as the bot’s messaging endpoint; Microsoft Teams app setup walks through it.
Proactive alerts (both channels)
Section titled “Proactive alerts (both channels)”The harness doesn’t only reply to messages. A cluster event posted to the in-pod triage endpoint (inject_message in agents/platform/scripts/session_kv_server.py) opens a thread unprompted: it posts the alert first, then runs the triage turn in the thread that alert created. If the agent gateway cannot start that turn, even after retries, a notice in the thread says that triage did not start, whether the alert comes back, and that you can ask about it there (details). On Slack and on Google Chat, the triage then edits the alert itself through the gateway.
The first-run inventory report arrives the same way, into the thread bootstrap_onboarding bound, when that first message comes within a day of the sweep. After that the report is an issue in the GitOps repository when it is on GitHub, or else in the install’s one managed GitHub repository. One line linking it goes to the home channel, kept for the digest while none is set.
On Slack and on Google Chat, with KAGE_SLACK_UX on, the inventory report arrives as the card described under First-run onboarding, built from the stored findings. The card has a headline counting the things to fix first, one row per listed item with its scored risk and the action to take, and the rest counted. The scan’s checks are folded, with a button to fix the first one and, when more items are queued than listed, one to see them all. Clicking one answers as your turn in the thread; a click from someone the agent does not answer changes nothing.
When no card can be built, the report is posted as text, reshaped with a headline, the listed findings as rows with the sentence under each kept, and its closing lines. The same text goes on an install whose onboarding was bound to a chat thread before the upgrade that moved its chat to the gateway, when Slack refuses the card or the post fails. A report that does not parse to that shape is posted as written. The report closes with a short note on the first-run audits (see First-run onboarding); beside the card, that note is a separate message after it. Where an unprompted message lands:
- Google Chat: to the space that owns the interaction, or the space set via
GOOGLE_CHAT_HOME_CHANNELor learned from the first mention. - Slack: to
SLACK_HOME_CHANNEL. - Microsoft Teams, where the gateway serves it: to the conversation
spec.integration.teams.homeChannelnames.
An alert goes to one of them, not both: it opens a thread that the triage turn then replies into, and a thread belongs to a single platform. The agent picks one platform for the alert among the platforms that have a home channel: one whose home channel is configured before one whose home the gateway learned, and Google Chat before Slack when both are alike. With none, the gateway keeps it for the digest on the first platform.
A scheduled report has no such constraint. The default jobs’ deliver: chat relays it to every enabled platform among Google Chat and Slack, and to Microsoft Teams while the gateway serves it. On the Hermes path a job whose deliver names teams posts to the Teams home channel instead. The relay design is canonical for both rules.
A governance watchdog’s findings live on its ledger issue and the remediation pull requests that link back to it. Its scheduled report on this path is usually one line of counts ending with the ledger link, so the report to read is the issue — see Proactive autonomy and Autonomous watchdogs for the schedules.
With KAGE_SLACK_UX on, Slack gets a card built from the open ledger issue, and so do Google Chat and Microsoft Teams. Its headline carries one number, how many findings of the most severe level the issue lists (“Security & RBAC Posture Audit: 2 critical findings”). Up to ten critical findings are listed under it, each led by its severity and tagged “new” when it was not there on the last run. With none critical listed, the headline counts the most severe level listed and lists the top two.
A line under them counts the rest by severity (“5 more (1 major, 4 minor) are in the ledger issue.”), and another names any clusters the run could not check, since a silent gap reads as clean. Then come a “Look at the first one” button and a button that opens the issue.
Clicking “Look at the first one” starts a turn for you in the card’s thread, as if you had typed the button’s label. The buttons give way to a line naming who chose, only the first click counts, and a click from someone the agent does not answer changes nothing. A clean run closes its ledger, so its card is one line: “Security & RBAC Posture Audit: clean. Ledger closed.” A run with no findings that left the ledger open because it could not check everything is posted as the report’s own line in bold with the link, since the issue does not show this run’s counts. (A ledger that a coverage gap opened shows this run’s gaps, but no findings.)
A scheduled run that speaks because an on-demand run changed the findings since the last scheduled run also gets a card, built from the ledger. The card counts “new” against the last run of either kind, so the change since the last scheduled run is not on the card; only the text report says it, on a line of its own. Nothing else is posted in the card’s thread: the ledger issue holds the rest.
On an install with no GitOps repository there is no issue, so the card is built from the audit’s own summary. It holds:
- a headline that also says what changed (“Security & RBAC Posture Audit: 6 critical findings, 2 resolved.”);
- one short line for each of up to three critical findings (or the top two of the most severe level present). Each names its cluster, its namespace when it has one, and what is wrong (“seeded-a: control plane is public”, “seeded-a/payments: api runs a privileged container”);
- the rest counted by severity;
- the change since the last scheduled run when an on-demand run saw it first (“Changed since the last scheduled run: 1 resolved (…).”);
- any clusters it could not check;
- a line saying that no ledger issue or fix pull requests were opened;
- the “Look at the first one” button, with no issue button.
That card is posted only when no repository is registered at all. A summary that names a repository the run could not reach, or several repositories with none chosen, is posted as written, so that the fix it gives is not cut short. The headline is posted as text where Slack refuses the buttons or the message, and also where the report was truncated, too little time is left, or the buttons cannot be posted at all. A reply in the thread is answered with the full report in context either way.
A scheduled audit’s report, for an audit the install ships, is the one its finish step rendered, not the agent’s last message. An audit run that failed posts one plain line saying it didn’t run, why, and when it tries again (or that an admin needs to fix it), once until the job runs again. One that stopped before that step without failing posts one line saying it did not finish, with the job to look up in the run log.
A run publishes to one repository, the one with role: gitops. Only a run that a person started for several repositories posts more than one report. It posts the report of each repository it finished, then a line naming the rest, and that message is posted whole rather than as a card. The card goes through the A2A gateway, which lays out the same card, on Slack, on Google Chat and on Microsoft Teams.
Daily alert ceiling
Section titled “Daily alert ceiling”Each cluster-event alert and each drift alert spends one unit of a daily budget. When a bucket is spent, the alert does not go to chat, and no triage turn starts. The budget is fleet-wide: one count serves all the clusters that the install watches. It resets at 00:00 UTC. A value of 0 removes the cap for that bucket.
| Bucket | What it counts | Default | install.env key |
|---|---|---|---|
Critical |
Critical cluster events | 10 |
ALERT_DAILY_LIMIT_CRITICAL |
Warning |
Warning cluster events | 5 |
ALERT_DAILY_LIMIT_WARNING |
Info |
Nothing today: the severity gate drops Info events | 5 |
ALERT_DAILY_LIMIT_INFO |
GitOpsDrift |
Drift alerts for cluster changes that people make by hand | 20 |
ALERT_DAILY_LIMIT_DRIFT |
agents/platform/docs/session_management.md gives the reasons for these defaults and for each bucket.
Most drift changes that reach the drift detector late do not spend the GitOpsDrift budget. A change is late when its audit record was published before the detector started to read, for example most changes that an install or a restart of the agent pod makes, or when the record waited more than 30 minutes. The agent posts one “Drift backlog” message for each group of late changes. The message counts the changes by principal and names some of them. On an install with no chat platform enabled, the message is one card on the task board instead. The card has no assignee and waits on a person; no agent acts on it.
Late changes in the message get no triage turn, and the feed GET /v1/intercepted-events lists them with the status backlog. Some late changes get a triage card and spend the budget instead: a change made with kubectl, and every late change of a principal with fewer than three changes in the group. When the budget is spent, a late change of such a principal is counted in the message instead. A late kubectl change is handled as a live change is, so it is lost from chat and the feed lists it as suppressed.
One kubectl change is not in that rule: a change to a kube-agents CRD on an install that Helm made, as the installer does. The paragraphs below describe it.
An upgrade of kube-agents changes its own objects while the drift detector reads, so those changes are not late. On an install that Helm made, they go to “Drift backlog” messages too and do not spend the budget. One upgrade usually makes two messages: one for the CRDs, which the installer applies first, and one for the other objects. A long upgrade can make more.
This applies only while the same person has a Helm upgrade of kube-agents under way, and only to a change that is not made with kubectl. The change must be to one of these objects:
- an object in the two kube-agents namespaces
- a cluster-wide access object or admission object named after the kube-agents Helm release
- an object elsewhere that Helm marks as part of the release
The message names that person, the Helm release and its revision.
Without a Helm upgrade, each such change gets a triage card, about one minute later than other changes. When the budget is spent, the message names the change on a “Review:” line.
A change to a kube-agents CRD needs no Helm upgrade: it goes to the message when its person has three or more changes in the group, and it gets a triage card when the person has fewer. A change to the other kube-agents objects that is made without a Helm upgrade is not in that count. A delete gets a triage card. The detector of the release that is in service reads the upgrade, so the first upgrade to a release with this rule still gets a drift alert for each change.
Set a ceiling in one of these places:
- The
ALERT_DAILY_LIMIT_*keys ininstall.env. An empty key keeps the default.install.sh, the Day-2 menu andupgrade.sh --upgrade-mode=fullapply these keys. The other modes ofupgrade.shuse the values that the release recorded. But eachupgrade.shrun examines the keys, and a value that is not a whole number stops the run. - The chart value
platformAgent.deployment.alertDailyLimits, with the keyscritical,warning,infoanddrift. - The Terraform variable
alert_daily_limitsinterraform/examples/full-install, with the same keys. - An
ALERT_DAILY_LIMIT_*entry in thePlatformAgentCR’sspec.deployment.env, on an install that no chart manages.
Each of the first three routes renders the keys that are set into spec.deployment.env. Helm replaces the full spec.deployment.env list on the CR at each apply that changes the list that the chart renders. This includes the apply that sets the first key, an apply that changes a value, and the apply that removes the last key. Entries that you added to the CR by hand are then lost. Before you set a key, move a ceiling to its key, and move another name to the chart value platformAgent.deployment.env (extra_helm_values on the Terraform install).
A change to a ceiling restarts the agent pod and the credential-proxy pod. A re-tag with upgrade.sh --upgrade-mode=operator or harness to a release whose chart does not declare alertDailyLimits needs --drop-undeclared-values. The ceilings then go back to the defaults.
Reading what the ceiling held back
Section titled “Reading what the ceiling held back”Suppression is silent in chat. No message says that a bucket is spent. To see the counts, read /v1/alert-quota from the agent pod:
kubectl -n kubeagents-system exec deployment/platform-agent-gateway -c platform-agent -- \ sh -c 'curl -s -H "Authorization: Bearer $SESSION_KV_API_KEY" \ http://127.0.0.1:8699/v1/alert-quota'Add ?day=YYYY-MM-DD to the URL for an earlier day. The reply gives limit, sent and suppressed for each bucket that has a cap. suppressed counts each offer that the ceiling refused. The event watcher offers a refused workload again on its next sighting, so one workload can add many offers to suppressed. The event watcher also counts these refusals in the k8s_event_watcher_events_quota_suppressed_total metric.
The daily recap has the line “N alerts from M workloads withheld by the daily ceiling and never reached chat”. N counts each pod and reason one time, so it can be lower than suppressed. M counts the workloads that sent those alerts. The pods of one Deployment are one workload. N is one count for the Critical and Warning buckets together. The recap runs at 21:00 UTC on weekdays, and each recap covers the time since the previous recap. Thus the recap period is not the UTC day of /v1/alert-quota, and the Monday recap covers the weekend.
Drift refusals never appear in the recap. The GitOpsDrift row of /v1/alert-quota and the session server log show them. The drift detector does not offer a refused record again, so that alert is lost from chat.
The recap line “N events from M workloads were silenced by alert-exclude rules” counts the events that the alert-exclude rules held back, and names the five workloads that sent the most. These events never reached the ceiling, and GET /v1/intercepted-events lists them with the status excluded.
The recap line “N alerts failed to post to chat” is a different problem. It means that chat refused the post, or did not confirm it. Some of these alerts can be in the channel. A higher ceiling does not change this count. Look in the session server log for the cause.
Sizing a bucket
Section titled “Sizing a bucket”The counter is fleet-wide, so the demand on it increases with the number of clusters. Size each bucket from a week of data. A bucket with a value of 0 counts nothing, and /v1/alert-quota does not show it. To measure that bucket, first set a high cap on it for the week.
- For each of 7 days, read
sentandsuppressedfor the bucket from/v1/alert-quota?day=YYYY-MM-DD. ForCriticalandWarning,suppressedcounts repeat offers, so the sum can be higher than the real demand. ForGitOpsDrift,suppressedhas no repeat offers. The recap’s withheld line cannot give a count for one bucket or for one UTC day. - Add the
sentand thesuppressedcounts, and divide the sum by the number of clusters. The result is the demand for each cluster. - Set the bucket to that demand multiplied by the number of clusters that you will run. Do not set it higher than the number of alerts each day that the on-call can act on.
- If the demand is higher than that number, reduce the inflow: fix the workloads that alert most. Do not raise the bucket. Event watcher tuning and cost lists the settings that reduce the inflow.
One incident per workload
Section titled “One incident per workload”Without folding, each pod and each reason of a broken workload is its own alert: a Deployment with three replicas that cannot pull its image posts three alerts, starts three triage turns, and spends three units of the Warning budget. INCIDENT_WORKLOAD_DEDUP_SECONDS folds them into one, and is on by default at 3600, an hour. Within that many seconds of an alert, a later Warning event for the same workload, or a later Critical one after a Critical alert, posts nothing, starts no triage turn and spends no budget.
The same workload means the same cluster, namespace and kind, and either the same owning workload for a pod or the same name for an object that is not a Pod. The event watcher reads a pod’s owner from the pod’s metadata, so the pods of one Deployment, StatefulSet, DaemonSet or Job fold into one alert. Two workloads of different kinds stay apart even with the same name. The runs of a CronJob are separate Jobs, so each run is its own alert.
If the watcher cannot read a pod’s owner, for example because its identity may not read Pods on that cluster, or the owner is not a Deployment, StatefulSet, DaemonSet or Job, only a Deployment’s pods fold. They fold by the ReplicaSet hash in their names (such as checkout-6cfdb6b98b-zwv24), and other pods each still alert.
An alert says when a workload broke, once: while the same pods keep retrying a failing image pull, the workload is not announced again. For a Deployment, StatefulSet or DaemonSet that it judges, the daily Workload Reliability audit keeps the standing record. It files a finding on its ledger at each run that finds a pod ten minutes into a failed pull, and the finding leaves at the first run that finds none (what each SOP checks).
A Critical event after a Warning alert is announced, so a workload that gets worse is announced again. A restart of the agent pod ends every open window, so the first event after one is announced again, unless its fix is waiting for review (below). The feed GET /v1/intercepted-events lists a folded event with the status folded. The value is a whole number of seconds; 0 turns folding off, a larger value than 86400 counts as 86400, a negative value counts as 0, and a value that is not a number counts as the default.
Change it with the chart value platformAgent.deployment.incidentWorkloadDedupSeconds, which renders the entry into the CR’s spec.deployment.env, or set that entry yourself on an install that no chart manages. On an install made with install.sh, put the value in a TF_VAR_extra_helm_values line in install.env, for example TF_VAR_extra_helm_values='{platformAgent={deployment={incidentWorkloadDedupSeconds=0}}}'. 0 turns folding off:
platformAgent: deployment: incidentWorkloadDedupSeconds: 0An entry named INCIDENT_WORKLOAD_DEDUP_SECONDS in platformAgent.deployment.env wins over the key. A change to the window restarts the agent pod and the credential-proxy pod, and the first apply that renders the entry replaces entries added to the CR’s spec.deployment.env by hand, as the ceilings paragraph above describes.
With folding on, a workload that breaks again after the window, while the pull request the agent opened automatically to fix one of its recent incidents (INCIDENT_TRIAGE_OPEN_PULL_REQUEST) is still open for review, also starts no new triage turn. This covers any object that comes back under the same workload: a new pod of the same owning workload (a Deployment’s, StatefulSet’s, DaemonSet’s or Job’s), and a bare pod or other object that comes back under the same name. If the watcher cannot read a pod’s owner, any pod that comes back under the same name is held too. A pull request a person opened by hand, or one opened for anything else asked in the incident’s thread, does not count.
A fix opened by replying apply or clicking an option button in the incident’s own thread holds a recurrence the same way. The hold counts the first card for the Platform Agent filed from that thread within 30 minutes of the reply. A later card in the thread does not count, and neither does an apply typed in the main space or the first reply in a Google Chat direct message, which is answered at top level. An apply on the platform the A2A gateway holds is not recorded and does not hold.
With folding on by default, an install that opens fix pull requests runs this lookup for every new incident. The search is bounded, and a forge that does not answer in time announces the event as a new incident.
The hold covers the same fault only: the event’s reason must be one the incident showed, its own or one folded into it, so a workload waiting on a fix for BackOff that starts failing Unhealthy gets a new incident. For the same fault, the incident’s chat thread gets one short reminder per window instead, naming the pull request: the fault is already diagnosed and its fix is waiting on a person. Once that pull request is merged or closed, the next new failure is a new incident again. The feed GET /v1/intercepted-events lists such an event as folded, with the pull request in its pull_request field.
session_management.md describes which earlier alert a later event is folded into, and holding a recurrence how the open fix is found.
Opening the pull request without a reply
Section titled “Opening the pull request without a reply”By default, a triage report proposes GitOps fixes and stops. A human replies apply (or apply Option B), and the Platform Agent opens that fix as a pull request. Set INCIDENT_TRIAGE_OPEN_PULL_REQUEST to true to skip the wait. The Planning Agent then files a second card beside the triage card. That card goes to the Platform Agent and names the triage card as its parent, so it waits in todo until the diagnosis is done or archived. If the triage card ends blocked, the second card waits too, and the board health check lists it under the blocked card.
Once the report is complete, the second card opens only the option the report marked Recommended, or the single proposed fix, through submit-suggestion, changing only the files that option calls for and leaving alternative options and unrelated definitions untouched. Any other value, or no value, keeps the default.
Set it as an entry in the chart value platformAgent.deployment.env, or in spec.deployment.env on an install that no chart manages:
platformAgent: deployment: env: - name: INCIDENT_TRIAGE_OPEN_PULL_REQUEST value: "true"A human still reviews and merges the pull request, and nothing is written to the live cluster. The branch is platform-agent/incident-<incident>, keyed to the cluster, namespace, kind, workload and reason. The workload is named the way the fold above names it: a pod’s owning workload when the watcher could read it, and otherwise a Deployment’s pods share their Deployment’s name and any other pod keeps its own name. So a retried event for the same workload revises the open pull request instead of opening a second one.
If the watcher cannot read a pod’s owner, StatefulSet, DaemonSet, Job and CronJob pods, and bare pods, each get a branch of their own, because the pod name alone cannot prove they belong to one workload. Each CronJob run is a separate Job, so it gets its own branch. With the fold on, a workload’s repeat events inside the window start no triage, so they file no pull-request card either. The second card’s result, the pull request URL, is posted in the same thread as the report.
The setting has limits. Drift and controller-stall reports are not covered; they still wait for a reply. On Slack with KAGE_SLACK_UX on, the report’s button for the recommended or single fix is left off when the report says that fix’s pull request is being opened automatically; buttons for the other options stay. A typed apply Option B still works and opens its own pull request. Changing the value rolls the agent pod. The agent ignores the variable in its own .env file, so only the install can turn it on. It is an environment variable for now and can move to a PlatformAgent field once it has proven itself.
Limiting the open triage pull requests
Section titled “Limiting the open triage pull requests”A failure that breaks many workloads at once, such as a node or storage fault, starts many triages, and with INCIDENT_TRIAGE_OPEN_PULL_REQUEST on each one opens a pull request. Set platformAgent.deployment.incidentMaxOpenPullRequests to limit how many are open or being opened at once. The chart renders it as INCIDENT_TRIAGE_MAX_OPEN_PULL_REQUESTS. 0, the default, is no limit.
platformAgent: deployment: incidentMaxOpenPullRequests: 5A triage whose pull request would pass the limit still runs, but its report asks for a reply, as without the setting, and a note in the alert’s thread says that the limit held its pull request back. An incident whose branch already has a pull request is not held: its card revises that pull request. If the open pull requests cannot be counted, because the forge fails or does not answer in time, the triage is held the same way, with a note that says so. As with the switch, the agent ignores the variable in its own .env file.
The limit counts triage pull requests only: the open pull requests whose branch starts with platform-agent/incident-, plus each triage routed to open one whose pull request does not exist yet. The count goes by that branch prefix alone, so a pull request opened by a reply counts only when its branch takes the prefix. A routed triage stops counting when its pull request opens (it then counts as open), when its pull-request card is done or archived, or after 24 hours. A card that is blocked, or waits behind a blocked triage card, keeps counting until then, because it can still open its pull request.
First-run onboarding
Section titled “First-run onboarding”On a fresh install the first chat interaction gets a guided onboarding instead of a cold start. One no_agent cron job on the Planning Agent profile (agents/chat/defaults/cron/jobs.json), oobe, drives it. Every minute it runs four stages: delivery first, then the scan, then the first-run audits, then the lost summaries. The old bootstrap-inventory-scan and bootstrap-inventory-delivery entries ship disabled.
-
The scan stage files a kanban card assigned to the Platform Agent, recording the card’s id in
/opt/data/.bootstrap_scan_filedso it never files a second one. That worker runs the environment-discovery SOP (agents/platform/governance/inventory.md): it lists the fleet, audits any cluster the Cluster Agent roster has no agent for or the first-run cap leaves without a card, and completes. The same cron job files one audit card per Cluster Agent on the roster, up to that cap, each pointing that agent at the single-cluster audit SOP (agents/platform/governance/cluster_inventory_audit_sop.md).Once those cards finish, the same cron job’s hand-off script merges their structured results (fleet topology, Workload Identity and the workload checks the scan runs) into the complete findings at
/opt/data/INVENTORY.raw.md. Any cluster that did not report is named as a gap. It then files a second card, which runs the prioritization SOP (agents/platform/governance/inventory_prioritize_sop.md) against those findings alone. That card scores each one against a fixed rubric and registers all of them in the findings queue before writing the ranked report the user is sent to/opt/data/INVENTORY.md.The scan runs a fixed list of checks and reports what else it sees in passing that no first-run audit checks. The report counts those checks in its posture and leaves security and RBAC, reliability, capacity and cost to the first-run audits stage below. The full findings stay on disk.
The report names the most urgent critical findings, at most
FINDINGS_FIRST_REPORT_CRITICALSof them, and nothing less severe. It says how many items are queued behind them and how many of those are critical, and the findings nudge, whose page also covers that limit, brings those to chat a few a day. A scan with no critical finding gets a report that lists none and calls nothing healthy, since the scan does not check what the first-run audits check. If no cluster’s audit reached the findings, no second card is filed: the hand-off writes a short report saying no cluster was audited and why, so an empty scan is never presented as a clean environment. -
The delivery stage posts that report into the chat once two conditions hold: the ranked report has been written, and a human has connected within a day of the sweep. After that it is filed as an issue instead; see below. On Slack with
KAGE_SLACK_UXon, and on Google Chat, it goes as a card built from the files the prioritization card left beside the report, never from the report’s text. The card has a headline counting the things to fix first, one row per listed item with its scored risk and the action to take, and the rest counted. The scan’s checks are folded, with buttons to fix the first one or see them all.When the card cannot be built, or an origin-path door cannot post it, the report goes as text, reshaped as described above. The onboarding stage log (
logs/oobe.logunder the agent’s data directory) says why. In a recorded conversation a card that did not post is posted again on a later tick. Elsewhere it goes as written.It closes the report with a short note on the fleet audits: what the first-run stage did (the audits are running, which started as part of onboarding, named by area, which did not and why, or why it started none). An audit that finished before anyone opened the chat had no home channel to post its summary to. So the note names every shipped fleet audit that ran since the scan began and whose summary was not posted, however its run started, and gives a request you can send to see those reports. With the card, the note is a separate message after it. It claims the delivery atomically first, so overlapping runs can’t post the report twice.
-
The first-run audits stage runs four of the fleet audits and then the upgrade retrospective once, one after another (
fleet-wide-cost-analysis,compliance-audit,obtainability-audit,stockout-prevention,upgrade-retrospective). It starts as soon as the scan’s ranking card has finished and none of the four is already running. If that never happens, it starts at a fallback of 90 minutes or more after the sweep was filed (longer for a larger fleet). So their first ledger issues arrive soon after the scan rather than at the next scheduled run. An audit that already completed a scheduled run since the scan began is not run again. It does not wait for a human.On an install with no GitOps repository, each audit keeps its report in the report store, and a run that changed something posts a summary that says no GitOps repository is connected. It records what it started in
/opt/data/.oobe_audits_fired. Once the stage is done, no lost first-run summary is still to re-send, and the report was delivered about a quarter of an hour ago,ooberemoves itself. The design isdocs/designs/oobe.md. -
The lost summaries stage posts a first-run audit’s report whose summary found no home channel, once the operator projects a Slack or Google Chat home channel into the pod. It asks the chat relay to post the report as the scheduled delivery would have, while the run is under 90 minutes old; the relay’s record of the post keeps a second copy out. An older run and an audit outside the first-run chain keep the request sentence in the report’s note.
The bootstrap_onboarding plugin (enabled in agents/chat/config.yaml) hooks the first human turn. It greets the user, binds the delivery job to that chat thread and marks that a human is present. For a conversation the gateway holds it records the conversation the message came from, and the report is posted into it through the gateway; it sets no home channel there.
Once the report has been filed as an issue because nobody wrote within a day, the first human turn is greeted once with a link to it and binds nothing. After a retire the first turn gets no onboarding greeting. Once the report is delivered, the flow marks itself complete and the disabled bootstrap entries are removed; oobe removes itself about a quarter of an hour after delivery once its audits stage is done. None of them runs again on that data volume.
The job fires every minute (* * * * *, see Autonomous watchdogs) while the work it guards takes minutes, so each stage records its own marker the moment it acts rather than inferring from the report or from completion. oobe‘s design is docs/designs/oobe.md; the onboarding stages’ design, state markers, and maintenance rules live in the plugin’s README.
What’s not here
Section titled “What’s not here”- One browser page by default. Chat is the primary surface. Every install that enforces NetworkPolicy serves the A2A console, a status page over the bus with a chat pane, reached only through
kubectl port-forward. Two more are off by default. The web console has threads that reach the Planning Agent front door and channels that show event triage and scheduled checks. The Hermes dashboard is a per-pod debugging view the installer offers as--enable-hermes-dashboard(the CRD’s own default is on) that binds loopback inside the pod. A local admin console runs from a repository checkout on your own machine; the install does not deploy it. User interfaces compares them, with the port and the way in for each. - No CLI beyond the Hermes CLI inside the pod.
kubectl execinto the gateway pod and run the Hermes CLI there. The pod hosts several profiles, so a barehermescommand talks to the locked-down Planning Agent; usehermes -p platformto reach the Platform Agent (orhermes -p <cluster-profile>for a Cluster Agent). If you opt the gateway pod itself into a GKE Sandbox (gVisor) RuntimeClass viaavailability.runtimeClassName,kubectl port-forwardcannot see loopback listeners inside the sandbox — PlatformAgent CRD is canonical on that.kubectl execenters the pod either way. - No email, PagerDuty, or generic webhook ingress. Chat channels only.
When no chat platform is enabled
Section titled “When no chat platform is enabled”Both channels are opt-in and default to disabled, so an install that enabled neither has no chat to talk to. It also carries the NoChatPlatform condition, which says where its findings go. The A2A gateway still runs, on its console door alone, so the A2A console’s chat pane reaches the Planning Agent with nothing to turn on: kubectl -n kubeagents-system port-forward svc/platform-agent-a2a-console 8080:8080, then http://localhost:8080. The web console is a browser alternative, turned on with install.sh --enable-web-console; its channels also show event triage and scheduled checks. The Hermes CLI above is another way in, and the installer prints these two commands when you choose “None” at its chat prompt and again when it finishes:
gcloud container clusters get-credentials <cluster> --location <region> --project <project> --dns-endpointkubectl exec -it deployment/platform-agent-gateway -n kubeagents-system -c platform-agent -- hermes -p platformPass --dns-endpoint only on a cluster that publishes an externally reachable DNS endpoint; gcloud rejects the flag on one that does not. The installer resolves that per cluster and prints the flag only when it applies (scripts/installer/gke_dns_endpoint.sh). The -c platform-agent is the Hermes container; the gateway pod runs three, so omitting it works but makes kubectl warn about which one it picked.
This reaches the Platform Agent directly, bypassing the front door: a request typed here is executed by the profile that receives it rather than being planned and filed as a kanban card. A bare hermes reaches the Planning Agent instead, which is where a chat message would have landed and which delegates as described above.
The admin console, started from a repository checkout on your own machine, is one more. Its Chat page reaches the Planning Agent through the front door, so a request typed there is planned and delegated the way a chat message would be. User interfaces compares the browser pages.
Two things a chat-less install does not exercise. Scheduled reports and alert-driven triage are delivered only to enabled chat platforms (Google Chat, Slack, and Microsoft Teams while the gateway’s Teams backend is armed), so neither reaches a person as it happens. The audit reports stay in the report store on the data volume, the triage shows on the board, and other scheduled reports are not kept.
What the alert path did is still readable. Ask the agent through any of these doors what alerts fired overnight? and it answers from its event ledger: the alerts it posted, and the events it held back from chat and why.
The onboarding delivery stage waits a day for a human to connect over chat. Then it files the first-run inventory report as an issue labelled agent:onboarding, in the GitOps repository when it is on GitHub or else in the install’s one managed GitHub repository. A report it could not file is retired a week after the sweep. For that first day the report sits at /opt/data/INVENTORY.md on the shell sandbox pod’s volume.
Read it there with kubectl exec -n kubeagents-system platform-agent-shell-0 -c shell -- cat /opt/data/INVENTORY.md, or in the issue afterwards. The file is renamed INVENTORY.delivered.md once filed or retired.
Or ask through any of these doors. what did onboarding find? answers from that report, show me the full inventory from the sweep’s complete findings, and was the first-run report delivered? says where it went: the chat where the first person wrote, the issue, or retired after a week with nobody arriving.
Where to go next
Section titled “Where to go next”- Overview → Proactive autonomy — what fires the outbound alerts.
- Concepts → Observability — where the traces from chat sessions land.