Concepts
A Blue document is the core unit of interaction. Not just content — content plus behavior. The same construct can represent a shop, an order, a mandate, a payment, a service relationship, or a multi-party agreement.
Who is involved. Participants enter the document through channels bound to timeline-backed identities.
What is true right now: fields, nested objects, references, status, counters, and business facts.
How the document responds to actions: operations, workflows, policies, triggers, and processing checkpoints.
The actions that caused the current state. These come from timelines and become part of the evidence.
At the top level, a document is a typed, structured node. Common fields include:
name — a human-friendly label.type — the document's primary type, often a reference into repo.blue (e.g. Common/Record).kind — an optional sub-type used by some patterns (e.g. Shopping Order).contracts — a map of named contracts: channels, operations, workflows, markers.State and contracts are deliberately separated. Business fields hold what is currently true; the contracts map says what can change and how.
Pure content, no rules:
name: Order — Tulip Bundle type: Common/Record kind: Shopping Order status: pending buyer: accountId: buyer-1 seller: accountId: seller-1 total: amount: 14500 currency: USD
This is a perfectly valid Blue document. It has identity, type, and state — but no behavior.
Add contracts to make it interactive:
name: Order — Tulip Bundle
type: Common/Record
kind: Shopping Order
status: pending
buyer:
accountId: buyer-1
seller:
accountId: seller-1
total:
amount: 14500
currency: USD
contracts:
buyerChannel:
type: Conversation/Timeline Channel
timelineId: buyer-1
sellerChannel:
type: Conversation/Timeline Channel
timelineId: seller-1
acceptOrder:
type: Conversation/Operation
channel: sellerChannelNow the document is no longer only content. It is an interaction surface: the seller channel can send acceptOrder requests, and a workflow contract — when added — turns those into state changes.
A document changes when:
You can watch one document evolve in the document stepper.
This is how composition works:
Most software puts state in one place, workflow in another, permissions elsewhere, identity elsewhere, audit trail elsewhere. Blue brings those back together at the interaction level.