runs in your browserdeal economics · margin integritymeasure, never moneyApache-2.0 · zero-dep

Discounts don't quietly erode the margin.

Before a revenue agent sends a custom price, the Yield guard runs the deal's real economics and returns a verdict by rule: approve if it clears the margin floor and the discount is within policy; counter with the exact discount that holds the floor; escalate to a human jury when the discount needs a second set of eyes; reject when no price can reach the floor. EcoCloud measures the deal — it computes the margin basis and the gate; it never charges a card or moves money.

gross margin
discount
Verdict (live)
gross margin
contract value
discount
digest

Honest scope. A deterministic economics gate — it computes gross margin, contract value, and the policy verdict from the terms and a margin floor; it does not read the contract PDF, negotiate, or execute the order. It's the math half of the review jury: Yield decides whether the deal is economically sound, the jury governs who must sign off. FAIL-CLOSED — a zero/negative price, a non-finite cost, or a missing margin floor never returns approve. Floors, max discount, and the four-eyes threshold are per-workspace policy. Source: flowdesk-yield-kernel.js.