Agent benchmark

26 seeded firmware bugs across 17 STM32F407 tasks, run unchanged on CircuitTwin, Renode v1.17.0 and QEMU 10.0.13.

Scope

43 unmodified STM32F407 ELFs across 17 tasks: 17 correct (v0) and 26 buggy versions spanning 16 bug classes. Every ELF runs offline on CircuitTwin, Renode v1.17.0 and QEMU 10.0.13 and prints a CT-BENCH PASS/FAIL line. Tasks were authored by CircuitTwin (not sampled from external agent sessions), and the initial pass was used to fix twin bugs. All figures carry the provisional label pending physical STM32F407VG validation; commit revisions and binary hashes are in Provenance.

Scoring rules

OutcomeRule
CaughtNon-clean run on a buggy version: firmware self-check FAIL, hang (timeout), fault, or (CircuitTwin only) a twin diagnostic or non-pass verdict. Renode and QEMU use identical self-check / hang / fault rules; log warnings are kept as evidence only.
MissedBuggy version passes cleanly.
Working build passedCorrect v0 binary ran cleanly and printed PASS.
Distinct catchSignal differs from what the same task’s v0 produced on that platform.
Platform signalCaught by at least one signal beyond firmware self-check.

Results

PlatformBuggy versionsCaught (raw)MissedWorking builds passedCaught and different from the correct versionCaught by a platform signal
CircuitTwin (ct 0.1.0, stm32f4-discovery)2624217 of 172416
Renode v1.17.0 (stm32f4_discovery.repl default)26121415 of 17115
QEMU 10.0.13 (olimex-stm32-h405)2620610 of 1785

Manual cpu PerformanceInMips 16 on Renode: 13/26 (12 distinct, 15/17 working builds passed). None of the 43 ELFs has run on physical STM32F407 silicon yet.

Pairwise overlapBothFirst onlySecond onlyNeither
CircuitTwin vs. Renode v1.17.0121202 (i2c_nack v2, reset_vals v1)
CircuitTwin vs. QEMU 10.0.13195 (baud v1, clk_timer v1, irq_chain v3, race v1, wdg v1)1 (i2c_nack v2, matches QEMU’s broken v0 build)1 (reset_vals v1)
Renode v1.17.0 vs. QEMU 10.0.13102 (irq_chain v3, race v1)10 (8 matching QEMU’s broken v0 builds + unaligned v1, v2)4

Renode models STM32F4 GPIO, DMA2, RCC/PLL, and TIM3 interrupts. That improves working builds passed over QEMU from 10/17 to 15/17, and raises distinct catches from 8/26 to 11/26. CircuitTwin passed all 17/17 working builds. All 43 runs were 100% deterministic across two offline passes. These are raw counts over 26 versions (no confidence interval).

By task

TaskBug classBuggy versionsTwin caughtRenode caughtQEMU caughtCorrect version flagged by
baudwrong UART baud versus the peer1100None
clk_gpiomissing peripheral clock enable1101QEMU
clk_timermissing peripheral clock enable1100None
dma_m2mDMA misconfiguration3313QEMU
gpio_modewrong register bit or field1101QEMU
i2c_nackI2C NACK not handled2112Renode and QEMU
irq_chainforgotten interrupt enable, interrupt flag not cleared4443None
nvic_priowrong NVIC priority1111None
pllwrong register bit or field, polling a flag that never sets2202QEMU
poll_flagpolling a flag that never sets1111None
psctimer prescaler off by one1111Renode and QEMU
racerace between ISR and main1110None
reset_valsreliance on undocumented reset values1000None
ro_writewriting to a read-only register2212QEMU
stackstack overflow1111None
unalignedunaligned access2202None
wdgunkicked watchdog1100None

By bug class

Bug classBuggy versionsTwin caughtRenode caughtQEMU caught
DMA misconfiguration3313
forgotten interrupt enable3333
I2C NACK not handled2112
interrupt flag not cleared1110
missing peripheral clock enable2201
polling a flag that never sets2212
race between ISR and main1110
reliance on undocumented reset values1000
stack overflow1111
timer prescaler off by one1111
unaligned access2202
unkicked watchdog1100
writing to a read-only register2212
wrong NVIC priority1111
wrong register bit or field2202
wrong UART baud versus the peer1100

CircuitTwin’s 2 misses

i2c_nack v2 (I2C NACK not handled): Twin produced CT-BENCH PASS sensor read done; verdict=pass stop=marker; issues=bus.no-target x1, identical to v0 (CT-BENCH PASS NACK seen and handled; verdict=pass stop=marker; issues=bus.no-target x1). Renode missed it too; QEMU flagged it identically to v0 (CT-BENCH FAIL no start condition).

reset_vals v1 (reliance on undocumented reset values): With default zeroed SRAM all three printed CT-BENCH PASS scratch zero. A separate twin run with --uninitialized-memory seeded:1 catches it (not counted in the 24 above).

Renode v1.17.0: 2 broken working builds and sensitivity checks

On unmodified platforms/boards/stm32f4_discovery.repl, Renode passed 15 of 17 working builds and broke 2: i2c_nack v0 (no SR1.AF on unregistered 0x68) and psc v0 (stm32f4.repl hardcodes systickFrequency: 72000000 and timer3 frequency: 10000000 regardless of 16 MHz HSI).

