Skip to content

B.13 Pass 11: Operating the System

A system that works is not yet a system that can be operated. This pass releases the system as v1.0.0, a promise that its API and formats change only through announced migrations, and then does the work that makes the promise keepable: a deprecation policy, migrations of the KV format and the API built as modules and rehearsed as drills, dependency upgrades, a bisected performance regression, and drills for data incidents, noisy neighbours, runaway agents, and a full event-log disk. Each drill leaves a runbook and, where an incident happened, a blameless postmortem.

Concepts from other sections (12)

This section uses these ideas. Each has a short definition and a link to the section that explains it in full. Tap a dotted term in the text to preview it.

  • Data incident: bad or disallowed input that corrupts training or evaluation without any service failing. Read more: 12.9 A data incident in Systems Engineering
  • Runaway agent: an agent run that keeps calling the model or tools without converging, spending budget without useful work. Read more: 12.11 A runaway agent in Systems Engineering
  • Blameless postmortem: the fixed-shape record of one incident that names system properties, not people. Read more: 12.1 First drill: the engine crashloops in Systems Engineering
  • STRIDE: six prompting questions (spoofing, tampering, repudiation, information disclosure, denial of service, elevation of privilege) asked of each boundary and asset. Read more: 9.1 Threat modeling with STRIDE in Software Engineering
  • Threat model: a structured answer to four questions about a system: what are we building, what can go wrong, what are we going to do about it, and did we do a good job? It turns an architecture into a list of threats, each tied to a control and a test. Read more: Chapter 9: Security in Software Engineering
  • SBOM: a software bill of materials, an inventory of the packages in one built artifact and the dependency edges between them. Read more: 9.2 SBOM and supply chain in Software Engineering
  • Design review: a reader who did not write the document checking it against a rubric and returning comments and a decision. Read more: 1.1 Design review: the tracer and the serving platform in Systems Engineering
  • Control plane: the API server, etcd, scheduler, and controller manager, which store desired state and decide what should run where; worker nodes carry out those decisions. Read more: Chapter 10: Kubernetes Workloads and Deployment in Systems Engineering
  • Semantic versioning (semver): MAJOR.MINOR.PATCH, where major signals breaking changes, minor compatible additions, and patch compatible fixes. Read more: 7.1 Commits, semver, and releases in Software Engineering
  • Noisy neighbor: a tenant whose load degrades other tenants’ latency on shared resources. Read more: 12.10 A noisy neighbor in Systems Engineering
  • Data-flow diagram (DFD): a diagram of external entities, processes, data stores, the flows between them, and trust boundaries. Read more: 9.1 Threat modeling with STRIDE in Software Engineering
  • Proof of Concept (POC): a limited experiment that tests a specific feasibility claim under stated conditions. Read more: Chapter 13: Engineering Acronyms in Software Engineering

The pass also reviews the system from outside: a STRIDE threat model, an SBOM and supply-chain review, a secrets and authorization review, design reviews of the control plane and the whole system, and a mock customer engagement from discovery to handoff. It ends with a defense of the system, where you explain every decision in it.

Learning objectives

  • Document the system with C4 diagrams, runbooks, and Diataxis docs.
  • Release v1.0.0 with semantic versioning and a deprecation policy, and migrate formats without downtime.
  • Detect, resolve, and document each core incident drill.
  • Review the system’s security and design, and explain it to the people who will rely on it.

