flowchart LR accTitle: Human and machine reference architecture accDescr: Human buyers and search or procurement agents read a public discovery zone over HTTPS, JSON-LD and feeds: product pages with a canonical URL, structured data for entities and offers, and a catalogue feed with variants, units and regions. A cached public fact never commits the supplier; it leads to a fresh, authorised quote in the authenticated transaction zone. There a quote service issues an offer reference with an expiry, a policy and approval component applies limits, roles and holds, and the reservation and order service is the system of record. In the operational M2M zone each adapter holds one authority: a device gateway that authenticates with mutual TLS and may only observe, an ERP adapter fed by an outbox and reconciled daily, and a payment provider called with idempotent requests. %% ref-dual (en) %% https://www.thebsq.com/capabilities/engineering-m2m %% n_discovery — Human buyers and search or procurement agents read a public discovery zone over HTTPS, JSON-LD and feeds: product pages with a canonical URL, structured data for entities and offers, and a catalogue feed with variants, units and regions. n_discovery["Public catalogue"] %% n_fresh — A cached public fact never commits the supplier; it leads to a fresh, authorised quote in the authenticated transaction zone. n_fresh["Current account quote"] %% n_policy — Check buyer identity, scope, spending limit and expiry before committing any inventory. n_policy["Policy and approval"] %% n_order — The order service is authoritative for the hold and subsequent commitment. Give operators a single order reference to reconcile. n_order["Reservation and order"] %% n_device — Mutual TLS authenticates the gateway. Its adapter may report a reading with an observation time and has observation-only authority. n_device["Device gateway"] %% n_erp — Persist an outgoing event with the commitment. The daily reconciliation accounts for each order and its ERP acknowledgement. n_erp["ERP adapter"] %% n_pay — Use the same request key when retrying one purchase. A lost reply must resolve to the original transaction. n_pay["Payment provider"] %% n_exception — When approval expires or an acknowledgement is missing, retain the reference and resolve it with the system that owns the state. n_exception["Open transaction"] n_discovery -->|"requests fresh terms"| n_fresh n_fresh -->|"checks scope and validity"| n_policy n_policy -->|"authorises commitment"| n_order n_policy -->|"approval has expired"| n_exception n_order -->|"enqueues a durable event"| n_erp n_order -->|"calls with a request key"| n_pay n_device -->|"reports observed capacity"| n_order n_erp -->|"acknowledgement is missing"| n_exception n_exception -->|"expired terms need a new quote"| n_fresh %% From a catalogue fact to the ERP — n_discovery → n_fresh → n_policy → n_order → n_erp %% Recover after expired approval — n_fresh → n_policy → n_exception → n_fresh