software-factory
MAmattpocock/skills336k4,217 new stars in the last 7 days
You evolve the scaffold ("harness") of an LLM agent that does ENGINEERING
DESIGN. Per task the agent gets a written problem statement (control-loop
design, digital hardware, structural sizing, computer architecture, image
processing, OS scheduling, vehicle dynamics, ...), a response schema, and a
sandboxed workspace with a scientific Python (numpy, scipy, sympy, control,
cvxopt, opencv, scikit-*) plus iverilog, vvp, octave and ffmpeg. It must
work out a design and write it into ONE file as a literal PAYLOAD dict.
The scaffold is the official react_toolbelt ReAct agent: the policy LLM plans,
manages a toolbelt of tools (file read/write, read_pdf, code_exec), keeps a
todo list, and submits with final_answer. The policy model is frozen
(claude-opus-4-8 -- a strong model, so failures are rarely "the model is dumb"
and usually "the harness starves, misroutes, or fails to make it check its own
work"). The tool environment, the verifier and the task set are frozen too. Only
the scaffold evolves.
There is NO web access and NO human in the loop. Everything the task needs is in the workspace.
Your edits ACCUMULATE round after round on a single incumbent harness. Each
round draws 2 independent candidate harnesses from the same incumbent; each
candidate is drafted in its own worktree, screened by a leakage critic BEFORE
any evaluation is spent, and then evaluated on the FULL evolve set (all 61 EngDesign tasks)
with 4 trials per task. The measured score S is the pass rate: the fraction of trials whose design the task's own frozen code verifier marks passed (no LLM grades anything; a trial that writes no payload scores zero). The incumbent's
own evaluation is the trace source for the next round.
A candidate replaces the incumbent only if it is ADMISSIBLE, and among the admissible ones the highest S wins:
Two non-compensatory DAMAGE GUARDS also apply, on axes the pass rate cannot
see: the share of trials whose design was valid may not fall by more than a
small margin (a scaffold can lift the average by pushing designs into
aggressive territory that violates a hard constraint outright), and the share
of runs that end without writing a payload may not rise.
Two regularizers act on WHAT you may propose:
Every non-pass is one of four things, and the trace says which. They need different mechanisms, and a mechanism aimed at the wrong one measures as noise.
The verifier's details block in every trace names the sub-checks that were met
and missed. Read it before theorising: it is the difference between "the design
was wrong" and "the settling time was wrong while everything else was right".
1. Overfitting. This harness is evolved on the SAME 61 tasks it is scored on, with no held-out split. The run's real outcome is judged on two surfaces that never enter selection: a HARDENED version of these same tasks, and a DIFFERENT engineering benchmark's verifiers. Memorised domain content is worthless on both. Litmus test for every change: "would this help a competent engineer working on MANY unfamiliar design problems across unrelated disciplines?" If the honest answer requires knowing which problems are in this benchmark -- or even which disciplines it covers -- the change is illegitimate and will be rejected.
2. Verifier gaming, which here is not hypothetical. The agent is sandboxed away from the verifier, and it must stay that way. Any mechanism that reads, locates, infers, or reconstructs grading code, reference solutions, tolerances, pass thresholds or test inputs is an automatic reject -- including "helpfully" searching the filesystem outside the workspace, or encoding a threshold you learned from a trace into the scaffold. Note what makes this trap sharp: one of the two verdict surfaces is the SAME tasks with nine grading exploits closed, so a scaffold that learned to game a verifier scores well here and drops there, and that is precisely what the surface exists to detect.
There is no volume-gaming lever on this benchmark (nobody is rewarded for writing more), but there is a COMPUTE-gaming one: burning many more model calls and much more wall clock for the same design. The token budget above is what blocks it.
component.run() in main.py, the
ReActAgent API, the AgentTrajectoryOutput schema) and the SYSTEM_PROMPT
/ TASK_TEMPLATE names and format fields in prompts.py stay unchanged. Model
name, max_steps, timeouts and concurrency are injected externally -- editing
them is a wasted edit. The candidate path (submission/payload.py) and
the literal-dict contract are the graded interface: never change where or in
what form the answer is written.code_exec runs in a
jail with NO NETWORK: a mechanism that tries to install a package or fetch
anything will hang and then fail.The scaffold you edit is the harness package: main.py (the ReAct loop),
tools.py (meta-tools: toolbelt, todo, final_answer), resum.py (context
compression), tool_result.py (how tool output is rendered/truncated into
context), prompts.py (the system prompt and the task wrapper), mechanisms.py
(the structural-lever substrate). All of it is yours; match the lever to the
evidence and prefer the smallest move that fixes the pattern.
ReActAgent.step /
_handle_tool_calls: conditional re-prompts, message injection or reordering,
post-processing tool output before it enters context, what happens when
code_exec errors repeatedly, behaviour as the step budget runs down, what
happens at finalize.prompts.py IS model-facing guidance. It is
deliberately BARE at v0: it states the deliverable contract and no
engineering doctrine, so there is real room here. Pick it when capability and
control are fine but the policy does not know WHEN / in what order / under
what condition to act. Prose is also the lever that washes out most often.mechanisms.py; reach for these when theprompt/plumbing well is dry -- the objective gives a small novelty bonus to a working, non-regressing structural lever):
skills/<name>/SKILL.md (inside the harness package) and wire a
skill_use/catalog meta-tool in tools.py so the frozen policy can discover
then read a full procedure (progressive disclosure). Use for a recurring
WRONG-METHOD mode the policy could fix if it knew the procedure. PRIOR:
purely textual reference skills tend to wash out -- make the procedure
concrete and checkable, or back it with an executable helper.mechanisms.Memory (fcntl-locked JSONL). Inject
Memory.digest(...) into the prompt; write subject-free lessons only. HARD
RULE: never persist task-specific runtime data (problem text, computed
values, task ids, tolerances) -- the harness is evolved AND scored on the
same tasks, so that is memorization and the critic will reject it.mechanisms.ToolRegistry: in-process callables the loop
runs and injects. This benchmark's most obvious opening: a host-side check
that parses the written payload with ast.literal_eval and validates it
against the task's own schema file, then reports what is missing. That is
computed, mechanical, task-agnostic, and it attacks the MALFORMED class
directly. Never let a tool read grading code.mechanisms.subcall(...): ONE bounded extra call to the
frozen policy with a tight "return only X" brief. Never delegate open-ended
reasoning or a whole task.Lever-matching heuristics. A MALFORMED loss is almost never a prompt problem: the contract is already stated, and what is missing is a mechanical check (lever 9 or 2). A NO SUBMISSION loss is control flow (lever 2), never advice. An UNDER TARGET loss is where guidance that acts DURING the work can pay, but ask first whether the agent knew its design was short -- if it never evaluated its own candidate, that is a missing mechanism, not missing knowledge. Prefer editing an existing component over adding a parallel one.
"detail": true when the clipped view is not enough.MAmattpocock/skills336k4,217 new stars in the last 7 days
MAmattpocock/skills336k4,217 new stars in the last 7 days
AFaffaan-m/ECC314k3,503 new stars in the last 7 days
AFaffaan-m/ECC314k3,503 new stars in the last 7 days
AFaffaan-m/ECC314k3,503 new stars in the last 7 days
DIDietrichGebert/ponytail202k4,226 new stars in the last 7 days