Task · hard tier · do mode · expects edit

do-tps5430-route-power-stage

Tier: hard · Mode: do · Expected outcome: edit · Covers: routing against vendor layout guidance and a recorded current requirement 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 route a switching regulator’s three sensitive nets as its datasheet asks, on a board where every part is already placed. The nets are:

  • SW, the switching node (PH);
  • BOOT, the bootstrap;
  • FB, the feedback (VSENSE).

The guidance is the TPS5430 datasheet’s layout section (TI SLVS632L rev L, §7.4.1): keep the switch-node conductor small, keep the boot capacitor’s conductors short, and keep VSENSE away from PH. The board’s own record adds a requirement the datasheet does not state, the 3 A the power path must carry. Placement is a separate task, do-tps5430-place-power-stage. Here the placement is the reference’s and may not change.

copperhead 0.14.0 has no routing tool. A model routes by writing (segment …) forms into the board file through edit_file, working out pad coordinates from the footprints itself. Expect low pass rates. This task is the baseline a routing capability would be measured against; a low score is not a verdict on what routing tools can do.

The starting state

start.patch is applied before the baseline commit, and scripts/make-start-patch.ts writes it. It removes:

  • Tracks: all 16 on SW (8), BOOT (3) and FB (5), and their 13 teardrops.

  • Vias: the 7 GND stitching vias within 2 mm of a removed track. The record describes a ring of them along the switch-node copper, which traces the route.

  • Fills: all 37 zone fills. Their cutouts would trace the removed tracks.

  • The design record. Docs lines that pair a coordinate, an axis position or a copper area with one of the three nets, a part with a pad on one, or a loop, are replaced with a one-line notice:

    File Lines withheld
    docs/CHANGELOG.md 65
    docs/DECISIONS.md 33
    docs/SPEC.md 2
    docs/SUBSYSTEMS.md 5

    Validation checks that no end of a removed track appears anywhere in the starting state.

With zones refilled, the starting state’s DRC has 0 errors, 0 warnings, 0 parity issues and 12 unconnected items, all on the three nets.

About the pours. As in the placement task, copperhead cannot refill zones, so its own DRC sees the pours unfilled. The scorer refills on its copy before every DRC and before measuring copper, so a switch-node pour the model draws counts as the copper a fab would pour, even unfilled.

What is graded, and the arithmetic behind each bound

Two routes are correct:

  • Reference: the fixture’s rev E tracks.
  • Alternative:
    • SW at 1.2 mm out of PH, then 1.6 mm, with a diagonal into L1;
    • the boot branch at 0.6 mm;
    • BOOT at 0.5 mm with one 45° corner;
    • FB into R2 from the east and into R3 from above.

The bad routes are in test/layouts/, and the calibration test replays each.

Assertion Asks Bound Reference Alternative Bad
routed-and-clean every connection made, no DRC error 0 errors, 0 unrouted clean clean the starting state has 12 unrouted
sw-path-to-inductor SW from PH to L1 carries 3 A ≥ 0.45 mm 1.0 1.2 0.3 (thin power path)
sw-path-to-diode SW from PH to D3 carries 3 A ≥ 0.45 mm 1.0 1.2 0.3 (thin power path)
boot-short boot capacitor’s conductors short ≤ 6.5 mm 3.99 3.69 10.62 (detour round the top of U1)
fb-away-from-sw VSENSE not close to PH ≥ 1.2 mm over 5 over 5 0.3 (FB branch past C4’s SW pad)
sw-copper-small switch-node conductor area small ≤ 30 mm² 22.66 18.26 39.95 (SW pour beside D3)

How each bound was chosen:

  • The power path’s width comes from a requirement. docs/SPEC.md sizes the power path for 3 A at a 20 °C rise or less in 2 oz copper. By IPC-2221’s external-layer formula, I = 0.048 · ΔT^0.44 · A^0.725 with A in mil², 3 A at 20 °C needs 48.7 mil². At 2 oz (2.76 mil) that is 17.7 mil, or 0.45 mm.
    • A 0.5 mm path meets that and is recorded as correct; a 0.3 mm path fails.
    • The width is the widest copper path’s narrowest track, from KiCad’s own board. The 0.5 mm branch to the boot capacitor and TP5 is not on that path and is not graded by it.
    • Pads, vias and fills are never the bottleneck. U1’s 0.6 mm PH pad is the part’s copper, not the route’s.
  • The rest are calibrated. Each is the geometric mean of the worst correct measurement and the best bad one, rounded to two significant figures.
  • BOOT length and FB clearance are KiCad DRC rules in grading.kicad_dru. The scorer appends them after the project’s own rules, never shows them to the run, and attributes violations by rule name. A rule the run adds to the project’s file cannot relax them, and a test checks that.
  • Switch-node copper is the SW tracks, vias and fills, minus the pad copper, measured on the refilled board on a 0.01 mm grid. A thinner route also shrinks it: the 0.3 mm route measures 8.55 mm². Area and width pull against each other, so a correct route is short and wide.

Also required:

  • parts-unmoved: every footprint where it started.
  • surgical-board-edit: the reference adds 128 of 13,047 lines, 16 tracks at 8 lines each. The 4 % bound leaves room for about 65 tracks 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 GND stitching vias. The start patch removed seven, and a correct route need not put them back. Ground stays connected through the pours.
  • Teardrops. KiCad regenerates them when it refills, so the scorer’s measurements include them whether or not the run drew any.
  • The VIN side of the input loop. That is placement-dominated, and VIN_BUCK is not unrouted here.
  • EMI beyond these proxies. No simulation is run.

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-route-power-stage

