Skip to content

Maintenance

  • Most engineering time is spent changing systems that already work. Maintenance is a skill with techniques: versioned formats, dual-read migrations, dependency hygiene, and bisection.
  • Change an interface in phases: add the new version, read both, write the new, migrate data, stop reading the old, remove it. Each phase is deployable and reversible.
  • A dependency upgrade is a change you did not write: pin, read the changelog, run the full suite, and roll out like any other change.
  • Regressions are found by search, not by staring: a benchmark with a threshold plus git bisect run finds the commit in log⁡2n\log_2 n steps.

Read the two SWE at Google chapters and DDIA chapter 4, then practice git bisect run on a small repo with a planted regression. In the course, each module is paired with an incident drill on your cluster: the KV v2 and API v2 migrations are build modules graded by tests, the upgrade and the bisect are practices graded by their artifacts.


A system that cannot change safely is already failing slowly. Every migration in this topic follows the same shape: make the change additive, prove both sides work with tests, roll out behind a switch, and remove the old path only when telemetry shows nobody uses it.

Key ideas:

  • KV format v1 to v2 (craft.13, build): fp8 E4M3 KV blocks with per-(layer, head) scales, mixed-version negotiation during rollout, drill ops.04.
  • API v1 to v2 (craft.14, build): the openai-subset.v2 contract delivered by ol contracts sync, served alongside v1 under the deprecation policy, drill ops.05.

Key ideas:

  • Dependency upgrades (craft.15): lockfiles, changelog review, the allowlist in allowed-deps.toml, drill ops.06.
  • Perf regression bisect (craft.16): a benchmark gate, git bisect run, and a fix with a regression test, drill ops.07.
ModuleTopicKindPass
craft.13Interface migration: KV format v1 to v2build11
craft.14Interface migration: API v1 to v2build11
craft.15Dependency upgradespractice11
craft.16Perf regression bisectpractice11
#ModuleChapterKindPass
1craft.13Interface migration: KV format v1 to v2build11
2craft.14Interface migration: API v1 to v2build11
3craft.15Dependency upgradespractice11
4craft.16Perf regression bisectpractice11
TrackConnection
Releases and Deprecationthe policy each migration follows
Incident Response and Chaosthe drills ops.04 to ops.07
tinyllm Part 8the KV block pool whose format changes
Numerical Methods and Floating Pointfp8 encoding (M09.4) behind KV v2