Official Codebase of 3DCodeVerse
Python
bench: compare_v4 (40 static prompts) + --judge-samples
ziyao3f41e59b5c2d
diff --git a/harness/bench/compare_backends.py b/harness/bench/compare_backends.pyindex 416fe54a..d5b7d683 100644--- a/harness/bench/compare_backends.py+++ b/harness/bench/compare_backends.py@@ -433,6 +433,9 @@ def main(argv: Sequence[str] | None = None) -> int:ap.add_argument("--loop-judge", default=None, help="harness in-loop judge (default: settings default)")ap.add_argument("--repair-attempts", type=int, default=2)ap.add_argument("--gen-timeout", type=float, default=900.0)+ ap.add_argument("--judge-samples", type=int, default=2,+ help="FIXED judge samples per cell (default 2 — kept for resumable batteries; use an odd "+ "n for a true majority on the defect checklist, see docs/DECISIONS.md D36)")ap.add_argument("--no-pairwise", action="store_true")ap.add_argument("--no-preflight", action="store_true",help="skip the provider health check (see --wait-for-provider)")@@ -453,6 +456,7 @@ def main(argv: Sequence[str] | None = None) -> int:limit=ns.limit, ids=[i for i in ns.ids.split(",") if i],tiers=[t for t in ns.tiers.split(",") if t], resume=not ns.no_resume,gen_timeout_s=ns.gen_timeout, repair_attempts=ns.repair_attempts, pairwise=not ns.no_pairwise,+ n_samples=max(1, ns.judge_samples),redo_status=[x for x in ns.redo_status.split(",") if x])arms = parse_arms(ns.arms)if not ns.no_preflight and not _preflight(opts.judge, arms, opts, wait_minutes=ns.wait_for_provider):diff --git a/harness/bench/prompts/compare_v4.yaml b/harness/bench/prompts/compare_v4.yamlnew file mode 100644index 00000000..2f6988d8--- /dev/null+++ b/harness/bench/prompts/compare_v4.yaml@@ -0,0 +1,713 @@+# compare_v4 — harness-vs-oneshot arms on the UNION of the two static batteries (40 prompts).+#+# Why: the compare_v2/v3 batteries hold 8/12 prompts, and docs/report.html measured that an+# 8-prompt paired battery resolves a real difference of ~0.25, not the 0.02 the profiles are+# tuned to. This battery is every static_objects_v2 prompt (4 medium controls + 16 hard, all+# with dimensions_m) plus every static_objects_v1 prompt whose text is not already in v2+# (8 easy + 4 medium + 8 hard), ids kept VERBATIM from their source battery so recorded+# cells of those batteries stay comparable. Prompt-text duplicates dropped from v1:+# furn_med_dining_chair, veh_med_pickup, tool_med_hand_drill, appl_med_toaster (== ctrl_*).+#+# must_have is the FIXED judge's acceptance checklist for every arm (no plan-derived items)+# so harness and one-shot are judged alike. Tiers: 8 easy / 8 medium / 24 hard.+name: compare_v4+track: static_object+language: blender+description: >+ 40 static-object prompts (blender / bpy) — the union of static_objects_v2 and+ static_objects_v1 by prompt text — used to compare the harness loop against raw+ one-shot generation under ONE fixed judge with enough prompts for a paired CI+ narrower than the effects claimed. 8 easy / 8 medium / 24 hard.+prompts:+- id: ctrl_med_dining_chair+ tier: medium+ category: furniture+ tags:+ - control+ - axis:decomposition+ prompt: a mid-century wooden dining chair with a slatted backrest and tapered legs+ must_have:+ - four tapered legs, each thinner at the floor than at the seat+ - seat slab about 0.42 m wide+ - seat surface about 0.45 m above the floor+ - backrest with at least 3 vertical slats+ - back legs continue up into the backrest posts+ - backrest top rail between 0.80 m and 0.95 m above the floor+ - all four feet touch the ground plane+ - no leg or slat intersects the seat slab+ dimensions_m:+ width: 0.45+ depth: 0.5+ height: 0.9+- id: ctrl_med_pickup+ tier: medium+ category: vehicles+ tags:+ - control+ - axis:decomposition+ prompt: a pickup truck with a two-door cab, open cargo bed, wheel arches and side mirrors+ must_have:+ - cab with windshield and 2 side windows+ - open rear bed with 3 walls and a tailgate+ - 4 wheels with hubs, all touching the ground+ - wheel diameter about 0.75 m+ - front grille and 2 headlights+ - 2 side mirrors on stalks+ - bed floor about 0.80 m above the ground+ - overall length about 5.2 m+ dimensions_m:+ length: 5.2+ width: 1.9+ height: 1.8+- id: ctrl_med_toaster+ tier: medium+ category: appliances+ tags:+ - control+ - axis:curved_organic+ prompt: a two-slot retro toaster with rounded chrome body, a lever on the side, a browning dial and+ a crumb tray+ must_have:+ - 2 bread slots on the top face+ - each slot about 0.13 m long and under 0.04 m wide+ - lever on one end face+ - round dial knob on the front face+ - rounded body with no sharp vertical edges+ - crumb tray seam line near the base+ - 4 small feet+ - body about 0.28 m wide and 0.19 m tall+ dimensions_m:+ width: 0.28+ depth: 0.17+ height: 0.19+- id: ctrl_med_hand_drill+ tier: medium+ category: tools+ tags:+ - control+ - axis:decomposition+ prompt: a cordless power drill with a pistol grip, trigger, battery pack in the base of the grip and+ a keyless chuck holding a drill bit+ must_have:+ - pistol-grip body with the grip angled back from vertical+ - trigger recessed at the top of the grip+ - battery block under the grip, wider than the grip+ - chuck at the front, about 0.04 m diameter+ - drill bit protruding about 0.08 m from the chuck+ - side vents on the motor housing+ - overall length about 0.22 m from chuck tip to body rear+ - overall height about 0.24 m from battery base to body top+ dimensions_m:+ length: 0.22+ height: 0.24+- id: mech_hard_coffee_grinder+ tier: hard+ category: mechanisms+ tags:+ - axis:decomposition+ prompt: 'a hand-crank coffee grinder: square wooden box body with a small front drawer, cast-iron dome+ top with an open hopper funnel, a conical burr visible inside the funnel throat, and a top crank arm+ with a wooden knob++ '+ must_have:+ - square wooden box body about 0.14 m wide and 0.12 m tall+ - front drawer about 0.05 m tall with a round knob, in the lower half of the box+ - drawer front sits flush in its opening with a visible seam+ - metal dome top mounted on the box+ - open hopper funnel about 0.08 m across at the rim+ - conical burr visible inside the funnel throat+ - central spindle about 0.01 m thick rising from the burr through the dome+ - crank arm about 0.11 m long attached to the spindle top+ - wooden knob on a short vertical pin at the crank's free end+ - adjustment nut on the spindle above the crank hub+ dimensions_m:+ width: 0.14+ depth: 0.14+ height: 0.3+- id: mech_hard_machinist_vise+ tier: hard+ category: tools+ tags:+ - axis:decomposition+ - axis:thin_features+ prompt: 'a machinist bench vise with an acme lead screw showing its thread helix, twin cylindrical guide+ rails, a swivel base with two lock handles, serrated jaw plates and a sliding tommy-bar handle++ '+ must_have:+ - fixed jaw and sliding jaw with a 0.05 m open gap between them+ - flat jaw plates about 0.10 m wide with serration grooves+ - lead screw between the jaws with at least 6 visible thread turns+ - 2 cylindrical guide rails flanking the screw+ - sliding jaw rides on the rails and the screw+ - tommy bar about 0.16 m long through the screw head, with ball ends+ - swivel base disc under the vise body+ - 2 lock handles on the swivel base rim+ - mounting flange with 3 bolt holes+ - overall body length about 0.30 m+ dimensions_m:+ length: 0.3+ width: 0.14+ height: 0.18+- id: mech_hard_drill_press+ tier: hard+ category: tools+ tags:+ - axis:decomposition+ prompt: 'a benchtop drill press: cast base, vertical column, adjustable work table with a crank, head+ casting with a belt housing, chuck with a bit over the table, three-spoke quill feed lever and a depth-stop+ rod++ '+ must_have:+ - flat base about 0.30 m by 0.20 m with 2 mounting slots+ - vertical column about 0.05 m diameter rising from the base+ - work table clamped to the column between base and head+ - table raise crank handle below the table+ - head casting at the top of the column+ - belt housing on top of the head with a lid seam+ - cylindrical motor behind the column, connected to the head+ - chuck about 0.04 m diameter under the head with a drill bit pointing down+ - bit tip aligned over the table center+ - quill feed lever with 3 spokes ending in ball knobs+ - depth-stop rod with 2 nuts beside the quill+ - overall height about 0.85 m+ dimensions_m:+ height: 0.85+ depth: 0.45+- id: mech_hard_pitcher_pump+ tier: hard+ category: garden+ tags:+ - axis:decomposition+ - axis:curved_organic+ prompt: 'a cast-iron pitcher water pump on a wooden platform: fluted cylindrical body, curved downward+ spout, long lever handle raised mid-stroke, connecting link to the piston rod, domed cap and a bolted+ base flange++ '+ must_have:+ - cylindrical pump body about 0.09 m diameter+ - at least 6 vertical flutes on the body+ - base flange with 4 bolt heads+ - square wooden platform under the flange+ - curved spout leaving the body two-thirds up, opening facing down+ - domed cap on top of the body+ - lever handle about 0.40 m long, raised at an angle+ - handle pivots in a clevis bracket at the top rear of the body+ - connecting link from the handle to a piston rod entering the cap+ - overall height about 0.65 m+ dimensions_m:+ height: 0.65+- id: thin_hard_garden_arch+ tier: hard+ category: garden+ tags:+ - axis:thin_features+ prompt: 'a wrought-iron garden arch: two lattice side frames, a semicircular arch head filled with S-scrolls,+ spear-point finials and a tie bar at the spring line++ '+ must_have:+ - 2 side frames, each of 2 uprights about 0.01 m thick+ - diamond lattice bars between the uprights of each side frame+ - semicircular arch head spanning about 1.2 m between the side frames+ - at least 6 S-scrolls filling the arch head+ - at least 4 scrolls in each side frame+ - 3 spear-point finials on top of the arch+ - horizontal tie bar connecting both sides at the spring line+ - small ground plates under all 4 upright feet+ - overall height about 2.3 m+ - 'all bars slender: no member thicker than 0.02 m'+ dimensions_m:+ width: 1.4+ depth: 0.5+ height: 2.3+- id: thin_hard_violin+ tier: hard+ category: musical_instruments+ tags:+ - axis:thin_features+ - axis:curved_organic+ prompt: 'a violin: hourglass body with C-bout waists, arched top with two f-holes, a bridge, four strings+ from tailpiece over the bridge along the fingerboard to the pegbox, a scroll head, four tuning pegs+ and a chin rest++ '+ must_have:+ - hourglass body with 2 concave C-bout waist cutaways+ - body length about 0.36 m+ - top plate visibly arched, not flat+ - 2 f-holes through the top, one each side of the bridge+ - bridge about 0.03 m tall standing upright between the f-holes+ - 4 strings running in parallel from tailpiece to pegbox+ - strings pass over the bridge with a visible break angle+ - black fingerboard extending over the body without touching it+ - spiral scroll at the head+ - 4 tuning pegs, 2 per side of the pegbox+ - tailpiece anchored toward the end button+ - chin rest beside the tailpiece+ - total length about 0.60 m+ dimensions_m:+ length: 0.6+ width: 0.21+ height: 0.09+- id: thin_hard_penny_farthing+ tier: hard+ category: vehicles+ tags:+ - axis:thin_features+ - axis:curved_organic+ prompt: 'a penny-farthing bicycle: huge spoked front wheel with pedal cranks on its hub, small spoked+ rear wheel, curved backbone tube, front fork, handlebar and a sprung leather saddle++ '+ must_have:+ - front wheel about 1.3 m diameter with at least 24 thin spokes+ - rear wheel about 0.40 m diameter with at least 12 spokes+ - tyres no thicker than 0.03 m+ - backbone tube arcing from the fork crown down to the rear wheel fork+ - front fork straddling the big wheel to its hub+ - handlebar with 2 grips above the front hub+ - 2 pedal cranks on the front hub with pedals, opposed at 180 degrees+ - saddle on the backbone behind the handlebar, on a visible spring+ - small mounting step peg on the backbone above the rear wheel+ - both wheels touch the ground plane+ dimensions_m:+ length: 1.7+ height: 1.5+- id: thin_hard_birdcage+ tier: hard+ category: household+ tags:+ - axis:thin_features+ prompt: 'a round wire birdcage with an onion-dome top, a hanging ring, a wire door with a latch, a trapeze+ perch hanging inside, a straight perch, two feed cups and a base tray with a rolled rim++ '+ must_have:+ - round cage about 0.35 m diameter+ - at least 20 vertical wires around the circumference+ - wires about 0.003 m thick+ - 3 horizontal rings tying the wires+ - onion-dome top converging to a finial+ - hanging ring at the very top+ - rectangular door frame set into the wires with a small latch+ - trapeze perch hanging inside from the dome on 2 wires+ - straight perch spanning the cage between opposite walls+ - 2 feed cups mounted at a ring+ - solid base tray with a rolled rim+ - overall height about 0.55 m+ dimensions_m:+ height: 0.55+- id: org_hard_bonsai_rock+ tier: hard+ category: plants+ tags:+ - axis:curved_organic+ prompt: 'a root-over-rock bonsai: a shallow oval pot with soil, a rounded rock gripped by exposed roots,+ a tapering trunk with two pronounced curves, and five distinct flattened foliage pads++ '+ must_have:+ - shallow oval pot about 0.30 m long with a rim and small feet+ - soil surface inside the pot+ - rounded rock about 0.12 m tall sitting on the soil+ - at least 4 roots gripping over the rock faces and entering the soil+ - trunk rising from the rock top with at least 2 pronounced curves+ - trunk tapers from about 0.04 m at the base to under 0.015 m at the apex+ - 5 distinct flattened foliage pads with gaps between them+ - lowest branch extends beyond the pot rim+ - no foliage pad touches the soil or the rock+ - overall height about 0.50 m+ dimensions_m:+ height: 0.5+ length: 0.45+- id: org_hard_seated_cat+ tier: hard+ category: animals+ tags:+ - axis:curved_organic+ prompt: 'a domestic cat sitting upright: haunches on the ground, straight vertical front legs, tail+ curled around beside the front paws, short muzzle and triangular ears++ '+ must_have:+ - upright seated pose with haunches on the ground and chest raised+ - 2 straight front legs, nearly vertical+ - front paws on the ground between the haunches+ - hind legs folded with thighs bulging wider than the chest+ - tail about 0.30 m long curling around to lie beside the front paws+ - head with a short muzzle, 2 eyes and a nose+ - 2 triangular ears about 0.04 m tall+ - back forms a smooth continuous curve from neck to tail base+ - silhouette narrows from haunches up to the shoulders+ - overall height about 0.35 m+ dimensions_m:+ height: 0.35+ depth: 0.25+- id: org_hard_octopus_rock+ tier: hard+ category: animals+ tags:+ - axis:curved_organic+ - axis:thin_features+ prompt: 'an octopus draped over a low rock: bulbous mantle, raised eyes, eight tapering arms curling+ in different directions, with sucker discs visible along the underside of at least three arms++ '+ must_have:+ - bulbous mantle about 0.20 m long+ - 2 raised eye bumps on the head+ - 8 arms radiating from the head+ - each arm tapers from about 0.05 m at the base to a point+ - arm tips curl, at least 4 curling in different directions+ - sucker discs along the underside of at least 3 arms+ - low rock under the body, arms draping over its sides+ - at least 2 arms touch the ground plane+ - overall arm spread about 0.8 m+ dimensions_m:+ length: 0.8+ height: 0.3+- id: arch_hard_bay_window+ tier: hard+ category: buildings+ tags:+ - axis:arch_detail+ - axis:decomposition+ prompt: 'a Victorian bay window facade section: a three-sided bay projecting from a clapboard wall,+ a sash window with divided panes in each face, panel aprons, corner pilasters, scroll brackets and+ a dentil cornice under a faceted roof cap++ '+ must_have:+ - three-sided bay projecting from a flat wall section+ - center face wider than the 2 angled side faces+ - side faces angled about 45 degrees from the wall+ - sash window in each of the 3 faces+ - upper sash of each window divided into at least 4 panes by muntins+ - continuous sill band under all 3 windows+ - recessed panel apron under each window+ - pilasters at the 4 vertical bay corners+ - cornice with at least 10 dentil blocks across the bay+ - at least 4 scroll brackets under the bay roof+ - three-faceted roof cap over the bay+ - horizontal siding boards on the flat wall section+ dimensions_m:+ width: 3.4+ height: 3.2+ depth: 1.0+- id: arch_hard_spiral_stair+ tier: hard+ category: buildings+ tags:+ - axis:arch_detail+ - axis:thin_features+ prompt: 'a cast-iron spiral staircase: central column, wedge treads winding a full turn, a baluster+ at each tread''s outer edge, a continuous helical handrail and a railed top landing++ '+ must_have:+ - central column about 0.10 m diameter+ - at least 12 wedge-shaped treads attached to the column+ - treads climb evenly through at least 360 degrees total rotation+ - 'open risers: visible gaps between consecutive treads'+ - 1 baluster at the outer edge of each tread+ - continuous helical handrail on top of the balusters+ - top landing platform with its own railing+ - base plate at the bottom of the column+ - each tread about 0.70 m from column to outer edge+ - overall height about 2.7 m+ dimensions_m:+ height: 2.7+ width: 1.6+- id: arch_hard_teahouse+ tier: hard+ category: buildings+ tags:+ - axis:arch_detail+ prompt: 'a Japanese teahouse: raised wooden floor on short posts, a veranda strip along the front, sliding+ shoji panels with visible grids, corner posts, and a hipped roof with deep eaves showing exposed rafter+ tails++ '+ must_have:+ - floor platform raised about 0.5 m on short posts+ - wooden veranda strip along the front edge+ - at least 3 sliding shoji panels in the front wall+ - each shoji panel gridded into at least 12 rectangles+ - square corner posts at the 4 corners+ - hipped roof with eaves overhanging about 0.6 m+ - at least 8 exposed rafter tails visible under each eave side+ - ridge cap along the roof top+ - solid back and side walls contrasting with the shoji front+ - step stone below the veranda+ dimensions_m:+ width: 3.5+ depth: 3.0+ height: 3.0+- id: comp_hard_drafting_table+ tier: hard+ category: furniture+ tags:+ - axis:multi_material+ - axis:decomposition+ prompt: 'a drafting table setup: tilted drawing board on a trestle frame with quadrant tilt brackets,+ a parallel ruler riding on side rails, a pen tray, a sheet of paper held by two corner clips, a clamp-on+ two-arm lamp aimed at the board, and a stool with a footring++ '+ must_have:+ - drawing board about 1.0 m by 0.7 m tilted about 20 degrees+ - parallel ruler bar spanning the board width+ - ruler rides on a rail or wire at each side edge+ - pen tray along the bottom edge of the board+ - trestle legs with a cross stretcher+ - quadrant tilt bracket with a knob at each of the board's 2 sides+ - sheet of paper on the board held by clips at 2 corners+ - lamp clamped to a top corner of the board+ - lamp has 2 arm segments and a shade aimed down at the board+ - stool with a round seat about 0.65 m high+ - stool footring between its legs+ - board top edge about 1.1 m above the floor+ dimensions_m:+ width: 1.1+ depth: 0.9+ height: 1.2+- id: comp_hard_telescope_tripod+ tier: hard+ category: props+ tags:+ - axis:multi_material+ - axis:decomposition+ prompt: 'a brass refractor telescope on a wooden tripod: main tube with an objective ring, a thinner+ draw tube with an eyepiece cup, a clamping collar and cradle on a pan-tilt head, three splayed legs+ joined by a spreader tray, metal feet++ '+ must_have:+ - main tube about 0.7 m long and 0.08 m diameter+ - objective ring at the front of the tube+ - draw tube about 0.05 m diameter extending from the rear, thinner than the main tube+ - eyepiece cup at the draw tube end+ - clamping collar around the main tube's balance point+ - cradle connecting the collar to a pan-tilt head+ - tension knob on the head+ - 3 wooden legs splayed outward, each about 1.2 m long+ - triangular spreader tray connecting the legs at about 0.7 m height+ - metal feet at the leg tips+ - tube tilted upward between 20 and 40 degrees+ - eyepiece height about 1.5 m above the ground+ dimensions_m:+ height: 1.7+- id: furn_easy_stool+ tier: easy+ category: furniture+ prompt: a simple three-legged round wooden stool, 45 cm tall+ must_have:+ - round seat+ - three splayed legs of equal length+ - legs touch the ground+ dimensions_m:+ height: 0.45+- id: furn_hard_rolltop_desk+ tier: hard+ category: furniture+ prompt: a writing desk with two pedestals of three drawers each, a central knee-hole, a leather inlay+ top and brass drawer pulls+ must_have:+ - two drawer pedestals+ - three drawers per pedestal with visible fronts+ - knee-hole gap+ - brass pull handles+ - desk top overhangs+- id: veh_easy_toy_car+ tier: easy+ category: vehicles+ prompt: a chunky toy car with a rounded body and four thick wheels+ must_have:+ - one-piece rounded body+ - four wheels touching the ground+ - wheels protrude sideways+- id: veh_hard_tractor+ tier: hard+ category: vehicles+ prompt: a farm tractor with large rear tyres with treads, small front wheels, an exposed engine block,+ exhaust stack, driver seat, steering wheel and a roll bar+ must_have:+ - rear wheels much larger than front wheels+ - tyre tread detail+ - exhaust stack+ - seat and steering wheel+ - roll bar+ - engine hood+- id: tool_easy_hammer+ tier: easy+ category: tools+ prompt: a claw hammer with a wooden handle and a steel head+ must_have:+ - cylindrical handle+ - steel head with a flat face+ - forked claw on the back+- id: tool_hard_bench_vise+ tier: hard+ category: tools+ prompt: a cast-iron bench vise with fixed and sliding jaws, a lead screw with a tommy bar handle, guide+ rails, a small anvil face and mounting base with bolt holes+ must_have:+ - two jaws with a visible gap+ - sliding jaw on guide rails+ - lead screw with sliding T handle+ - anvil flat+ - base with bolt holes+- id: appl_easy_kettle+ tier: easy+ category: appliances+ prompt: an electric kettle with a spout, a lid and a side handle on a round base+ must_have:+ - pot body+ - pouring spout+ - handle opposite the spout+ - lid on top+ - round base+- id: appl_hard_espresso+ tier: hard+ category: appliances+ prompt: an espresso machine with a group head and portafilter, a steam wand, a drip tray with grate,+ a water tank at the back, and a top-mounted cup warmer with a pressure gauge on the front panel+ must_have:+ - portafilter with handle under a group head+ - steam wand on the side+ - drip tray with grate+ - water tank+ - pressure gauge+ - cup warmer rail+- id: plant_easy_cactus+ tier: easy+ category: plants+ prompt: a potted barrel cactus in a terracotta pot with soil+ must_have:+ - ribbed round cactus body+ - terracotta pot with rim+ - soil surface+- id: plant_med_palm+ tier: medium+ category: plants+ prompt: a small potted palm with a textured trunk and eight arching fronds made of many leaflets+ must_have:+ - textured trunk+ - at least eight fronds+ - fronds arch downward+ - leaflets along each frond+ - pot+- id: plant_hard_bonsai+ tier: hard+ category: plants+ prompt: a bonsai tree with a twisted thick trunk, three layered foliage pads, exposed roots over a rock+ and a shallow oval ceramic tray with moss+ must_have:+ - twisted trunk with taper+ - at least three distinct foliage pads+ - exposed roots gripping a rock+ - shallow oval tray+ - moss surface+- id: bld_easy_shed+ tier: easy+ category: buildings+ prompt: a small garden shed with a pitched roof, one door and one window+ must_have:+ - box walls+ - pitched roof overhang+ - door on front+ - window+- id: bld_med_lighthouse+ tier: medium+ category: buildings+ prompt: a tapered lighthouse with red and white bands, a gallery with railing, a glass lantern room+ and a domed cap, on a rocky base+ must_have:+ - tapered tower+ - alternating bands+ - gallery walkway with railing+ - glass lantern room+ - dome+ - rock base+- id: bld_hard_windmill+ tier: hard+ category: buildings+ prompt: a Dutch windmill with an octagonal tapered body, thatched cap, four lattice sails, a balcony+ stage with railing, a door, and two shuttered windows+ must_have:+ - octagonal tapered body+ - cap+ - four lattice sails in a cross+ - balcony with railing+ - door+ - shuttered windows+- id: toy_easy_blocks+ tier: easy+ category: toys+ prompt: a stack of five alphabet blocks of decreasing size in a slightly twisted tower+ must_have:+ - five cubes+ - decreasing size upward+ - each slightly rotated+ - all stacked touching+- id: toy_med_rocking_horse+ tier: medium+ category: toys+ prompt: a wooden rocking horse with curved rockers, a saddle, handles and a mane+ must_have:+ - horse body with head and four legs+ - two curved rockers+ - saddle+ - handle grips+ - mane+- id: toy_hard_train+ tier: hard+ category: toys+ prompt: a toy steam locomotive with a boiler, smokestack, cab with windows, cowcatcher, six driving+ wheels with connecting rods, and a coal tender with four wheels+ must_have:+ - cylindrical boiler+ - smokestack+ - cab+ - cowcatcher+ - six large wheels with rods+ - separate tender with coal load and four wheels+- id: mus_easy_drum+ tier: easy+ category: musical_instruments+ prompt: a snare drum with tension rods and two drumsticks resting on top+ must_have:+ - cylindrical shell+ - top head+ - at least eight tension rods around the rim+ - two sticks+- id: mus_med_acoustic_guitar+ tier: medium+ category: musical_instruments+ prompt: an acoustic guitar with a figure-eight body, sound hole, bridge, fretted neck, headstock with+ six tuning pegs and six strings+ must_have:+ - figure-eight body+ - sound hole+ - bridge+ - neck with frets+ - headstock+ - six tuning pegs+ - six strings+- id: mus_hard_drum_kit+ tier: hard+ category: musical_instruments+ prompt: a five-piece drum kit with a bass drum with pedal, snare on a stand, two rack toms, a floor+ tom, a hi-hat and two cymbals on stands, and a throne+ must_have:+ - bass drum with pedal+ - snare on stand+ - two mounted toms+ - floor tom with legs+ - hi-hat with two cymbals+ - two crash/ride cymbals on stands+ - drum thronediff --git a/harness/tests/bench_prompts/test_v2_batteries.py b/harness/tests/bench_prompts/test_v2_batteries.pyindex d2d85237..427deb61 100644--- a/harness/tests/bench_prompts/test_v2_batteries.py+++ b/harness/tests/bench_prompts/test_v2_batteries.py@@ -183,3 +183,36 @@ def test_compare_v3_extends_compare_v2_verbatim():assert sum(p.tier == "medium" for p in extra) >= 1assert sum(p.tier == "hard" for p in extra) >= 3assert not {p.category for p in extra} & {p.category for p in v2.values()}+++# ----------------------------------------------------------------------------- compare_v4 (2026-08-25)+def _norm(text: str) -> str:+ return re.sub(r"\s+", " ", text.strip().lower())+++def test_compare_v4_is_the_union_of_the_static_batteries_by_prompt_text():+ """compare_v4 = every static_objects_v2 prompt + every static_objects_v1 prompt whose text+ is not already in v2, ids and must_have kept VERBATIM from the source battery (docs/report.html:+ an 8-prompt paired battery resolves ~0.25, so the compare batteries had to grow)."""+ v4 = _load_any("compare_v4")+ v2 = _load("static_objects_v2")+ v1 = _load_any("static_objects_v1")+ assert (v4.track, v4.language) == (v2.track, v2.language)+ assert len(v4.prompts) == 40 and len({p.id for p in v4.prompts}) == 40+ src = {p.id: p for p in [*v2.prompts, *v1.prompts]}+ for p in v4.prompts:+ assert p.id in src, f"{p.id}: not from static_objects_v1/v2"+ assert (p.prompt, p.must_have, p.dimensions_m) == (src[p.id].prompt, src[p.id].must_have, src[p.id].dimensions_m), p.id+ assert p.must_have, f"{p.id}: the fixed judge needs must_have"+ texts = [_norm(p.prompt) for p in v4.prompts]+ assert len(set(texts)) == len(texts), "duplicate prompt text"+ union = {_norm(p.prompt) for p in [*v2.prompts, *v1.prompts]}+ assert set(texts) == union, "v4 must cover every distinct v1/v2 prompt exactly once"+ assert {p.id for p in v2.prompts} <= {p.id for p in v4.prompts}+ tiers = {t: sum(1 for p in v4.prompts if p.tier == t) for t in ("easy", "medium", "hard")}+ assert tiers == {"easy": 8, "medium": 8, "hard": 24}, tiers+++def _load_any(name: str) -> Battery:+ return _load(name) if name in V2_FILES else Battery.load(PROMPTS / f"{name}.yaml")+