Repository navigation
feat(helm): add tool approval settings and replace muster.requireApproval with default: Ask - #143
Conversation
Settings and default reach muster on every request of the agent's RemoteMCPServer, so they hold for Sessions agent-manager did not start. The header carries no grants and can only make tools stricter; Sessions agent-manager binds take its settings and grants instead.
Chart 3.0 no longer renders kagent's requireApproval on the muster binding and its values schema refuses muster.requireApproval. default: Ask replaces true: muster asks a person before every tool call through it. The deprecation line in NOTES.txt and the render failure for the combination with tool approval settings go with it.
The values schema refused the key, but a release with schema validation skipped (HelmRelease disableSchemaValidation) rendered the agent without kagent's flag and without default: Ask. The tool list now fails on the key whatever its value.
…ich releases migrate only reports
…he schema skipped helm-unittest validates the values schema first, so its case passed with the template check removed. make helm-test now renders with the schema skipped and asserts the template's own message, true and false, with muster off and for a chat-only agent.
Published Helm chart
|
| Chart | agent |
| Version | 2.5.2-r27740a5ft20261130181111he76ea2f |
| OCI reference | oci://gsoci.azurecr.io/charts/giantswarm/agent:2.5.2-r27740a5ft20261130181111he76ea2f |
| Digest | sha256:605be8f20915ad76b4e61cffabf6c45ef069e9dd38eaa800fc850bcee29a816a |
| Registry | public — gsoci.azurecr.io |
| Git catalog | giantswarm-test-catalog (index) |
Pull this chart
helm pull oci://gsoci.azurecr.io/charts/giantswarm/agent --version 2.5.2-r27740a5ft20261130181111he76ea2fPosted by architect-orb · build 1962 · commit e76ea2f · updated in place on every push
… that raises them
Review recordPart of giantswarm/giantswarm#38902 (tool approval, milestones 2 and 3). Purpose: this record says what was reviewed on this branch (the agent chart's Read this first
Review rounds
What was checked
Findings
Lab verification
Open itemsFindings still open or partly fixed:
Never run:
|
Review supplement for giantswarm/giantswarm#38902Reviewed head: SpecThe chart carries the new settings and rejects the obsolete flag. Migration preserves Ask where the old binding rendered; compatible manager/muster and release sequencing remain required. This is a scoped contract assessment, not an exhaustive numbered acceptance score. Independent focused specification cross-checks covered the core enforcement/client contracts and platform/manager integration. Declared follow-ups and accepted design changes are not counted as new defects. BlockingNo new blocking code finding established in this pass. Non-blocking
SuggestionsNone beyond the existing review follow-ups. Deep verification
Reported checks passed or were skipped; no failed/cancelled check to triage. A skipped job is not evidence that its gate ran. Unverified locally: applicable builds, tests (including race/integration/envtest), vet, formatting/lint/pre-commit, generators, Makefile verification targets, Helm rendering/schema/unit checks, and browser/live-cluster flows. No PR code was executed. GitHub-reported CI provides supporting evidence, not a local reproduction. Recommendation: merge as-is within this review's scope, subject to existing release-order/rollout prerequisites and previously documented open items. This is not sign-off on production cutover: actual compatible release pins and the documented organization/remote-target rollout evidence remain required. Team context: none. |
Review record — Quentin's reviewPart of giantswarm/giantswarm#38902. Answers the review of 2026-11-27 (comments below). Branch
Independent re-checkClaude Fable, 2026-11-28, read-only: the README matches Open itemsNone. |
|
@QuentinBisson thanks for the thorough review (your comment). Addressed: QB-10 fixed in Details and the independent re-check are in the review record. |
requireApproval— the squash title should mark the major (Dominik to decide)Part of giantswarm/giantswarm#38902.
What does this PR do?
muster now decides Allow, Ask or Block for every tool call (giantswarm/muster, linked below). This PR makes the agent chart say what an agent may do with its tools.
toolsanddefault(new): top-leveltoolslists the tools the agent is composed with (1 to 32 items; each a selectorserver:,tool:,workflow:orpreset:, optionally set toAllow,AskorBlock, as in- server:github: Ask), and top-leveldefaultis the setting for every tool intoolswithout its own (Allow,AskorBlock). AnAllowover a connector'sAskholds only when a connector admin grants it through agent-manager. They render as theX-Muster-Tool-Approvalheader on every request of the agent'sRemoteMCPServer, so they hold for Sessions agent-manager did not start. The header carries no grants and can only make tools stricter than the connector's own setting; Sessions agent-manager binds take its settings and grants instead. Held only while the runtime sends the header (the docs say so).toolsetstays for now, deprecated in favour oftools(a tool the list leaves out is invisible to the agent; an entry can also beBlock).muster.requireApproval. The values schema refuses the key and the templates refuse it too, so a release with schema validation skipped (disableSchemaValidation) fails with the message "setdefault: Askinstead" instead of rendering an agent that asks nothing.default: Askreplacestrue: muster asks a person before every tool call through the binding. The NOTES deprecation line and the render failure for the combination with approval settings go with it.helm unittestcases fortoolsanddefault(render, failures, schema) and amake helm-require-approval-teststep that renders with the schema skipped and asserts the template's own refusal fortrueandfalse, with muster off and for a chat-only agent; the refusals oftoolsare asserted on the template that raises them (303f238).Commits:
8a3bc5a,551d660,a5984ef(the values, tests, docs),9bd75b9,8900a15(the header),1081d22,32f814c(3.0),0dc6300,34fffb7,95493af,303f238(template refusal, docs, tests),23e7567(docs condensed: README, values comments, schema descriptions; no behaviour change),a294ac4(README: what migrate writes in organization namespaces; review round of 2026-11-27, docs only). Tipa294ac4.What is the effect of this change to users?
muster.requireApprovalmust move todefault: Askbefore it goes to 3.0. agent-manager'smigratedoes this for agents it owns (see agent-manager's PR); a GitOps release gets a diff it reports and never writes; a release withvaluesFromis reported, never overwritten.What does it look like?
renders on the
RemoteMCPServertwo headers:X-Muster-Toolset: server:github,tool:x_github_merge_pull_request,tool:x_github_delete_repositoryandX-Muster-Tool-Approval: tool:x_github_merge_pull_request=Allow,tool:x_github_delete_repository=Block,default=Ask.Changes from the plan
Where this PR differs from the design in the epic (giantswarm/giantswarm#38902):
X-Muster-Toolset, and settings anddefaultrender as a second header,X-Muster-Tool-Approval(client-asserted, it can only tighten), as well as being bound by agent-manager, so Sessions agent-manager didn't start are tightened too.toolsetstays. It is deprecated besidetoolsinstead of replaced (both set fails the render);toolstakes at most 32 entries andtoolsetkeeps 128.Any background context you can provide?
tools(linked below).Upgrade notes
What is needed from the reviewers?
default: Allowis accepted by design: it only sets the tools intoolswithout their own setting, and anAllownever lifts a connector'sAskunless a connector admin grants it.Testing
make helm-require-approval-test(the render with the schema skipped fortrueandfalse; a mutant that disables the template refusal fails it, run in a delta review)helm unittest(tools_test.yamland the others)helm template; CI runs them8900a15create_agentwithtoolsstored and rendered; Session bound with the list; Block hidden; Allow over Ask refused; exception granted by a connector admin only3.0.0-m3.1of95493afrequireApprovalrefused with the schema (additional properties) and without it (the template's message);default=Askrenders the header; agents moved by migrate ask through muster; no agent that asked before asks nothing afterwardsNot exercised: a
valuesFromrelease (admission refuses it in the lab's namespaces; unit-tested in agent-manager).Review round 2026-11-28:
a294ac4is docs only; the README was checked against agent-manager'smigrate.goand the ready mark (UID and generation).Related pull requests
Checklist
values.yamlandvalues.schema.jsonare valid.