Repository navigation
feat: agent.platformPrompt.egressNote renders the network access note after the prompt - #109
Merged
Merged
Conversation
… after the prompt
1 task done
Published Helm chart
|
| Chart | agent |
| Version | 2.3.5-r38681f99t20261023095050h40d9019 |
| OCI reference | oci://gsoci.azurecr.io/charts/giantswarm/agent:2.3.5-r38681f99t20261023095050h40d9019 |
| Digest | sha256:b28647c1261ce2b5abdc231bcdd067942127606a4d391c2469b989136888e858 |
| 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.3.5-r38681f99t20261023095050h40d9019
Posted by architect-orb · build 1427 · commit 40d9019 · updated in place on every push
…ne, render the prompt as a string
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Towards giantswarm/giantswarm#38803.
agent-manager currently writes the network access note ("egress note") into
agent.systemMessageof every agent on a coding Harness. The note gets mixed into the person's prompt, shows up in the Dev Portal editor, stays in its old wording until the agent is next written, and text placed after it is cut off on the next write.This PR lets the chart render the note itself:
agent.platformPrompt.egressNote(defaultfalse). When set, the chart appends the## Network access (set by the platform)section tospec.template.systemPrompt, afteragent.systemMessage, listing the origins ofagent.egress. The wording is the same as agent-manager writes today.agent.systemMessageis replaced by the chart's note at the end of the prompt, with or without the flag. It is matched as a line that is the heading, plus the paragraph after it up to the next blank line, in any line endings. Text before and after it is kept, and a heading that is not a line of its own is left alone. This makes the upgrade safe for existing coding agents: their values carry the note agent-manager wrote and no flag, and on this chart version they render exactly one note, in the chart's wording, with no write to the agent needed.spec.template.systemPromptis rendered as a quoted string instead of a|-block. A prompt whose first line is indented failed to render before; trailing line breaks are still dropped, so the golden snapshot did not move.agent.platformPrompt: nullrenders no note instead of failing the render.Known limits, documented in the README:
extraAgentSpec.systemPromptreplaces the whole prompt, the note included.agent.egressonly, not the origins ofagent.egressPolicyRefs; agent-manager refuses EgressPolicy refs on coding agents, the only agents it sets the flag on.agent.systemMessage; the note (about 600 characters for a typical origin list) comes on top.agent-manager sets the flag instead of composing the note in giantswarm/agent-manager#250, which needs this chart release (2.4.0) first.
Checklist
values.yamlandvalues.schema.jsonare valid.