This page is rendered from tasks/do-tps5430-route-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 SW, BOOT and FB nets are unrouted. Route them following the TPS5430 datasheet's layout guidelines, without moving any parts.
Fixturecopperheadhq-tps5430-buck e927e423f5d2d495779789c2946f51fac90d20b20c367cd1f91bd02af84ef575
Tierhard
Modedo
Expected outcomeedit
Setupnone
Capsturns: 100 wallClockSec: 7200
Config
{
  "maxTurns": 100,
  "maxRepairCycles": 5
}
Tagsrouting, layout, datasheet-layout, vendor-reference, surgicality
Manifest hash616d0cda54f4220cf1cac4ec80f6076437641aea7715b7e9e55278edea27249c
Sourcetask.json · assertions.json

Assertions

13 assertions, 13 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
routed-and-cleandrc_cleanseverity: "error"4yesEvery connection made and nothing wrong, with zones refilled on the scorer's copy (the starting state has no fills, and copperhead cannot refill). The starting state has 12 unconnected items, all on SW, BOOT and FB. Reference and alternative routes: clean.
sw-path-to-inductornet_path_width_minnet: "SW" from: "U1.8" to: "L1.1" min: 0.453yesThe switch node carries the 3 A load. docs/SPEC.md records the power path as sized for 3 A at 20 °C rise or less in 2 oz copper; IPC-2221's external-layer chart, I = 0.048 ΔT^0.44 A^0.725 with A in mil², gives 48.7 mil² for 3 A at 20 °C, which at 2 oz (2.76 mil) is 17.7 mil, 0.45 mm. The bound is that requirement, not a calibration. The widest SW path from U1 pin 8 to L1 narrows to: reference 1.0 mm, alternative 1.2 mm; a 0.3 mm power path fails. A 0.5 mm path meets the requirement and passes. The 0.5 mm branch to the boot capacitor and TP5 is not on this path and is not graded by it.
sw-path-to-diodenet_path_width_minnet: "SW" from: "U1.8" to: "D3.1" min: 0.452yesThe catch diode carries the load current while the switch is off, so its connection to PH is held to the same requirement as the inductor's. Reference 1.0 mm, alternative 1.2 mm; the 0.3 mm power path fails.
boot-shortdrc_rule_cleanrule: "grade:boot-length"2yesSLVS632L rev L, §7.4.1 asks for the boot capacitor's connections to be short. KiCad's routed length of BOOT: reference 3.99 mm, alternative 3.69 mm; a detour round the top of U1 10.62 mm. The bound is the geometric mean of the worst correct measurement and the best bad one, rounded to two significant figures.
fb-away-from-swdrc_rule_cleanrule: "grade:fb-away-from-sw"3yes§7.4.1 asks for the VSENSE trace to keep its distance from the PH trace. KiCad's FB-to-SW clearance: reference and alternative over 5 mm (pad to pad); an FB branch run past the boot capacitor's SW pad 0.3 mm. The bound is the geometric mean of the worst correct measurement and the best bad one, rounded to two significant figures.
sw-copper-smallnet_copper_area_maxnet: "SW" max: 303yes§7.4.1: minimize the area of the PH conductor to limit capacitive coupling from the switching node. SW copper outside its pads, tracks and any poured zone, measured on the refilled board: reference 22.66 mm², alternative 18.26 mm²; an SW copper pour beside D3 (the rev A to D board had one) 39.95 mm². The bound is the geometric mean of the worst correct measurement and the best bad one, rounded to two significant figures.
parts-unmovedfootprints_unmoved3yesThe request is to route, not to re-place: every footprint keeps its starting position, rotation and side.
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.042yesThe reference route adds 128 of the starting board's 13,047 lines: 16 tracks at 8 lines each. 4 % (521 lines) leaves room for a route of about 65 tracks, 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-route-power-stagehardeditfail routed-and-cleanpass2026-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-route-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-route-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-route-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-route-power-stage/run-4.json2026-12-01harness:goldgold4passyes
2026-12-01/harness-noop/do-tps5430-route-power-stage/run-1.json2026-12-01harness:noopnoop1failrouted-and-cleanno: suiteVersion 0.5.0 ≠ 0.8.0; task manifest hash differs from the checked-out task
2026-12-01/harness-noop/do-tps5430-route-power-stage/run-2.json2026-12-01harness:noopnoop2failrouted-and-cleanno: suiteVersion 0.6.0 ≠ 0.8.0; task manifest hash differs from the checked-out task
2026-12-01/harness-noop/do-tps5430-route-power-stage/run-3.json2026-12-01harness:noopnoop3failrouted-and-cleanno: suiteVersion 0.7.0 ≠ 0.8.0; task manifest hash differs from the checked-out task
2026-12-01/harness-noop/do-tps5430-route-power-stage/run-4.json2026-12-01harness:noopnoop4failrouted-and-cleanyes
2026-11-30/harness-gold/do-tps5430-route-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-route-power-stage/run-1.json2026-11-30harness:noopnoop1failrouted-and-cleanno: suiteVersion 0.4.0 ≠ 0.8.0; task manifest hash differs from the checked-out task; fixture hash differs from the checked-out fixture