Task · hard tier · do mode · expects edit

do-tps5430-place-power-stage

Tier: hard · Mode: do · Expected outcome: edit · Covers: placement against vendor layout guidance Fixture: copperheadhq-tps5430-buck (copperhead’s TPS5430 12 V to 5 V buck, rev E), from a patched starting state

What this tests

Whether the model can place a switching regulator’s power stage the way the regulator’s datasheet asks. The guidance is the TPS5430 datasheet’s layout section (TI SLVS632L rev L, §7.4.1, and Figure 7-12). It is qualitative throughout: as close as possible, minimize the loop area, keep the conductor short. Each assertion below turns one of its sentences into a measured bound, and says how the bound was chosen.

The request names the parts and asks for placement only. Routing is a separate task, do-tps5430-route-power-stage, so a failure here is a placement failure.

The starting state

start.patch is applied to the fixture before the baseline commit, so nothing it does counts as the run’s work. scripts/make-start-patch.ts writes it. It removes everything that would give the answer away:

  • The eleven fitted power-stage parts (U1, C1 to C6, D3, L1, R2, R3) move to two rows below the board, all at 0°. Unfitted C8 and C10 stay where they are.

  • Copper:

    • all 58 tracks on VIN_BUCK, SW, BOOT, FB, +5V and EN;
    • 11 GND tracks that ended on a staged pad, each chain followed to its end;
    • 52 vias: the nets’ own, and the GND stitching vias within 1.5 mm of where a staged pad was or of a removed track;
    • 28 teardrops.
  • Fills. All 22 remaining zone fills are removed. Their cutouts would mark the old pads.

  • The design record. Docs lines that pair a coordinate, an axis position or a copper area with a staged part, an unrouted net or a loop are replaced with a one-line notice:

    File Lines withheld
    docs/CHANGELOG.md 106
    docs/DECISIONS.md 43
    docs/SPEC.md 3
    docs/SUBSYSTEMS.md 6

    Lines that locate only what stays, such as the outline, the mounting holes and the connectors, are kept. Validation checks that no staged part’s original position, and no end of a removed track, appears anywhere in the starting state.

The starting state’s DRC, with zones refilled, has 0 errors, 0 warnings, 0 parity issues and 45 unconnected items, all of them the unplaced stage. That is the recorded baseline in task.json.

About the pours. copperhead 0.14.0 refills the pours of a board a run has changed before its DRC, but not this board: the board stores its teardrops as zones, which a KiCad refill would regenerate, so copperhead declines and says so in the tool result. During the run its own DRC therefore sees the ground pours unfilled, as 0.13.0’s did, and reports their pads as unrouted. copperhead counts unrouted connections but never as violations, so this does not block it. The scorer refills on its copy before every DRC, so it grades the board a fab would build. A placement can pass the agent’s own check and still fail here, for example where the refilled pour cannot reach a ground pad. That is a real defect.

What is graded, and the arithmetic behind each bound

Every bound lies between a measured correct placement and a measured bad one. It is the geometric mean of the worst correct measurement and the best bad one, rounded to two significant figures. The two correct placements are:

  • Reference: the fixture’s own rev E layout.
  • Alternative: every staged part moved or turned. C2 rather than C1 closes the input loops, the divider stands vertical, C6 rather than C5 sits at L1, and the rest shift.

The bad placements are in test/layouts/. The calibration test replays every one of them.

Assertion §7.4.1 asks Bound Reference Alternative Bad Unplaced start
input-cap-at-vin ceramic bypass right at VIN ≤ 2.7 mm 0.58 0.58 12.61 (input caps beyond D3) 3.47
bypass-loop small loop through bypass cap, VIN and GND ≤ 11 mm² 5.7 5.7 21.3 (input caps beyond D3) 4.0
catch-diode-loop catch diode close, to keep its loop small ≤ 42 mm² 31.2 31.2 55.6 (input caps beyond D3), 91.8 (D3 beyond L1) 91.9
switch-node-span inductor very close to PH, conductor area small ≤ 14 mm 9.15 8.92 20.16 (D3 beyond L1), 21.43 (boot cap far) 41.89
boot-cap-close boot capacitor close, conductors short ≤ 4.1 mm 1.67 1.67 10.20 (boot cap far) 36.72
output-cap-at-inductor keep the PH, Lout, Cout, GND loop small ≤ 7.6 mm 4.95 4.75 11.63 (above L1), 42.87 (far left) 10.15
divider-at-vsense divider at VSENSE (Figure 7-12) ≤ 12 mm 3.37 4.50 31.64 (at the output connector) 62.91

