ADR-0002 — Volatility-based decomposition as the primary system-boundary rule
Forces / Drivers
- Requirement / Constraint:
../context/integration-boundaries.md— ION integrates with multiple external systems it does not control (Sentinel, Defender XDR, Teams, ServiceNow, threat-intel, LLM providers). Each is an independent source of change.../context/quality-goals.md— Maintainability (< 2 business days for minor updates); Deployability (< 10 min downtime/mo).../context/constraints.md#bc-5— BC-5 Vendor lock-in mitigation.../context/capacity-model.md#demand-scenarios— 25× customer growth and 79× incident-volume growth from Tiberium to V3 planning; each system’s scaling axis is different.
- Principle(s) embodied:
§ 1 Volatility-based decomposition,§ 3 Domain-Driven Design modelling,§ 20 Vendor lock-in mitigation. - WAF pillar optimized:
operational-excellence(primary);reliability,performance-efficiency(secondary).
Context
ADR-0001 established that ION would be decomposed into independently deployable services collaborating over a broker. It did not answer how to draw the boundaries. Two common answers were on the table when V2 was consolidated:
- Draw boundaries by domain (DDD bounded contexts). Each business capability — Incident, Investigation, Ticket, Customer Collaboration, Reporting — becomes a service or a group of services.
- Draw boundaries by technical concern. Ingestion service, storage service, projection service, API service, UI service — each a horizontal layer.
The Tiberium/Voyager experience made a third dimension urgent: change did not respect either boundary.
- The Sentinel connector changed at Microsoft’s release cadence, not ION’s. A new incident schema field would ripple through every service that touched the Sentinel-shaped payload.
- The Teams Adaptive Card runtime changed at Microsoft’s cadence and differently from Sentinel. A card-format change had no reason to touch the incident-processing pipeline.
- The ServiceNow ticketing integration changed at the customer’s ServiceNow-instance cadence, per-customer.
- The UI changed at Ontinue’s product-release cadence, independent of all of the above.
- The customer-onboarding and access-management logic changed at commercial cadence (new customer tier introduces new RBAC rules).
Each of these is a distinct source of change. A pure-domain decomposition (Option 1) would concentrate all Sentinel-adjacent volatility into the “Incident” service, all Teams-adjacent volatility into the “Customer Collaboration” service — but within a service, unrelated volatility sources would still collide (an incident-processing change and a Sentinel-connector change hit the same code). A pure-technical decomposition (Option 2) would spread every change across every layer.
Juval Löwy’s Righting Software names this problem directly and offers the answer: decompose the system by Areas of Volatility. ION adopted this vocabulary as its primary decomposition rule, with DDD bounded contexts as the modelling layer that lives inside it.
Decision
ION V2 adopts volatility-based decomposition as the primary rule for drawing system boundaries:
- The primary unit of decomposition is the Area of Volatility — in ION’s documentation, called a system.
- A system contains a set of tightly-related services that share a single dominant source of change (a specific external integration, a specific business capability with its own release cadence, or a specific regulatory boundary).
- When that source of change moves, the change is contained inside the owning system and does not cascade platform-wide.
- DDD bounded contexts remain the modelling vocabulary — aggregates, ubiquitous language, domain events — but they live inside systems. When the DDD boundary and the volatility boundary diverge, the volatility boundary wins for physical decomposition and the DDD boundary wins for modelling.
The seven ION systems (alya, cogs, kingsman, pigeon, veritas, watchtower, ion-iq with sub-systems gutenberg, herald, yammer) are each an Area of Volatility. Detailed per-system rationale lives in ../design/systems/.
Alternatives considered
- Option A — Pure DDD bounded-context decomposition. Rejected as the primary rule (retained as the modelling rule). Domain boundaries and volatility boundaries do not always coincide; when they diverge (e.g., “Incident” as a domain absorbs both Sentinel-shaped ingestion volatility and business-rule triage volatility), a single service ends up carrying two independent change vectors, defeating the value of the decomposition. Kept as the layer inside systems for aggregates and language.
- Option B — Technical-layer decomposition (ingestion / storage / API / UI horizontal layers). Rejected. Every business capability change hits every layer; deployment coupling is maximised; ownership becomes ambiguous. Would have re-created the Tiberium coupling in a new coat.
- Option C — Team-topology-first decomposition (Conway’s Law inverted). Rejected as the rule but accepted as an input — team boundaries are respected when drawing systems, but they are not the primary driver. Team boundaries change more often than the business or its integrations, so they cannot anchor the physical decomposition.
- Option D — External-integration-only decomposition (one system per external system). Rejected as too narrow. Some Areas of Volatility (customer onboarding, reporting) are not driven by a single external integration; they are their own source of change.
Rationale
The chosen rule wins because it directly answers the operational question the Tiberium/Voyager merge exposed: “when X changes, what changes with it?”
- When Microsoft changes the Sentinel incident schema: the change is confined to Watchtower (the system that owns the Sentinel integration). No other system’s code is touched.
- When Microsoft changes the Teams Adaptive Card runtime: the change is confined to Pigeon (the system that owns the customer-facing Teams messaging). Incident processing is untouched.
- When ServiceNow changes its ticketing API: the change is confined to Watchtower (which also owns the ServiceNow integration). Customer collaboration is untouched.
- When a new threat-intelligence provider is integrated (or an existing one changes its API): the change is confined to Kingsman (the system that owns threat-intel integrations). The incident, ticket, and reporting paths are untouched.
Identity and access-management changes (RBAC assignments, Entra ID configuration) sit outside the ION platform boundary and are not owned by any ION system — by the same containment logic, they cannot ripple into ION services either.
This containment is not automatic — it depends on event-driven microservices (ADR-0001) as the collaboration substrate, since only asynchronous, contract-versioned events allow one system to change internally without breaking others on the hot path. That is why this ADR is strictly downstream of ADR-0001.
Systems act as shock absorbers for external volatility (§ 1 consequence). Services within a system are intentionally more tightly coupled to each other than to services in other systems — that coupling is the price of containment, and it is paid deliberately.
DDD is retained as the modelling vocabulary because engineers reason about aggregates and ubiquitous language, not about “volatility axes” day-to-day. The two-layer approach — volatility for physical, DDD for modelling — gives both the change-containment and the design-vocabulary benefits.
Consequences
Positive
- Change is contained: an external-integration change ripples inside one system, not across the platform.
- Independent scaling per system: Watchtower (external integrations — high-throughput Sentinel ingestion + ServiceNow write-back) and Pigeon (customer collaboration — bursty Teams messaging bounded by bot API ceilings) have wildly different scaling axes, and each can be tuned without touching the other.
- Independent team ownership: each system can be owned by a team whose backlog is dominated by that system’s source of change.
- Vendor lock-in mitigation (
§ 20) is enforced by the boundary: the Sentinel adapter cannot bleed Sentinel-specific types into the platform because the platform doesn’t know about Sentinel. - The
Container View- *.mdreference set (one per system) and the drawio system topologies map directly onto this decomposition.
Negative
- Intra-system service coupling is intentional — teams new to the platform may see the coupling and try to “clean it up” without understanding it’s load-bearing.
- The DDD boundary vs. the volatility boundary occasionally diverge (e.g., a bounded context spans two systems, or one system contains two contexts). Requires explicit mapping in
../design/domains/. - Not every observer initially agrees a given boundary is “the right one”; boundary re-drawing is expensive because it moves services across teams. Requires deliberate governance.
- Requires a shared vocabulary — “system” as Area of Volatility is not the C4 sense of “container”, and historical ION references confusingly used “container” for the same thing. See
principles/README.mdglossary.
Neutral / follow-ups
- Every system requires its own overview + topology diagram + service list. Realised in
../design/systems/and the V3 structural design. - Services carry a
system: <name>frontmatter tag (../standards/documentation-standards.md#8-services--flat--tag-based) — the tag, not the folder path, is what encodes system membership.
WAF Pillar Impact
- Primary pillar:
operational-excellence— the decision optimises for change-containment and independent team ownership. Every “how do I make this change without breaking the rest of the platform” question resolves at a system boundary. - Secondary pillars:
reliability— a failing external integration is confined to its owning system; DR posture (ADR-0007) can be per-system where required.performance-efficiency— each system tunes its scaling axis independently (Pigeon on ingestion throughput, Ion IQ on read-side query load).
- Trade-offs:
- Sacrifices the “clean” DDD-only decomposition that some team members will instinctively want.
- Sacrifices the option to reorganise services across system boundaries cheaply.
- Adds the vocabulary cost of “system = Area of Volatility, not C4 container”.
References
../references/Container View- Alya.md,Container View- Cogs.md,Container View- Kingsman.md,Container View- Pigeon.md,Container View- Veritas.md,Container View- Watchtower.md,Container- ION IQ.md— one per system.../references/Domain- Customer Collaboration.md,Domain- Incident.md,Domain- Investigation.md,Domain- Ticket.md— the DDD modelling layer that lives inside systems.../references/Architecture- Ontinue ION V2.mdandArchitecture- Ontinue ION v3.md— V2 and V3 architecture consolidations.- External: Juval Löwy, Righting Software — origin of the volatility-based decomposition rule.
Related ADRs
- Depends on: ADR-0001 — asynchronous collaboration is the substrate that makes system-level change-containment possible.
- Enables:
- ADR-0003 — Choreography over orchestration (systems choreograph across their boundaries).
- ADR-0004 — Event-Carried State Transfer (events cross system boundaries carrying state).
- Per-system architecture in
../design/systems/.
- Related: ADR-0007 (DR posture — DR can be per-system where required), ADR-0011 (Shared APIM — the sync surface is deliberately shared across systems to avoid re-fragmenting the API layer at every boundary).