A CRM that knows your discount tiers are not a suggestion.
Generic CRMs model deals. Distribution runs on contractor accounts, wholesale pricing tiers, credit limit controls, and mandatory margin approvals. WholeStack compiles your exact trade rules into a full-stack Postgres application, proven against live database constraints before launch.
What the compiled desk runs
Everything below is a database record with strict transactional rules attached, not a cosmetic custom field bolted onto a generic CRM pipeline.
Accounts and Tiers
Contractor accounts carry an assigned tier (Silver, Gold, Platinum). The tier prices the order lines automatically.
Credit Control
Outstanding balances are checked at quote generation. Orders exceeding credit thresholds automatically pause for review.
Order Fulfillment
Accepted quotes convert to fulfillment orders. Warehouse picking teams read validated database records, never email threads.
Accounts and Tiers
Contractor accounts carry a pricing tier, and the tier is what prices the line — not whatever a sales rep typed into an input.
Quotes and Approvals
A quote past your discount threshold routes for approval before it can be sent. The write is refused until the sign-off is committed.
Credit Control
Credit limits are checked at order placement. Review is a state the account can enter, blocking release until resolved.
Order Handoff
An accepted quote becomes the order. Fulfilment reads the order record directly, eliminating transcription errors.
Renewals
Contract end dates drive the work queue, with uplift rules automatically computed and applied at renewal time.
Audit Integrity
Every price override, discount approval, and credit expansion is logged with cryptographic actor timestamps.
The rules the contract enforces
These are written as Intent Specification Language (ISL) invariants, compiled down to PostgreSQL row-level security and server action assertions. Break one and the transaction is refused at the engine boundary.
- R01 A quote below margin cannot be approved by a rep Any line item discounted beyond the account tier threshold routes to an owner or VP of Sales. A rep write is rejected by the database.
- R02 Credit limit reviews freeze fulfillment automatically If an order pushes an account past its credit limit, the transition to order creation throws an exception until an executive signs off.
- R03 Sent quotes are immutable Once a quote is transmitted to a contractor, line items and pricing are frozen. Changes require creating a new revision.
- R04 Contractor pricing remains private Each contractor account only sees their own negotiated rate sheet and quotes, enforced by PostgreSQL row-level security.
What ShipGate checks before this launches
Distribution is where a missed rule leaks tens of thousands in unapproved discounts. ShipGate executes an adversarial verification pass against an isolated runtime before minting a SHIP verdict.
Requirement Coverage
Every clause in your contract has an executing test. Uncovered clauses fail the gate immediately.
Non-Vacuity Testing
Tests that pass because they assert nothing are treated as failures, not as coverage.
Security Boundaries
Each role is driven against records it must not reach. A single credential or data leak is a NO_SHIP.
Runtime Replay
The booted application replays real command sequences against an isolated PostgreSQL instance before release.
Frequently Asked Questions
How is this different from Salesforce or HubSpot?
Those model a generic sales pipeline and let you add custom fields. WholeStack models your exact pricing and approval rules as executable constraints, then proves the compiled application obeys them before release.
Can it price from our existing rate card?
Yes. Your rate card becomes part of the contract, including tier structure and the conditions under which a price may be overridden.
What happens when our terms change?
You change the clause and recompile. Re-verification runs against the new contract, and the change carries its own cryptographic evidence.
Do we own the code?
You own the compiled application source. WholeStack retains rights in the compiler and verification services themselves.
Bring your rate card and your approval rules.
Prototyping costs nothing and needs no card. You pay $299 once, on a verified SHIP verdict, and $79 per month per application to keep it running and re-verified.