How each kind of measurement works:

  • Spans (pad_span_max): the shortest tree of copper gaps joining the named pads, read from the IPC-D-356 netlist kicad-cli exports. It is the least conductor any route of them needs. A switch node with three far-apart pads therefore measures its total spread, not one pair’s.
  • Loops (pad_loop_area_max): the area enclosed by the pad centres in order, every lobe counted.
  • Why both. A loop alone does not prove closeness: in the unplaced start, C1 lies in line with U1’s pins, so the bypass loop encloses only 4.0 mm². input-cap-at-vin bounds the distance alongside it.
  • Either capacitor. C1 and C2 are the same part, so either may close the input loops; C5 and C6 likewise at the output.

Also required:

  • stage-on-board: every pad of every staged part lies inside the outline. DRC raises nothing for a part left entirely off the board.
  • rest-unmoved: nothing outside the stage moves, including the unfitted C7, C8, C10 and J3 and the test points.
  • no-new-drc-errors: zones are refilled, and the baseline above applies. A courtyard overlap or a copper clash with what stays fails here.
  • surgical-board-edit: the reference changes 68 of 11,498 lines, about six per part. The 2 % bound leaves room three times over and fails a regenerated board.
  • The schematic untouched, the files bounded, one commit, a clean finish, no secret.

What is not graded, and why

  • The output loop’s area. §7.4.1 asks for the PH, inductor, output capacitor and ground loop to be small, and a pad-centre polygon cannot measure it on this board. The return runs through the ground pours, and every bad output-capacitor placement tried made the polygon smaller than the reference’s: 74.9 to 79.7 mm² against 110.9 mm². The output capacitor’s distance from the inductor is graded instead.
  • Routing, which is the other task.
  • C3, the 100 nF high-frequency decoupler. The datasheet’s bypass guidance is about the 4.7 µF-or-larger ceramic.
  • Thermal. D3 is cooled from its anode copper and U1 through its exposed pad, and placement alone cannot show either.
  • Where the test points end up relative to the stage. They stay put, and reaching them is routing.

Regenerating the starting state

Only when the fixture changes. The baseline in task.json is rewritten by the same command:

npx tsx scripts/make-start-patch.ts do-tps5430-place-power-stage

This page is rendered from tasks/do-tps5430-place-power-stage/README.md in the repository, at the commit the site was built from.

Manifest

The contents of task.json. Every result record stores a hash of this file, so records made against an earlier version of the task are kept separate from records made against this one.

Request
The buck converter's power stage is sitting below the board, unplaced: U1, C1 to C6, D3, L1, R2 and R3. Place it on the board following the TPS5430 datasheet's layout guidelines, and leave the routing for later.
Fixturecopperheadhq-tps5430-buck e927e423f5d2d495779789c2946f51fac90d20b20c367cd1f91bd02af84ef575
Tierhard
Modedo
Expected outcomeedit
Setupnone
Capsturns: 100 wallClockSec: 7200
Config
{
  "maxTurns": 100,
  "maxRepairCycles": 5
}
Tagsplacement, layout, datasheet-layout, vendor-reference, surgicality
Manifest hash751c20666efc05d2b7ab374c0b138d654144aa7babbe73ff288c309598220336
Sourcetask.json · assertions.json

Assertions

16 assertions, 16 of them required. A run passes when all of the required ones pass. Weights are only used for partial credit, which isn't shown on the leaderboard. The last column explains what each check is looking for.

