InfraBench — Bands Architecture

InfraBench
Bands Architecture

Pipeline
Concentric
Bands
Paper
Docs ↗

Band 1 · Provisioning

Hardware

CloudLab

Physical nodes, kernel-level access. SSH-driven.

infra/baremetal/cloudlab.py

Hypervisor

libvirt + KVM

Single-node + multi-node VM clusters. Per-trial disk, NIC, bridge.

infra/vm/standalone.py · cluster.py

Container

Docker

Default substrate. Fast start, shared kernel.

infra/container/docker.py

Application

setup.sh + bootstrap.sh

setup.sh: one-time image prep. bootstrap.sh: per trial — bring up services, drive to test state.

tasks/<t>/environment/*.sh

Band 2 · Runtime — Stack & Scenario Engine

Layer stack

L6 ServiceContainer

L5 PlatformContainer/K8s

L4 Storage/DataDistributed

L3 KernelVM/Bare

L2 VirtualizationVM

L1 HardwareBare metal

Scenario Engine

fault/scenario/executor.py · modes: AGENT_EXIT · TIMEBOXED · SCENARIO_DRIVEN

Fault injectors

kill
partition
disk-delay
disk-fill
cpu
netem
dynamic + cascading

all reversible · heal_all()

Periodic Verifier

Runs tests/test.sh on interval; parses reward.

periodic_verifier.py:20

Operations monitoring

Dangerous-op detection (rm -rf, dd /dev/…) + cascading-fault trigger watch.

→ EventLog

Agent

Claude Code / OpenHands / Codex / Aider / …
SSH or container exec.

agents/installed/*

Event / Timeline Log

timestamp · elapsed · name · data — captures every action, fault, and score change

fault/scenario/events.py · ScenarioEventLog

Band 3a · Decommission

Restart · container level

docker / pod restart of a single service; re-verify state survives.

Restart · device level

Host reboot, kernel reload, device re-attach; config & data persist.

stop(delete=…)

Destroys VM, disk, network when True; preserves for debug when False.

infra/base.py:291

heal_all() & bridge cleanup

Reverts active faults · reaps stale libvirt bridges.

injection.py:320 · vm/network_cleanup.py

Planned
Data migration / backup hooks before teardown — snapshot logs & state for post-hoc analysis.

Band 3b · Roadmap

Planned — not yet implemented

Background scoring — continuous health probe after agent exit.

Lifecycle impact — re-verify under sustained load.

Longevity tests — workload regression checks.

Multi-tenant impact — noisy-neighbour on shared infra.

Resource accounting — CPU/mem/disk/net cost of the fix.

Formal taxonomy — layer × fault class × phase coverage.