Skip to content

Drill: API v2 migration

Moduleops.05 · drill · ops, docs · Pass 11 · 1 to 2 h
You builddocs/runbooks/ApiV2Migration.md
Testscourse/tests/ops.05 (named below, with why each exists)
Needscraft.14
Used byno code call site; this is an independent artifact
MilestoneMS-P11
  • Tie each claim to the exact platform evidence that Drill: API v2 migration produces.
  • State the owner, success condition, and recovery action before declaring the work complete.
  • Record unresolved assumptions so the next review can test them.
Terminal window
ol start ops.05
ol tests ops.05
ol check ops.05

A simultaneous API rollout can break clients even when the new engine is healthy. Version-specific evidence is needed to distinguish protocol errors from service failures.

Keep v1 available while validating v2. Route by an explicit version, compare success and latency by version, and define a rollback threshold before increasing the canary.

Send synthetic v1 and v2 streams through the gateway. Verify both OpenAPI suites and usage-ledger totals. Expand the v2 cohort in steps while watching 4xx, 5xx, disconnects, and token accounting.

TestKINDChecksWhy it matters downstream
test_runbook_has_cohort_gates_and_rollbackartifactChecks that the runbook names an owner, preconditions, canary gate, rollback, verification, both API versions, sunset, API version routing, and token evidence.Version-specific cohort and sunset checks let the operator roll back before client impact spreads.
#PitfallSymptomCaught by
1The canary advances before the rollback trigger is recordedThe exercise reports success without proving the old format or route can be restored.test_runbook_has_cohort_gates_and_rollback
2The team watches request errors but omits the migration-specific signalA partial rollout can corrupt or strand work while the generic health check stays green.test_runbook_has_cohort_gates_and_rollback
3No owner records the decision and verification evidenceThe next on-call cannot tell whether the incident is contained.test_runbook_has_cohort_gates_and_rollback
DirectionModuleConnection
Backcraft.14Read this declared prerequisite before producing the artifact; use it to verify the relevant contract or evidence.
Backops.04Read this declared prerequisite before producing the artifact; use it to verify the relevant contract or evidence.
ResourceWhat to inspect
Incident drill catalogCompare this inject with the adjacent failure drills and use the same containment and verification fields.