You are developing a general-purpose 3D bin-packing solver. Pack ALL supplied boxes into the FEWEST identical containers. Returned geometry must be valid. Containers represent top-loaded bins, not rear-loaded trucks. This is a derivative of OR-Library thpack9 with full support and vertical insertion constraints added. Do not claim its scores are directly comparable with published unconstrained packing results.

Implement solve(case) in policy.py, returning {"placements":[{"item_id":0,"container":0,"x":0,"y":0,"z":0,"dx":2,"dy":6,"dz":8}, ...]}.
Input fields:
- container: [length,width,height]. All dimensions are positive integers in arbitrary source units.
- items: each has id, type_id, dimensions (original lengths), and orientations (EXACT allowed [dx,dy,dz] lists). Source orientation restrictions are already applied; use only supplied orientations.
- time_limit_seconds: 10.0. Search within this nominal budget and leave a margin for import, validation within your algorithm, and return.
- seed: fixed common pseudo-random seed.
Output constraints:
- Each item appears once, with integer coordinates and dimensions (no bool or floats). No missing boxes, duplication, altered dimensions, overlap, or boundary violations.
- Containers numbered consecutively from 0; all boxes fit within their container.
- The placement list is the insertion order. A box is inserted vertically down from ABOVE. Earlier boxes must not intersect its vertical insertion path.
- A box must sit on the floor, or 100% of its base area must be supported by top faces of earlier boxes at exactly its bottom height. Multiple adjacent boxes may together support one box. No overhang, floating, or insertion under earlier boxes.
- Weight, strength, axle loading, and truck rear access are outside the benchmark; no such data are supplied.

Read judge.py for the independent validation rule and starter.py for a working baseline. example-case.json is an illustrative 12-box subset, not a final test. You may replace the algorithm entirely. Do not simply return the known development answers, infer case IDs, or hardcode case-specific solutions. The goal is generalization across cases. No external services, packages, source downloads, file/network access, or common-file edits. No other contestants' source or results are available.

Execution: one Python process on the same B300 host CPU, pinned to the same 16 physical-core set (86-101), no GPU for the packing solver. Python standard library only; allowed imports math, heapq, collections, itertools, functools, random, statistics, bisect, copy, time. Private/dunder attributes and dynamic/file access are disallowed (see run_case.py). One fresh isolated, network-disabled, read-only container per execution, 8GB RAM. The nominal search budget is 10s. The measured execution (AST check, import, solve) MUST be <=12s; a hard process kill occurs at 15s. Data loading, container startup, and independent judging are timed separately. Use time.perf_counter() and a safety margin. Output must be JSON-serializable with finite values, at most4MB.

All models get the SAME tools and starting code. This is a custom bounded tool runner, NOT Codex CLI. Model inference uses all 8 B300 GPUs. Each model has 2 independent development runs with new conversations. Maximum context 272000 tokens, maximum reply 32768 tokens; temperature1, top_p0.99. Model-specific inference parsers and reasoning capabilities follow the recorded deployment settings.

Phase1: up to1800s, at most6 evaluations. evaluate tests two common development cases. You may submit early; unused time is not transferred.
Phase2: your selected phase1 code is first evaluated on two previously unseen repair cases; you receive ALL validity errors and scores. Then a fresh1800s and6 evaluations are available. evaluate now tests all four development+repair cases. You can improve or retain the code. Each evaluate returns per-case validity, counts, fill ratios, volume lower bounds, timing, and errors. The volume lower bound is NOT necessarily achievable; equality plus valid geometry certifies an optimum for that case only.

Final evaluation is hidden during development: 34 original cases with 70-180 boxes, excluding development/repair cases and related size variants. Every final selected program runs each final case 3 times, sequentially, on the same CPU setup. All boxes must be valid in every execution. Primary quality: sum of used containers across all34 cases for each repeat; report the median of3 sums and all3 values. Report both independent development runs separately; never cherry-pick the best run. A model summary uses their mean only if both runs are valid on all102 executions. Also report execution times and correctness rates. No final results are used to change submissions.

Use submit with an evaluation_id you tested in this run (phase1 or2), or starter to retain the baseline. Untested current edits are not final submissions. If time ends without submit, the latest evaluated version (or earlier frozen submission/starter) is used and marked automatic fallback. Tools and failures consume the phase time. Read source, develop, evaluate, and explicitly submit your tested version.

You can read development-cases.json to inspect both complete development inputs. In phase2, repair-cases.json also becomes readable. Each line is one complete JSON case.

The four models are Ergo, Beam, Kimi K3.1 Pro, and DeepSeek V4.1 Flash 1017. DeepSeek and Kimi use their supported max reasoning setting; other models use their engine defaults. These settings do not imply identical internal reasoning budgets. Sampling and output/context caps are shared; this is a fixed-budget deployment comparison, not a claim of each model's unconstrained maximum capability.

Each model API response can use the remaining phase time; there is no shorter per-response timeout. Startup and preflight checks occur before phase timing.
