Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
9576419
feat(helm): set tool approval on the muster MCPServer
Rotfuks Nov 25, 2026
65ec338
docs(helm): say null, not {}, clears the default tool approval
Rotfuks Nov 25, 2026
38af12f
feat(helm): accept Block as the tool approval rule
Rotfuks Nov 25, 2026
b4ca50d
docs(helm): describe the governed default and the Block rule
Rotfuks Nov 25, 2026
1ac78a6
test: compare the chart's approval map with the registered tools
Rotfuks Nov 25, 2026
33e414d
feat(approvalgrants): keep agents' approval grants as their own records
Rotfuks Nov 25, 2026
1cabc00
feat(helm): send a projected token with session binds for tool approval
Rotfuks Nov 25, 2026
1d4a1e9
feat: approval settings on an agent's tool list, split update tools a…
Rotfuks Nov 25, 2026
865cc1e
fix(approvalgrants): check records on read, keep a pending session sy…
Rotfuks Nov 26, 2026
698268e
fix(helm): turn tool approval on by default and keep grants in their …
Rotfuks Nov 26, 2026
d8e8748
fix: make tool approval settings fail closed and grant revocation rea…
Rotfuks Nov 26, 2026
d0b733c
feat: report approvalEnforced and list approval grants across namespaces
Rotfuks Nov 26, 2026
23c0a71
feat: refuse stale agent writes and sweep pending grant syncs at start
Rotfuks Nov 26, 2026
b107856
fix: start sessions where only the caller reads the release, cover or…
Rotfuks Nov 26, 2026
e437dbb
fix: follow the namespace's chart source, report pending enforcement …
Rotfuks Nov 26, 2026
e12845b
feat(migrate): add the 2.x -> 3.x hop that rewrites muster.requireApp…
Rotfuks Nov 26, 2026
baa1595
docs: describe migrate's 2.x -> 3.x path
Rotfuks Nov 26, 2026
c7714d5
fix(agents): bind default: Ask for an agent on muster.requireApproval
Rotfuks Nov 26, 2026
14779f0
fix(migrate): never write 3.x values migrate cannot follow with the s…
Rotfuks Nov 26, 2026
0a840b6
docs: describe what migrate holds, reports and binds on the 3.x path
Rotfuks Nov 26, 2026
fe1fa5b
fix(migrate): read everything before writing, stop organizations hold…
Rotfuks Nov 26, 2026
6f81a3b
docs: migrate's organization gate, valuesFrom on target and pre-relea…
Rotfuks Nov 26, 2026
396abc4
fix(migrate): hold a source's releases behind a sibling's diff, and r…
Rotfuks Nov 26, 2026
c37db43
docs: migrate holds behind a sibling's diff and finds organization so…
Rotfuks Nov 26, 2026
722a53b
docs: drop private issue references and Giant Swarm fixture names fro…
Rotfuks Nov 26, 2026
d7e8044
fix(migrate): read an exact chart version pin as its major
Rotfuks Nov 26, 2026
77f765e
test(helm): quote test names that contain a colon so the suite parses
Rotfuks Nov 26, 2026
0c9f683
test(helm): switch tool approval off where a test pins no muster MCP …
Rotfuks Nov 26, 2026
a56072e
fix(migrate): rewrite organization releases and mark each organizatio…
Rotfuks Nov 26, 2026
9396637
test(agents): pin the recreated agent's generation and UID guards and…
Rotfuks Nov 26, 2026
0356597
fix(migrate): name the releases an organization's ready mark covers
Rotfuks Nov 26, 2026
fdae6d1
fix(agents): bind a session with the settings of the release that ren…
Rotfuks Nov 26, 2026
984f2d8
feat(helm): grant get on the platform's releases that render agents (…
Rotfuks Nov 26, 2026
c1d8abb
fix(agents): bind agents whose release is on another cluster from age…
Rotfuks Nov 26, 2026
cd3b3a1
fix(approval): accept a labelled release only if the platform lists i…
Rotfuks Nov 26, 2026
04af9ca
fix(helm): normalize values.schema.json
Rotfuks Nov 26, 2026
9f903f4
feat(approval): bind the agent's display name with the session
Rotfuks Nov 26, 2026
dec1567
docs: condense tool approval docs
Rotfuks Nov 26, 2026
b6240d0
docs: link the agent-platform tool approval docs
Rotfuks Nov 27, 2026
355df4b
fix(approval): refuse a start whose post-bind grant recheck fails
Rotfuks Nov 28, 2026
d244752
fix(migrate): refuse target chart ranges past major 99
Rotfuks Nov 28, 2026
48ed659
fix(migrate): refuse only ranges that admit a major past 99
Rotfuks Nov 28, 2026
2f67c08
feat(migrate): record each release's UID and generation in the organi…
Rotfuks Nov 28, 2026
5c44cc2
Merge remote-tracking branch 'origin/main' into tool-approval
Rotfuks Nov 28, 2026
ae9bbdf
Merge remote-tracking branch 'origin/main' into tool-approval
Rotfuks Nov 30, 2026
1782f0d
Merge remote-tracking branch 'origin/main' into tool-approval
Rotfuks Nov 30, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
66 changes: 64 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ MCP-server-writer half.
| Agents of a namespace (Agent objects + HelmReleases of the chart not rendered yet), one summary each: display name, description, model config, Harness, toolset, readiness, management mode, and a suspended, deleting or failing release; `details` reports each in full; `tags` keeps those with any of them | `GET /api/v1/agents?namespace=[&details=true&tags=]` | `list_agents` | no |
| One agent with its HelmRelease values, Harness, pinned skills and plugins, toolset and the Agent's status | `GET /api/v1/agents/{ns}/{name}` | `get_agent` | no |
| Create: OCIRepository (when missing) + HelmRelease, after skill pinning, schema, ModelConfig and Harness validation | `POST /api/v1/agents` | `create_agent` | HelmRelease, OCIRepository |
| Update: merge into the HelmRelease values (`refreshSkills` re-pins git skills), validate, update | `PATCH /api/v1/agents/{ns}/{name}[?force=true]` | `update_agent` | HelmRelease |
| Update: merge into the HelmRelease values (`refreshSkills` re-pins git skills), validate, update. Over MCP split in three: `update_agent` (what it is), `update_agent_access` (what it reaches), `set_agent_approval`; see [tool approval](docs/tool-approval.md) | `PATCH /api/v1/agents/{ns}/{name}[?force=true]` | `update_agent`, `update_agent_access`, `set_agent_approval` | HelmRelease, approval grants |
| The approval grants of a namespace's agents (a connector admin's Allow over that connector's Ask), optionally of one connector | — | `list_approval_grants` | no |
| Delete: the HelmRelease; the OCIRepository only when nothing else references it | `DELETE /api/v1/agents/{ns}/{name}[?force=true&mode=&dryRun=]` | `delete_agent` | HelmRelease, OCIRepository, (bare Agent with force) |
| Status verdict: the Agent's conditions, HelmRelease conditions/history, Warning events | `GET /api/v1/agents/{ns}/{name}/status` | `get_agent_status` | no |
| Dry run of create/update: pinned skills, composed manifests + every violation | `POST /api/v1/agents/validate` | `validate_agent` | no |
Expand Down Expand Up @@ -382,6 +383,10 @@ public repositories only.

