The nightly fails about every other night before scanning: the pull of rust:1.94-bookworm gets failed to fetch oauth token ... 400 from docker.io. The cause is a bug in act_runner 0.6.1, found by infra: the runner copies each service's registry credentials onto the job container's own pull, and Go's random map order decides which service is last. When it's the agent service, the Harbor robot login goes to docker.io. PR CI has no service with credentials, so it never hits this. The bug is fixed upstream in act_runner 3.0.0; this is the pruefwerk-only workaround.
What
agent is no longer a service. A "Start the agent" step installs the static docker CLI 27.5.1 after checking its pinned sha256, logs in to repo.breakpilot.com with --password-stdin, and runs compliance-agent:latest with --network container:$(hostname).
The container runs on the runner's daemon, outside the job's own limits, so it gets --memory 4g --cpus 2. Its --label pruefwerk-nightly finds one that a cancelled job left behind. It shares the job container's network: it reaches mongo by its service name, and the harness reaches it at localhost:3001.
Secrets reach the container as -e NAME without values, so none is on the command line.
A "Stop the agent" step with if: always() removes the container.
mongo stays a service, with no credentials. With no credentialed service left, the job pull no longer gets any.
The login is stored in the job container's ~/.docker and goes away with the container, so there's no logout step.
Test
workflow_dispatch runs of nightly.yml on this branch, both green: 9817 (first version) and 9820 (with the checksum, limits and label).
## Why
The nightly fails about every other night before scanning: the pull of `rust:1.94-bookworm` gets `failed to fetch oauth token ... 400` from docker.io. The cause is a bug in act_runner 0.6.1, found by infra: the runner copies each service's registry credentials onto the job container's own pull, and Go's random map order decides which service is last. When it's the `agent` service, the Harbor robot login goes to docker.io. PR CI has no service with credentials, so it never hits this. The bug is fixed upstream in act_runner 3.0.0; this is the pruefwerk-only workaround.
## What
- `agent` is no longer a service. A "Start the agent" step installs the static docker CLI 27.5.1 after checking its pinned sha256, logs in to repo.breakpilot.com with `--password-stdin`, and runs `compliance-agent:latest` with `--network container:$(hostname)`.
- The container runs on the runner's daemon, outside the job's own limits, so it gets `--memory 4g --cpus 2`. Its `--label pruefwerk-nightly` finds one that a cancelled job left behind. It shares the job container's network: it reaches mongo by its service name, and the harness reaches it at `localhost:3001`.
- Secrets reach the container as `-e NAME` without values, so none is on the command line.
- A "Stop the agent" step with `if: always()` removes the container.
- mongo stays a service, with no credentials. With no credentialed service left, the job pull no longer gets any.
- The login is stored in the job container's `~/.docker` and goes away with the container, so there's no logout step.
## Test
workflow_dispatch runs of `nightly.yml` on this branch, both green: 9817 (first version) and 9820 (with the checksum, limits and label).
🤖 Generated with [Claude Code](https://claude.com/claude-code)
act_runner 0.6.1 copies each service's registry credentials onto the job
container's own image pull; with Go's random map order the agent's Harbor
login reached docker.io about every other night and the pull of
rust:1.94-bookworm failed with a 400 before any scan ran.
The agent now starts with docker run in the job container's network
(mongo by name, the API on localhost:3001), logged in with
--password-stdin, and is removed in an always() step. mongo stays a
service without credentials, so the job pull no longer gets any.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
workflow_dispatch run of nightly.yml on this branch: https://git.breakpilot.com/platform/pruefwerk/actions/runs/9817, green. The agent starts in its step and becomes healthy on localhost:3001. The corpus scan matches the baselines, and the stop step removes the container.
One green run doesn't by itself rule out a coin flip. The fix holds by construction: no remaining service carries credentials. The run confirms that the agent step works.
workflow_dispatch run of nightly.yml on this branch: https://git.breakpilot.com/platform/pruefwerk/actions/runs/9817, green. The agent starts in its step and becomes healthy on localhost:3001. The corpus scan matches the baselines, and the stop step removes the container.
One green run doesn't by itself rule out a coin flip. The fix holds by construction: no remaining service carries credentials. The run confirms that the agent step works.
Hardening from infra's review, in 47fc9ec:
- the docker CLI tarball is checked against a pinned sha256;
- the agent container gets `--memory 4g --cpus 2` and `--label pruefwerk-nightly`.
Re-run: https://git.breakpilot.com/platform/pruefwerk/actions/runs/9820, green (scan and baselines included). So the 4 GB limit is enough for the corpus.
sharang
merged commit d9fcc75792 into main2026-11-07 09:44:12 +00:00
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Why
The nightly fails about every other night before scanning: the pull of
rust:1.94-bookwormgetsfailed to fetch oauth token ... 400from docker.io. The cause is a bug in act_runner 0.6.1, found by infra: the runner copies each service's registry credentials onto the job container's own pull, and Go's random map order decides which service is last. When it's theagentservice, the Harbor robot login goes to docker.io. PR CI has no service with credentials, so it never hits this. The bug is fixed upstream in act_runner 3.0.0; this is the pruefwerk-only workaround.What
agentis no longer a service. A "Start the agent" step installs the static docker CLI 27.5.1 after checking its pinned sha256, logs in to repo.breakpilot.com with--password-stdin, and runscompliance-agent:latestwith--network container:$(hostname).--memory 4g --cpus 2. Its--label pruefwerk-nightlyfinds one that a cancelled job left behind. It shares the job container's network: it reaches mongo by its service name, and the harness reaches it atlocalhost:3001.-e NAMEwithout values, so none is on the command line.if: always()removes the container.~/.dockerand goes away with the container, so there's no logout step.Test
workflow_dispatch runs of
nightly.ymlon this branch, both green: 9817 (first version) and 9820 (with the checksum, limits and label).🤖 Generated with Claude Code
workflow_dispatch run of nightly.yml on this branch: https://git.breakpilot.com/platform/pruefwerk/actions/runs/9817, green. The agent starts in its step and becomes healthy on localhost:3001. The corpus scan matches the baselines, and the stop step removes the container.
One green run doesn't by itself rule out a coin flip. The fix holds by construction: no remaining service carries credentials. The run confirms that the agent step works.
Hardening from infra's review, in
47fc9ec:--memory 4g --cpus 2and--label pruefwerk-nightly.Re-run: https://git.breakpilot.com/platform/pruefwerk/actions/runs/9820, green (scan and baselines included). So the 4 GB limit is enough for the corpus.