This pass needs Pass 10, and with it the whole system the earlier passes built.

  1. C4 diagrams in D2. Afterwards you can explain how the C4 diagrams in D2 describe the system at each level.
  2. Runbooks and Diataxis docs. Afterwards you can explain how a runbook is structured and how Diataxis sorts documentation.
  3. Commits, semver, and releases. Afterwards you can explain how conventional commits drive semver and how v1.0.0 is released.
  4. Deprecation policy. Afterwards you can explain the deprecation policy and how it protects users.
  5. Interface migration: KV format v1 to v2. Afterwards you can explain how the KV format migrates from v1 to v2 without downtime.
  6. The KV format v2 migration. Afterwards you can diagnose a failure during the KV v2 migration, explain the fix, and explain how it is prevented.
  7. Interface migration: API v1 to v2. Afterwards you can explain how the API migrates from v1 to v2 while v1 clients keep working.
  8. The API v2 migration. Afterwards you can diagnose a failure during the API v2 migration, explain the fix, and explain how it is prevented.
  9. Dependency upgrades. Afterwards you can explain how a dependency upgrade is planned, tested, and rolled out.
  10. A breaking dependency upgrade. Afterwards you can diagnose a breaking dependency upgrade, explain the fix, and explain how it is prevented.
  11. Performance regression bisect. Afterwards you can explain how a performance regression is bisected to one commit.
  12. A performance regression bisect. Afterwards you can bisect a performance regression from its symptoms, explain the fix, and explain how it is prevented.
  13. A data incident. Afterwards you can diagnose the data incident, explain the fix, and explain how it is prevented.
  14. A noisy neighbor. Afterwards you can diagnose the noisy neighbor, explain the fix, and explain how it is prevented.
  15. A runaway agent. Afterwards you can diagnose the runaway agent, explain the fix, and explain how it is prevented.
  16. The event log disk fills up. Afterwards you can diagnose the full event-log disk, explain the fix, and explain how it is prevented.
  17. Threat modeling with STRIDE. Afterwards you can explain the STRIDE threat model of the system’s data-flow diagram.
  18. SBOM and supply chain. Afterwards you can explain how the SBOM is generated and what supply-chain checks it enables.
  19. Secrets and authorization review. Afterwards you can explain how secrets are handled and how authorization is reviewed.
  20. Design review: the control plane. Afterwards you can explain the design decisions of the control plane and the tradeoffs a design review raises.
  21. Design review: the whole system. Afterwards you can explain the design of the whole system and defend its tradeoffs in a review.
  22. Professional responsibility and disclosure. Afterwards you can explain the professional responsibilities and disclosure duties that apply to the system.
  23. Writing the discovery record. Afterwards you can explain how discovery uncovers the customer’s needs and constraints.
  24. Qualifying and sizing the engagement. Afterwards you can explain how the opportunity is qualified and the deployment sized.
  25. Designing the performance test protocol. Afterwards you can explain how the performance engagement measures and improves the customer’s workload.
  26. Pre-registering the POC. Afterwards you can explain how the POC is scoped and evaluated against success criteria.
  27. Planning the staged migration. Afterwards you can explain the migration plan and its risks.
  28. Answering the security questionnaire. Afterwards you can explain the commercials and how the security review is answered.
  29. Handing off operations. Afterwards you can explain how escalations are handled and how the engagement is handed off.
  30. Defend your system. Afterwards you can defend the system’s design and tradeoffs under questioning.
  31. What the System Does After Pass 11. Afterwards you can explain how v1.0.0 is released, migrated, operated through its incident drills, reviewed, and handed off.

One optional drill exercises the Raft-replicated durable log from Pass 8:

  1. A Raft partition (optional). Afterwards you can diagnose a Raft partition, explain what the cluster guarantees during it, and explain the fix.

The stages are also in this pass’s manifest, path.tsv. The core course ends here at v1.0.0; Pass 12 extends the system to images and audio.

Generated from path.tsv.

