E-commerce teams maintain the same pricing and promotion rules across web, mobile, and backend. Without a shared runtime, they drift. Traverse writes the rule once and runs it everywhere.
Promotion rules are coded independently in the storefront, cart API, and fulfillment worker. Each gets bug fixes and updates on different schedules. They diverge.
Mobile gets a discount the web does not. Or vice versa. Customers notice. Support tickets follow. The fix goes to one place and misses two others.
Testing two pricing variants means maintaining both versions in multiple places. When the test ends, cleaning up all the copies is error-prone. Some versions persist in production.
The recommendations model needs to know what a customer is actually eligible for. That logic lives in the backend. The AI team cannot call it safely without going through a governed interface.
Write the pricing or eligibility logic once as a Traverse capability. The same WASM binary runs in the browser, the cart API, the fulfillment worker, and the AI pipeline. The contract enforces correctness before execution. The trace proves it ran correctly after.
The browser computes the price for instant display. The API confirms it at checkout. The worker applies it at fulfillment. All three use the same WASM binary. Same result every time.
Eligibility rules are contracts. Invalid promo codes fail at the contract level before your database is touched. The precondition says what must be true before the discount is applied.
Deploy the same capability to the storefront, checkout flow, and fulfillment service. No reimplementation. No sync meetings to coordinate rule changes across teams.
Expose your eligibility and pricing capabilities to AI agents as MCP tools. Agents call governed capabilities, not raw APIs. The same contract enforcement applies to every AI call.
Base price, tier discounts, volume pricing, and currency conversion in one governed capability. Browser shows it. Backend confirms it. Fulfillment applies it.
Promo code validation, minimum order requirements, customer tier gates, region restrictions. Enforced by contract. Fails fast before touching your database.
Stock availability, quantity limits, bundle rules, restricted items by region. Run in the browser for instant feedback and again at checkout for confirmation.
AI recommendation agents call the same eligibility capability your backend uses. Agents only surface products the customer can actually buy at the price shown.
Here is the full contract for a promotion eligibility capability. The runtime reads it before every execution. If any precondition is unmet, the capability does not run. If any postcondition is violated, the result is rejected.
The storefront loads this capability and calls it on every cart update. The cart API loads the same capability and calls it at checkout to confirm. The fulfillment worker calls it before applying the discount. All three get the same result from the same binary.