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.
incompatible_tags · group · policyWhy 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 ruleWhat 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.
5/55/5… unchanged lines: 12 "hazmat" ],+ "incompatible_tags": [+ "food"+ ] }, { … unchanged lines: 25
- containers opened
1 → 2 - placements
placed elsewhere: 1