Master/agent phase 2: jobs and manual update #7

Closed
opened 2026-10-12 12:09:15 +00:00 by shcizo · 0 comments
Owner

Update a service from the UI by clicking.

Scope (spec, "Implementation phases" 2)

  • Job protocol (envelope gets id), agent FIFO queue and executors moved under internal/agent
  • Compose: agent writes compose.override.yaml and runs pull + up -d for the service; agent mounts STACKS_ROOT read-write
  • Swarm: service update with repo:tag@digest
  • update_jobs history, Service and Jobs pages, live job log
  • Failure handling from the spec (agent offline, connection drop mid-job, master restart, one job per service)
  • Self-protection: master and agents are never updated by jobs

Depends on phase 1. Plan to be written when phase 1 has landed.

Spec: https://gitea.shcizo.se/shcizo/package-updater/src/branch/main/docs/superpowers/specs/2026-10-12-master-agent-design.md

Update a service from the UI by clicking. **Scope** (spec, "Implementation phases" 2) - Job protocol (envelope gets `id`), agent FIFO queue and executors moved under `internal/agent` - Compose: agent writes `compose.override.yaml` and runs `pull` + `up -d` for the service; agent mounts `STACKS_ROOT` read-write - Swarm: `service update` with `repo:tag@digest` - `update_jobs` history, Service and Jobs pages, live job log - Failure handling from the spec (agent offline, connection drop mid-job, master restart, one job per service) - Self-protection: master and agents are never updated by jobs Depends on phase 1. Plan to be written when phase 1 has landed. Spec: https://gitea.shcizo.se/shcizo/package-updater/src/branch/main/docs/superpowers/specs/2026-10-12-master-agent-design.md
shcizo added this to the Master/agent milestone 2026-10-12 12:09:15 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: shcizo/package-updater#7