feat: task dispatcher in edge container + rename vault-runner #24
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What's left
The container pattern for dev agents is solved (spin up a container with env vars). What remains is the vault gate for credentialed work, and some cleanup.
Design
Flow
vault/actions/vault/actions/vault/actions/, detects the landed actiondisinto run <action-id>which starts an ephemeral task-runner container with:vault/actions/<id>.result.jsonDispatcher lives in the edge container
The edge container (currently just Caddy) gets a sidecar script that:
vault/actions/for new.jsonfiles without a matching.result.jsondocker compose run --rm runner <action-id>via the Docker socketRename vault-runner → task-runner
The container runs tasks, not vault operations. Rename:
vault-runnerservice →runner(compose)vault-run-action.sh→run-action.shdisinto vault-run→disinto runRemove Docker socket from agent containers
Agent containers should not be able to start sibling containers. Remove
/var/run/docker.sockmount from:agentsserviceagents-llamaserviceOnly the edge container and the WP agent (which needs it for CI) keep the socket.
ops repo structure
Affected files
docker-compose.yml/bin/disintocompose template:vault-runner→runnerbin/disinto— renamevault-run→runvault/vault-run-action.sh→ renamedocker/Caddyfileor newdocker/dispatcher.sh— action poll loop in edge containerDependencies
Acceptance criteria
disinto runstarts ephemeral task-runner with correct credentialsfeat: ClawHub publisher action agentto feat: vault-gated action pattern for tools that need credentialsfeat: vault-gated action pattern for tools that need credentialsto feat: unified container dispatcher for action and vault workfeat: unified container dispatcher for action and vault workto feat: task dispatcher in edge container + rename vault-runner