Repository navigation
[M3.4c4b] Planner steps as agent actions, with agent compatibility vectors - #166
Merged
Merged
Conversation
agentAction maps each pipeline step to its typed proto action. Container specs carry env, exposed port, resources, labels, network and restart policy, and secret values are injected here, at enqueue time, refusing any unset secret. Signed-off-by: Samuel Mbabhazi <[email protected]>
Golden vectors written by the API tests hold every action a full deployment sends; the agent plans each with its own handlers, so the planner and the agent validators cannot drift apart. Signed-off-by: Samuel Mbabhazi <[email protected]>
Signed-off-by: Samuel Mbabhazi <[email protected]>
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.
What changed
M3.4c4b: planner steps become typed agent actions, and the agent checks that it accepts them.
agentAction(step, secrets)(deployments/infrastructure/agent-steps.ts) maps each pipeline step to its proto action:EnsureNetwork,PullImage,RunReleaseTask,CreateContainer,StartContainer,HealthCheck,UpsertRoute(container upstreams, ADR 0017, automatic HTTPS),RemoveRouteandStopContainer, with durations converted exactly.always, orneverfor release tasks).SecretEnv{name, version, value}. An unset secret is refused with 409secrets_missing. They travel only inside the action payload, which the queue encrypts per organization ([M1.4a2] Durable agent action queue with at-least-once delivery #148), over mTLS.agent-steps.vectors.spec-helpers.tsruns the planner over a full deployment: release task, health check, domains, and a previous release on another node. A vitest file snapshot writes every action it sends toagent/internal/actions/testdata/control-plane-actions.txt.TestControlPlaneActionsPassAgentValidationdecodes each vector and plans it with the agent's own handlers. All 9 action kinds pass, so the planner and the agent validators cannot drift apart silently.How it was tested
agent-steps.spec.ts:go test -raceand golangci-lint.Security considerations