Decision table semantic difference
Input
{
"compare_default_action": "deny",
"compare_rules": [
{
"action": "allow",
"id": "small_v2",
"when": {
"op": "lt",
"value": 1,
"var": "amount"
}
}
],
"default_action": "deny",
"rules": [
{
"action": "allow",
"id": "small",
"when": {
"op": "le",
"value": 1,
"var": "amount"
}
}
],
"variables": [
{
"max": 2,
"min": 0,
"name": "amount",
"type": "int"
}
]
}Output
Build-time verified. stats.elapsed_ms normalized to 0.
{
"diff": {
"equivalent": false,
"witnesses": [
{
"input": {
"amount": 1
},
"v1_action": "allow",
"v1_rule": "small",
"v2_action": "deny",
"v2_rule": null
}
]
},
"overlaps": [],
"stats": {
"elapsed_ms": 0,
"timed_out": false
},
"uncovered_gap": {
"has_gap": false,
"witness": null
},
"unreachable_rules": [],
"verdict": "complete",
"verified": true
}Request
curl --fail-with-body --silent --show-error https://oracles.burgeonads.com/v1/analyze/rules -H 'Content-Type: application/json' --data-raw '{"variables":[{"name":"amount","type":"int","min":0,"max":2}],"rules":[{"id":"small","when":{"op":"le","var":"amount","value":1},"action":"allow"}],"default_action":"deny","compare_rules":[{"id":"small_v2","when":{"op":"lt","var":"amount","value":1},"action":"allow"}],"compare_default_action":"deny"}'