Skip to content

feat: agent.platformPrompt.egressNote renders the network access note after the prompt - #109

Merged
marians merged 2 commits into
mainfrom
feat/platform-prompt-egress-note
Oct 23, 2026
Merged

marians merged 2 commits into
mainfrom
feat/platform-prompt-egress-note

Conversation

@marians

@marians marians commented Oct 23, 2026 •

Copy link
Copy Markdown
Member

Towards giantswarm/giantswarm#38803.

agent-manager currently writes the network access note ("egress note") into agent.systemMessage of 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:

  • New value agent.platformPrompt.egressNote (default false). When set, the chart appends the ## Network access (set by the platform) section to spec.template.systemPrompt, after agent.systemMessage, listing the origins of agent.egress. The wording is the same as agent-manager writes today.
  • A note found inside agent.systemMessage is 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.systemPrompt is 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: null renders no note instead of failing the render.

Known limits, documented in the README:

  • extraAgentSpec.systemPrompt replaces the whole prompt, the note included.
  • The note lists agent.egress only, not the origins of agent.egressPolicyRefs; agent-manager refuses EgressPolicy refs on coding agents, the only agents it sets the flag on.
  • The 20000-character cap applies to 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

  • Update changelog in CHANGELOG.md.
  • Make sure values.yaml and values.schema.json are valid.

@circleci-architect

circleci-architect Bot commented Oct 23, 2026 •

Copy link
Copy Markdown

Published Helm chart agent

2.3.5-r38681f99t20261023095050h40d9019
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

@marians
marians merged commit 3365dd1 into main Oct 23, 2026
13 checks passed
@marians
marians deleted the feat/platform-prompt-egress-note branch October 23, 2026 10:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant