feat: agent.yaml parser, payload renderer, and go.work workspace#46
Merged
Conversation
Phase 2 foundation: adds the agent config package that replaces profile.toml with a declarative YAML format. The payload renderer generates self-contained payload directories (env.sh, run.sh, bin/, task.md) uploaded to sandboxes. New: - internal/agent: AgentConfig struct, Parse/ParseFile, BuildEnvSh, BuildRunSh, RenderPayload with path traversal protection on include: paths - go.work: Go workspace linking root module and sandbox/launcher module, enabling the launcher to import internal/ packages in follow-up PRs - 18 tests covering parser validation, env generation, run.sh template, payload rendering, and security edge cases Also: - providers.toml: change gws type from custom to openshell (matches reality after GWS native provider in PR 44)
This was referenced Jun 8, 2026
The launcher will be replaced by the harness binary in a container image, eliminating the need for a Go workspace. The separate sandbox/launcher module will be deleted when the harness gains in-cluster support.
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.
Summary
internal/agentpackage: AgentConfig struct with YAML parsing, BuildEnvSh/BuildRunSh generators, RenderPayload for self-contained payload directoriesgo.workGo workspace linking root module and sandbox/launcher, enabling the launcher to import internal/ packages in follow-up PRsContext
Phase 2 foundation for payload consolidation. This PR introduces the agent config format that replaces profile.toml with declarative YAML. Follow-up PRs will wire this into harness up/harness create, refactor the launcher, and migrate profiles/ to agents/.
Test plan