interactive sandbox

Try Warp, for real.

Every result on this page is produced by the actual published @warp-lang/commerce-types@1.2.0, vendored and run in your browser. Nothing here is mocked — change the inputs and the library re-decides.

loading the real package…

An AI agent proposes an action on a shipped order. guardAction(world, action) checks it against the model and returns ok or the violated rule — before it executes.

Scenario

Pick one, or edit the fields below.
guardAction(world, proposedAction)
Pick a scenario and press Check.