Rig agent for the QEMU soak rig (flare-edge M9 soak-lite, d10 6.5). The flare-edge flow rig drives the guest through QMP and the ctl bridge only; the soak needs bus reads and writes, the clock and /proc inside the gate image without touching the network the soak pulls.
Changes
run.sh --agent SOCK: a third pci-serial after ctl and rs485 (their ttyS order is unchanged) and warden.agent on the command line.
rootfs/sbin/init: on warden.agent, runs warden_agent on ttyS2 (with ctl) or ttyS1 (without), echo off.
rootfs/etc/warden-lib.shwarden_agent: @run ID SECS B64 runs a script and answers <<BEGIN ID>>, the base64 of its stdout and stderr, <<END ID RC>>; @chunk ID B64 gets past the 4095-byte cooked line; a script past its deadline is killed with its process group and answers 124 (the panel BusyBox has no timeout); a malformed request answers one <<ERR ...>> line and runs nothing.
Rig rootfs only: no panel image carries it.
Tests
qemu/tests/agent-test.sh (new, in CI under sh and busybox sh): 18 checks, OK under dash, busybox sh and bash locally.
qemu/tests/run-sh-args-test.sh: new cases (agent chardev after rs485 and ctl; warden.agent only with the flag). All pass.
End to end: the flare-edge consumer is tools/soak/rig-qemu.py (flare-edge PR from rb/d15-m9-guest-channel, which pins this commit); its QEMU proof run is linked there.
Rig agent for the QEMU soak rig (flare-edge M9 soak-lite, d10 6.5). The flare-edge flow rig drives the guest through QMP and the ctl bridge only; the soak needs bus reads and writes, the clock and /proc inside the gate image without touching the network the soak pulls.
## Changes
- `run.sh --agent SOCK`: a third pci-serial after ctl and rs485 (their ttyS order is unchanged) and `warden.agent` on the command line.
- `rootfs/sbin/init`: on `warden.agent`, runs `warden_agent` on ttyS2 (with ctl) or ttyS1 (without), echo off.
- `rootfs/etc/warden-lib.sh` `warden_agent`: `@run ID SECS B64` runs a script and answers `<<BEGIN ID>>`, the base64 of its stdout and stderr, `<<END ID RC>>`; `@chunk ID B64` gets past the 4095-byte cooked line; a script past its deadline is killed with its process group and answers 124 (the panel BusyBox has no timeout); a malformed request answers one `<<ERR ...>>` line and runs nothing.
- Rig rootfs only: no panel image carries it.
## Tests
- `qemu/tests/agent-test.sh` (new, in CI under sh and busybox sh): 18 checks, OK under dash, busybox sh and bash locally.
- `qemu/tests/run-sh-args-test.sh`: new cases (agent chardev after rs485 and ctl; warden.agent only with the flag). All pass.
- End to end: the flare-edge consumer is `tools/soak/rig-qemu.py` (flare-edge PR from rb/d15-m9-guest-channel, which pins this commit); its QEMU proof run is linked there.
Generated with Claude Code
https://claude.ai/code/session_01BdKQBQkJkq4zE7iPFMkAhS
run.sh --agent SOCK adds a third pci-serial after ctl and rs485 (their
ttyS order is unchanged) and warden.agent on the command line. Stage-2
init then runs warden_agent (rootfs/etc/warden-lib.sh) on that port with
echo off: `@run ID SECS B64` runs a script and answers <<BEGIN ID>>, the
base64 of its output and <<END ID RC>>; `@chunk` pieces get past the
4095-byte cooked line; a script past its deadline is killed with its
process group and answers 124 (the panel BusyBox has no timeout). It is
the guest channel of flare-edge tools/soak/rig-qemu.py, which needs bus
reads and writes, the clock and /proc inside the gate image. Rig rootfs
only: no panel image carries it.
Tests: qemu/tests/agent-test.sh (sh and busybox sh, in CI) and new
run-sh-args-test.sh cases (agent last, warden.agent only with the flag).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BdKQBQkJkq4zE7iPFMkAhS
The qemu-tools job (run 10385) failed shellcheck on the single-quoted
script the test hands the agent: its expansions belong to the agent's
shell, so the info finding is disabled on that line.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BdKQBQkJkq4zE7iPFMkAhS
Run 10403: under a CI job container's non-reaping PID 1 the script child
the deadline killed stays a zombie, and kill -0 still found it. The check
now reads the process state from /proc.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BdKQBQkJkq4zE7iPFMkAhS
noah
merged commit b8d9d541fe into rebuild2026-10-31 19:40:35 -06: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.
Rig agent for the QEMU soak rig (flare-edge M9 soak-lite, d10 6.5). The flare-edge flow rig drives the guest through QMP and the ctl bridge only; the soak needs bus reads and writes, the clock and /proc inside the gate image without touching the network the soak pulls.
Changes
run.sh --agent SOCK: a third pci-serial after ctl and rs485 (their ttyS order is unchanged) andwarden.agenton the command line.rootfs/sbin/init: onwarden.agent, runswarden_agenton ttyS2 (with ctl) or ttyS1 (without), echo off.rootfs/etc/warden-lib.shwarden_agent:@run ID SECS B64runs a script and answers<<BEGIN ID>>, the base64 of its stdout and stderr,<<END ID RC>>;@chunk ID B64gets past the 4095-byte cooked line; a script past its deadline is killed with its process group and answers 124 (the panel BusyBox has no timeout); a malformed request answers one<<ERR ...>>line and runs nothing.Tests
qemu/tests/agent-test.sh(new, in CI under sh and busybox sh): 18 checks, OK under dash, busybox sh and bash locally.qemu/tests/run-sh-args-test.sh: new cases (agent chardev after rs485 and ctl; warden.agent only with the flag). All pass.tools/soak/rig-qemu.py(flare-edge PR from rb/d15-m9-guest-channel, which pins this commit); its QEMU proof run is linked there.Generated with Claude Code
https://claude.ai/code/session_01BdKQBQkJkq4zE7iPFMkAhS