Capstone: Enterprise LLM Platform Design Pack
Lesson opener
In one line: Assemble a complete, reviewable 22-part design pack for an enterprise LLM platform, following the path Enterprise Sources, Ingestion, RAG, Model Routing, Tools and Agents, Evaluation, Observability, Security, Deployment, Operations and Executive Value Reporting, and check that every part is consistent with every other.
Why it matters: Real platforms fail at the seams: a tool added without a threat-model entry, a budget with no owner, a rollback plan that forgets the index. Each lesson in this course covered one layer. A capstone pack forces the layers to agree, gives approvers one document to review and gives operators one place to look during an incident.
Before this lesson: all of From Prototype to Production, Model Access, Selection & Routing, Prompt, Configuration & Release Management, Enterprise RAG Architecture, RAG Evaluation & Improvement, LLM & Agent Evaluation Engineering, LLM Observability, Tracing & Operational Dashboards, Security, Privacy & Adversarial Risk, Production Deployment & Reliability, Cost, Performance & Capacity and Governance, Operations & Incident Response. Agent and generative-AI foundations are referenced, not repeated: AI Agents course, GenAI course.
Northline Consumer Goods (illustrative) wants one shared platform instead of a different stack per team. Three use cases will launch on it: a management assistant for finance managers (policy and budget-variance questions), a support reply drafter for customer-service agents, and an accounts-payable exception agent that drafts adjustments for clerks to approve. The CIO asks for a single design pack that the CFO, the security lead and the platform team can approve, and that operations can run from: "Show me how a document in SharePoint becomes a safe, governed, affordable answer or action, and how we know it is still working."
What you will be able to do
- Produce all 22 deliverables of an enterprise LLM platform design pack with consistent identifiers across sections.
- Trace each tool, use case and data source through approval, threat model, monitoring, evaluation, cost, ownership and rollback.
- Define evaluation thresholds, budgets, SLOs and rollout stages as proposals for owners to confirm.
- Run a self-review with a scoring rubric and a checklist before presenting the pack.
- Present the pack to an executive audience with value measures and decisions needed.
Deliverable: the 22-part design pack for the Northline platform, with the teacher walkthrough showing how to assemble it, a traceability check and a self-score.
Prerequisites
| Prerequisite | Why it matters |
|---|---|
| Governance, Operations & Incident Response | Owners, inventory, change approval, incident playbook. |
| Cost, Performance & Capacity | Cost model, budgets and capacity. |
| Production Deployment & Reliability | Architecture, fallbacks, rollback and kill switch. |
| Security, Privacy & Adversarial Risk | Threat model and risk-control register. |
| LLM Observability, Tracing & Operational Dashboards | SLIs, dashboards and alerts. |
| LLM & Agent Evaluation Engineering | Golden sets, thresholds and release gates. |
| Enterprise RAG Architecture and RAG Evaluation & Improvement | Retrieval design and its evaluation. |
| Model Access, Selection & Routing and Prompt, Configuration & Release Management | Routing policy and versioned configuration. |
| Capstone (agent course) | Agent design patterns reused here at platform level. |
| Enterprise Integration Capstone | Integration patterns for ERP and business systems. |
| Data Strategy & Leadership Capstone | Strategy and value framing for executives. |
Plain English
An enterprise LLM platform is the shared set of components and operating rules that lets many teams build LLM applications safely: ingestion and retrieval services, model access and routing, a tool gateway, evaluation pipelines, observability, security controls, deployment infrastructure, governance and cost management. Teams build use cases on top; the platform provides the paved road.
The flow the pack follows is:
Enterprise Sources → Ingestion → RAG → Model Routing → Tools/Agents → Evaluation → Observability → Security → Deployment → Operations → Executive Value Reporting.
| Flow stage | Pack sections | Course lessons |
|---|---|---|
| Enterprise Sources | 1, 2, 7 | #llmops1, #llmops4 |
| Ingestion | 6, 7 | #llmops4 |
| RAG | 6, 10 | #llmops4, #llmops5 |
| Model Routing | 4, 5 | #llmops2, #llmops3 |
| Tools/Agents | 8, 9 | #llmops6, #agent3, #agent7 |
| Evaluation | 10, 21 | #llmops6 |
| Observability | 12 | #llmops7 |
| Security | 11, 7 | #llmops8 |
| Deployment | 3, 13, 14 | #llmops9 |
| Operations | 16, 17, 18 | #llmops11 |
| Executive Value Reporting | 15, 19, 20 | #llmops10, #llmops11 |
Traceability is the capstone idea: every object named in one section must appear where it needs to in others. A tool named in section 8 needs an effect type, a gate in section 9 if it writes, a threat entry in section 11, a metric in section 12 and a place in the kill-switch design in section 18. A use case named in section 1 needs an owner (16), a budget (15), evaluation slices (10) and its own kill switch (18). A consistent pack can be reviewed quickly; an inconsistent one hides the gaps that incidents exploit.
All thresholds, budgets, volumes and dates in the pack are proposals for the accountable owners to confirm. Prices are provider-dependent and illustrative.
Teacher walkthrough
Assemble the pack in this order, because later sections depend on earlier ones.
- Owner. The CIO sponsors the platform; the Head of Platform Engineering owns the pack; each use case has a named business owner (Finance Director, Head of Support, Accounts Payable Manager); the security lead and the risk lead are required reviewers.
- Approved users. Defined per use case from section 1: finance managers, support agents and AP clerks, authenticated by single sign-on, with role and entity entitlements. Suppliers and customers are not users of the platform in this release.
- Sources. Inventory every source: finance policy library, budget and actuals data, product and returns guides, past tickets, ERP invoice, purchase-order and goods-receipt records. Record owner, data class, freshness and access method for each (sections 6 and 7).
- Permissions. Decide data access before tools: entitlements propagate to chunks and tools (section 7), then define tools with scope and effect (section 8), then the gates (section 9). Least privilege, read-only by default, no consequential write without a human.
- Architecture first. Draw the flow once (section 3), then write sections 4 to 6 for routing, configuration and retrieval so that every later section refers to the same components and identifiers.
- Validation. Define evaluation (section 10) before security and operations sections, so thresholds exist to reference. Validate the pack with the traceability check in the worked example, a tabletop of the incident plan and a kill-switch drill plan.
- Review. Pass the pack through three reviews: technical (platform and security), business (owners) and independent (risk or audit). Record decisions, open risks and conditions.
- Escalation. Escalation routes in sections 11, 17 and 18 must agree: who is paged, who may use each kill switch, who decides on communication, who approves relaunch.
- Monitoring. Section 12 monitors every tool, every use case and the platform's own health, and links each alert to a runbook in sections 14, 17 or 18.
- Fallback. Section 14 defines the ladder for each use case, ending in the existing manual process, which must still work.
- Value and roadmap. Finish with cost (15), adoption and value (19) and roadmap (20), because they depend on everything above. Add the scoring rubric (21) and self-review checklist (22), then score the pack.
- Stop condition. The pack states what stops a launch (a failed gate, an unowned risk, a missing kill switch) and what stops a live use case (a safety breach, confirmed data exposure, budget exhaustion without owner decision).
The capstone pack: 22 deliverables
The sections below are the worked pack for the Northline platform. Identifiers are used consistently: use cases UC-1 (management assistant), UC-2 (support reply drafter) and UC-3 (AP exception agent).
1. Business problem and users
Finance managers spend hours finding policy answers and explaining budget variances; support agents spend time drafting routine replies; AP clerks work invoice exceptions by hand across three systems. Northline wants these tasks faster and more consistent without exposing confidential data or creating uncontrolled actions. Users: finance managers and FP&A analysts (UC-1), customer-service agents (UC-2), AP clerks and the AP Manager (UC-3). Business sponsors and owners are named in section 16. Success is measured in section 19 and must be shown against a baseline taken before launch.
2. In-scope and prohibited use cases
In scope: answering questions from approved internal documents with citations (UC-1); drafting variance commentary and support replies for human review (UC-1, UC-2); investigating invoice mismatches and preparing draft adjustments and tickets for human approval (UC-3). Prohibited in this release: posting journals or payments, sending external email, making hiring or credit decisions, publishing financial commentary externally, using restricted-class data outside the approved endpoint, any use on data a user is not entitled to see, and any use case not in the inventory (see #llmops11). Changing the scope needs the change-approval path in section 16.
3. Solution architecture
Users reach the platform through an API gateway with single sign-on. A stateless assistant API places jobs on a priority queue; workers call the retrieval service, the model gateway and the tool gateway. The platform has shared services: ingestion pipeline and index, model gateway with routing, tool gateway with allowlist and authorisation, evaluation pipeline, observability pipeline, configuration and release store, secrets store and cost tagging. Use cases are configurations of these services. Environments are development, test, staging and production with separate keys, data and quotas. Every component carries release identifiers for the bundle: application, prompt, model, index and tool-schema versions.
4. Model-selection and routing policy
Two tiers plus a fallback, all pinned to dated version identifiers and listed in the inventory. A larger model handles complex, numeric or policy-critical intents (all of UC-1 numeric questions, all of UC-3). A smaller model handles simple FAQ and routine drafting intents (parts of UC-1 and UC-2), only after slice-level evaluation shows no regression beyond tolerance. A fallback model or provider, approved and tested, is used when the primary is unavailable. A routing decision uses intent class, data class and risk; restricted data may only go to endpoints approved for that class. Routing rules are configuration under change control; vendor model updates are changes (see #llmops2 and #llmops11).
5. Prompt and configuration strategy
Prompts, model identifiers, retrieval settings, tool schemas, thresholds and feature flags are stored as one versioned release bundle in source control, reviewed like code and promoted unchanged through environments. Prompts place static instructions first and variable content last (helps prefix caching where available). Instructions state that retrieved text and tool results are data, not instructions; every claim must cite a source or be labelled a hypothesis; the assistant states when evidence is missing. Rollback restores the entire bundle. Configuration changes follow the risk-based approval in section 16 (see #llmops3).
6. Enterprise RAG design
Sources are ingested by a pipeline that parses, cleans, chunks by document structure and attaches metadata: document ID, owner, version and effective date, data class, entitlement groups, source system and URL. Retrieval is hybrid (keyword plus vector), filtered by entitlement before ranking, then re-ranked; the top few chunks go into the prompt with citations. Stale, superseded or unapproved documents are excluded by metadata. When retrieval returns weak or no evidence the assistant says so and routes to a human rather than guessing. Indexes are versioned; re-indexing is a release; deletions and permission changes propagate within an agreed time (see #llmops4 and #llmops5).
7. Data-access and permission model
Authentication by single sign-on; authorisation by role and entity entitlement. Document and record permissions are copied to chunk metadata and enforced at query time in retrieval and again in the tool service, never only in the prompt. Data classes (public, internal, confidential, restricted) decide permitted endpoints, logging and retention. Each tool uses its own service account with minimal scopes, and no human credentials. Secrets live only in the secrets store. Prompts, outputs, traces and indexes have retention periods set by data owners and support deletion requests. Access to raw-text traces is limited to named roles with logged access (see #llmops7 and #llmops8).
8. Tool and agent architecture
A single agent per use case with a bounded loop (a maximum number of steps and a cost cap), no multi-agent orchestration in this release because the added complexity is not justified by the use cases (#agent8 discusses when it is). Tools are registered in the tool gateway with name, scope, effect type (read, draft, write) and argument allowlists:
| Tool | Use case | Effect | Notes |
|---|---|---|---|
search_docs | UC-1, UC-2, UC-3 | read | Entitlement-filtered retrieval |
get_budget_actuals | UC-1 | read | Aggregated fields only |
get_invoice, get_po, get_goods_receipt | UC-3 | read | Per-entity entitlement; bank details masked |
get_order_status | UC-2 | read | Read-only order API |
draft_adjustment | UC-3 | draft | Creates a draft only |
create_ticket | UC-2, UC-3 | draft | Idempotency key required |
There is no posting tool, no email tool and no free-form query tool. Unregistered tools are denied by default.
9. Human-approval gates
Every consequential effect passes a human. Gate G1: a clerk approves each UC-3 draft adjustment before the ERP posts it (posting is performed by the clerk's own authority, not by the agent). Gate G2: a support agent reviews and sends every UC-2 reply. Gate G3: an FP&A analyst confirms cited data rows before UC-1 commentary enters the management pack. Gate G4: the owner approves any change to model, prompt, sources, tools or permissions for high-risk use cases. Gate G5: the owner and security lead approve relaunch after a kill-switch use. Gates record who approved, what evidence they saw and when.
10. Evaluation dataset and quality thresholds
Golden sets per use case with happy, edge, adversarial and regression cases, owners, versions and labelling guides (proposal: UC-1 150 cases, UC-2 120, UC-3 120). Slices: UC-1 policy, numeric, stale-document, no-evidence; UC-2 tone, refund-limit, personal-data; UC-3 price, quantity, missing-receipt, injected-instruction, duplicate. Deterministic checks first (figures match source data, schema valid, forbidden tools absent, escalation correct), then calibrated model-based judging and human review. Proposed thresholds, for owners to confirm: zero safety violations; 100% escalation on must-escalate cases; groundedness and citation accuracy at least 90% on sampled answers; numeric accuracy 100% on deterministic checks; no slice drop beyond 2 points against the approved baseline; important cases run multiple times to measure variance. Test data never appears in prompts, examples or indexes (see #llmops6).
11. Security threat model
Assets: ERP and supplier data, finance and contract documents, credentials, the ability to act. Trust boundaries: external supplier content to ingestion, documents to prompt, model to tool gateway, gateway to systems, output to users and logs. Principal threats and controls: indirect prompt injection (data-not-instructions handling, flagging and escalation, no posting tool); data exfiltration (no outbound tools, no remote rendering, output scanning); cross-entitlement exposure (entitlement filters in retrieval and tools); excessive agency (least-privilege tools, gates); secret leakage (secrets store, allowlisted log fields); poisoned documents (owner-reviewed sources, ingestion checks); denial of wallet (rate limits, size limits, quotas). A risk-control register carries likelihood, impact, controls, residual rating, owner, test evidence and review date. Red-team findings become regression cases (see #llmops8).
12. Observability and alerting plan
Every request produces a trace with spans for retrieval, model, tool and feedback, carrying a correlation ID and the bundle identifiers. Privacy-aware logging: redaction at source, pseudonymous users, short retention for raw text. Proposed SLIs and SLOs: 95% of answers within 4 seconds; 99.5% availability of valid answers or deliberate refusals; 90% of sampled answers grounded; 98% tool success within one retry; cost per request within budget. Dashboards: latency by stage, errors and retries, queue age, tokens and cost by feature, retrieval-empty rate, tool-denied rate, guardrail hits, feedback and draft acceptance, fallback rung. Alerts use burn rate, with owner and runbook for each; any denied call to an unregistered tool pages security (see #llmops7).
13. Deployment and scaling strategy
Containers behind a gateway, at least two instances across failure domains, the same artefact promoted through environments. Workers pull from a priority queue (live interactive requests before batch) with a global concurrency cap tied to provider quota; autoscaling uses queue age and in-flight requests within a quota-based ceiling. Release by shadow mode, then canary to one team with human approval of everything, then expansion; blue-green or feature flags keep the previous bundle warm. Canary analysis includes quality signals (edit rate, escalation rate, thumbs-down) as well as errors and latency. Load tests at three times expected peak and failure injection run before each major release (see #llmops9).
14. Reliability and fallback design
Retries only for retryable errors with exponential backoff, jitter, attempt cap and deadline; idempotency keys on every side-effecting tool; a circuit breaker per dependency. Fallback ladder for each use case: live answer; alternate approved model; cached or template answer labelled as such; hand-off to the human queue with a visible banner; manual process. The ladder is tested in staging each release. Proposed recovery targets, for owners to confirm: RTO 1 hour and RPO 15 minutes for the configuration store, RTO 4 hours for the index (rebuildable from sources), traces best-effort. Restore and failover are rehearsed quarterly.
15. Cost model and budgets
Unit cost per request is the sum of input and output tokens times provider prices over every call in the trace, plus embedding, storage, hosting and review time. Prices live in a dated configuration table and are provider-dependent. Baseline from traces, then levers in order: context trimming, prefix and response caching for non-personal FAQ answers, batch interfaces for non-urgent jobs, routing for simple non-numeric intents behind the quality gate. Illustrative monthly budgets: UC-1 650, UC-2 900, UC-3 400 (currency units), each with watch, escalate and review levels at 50%, 80% and 100%, per-team quotas, an anomaly rule at more than twice the trailing median, and tags (feature, team, environment, model) on every call (see #llmops10).
16. Governance operating model
One accountable business owner per use case: Finance Director (UC-1), Head of Support (UC-2), Accounts Payable Manager (UC-3); the Head of Platform Engineering owns the platform; the security lead owns the risk-control register; the risk lead chairs the quarterly review. An inventory lists each use case with purpose, owner, users, data classes, tools, model and vendor versions, risk class, approved and prohibited uses, evidence reference and review dates. UC-1 and UC-3 are high risk (quarterly review, owner approval for each change); UC-2 is medium. Changes to model, prompt, sources, tools or permissions require dated evaluation evidence and a rollback plan; vendor model updates are changes. Weekly operations review, monthly owner review, quarterly independent audit. Vendor register with contract terms on retention, training use and deprecation notice, and a plan B for each provider (see #llmops11).
17. Incident-response plan
Severity table (proposal): SEV1 personal-data exposure or wrong output distributed externally or driving a material decision; SEV2 wrong output used by business users or a control bypassed; SEV3 quality degradation across users without confirmed harm; SEV4 minor defect caught before use. Steps: detect and report; triage with an incident lead; contain (use the kill switch, stop distribution, preserve traces and versions); assess scope from traces; communicate through owner, legal, privacy and risk (engineers do not decide external notifications); correct or recall outputs; recover by rollback or fix with owner approval; blameless post-incident review within five working days, with actions, owners and due dates, and a regression case for every failure. A tabletop exercise runs twice a year using realistic scenarios, such as unsupported commentary in the management pack.
18. Rollback and kill-switch design
Rollback restores the previous release bundle (application, prompt, model identifier, index version, tool schemas, thresholds) in one operation, with the previous bundle kept warm for at least the canary period. Kill switches exist at three levels, independent of the deployment pipeline: capability (disable all tool calls or one tool), use case (UC-1, UC-2 or UC-3 off, falling back to the manual process) and platform (all model calls off). Authority: named on-call roles and the owners; the security lead can disable any capability. Relaunch needs the owner's and security lead's written approval and a regression case reproducing the failure. Switches are tested in staging each release and rehearsed in production at agreed quiet times; target time to contain is under 5 minutes (proposal). Dependent systems are told the assistant is off through a banner and status page.
19. Adoption and value measures
Baselines are captured before launch and measured the same way afterwards. Adoption: weekly active users over eligible users, repeat use, share of eligible tasks started in the assistant. Quality as experienced: draft acceptance rate, edit distance, escalation rate, thumbs-down and complaint rate, sampled groundedness. Value: minutes saved per task (time-and-motion sample, not self-report alone), invoice exceptions resolved per clerk-day, first-response time in support, rework avoided. Cost: cost per request and cost per resolved task. Risk: incidents by severity, denied-call rate, audit findings. Benefits are reviewed monthly by the owner; sustained shortfall against the benefit target triggers redesign or retirement under the criteria in section 16. Executive reporting is one page: value against baseline, unit cost trend, spend against budget, quality and incident summary, forecast, risks and decisions needed.
20. Implementation roadmap
Phase 0 (weeks 1 to 4): inventory, owners, data classification, threat model, evaluation sets drafted, baselines captured. Phase 1 (weeks 5 to 12): platform foundations (gateway, ingestion, retrieval, model gateway, tool gateway, observability, release store) in staging; UC-1 in shadow mode. Phase 2 (weeks 13 to 20): UC-1 canary to one finance team; UC-2 shadow; load and failure tests; kill-switch drill; first independent review. Phase 3 (weeks 21 to 30): UC-1 expansion; UC-2 canary; UC-3 shadow with masked data; cost optimisation behind the gate. Phase 4 (weeks 31 to 40): UC-3 canary with clerk approval of every draft; quarterly audit; benefits review; decide on expansion and further use cases. Each phase has exit criteria: gates passed, owners signed off, no open high residual risks, budget in line. Dates are proposals and depend on team capacity.
21. Scoring rubric
Score each area from 0 (absent) to 4 (complete, consistent and evidenced). Weights total 100:
| Area | Weight |
|---|---|
| Problem and scope (sections 1, 2) | 8 |
| Architecture and routing (3, 4, 5) | 10 |
| RAG and access (6, 7) | 12 |
| Tools and approvals (8, 9) | 12 |
| Evaluation (10) | 12 |
| Security (11) | 12 |
| Observability (12) | 8 |
| Deployment and reliability (13, 14) | 8 |
| Cost (15) | 6 |
| Governance and incidents (16, 17, 18) | 8 |
| Value and roadmap (19, 20) | 4 |
Proposal: a pack is ready for review at 75 or above with no area below 2, and zero unresolved traceability findings. An area scores 4 only if it has evidence (test results, drill records, sign-offs), not only a description.
22. Self-review checklist
- Every use case has an accountable owner, risk class, budget, evaluation slices and its own kill switch.
- Every tool has a scope, effect type and allowlist; every write-capable tool has a human-approval gate; no tool posts, sends or deletes autonomously.
- Every tool and data source appears in the threat model, the monitoring plan and the kill-switch design.
- Entitlements are enforced in retrieval and tools, not only in prompts.
- Untrusted content is treated as data; instruction-like content is flagged and escalated.
- Evaluation covers happy, edge, adversarial and regression cases, with thresholds, slices and a leakage control.
- Release bundles are versioned and rollback restores the whole bundle, including the index.
- Vendor model updates are inside change approval; plan B exists for each provider.
- SLIs, SLOs and alerts have owners and runbooks; logs are privacy-aware with retention set.
- A fallback ladder exists for each use case, ends in a working manual process and has been tested.
- Prices are labelled provider-dependent; budgets, quotas and anomaly rules exist.
- Incident severity, containment, communication authority and PIR are defined and rehearsed.
- Benefits have baselines and measurement methods; retirement criteria are stated.
- All numbers are marked as proposals for owners to confirm; nothing in the pack is claimed as verified unless evidence is attached.
Worked example
The script below is a traceability and scoring tool for the pack. It checks that all 22 sections are present and non-empty, that every stage of the flow is covered, that each tool is gated if it writes, appears in the threat model and is monitored, and that each use case has an owner, a budget, evaluation slices and a kill switch. It first checks a deliberately flawed pack and prints findings, then checks the repaired pack, then computes the weighted rubric score. The content strings are placeholders standing in for real sections; the point is the cross-checking. It uses only the Python standard library.
SECTIONS = {
1: "Business problem and users", 2: "In-scope and prohibited use cases",
3: "Solution architecture", 4: "Model-selection and routing policy",
5: "Prompt and configuration strategy", 6: "Enterprise RAG design",
7: "Data-access and permission model", 8: "Tool and agent architecture",
9: "Human-approval gates", 10: "Evaluation dataset and quality thresholds",
11: "Security threat model", 12: "Observability and alerting plan",
13: "Deployment and scaling strategy", 14: "Reliability and fallback design",
15: "Cost model and budgets", 16: "Governance operating model",
17: "Incident-response plan", 18: "Rollback and kill-switch design",
19: "Adoption and value measures", 20: "Implementation roadmap",
21: "Scoring rubric", 22: "Self-review checklist",
}
FLOW = { # stage -> sections that must cover it
"Enterprise Sources": [6, 7], "Ingestion": [6], "RAG": [6], "Model Routing": [4],
"Tools/Agents": [8, 9], "Evaluation": [10], "Observability": [12],
"Security": [11], "Deployment": [13, 14], "Operations": [16, 17, 18],
"Executive Value Reporting": [19],
}
def build_pack():
pack = {n: f"content for {title}" for n, title in SECTIONS.items()}
pack["use_cases"] = {"UC-1": "management assistant", "UC-2": "support assistant",
"UC-3": "finance exception agent"}
pack["tools"] = {"search_docs": "read", "get_invoice": "read",
"draft_adjustment": "draft", "create_ticket": "draft"}
pack["approval_gates"] = {"draft_adjustment", "create_ticket"}
pack["threats"] = {"search_docs", "get_invoice", "draft_adjustment", "create_ticket"}
pack["monitored"] = {"search_docs", "get_invoice", "draft_adjustment", "create_ticket"}
pack["owners"] = {"UC-1": "Finance Director", "UC-2": "Head of Support", "UC-3": "AP Manager"}
pack["budgets"] = {"UC-1": 650, "UC-2": 900, "UC-3": 400}
pack["eval_slices"] = {"UC-1": ["policy", "numbers"], "UC-2": ["tone"], "UC-3": ["adversarial"]}
pack["kill_switch"] = {"UC-1", "UC-2", "UC-3"}
return pack
def check(pack):
issues = []
for n in SECTIONS:
if not str(pack.get(n, "")).strip():
issues.append(f"section {n} missing: {SECTIONS[n]}")
for stage, secs in FLOW.items():
if not any(str(pack.get(s, "")).strip() for s in secs):
issues.append(f"flow stage not covered: {stage}")
for tool, effect in pack["tools"].items():
if effect != "read" and tool not in pack["approval_gates"]:
issues.append(f"tool {tool} writes without approval gate")
if tool not in pack["threats"]:
issues.append(f"tool {tool} not in threat model")
if tool not in pack["monitored"]:
issues.append(f"tool {tool} not monitored")
for uc in pack["use_cases"]:
for key in ("owners", "budgets", "eval_slices"):
if uc not in pack[key]:
issues.append(f"{uc} missing {key}")
if uc not in pack["kill_switch"]:
issues.append(f"{uc} has no kill switch")
return issues
RUBRIC = {"problem and scope": 8, "architecture and routing": 10, "RAG and access": 12,
"tools and approvals": 12, "evaluation": 12, "security": 12, "observability": 8,
"deployment and reliability": 8, "cost": 6, "governance and incidents": 8,
"value and roadmap": 4}
assert sum(RUBRIC.values()) == 100
def score(levels):
"""levels: 0-4 per rubric area; returns weighted percentage and whether the floor holds."""
total = round(sum(RUBRIC[k] * levels[k] / 4 for k in RUBRIC), 1)
return total, min(levels.values()) >= 2
pack = build_pack()
pack["monitored"].discard("create_ticket")
pack["kill_switch"].discard("UC-3")
pack["approval_gates"].discard("draft_adjustment")
pack[9] = ""
print("issues before fix:")
for i in check(pack):
print(" -", i)
pack = build_pack()
print("issues after fix:", check(pack))
levels = {k: 3 for k in RUBRIC}
levels["security"] = 4
levels["tools and approvals"] = 4
total, floor_ok = score(levels)
print("rubric score:", total, "floor ok:", floor_ok, "(pass mark proposal: 75, no area below 2)")Expected output: the flawed pack produces four findings: section 9 is missing, draft_adjustment writes without an approval gate, create_ticket is not monitored and UC-3 has no kill switch. Note that no flow-stage finding appears, because the Tools/Agents stage is also covered by section 8; the stage check is a coverage test, while the tool-gate check catches the specific safety gap. After repair, the list is empty. The rubric score is 81.0 (every area at level 3 gives 75, and raising security and tools-and-approvals to level 4 adds 3 points each), the floor holds and the pack clears the proposed pass mark. A real tool would parse the actual pack files and also compare identifiers across sections; the rubric weights and pass mark are illustrative and for owners to confirm.
A second workplace case
Six months later, Northline's HR team asks to add a policy assistant for employee questions. The pack is the template. Section 1 and 2 are written for HR, with prohibited uses that include any decision about individual employees. Existing platform services are reused: ingestion, retrieval, model gateway, observability. New work is concentrated where risk is new: HR documents have different entitlements, personal-data questions need redaction and a shorter retention period, and the use case gets its own owner (Head of HR Operations), budget, golden set and kill switch. The traceability check is re-run with the new use case, and the independent reviewer looks only at what changed. The lesson is that a pack is a living asset: a good platform makes the second use case cheaper and safer than the first, but only because the shared controls and the review process are real.
Failure example
Symptom: A month after launch, a developer adds a send_supplier_email convenience tool to UC-3 so the agent can chase missing goods receipts. A prompt injection in an invoice note causes it to send a message containing another supplier's price. The message goes to an external address.
Diagnosis: The pack looked complete, but the tool was added by configuration without updating sections 8, 9, 11, 12 and 18. No approval gate covered it, it was not in the threat model, it was not monitored, and it was not on the kill-switch list. Change approval treated it as a minor tool addition because the prompt and model had not changed. The traceability check was not run in CI, and the security reviewer was not notified.
Correction: Disable the tool through the capability-level kill switch; follow the incident plan (severity, containment, notification through the legal and privacy functions); remove the tool. If supplier chasing is wanted, redesign it as a draft the clerk sends, with an allowlist of supplier contacts, an entitlement check, output scanning and an approval gate.
Validation: Re-run the traceability check with the new design: every tool has an effect type, gate, threat entry, monitor and kill-switch coverage. Add the injection case and variants to the golden set; confirm the draft carries no data outside the supplier's entitlement. Complete the post-incident review and tabletop the revised plan.
Prevention: Make the traceability check a release gate, require the security lead's approval for any tool change, include tools and permissions in the "changes that need evidence" list, and review the tool registry against the pack quarterly.
Guided practice
Scenario: Northline's logistics team wants to add UC-4, a delivery-exception assistant. It reads shipment status from a carrier API, retrieves carrier contract terms and drafts customer notifications for a coordinator to send. Use the pack to decide what must be added or changed.
Hints:
- Which sections need new entries and which can be reused?
- What new tools, effects and gates are involved?
- What new threats come from the carrier API and customer data?
- What evaluation slices and thresholds does it need?
- What would block launch?
Complete solution:
- Reuse and add: reuse platform services (ingestion, retrieval, model and tool gateways, observability, release store). Add to sections 1, 2 (users: coordinators; prohibited: sending notifications autonomously, promising compensation), 6 and 7 (carrier contract documents, shipment data; customer personal data class), 8 (
get_shipment_statusread;draft_notificationdraft), 9 (gate: coordinator reviews and sends every notification), 10, 11, 12, 15, 16, 18. - Threats: indirect injection through carrier status text or customer messages; exposure of customer personal data in drafts or logs; over-promising compensation (a business-risk output rule); carrier API failure and stale data.
- Controls: treat carrier text as data, field allowlist from the API, redaction and short retention for customer data, compensation phrases blocked by deterministic check, no send tool.
- Evaluation: slices for delayed, lost, damaged, partial delivery, conflicting status, injected text and no-evidence; thresholds including zero safety violations, correct escalation on must-escalate cases and no compensation promises.
- Operations: owner named (Logistics Director), risk class medium, own budget and kill switch, added to inventory with approved and prohibited uses; fallback ladder ending with coordinators writing notifications by hand.
- Block launch if: the owner is unnamed, the kill switch is untested, the traceability check has open findings, or an adversarial case passes through to a draft.
Independent practice
Produce a complete 22-part design pack for an enterprise LLM platform with at least two use cases in an organisation you know (or an illustrative one), plus a traceability check and self-score.
Acceptance criteria
- Contains numbered sections 1 to 22 with the titles listed in this lesson, in order, each with substantive content.
- Follows and explicitly maps the flow: Enterprise Sources, Ingestion, RAG, Model Routing, Tools/Agents, Evaluation, Observability, Security, Deployment, Operations, Executive Value Reporting.
- Names an accountable owner, risk class, approved users, budget, evaluation slices and kill switch for every use case.
- Registers every tool with scope, effect type and allowlist; every write-capable tool has a human-approval gate; no autonomous consequential writes.
- Enforces entitlements in retrieval and tools, and states data classes, endpoint rules and retention.
- Provides evaluation sets with adversarial and regression cases, thresholds, slice tolerances, leakage control and repeated runs.
- Includes a threat model with a risk-control register, and an observability plan with SLIs, SLOs, privacy-aware logging and alerts with owners and runbooks.
- Describes deployment, scaling, a fallback ladder, recovery targets, rollback of the full bundle, and kill switches at capability, use-case and platform levels.
- Includes a cost model with provider-dependent prices labelled, budgets, quotas and anomaly detection.
- Defines governance (inventory, change approval including vendor updates, audit cadence), incident severity, communication authority and PIR.
- Includes adoption and value measures with baselines, a phased roadmap with exit criteria, a scoring rubric and a self-review checklist.
- Includes a traceability check (manual or scripted) with results, and marks all thresholds, budgets and dates as proposals for owners to confirm.
Common mistakes
- Writing the 22 sections independently, so identifiers, tools and owners disagree between them.
- Adding or changing a tool without updating the gate, threat model, monitoring and kill-switch sections.
- Naming a team as owner instead of a named accountable person.
- Designing the happy path and leaving fallback, rollback and kill switch for later.
- Writing thresholds with no evidence plan to show they are met.
- Forgetting the index, tools and thresholds when describing rollback, so the "rollback" restores only the prompt.
- Treating vendor model updates as outside change approval.
- Presenting executives with technology detail and no baseline, unit cost or value measure.
- Scoring the pack generously because a description exists, with no test results, drills or sign-offs behind it.
- Launching all use cases at once instead of in shadow, canary and expansion stages.
- Treating the pack as a one-time deliverable rather than a living, versioned document under change control.
Quick check
- Why is traceability across sections the central idea of the capstone?
- In the worked example, why does the pack fail the check when
draft_adjustmentis missing from the approval gates? - Which sections must be updated when a new tool is added?
- Why does rollback in section 18 cover the index and tool schemas, not only the prompt?
- What distinguishes a rubric score of 4 from 3 for an area?
Answers:
- Incidents occur at the seams: an object defined in one section but missing from the gate, threat, monitoring or kill-switch sections. A consistent pack lets reviewers and operators trust that nothing was left out.
- A tool that creates a draft has a consequential effect and must be reviewed by a human before anything changes, so any non-read tool without a gate breaks the rule of no autonomous consequential writes.
- At least sections 8 (registry), 9 (gate if it writes), 11 (threats), 12 (monitoring), 16 (inventory and approval), 18 (kill switch), and also 7, 10 and 15 where permissions, evaluation slices or cost are affected.
- Behaviour depends on the whole bundle. A previous prompt with a new index or changed tool schema may behave differently, so a safe rollback restores all components together.
- A 4 needs evidence (test results, drill records, sign-offs) and consistency with other sections; a 3 may be complete and clear but not yet evidenced.
Quiz alignment
The quiz (QUIZ_LLMOPS12) covers the 22 pack sections, the flow from enterprise sources to executive value reporting, routing and configuration policy, RAG and permission design, tool and gate design, thresholds, threat modelling, observability, deployment and fallback, cost and budgets, governance and incident response, rollback and kill switches, traceability and rubric scoring, using the Northline platform with the management assistant, support drafter and AP exception agent.
Lesson summary
An enterprise LLM platform is more than components: it is the same controls applied consistently from source to executive report. The 22-part pack describes the problem, scope, architecture, routing, configuration, retrieval, permissions, tools, approvals, evaluation, security, observability, deployment, reliability, cost, governance, incident response, rollback, value and roadmap, then scores and self-reviews itself. Its power is traceability: every tool, source and use case shows up wherever its risk and its owner must be handled, and the pack changes under control as the platform grows.
Bridge to the next lesson
This is the last lesson in the LLMOps course. Apply the pack to a real use case, starting with sections 1, 2, 7 and 9 and a shadow-mode pilot, and keep it alive through the operating rhythm in Governance, Operations & Incident Response. For adjacent practice, revisit the AI Agents capstone, the Enterprise Integration capstone and the Data Strategy & Leadership capstone.
Sources
- NIST, Artificial Intelligence Risk Management Framework (AI RMF 1.0) and Generative AI Profile (NIST AI 600-1): https://www.nist.gov/itl/ai-risk-management-framework
- ISO/IEC 42001, Artificial intelligence management system (standard; purchase required, consult the current edition): https://www.iso.org/standard/81230.html
- OWASP, Top 10 for Large Language Model Applications (check the current published version): https://owasp.org/www-project-top-10-for-large-language-model-applications/
- OpenTelemetry, Semantic conventions for generative AI (status may change; check the current specification): https://opentelemetry.io/docs/specs/semconv/gen-ai/
- Google, Site Reliability Engineering (service level objectives, incident management, postmortem culture): https://sre.google/sre-book/table-of-contents/
- FinOps Foundation, FinOps Framework: https://www.finops.org/framework/
- Mitchell et al., Model Cards for Model Reporting (2019): https://arxiv.org/abs/1810.03993
- Provider documentation for model access, rate limits, caching and data-handling terms (provider-dependent; consult the current official documentation of the provider you use).
- Regulatory obligations (for example the EU AI Act or data-protection law) vary by jurisdiction and use case; consult the organisation's legal and compliance functions and current official texts.
- Python 3 standard library: https://docs.python.org/3/ (example tested with Python 3.11+, standard library only)
Northline Consumer Goods, use cases, tools, volumes, budgets, timelines, thresholds and roles are illustrative. All numeric thresholds, budgets, recovery targets and dates in this pack are proposals that must be confirmed by the accountable owners, the security function, the data protection function and the risk function before use.