flowchart LR accTitle: A machine-led purchase, with its three loss counters accDescr: Sequence between a procurement agent, a public catalogue, a quote service, the inventory owner and an ERP. One: the agent identifies the variant and checks compatibility on a dated source. Two: it requests a quote for its account. Three: the quote service obtains a short-lived availability decision from the inventory owner; refusals for stale stock are counted. Four: the agent receives an offer reference, a price and an expiry. Five: the agent orders within its mandate, using a request key; holds that expire before approval are counted. Six: the commitment travels to the ERP as a durable event. Seven: the ERP returns an acknowledgement and fulfilment status; orders without an acknowledgement are counted. Eight: both sides consult one order reference. %% ref-purchase (en) %% https://www.thebsq.com/m2m %% https://www.thebsq.com/research/human-to-m2m-architecture %% n_variant — Resolve a product identifier and check the dated compatibility claim. A product family alone is too broad for the order. n_variant["Identify the variant"] %% n_quote — The quote service checks terms for the authenticated buyer and asks the inventory owner for a short-lived availability decision. n_quote["Account quote"] %% n_stock — The inventory owner can accept current stock evidence or refuse an offer that depends on an old reading. n_stock["Stock decision"] %% n_stale — Count refusals separately to identify demand lost before a quote. More approval capacity would not correct this stale input. n_stale["Stale-stock counter"] %% n_offer — The buyer receives a price, offer reference and expiry. Confirm the mandate and remaining time before placing the order. n_offer["Expiring offer"] %% n_hold — Count holds that expire before approval separately from stock refusals. Use a request key for a purchase within the buyer’s mandate. n_hold["Approval clock"] %% n_commit — An accepted order creates a durable event for the ERP. Both parties can refer to the same order during fulfilment. n_commit["Durable commitment"] %% n_ack — Compare committed orders with ERP acknowledgements. A missing acknowledgement is the third loss counter and leaves an operational exception to reconcile. n_ack["ERP outcome"] n_variant -->|"requests account terms"| n_quote n_quote -->|"checks current availability"| n_stock n_stock -->|"current stock supports the quote"| n_offer n_stock -->|"reading is too old"| n_stale n_stale -->|"refreshes inventory evidence"| n_stock n_offer -->|"requests a hold within the mandate"| n_hold n_hold -->|"approved before expiry"| n_commit n_hold -->|"expired hold needs a new offer"| n_quote n_commit -->|"delivers the order event"| n_ack n_ack -->|"reconciles the outstanding reference"| n_commit %% Complete an acknowledged order — n_variant → n_quote → n_stock → n_offer → n_hold → n_commit → n_ack %% Investigate expired stock data — n_quote → n_stock → n_stale → n_stock %% Recover an expired hold — n_offer → n_hold → n_quote → n_stock → n_offer