TaskRenode v1.17.0 output (v0)Twin output (v0)
i2c_nackCT-BENCH FAIL no NACK and no ACK; warnings=4 (gpioPortB,i2c1)CT-BENCH PASS NACK seen and handled; verdict=pass stop=marker; issues=bus.no-target x1
pscCT-BENCH FAIL TIM3 tick rate outside 2%CT-BENCH PASS TIM3 at 1 MHz; verdict=pass stop=marker
Sensitivity checkObserved effect
cpu PerformanceInMips 16Default 100 MIPS lets wdg v1 finish in 20 ms virtual time (under the 31 ms IWDG period). Setting 16 MIPS catches wdg v1 as a hang (watchdog reset loop; RCC_CSR.IWDGRSTF unlatched) while keeping v0 clean: Renode moves from 12/26 (11 distinct) to 13/26 (12 distinct, 15/17 working builds passed; 11 twin-only, 0 Renode-only vs default 12 / 0).
Log signalsCounting [ERROR] adds 0 catches (only stack v1, already a hang). Counting [WARNING] breaks 3 extra working builds (dma_m2m, pll, i2c_nack v0).
Where QEMU beats RenodeQEMU traps misaligned LDRD (unaligned v1) and CCR.UNALIGN_TRP (unaligned v2) with UsageFault, and enforces read-only flash (ro_write v2). Renode passes both unaligned cases and maps flash writable (Memory.MappedMemory).

QEMU broke 7 of 17 working builds

QEMU passed 10 of 17 working builds and broke 7 because unimplemented STM32 peripherals return zero. CircuitTwin passed all 17 of 17 working builds.

TaskQEMU output (v0)Twin output (v0)
clk_gpioCT-BENCH FAIL PD12 did not go high; unimplemented-device log: GPIOA,GPIODCT-BENCH PASS PD12 high; verdict=pass stop=marker
dma_m2mCT-BENCH FAIL no transfer-complete flag; unimplemented-device log: DMA2,GPIOACT-BENCH PASS 16 words copied; verdict=pass stop=marker
gpio_modeCT-BENCH FAIL PD12 reads low; unimplemented-device log: GPIOA,GPIODCT-BENCH PASS PD12 reads high; verdict=pass stop=marker
i2c_nackCT-BENCH FAIL no start condition; unimplemented-device log: GPIOA,GPIOB,I2C1CT-BENCH PASS NACK seen and handled; verdict=pass stop=marker; issues=bus.no-target x1
pllCT-BENCH FAIL HSE not ready; unimplemented-device log: GPIOACT-BENCH PASS running from the PLL; verdict=pass stop=marker
pscCT-BENCH FAIL TIM3 tick rate outside 2%; unimplemented-device log: GPIOACT-BENCH PASS TIM3 at 1 MHz; verdict=pass stop=marker
ro_writeCT-BENCH FAIL PD12 low; unimplemented-device log: GPIOA,GPIODCT-BENCH PASS PD12 high; verdict=pass stop=marker
Provenance, runner binaries & SHA-256 hashes
  • Record results/2026-11-22/summary.json (agent-bench c7cb6da0f), /evidence/agent-benchmark/summary.json, schema ct.agent-bench-summary/1, dated 2026-11-22, SHA-256 35b044498694f61ddf526bd2f298d02f1845dcc1b08b396f08a74231b1cd99df.
  • CircuitTwin revision 287d49a4a6b9254b66f5a8f12637a53945bee637 (clean tree).
  • CircuitTwin build ct 0.1.0, board stm32f4-discovery, twin twin:1a1b7140c278c3f0, ct.exe SHA-256 3c5ab24e7a1cf3a8ee5519f3cddaf0ba90af1d7a4c30b65337ba121a80d598d4 (2026-11-21).
  • Renode build: official Antmicro Renode v1.17.0 (1.17.0+20260907gitf1dd1b4af, .NET 8.0.12), platforms/boards/stm32f4_discovery.repl, container agent-bench/renode:1.17.0-1, archive SHA-256 4ba7c68b59e2447f188ef4b4b112fcccd2802582c460beedceb63b84e5605a5f, binary SHA-256 822209a27168e2ce2e5e679ed481686b555c8e154745431b25d8b4104c34138f (2026-11-22, --network none, 100% deterministic across 2 runs; /evidence/compare/renode-benchmark-setup.json).
  • QEMU build qemu-system-arm 10.0.13, machine olimex-stm32-h405 (2026-11-21).
  • Label: provisional. All figures come from published JSON records; none is verified on STM32F407VG silicon yet.

Reproduce

Harness (MIT, tag v2026.11.21, commit b62421fc1): https://github.com/CircuitTwin/agent-bench (GitHub) and https://gitlab.com/apanter265/agent-bench (GitLab). The 2026-11-22 record runs pinned offline Renode v1.17.0 on the exact same 43 ELFs.

Totals on 43 unmodified ELFs: CircuitTwin caught 24/26 bugs and passed 17/17 working builds; Renode v1.17.0 caught 12/26 (11 distinct) and passed 15/17 working builds; QEMU 10.0.13 caught 20/26 (8 distinct) and passed 10/17 working builds. Install ct on macOS or Linux via curl -fsSL https://circuittwin.ai/install.sh | sh or on Windows (PowerShell) via irm https://circuittwin.ai/install.ps1 | iex, sign in free and run the harness locally.