Domain and ownership boundaries
Quick answer
A domain boundary assigns responsibility for a business capability, its data and decisions. In an enterprise equipment-maintenance system, telemetry, predictive maintenance and work scheduling are separate domains with explicit interfaces and named owners. Examples use small inert synthetic inputs and standard-library Python. No real endpoints. ByteMind execution is unverified.
Scope asset lookup by tenant
assets = {("A", 7): 12, ("B", 7): 30}print(assets.get(("A", 7)))print(assets.get(("A", 8)))Expected output (locally tested): 12 None. The same asset number can belong to distinct tenants.
How it works
A data contract specifies schema, units, version, freshness, permitted use and compatibility expectations. The producer owns its published interface; consumers validate it rather than silently guessing units. Tenant identity comes from trusted authenticated context, not a caller-supplied field. Every read must be scoped to the authorized tenant, including cache keys, batch exports and logs. Shared infrastructure may reduce cost, but dedicated resources can reduce blast radius; neither guarantees isolation. RACI means Responsible (does the work), Accountable (owns the outcome), Consulted (provides input), Informed (receives updates). Assign one accountable role per decision as a useful convention. Model ownership includes monitoring and retirement, not just training.
Check accountable ownership
raci = {"release": ["model_owner"], "restore": ["ops_owner"], "retire": []}print([task for task, owners in raci.items() if len(owners) != 1])Expected output (locally tested): ['retire']. A missing accountable owner blocks the retirement process under this convention.
Common mistakes
Never use asset ID alone as a cache key across tenants. Do not confuse a domain owner with a blanket permission to read all data. A schema version does not establish consent or privacy compliance.
Practice and next steps
Draw telemetry → maintenance score → scheduling interfaces. Assign owners and a versioned contract at each arrow. Explain how cross-tenant records are rejected. Next compare batch and online consumers.
Check Your Understanding
Solidify your learning with the interactive assessment directly below this lesson.
Concept Quiz & Questions
Domain and ownership boundaries — knowledge check
Apply domain and ownership boundaries to small examples and debugging scenarios.
Who owns a published telemetry contract?
Which cache key isolates repeated asset IDs?
What does Accountable mean in RACI?
Where should tenant scope come from?
What does a contract version establish?