Skip to content
hw.dev
hw.dev/signal/eval-containers-agent-cocotb-path-2026
SignalExgentic

A Hardware Agent Can Finally Run the Repository's Own Tests

Exgentic fixed an evaluation container that prevented hardware agents from importing the repository's own cocotb test tools.

Thesis connection

Hardware-agent evaluations become more credible when the agent can run the same tests a human contributor would run.

#eda#testing#verification#ai-hardware
Read Original

Exgentic found that its chip-design evaluation container prevented agents from running a repository's own cocotb tests. The runner starts each agent with an empty environment and a fixed command search path, so the container's Python environment disappeared. Agents received the system Python and an import error even though cocotb, the Python framework used to test simulated hardware, was already installed.

The fix is only 11 lines: executable wrappers expose cocotb and the test runner through /usr/local/bin, while the grader keeps its separate system Python. The small patch corrects a large measurement error. An agent blocked by the benchmark harness is being graded on environment repair before it can touch the hardware problem.

Evaluation maintainers should treat "run the repository's existing test command" as a preflight check and fail the container setup if it does not work. Otherwise a model score can move because of a search-path accident rather than better hardware reasoning.