RULE / COMPATIBILITY

Compatibility and policy in 3D packing

Items can be required to stay together or apart, and versioned eligibility rules travel in the request with the context they select on.

EXPRESSED WITHincompatible_tags · group · policy

Why it exists

Segregation rules are business facts with versions and effective dates. Expressed as request data, they are auditable; hidden in application code, they are not.

What a useful refusal looks like

The engine returns the rule that refused, the item it refused, and the measured value against the configured threshold. It also states how strongly that is backed: proven, observed, inferred, or unknown because a search limit was reached first.

See the fixtures for this rule
THE SAME REQUEST, WITH AND WITHOUT THE RULE

What this rule changes

One request, run twice by @packvium/engine while this page was built: once as written, once with only this rule taken out. The request diff is the whole input change; everything in the result diff follows from it.

WITHOUT THE RULEEverything fitted5/5
600×400×400 · 44.5% used
flour × 4bleach × 1
Open in the Playground →
WITH THE RULEEverything fitted5/5
600×400×400 · 37.5% used
600×400×400 · 7.0% used
flour × 4bleach × 1
Open in the Playground →
REQUEST DIFF
  … unchanged lines: 12          "hazmat"        ],+       "incompatible_tags": [+         "food"+       ]      },      {  … unchanged lines: 25
RESULT DIFF
  • containers opened1 → 2
  • placementsplaced elsewhere: 1