Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
b844740
feat(agent-platform): Agent Manager inputs and skill repository objects
Rotfuks Nov 4, 2026
0824010
fix(agent-platform): gate Agent Manager inputs and skill repository o…
Rotfuks Nov 4, 2026
85460f6
test(agent-platform): name repeated test strings as constants (goconst)
Rotfuks Nov 4, 2026
14c6fbc
feat(agent-platform): skillManager.sources input; agent-manager skill…
Rotfuks Nov 5, 2026
086a70b
test(agent-platform): name the chart hold input as a constant (goconst)
Rotfuks Nov 5, 2026
8c303b0
Merge remote-tracking branch 'origin/main' into agent-manager-assista…
Rotfuks Nov 9, 2026
5bacb83
feat(agent-platform): rename the default agent's inputs to defaultAge…
Rotfuks Nov 9, 2026
5be2c59
feat(agent-platform): skillManager.appSecretName input
QuentinBisson Nov 10, 2026
9b62c7d
fix(agent-platform): gate skill-manager and default agent inputs on o…
QuentinBisson Nov 10, 2026
ae272c1
fix(agent-platform): refuse agent-manager skill repositories the skil…
QuentinBisson Nov 10, 2026
e967265
docs(agent-platform): an empty defaultAgent.modelConfig follows the i…
Rotfuks Nov 10, 2026
39fa9d8
refactor(agent-platform): one 4 chart line refusal; name the skill-ma…
QuentinBisson Nov 10, 2026
809aa50
refactor(agent-platform): name checkSkillSourceConflicts after what i…
QuentinBisson Nov 10, 2026
7c5f68f
Merge main; name the skill-manager App input after the chart path, sk…
QuentinBisson Nov 10, 2026
cacddcb
Merge remote-tracking branch 'origin/main' into agent-manager-assista…
Rotfuks Nov 11, 2026
7b1baf1
docs(agent-platform): the default agent gets the installation's defau…
Rotfuks Nov 11, 2026
e126d34
chore: recompute the pull request's mergeability after the merge of main
Rotfuks Nov 11, 2026
c7f9d8f
fix(agent-platform): gate skill-manager inputs on release candidates;…
Rotfuks Nov 11, 2026
3339156
docs(agent-platform): skill-manager and default agent inputs need 4.1…
Rotfuks Nov 11, 2026
07799a3
fix(agent-platform): take the skill-manager and default agent inputs …
fiunchinho Nov 12, 2026
be4da34
chore: merge main into agent-manager-assistant-inputs
fiunchinho Nov 12, 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
4 changes: 3 additions & 1 deletion definitions/agent-platform/README.md

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions definitions/agent-platform/features.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,9 @@ features:
- {id: kagent-providers, kind: configmap, key: kagent.providers}
- {id: kagent-model-configs, kind: configmap, key: kagent.modelConfigs}
- {id: singletons-placement, kind: configmap, key: scheduling.singletons}
- {id: skill-manager-sources, kind: configmap, key: "skillManager.sources (the skill-manager's skill sources)"}
- {id: skill-manager-github-app, kind: configmap, key: "skill-manager.github.app.secretName (the skill-manager's GitHub App Secret)"}
- {id: default-agent, kind: configmap, key: "components.default-agent / defaultAgent (the platform-shipped default agent: off, and its ModelConfig)"}
- {id: organizations, kind: configmap, key: "agentPlatformOrganizations / agent-platform-operator.commitMode / agent-manager.tenants (the organizations' switch, their API hostnames and commit mode)"}
- {id: patch-top-level-keys, kind: configmap, catchAll: true, key: the patch's top-level keys (every key no other dimension names)}
- {id: chart-line-on-record, kind: record, key: config.yaml.patch agentPlatform.kagentApiV2 (the meta chart line the record selects; an enable or a reconcile writes the policy's line)}
Expand Down
84 changes: 83 additions & 1 deletion definitions/agent-platform/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,7 @@
"x-readback": {"file": "configmap", "key": "agent-manager.skills.repositories"},
"x-feature": "runtime",
"x-renders": ["configmap:agent-manager.skills.repositories"],
"description": "The GitHub repositories agent-manager's list_skills discovers skills in (agent-manager.skills.repositories), the catalog meta agents create agents from. None, the key is not written and the chart's default (giantswarm/agent-skills) stands. Read back from the configmap patch on record."
"description": "The GitHub repositories agent-manager's list_skills discovers skills in (agent-manager.skills.repositories), the catalog meta agents create agents from. None, the key is not written and the chart's default (giantswarm/agent-skills) stands. Refused beside skillManager.sources (the meta chart takes both, but this definition keeps one list: move it into skillManager.sources and empty it in the same reconcile), where a versions.components.agent-manager hold puts the agent-manager at 2.24.0 or later (it then takes its skills from the skill-manager, and the meta chart fails on the list), and, from the release with the skill-manager on, an entry naming the platform's own repository. Read back from the configmap patch on record."
},
"github": {
"type": "object",
Expand Down Expand Up @@ -552,6 +552,88 @@
}
}
},
"skillManager": {
"type": "object",
"additionalProperties": false,
"description": "Two choices: the skill-manager's skill sources and the GitHub App it reads them with.",
"properties": {
"github": {
"type": "object",
"additionalProperties": false,
"properties": {
"app": {
"type": "object",
"additionalProperties": false,
"properties": {
"secretName": {
"type": "string",
"default": "",
"maxLength": 253,
"pattern": "^$|^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$",
"x-source": "person",
"x-readback": {"file": "configmap", "key": "skill-manager.github.app.secretName"},
"x-feature": "runtime",
"x-renders": ["configmap:skill-manager.github.app.secretName"],
"description": "The installation's Secret in the skill-manager's namespace (agent-platform unless the component is moved) holding the read-only skills GitHub App's app-id, installation-id and private-key (skill-manager.github.app.secretName): the skill-manager lists and pins skills with the App's installation tokens and lists a private source only to the people who can read it. The Secret exists before this is set: a missing one stops the pod. Empty, anonymous reads, public sources only. The 4 chart line only, where the fleet policy runs the agent-manager, with no versions.chart hold below the release with the skill-manager (4.179.0). Read back from the configmap patch on record."
}
}
}
}
},
"sources": {
"type": "array",
"items": {
"oneOf": [
{"type": "string", "pattern": "^https?://\\S+$"},
{
"type": "object",
"additionalProperties": false,
"required": ["url"],
"properties": {
"url": {"type": "string", "pattern": "^https?://\\S+$"},
"ref": {"type": "string"},
"path": {"type": "string"},
"readOnly": {"type": "boolean"}
}
}
]
},
"default": [],
"x-source": "person",
"x-readback": {"file": "configmap", "key": "skillManager.sources"},
"x-feature": "runtime",
"x-renders": ["configmap:skillManager.sources"],
"description": "The skill sources the skill-manager lists and pins skills from (the meta chart's skillManager.sources), after the platform's own: each a GitHub repository URL, or {url, ref, path, readOnly} (a branch, tag or commit, the directory scanned, the read-only mark); never the platform's own repository, which the meta chart lists first (skills.platformSource). agentManager.skills.repositories is refused beside it: the meta chart takes both, but this definition keeps one list, so one reconcile sets this list and empties the agent-manager's. Written as read, every key kept. None, the key is not written and the chart's list (giantswarm/agent-skills) stands; a list replaces it, so it names agent-skills to keep it. The 4 chart line only, where the fleet policy runs the agent-manager, with no versions.chart hold below the release with the skill-manager (4.179.0). Read back from the configmap patch on record."
}
}
},
"defaultAgent": {
"type": "object",
"additionalProperties": false,
"description": "Two choices: whether the platform-shipped default agent runs, and the ModelConfig it answers with.",
"properties": {
"enabled": {
"type": "boolean",
"default": true,
"x-source": "person",
"x-readback": {"file": "configmap", "key": "components.default-agent.enabled"},
"x-feature": "runtime",
"x-renders": ["configmap:components.default-agent.enabled"],
"description": "The default agent, the meta agent the meta chart ships (components.default-agent, kagent namespace, with the platform's skills pinned to the release). On, the chart's default: the key is not written. Off, enabled: false is written: set it on an installation that still runs a hand-added meta agent before upgrading to the release with the default agent. Off: the 4 chart line only, where the fleet policy runs kagent and the agent-manager; any chart release takes it (components is open). Read back from the configmap patch on record."
},
"modelConfig": {
"type": "string",
"default": "",
"maxLength": 253,
"pattern": "^$|^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$",
"x-source": "person",
"x-readback": {"file": "configmap", "key": "defaultAgent.modelConfig"},
"x-feature": "runtime",
"x-renders": ["configmap:defaultAgent.modelConfig"],
"description": "The ModelConfig in kagent the default agent answers with (defaultAgent.modelConfig). Empty, the key is not written and the agent gets a model by itself only where the agent-manager's version range (components.agent-manager.versionRange: a versions.components.agent-manager hold, else the meta chart's default, >=2.22.0 on 4.179.0) starts at 2.24.0 or later: the meta chart then has agent-manager set the installation's default model once, while the agent has none, and never re-point it. Anywhere else, set it, or the agent has no model and kagent reports it not ready (Compatible=False, kagent ModelConfig is required). Set it to pin or change the model. The 4 chart line only, where the fleet policy runs kagent and the agent-manager, with no versions.chart hold below the release with the default agent (4.179.0). Read back from the configmap patch on record."
}
}
},
"clusterManager": {
"type": "object",
"additionalProperties": false,
Expand Down
10 changes: 9 additions & 1 deletion internal/installations/readback_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ const readBackFilesSchema = `{
const (
keyEnabled = "enabled"
keyGitHub = "github"
keyApp = "app"
keyRepositories = "repositories"
boardRoadmap = "roadmap"
keySkills = "skills"
Expand All @@ -79,6 +80,7 @@ const (
inputTokenBroker = "federation.tokenBroker"
inputSignIn = "federation.signInInstallation"
inputBroker = "federation.broker"
skillsApp = "acme-skills-app"
)

// The read-back fixture: the installation read for, its base domain, its
Expand Down Expand Up @@ -328,7 +330,9 @@ func TestDefaults(t *testing.T) {
"clusterManager": map[string]any{keyGitHub: map[string]any{keyEnabled: false}},
"modelManager": map[string]any{keyGitHub: map[string]any{keyEnabled: false}},
"klausGateway": map[string]any{"slack": map[string]any{"contextBotIDs": []any{}, "contextBotIDsComment": "", "contextBotNames": []any{}, "contextBotNamesComment": "", "slashCommand": "", "slashCommandComment": ""}},
"agentManager": map[string]any{"githubTokenExchange": map[string]any{keyEnabled: false}, "credentials": map[string]any{"uiURL": ""}, keyGitHub: map[string]any{keyEnabled: false}, keySkills: map[string]any{keyRepositories: []any{}, keyGitHub: map[string]any{"app": map[string]any{"secretName": ""}}, "gitAuthSecretName": "", "mintGitAuthSecret": false}},
"agentManager": map[string]any{"githubTokenExchange": map[string]any{keyEnabled: false}, "credentials": map[string]any{"uiURL": ""}, keyGitHub: map[string]any{keyEnabled: false}, keySkills: map[string]any{keyRepositories: []any{}, keyGitHub: map[string]any{keyApp: map[string]any{"secretName": ""}}, "gitAuthSecretName": "", "mintGitAuthSecret": false}},
"defaultAgent": map[string]any{keyEnabled: true, "modelConfig": ""},
"skillManager": map[string]any{"sources": []any{}, keyGitHub: map[string]any{keyApp: map[string]any{"secretName": ""}}},
"versions": map[string]any{"chart": "", "components": holds, "reasons": map[string]any{"chart": "", "components": holds}}}

want["organizations"] = map[string]any{keyEnabled: false, "apiHostnames": []any{}, "commit": map[string]any{keyEnabled: false}, "portal": map[string]any{keyEnabled: false}}
Expand Down Expand Up @@ -511,6 +515,10 @@ func TestAgentPlatformReadsBackClusterManagerCommit(t *testing.T) {
{"commit mode on", "cluster-manager:\n installation:\n name: rowan\n github:\n enabled: true\n", map[string]any{"clusterManager.github.enabled": true}},
{"commit mode not on record", "cluster-manager:\n installation:\n name: rowan\n", map[string]any{}},
{"model-manager and agent-manager commit mode on", "agent-manager:\n github:\n enabled: true\nmodel-manager:\n github:\n enabled: true\n", map[string]any{"modelManager.github.enabled": true, "agentManager.github.enabled": true}},
{"the default agent on, written by hand", "components:\n default-agent:\n enabled: true\n", map[string]any{"defaultAgent.enabled": true}},
{"the default agent off with a model override", "components:\n default-agent:\n enabled: false\ndefaultAgent:\n modelConfig: claude-sonnet\n", map[string]any{"defaultAgent.enabled": false, "defaultAgent.modelConfig": "claude-sonnet"}},
{"skill-manager sources with ref, path and readOnly", "skillManager:\n sources:\n - https://github.com/acme/skills\n - url: https://github.com/acme/platform\n ref: v4.200.0\n path: skills\n readOnly: false\n", map[string]any{"skillManager.sources": []any{"https://github.com/acme/skills", map[string]any{"url": "https://github.com/acme/platform", "ref": "v4.200.0", "path": "skills", "readOnly": false}}}},
{"skill-manager GitHub App", "skill-manager:\n github:\n app:\n secretName: " + skillsApp + "\n", map[string]any{"skillManager.github.app.secretName": skillsApp}}, //nolint:gosec // a Secret's name in a fixture, no credential
{"agent-manager skill catalog with private repositories", "agent-manager:\n skills:\n repositories:\n - https://github.com/acme/skills\n github:\n app:\n secretName: acme-skills-app\n gitAuthSecretName: acme-skills-token\n", map[string]any{"agentManager.skills.repositories": []any{"https://github.com/acme/skills"}, "agentManager.skills.github.app.secretName": "acme-skills-app", "agentManager.skills.gitAuthSecretName": "acme-skills-token"}}, //nolint:gosec // a Secret's name in a fixture, no credential
} {
read := files(map[string]string{"acme/configs:" + def.EnabledMarker("rowan"): tc.patch})
Expand Down
4 changes: 2 additions & 2 deletions internal/verify/verify_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -672,11 +672,11 @@ func TestDrivenInputsAreThePersonsAndTheTyped(t *testing.T) {
organizationsInputs := []string{"organizations.apiHostnames", "organizations.commit.enabled", "organizations.enabled", "organizations.portal.enabled"}
tenantInputs := []string{"tenants.platform.editors", "tenants.platform.users", "tenants.platformTeam"}
got, err := drivenInputs(def, Inputs{Values: doc("a.test", "acme", true)})
if err != nil || !reflect.DeepEqual(got, slices.Concat(agentInputs, chatInputs, []string{commitInput}, hiveInputs, gatewayInputs, llmInputs, []string{modelCommitInput, servingInput, "musterMcpServerViewers", "networkPolicy.mcpBackends"}, organizationsInputs, []string{"scheduling.singletonsCapacity", "sessions.idleTTL", skillsInput}, tenantInputs, versionInputs)) {
if err != nil || !reflect.DeepEqual(got, slices.Concat(agentInputs, chatInputs, []string{commitInput, "defaultAgent.enabled", "defaultAgent.modelConfig"}, hiveInputs, gatewayInputs, llmInputs, []string{modelCommitInput, servingInput, "musterMcpServerViewers", "networkPolicy.mcpBackends"}, organizationsInputs, []string{"scheduling.singletonsCapacity", "sessions.idleTTL", "skillManager.github.app.secretName", "skillManager.sources", skillsInput}, tenantInputs, versionInputs)) {
t.Errorf("from the record: %v %v", got, err)
}
got, err = drivenInputs(def, Inputs{Values: doc("a.test", "acme", true), Typed: doc("b.test", "acme", false)})
if err != nil || !reflect.DeepEqual(got, slices.Concat(agentInputs, chatInputs, []string{commitInput}, hiveInputs, []string{baseDomainInput, customerInput}, gatewayInputs, llmInputs, []string{modelCommitInput, servingInput, "musterMcpServerViewers", "networkPolicy.mcpBackends"}, organizationsInputs, []string{"scheduling.singletonsCapacity", "sessions.idleTTL", skillsInput}, tenantInputs, versionInputs)) {
if err != nil || !reflect.DeepEqual(got, slices.Concat(agentInputs, chatInputs, []string{commitInput, "defaultAgent.enabled", "defaultAgent.modelConfig"}, hiveInputs, []string{baseDomainInput, customerInput}, gatewayInputs, llmInputs, []string{modelCommitInput, servingInput, "musterMcpServerViewers", "networkPolicy.mcpBackends"}, organizationsInputs, []string{"scheduling.singletonsCapacity", "sessions.idleTTL", "skillManager.github.app.secretName", "skillManager.sources", skillsInput}, tenantInputs, versionInputs)) {
t.Errorf("with facts typed: %v %v", got, err)
}
}
Expand Down
2 changes: 1 addition & 1 deletion render/agentplatform/consumption_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -589,7 +589,7 @@ func (c *consumption) include(inc render.Include) {
}
list := "resources"
if inc.Component {
list = "components"
list = keyComponents
}
entries, _ := k[list].([]any)
for _, e := range entries {
Expand Down
23 changes: 23 additions & 0 deletions render/agentplatform/hold_admits_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,26 @@ func TestBoundedHoldAboveTheModelFreeChartDeclaresNoModels(t *testing.T) {
require.NoError(t, err)
require.False(t, in.declaresModels())
}

func TestComponentFloorAtLeast(t *testing.T) {
for _, c := range []struct {
hold string
want bool
}{
{"", false},
{">=2.22.0 <3.0.0", false},
{"~2.22.0", false},
{"<3.0.0", false},
{"2.24.0", true},
{holdAgentManagerViaSkillManager, true},
{"^2.25.1", true},
{">=2.24.0-rc.6 <3.0.0", true},
{"<3.0.0, >=2.24.0", true},
{"v2.24.0", true},
{"2.x", false},
} {
t.Run(c.hold, func(t *testing.T) {
require.Equal(t, c.want, componentFloorAtLeast(c.hold, agentManagerViaSkillManager))
})
}
}
Loading
Loading