## The toolset

The toolset is now the agent's **tool list** (`tools`, per-entry settings,
`default`): see [docs/tool-approval.md](docs/tool-approval.md). `toolset` stays
accepted without settings; a chart without `tools` keeps getting `toolset`.

Muster owns the runtime limits. The resolved chart supplies the declaration's
count through `values.schema.json` and checks aggregate UTF-8 bytes during render.
The MCP input schema publishes that count for Backstage's existing `describe_tool`
Expand All @@ -408,7 +413,7 @@ so).
`preset:full` for the deliberate choice of every tool the gateway exposes.
An empty list is refused too, so "no tools" is never confused with implicit
full access.
- `update_agent` replaces the whole list — the edit path, and the way agents
- `update_agent_access` replaces the whole list — the edit path, and the way agents
that predate toolsets get one. `get_agent` / `list_agents` report the
declared `toolset`, or `implicitFullAccess: true` for a release without one
(a bare Agent's toolset is read from its RemoteMCPServer's header).
Expand Down Expand Up @@ -868,6 +873,9 @@ and without the caller's token a session operation is `401 unauthenticated`.
created, and when its first turn already carries the first message (the
message id is derived from the `requestId`) it answers that turn's latest
state and sends nothing, so a retry after a lost answer starts no second turn.
A start refused after kagent created its session deletes it again, which
spends the `requestId`: a retry with it is refused `conflict`; use a new one
(reuse one only when no answer came back).
- `message` is optional: without it `start_session` only creates the session
and answers `{session, workspace}` with no `turn`. The caller then sends the
first message itself over A2A, with the Agent as `tenant` and the session's
Expand Down Expand Up @@ -1014,9 +1022,63 @@ rewritten. A range that admits two majors (`>=1.0.0`) is refused.

