Dual-gate governance for the Salesforce → SAP front-to-back pipeline — state admission (SAP master-data sync and field-shape safety for Commerce Cloud orders and CPQ quotes) and execution authority (margin floor, manual-discount floor, credit limit, payment terms, promo hygiene) before a sales order is committed.
Highest priority first. The first rule whose conditions all hold decides; with none, the decision is a REVIEW.
state-required-fields · *
AUTO_REJECT → REJECT · urgent
Salesforce payload is missing fields required to build a valid SAP sales order.
exec-credit-limit · *
ESCALATE → ESCALATE · urgent · SLA 30 min
Order total exceeds the customer's SAP-defined credit limit.
state-customer-master-synced · *
AUTO_REJECT → REJECT · urgent
Salesforce Account must map to a validated SAP customer master (KNA1/KUNNR) before order admission.
exec-margin-floor · *
AUTO_REJECT → REJECT · urgent
Order net margin falls below the policy floor against the SAP cost basis (e.g., a flash-sale promo breaching margin).
state-material-number-valid · *
AUTO_REJECT → REJECT · urgent
A material number exceeds the SAP 18-character limit (VBAP overflow).
state-sales-org-valid · *
AUTO_REJECT → REJECT · urgent
Sales organization (VKORG) and distribution channel (VTWEG) are required for the SAP order header.
exec-discount-floor · *
REQUIRE_REVIEW → REVIEW · elevated · SLA 120 min
A manual line discount exceeds the threshold for a non-Strategic account and needs manager override.
state-amounts-valid · *
AUTO_REJECT → REJECT · urgent
Order line net price and quantity must be positive numeric values.
exec-data-cloud-risk · *
REQUIRE_REVIEW → REVIEW · elevated · SLA 60 min
Salesforce Data Cloud behavioral risk for this customer is elevated; hold B2B purchasing eligibility for review.
exec-payment-terms-allowed · *
REQUIRE_REVIEW → REVIEW · elevated · SLA 120 min
Requested B2B payment terms are not permitted for this region without review.
exec-promo-stacking · *
REQUIRE_REVIEW → REVIEW · elevated · SLA 60 min
Multiple concurrent discount sources are stacked on one order and need review.
state-admit-default · *
AUTO_APPROVE → APPROVE
Salesforce intent maps cleanly to SAP structures and is eligible for execution review.
exec-authorize-default · *
AUTO_APPROVE → APPROVE
Order satisfies revenue policy and may be committed to SAP.
Locally, with @decionis/mcp: the payload becomes the request's context, and its action the decision type. On the hosted protocol, once the bundle is stored for your organization, name vertical_pack, policy_version and require_exact_policy_version: true.
decionis_evaluate arguments
{ "policy_pack": "salesforce", "payload": { "action": "<decision type>" } }In a hosted evaluate-decision request
"vertical_pack": "salesforce",
"policy_version": "salesforce-revops-v1",
"require_exact_policy_version": trueEvery fact below comes from the request's context.