Skip to content
language.blue
repo.blue ↗ Open Playground
Blue/Scenarios/One Agreement, many Orders

Operations · document networks

One Agreement, many Orders

A standing commercial relationship exposes one bounded order-creation operation. Each Order then accumulates its own acceptance, fulfilment evidence, and payment state.

createsconditions

The setup

An office and a restaurant have a standing Catering Agreement. It fixes price rules, delivery area, order cutoff, restaurant capacity, participant Channels, and the operation that may create child Orders.

The office agent requests 70 meals.

The request exceeds the exact 50-meal capacity constraint and is withheld without creating an Order.

The office agent requests 40 meals.

The operation matches the Agreement and creates one bounded Order with the office’s occurrence-specific data.

The restaurant agent accepts.

Its own source Timeline and Mandate are verified against the Order operation and current capacity.

An independent delivery provider attests fulfilment.

The provider contributes the fact it controls. The Order changes and the PayNote condition becomes satisfiable.

The payment provider reports settlement.

Blue records the provider-backed outcome and updates the relationship ledger; it does not claim that document code moved the funds.

Embedded or autonomous Orders?

Orders may be embedded when one Agreement clearly owns them, access and retention align, and throughput is modest. Use autonomous Order Roots when customers, merchants, logistics, payment providers, or other systems need a separately shared object; when lifecycle survives the Agreement; or when scale and access policy diverge.

What this proves

  • The Agreement is a reusable operating framework rather than a template copied into private databases.
  • Order creation is a document operation with exact eligibility and request constraints.
  • Provider facts and payment truth remain attributable to the systems responsible for them.
  • A document network can grow without collapsing every lifecycle into one monolith.