feat(v2): builder-agent self-modification WIP + container-config as per-group file

Checkpoints the builder-agent dev-agent/worktree/swap flow (create_dev_agent,
request_swap, classifier, deadman, promote) before pivoting to a unified
draft-activate approach with OS-level RO enforcement. Lifts container_config
out of the agent_groups row into groups/<folder>/container.json so install_packages,
add_mcp_server, and rebuild flows can eventually route through the same draft
path as source edits.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
gavrielc
2026-04-15 18:42:10 +03:00
parent c54c779834
commit 75c2fde2b5
48 changed files with 4385 additions and 134 deletions

View File

@@ -156,7 +156,6 @@ async function main(): Promise<void> {
name: args.agentName,
folder,
agent_provider: null,
container_config: null,
created_at: now,
});
ag = getAgentGroupByFolder(folder)!;

View File

@@ -29,7 +29,6 @@ if (!getAgentGroup(AGENT_GROUP_ID)) {
name: 'Main',
folder: 'main',
agent_provider: 'claude',
container_config: null,
created_at: new Date().toISOString(),
});
console.log('Created agent group:', AGENT_GROUP_ID);

View File

@@ -36,7 +36,6 @@ createAgentGroup({
name: 'Channel E2E Agent',
folder: 'test-channel-e2e',
agent_provider: 'claude',
container_config: null,
created_at: new Date().toISOString(),
});

View File

@@ -38,7 +38,6 @@ createAgentGroup({
name: 'E2E Test Agent',
folder: 'test-agent-e2e',
agent_provider: 'claude',
container_config: null,
created_at: new Date().toISOString(),
});