Repository navigation
feat: ship the General Purpose Agent (default-agent) with the chart #1300
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| helm/agent-platform/agents |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,35 @@ | ||
| #!/usr/bin/env bash | ||
| # Stamp a release's commit into the chart: every `[[ .SHA ]]` placeholder of the | ||
| # agents' values files (helm/agent-platform/agents/) becomes the full commit id | ||
| # the agent chart pins the platform's skills to (it refuses a tag). Run by the | ||
| # tag pipeline (.circleci/custom.yml, stamp-release-commit) before the chart is | ||
| # packaged; make verify-default-agent runs it on a copy. | ||
| # | ||
| # usage: hack/stamp-release-commit.sh [<commit>] [<chart dir>] | ||
| # commit 40-hex commit id; default: git rev-parse HEAD | ||
| # chart dir default: helm/agent-platform | ||
| set -euo pipefail | ||
|
|
||
| commit=${1:-$(git rev-parse HEAD)} | ||
| chart=${2:-helm/agent-platform} | ||
| placeholder='[[ .SHA ]]' | ||
|
|
||
| if ! [[ $commit =~ ^[0-9a-f]{40}$ ]]; then | ||
| echo "stamp-release-commit: '$commit' is not a full 40-hex commit id" >&2 | ||
| exit 1 | ||
| fi | ||
|
|
||
| files=$(grep -rlF "$placeholder" "$chart/agents" || true) | ||
| if [ -z "$files" ]; then | ||
| echo "stamp-release-commit: no '$placeholder' under $chart/agents: nothing to stamp" >&2 | ||
| exit 1 | ||
| fi | ||
| for f in $files; do | ||
| # The placeholder holds no regex metacharacter sed would read once escaped. | ||
| sed -i.bak "s/\[\[ \.SHA \]\]/$commit/g" "$f" && rm -f "$f.bak" | ||
| echo "stamped $commit into $f" | ||
| done | ||
| if grep -rqF "$placeholder" "$chart/agents"; then | ||
| echo "stamp-release-commit: a placeholder is left under $chart/agents" >&2 | ||
| exit 1 | ||
| fi | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Convention: it re-implements the agent chart's pin rule (a 40-hex commit), and that copy is narrower than the chart's own, which accepts 40- or 64-hex.
/Users/marian/tasks/2026-11-default-agent/wt-default-agent/CLAUDE.md: "Do not copy kagent, Substrate or chart rules into this repository." A SHA-256 repository commit would be refused here although the agent chart takes it, and the rule must be kept in sync by hand.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Leaving this as is. The check isn't a copy of the agent chart's rule: it guards the script's own input, a commit from
git rev-parse HEAD, which is always 40 hex in this repository. Accepting what the chart accepts wouldn't catch anything more here.