diff --git a/.cursor/rules/zz_generated.base-llm-rules.mdc b/.cursor/rules/zz_generated.base-llm-rules.mdc index 118c8c1..4b7ae42 100644 --- a/.cursor/rules/zz_generated.base-llm-rules.mdc +++ b/.cursor/rules/zz_generated.base-llm-rules.mdc @@ -25,7 +25,7 @@ You are an AI assistant acting as an expert software developer and platform engi - Write comprehensive tests and documentation. - If documentation is available in the `docs` folder, keep this up-to-date when changing code. - Maintain the main README.md file for correctness. -- If a changelog is available as CHANGELOG.md, add your changes to it. +- If a changelog is available as CHANGELOG.md, add your changes to it, unless the repository has `.github/workflows/zz_generated.auto_release.yaml`: there GitHub Releases are the changelog, written from the pull request titles, and CHANGELOG.md only points at them, so a pull request does not edit it. ## Release Management @@ -47,6 +47,6 @@ For detailed guidelines and examples, always refer to: @https://github.com/giant diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md index 4ca8c63..abdc548 100644 --- a/.github/pull_request_template.md +++ b/.github/pull_request_template.md @@ -1,4 +1,3 @@ ### Checklist -- [ ] Update changelog in CHANGELOG.md. - [ ] Make sure `values.yaml` and `values.schema.json` are valid. diff --git a/.github/workflows/zz_generated.auto_release.yaml b/.github/workflows/zz_generated.auto_release.yaml index 417f1a0..e5f8935 100644 --- a/.github/workflows/zz_generated.auto_release.yaml +++ b/.github/workflows/zz_generated.auto_release.yaml @@ -2,7 +2,7 @@ # # devctl # -# https://github.com/giantswarm/devctl/blob/e1815b6d5c229bcb04d97e68566da30380a1d92f/pkg/gen/input/workflows/internal/file/auto_release.yaml.template +# https://github.com/giantswarm/devctl/blob/32940f296e152fd291e36a4c579e8c491c14e820/pkg/gen/input/workflows/internal/file/auto_release.yaml.template # # yamllint disable rule:truthy # Push-based release tagger + release-page publisher. @@ -26,6 +26,13 @@ # the one `version` names: the stable tag lands on that candidate's commit, # so what ships is what was tested. # +# Tags and releases are created with the giantswarm-release GitHub App token, +# so GitHub Actions workflows listening on push.tags or release can start. +# Requires the App installed on this repository with Contents write and the +# RELEASE_BOT_CLIENT_ID / RELEASE_BOT_PRIVATE_KEY secrets available to this +# workflow. Missing or unusable App credentials fail before creating a release; +# there is no GITHUB_TOKEN fallback, whose events cannot start those workflows. +# # The tag push then triggers downstream publishing (for chart/service/CLI # repos, this is the CircleCI architect pipeline firing on the same /^v.*/ # tag filter -- go-build + push-to-registries + push-to-app-catalog + @@ -78,7 +85,7 @@ jobs: name: Tag runs-on: ubuntu-26.04 permissions: - contents: write # push tags and create the GitHub Release + contents: read # checkout and fetch; the App creates tags/releases # git-cliff's GitHub API lookups (commit.remote.pr_number / username # in release notes) need PR read access via GITHUB_TOKEN. pull-requests: read @@ -230,7 +237,7 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | set -euo pipefail - # Single expensive call: walks commits, queries the GitHub API for + # One context read: walks commits, queries the GitHub API for # per-commit PR lookups, emits the JSON context for ONLY the bumped # release. # @@ -247,7 +254,27 @@ jobs: # Without either filter, --bump --context returns the full release # history in JSON and the render step below would concatenate every # past release into each new release's notes. - git-cliff --unreleased --bump --context > cliff-context.json + # GitHub metadata reads can fail on a transient timeout, truncated + # response or 5xx. Retry with bounded backoff. Keep stderr in the + # log, including the final cause, and replace any partial context + # on each attempt before downstream steps can use it. + cliff_context() { + local try tries=3 status + for ((try=1; try<=tries; try++)); do + if git-cliff "$@" > cliff-context.json; then + return 0 + else + status=$? + fi + if [ "$try" -eq "$tries" ]; then + echo "::error title=git-cliff failed::git-cliff failed after ${tries} attempts (exit ${status}); see its error above." >&2 + return "$status" + fi + echo "git-cliff failed (attempt ${try} of ${tries}, exit ${status}); retrying in $((2 ** try))s" >&2 + sleep $((2 ** try)) + done + } + cliff_context --unreleased --bump --context NEXT=$(jq -r '.[0].version // empty' cliff-context.json) echo "next computed: ${NEXT:-}" echo "version=${NEXT}" >> "$GITHUB_OUTPUT" @@ -354,6 +381,9 @@ jobs: # cliff-context.json holds exactly the commits git-cliff counted # for this release, so intersecting it with the range since the # last candidate needs no second copy of cliff.toml's skip rules. + # A new conventional `test:` commit is also enough once this + # target has a candidate: a test fix must be able to replace a + # red candidate. It opens no cycle and changes no version or notes. if [ -n "${n}" ]; then counted=$(jq -r '.[0].commits[].id' "$CLIFF_CONTEXT") since=$(git rev-list "${NEXT}-rc.${n}..HEAD") @@ -361,6 +391,10 @@ jobs: if [ -n "$counted" ] && [ -n "$since" ]; then fresh=$(printf '%s\n' "$since" | { grep -cxF "$counted" || true; }) fi + if [ "$fresh" -eq 0 ]; then + fresh=$(git log --format='%s' "${NEXT}-rc.${n}..HEAD" \ + | { grep -cE '^test(\([^)]*\))?!?: ' || true; }) + fi if [ "$fresh" -eq 0 ]; then echo "No releasable commits since ${NEXT}-rc.${n}; skipping tag." echo "tag=" >> "$GITHUB_OUTPUT" @@ -482,6 +516,17 @@ jobs: # create --notes-file expects. git-cliff --from-context cliff-context.tagged.json --strip all --output release-notes.md + # Mint just before publishing, after the release guards have passed. + # With owner/repositories unset, the token is scoped to this repository. + - name: Generate the giantswarm-release token + id: release-token + if: steps.decide.outputs.tag != '' + uses: actions/create-github-app-token@64ab729a6294000f5aa4a4bc0b73d1f32bc45510 # v3.3.0 + with: + client-id: ${{ secrets.RELEASE_BOT_CLIENT_ID }} + private-key: ${{ secrets.RELEASE_BOT_PRIVATE_KEY }} + permission-contents: write + # Create the tag AND the GitHub Release in one atomic API call. GitHub's # release-create endpoint accepts a tag_name + target_commitish and, if # the tag doesn't already exist, creates it pointing at that commitish @@ -498,7 +543,7 @@ jobs: id: release if: steps.decide.outputs.tag != '' env: - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GH_TOKEN: ${{ steps.release-token.outputs.token }} GH_REPO: ${{ github.repository }} TAG: ${{ steps.decide.outputs.tag }} PRERELEASE: ${{ steps.decide.outputs.prerelease }} diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 9499b84..59cfbf5 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -2,7 +2,7 @@ # # devctl # -# https://github.com/giantswarm/devctl/blob/95d98f7c606e2f51e53c284b5f1410044b36ea20/pkg/gen/input/precommit/internal/file/pre-commit-config.yaml.template +# https://github.com/giantswarm/devctl/blob/70705527cb6300cabe9bd3ba6af5bdf9bf0ae1dd/pkg/gen/input/precommit/internal/file/pre-commit-config.yaml.template # minimum_pre_commit_version: '2.17' default_install_hook_types: [pre-commit, commit-msg] @@ -111,7 +111,7 @@ repos: python3 -c 'import json,sys; h=lambda o: {**{k:v for k,v in o.items() if k!="additionalProperties"},"unevaluatedProperties":False} if ("$ref" in o and o.get("additionalProperties") is False) else o; p=sys.argv[1]; f=open(p,encoding="utf-8"); d=json.load(f,object_hook=h); f.close(); f=open(p,"w",encoding="utf-8"); json.dump(d,f); f.close()' "$tmp" schemalint normalize "$tmp" -o "$tmp" --force if ! diff -u helm/agent/values.schema.json "$tmp"; then - echo "helm/agent/values.schema.json is out of date -- run 'devctl gen precommit' and commit the result" >&2 + printf '%s\n' "helm/agent/values.schema.json is out of date; run from the repository root and commit the result:" 'devctl gen precommit --language='"'"'generic'"'"' --repo-name='"'"'agent'"'"' --flavors='"'"'helmchart'"'"' --k8s-schema-version='"'"'v1.33.1'"'"'' >&2 exit 1 fi - repo: https://github.com/giantswarm/schemalint @@ -129,6 +129,10 @@ repos: rev: "v1.14.2" hooks: - id: helm-docs + # The upstream script hook uses helm-docs from PATH. Build this rev + # in pre-commit's isolated Go environment so local and CI runs agree. + language: golang + entry: helm-docs args: - --chart-search-root=helm - --chart-to-generate=helm/agent diff --git a/CHANGELOG.md b/CHANGELOG.md index c70faa7..6ed0fc8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,95 +1,7 @@ # Changelog -All notable changes to this project will be documented in this file. +The changes of each release are in its notes on GitHub Releases: +https://github.com/giantswarm/agent/releases -The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), -and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). - -## [Unreleased] - -### Changed - -- **BREAKING** Chart 3.0: `modelConfig.name` is required and has no default (it was `default-model-config`). The values schema refuses a release without a name, or with one that is not a valid Kubernetes object name. The chart looks nothing up: set `modelConfig.name` before upgrading, to the namespace's default model (the ModelConfig annotated `agent-platform.giantswarm.io/is-default-model-config: "true"`) or another ModelConfig in the agent's namespace. A release that already sets it upgrades unchanged (giantswarm/agent#124). - -### Removed - -- Chart 2.0: the `kagent.dev/v1alpha3 AgentTemplate` and the admission label `agent-platform.giantswarm.io/harness`. The chart renders one `api.kagent.dev/v1alpha3 Agent` instead (see Changed); `Harness.spec.allowedAgentTemplates` no longer exists in the API, so no label selects a Harness. An upgrade of a 1.x release replaces the `AgentTemplate` with an `Agent` of the same name. The chart installs only on a platform that serves `api.kagent.dev` (kagent-dev/kagent#2952). - -- `spec.context.compaction` on the rendered AgentTemplate. kagent-dev/kagent#2790 moved context compaction to `Harness.spec.kagent.compaction`, and the kagent line from `1.1.0` has no `spec.context` on the AgentTemplate: a template that carries it fails admission and the agent's HelmRelease never installs. The platform Harness carries the compaction for every admitted agent (agent-platform `kagent.harness.compaction`, the values this chart used to render). The `context.compaction` values stay accepted for existing releases and render nothing. - -### Added - -- `agent.tags` (empty by default): free-form keywords (lowercase alphanumerics and hyphens, unique, at most 50, up to 63 characters each), rendered as the comma-separated `ui.giantswarm.io/tags` annotation on the Agent when set (giantswarm/giantswarm#38901). - -- `agent.platformPrompt.egressNote` (`false` by default): appends the network access note, a `## Network access (set by the platform)` section naming the origins of `agent.egress` and the toolchain registries, to the Agent's `spec.template.systemPrompt`, after `agent.systemMessage`. agent-manager sets it on every agent on a coding Harness instead of writing the note into `agent.systemMessage`, so the person's prompt stays their own and a chart release updates the wording on every agent. A note found inside `agent.systemMessage` (a line that is its heading, and the paragraph after it up to the next blank line, in any line endings) is replaced by the chart's note at the end of the prompt, with or without the flag: an agent whose values carry the note agent-manager wrote before keeps exactly one note, in the chart's wording, when its release moves to this chart version (giantswarm/giantswarm#38803). - -- `spec.template.systemPrompt` is rendered as a quoted string instead of a `|-` block, so a prompt whose first line is indented renders instead of failing; trailing line breaks are still dropped. - -- `agent.egressPolicyRefs` (empty by default): names of EgressPolicies in the agent's namespace, rendered into the Agent's `spec.egressPolicyRefs` as `{name}` entries beside `spec.egress`. The chart copies none of a policy's rules. At most 16 unique resource names; the schema refuses anything else, naming the entry. Needs a kagent line that serves `egresspolicies.api.kagent.dev` (giantswarm/kagent-upstream#620). - -- `agent.egress` accepts `tls://:` entries: TLS that the egress gateway forwards without decrypting it, matched on the SNI server name, for a database or message broker that speaks TLS from its first byte. Same host rules as an HTTP(S) origin, and a port is required. The schema and the render refuse an entry without a port, with a path or on an IP address, naming it. Needs the kagent line from 1.21.0, whose Agent accepts `tls://` in `spec.egress` (giantswarm/kagent-upstream#740); an older kagent refuses the Agent (giantswarm/agent#58). - -- `agent.egress` (empty by default): HTTP(S) origins the agent may reach besides what its revision compiles, such as `https://github.com:443` or `https://*.githubusercontent.com` (one wildcard label, over at least two labels), rendered into the Agent's `spec.egress` (kagent-dev/kagent#3019, which the kagent line must carry; a kagent without the field prunes it). At most 64 unique origins; the chart refuses anything that is not an origin, naming the entry. - -- `plugins[]` (empty by default): Agent Plugins bundles, `{git: {url, commit}, path, skills: [...]}` or `{oci: , path, skills: [...]}`, rendered into `spec.template.plugins[]` as `{source, skills}`. The source rules of `skills` apply (`plugin.schema.json`: exactly one of git and oci, a full commit id or a digest, a relative path), `skills` names at least one skill to enable, and `skillsGitAuthSecretRef` reaches every git plugin as it reaches every git skill. - -- `muster.timeout` (a duration with a unit, default `180s`): rendered as `spec.timeout` on the agent's muster RemoteMCPServer. Without the field kagent applies its own 30 s to every tool call through muster, so a backend tool that legitimately runs longer — a write that creates a repository, pushes a scaffold and opens a pull request in one call, a watch that blocks for minutes — is cancelled by the caller at 30 s and comes back as a transport error, although muster's own per-server budget for that backend allows 180 s. The default matches the longest budget a muster backend declares, so a call is bounded by its backend's `spec.timeout`, not by an accidental caller default; the schema refuses a value without a unit (giantswarm/agent#39). - -- `context.compaction` — the AgentTemplate's `spec.context.compaction` (kagent API v2, served by the kagent line from `0.11.0-gs.16`, which carries kagent-dev/kagent#2790), **on by default** as tail retention for an SRE turn: `tokenThreshold: 24000`, `eventRetentionSize: 4`, the summaries on the agent's own model with the runtime's default prompt. Before a model call whose prompt has grown past the threshold (the last response's prompt tokens plus an estimate of what the turn appended since), the Go ADK runtime replaces everything but the last four events — the last two tool exchanges — and the turn's own question with one rolling summary, so a long tool loop stops re-reading every tool result on every call (on gazelle a status question grew from 6 k to 62 k input tokens in ten calls and waited 9-19 s for the first token after each large listing; giantswarm/giantswarm#37792). A summary is a model call too, paid once per crossing instead of the whole history on every call. Knobs: `enabled: false` renders no `spec.context` (every word kept verbatim), `tokenThreshold` / `eventRetentionSize` come together, `compactionInterval` / `overlapSize` add or replace the strategy with a sliding window over whole turns, `summarizer.modelConfig` names a cheaper or faster ModelConfig in the agent's namespace, `summarizer.promptTemplate` (must contain `{conversation_history}`) replaces the runtime's default prompt. The render mirrors the CRD's rules and fails first, naming the value; the schema refuses a zero, a negative and a non-resource-name. An older kagent prunes the field at admission and the history stays uncompacted, in silence — the ATS runs on the release that has it. - -### Changed - -- `annotations` refuses `ui.giantswarm.io/display-name`, `ui.giantswarm.io/icon-url` and `ui.giantswarm.io/tags`; set `agent.displayName`, `agent.iconUrl` and `agent.tags` instead (giantswarm/giantswarm#38901). - -- `muster.timeout` defaults to `60m` (was `180s`), muster's progress cap (an MCPServer's `progress.maxDuration`, at most an hour). kagent applies the RemoteMCPServer's `spec.timeout` to the whole request, and no MCP progress notification restarts it, so a wait that muster keeps alive by progress, devctl's `pr_wait`, `pr_merge` and `release_wait`, was cut after 180 s by the agent's own runtime while muster would have carried it to its verdict. muster still bounds every call by its backend's own `spec.timeout`, restarted by that backend's progress, so a backend without progress ends at its own budget as before. - -- `make helm-test` no longer runs the chart's helm-unittest suites twice: the hand-written target beside the generated one in `Makefile.gen.app.mk` (giantswarm/devctl#2570) is gone, so the helm-unittest version is pinned in one place. `make helm-lint` still runs as part of it, and `make helm-unittest-update` still re-records the snapshot. - -- `plugins[].skills` is optional. A Claude Code format plugin (`.claude-plugin/plugin.json`) loads whole on the `claude` Harness and needs no selection; an Agent Plugins format package without one enables none of its skills while its `mcp.json` servers still load. An entry without `skills` renders without the key. A skill name is enabled once across `skills[]` and every plugin's selection; the render fails naming both entries, as the Harness would at materialisation. -- The ATS fail-fast cases follow the kagent 1.3.0 and Substrate 1.4.0 lines. A WorkerPool without a ready worker is built from a pod template whose `nodeSelector` matches no node, since ate-controller runs every gVisor pool on the release's own `ateom-gvisor` whatever `spec.workerImage` says. A Harness image the registry refuses is reported as `Ready=False ActorTemplateRetrying` quoting `GoldenActorCrashed … MANIFEST_UNKNOWN` and the attempt's place in the six-boot budget (`test_unpullable_harness_image_reports_the_registry_answer`); the readiness wait treats `ActorTemplateRetrying` as a boot still running, and `ActorTemplateFailed` as terminal. -- Chart 2.0 renders one `api.kagent.dev/v1alpha3 Agent` named after the release: the template inline under `spec.template` (everything the `AgentTemplate` carried: `modelConfig`, `description`, `systemPrompt`, `skills`, the muster binding with `tools` and `requireApproval`, `extraTools`), the Harness by name in `spec.harnessRef.name`. The muster `RemoteMCPServer` moves to `api.kagent.dev/v1alpha3`. The values contract is the 1.x one plus `plugins`; the README's "Migrating from 1.x" table lists the keys whose meaning changed. - -- `agent.harness` (unchanged name and default `kagent`) is the Harness the Agent references in its namespace (`spec.harnessRef.name`), no longer the value of an admission label. An extra `agent-platform.giantswarm.io/harness` label under `labels` is rendered as given and means nothing to the platform. - -- `extraAgentSpec` deep-merges into `spec.template` only, never into `spec.harnessRef`. A sub-agent binding under `extraTools` is `{subAgent: {name, description, templateRef}}` (`{agent: {...}}` in 1.x). - -- The helm-unittest suite `agenttemplate` is `agent` (`helm/agent/tests/agent_test.yaml`), with a new golden snapshot of the default `Agent` render and cases for `harnessRef` and `plugins`. - -- The ATS runs on `api.kagent.dev`: the runtime fixture applies the six CRDs of that group and a Harness without `allowedAgentTemplates`, readiness is read from the `Agent`'s own status (`wait_agent_ready`: Accepted, ResolvedRefs, Compatible, Ready; `latestSuccessfulRevision` equal to `desiredRevision`), and the fail-fast case of a template no Harness admits is an Agent whose Harness does not exist (`ResolvedRefs=False ReferenceResolutionFailed`). The CRD URLs name the new files at the current tag; the pins move to the first kagent-upstream tag that serves the group. - -- `agent.systemMessage` is capped at 20000 characters (counted in characters, not bytes). kagent passes the compiled agent config to Substrate as one environment variable, and Substrate refuses a value past 32768 characters, so a longer prompt installed, never became Ready, and was retried by the controller about once a second. The cap leaves room for the JSON escaping of the prompt and the rest of the config; a prompt heavy in `<`, `>` or `&` can still exceed the runtime limit under it, and the AgentTemplate then reports the size. Long reference material belongs in a skill. - -- The ATS runtime moves to kagent `v0.11.0-gs.16` and Substrate `v0.0.30-gs.1` (the two lines move together: a kagent from gs.14 on stamps the 0.0.30 worker image, and a 0.0.27 control plane boots no golden actor under it), and the smoke asserts the rendered `spec.context` on the default and the smoke release — the CRD at the pin has to know the field. - -- `skillsGitAuthSecretRef.name` (string, default empty): one read credential for every private git skill. When set, every `skills[]` entry with `git` renders `source.git.credentialRef: {name, key: token}` on the `AgentTemplate` (kagent API v2's per-source credential, giantswarm/kagent-upstream `0.11.0-gs.x`); OCI sources are unchanged, and unset renders exactly what 1.1 renders. The Secret lives in the agent's namespace with the key `token` — the chart never creates it; the README's "Private skill repositories" section has the Secret contract (namespace, key, the `ui.giantswarm.io/agent-skills-git-auth` label, rotation) and the two failure modes (missing Secret → `ResolvedRefs=False`; wrong token → `Ready=False ActorTemplatePending`). Every git skill then needs an `https://` URL: the CRD refuses a credential on a plain http source and the chart fails the render first, naming the skill. The schema refuses an unknown key under the value and a name that is not a Secret name. Brings back what 0.x's `skills.gitAuthSecretRef` did, in the shape kagent API v2 has for it — the fleet's private-skill agents migrate with their skills (giantswarm/agent#32, spike giantswarm/giantswarm#37321). - -- `muster.requireApproval` (boolean, default `false`): rendered as `requireApproval: true` on the curated muster binding (`spec.tools[].mcp.requireApproval`, kagent API v2), so every tool call through muster pauses the task at `input-required` until a person approves it — kagent's human-in-the-loop. A client that negotiates the HITL A2A extension (`https://kagent.dev/extensions/hitl/v1`) receives the structured `tool_approval_request` and answers it; the Swarmgeist gateway and the Dev Portal do. It applies to the tools the binding exposes (`muster.tools` when set, otherwise every muster tool); `toolset: ["preset:none"]` and `muster.enabled: false` still render no binding. The default render is unchanged. Until now the field was reachable only through `extraAgentSpec`/`extraTools`, which replace the curated tools list or bind the server twice, so no composer could create a HITL-gated agent through the contract. - -- The ATS asserts the third fail-fast case: a Harness whose image cannot be pulled (`tests/ats/test_fail_fast.py::test_unpullable_harness_image_fails_fast`, a digest the registry has never seen). Substrate `v0.0.27-gs.4` (giantswarm/substrate#14) crashes the golden actor on the registry's answer and records the cause on the template, so the release fails in seconds as `Ready=False ActorTemplateFailed` (`GoldenActorCrashed: … MANIFEST_UNKNOWN`) instead of sitting out the 300 s budget as `ActorTemplatePending` without a message (the measurement `v0.0.27-gs.2` gave). The Substrate pin moves to `v0.0.27-gs.4` (`.ats/main.yaml` cluster-crds and `SUBSTRATE_LINE`; kagent stays at `v0.11.0-gs.3`). -- The ATS smoke (`execute-chart-tests`) runs on the platform's real runtime instead of asserting acceptance by the CRDs alone: on the kind cluster the CI job creates from `.ats/kind-config.yaml` (Kubernetes 1.35+, the `ClusterTrustBundle`, `ClusterTrustBundleProjection` and `PodCertificateRequest` gates, the `certificates.k8s.io/v1beta1` API) the tests bring up Agent Substrate (the Giant Swarm line `giantswarm/substrate` at `v0.0.27-gs.2`: the CA/JWT-pool bootstrap as a Job, the chart with its bundled database and snapshot store) and the kagent line (`giantswarm/kagent-upstream` at `v0.11.0-gs.3`: the controller wired to Substrate, a WorkerPool of gVisor workers, the bundled database, a placeholder ModelConfig) and the platform Harness (the Go ADK image by digest, admission by the label `agent-platform.giantswarm.io/harness`), then install releases of the chart and assert `status.harnesses[]` for the Harness: a release with `tests/ats/values-smoke.yaml` (every mapped field, a public git skill pinned to a commit) and a release with the default values reach `Ready` for their generation with their `RemoteMCPServer` accepted; `toolset: ["preset:none"]` reaches `Ready` with no `RemoteMCPServer`. The wait fails fast, with the reason, when no Harness admits the template, when the Harness's WorkerPool has no ready worker (two functional cases), and whenever Substrate reports the golden boot as failed (`ActorTemplateFailed`); a Harness image that cannot be pulled is not such a report on the pinned Substrate (the resume is retried with backoff, the template stays pending — measured, recorded in `tests/ats/test_fail_fast.py`). Every pin is named in `.ats/main.yaml` with the bump procedure; the eight CRDs of both lines come from the same tags via `cluster-crds`, and a half-done bump is refused before anything is installed. - -### Fixed - -- `ct lint` (`make lint-chart`) passes again: `agent.toolset.isNone` nests its conditions, because Helm built with Go before 1.18 evaluates every argument of `and` and called `len` on an unset `toolset`. `helm/agent/ci/` gives ct a case per toolset shape (unset, `["preset:none"]`, selectors). The rendered output is unchanged. -- The `helm.sh/chart` and `app.kubernetes.io/version` labels stay valid at any chart version: helm-controller installs every OCI chart as `+` and the `+` becomes `_`; a long branch-build version (`0.6.2-dev...