Contract changelog
2026-10-31 — Nesting and outcome contract clarification
Prepared changes; not a claim of production rollout.
- Restored
nesting_summary.containers_with_hazmat_skipped, including zero. Counts declared hazmat container item rows, not physical units or warehouse copies. The summary now has a typed OpenAPI schema. - Documented optional human-readable
Outcome.details. Usereasonfor machine decisions. Legacyoutcome_reasonretains readable text for ordinary outcomes and the literalhazmat_unit_quantity_limitcode for an over-limit sealed unit. - The integration guide highlights grams as the default and the 200-instance synchronous box-stock limit.
- OpenAI review requests a strict structured response; live provider recovery is not established by offline tests. Unsupported instructions still fail closed.
2026-10-31 — Integration compatibility repair
Prepared changes; not a claim of production rollout. Legacy reason text is retained alongside canonical machine-readable reasons. No legacy response alias is scheduled for removal.
| Field | Migration |
|---|---|
unfitted_items_details[].unfitted_reason | Legacy attempt diagnostic, retained. Do not add it to terminal outcome totals. |
unfitted_outcomes[].reason | Canonical terminal code. Legacy unfitted_reason and outcome_reason retain historical text or code values; the quantity-limit value is hazmat_unit_quantity_limit. |
unfulfilled_items | Legacy alias of unavailable_items, for missing inventory only. Count once, not twice. |
unfulfilled_reason | Retained alongside unavailable_reason on inventory outcomes. |
Package.hazmat_details | Typed schema including exact quantity_info fields; reference-only semantics unchanged. |
Over-limit sealed units use the existing hazmat_unit_quantity_limit
reason. Item-specific MISSING_NET_QUANTITY warnings identify missing
ground net contents. Quantity-driven package distribution is marked by
hazmat_quantity_split and placement package_split_reason.
Deprecation policy: retain legacy response aliases throughout 1.x. Future incompatible removals, renames or shapes require an opt-in major contract, a field-by-field migration guide and at least 90 days of announced deprecation. Safety corrections remain fail-closed. Compatibility route aliases do not freeze historical schemas.
2026-10-19 — contract 1.4.0: pallet mode
- Set
box.kind:"pallet"andpallet_optionsfor layer-based planning. Each response box includes apalletobject with layers,min_supportand centre-of-gravity data. - Synchronous pallet requests accept up to 1,000 cases; parcel limits are unchanged. Pallet packing jobs are not available.
- Width/depth input order no longer changes pallet placement.
- Hazmat
required_markingsnow use a fixed order.
Additive pallet fields preserve existing request formats. Stoa's compatibility replay reported 286 of 287 identical results; the intended marking-order correction accounts for the difference. This is not a promise that every plan is unchanged.
2026-10-18 — Packing image clarity and interactive viewer
Packing images: clearer shading, outlines and layering; no contract change.
SVGs and transparent 2× PNGs share drawing rules. Thermal sheets remain 812 × 1218 pixels, black and white. The interactive viewer adds drag and keyboard rotation and packing steps to the same placements; static images remain available.
2026-10-18 — API reference refresh
Reference and Swagger now describe the same current contract, including upright and nested placements, nesting fallbacks, SVG/PNG rendering, error retry details, timing and capability fields. AI review defaults to false on every route. Route v1.1 remains the default view; v1 and unversioned aliases remain selectable. Documentation-only correction; no packing behavior or contract version change.
2026-10-18 — contract 1.3.0: item orientation
Item orientation "upright" keeps height vertical; new unfitted
reason no_upright_fit. Omitted orientation retains the existing rotation behavior.
Upright units that could fit a container only when tipped are packed separately;
nesting_fallbacks reports no_upright_fit_in_container,
the item and container IDs, and the affected quantity per item/container pair.
This is an explanation, not a change to placement or nesting policy.
The orientation release filters candidate rotations and checks upright geometry. Packing objectives, ordering heuristics, search budgets, support checks and hazmat policy are unchanged. Fewer candidates can change a heuristic's search path and run time; timing gains are order-specific, not a general speed guarantee.
2026-10-18 — validation and hazmat response corrections
- Breaking validation correction: UN inputs require four contiguous ASCII digits, with an optional case-insensitive UN prefix and at most one separating space or hyphen. Malformed numbers now return 400 rather than becoming unknown substances.
- Fix: Normalize UN3139, UN 3139, UN-3139 and 3139 consistently for classification, quantity lookup and image metadata. This does not expand transport coverage.
- Breaking response correction: Unknown UNs no longer receive an inferred
Class 9.
primary_classis null andrequired_labelsis empty. Unknown goods stay isolated on ground; unsupported air coverage is still rejected. - Fix: UN1845 warnings distinguish quantity-reference data from missing classification. Unknown warnings are item-scoped and repeat hydration does not append another copy. The main and quantity warning arrays retain compatible aliases.
- Fix, gated rendering: Badge containment, multi-page sheets, complete warning wrapping, physical-unit step numbering and monochrome thermal output. Availability is key/service-gated; this entry does not announce a public image launch.
Packing images
Optional SVG views and separate signed-reference SVG/PNG downloads include numbered packing steps, Letter/A4/4×6 guides and metadata-based hazmat markers. See image options and limits.
2026-10-17 — contract 1.2.0: supported placements and optional images
- Fix: Above-floor placements require at least 75% base support by default. This can change box choices or unfitted outcomes. It does not model tipping, load-bearing strength or transport stability.
- Consistent version: Health, readiness, capabilities, response metadata and OpenAPI identify the same contract version, including compatibility routes.
- Additive, gated: Request
renderforpack_sequence, support warnings and a signedrender_refwhen signing is configured. Image generation remains off unless enabled for your key or the service. - Additive, gated: SVG box, step and sheet views; separate
POST /api/v1/renderfor one raw SVG or PNG. Inline PNG is rejected. Capabilities report availability for the authenticated key. Disabled image generation does not disable packing.
2026-10-17 — numeric safety and request validation
- Breaking validation correction: Reject unknown request, item, warehouse and box fields with 400
unknown_field, rather than silently ignoring them. - Breaking validation correction: Reject dimensions and masses outside the published numeric range with 400
numeric_range. - Fix: Use consistent packing precision for fractional exact fits; keep final geometry, fill, mass and stock checks.
- Additive: Echo the applied goal in
metadata.optimization_goal. Unfitted outcomes have specific reason codes and explicit mass units; synchronous outcome masses use the request unit. - Documentation: Permanent redirects consolidate concepts, examples and errors into the guide.
2026-10-17 — packing and documentation fixes
- Fix: Repack eligible packages into smaller stocked boxes while preserving
unit counts, fill and weight limits. The API default remains
minimize_boxes;minimize_boxes_then_volumeis recommended for explicit count-first selection. - Additive: Full hazmat class divisions, per-material details and conservative package policy metadata.
- Fix: Split eligible hazmat units at package quantity limits; report an over-limit sealed unit as unfitted.
- Documentation: Use response-body timing; no timing-header delivery guarantee. Quick-start now redirects to the integration guide. No request fields or packing routes were removed.
2026-10-16 — contract 1.1.0 corrections
- Require explicit item weight and box maximum weight.
- Reject unsupported instructions with 400; keep genuine provider failures as 502.
- Retry overweight nested bundles as separate units.
- Validate battery state of charge from 0 to 100.
- Replace legacy capability feedback with the current public contract.
- Use a single packing guide, checked example and short async appendix.
The earlier 1.5.0 documentation label was replaced by contract line 1.1.0; runtime features were not rolled back. The contract applies at /api/optimize, /api/v1/optimize and /api/v1.1/optimize.