feat(agents): self-updating agent image variant
ci / test (pull_request) Successful in 9m12s
ci / lint (pull_request) Successful in 12m17s
ci / build (pull_request) Successful in 16m25s
ci / image (pull_request) Successful in 4m40s

The -autoupdate variant of the checker and status page images adds a
launcher layer. The launcher runs the agent as a child process and keeps
it on the platform's release: GET /agent/v1/update names the API's own
release and the agent image for it, the launcher downloads the binary
for its platform from the registry, accepts it only when the index is
signed with a release key for exactly that version, swaps the agent
gracefully and rolls back when the new release does not become ready or
crashes right after starting. Agents never get ahead of the API, and
installations on unreleased builds are not followed.

CI pushes both variants and signs each index with RELEASE_SIGNING_KEY
(minisign signature in a sha256-<digest>.minisig image next to it). The
image builder moves to internal/agentimage; the API image job takes the
build job's version so the API reports the release its agents are tagged
with. Agents gain a version command.

Closes #129
Closes #128

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017GpWAskjmYtZpuQ5JwYTX3
This commit is contained in:
Sebastian UnterschützandClaude Opus 5.5 committed 2026-11-23 18:57:48 +01:00
1 parent 431048e244
commit a35dadd8f6
20 files changed
+1577 -443

No files matched your search

+5 -1
View File
@@ -21,6 +21,10 @@ import (
)
func main() {
if len(os.Args) == 2 && os.Args[1] == "version" {
fmt.Println(buildinfo.Version)
return
}
if len(os.Args) == 2 && os.Args[1] == "health" {
if err := health(); err != nil {
fmt.Fprintln(os.Stderr, err)
@@ -83,5 +87,5 @@ func health() error {
if err != nil {
return err
}
return platform.ProbeLocal(context.Background(), cfg.HealthListen)
return platform.ProbeLocal(context.Background(), cfg.HealthListen, "/healthz")
}