IdTypeArgumentsWeightRequiredWhat it catches
stage-on-boardfootprint_on_boardrefdes: ["U1","C1","C2","C3","C4","C5","C6","D3","L1","R2","R3"]3yesEvery staged part has all of its pads inside the board outline. DRC raises nothing for a part left entirely off the board (measured), so this is the only check that the request was carried out at all.
input-cap-at-vinpad_span_maxanyOf: [["C1.1","U1.7"],["C2.1","U1.7"]] max: 2.73yesDatasheet SLVS632L rev L, §7.4.1 asks for the ceramic bypass capacitor to sit right at the VIN pin. C1 and C2 are the same 10 µF 1210 part, so either may be the one. Copper gap from the capacitor's VIN pad to U1 pin 7: reference 0.58 mm, alternative 0.58 mm; input capacitors beyond D3 12.61 mm. The bound is the geometric mean of the worst correct measurement and the best bad one, rounded to two significant figures.
bypass-looppad_loop_area_maxanyOf: [["C1.1","U1.7","U1.6","C1.2"],["C2.1","U1.7","U1.6","C2.2"]] max: 113yes§7.4.1 asks for a small loop through the bypass capacitor, VIN and the ground pin. Polygon through the four pad centres, every lobe counted: reference 5.7 mm², alternative 5.7 mm²; input capacitors beyond D3 21.3 mm². A far capacitor in line with the pins encloses little (the unplaced start measures 4.0 mm²), which is why input-cap-at-vin bounds the distance alongside. The bound is the geometric mean of the worst correct measurement and the best bad one, rounded to two significant figures.
catch-diode-looppad_loop_area_maxanyOf: [["C1.1","U1.7","U1.8","D3.1","D3.2","C1.2"],["C2.1","U1.7","U1.8","D3.1","D3.2","C2.2"]] max: 423yes§7.4.1: the catch diode goes close to the device to keep its current loop small. This is the loop the switching edge drives: input capacitor, VIN, PH, D3 cathode, D3 anode, back to the capacitor's ground. Reference 31.2 mm², alternative 31.2 mm²; input capacitors beyond D3 55.6 mm², D3 beyond L1 91.8 mm². The bound is the geometric mean of the worst correct measurement and the best bad one, rounded to two significant figures.
switch-node-spanpad_span_maxpads: ["U1.8","D3.1","L1.1","C4.2"] max: 143yes§7.4.1 treats PH as the switching node: the inductor belongs right beside it, with as little conductor as the connection allows, and the boot capacitor and catch diode share the node. The shortest copper-gap tree joining the four SW pads is the least conductor any route of the node needs. Reference 9.15 mm, alternative 8.92 mm; D3 beyond L1 20.16 mm, boot capacitor far 21.43 mm. On this board L1 sits 10.8 mm from PH with D3 between them, so the node's span, not L1's gap alone, carries the guidance. The bound is the geometric mean of the worst correct measurement and the best bad one, rounded to two significant figures.
boot-cap-closepad_span_maxpads: ["C4.1","U1.1"] max: 4.12yes§7.4.1 asks for the boot capacitor beside the IC, on short connections. Its SW side is in switch-node-span; this is its BOOT side. Copper gap C4.1 to U1 pin 1: reference 1.67 mm, alternative 1.67 mm; boot capacitor far 10.20 mm. The bound is the geometric mean of the worst correct measurement and the best bad one, rounded to two significant figures.
output-cap-at-inductorpad_span_maxanyOf: [["L1.2","C5.1"],["L1.2","C6.1"]] max: 7.62yes§7.4.1: keep the loop of PH, the inductor, the output capacitor and ground small. The polygon proxy cannot grade that loop on this board: its return runs through the ground pours, and every bad output-capacitor placement tried made the pad-centre polygon smaller than the reference's (74.9 to 79.7 mm² against 110.9 mm²). The output capacitor's distance from the inductor is graded instead. Reference 4.95 mm, alternative 4.75 mm; output capacitors above L1 11.63 mm, at the far left 42.87 mm. The bound is the geometric mean of the worst correct measurement and the best bad one, rounded to two significant figures.
divider-at-vsensepad_span_maxpads: ["U1.4","R2.2","R3.1"] max: 122yes§7.4.1 and Figure 7-12: the divider connects VOUT to VSENSE and sits beside the VSENSE pin, keeping the high-impedance feedback node short and away from the switching node. Shortest copper-gap tree over the FB pads: reference 3.37 mm, alternative 4.50 mm; divider at the output connector 31.64 mm. The bound is the geometric mean of the worst correct measurement and the best bad one, rounded to two significant figures.
rest-unmovedfootprints_unmovedexcept: ["U1","C1","C2","C3","C4","C5","C6","D3","L1","R2","R3"]3yesNothing outside the power stage moves: not the connectors, the input protection, the test points or the unfitted C7, C8, C10 and J3. A run that makes room by moving J2 fails here.
no-new-drc-errorsdrc_no_new_violationsseverity: "error"3yesZones are refilled on the scorer's copy before DRC (the starting state has no fills, and copperhead cannot refill). The baseline is the starting state's: 0 errors and 45 unconnected items, all of them the unrouted stage. Courtyard overlaps and copper clashes with what stays are errors here.
schematic-untouchedfile_unchangedpath: "hardware/tps5430-12-v-to-5-v-industrial-buck-converter.kicad_sch"2yes
touched-files-boundedfiles_touched_subsetallowed: ["hardware/tps5430-12-v-to-5-v-industrial-buck-converter.kicad_pcb","docs/*.md","openspec/**",".copperhead/**"]2yescopperhead's spec gate writes an OpenSpec proposal under openspec/changes/<id>/ before it unlocks the edit tools, and archives it into openspec/ when the run commits, so every real edit run touches openspec/**.
surgical-board-editdiff_ratio_maxpath: "hardware/tps5430-12-v-to-5-v-industrial-buck-converter.kicad_pcb" ratio: 0.022yesThe reference placement changes 68 of the starting board's 11,498 lines: move_footprint rewrites a part's origin, its pads' angles and its text, about six lines a part. 2 % (229 lines) leaves room for that three times over, or for parts placed by hand, and fails a regenerated board.
one-commitcommit_countequals: 11yes
finished-cleanlyexit_path_inpaths: ["done"]2yes
no-secretno_secret1yes

