Architecture decisions and governance
Record the decision and its alternatives
An architecture decision record (ADR) captures a consequential choice, its context, options, rationale and consequences so that a later reviewer can understand why it was made. Microsoft describes ADRs as architecture deliverables [4]. For the fictional help desk, ADR-001 proposes one approved provider behind a small adapter rather than two live providers. Requirements: only authorized evidence, no automatic sending, ordinary search fallback, traceable version, and a hypothetical 99% good-request objective. Option A is direct single-provider integration: simpler operations but greater coupling. Option B is single provider with a narrow adapter: modest maintenance cost, clearer upgrade boundary. Option C is two approved providers: potential resilience and negotiating flexibility, but more evaluations, policy checks, data-region reviews and incident complexity. Choose B for the pilot; reconsider C if measured outage or exit requirements justify it. Status proposed; decision owner platform lead; reviewers security, data owner, product owner and support operations; evidence and review date required before acceptance.
Choose the operating model and ownership
Central platform teams can own shared identity integration, approved model catalog, gateway, observability and evaluation tooling; embedded teams own product outcomes, domain datasets, acceptance cases and user support. A federated approach uses central control contracts with domain-specific implementation and review; it avoids both ungoverned duplication and a platform bottleneck. Compare building a gateway or retrieval component with buying a managed service: assess integration effort, data handling, portability, operational staffing, failure behavior, export rights and total cost. Buy is not automatically cheaper or safer. Assign an accountable owner and backup for each service, risk and rollback action. Security signs access requirements, data steward signs retention and lineage, support lead owns escalation, product owner owns outcome measurements, and operations owns service reliability. NIST AI RMF treats governance and risk management as ongoing, cross-cutting activities [5]; its use is voluntary and not a compliance certificate.
Set a failure budget with an explicit denominator
A service-level indicator (SLI) measures a defined outcome; an SLO sets its target over a specified window. For our synthetic example a good request is an eligible help-center request completed within the agreed deadline with the expected response contract; count errors and timeouts as failures. Correctly denied unauthorized requests are tracked separately, not used to inflate the good-request rate. Security incidents and unsupported claims need separate measures and stop conditions. At 99% over 1,000 eligible requests, at most 10 can fail. The function accepts integer counts and a target in basis points (99% = 9900), floors the permitted failures, and returns allowed and remaining counts. Seven failures leave three; ten exhaust the budget; eleven breach it. Zero observations are no_data, not proof of reliability. This fixed-window illustration does not replace time-weighted or multi-window SLOs. Google SRE explains error budgets as a way to balance reliability and changes [6].
def failure_budget(total, failed, target_bp): # Target is good requests in basis points (10000 = 100 percent). if any(type(v) is not int for v in (total, failed, target_bp)): raise ValueError("integer counts required") if total < 0 or not 0 <= failed <= total or not 0 <= target_bp <= 10000: raise ValueError("invalid counts or target") allowed = total * (10000 - target_bp) // 10000 return dict(allowed=allowed, remaining=allowed-failed, status="no_data" if total == 0 else "breached" if failed > allowed else "exhausted" if failed == allowed else "available")
print(failure_budget(1000, 7, 9900))print(failure_budget(1000, 10, 9900))print(failure_budget(1000, 11, 9900))print(failure_budget(0, 0, 9900))Use evidence gates without automatic deployment
A release gate joins independent evidence. This example has four trusted boolean findings: security passed, evaluation passed, accountable owner assigned, rollback tested. A security failure blocks regardless of service budget. Missing evidence blocks next. Exhausted, breached or unobserved reliability puts the release on hold. Only an available budget with all evidence returns request_review; a stakeholder must still decide. This hypothetical change policy applies to ordinary feature releases; urgent remediation follows a separately approved incident process. Evaluation must include tenant negative cases, unsupported-answer rates and accessibility review, not just HTTP success. Rollback means restoring a compatible model, prompt, retrieval index and policy bundle after confirming it does not reintroduce known vulnerabilities. Practice setting security to false while all other inputs pass, and explain why a high benchmark score cannot override that result.
def review_release(security_ok, eval_ok, owner_ok, rollback_ok, budget_status): # A local recommendation for a human reviewer, never a deployment. if budget_status not in ("available", "exhausted", "breached", "no_data"): raise ValueError("unknown budget status") if not security_ok: return "block_security" if not (eval_ok and owner_ok and rollback_ok): return "block_evidence" if budget_status != "available": return "hold_reliability" return "request_review"
print(review_release(True, True, True, True, "available"))print(review_release(True, True, True, True, "exhausted"))print(review_release(False, True, True, True, "available"))print(review_release(True, False, True, True, "available"))Separate measured benefit from the business hypothesis
Record the hypothesis: draft assistance may reduce handling time while preserving answer quality and access boundaries. Establish a rule-only or human baseline on a representative workload, then compare task success, error severity, manual handling time, escalation rates and total service cost using an agreed evaluation protocol. An attractive demo or synthetic calculation is not evidence of savings. Define measurable acceptance criteria, a human override and stop criteria for harmful outcomes, unreviewed actions or sustained service degradation. Include accessibility and user feedback in stakeholder review. For the pilot no high-stakes decisions or external writes occur automatically; route such requests to accountable humans under existing policy. Review ADR-001 when workload, risk, provider terms or observed failures change. Record dates, assumptions, evidence links and owners; avoid claiming ROI until actual measurements exist. Complete the chapter worksheet before the next product-engineering lesson.
Check Your Understanding
Solidify your learning with the interactive assessment directly below this lesson.
Concept Quiz & Questions
Architecture decisions and governance quiz
Assess enterprise architecture, trust boundaries, ADRs and governance.
What should an ADR contain?
Which statement about multi-provider architecture is sound?
At 99% SLO over 1000 eligible requests, what is the failure allowance?
All other evidence passes, but the budget is exhausted. What is the example outcome?
What establishes business benefit?