| Target | Path | Old line → new line | Precondition |
|---|---|---|---|
| `>=3.0.0 <4.0.0` | 2.x → 3.x | the same `api.kagent.dev/v1alpha3` `Agent`; values only (below) | `agents.api.kagent.dev` served |
| `2.x` | 1.x → 2.x | `kagent.dev/v1alpha3` `AgentTemplate` → `api.kagent.dev/v1alpha3` `Agent` | `agents.api.kagent.dev` served (kagent 1.3 line); `--dry-run` runs before it |
| `1.x` | 0.x → 1.x | `kagent.dev/v1alpha2` `Agent` → `kagent.dev/v1alpha3` `AgentTemplate` | `agenttemplates.kagent.dev` served (kagent 1.0 to 1.2 line) |

On the 2.x → 3.x path nothing of the old line is left to delete; the expand
phase rewrites what chart 3.0 changed and reports each change per release
(`changes.removed`, `changes.set`, log line `release rewritten`):

- `muster.requireApproval: true` becomes `default: Ask`, only where the muster
binding renders (not with `muster.enabled: false` or a tool list of exactly
`["preset:none"]`); there and for `requireApproval: false` the key is just
dropped. `true` beside `default` or a `tools` setting fails the release and
holds the other releases of its chart source.
- an unset `modelConfig.name` is written as `default-model-config`, what 2.x
rendered.

A release is written only once a 3.x chart exists in the registry and the
namespace's source moves with it. Otherwise it is held `pending` with the diff:
GitOps-owned, source pinned by tag or digest or owned by git or the platform,
or source held by a sibling that is held or failed. A release with
`spec.valuesFrom` is never written: it is `failed` with what to change, holding
its source (one already on a 3.x chart is done).

Organization namespaces (`--organization-namespaces`, default `auto`: those
labelled `agent-platform.giantswarm.io/organization`) follow the same rules
except their chart sources, which are the agent-platform-operator's: a release
agent-manager owns is rewritten, a git-applied one gets its diff and holds its
siblings. The run writes its report in every organization namespace and, when
every release there is on 3.x values, annotates it
`agent-platform.giantswarm.io/agent-chart-ready-major: "3"` with
`.../agent-chart-ready-releases` naming them and
`.../agent-chart-ready-release-versions` recording each one's UID and
`metadata.generation` as the run left it (all removed again while one is
pending). The operator moves a source across a major only while that
annotation names the new major and every HelmRelease on the source matches
its recorded UID and generation (or no HelmRelease uses the source), so a
namespace with a release still on 2.x values stays on its 2.x chart, asking
as before, until the release is fixed and migrate runs again
(`kubectl create job --from=cronjob/<release>-agent-manager-migrate`). A
release created on the 2.x source after the run read the namespace, one
recreated under the same name or whose spec changed after the run, or a
failed write, holds the source the same way. Between the run's write and the
operator's move (within a minute of its next reconcile) a rewritten release's
2.x upgrade fails and it keeps its deployed revision, which still asks. The
operator recognises an agent-chart source by chart name too; a release on a
source of another chart is named in the warnings. A run that may not list,
read or write these namespaces fails before writing anything. Repair a held
organization release by applying the diff through its owner, replacing
`requireApproval: true` with `default: Ask`, never just deleting it.

A range admitting a pre-release of the next major (`<=3.0.0-rc.1`) or spanning
two majors (`3.0.1 || 2.6.0`) is refused.

Sessions: agent-manager already binds a Session on `requireApproval: true` as
`default: Ask` on 2.x, so running Sessions keep asking across the upgrade
(muster ignores `X-Muster-Tool-Approval` for a binding that carries settings).

```sh
agent-manager migrate --dry-run \
--kubeconfig ~/.kube/config --kagent-namespace kagent --harness-name kagent \
Expand Down
Loading
Loading