StageReadDone when
1C4 diagrams in D2
11.1 C4 diagrams in D2
You can explain how the C4 diagrams in D2 describe the system at each level (craft.09).
2Runbooks and Diataxis docs
12.2 Runbooks and Diataxis docs
You can explain how a runbook is structured and how Diataxis sorts documentation (craft.10).
3Commits, semver, releases (v1.0.0)
7.1 Commits, semver, and releases
You can explain how conventional commits drive semver and how v1.0.0 is released (craft.11).
4Deprecation policy
7.2 Deprecation policy
You can explain the deprecation policy and how it protects users (craft.12).
5Interface migration: KV format v1 to v2
8.1 Interface migration: KV format v1 to v2
You can explain how the KV format migrates from v1 to v2 without downtime (craft.13).
6Drill: KV v2 migration
12.5 The KV format v2 migration
You can diagnose a failure during the KV v2 migration, explain the fix, and explain how it is prevented (ops.04).
7Interface migration: API v1 to v2
8.2 Interface migration: API v1 to v2
You can explain how the API migrates from v1 to v2 while v1 clients keep working (craft.14).
8Drill: API v2 migration
12.6 The API v2 migration
You can diagnose a failure during the API v2 migration, explain the fix, and explain how it is prevented (ops.05).
9Dependency upgrades
8.3 Dependency upgrades
You can explain how a dependency upgrade is planned, tested, and rolled out (craft.15).
10Drill: breaking dependency upgrade
12.7 A breaking dependency upgrade
You can diagnose a breaking dependency upgrade, explain the fix, and explain how it is prevented (ops.06).
11Perf regression bisect
8.4 Performance regression bisect
You can explain how a performance regression is bisected to one commit (craft.16).
12Drill: performance regression bisect
12.8 A performance regression bisect
You can bisect a performance regression from its symptoms, explain the fix, and explain how it is prevented (ops.07).
13Drill: data incident
12.9 A data incident
You can diagnose the data incident, explain the fix, and explain how it is prevented (ops.08).
14Drill: noisy neighbor
12.10 A noisy neighbor
You can diagnose the noisy neighbor, explain the fix, and explain how it is prevented (ops.09).
15Drill: runaway agent
12.11 A runaway agent
You can diagnose the runaway agent, explain the fix, and explain how it is prevented (ops.10).
16Drill: event log disk full
12.12 The event log disk fills up
You can diagnose the full event-log disk, explain the fix, and explain how it is prevented (ops.11).
17Threat model (STRIDE on your DFD)
9.1 Threat modeling with STRIDE
You can explain the STRIDE threat model of the system’s data-flow diagram (craft.17).
18SBOM and supply chain
9.2 SBOM and supply chain
You can explain how the SBOM is generated and what supply-chain checks it enables (craft.18).
19Secrets and authorization review
9.3 Secrets and authorization review
You can explain how secrets are handled and how authorization is reviewed (craft.19).
20Design review: control plane
1.2 Design review: the control plane
You can explain the design decisions of the control plane and the tradeoffs a design review raises (review.02).
21Design review: the whole system
1.3 Design review: the whole system
You can explain the design of the whole system and defend its tradeoffs in a review (review.03).
22Professional responsibility and disclosure
38.1 Professional responsibility and disclosure
You can explain the professional responsibilities and disclosure duties that apply to the system (ethics.06).
23Mock engagement: discovery
8.1 Writing the discovery record
You can explain how discovery uncovers the customer’s needs and constraints (field.01).
24Mock engagement: qualification and sizing
8.2 Qualifying and sizing the engagement
You can explain how the opportunity is qualified and the deployment sized (field.02).
25Mock engagement: performance engagement
8.3 Designing the performance test protocol
You can explain how the performance engagement measures and improves the customer’s workload (field.03).
26Mock engagement: POC and evaluation
8.4 Pre-registering the POC
You can explain how the POC is scoped and evaluated against success criteria (field.04).
27Mock engagement: migration plan
8.5 Planning the staged migration
You can explain the migration plan and its risks (field.05).
28Commercials and security review
8.6 Answering the security questionnaire
You can explain the commercials and how the security review is answered (field.06).
29Escalation and handoff
8.7 Handing off operations
You can explain how escalations are handled and how the engagement is handed off (field.07).
30Defend your system
6.1 Defend your system
You can defend the system’s design and tradeoffs under questioning (iv.01).
31What the system does after Pass 11
B.13.1 What the System Does After Pass 11
You can explain how v1.0.0 is released, migrated, operated through its incident drills, reviewed, and handed off.
32Drill: Raft partition (optional)
12.13 A Raft partition (optional)
You can diagnose a Raft partition, explain what the cluster guarantees during it, and explain the fix (ops.12).