Release notes¶
What changed in each release, newest first, and what you must do about it. The steps for an upgrade are in Upgrade, which has a section for each change that needs one; this page says what changed and points to it.
Version 0.7.0¶
Two add-ons arrive, both experimental: components that the chart runs beside Agent Kourier, each off until its block under
addons turns it on, and each built, scanned and signed by Agent Kourier's release under the same version.
- Claude Managed Agents (
addons.cma), an A2A server in front of one agent in Claude Managed Agents, Anthropic's hosted agent runtime. A thread is one session of the agent, and a tool call that the agent's permission policy asks about waits on Approve and Deny in the thread. Connect Claude Managed Agents has the setup. - AX (
addons.ax), the agent that wasexamples/ax: an agent built with Google's Agent Development Kit (ADK), on Amazon Bedrock or the Anthropic API, that serves A2A and asks its questions with one tool,ask_user. The chart runs it beside Agent Kourier, and it can still run inside Google AX as a Task. Connect the AX add-on has both routes.
A Binding reaches either through an AgentBackend with the a2a dialect, as it reaches any A2A agent; Add-ons
says what an add-on is. In threads, an answer to a paused task no longer repeats the paused turn's text, and the ending of an
answered tool approval shows one line for each tool. The CRDs, the database schema and the chart's values of 0.6.0 are unchanged.
Upgrade to the release that ships the add-ons has what to check,
the move of the AX example, and how to roll back.
Breaking changes¶
- None for an install of the chart. The CRDs are 0.6.0's, no migration runs, and no metric, label, log line or values key of the
broker changed. The chart's only new values are under
addons, with every add-on off, and a values file without them renders the objects it rendered on 0.6.0. - For a deployment of 0.6.0's
examples/axagent only. The agent is nowaddons/ax, and it does not start whileSTATE_DIRis set: setSQLITE_PATHtoSTATE_DIRplus/agent.db, and its first start imports the old tasks. The route inside Google AX also needsLISTEN_ADDR,PUBLIC_URLandRUNNER_URLintask.yaml, and its image is now built withmake ax-runner-image. An A2A client other than Agent Kourier must now name the protocol version (below). The upgrade has the steps.
Add-ons (experimental)¶
- Turn one on with
addons.<name>.enabled: true, the caller token's Secret inaddons.<name>.auth.tokenSecret, and its settings: forcma,agentId,environmentIdand the API key's Secret,anthropicApiKeySecret; forax,model.name, withmodel.providerbedrock(the default, which needsmodel.region) oranthropic. Each runs as the Deployment<fullname>-<name>, with a Service of its own on port 8090, and serves A2A athttp://<fullname>-<name>.<namespace>.svc:8090/a2a, which the AgentBackend names. Its objects carryapp.kubernetes.io/name: agent-kourier-<name>, so nothing that selects the broker's pods selects an add-on's. - Images:
ghcr.io/agentkourier/agent-kourier-cmaandghcr.io/agentkourier/agent-kourier-ax, for linux/amd64 and linux/arm64, tagged with the release'svX.Y.Z, with SBOM and provenance attestations, and signed by the same workflow identity as Agent Kourier's image. The release's chart pins each by digest. RELEASING.md has the commands that verify them. The AX add-on's image for the route inside Google AX is not released: you build it. - The caller check. A request to an add-on's
/a2aor to its agent card must carry a token of the Secret inaddons.<name>.auth.tokenSecret, asAuthorization: Bearer <token>, which a Binding'sidentity.tokenSecretRefsends, or, withaddons.<name>.auth.headerset, as that header's whole value instead; any other request is answered 401. The add-on reads the token file again every 5 seconds, so a rotated Secret takes effect without a restart./healthz,/readyzand/metricsneed no token, and the chart never turns the check off. The AX add-on also takes OIDC, for the route inside Google AX. - The store. Each add-on keeps the A2A tasks, the message IDs that started them and when each context was last active, with the
add-on's own state: for
cma, each context's session of the agent; forax, the ADK sessions. SQLite, the default, is a file on the claim<fullname>-<name>-data, which the chart keeps when the release is uninstalled unlesspersistence.retainOnUninstallisfalse;store.type: postgrestakes a database of the add-on's own, named instore.postgres.dsnSecret. A task paused on an approval or a question survives a restart, and a turn that was running fails. A settled task is deleted aftertaskRetention(720hby default), and a context idle forsessionIdleTTL(2160h, the default of a Binding'ssession.threadTTL) is released: the CMA add-on archives its session, and the AX add-on deletes its ADK session and tasks. - Replicas. On SQLite an add-on runs one replica, and the chart refuses
replicaCountabove 1. On Postgres several replicas elect a leader through a lease row in the add-on's database, so the add-on needs no RBAC; a standby forwards each request to the leader, and every write of the leader checks the lease in its own transaction. A leader that loses the lease exits with code 5. On SIGTERM a leader drains its requests for up to 5 seconds, cancels the turns still running and waits up to 5 seconds for them, and hands the lease over. - For an A2A client other than Agent Kourier. A JSON-RPC request must name the protocol version in the header
A2A-Version, as1.0: one that names none is read as A2A 0.3 and refused with the error-32009, version not supported. That is the check of a2a-go v2.9.0, which the add-ons are built with. Agent Kourier's client sends the version the agent card gives, so a Binding is not affected. A message sent again with the same message ID joins its first send's task instead of starting a second turn, and a non-streamingSendMessageis answered with the task once its turn ends or pauses. An answer to a paused task that the add-on cannot use is refused as invalid before a turn starts, and the task stays paused: forax, one with a part that is not text, or with no text; forcma, one that does not decide each paused call once in atool_approval_response. The CMA add-on also refuses a new message with no text, or with a part that is neither text nor data. - Telemetry: metrics with the prefixes
agentkourier_cma_andagentkourier_ax_on each add-on's/metrics, and a ServiceMonitor of its own withserviceMonitor.enabled; a span for each turn,agentkourier.cma.turnoragentkourier.ax.turn, under the trace that Agent Kourier sends; and JSON logs on standard error. - NetworkPolicy. With
networkPolicy.enabled, each enabled add-on gets a policy of its own, and Agent Kourier's policy also allows egress to the add-on's pods on port 8090. - Every limit, the ones the add-ons share and each one's own, is on Limits. The reference pages,
Claude Managed Agents add-on and AX add-on, have every setting, endpoint,
metric and exit code. Write an add-on on the kit builds a new one on the code the two share,
addons/kit. - What was tested. The repository's tests run each add-on, with the race detector, on SQLite and on Postgres. The add-ons were run
through the chart on kind clusters with a Slack test workspace on 2026-11-22 and 2026-11-23, on builds from before this tag:
- The CMA add-on, with a Haiku agent on a self-hosted environment: on SQLite, an alert posted by another app started a thread, and the agent asked to approve a bash call; the add-on's pod was deleted while the call waited, and after Approve the call ran and the agent posted its findings, and a reply in the thread went on in the same session. On Postgres with two replicas, the leader was killed while approvals waited, another replica took over, and the same task completed after the approvals. An idle timeout of 2 minutes archived the sessions. Cloud environments have not been tested; the add-on does not refuse them.
- The AX add-on, with
claude-haiku-4-5on the Anthropic API, on SQLite: an alert started a thread and the agent asked a question; the pod was deleted while it waited, and the answer resumed the same task on the new pod. On Postgres with two replicas, the leader was killed while a question waited, the standby took over, and the same task completed after the answer. Bedrock has been tested against a mock of its API, not called; the routes to Bedrock through an IAM role (IRSA, EKS Pod Identity) have not been run on EKS; and the route inside Google AX was not run end to end after the move toaddons/ax.
Chat¶
- An answer no longer repeats the paused turn's text. The task that an answer to a question or a tool approval goes on with keeps the artifacts of the turn that paused, and its last snapshot holds them again, so the answer's message ended with a line the paused turn had already shown, under the answer's own text. Before it sends an answer, Agent Kourier now notes the text of each artifact of the paused task, and a snapshot that repeats one unchanged adds nothing; a live chunk of that text, or a snapshot that changes it, is shown as before. An answer whose agent adds no text of its own therefore shows none, and the thread gets "The agent finished without any output." An answer that Agent Kourier follows after a lost stream or a restart is not covered, and can still show the paused turn's text and steps again (Agent contract).
- An answered tool approval shows one line for each tool, in the form of a tool's status line: its name, a summary of its redacted
arguments on one line, and its verdict, such as
bash(command="kubectl get pods -n shop") — Approved, numbered when there are several. The summary of a JSON object is itskey=valuepairs in the order of the keys, cut and marked past 160 units; the prompt still shows the arguments whole. The ending showed each tool's verdict and then its full arguments in a preformatted block. A timed-out or cancelled ending shows the same lines without a verdict. This is on Slack and on Microsoft Teams, and the audit is unchanged. - The ending leaves out the arguments that a card shows. When the reply the agent paused in shows the call on its card, with the same
name and summary of its arguments, the ending names the tool alone, such as
bash — Approved. That takesoutput: livewithprogressset tostepsorsteps-and-activity, and the card in the reply's last write: the approval's prompt now waits for that write, up to 5 seconds after the pause. The ending keeps the arguments in every other case, such as a sub-agent's approval, a tool with no arguments or whose summary was cut, or a reply whose cards the platform refused (Tool approvals lists them), and an approval paused before the upgrade, which has no such mark.
Other changes¶
- Documentation.
- New pages: Add-ons, a how-to and a reference page for each add-on, Write an add-on on the kit, and the add-ons' sections of Limits.
- The README, the home page, the chart's description and its README lead with what Agent Kourier does: it carries messages between
team chat and agents, one session per thread, and an alert is one example of what starts a session. The chart's keywords add
microsoft-teamsandwebhooks. - The Agent contract, Tool approvals and What each platform supports say what an answer and an approval's ending show; the chart README lists the add-ons' Deployments and the NetworkPolicy's egress to them.
Dependencies¶
- Go modules:
modernc.org/sqlitefrom v1.62.0 to v1.63.0. The broker's a2a-go is v2.9.0, as in 0.6.0. The Go builder and runtime images are 0.6.0's. - The add-ons are built with a2a-go v2.9.0; the AX add-on moves from 0.6.0's example with ADK from v2.5.0 to v2.8.0. The image of the AX route, which you build, takes new digests of its Go and Debian bases.
- Postgres in tests only. The repository's Postgres tests now run on
postgres:19, frompostgres:18, and the fast kind tier'spostgres:17takes a new digest. The chart and the recipes run no Postgres, so nothing changes for an install.
Version 0.6.0¶
Two new platforms arrive beside Slack, both experimental:
- Microsoft Teams, a second chat platform. A ChatConnection with
spec.platform: teamsserves a team's channels, inhttpmode on the chat listener or insocketmode, and reads other apps' posts, such as Alertmanager's alerts, through Microsoft Graph. Configure Microsoft Teams has the setup. - Webhooks. A ChatConnection with
spec.platform: webhooktakes signed JSON webhooks from another service, such as GitHub, Jira Cloud, Bitbucket Cloud or Linear, on the chat listener, and starts sessions of an agent from them. Agent Kourier posts nothing on such a connection; the agent answers on the service with its own tools. Start agents from webhooks has the setup, a page for each of these four services, and how to map another service whose webhooks fit the same checks.
A config of Slack connections loads as it did in 0.5.0. Every install runs migrations 0031 and 0032 at its first start, which only add tables, and an install that holds the CRDs applies the Binding and ChatConnection CRDs again. Upgrade to the release that takes webhooks and Upgrade to the release that takes Microsoft Teams ChatConnections have the upgrade, and how to roll each back.
Breaking changes¶
- Apply the CRDs again. The ChatConnection CRD changes for the platforms
teamsandwebhookand their blocks,spec.teamsandspec.webhook. The Binding CRD changes for the trigger typewebhookEvent, the outputnoneand the channel of a webhook Binding, and to take Microsoft Teams' chat IDs:chat.channeltakes a Teams channel ID and its cap goes from 32 bytes to 140, and abotMessagetrigger'sfrom.idand achat.mentionsentry'susertake a Microsoft Entra ID, with caps of 36 bytes (from 32 and 21). The AgentBackend CRD is unchanged. The chart applies them with the release whencrds.installis true, or unset onconfig.source: crds. If you apply them yourself, applycharts/agent-kourier/files/crdsof this release. Until then the API server refuses the new fields and values, and a broker on custom resources logs at WARNthe schema hash of a CRD is not the one this broker was built withand setsagentkourier_crd_schema_state{state="mismatch"}to 1 for the two CRDs. - A chat ID with neither platform's shape is refused with a new message, which names both shapes, for example
spec.chat.channel: invalid channel "general": must be a channel ID such as C0123456789 (Slack) or 19:…@thread.tacv2 (Microsoft Teams), not a name. A script that matches the earlier message needs the new one. - Migrations 0031 and 0032 run at the first start, on SQLite and on Postgres. Each only adds a table,
teams_conversationsandteams_poll_positions, which a Microsoft Teams connection writes. A broker of 0.5.0, after a rollback, does not read them, and logs at WARN at its start that the database schema is newer than its build.
Webhooks (experimental)¶
- New platform
webhookon a ChatConnection, withspec.webhook:identity(the service's ID of the agent's own account, whose events are dropped),verify(HMAC-SHA256 of the raw body, or a fixed token, in a header, with an optional timestamp in the body), and JSON Pointers for thechannel, theactor, thethreadand thefieldsthat triggers read, and thedeliveryheader that names each delivery in the logs. The credentials Secret holdswebhookSecretfor the HMAC scheme ortokenfor the token scheme; one with a control character, such as a trailing newline, is refused, and so is a token under 32 bytes. The connection takesPOST /chat/webhook/<namespace>/<name>on the chat listener, which only the leader serves; a broker with no chat listener does not run it. - New trigger type
webhookEvent, the only one a webhook connection's Bindings take. It matches and excludes on the connection's fields, and itspromptTemplatereads the id fields. Itslimitsare required. A start that a limit stops is answered 200, logged at WARN with the delivery ID, and lost unless the event is delivered again. - New output
none, the only output a webhook connection takes, and one that Slack and Microsoft Teams refuse. A Binding of a webhook connection must setchat.output: none, and its channel is the value the connection reads from an event, such asacme/widgetsorOPS, not a chat platform's ID. - New metrics for webhook connections:
agentkourier_webhook_requests_total, byoutcome,reasonandconnection, with every series at 0 from when the connection's run starts;agentkourier_webhook_ack_duration_seconds, how long each request took to answer, byoutcomeandconnection; andagentkourier_webhook_last_accepted_timestamp_seconds, the time of the connection's last delivery answeredaccepted, for a rule that finds a service that stopped sending. Each verified delivery is logged at INFO,webhook: delivery answered. - A span for each verified webhook request,
agentkourier.webhook.request, with the connection, the outcome and reason, the event's ID and the delivery ID; a request that is not verified has none. The intake's span is its child and the turn it starts is in its trace, and the delivery's log lines carry itstrace_id, so a delivery is found by its delivery ID in the trace backend. agentkourier_chat_listener_requests_totalhas two new labels:platform(slack,teams,webhookorother) andconnection(the ChatConnection the path names, while the leader serves it, elseunknown). A rule that sums the counter reads as before.- An edit of the broker's own webhook connection applies at a restart. Until then the leader logs at WARN, with the connection,
chat connection: its spec.webhook was edited, and the running connection still uses the spec.webhook it started with; a restart of the broker applies the edit, and at INFO once the spec is back to the one it runs on. A team's connection restarts by itself when its ChatConnection changes. - Four recipes:
webhook-github,webhook-jira,webhook-bitbucketandwebhook-linear, each a ChatConnection, a Binding and an AgentBackend.webhook-githubships an agent: the prompt agent's image with anagent.yamlof its own and GitHub's github-mcp-server beside it, which reviews pull requests and replies to mentions, posting as a machine user with its fine-grained personal access token (GitHub). The other three ship no agent yet: point the Binding at an agent that has the service's tools. - The prompt agent can leave out
ask_user.PROMPT_AGENT_ASK_USER=0does not offer the model the tool, for a connection that serves no questions, such as a webhook's; unset or1offers it, as before, and any other value stops the agent at start. - What was tested. The repository's tests run each recipe's connection against a fake of its service, and the four setups were run end to end against the real services on 2026-11-17, on a pre-0.6.0 build of the broker with the same mapping.
Microsoft Teams (experimental)¶
- New platform
teamson a ChatConnection, withspec.teams:tenantIDandappID, the bot's Microsoft Entra tenant and application, each a GUID in lowercase hex and required;mode,http(the default) orsocket; andnotificationURL, optional, anhttpsURL whose path is the connection's own route,/chat/teams/<namespace>/<name>. The credentials Secret holdsclientSecret, the client secret of the bot's application, in either mode.spec.teamson a Slack connection, andspec.slackon a Teams one, are refused. A Binding of a Teams connection names Teams' IDs: a channel19:…@thread.tacv2, and a Microsoft Entra ID for a sender or a mentioned person (What each platform supports). - Two modes. In
httpmode the leader takes Teams' requests atPOST /chat/teams/<namespace>/<name>on the chat listener, which a Teams connection in that mode needs; with none, the broker's own connection stops the start, and a team's is not started. Insocketmode the leader opens an outbound WebSocket to Teams in each region,amer,emeaandapac, and needs no chat listener or public endpoint for Teams' activities. Microsoft calls Socket mode a public preview, and Teams does not deliver what it sends while no socket is ready, then or later. Either way the broker posts, replies and edits through the Bot Connector. - What a thread shows. A live reply is one message that Agent Kourier posts and then edits, at most once every 2 seconds, with the agent's tool calls listed under the text by default. Questions, tool approvals and the useful and not-useful buttons are Adaptive Cards that a member of the channel's team presses.
- Alerts through Microsoft Graph. Teams sends a bot no other app's posts, so an alert that Alertmanager posts through a Workflows
webhook reaches a
botMessagetrigger through Microsoft Graph, in either mode: by Graph's notifications atspec.teams.notificationURL, which needs the chat listener and a public HTTPS route to it, or, with none, by polling each bound channel every 10 seconds. A poll reads replies only in a channel's newest threads. Graph reads under the resource-specific permissionChannelMessage.Read.Group, which the Teams app's manifest asks for and its install in the team grants. - Not there yet. No reactions: the acknowledgment is taken and shows nothing.
interactions.approverGroupsis refused,UnsupportedOnPlatform. No ephemeral messages and no live progress streams.agent-kourier dry-runreads only Slack, so pin a Teams trigger with the recipe's trigger evals. A post whose tag cannot be looked for after a crash is posted again, and may show twice (Delivery guarantees). - New metrics for Teams connections, each by
connection:agentkourier_teams_requests_total,agentkourier_teams_tokens_refused_total,agentkourier_teams_activities_shed_totalandagentkourier_teams_activities_lost_totalfor what Teams sends;agentkourier_teams_socket_envelopes_total,agentkourier_teams_socket_reconnects_total,agentkourier_teams_socket_readyandagentkourier_teams_socket_gap_secondsforsocketmode; andagentkourier_teams_graph_notifications_total,agentkourier_teams_graph_polls_total,agentkourier_teams_graph_read_messages_total,agentkourier_teams_graph_catchups_total,agentkourier_teams_graph_throttled_totalandagentkourier_teams_graph_channelsfor Microsoft Graph (Metrics). - A span for each verified Microsoft Teams activity request,
agentkourier.teams.request, on a connection inhttpmode, with the connection, the activity's type and ID, and the outcome; a request refused at its token, one whose body is no activity, and one of another tenant have none. The intake's span is its child, a message's too though its post is handed on after the response, and the turn it starts is in its trace; the lines logged for the request, on its channel's lane as well, carry itstrace_id. Microsoft Graph's notifications and polls, and Socket mode, have no such span. - An edit of the broker's own Teams connection applies at a restart. Until then the leader logs at WARN, with the connection,
chat connection: its spec.teams was edited, and the running connection still uses the spec.teams it started with; a restart of the broker applies the edit, and at INFO once the spec is back to the one it runs on.mode: httpwritten out where the mode was unset, or taken out, is the same mode and logs nothing. - A recipe,
prompt-agent-teams: theprompt-agentrecipe's agent in a Teams channel, with Alertmanager's alerts, the Teams app's manifest and trigger evals. - What was tested. The repository's tests run the adapter against fakes of Microsoft's services, the chat conformance suite
among them. Parts of it were checked on one test tenant in 2026-11, in Teams' web client:
httpmode, Graph subscriptions, Graph polling andsocketmode. A full install has not yet been run against Teams; the checks still open are listed in issue 379. - Where to start. Configure Microsoft Teams sets up the bot, the Teams app, the connection and the
alert route; Start from a recipe has
prompt-agent-teams; What each platform supports has what Teams serves and how it reads alerts.
Other changes¶
- On the files route, a reload that changes the broker's one ChatConnection is refused. A reload whose directory renames the
connection the broker started with, adds a second or takes it away keeps the last good config, sets
agentkourier_config_staleto 1 and logsconfig reload failed; keeping the last good snapshot. An edit of the connection under the same name is taken, and applies at a restart (Choose a config route).
Version 0.5.0¶
A Slack ChatConnection can take its events and button presses over HTTP, as Events API and interactivity requests that Slack signs,
instead of over Socket Mode: spec.slack.mode: http, on a chat listener that only the leading replica serves. HTTP mode is experimental.
Socket Mode stays the default, and the chat listener is off unless the values turn it on. Every install runs migration 0030 at its first
start, which lets a button press that Slack delivers again be recorded once, and an install that holds the CRDs applies the Binding and
ChatConnection CRDs again, for two new kubectl get columns. The chart now refuses podLabels that set agentkourier.dev/role. The image
is built with Go 1.27.4, as 0.4.0's was. Configure Slack has the steps for HTTP mode, and
Upgrade to the release that serves Slack over HTTP and
Upgrade to the release that shows each Binding's connection
have the upgrade, and how to roll it back.
Breaking changes¶
- The chart refuses
podLabelsthat setagentkourier.dev/role, whether or not the chat listener is on:podLabels must not set agentkourier.dev/role: the leader puts that label on its own pod, and the chat Service selects the leader by it, .... In the pod template the label would put every replica, the standby included, behind the chat Service. Take the key out ofpodLabelsin the values you upgrade with. kubectl get akbindinghas a new column,CONNECTION, beforeCHANNEL, soCHANNELis one column later.kubectl get akconnectionshowsPLATFORMbetweenNAMEandAGE, where it showedNAMEandAGEalone. A script that reads the columns by position needs the new order.- Apply the CRDs again. The Binding CRD changes for its new column, and the ChatConnection CRD for its column and
spec.slack; the AgentBackend CRD is unchanged. The chart applies them with the release whencrds.installis true, or unset onconfig.source: crds. If you apply them yourself, applycharts/agent-kourier/files/crdsof 0.5.0. Until thenkubectl getshows the old columns, the API server refusesspec.slack, or drops it for a client that does not ask for strict field validation, and a broker on custom resources logs at WARNthe schema hash of a CRD is not the one this broker was built withand setsagentkourier_crd_schema_state{state="mismatch"}to 1 for the two CRDs. - A Deployment of your own that sets
AGENTKOURIER_POD_NAMESPACEwithoutAGENTKOURIER_CHAT_LISTENexits with code 2. The variable is new, and turns the leader label on (below). The chart sets it only withchatListener.enabled, with the chat listener.
Slack over HTTP (experimental)¶
- New field
spec.slack.modeon a ChatConnection:socket, the default when it is unset, orhttp. Only a ChatConnection whosespec.platformisslackmay setspec.slack: the CRD and the broker's load refuse it on any other. The mode sets the keys of the credentials Secret. Socket Mode needsbotTokenandappToken, as before; HTTP mode needsbotTokenandsigningSecret, and does not readappToken. A missing key fails the load on the ConfigMap route, fails the start for the broker's own connection (exit code 2), and leaves a team's connection not started. - The chat listener, set by the new variable
AGENTKOURIER_CHAT_LISTEN, is a port of its own, apart from the metrics port. It has no default: a broker without it opens no such port. It takesPOST /chat/<platform>/<namespace>/<name>, for Slack/chat/slack/<namespace>/<name>, answers 404 to any other path and 405 to any other method, and answers 503 withRetry-After: 5for a connection that takes no requests on this replica. A ChatConnection in HTTP mode needs it: without it the broker's own connection fails the start (exit code 2), and a team's connection is not started. - Only the leader serves. Every replica opens the chat listener, but only the leader runs connections, so a standby answers 503. The
leader labels its own pod
agentkourier.dev/role=leaderonce it leads, and the chart's chat Service selects that label. Every replica takes the label off its own pod as it starts, and the leader takes it off at shutdown; a leader that loses its lease exits with the label on, and the pod's next container takes it off. The write is a merge patch of that one label, retried after 1 s, doubling to 30 s; a first write that the API server refuses with 403 or 404 fails the start with exit code 2. - New variables for the leader label.
AGENTKOURIER_POD_NAMESPACEturns the label on. It needsAGENTKOURIER_CHAT_LISTENandAGENTKOURIER_POD_NAME, which the broker now requires with either store when the label is on (it required it with Postgres alone). The chart sets both from the downward API withchatListener.enabled. /readyzhas a new check,leader-label, when the label is on. It fails until a write of the label has succeeded, so a pod that may still carry the label of an earlier process stays out of every Service until it has taken the label off.- New chart values
chatListener:enabled(false by default),port(8081),serviceandingress. Turned on, the chart adds:- the container port
chat; - the Service
<fullname>-chat, which selects the pod that carries the leader label; - with
chatListener.ingress.enabled, an Ingress of the same name that sends the path prefix/chat/to it, and nothing else; - with
rbac.create, the Role<fullname>-leader-label, withpatchon the pods of the release namespace (a Deployment's pods are named by its ReplicaSet, so the Role cannot name the pod), and its RoleBinding.
- the container port
- A ValidatingAdmissionPolicy holds that
patchto the label. WithchatListener.enabledandrbac.createthe chart installs a ValidatingAdmissionPolicy (admissionregistration.k8s.io/v1,failurePolicy: Fail) and its binding,<fullname>-<namespace>-leader-label. They let the broker's ServiceAccount change only the labelagentkourier.dev/role, only toleaderor away, and only on the pod its token is bound to, and deny any change to that pod's spec, annotations, finalizers or owners. Both are cluster-scoped, so whoever runshelm installorhelm upgradeneeds the right to create ValidatingAdmissionPolicies and ValidatingAdmissionPolicyBindings. The chart checks no Kubernetes version for them, and its tests run the policy on Kubernetes 1.33 and 1.37 only: use 1.33 or later, which the custom resource route already requires. Withrbac.create: falsethe chart makes neither the Role nor the policy (Security model). - New value
networkPolicy.chatFrom: the NetworkPolicyPeers that may reach the chat port. - The chart refuses to render:
chatListener.portequal tolisten.port;networkPolicy.enabledwith the chat listener and nonetworkPolicy.chatFrom;chatListener.ingress.enabledwithoutchatListener.enabled;networkPolicy.chatFromwithoutchatListener.enabled;- a
chatListener.service.typeother thanClusterIP,NodePortorLoadBalancer(the values schema).
- The chat listener's bounds. A body is capped at 1 MiB (413) and the headers at 16 KiB (431). The headers must arrive within 1 s and
the whole request within 2 s, and the handler has 3 s. At most 32 handlers run at once; past that a request is answered 503 with
Retry-After. Bodies are read in 4 KiB chunks from a budget of 32 MiB across every request, and a body is read whole before it takes a handler's place. A refusal made before the body is read closes the connection. At shutdown the listener waits 2 s for the requests in flight, then cuts them unanswered. Limits has each value. - Slack's requests. Agent Kourier checks a request's signature against the signing secret before it decodes anything in the body,
and answers 401 to a missing or wrong signature (
bad_signature) and to a timestamp more than 5 minutes off (stale). It answers aurl_verificationrequest with its challenge. It answers 200 once it has taken an event or press, and 503 when it has not taken it within 2 s or cannot take it, so that Slack sends it again. -
New metrics:
agentkourier_chat_listener_requests_total{outcome};agentkourier_leader_pod_label_writes_total{result};agentkourier_slack_http_requests_total{outcome,connection};agentkourier_slack_http_retries_total{connection}, the requests that carry Slack'sX-Slack-Retry-Num.
In HTTP mode
agentkourier_chat_connectedis 1 from when the connection'sauth.testpasses until its run ends, as there is no WebSocket, andagentkourier_slack_ack_duration_secondsis observed too (Metrics). -
What was tested. The kind tiers run in HTTP mode against the end-to-end tests' fake Slack, and the mode was tried once against Slack itself, on one installation, as Configure Slack describes. High availability says what Slack gets during a takeover.
Fixes¶
- A button press that Slack delivers again is recorded once, in Socket Mode and in HTTP mode: an answer to a question or an approval,
and a useful or not-useful vote. Each delivery used to be recorded, and its person told the outcome again. A press's key is a hash of
who pressed, the channel, the message, the button and Slack's
action_ts; a second delivery of the key is acknowledged and logged at info as processed before. A press with noaction_tsis recorded each time it comes, and pressing the button again is a new press. Migration 0030 adds the tablepress_deliveries, on SQLite and on Postgres, which keeps each key for at least an hour and is purged every 10 minutes (Stored data). It only adds a table. - An answer is taken only on the question its task is paused on. A press decided again (a redelivery after its key was purged, a press with no key, or a second press on a prompt that was never replaced) could answer a later question of the same task with the earlier answer. Now an answer to another question is dropped with no notice, and logged at info.
-
agentkourier_trigger_decisions_totalcounts a decision once its start is taken. It was counted as soon as the decision was made, so a start that then failed countedstarted, and its redelivery counted again:startedfor a trigger with no thread rules, anddedupfor a keyed one, though that delivery started the turn. A failed attempt now counts nothing here (it counts asagentkourier_intake_total{disposition="error"}, and logs at WARNchat: trigger decision not taken; its redelivery decides again), and the delivery that starts the turn countsstarted, sostartedcounts the turns that started. Two exceptions remain:- a start with no thread rules keeps no record of itself, so its redelivery after a restart counts
startedagain, though its turn is queued once; - a change of leader with an event in flight can count one start twice.
Metrics has the detail.
- a start with no thread rules keeps no record of itself, so its redelivery after a restart counts
A Binding checked against its platform¶
- The broker checks a Binding once more against its ChatConnection's platform when it reads the two together, and can refuse it with
two new reasons:
InvalidPlatformID, for a chat ID of another shape, andUnsupportedOnPlatform, for a feature the platform does not serve. Slack serves every feature that the check covers, and the schema already holds each chat ID to Slack's shape, so no Binding on Slack gets either.agentkourier_config_binding_rejectionshas a series for each, at 0. The chat IDs' patterns, length caps and messages are 0.4.0's. What each platform supports is a new reference page.
Other changes¶
- No change on Slack: a prompt the chat platform reports as invalid is refused at once, as one too large for a message was. It was retried in silence
until the pause timed out. Now the task gets the unusable-pause refusal: the notice "The agent paused for input in a way Agent Kourier
cannot use, so Agent Kourier is cancelling the task.", the interaction closed, the task cancelled, and an
unusable_pauseaudit entry, thenunusable_pause_cancel. On Slack it is not expected to show: the Slack adapter calls a prompt invalid only when it has no ID, both questions and tools or neither, or an ID over 2000 units, and the dialects build none of those. -
Internal changes, with no change in behaviour on Slack:
- each chat platform supplies its own app identity;
- code that is not Slack's names the chat platform rather than Slack;
- reactions are a capability of the platform: a Binding on a platform without them would have the condition
AcknowledgmentShown, which no Binding on Slack has; - a platform without ephemeral messages has an error of its own, which Slack never returns.
The help text of
agentkourier_chat_connectednow speaks of the chat platform. -
Documentation.
- Configure Slack has a tab for HTTP mode, with what the one run against Slack itself showed; High availability, the Security model's chat port, Troubleshoot and Upgrade cover the mode too.
- The recipes' README says how to run any recipe over HTTP mode.
- The README, the landing page and the glossary say Slack is the only platform today, and the README's integrations table lists a second chat platform as planned.
-
Before a tag, the release checklist runs the fast kind tier in HTTP mode on the custom resource route twice: on one replica, and on Postgres with two replicas, where the failover tests check that a press sent while the leader is dead or frozen is sent again and decided by the new leader. For a release that changes HTTP mode, it also runs a probe against an install that Slack itself reaches.
Dependencies¶
- None.
go.mod,go.sum, theDockerfile, the pinned images, and the recipes' and the AX example's dependencies are unchanged. The image is built withgolang:1.27.4, at the digest 0.4.0 used.
Version 0.4.0¶
On custom resources a broker can admit namespaces by their labels, and a broker that names nothing it serves serves the ChatConnections of every
namespace, where 0.3.2 refused to render the chart and its broker refused to start. A values file or an environment that worked with 0.3.2 keeps
its meaning, except for one value of AGENTKOURIER_CONNECTION_NAMESPACES that the chart never renders (below). The release also publishes the
images of two recipes' agents, and adds the prompt-agent recipe. The image is built with Go 1.27.4, as 0.3.2's was.
Which ChatConnections a broker serves has the rule, and
A team brings its own chat app what each way of admitting means for who consents.
Upgrade to the release that admits namespaces by label has the
steps, and how to roll back.
Breaking changes¶
AGENTKOURIER_CONNECTION_NAMESPACESthat names no namespace is refused. A value of only commas and spaces was read as no list: withAGENTKOURIER_CHAT_CONNECTIONset the broker served its own connection alone, and without it the start failed. Read as no list now, with nothing else set, it would serve every namespace, so the broker exits with code 2 whatever else is set, with a message that says the variable names no namespace. A Deployment that sets the variable itself to only separators, beside an own connection, stops starting: unset the variable. The chart is not affected: it renders the variable fromconfig.connectionNamespaces, whose items must be namespace names, and renders nothing when the list is empty.
Namespaces admitted by label, or every namespace¶
- New value
config.connectionNamespaceSelector(the environment variableAGENTKOURIER_CONNECTION_NAMESPACE_SELECTOR, a label selector as JSON), with custom resources only: the broker also serves the ChatConnections of the namespaces whose labels match it, beside its own and the list's, under the same cap of 16.null, the default, is no selector, and{}admits every namespace. The broker reads the selector at start and follows the namespaces' labels live, with an informer on namespaces: a namespace that gains a matching label is admitted at the next read, every 10 seconds, and one that loses it stops being admitted, with no restart, its connections stopped and the Bindings on them toldConnectionNotServed. While the broker cannot reach the API server it keeps the labels it last read. A selector that cannot be read is refused (exit code 2) with a message that does not show the value; the chart's schema checks it first, and the chart refuses it withconfig.source: files. Whoever may set a namespace's labels decides whether its ChatConnections are admitted (Security model). - A selector other than
{}adds a rule to the chart's ClusterRole:listandwatchonnamespaces(noget).{}, no selector and a list add nothing. A broker given a selector without that rule exits with code 3 at start. - With nothing set, the broker serves every namespace. With custom resources, no
config.chatConnection, noconfig.connectionNamespaces, noconfig.connectionNamespaceSelectorand noconfig.chatConnectionsentry, the chart renders none of the three variables, and the broker serves the ChatConnections of every namespace, up to 16 for the whole cluster (the oldest first). Both used to fail. The rule that the oneconfig.chatConnectionsentry is the own connection when the other three are empty is unchanged, so adding one entry to such an install makes it serve that connection alone; two or more entries are still refused. - Every namespace is a setting for a cluster with one broker. A broker that serves every namespace serves a second broker's connections too,
that broker's own included, and the two open Socket Mode on the same Slack apps, which splits each app's events between them. Where the two
write different statuses for the same Binding,
agentkourier_binding_status_writes_total{result="put_back"}climbs and the leader logs that something else keeps changing the status (Troubleshoot). With two brokers, admit with a list or a selector on each. - The
config routelog line says what the broker admits:connection_admissionisall,list,selector,list+selectororown(its own connection alone), withconnection_namespacesfor a list andconnection_namespace_selectorfor a selector other than{}.
Changes to init¶
agent-kourier initwrites the platform team's values as comments only, so the broker it installs serves every namespace; the comments show the list and the selector for a platform that serves fewer. A values file that an earlierinitwrote keeps its list, and its meaning. See Write the files withinit.
The recipes' agent images¶
- The release publishes the prompt agent's and the echo agent's images,
ghcr.io/agentkourier/agent-kourier-prompt-agentandghcr.io/agentkourier/agent-kourier-echo-agent, tagged with the release, forlinux/amd64andlinux/arm64. They are built, scanned, signed and attested as Agent Kourier's image is, and the GitHub Release names their digests. The two recipes' manifests name them, so a team no longer builds an image to try either of them. - Both images are built on Wolfi, with CPython 3.14 and no pip, and still run as user 65532. The images that
make prompt-agent-imageandmake echo-agent-imagebuild changed the same way: the entrypoint is/opt/venv/bin/python agent.py.
Recipes¶
- New recipe,
prompt-agent: an agent that a team writes as oneagent.yamlin Pydantic AI's agent spec format (a prompt, a model, and the MCP tools it may call), served over A2A by a small Python server and reached through thea2adialect. The server refuses to start on anything in the file that could give the agent a tool the file does not list, and, unless it is told to accept every caller, answers 401 to a caller without its bearer token. Recipes has it. - The
docs-agentrecipe runs under a kagent agent that owns the channel, in one of two ways, with the files in itskagent/directory: as a sub-agent that the owning agent calls as a tool, or as the toolssearch_docsandread_page, served by/docs-mcp, which the image now also holds. For the sub-agent,A2A_V03_URLmakes the docs agent also serve A2A 0.3 at its root, as kagent 0.9 calls it; the agent refuses to start when that URL's path is anything but empty or/. Without it nothing changes. The recipe's README has the steps. - The
docs-agentrecipe's prompt tells the model to open with the answer, not a preamble about what it found.
Other changes¶
- On SQLite, a broker logs a warning when its database is newer than it is, as one on Postgres already did: at start, when the database
records a migration this build does not have, as after a rollback from a later release, it logs at WARN
the database schema is newer than this build of Agent Kourier, withnewest_known_migrationandnewest_in_database, and starts. This release adds no migration, and changes no CRD. - Redaction skips the patterns that cannot match. Before each costly pattern, the redactor checks that the text holds what any match of it
needs (a word such as
bearerortoken, or a character the patterns allow between letters), and skips it where it does not. What is redacted is unchanged.
Dependencies¶
- Go modules:
github.com/jackc/pgx/v5from v5.12.0 to v5.13.0,github.com/slack-go/slackfrom v0.35.0 to v0.36.0,golang.org/x/sysfrom v0.49.0 to v0.50.0 andgo.yaml.in/yaml/v3from v3.0.5 to v3.0.6. - The Go builder image
golang:1.27.4is pinned to a new digest; the tag, and so Go 1.27.4, is unchanged, and so is the runtime base. - The recipes' and the AX example's dependencies: the echo agent's
opentelemetry-apimoves from 1.45.1 to 1.45.2 (CVE-2026-126360), the new prompt agent holdsfastmcp-slimat 4.1.2 or later (GHSA-7xgj-8392-5q4r, GHSA-vqqp-x5qm-5qp4), andgo.opentelemetry.io/otel/tracein thedocs-agentrecipe and inexamples/axmoves from v1.46.0 to v1.47.0 (GHSA-q7gw-24fr-5p69).
Version 0.3.2¶
agent-kourier init writes the chart's default route, for a team that brings its own Slack app. The broker's code, the CRDs and the chart's
templates are unchanged by it. The image is built with Go 1.27.4.
Breaking changes¶
agent-kourier initwrites custom resources by default, for a broker with no Slack app of its own. It wrote one values file for the ConfigMap route (config.source: files), on the broker's own app. It now writes the files of the team-app path:my-values.yaml, whoseconfig.connectionNamespacesadmits the team's namespace, and<team namespace>.yaml, the team's ChatConnection, AgentBackend and Binding in that namespace. The commands it prints create the team's Slack Secret, and the agent token Secret with--agent-token, in the team's namespace, and grant them to the broker with a Role there. A script that wants the old file passes--source files, which writes it as before. On the default route, a run without--team-namespaceasks for it right after the agent's namespace, so answers piped on standard input need one more line there (an empty line, or the end of the input, takes the agent's namespace). A command line that gave every other option is now also asked whether the agent verifies tokens, unless it passes--agent-token. See Write the files withinit.
Other changes to init¶
init --forcerefuses a path that holds anything but a regular file (a symbolic link, a directory, a device), with exit code 2 and before it writes. It used to fail at the write with exit code 4, or write into a device, or block on a FIFO until it had a reader.
Documentation¶
- Install on custom resources leads with a broker with no Slack app of its
own, and a team that brings its own, as
initwrites it. The install with an app of the broker's is its own section, and the chart's README follows the same order. The install clip is the clip of the team-app path.
Dependencies¶
- The Go builder image moves from
golang:1.27.3togolang:1.27.4, andgo.modwith it. The Go project lists security fixes tonet/http, the go command, the compiler and the linker in 1.27.4 (Go release history).
Version 0.3.1¶
A documentation release. The broker's code, the CRDs and the chart's templates are those of 0.3.0, so an upgrade from 0.3.0 needs no step. The image is rebuilt from that code and has a new digest, so helm upgrade replaces the pod as any upgrade does.
- The overview pages say a team can bring its own chat app. The README, the home page, Why a broker and Write a Binding described the platform team's chat app as the only one. They now say who owns which ChatConnection, and Write a Binding asks for an AgentBackend's
allowedNamespacesonly when the backend is in another namespace. The pages on setting one up were already right in 0.3.0. - Install on custom resources splits the resources by owner.
platform.yamlholds the ChatConnection and the AgentBackend, each listing the team's namespace.team.yamlholds the team's Binding in its own namespace, and the Binding's token Secret goes there too. The recorded clip follows the same split. - Let a team bring its own Slack app has a recorded clip: a broker with no app of its own serves a team's app, and the commands it types are on the page.
Version 0.3.0¶
A team can now bring its own Slack app: the platform team lists the team's namespace, and the broker serves the ChatConnection the team
makes there beside its own, if it has one: a broker may now have none. The broker serves nothing new until that list admits a namespace; the migration, the metric labels, the new ApproversReadable condition and the other changes below apply to every install. Read Let a team bring its own Slack app,
and the warning on rolling back below, before you set it. Upgrade to the release that serves team connections has the checklist for every install: the CRDs, the queries and log alerts to change, what changes with the list empty, and the rollback. An AgentBackend on dialect: kagent-v1 can also limit which agent namespaces its Bindings may name; nothing changes for one that
does not set the new field, and the upgrade section says what to read before you set it.
The release candidates before it (v0.3.0-rc.1, v0.3.0-rc.2 and v0.3.0-rc.3) are prereleases on GitHub; what they changed is in this entry.
Breaking changes¶
Against 0.2.1, with config.connectionNamespaces empty and no new field set, nothing in the values or the resources has to change. These can still break an existing install, each described below:
- Queries and alerts on six series. They gain a
connectionlabel, andagentkourier_chat_connectedstops reporting 0 for a connection that is removed or not served (see Other changes). Readycan turnFalse. A Binding that setsinteractions.approverGroupswithinteractions.toolApprovals: true, and whose bot cannot read a group, readsFalseon the newApproversReadablecondition.- Error texts changed. Log lines and status messages that quote a token, a Secret or a Slack call were reworded; the Socket Mode reconnect warning
slack: socket mode connection attempt failed; retryingis nowslack connection ended; connecting again; and the digest line saysmessageswhere it saidbot messages(see Other changes). A log alert that matches the old text must change. token_expiredon a Socket Mode reconnect is fatal. It was retried without end.- The CRDs must be new. A Binding CRD of 0.2.1 refuses a
personMessagetrigger, and all three CRDs have new schema hashes. - A rollback to 0.2.1 needs steps first if a team connection has an unposted row, a Binding has a
personMessagetrigger, an AgentBackend setsspec.agents, or the broker has no connection of its own (see the warnings below and Upgrade). - If you ran
v0.3.0-rc.1with an emptyconfig.chatConnection, check your values (below). An install that never ran rc.1 is not affected.
Team-owned chat connections¶
- New value
config.connectionNamespaces(the environment variableAGENTKOURIER_CONNECTION_NAMESPACES), the platform's admission list: the namespaces whose ChatConnections the broker serves besides its own, if it has one, with custom resources only (the chart refuses a non-empty list withconfig.source: files). Empty, the default, serves the own connection alone, as before. The broker reads the list at start, so a change restarts it. A team makes its ChatConnection and its Secret in its own namespace, and grants the Secret to the broker's ServiceAccount with a Role of its own;rbac.secretNamesorrbac.secretNamespacescan grant it instead. Listing a namespace is the platform's consent: the broker then holds the team's app tokens in its memory, as it holds the Binding tokens (Security model). - A pause whose Binding or connection is gone ends. An interaction that waited for an answer whose Binding was deleted, or whose ChatConnection is not served (deleted, off the list, past the 16, or a second connection of a Slack app), used to stay
pending, with its session and the runner parked on it, for as long as the broker ran: ending it needs the Binding's agent. The sweep now ends it, posting nothing,
5mafter the first sweep that finds it both past its timeout and orphaned (the sweep runs every 10 seconds, and a restart or a takeover starts the count again; no setting changes the5mor the 10 seconds), which is not counted as a timeout but as the outcomeorphanedofagentkourier_approval_outcomes_total, and which leaves the agent's task input-required at the agent when the Binding is gone. The session of a Binding that exists and is not served is still kept for as long as it is unserved. A connection that is served and not running (its credentials rejected, or not started yet) still keeps its interactions pending (Limits). - At most 16 connections are served, the own one included, which counts first when there is one, then the others oldest first. No setting changes the 16. A connection past it is not run, and the Bindings it admits say
ConnectionNotServed(Limits). The adapter's bounds on the events it holds, and the cap on button presses waiting, are per connection. - Slack rejecting a team connection's token stops that connection only, not the broker: a WARN names it and Slack's code,
agentkourier_chat_connectedis 0 for it, its Bindings readChannelJoinedFalsewithChatCredentialsRejected, and it starts again when its Secret or its ChatConnection changes. A changed Secret restarts a team connection by itself, at the next of the broker's looks, which come every 5 seconds. The broker's own connection is as before: a rejected token exits the process with code 1, and new tokens apply at a restart. - New
AcceptedreasonConnectionNotServed. A Binding on a ChatConnection that exists and that this broker does not serve says so, once: the broker served the connection before and does not now (its namespace was taken off the list, or it was the broker's own connection andconfig.chatConnectionnow names another or is empty, and its namespace is not on the list), it is past the 16, or it is a second connection of a Slack app. It is written once and not put back, so that a broker that does serve the connection has the last word. The leader counts these Bindings in the new valueConnectionNotServedof thereasonlabel ofagentkourier_config_binding_rejections, so thatsum(agentkourier_config_binding_rejections) > 0includes them; a standby reads 0 for it. This happens with the list empty too: after you changeconfig.chatConnectionto another ChatConnection, the Bindings of the old one, which still exists, are told and counted, so thatsum(agentkourier_config_binding_rejections) > 0fires, until that ChatConnection is deleted or this broker serves it again, even when another release serves it.ChatUnavailableonChannelJoinedandApproversReadablenow also covers a connection that is not running, with no call made to Slack (Binding status). - A Slack app is served once. The broker asks Slack (
auth.test, thenbots.info) which app a connection's bot belongs to, once per connection and again when its ChatConnection or Secret changes, and serves the older of two connections of one app. One app installed in two workspaces counts once. The call is made only when the broker serves a team connection, and the bot's app needsusers:readfor it (Slack's documentation; not verified here), which the manifest in Configure Slack has. A message that the bot of another connection of the same broker posts starts nothing unless a Binding's trigger names that bot, so two of its apps in one channel do not answer each other in a loop. - Two brokers that admit one namespace both serve its connections and both open Socket Mode on its apps, so Slack gives each event to one of them and the other misses it. Give each broker its own connections and its own list (Troubleshoot).
- A database migration (0029). The outbox and the button presses record the connection they belong to, and the broker records the connections it serves. The migration adds columns and a table, and replaces the index on the outbox's channel and thread with one that starts at the connection. Rows written before it, or by an
older release after a rollback, belong to the own connection: the leader gives them to it when it starts. A broker with no own connection has none to give them to, and its leader refuses to start while any exist (see below).
A rollback does not undo the index: 0.2.1 deletes the settled outbox rows of an expired session by channel and thread (
channel = ... AND thread_ts = ...), which an index that starts at the connection does not serve, so on SQLite each of those deletions reads the wholeoutboxtable until the broker is upgraded again. It costs time, not data (Postgres was not measured). - Do not roll back past 0.3.0 while a team connection has an unposted row. The outbox of 0.2.1 posts every unposted row through its one chat platform, so a post waiting for any team's connection would go out through the platform's app,
and its sweep can edit a team's prompt and post a timeout notice from the platform's app for an interaction whose session no longer records the task. The guard is the unposted rows, not whether a connection is served now: a team's
posts stay in the outbox for up to 7 days after its namespace was taken off the list or its ChatConnection was deleted. While the connections are still served: let the team's pending interactions end
(a pause ends at its deadline, up to 7 days), delete their Bindings, check again that none is pending (one left after the delete is ended by the sweep
5mafter the first sweep that finds it both past its deadline and orphaned, without cancelling the agent's task), check that no button press waits (the tableinteraction_presses, byconnection), and wait untilagentkourier_outbox_pending{connection!="<own>"}is 0 or absent on the leader whileagentkourier_outbox_pending{connection="<own>"}is present (a failed scrape has no series at all), with<own>the broker's own connection asnamespace/name, then takeconfig.connectionNamespacesoff the values in the same change as the rollback: the chart of 0.2.1 refuses aconfigkey it does not have. To clear rows of a connection that is not served, admit its namespace again (and, if its ChatConnection was deleted, have the team make it again under the same name, for the same Slack app) so that they post, or wait out the 7 days. The steps are in Let a team bring its own Slack app. - Remove
personMessagetriggers before any rollback to 0.2.1 or earlier. Those releases know the trigger typesmentionandbotMessageonly. On the files route onepersonMessagetrigger fails the whole config: the broker exits with code 2 at start, and keeps the last good config on a reload. On custom resources the older broker refuses that Binding as invalid (AcceptedFalse,InvalidSpec) and does not serve it.
A broker with no connection of its own¶
config.chatConnectionmay be left empty withconfig.connectionNamespacesset. The chart then renders noAGENTKOURIER_CHAT_CONNECTION, and the broker serves only the ChatConnections of the listed namespaces, each as a team connection. This is the case for a platform whose teams all bring their own Slack apps; nothing names a connection of the platform's. With the variable unset, the broker must have a non-empty list: with neither it exits with code 2 and an error that names both variables, since it reads the list at start and could serve nothing. The file route is unchanged: it still has exactly one ChatConnection and refuses both variables. A broker whose listed namespaces hold no ChatConnection yet starts, is ready and serves nothing until one appears. The chart refusesconfig.chatConnectionSecretin this shape (it names the Secret of an own connection, and there is none), and refuses aconfig.chatConnectionsentry whose namespace is not on the list, because the chart would render it and the broker would never serve it. A broker with no connection of its own is the how-to, with the move from an own connection to none.- Values whose meaning changed since 0.3.0-rc.1. Under rc.1 an empty
config.chatConnectionwith exactly oneconfig.chatConnectionsentry made that entry the broker's own connection, whether or notconfig.connectionNamespaceswas set. Now, with the list non-empty, that entry is a team connection, and the render fails if its namespace is not on the list. With the list empty, orconfig.chatConnectionset, nothing changed. If you installed rc.1 with an emptyconfig.chatConnection, one entry inconfig.chatConnectionsand a non-emptyconfig.connectionNamespaces, setconfig.chatConnectionto that entry before you upgrade: otherwise it loses what only an own connection has (below), and the chart refuses to render if its namespace is not listed. - What an own connection has and a team connection does not. A token that Slack rejects ends the process with code 1 for the own connection, and stops that connection alone for a team's. The own connection's ChatConnection is held when it is deleted, and a team's is dropped when the deletion settles.
The own connection takes the first of the 16 places and the first claim of its Slack app; with none, the 16 places and every claim go by age (
creationTimestamp, then namespace and name). - With no own connection, a rejected token never ends the process or the pod's readiness. If Slack rejects every token, the broker stays up and
/readyzsays ready,agentkourier_chat_connectedis 0 for each connection, and its Bindings readChannelJoinedFalsewithChatCredentialsRejected. Alert on the metric, with the label that your scrape gives the release's namespace in place ofnamespace="agent-kourier"(Metrics says what each rule misses):
- alert: AgentKourierNoChatConnectionUp
expr: max(agentkourier_chat_connected{namespace="agent-kourier"}) < 1
for: 10m
- alert: AgentKourierChatConnectionDown
expr: agentkourier_chat_connected{namespace="agent-kourier"} == 0
for: 10m
config.chatConnection to the connection that served them, let the broker start once, and unset it. Only the replica that becomes the leader makes the check.
- A broker with no own connection cannot be rolled back in place. 0.2.0, 0.2.1 and 0.3.0-rc.1 exit with code 2 on config.source: crds without AGENTKOURIER_CHAT_CONNECTION (read in their source, not run). Upgrade has the steps.
Other changes¶
- New trigger type
personMessage. A Binding can start a turn on each message a person posts at the top level of its channel, with no mention (A person's message). It readsmatchandexcludeon the fieldtextalone, requirespromptTemplateandlimits(bothrateLimitandmaxRunsPerDay), and refusesfrom,extractandthread. Its limits count starts, and a mentioned reply in the thread is no start. The Slack app needs no scope or event it does not have, andagent-kourier dry-runreplays the trigger. A Binding with no such trigger is unchanged. The Binding CRD must be new before one is applied: an older CRD refuses the type. Anyone who can post in the channel can start a turn, held to the trigger's limits (Security model). - New condition
ApproversReadable. A Binding that setsinteractions.toolApprovals: trueandinteractions.approverGroupsnow has it: the leader reads each group with the connection's bot at each pass of Binding verification, andReadyisTrueonly when this condition is. A Binding whose bot cannot read a group readReadyTrueon 0.2.1 and now readsFalse(MissingScopewhen the app lacksusergroups:read,GroupNotFound,GroupsUnreadable), andagentkourier_binding_readyis 0 for it (ReadyisUnknownwhile Slack rate-limits the read). Turns still run: the probe only reports. A Binding with no approver groups has no such condition. The new series areagentkourier_binding_condition{condition="ApproversReadable"}andagentkourier_binding_probe_duration_seconds{condition="ApproversReadable"}(Binding status, Troubleshoot). - The digest line says
messages. The line posted when a trigger's limits stopped starts reads7 messages not investigated in the last 10m (rate limit).for every trigger, where it saidbot messages(Chat triggers). - A fence after a list marker or a
>is code. A fenced block opened after-,*,+, a number and.or), or>was prose before: a name in it notified, and a closing line with no mark of its own opened a block that hid the rest of the reply. Now it is a block, shown at column 0 with the mark dropped, and a name in it does not notify (Let the agent notify people). - Slack reconnects are paced by the broker. A Socket Mode connection that is lost and cannot be opened again used to be retried inside the Slack client library, from 100 ms doubling to 5 minutes with no jitter, so
after a 3.5 minute outage every connection stayed down until about 409 seconds. Now a failed attempt ends the run and the broker waits 1 second, doubling to 60 seconds, each wait cut at random by up to half so that connections do not
retry together; the first attempt after a loss, and Slack's refresh, still reconnect at once. A Retry-After from Slack is honoured up to 5 minutes. No setting changes the backoff or the 5-minute cap.
token_expiredon a reconnect is now fatal, where it used to be retried without end: the broker's own connection exits with code 1, and a team connection stops (ChatCredentialsRejected). The log lineslack connection ended; connecting againreplacesconnection attempt failed; retrying, andagentkourier_chat_connectedis 0 from when the connection is lost, which is when the library starts to connect again, until it is back (Limits, Troubleshoot). - Every Slack Web API call the broker makes is cut at 30 seconds at most, the
apps.connections.openthat opens each Socket Mode connection included, so a reconnect on a connection that a network blip left dead fails and is retried instead of hanging for minutes. A call that is not answered in time fails with a client timeout error, which is a transient failure and not a rejection of the credentials. The Socket Mode WebSocket is not cut. No setting changes the 30 seconds (Limits). - The Socket Mode log lines name their connection. The
slack: socket modelines (connecting, connected, reconnecting) and the warningslack connection ended; connecting againcarry aconnectionfield, the ChatConnection asnamespace/name, as the broker's other per-connection lines do, so that the lines of two connections can be told apart (Troubleshoot). - Some error texts were reworded so that redaction leaves them whole. The redaction reads a secret word followed by a colon as a name and its value, and had hidden causes such as
token_revoked. The texts now read, for example,slack auth.test call: ...(wasslack auth.test: ...),secret <namespace>/<name> cannot be read: ...(wassecret <namespace>/<name>: ...),secret caches for [...] are not synced: ...(wassecret caches not synced for [...]: ...), and the Binding messagethe Binding requires a token and none was set(was... requires a bearer token ...). A log alert or a script that matches the old text must change. - New field
spec.agentson AgentBackend.sameNamespace: truelets a Binding name an agent in its own namespace, andnamespaceslists others: at most 256: the API server refuses a longer list, and the broker refuses one at load (has N items, maximum is 256), with no setting to raise it. Left out, there is no limit, as before. A value that allows nothing is invalid, and so is the field on ana2aAgentBackend. All three CRDs change, and each has a new schema hash: the AgentBackend CRD gainsspec.agents, the Binding CRD's triggertypeenum gainspersonMessagewith rules (CEL) that say which fields it takes, and the ChatConnection CRD's description says that a team may own one. Bring the CRDs and the image to the same release. - New
AcceptedreasonAgentNamespaceNotAllowed. On custom resources a Binding that names an agent namespace its AgentBackend does not allow is not served, and says so inAccepted(Binding status). On the files route the config does not resolve: the broker exits with code 2 at start, and keeps the last good config on a reload. The metricagentkourier_config_binding_rejectionsgains the reason. - An earlier broker ignores the field on custom resources, and serves every Binding with no limit, so remove
agentsbefore a rollback. - Six series gain a
connectionlabel, the ChatConnection asnamespace/name, so that a broker that serves several connections keeps their numbers apart:agentkourier_intake_total,agentkourier_chat_api_calls_total,agentkourier_slack_events_shed_total,agentkourier_slack_ack_duration_seconds,agentkourier_outbox_pendingandagentkourier_outbox_oldest_age_seconds. A query that sums over the series, or selects by the labels it names, gives what it did. An expression that matches one of these series one to one with a metric that has noconnectionlabel, such asagentkourier_outbox_pending + agentkourier_reply_queue_depth, stops matching at once and returns nothing: addignoring(connection)or aggregate first. Anon(...)list needsconnectiononce the broker serves two connections. A served connection always has its two outbox gauges on the leader (0 with nothing unposted), and a connection that is no longer served has them only while it has an unposted row. A connection the broker stops serving has its counter and histogram series deleted, and itsagentkourier_chat_connectedseries too, which used to stay at 0: an alert onagentkourier_chat_connected == 0no longer fires for a connection that was removed or is not served. Metrics has the rest. - Dependencies and the Go builder image are updated, including
slack-gofrom v0.34.0 to v0.35.0,a2a-gofrom v2.7.0 to v2.8.0 andmodernc.org/sqlitefrom v1.61.1 to v1.62.0. The builder image keeps the taggolang:1.27.3and has a new digest.
Version 0.2.1¶
The chart now grants the served ChatConnection's Secret by itself, so the install on custom resources needs config.chatConnection and no rbac.secretNames entry for that Secret
(a Secret that a Binding or AgentBackend you apply yourself names in the release namespace still needs an entry or a Role of your own), and a team grants its own Secrets in its own namespace. Read the upgrade section before you upgrade.
- New value
config.chatConnectionSecret. Withconfig.source: crdsandconfig.chatConnectionset, the chart grantslistandwatchon one Secret by name, in the connection's namespace: the Secret named like the connection, or the oneconfig.chatConnectionSecretnames. Before, the same install needed anrbac.secretNamesentry for that Secret, or the pod exited with code 3 in a loop. An existing entry keeps working, and a Secret named twice is granted once. The value is ignored withconfig.source: files, whenconfig.chatConnectionis empty, and whenconfig.chatConnectionsrenders that connection (itscredentialsSecretRefis granted instead). - One new named grant on upgrade. An install on
crdsthat setsconfig.chatConnectiongainslistandwatchon one more Secret: the one named like the connection, or the oneconfig.chatConnectionSecretnames, unless anrbac.secretNamesentry already names it orconfig.chatConnectionsrenders that connection. When the connection reads a Secret of another name, the derived Secret may not exist: the broker never reads it, so the grant covers no Secret until one of that name is created in that namespace. Setconfig.chatConnectionSecretto the real name. - A Role in the connection's namespace. With
config.chatConnection: other-ns/name, the chart now renders the Role and RoleBinding<fullname>-secretsinother-ns. A Role of that name that someone made by hand there conflicts: the upgrade fails withinvalid ownership metadatauntil you delete it or rename it. - A team grants its own Secrets. The documentation now leads with the team's own Role and RoleBinding in its namespace, two
kubectlcommands, in Write a Binding and Let a team add its own Binding.rbac.secretNamesstays for Secrets the chart cannot see and the platform owns, such as a Binding's token in the release namespace. - The examples name the Slack Secret
slack, like the ChatConnectionslack, so that the default derivation finds it. CredentialsUnreadablesays which cause it is. The status message of a Binding whose token or header Secret cannot be read now says whether the Secret does not exist, lacks the key, holds an empty value or a control character, is not of typeOpaque, or was denied to the ServiceAccount (and then what grant it needs), or that the Binding requires a token and has none. It names the Secret and the key only when the Secret is in the Binding's namespace: Binding status.
Version 0.2.0¶
Custom resources are now the recommended way to configure Agent Kourier on Kubernetes, and the chart's default: Binding,
AgentBackend and ChatConnection are CustomResourceDefinitions, and Binding.status.conditions shows in kubectl get. An install
that names no route (config.source: crds is the default) gets the CRDs and a broker that reads them.
The ConfigMap route still works. It was built for a quick proof of concept, and it stays for that use and for installs that cannot
add CRDs, but it is no longer the default. A ConfigMap install that upgrades with its old values file must now name its route:
read Breaking changes first.
The release candidates before it (v0.2.0-rc.N) are prereleases on GitHub; what they changed is in this entry.
The custom resource route¶
Each team writes its own Binding in its own namespace, committed next to the agent's manifests, and sees what became of it with
kubectl. The broker's leader writes Binding.status.conditions (Accepted, BackendReachable, ChannelJoined and Ready), and
kubectl get akbinding -A shows them:
NAMESPACE NAME READY REASON CHANNEL AGE
team-a team-a-chat True OK C2 4m
team-a late False Accepted:ChannelConflict C1 1m
- Short names.
akbinding,akbackendandakconnection, all in the categoryagentkourier. - A bad object does not stop the others. The broker judges each object on its own: it keeps serving the last good generation of an object that is edited into an invalid state, and does not serve an invalid new one. A bad object says what each case does, and Choose a config route says which route fits.
- Secrets are followed one at a time. The broker watches each Secret the config names, not a whole namespace, so a reload can add a
Secret in a namespace it was not watching, with no restart, as long as its Role grants
listandwatch. - The start line names the route. The first line of the log is an INFO
config routewithconfig_source(crdsorfiles) and, withcrds, theconnectionthe broker is configured to serve, so a pod's log says which route it reads. - A bad ChatConnection name stops the start. With
crds,AGENTKOURIER_CHAT_CONNECTIONmust be a namespace that is a DNS-1123 label and a name that is a DNS-1123 subdomain. Anything else exits with code 2, with a message that does not show the value. The chart sets it fromconfig.chatConnection. - Move between the routes. Move the config between a ConfigMap and custom resources is a two-upgrade path in each direction. Install with Helm is the path for a new install.
- Needs Kubernetes 1.33 or later, and a right to create CustomResourceDefinitions (they are cluster-scoped). The ConfigMap route has no minimum version.
With
rbac.create, the chart also makes a ClusterRole, bound to the ServiceAccount:listandwatchon the three kinds in every namespace,patchonbindings/status, andgeton the three CRDs by name (charts/agent-kourier/templates/rbac.yaml). Withrbac.create: false, the operator creates it. The Secret Roles name single Secrets byresourceNames, so the Secrets of a team's own Binding, which the chart cannot see inconfig.*, needrbac.secretNames,rbac.secretNamespacesor a Role the team makes; a namespace inrbac.secretNamespaceskeeps a namespace-wide Role (Install with Helm).
The status is written only on this route. On the ConfigMap route, the leader still probes each Binding and reports the result in metrics and logs: see Binding verification and Binding status.
Breaking changes¶
-
The chart's default is
config.source: crds. An install that reads a ConfigMap and upgrades with the values it has gets the new default. To keep the ConfigMap route, put this in the values file:With
files, an unsetcrds.installis false, so the render is 0.1.6's plus theGOMEMLIMITvariable (below), with no CRD. To move to custom resources instead, follow the migration.An unset
config.sourcestill reads asfiles, so the chart keeps the ConfigMap route for the values of ahelm upgrade --reuse-valuesfrom 0.1.6, which have no such key. A chart test renders with each new key unset and gets the render of the ConfigMap route (TestUpgradeFromAReleaseThatLacksTheNewValues). What Helm hands the chart for a new chart's default under--reuse-valuesis Helm's behaviour and is unverified here. - An unsetcrds.installfollows the route. It is true withcrdsand false withfiles. An explicittrueorfalsealways wins, soconfig.source: fileswithcrds.install: trueinstalls the CRDs before any custom resource exists (step 1 of the migration), andcrds.install: falseoncrdsis for a platform that applied the CRDs itself. - Kubernetes 1.33 or later is needed for the custom resource route. The ConfigMap route has no minimum. - The chart refuses these values on the default route. The render fails before anything is applied, so nothing changes, and each message says how to keep the ConfigMap route or how to move:The messages that name the default say "the chart's default unless your values set it", since the chart sees the same value whether your values say
config.source: crdsor leave it out.Your values Why it is refused config.existingConfigMap, and noconfig.sourceThe broker would read custom resources, mount no ConfigMap and ignore it. config.agentBackends,config.chatConnectionsorconfig.bindings, on a cluster that does not serve the CRDsA release cannot install the CRDs and the custom resources of them in one apply, so the CRDs must be served first. A cluster older than Kubernetes 1.33 The route needs 1.33. With helm template, pass--kube-version.config.chatConnectionempty, andconfig.chatConnectionswithout exactly one entryThe broker needs to know which ChatConnection it serves. Upgrade shows each message and what the chart does not refuse: an install that already serves the CRDs and upgrades with inline
config.*has them rendered as custom resources, which is step 2 of the migration, done by the upgrade. - A config the broker accepted before can be refused now. This release bounds what a config may hold, on both routes. On the ConfigMap route a config over a bound fails at start-up (the broker exits with code 2) and a reload keeps the last good config. On the custom resource route a Binding over a bound is not served after the upgrade and saysAccepted=Falsewith the reasonInvalidSpec. Runagent-kourier dry-runof the new release against your config before you upgrade (how; a values file from 0.1.6 needsconfig.source: filesfirst). What changed: - Triggers, extract entries and headers are capped. - ApromptTemplatemay use only text, comments,if,with, the view's fields,.Fields.<name>and a short list of functions.range,define,template,block, variables,print,printf,println,html,js,urlqueryandcallare refused, and a template that writes more than 262144 bytes starts no turn and is counted asrender_error, which a dry run cannot catch. ApromptTemplateis capped at 8192 bytes,spec.agent.nameat 253 andspec.identity.userIdat 256. - Each regular expression of a trigger, and all those of a Binding, are held to a size, and a match reads the first 16 KiB of its field. -interactions.timeoutandsession.threadTTLhave caps. Lowering athreadTTLcan delete sessions. - Namespaces, chat IDs, URLs, header values and durations are bounded, and an AgentBackendurlmay have no query or fragment.Limits lists every limit you can run into. - The upgrade restarts the pod. The chart now sets
GOMEMLIMITat 80% ofresources.limits.memory, which changes the pod template. With SQLite (Recreate) there is a gap while the new pod starts. See the release that sets GOMEMLIMIT. - The broker bounds what it reads from an agent. Release 0.1.6 had no bound of its own: only the A2A library's 10 MiB on each line of a stream, and a reply was shown cut at 12000 UTF-16 units. Now one event of a stream is read up to 2 MiB, the answer to a call that is not a stream up to 4 MiB, what a turn holds of the agent's reply is 341 KiB, and the agent card is 1 MiB (internal/dialect/dialect.go,MaxCardBytes). A turn past one of the first three ends with the new outcomeresponse_too_large, the thread is told, and, when the agent had named a task, the task is cancelled once; a reply that named no task has none to cancel. An agent card over 1 MiB fails every call to that agent, so the Binding takes no turn and its probe reports it; a follow of a task that meets it cancels nothing. A message that is sent again, whose outcome is unknown, is not sent, for an agent that can list tasks, when the list cannot be read in full: the turn ends with the new outcomelookup_incomplete. See the release that bounds what it reads. - Another bot's mention now starts a turn.chat.botMentionsdefaults toany, so every existing Binding with amentiontrigger takes the mentions of Agent Kourier by other bots and incoming webhooks that can post in its channel, held to fixed limits. At 0.1.6 they were ignored. To keep that, setchat.botMentions: nonein the config you upgrade with, in the same upgrade, since 0.1.6 refuses the field. See the release that lets another bot's mention start a turn.
Features¶
- Binding verification. The leader probes each Binding on a schedule: it fetches the agent's card on a fresh connection and reads
the Slack channel, and reports the result as metrics and log lines (and, on custom resources, as status). The scopes it uses are
channels:readandgroups:read, which the Slack manifest already asks for. A Binding is not ready lists each reason and what to do. - Working updates show as progress. The status updates an agent sends in state
workingnow title theWorking…card or show as a progress line insteps-and-activity, andactivitycounts them. See Working updates. - Agents can notify people. A Binding declares people under
chat.mentions, and an agent that writes@namefor a declared name in its final reply notifies that person in a message of its own.chat.maxMentionsPerTurn(default 2) caps it. See Write a Binding. - Another bot's mention can start a turn, which is how one agent calls another (see Breaking changes for the default). See Let another agent start yours.
- Limits are documented. Limits is a page of every cap, bound and timeout you can run into, with what happens past it, guarded against the code by a test.
Fixes¶
- Two controls that end the same pause no longer both ask the agent to cancel its task.
- A Slack update that Slack refuses as
block_mismatch, as a recovered turn can meet on a message it did not write, is no longer retried every 2 seconds. - A vote pressed before the reply's message place is recorded is retried instead of ignored.
- A 403 at the agent card fetch is no longer treated as a rejected credential: kagent 1.0 answers it for an agent that does not exist, so the token is not re-read and the credential-rejection metric is not raised. A 401, and a 403 on an A2A call, stay rejected credentials.
- The events of one Slack channel are handled in order on a lane of their own, so a slow match no longer delays the acknowledgments of
other channels. Past 16 events held for a channel, or 256 in all, an event is left unacknowledged and counted in
agentkourier_slack_events_shed_total. - Dependencies and the container base images are updated, including
slack-goto v0.34.0.