Discrimination check

The most recent no-op and reference-solution runs for this task. The no-op should fail and the reference solution should pass. If either didn't, the cell shows which assertion was responsible.

TaskTierExpectedNo-op runReference solutionDate
do-tps5430-place-power-stagehardeditfail stage-on-boardpass2026-12-01

Records

10 records for this task. Rows in noop or gold mode are the suite's own checks and don't involve a model.

RecordDateModelModeRepeatVerdictFirst failed requiredComparable
2026-12-01/harness-gold/do-tps5430-place-power-stage/run-1.json2026-12-01harness:goldgold1passno: suiteVersion 0.5.0 ≠ 0.8.0; task manifest hash differs from the checked-out task
2026-12-01/harness-gold/do-tps5430-place-power-stage/run-2.json2026-12-01harness:goldgold2passno: suiteVersion 0.6.0 ≠ 0.8.0; task manifest hash differs from the checked-out task
2026-12-01/harness-gold/do-tps5430-place-power-stage/run-3.json2026-12-01harness:goldgold3passno: suiteVersion 0.7.0 ≠ 0.8.0; task manifest hash differs from the checked-out task
2026-12-01/harness-gold/do-tps5430-place-power-stage/run-4.json2026-12-01harness:goldgold4passyes
2026-12-01/harness-noop/do-tps5430-place-power-stage/run-1.json2026-12-01harness:noopnoop1failstage-on-boardno: suiteVersion 0.5.0 ≠ 0.8.0; task manifest hash differs from the checked-out task
2026-12-01/harness-noop/do-tps5430-place-power-stage/run-2.json2026-12-01harness:noopnoop2failstage-on-boardno: suiteVersion 0.6.0 ≠ 0.8.0; task manifest hash differs from the checked-out task
2026-12-01/harness-noop/do-tps5430-place-power-stage/run-3.json2026-12-01harness:noopnoop3failstage-on-boardno: suiteVersion 0.7.0 ≠ 0.8.0; task manifest hash differs from the checked-out task
2026-12-01/harness-noop/do-tps5430-place-power-stage/run-4.json2026-12-01harness:noopnoop4failstage-on-boardyes
2026-11-30/harness-gold/do-tps5430-place-power-stage/run-1.json2026-11-30harness:goldgold1passno: suiteVersion 0.4.0 ≠ 0.8.0; task manifest hash differs from the checked-out task; fixture hash differs from the checked-out fixture
2026-11-30/harness-noop/do-tps5430-place-power-stage/run-1.json2026-11-30harness:noopnoop1failstage-on-boardno: suiteVersion 0.4.0 ≠ 0.8.0; task manifest hash differs from the checked-out task; fixture hash differs from the checked-out fixture