Capstone ops lab
Instrument metrics and rollout decisions
Metrics for readyz_ok, kill_switch_seconds, secret_age_days ≤ 30 must distinguish bad input from component failure for solo builder operating pka.example for 50 beta users.
1Try it yourself
Decision drill
Capstone ops gate
Before demo day — metrics, flags, and recovery must be real.
1/3Before demo day: latency + groundedness must page someone.
2Learn the idea
Read
Golden signals for this system
Instrument Personal Knowledge Assistant API with flags, probes, secrets, on-call owner so solo builder operating pka.example for 50 beta users can answer: demand, errors, latency/age, saturation. Emit fields needed by readyz_ok, kill_switch_seconds, secret_age_days ≤ 30 with bounded labels. Sample successful high-volume traces; keep errors and rollout transitions denser within policy.
Read
Alert path worth paging
Define at least one alert that would fire for CAP-OPS-PKA-12, with a for/pending window that survives deploy blips. Missing scrape or missing revision labels must not look like health. Include a trace/log example id format you will actually search.
Read
Implementation artifact
emit("pka_ask", version=VERSION, grounded=bool(cite), latency_ms=ms)
Read
Tests for telemetry
Add a unit/integration check that metrics increment on the happy path and on the app runs on laptop only — no probes, no owner, secret in .env committed branch. Store machine-readable output in CI artifacts when practical.
Read
Stage depth
Cardinality discipline: tenant and revision are usually enough; raw question text is not a label. Exemplars or trace links beat screenshots alone when debugging CAP-OPS-PKA-12. Define who owns alert fatigue review. If you export to a vendor, record retention and access. Synthetic probes should use non-sensitive fixtures and still exercise https://pka.example/v1/ask. Practice the query you will type at 2am once, while calm.
Read
Field notes for `capstone-ops-lab` / `observability`
Document the exact PromQL or log query in the runbook stub for this service. Verify histograms have buckets around your SLO target. Add a canary synthetic check that exercises the oracle path every few minutes in staging. Confirm that PII redaction happens before export. Track build/version as a label on the golden signals. Delete noisy debug logs before they become accidental product dependencies. In this chapter the product is Personal Knowledge Assistant API with flags, probes, secrets, on-call owner, the human stakeholder is solo builder operating pka.example for 50 beta users, and the incident id you design against is CAP-OPS-PKA-12. Re-state the oracle in your notes — ship v1.2.0: smoke+readyz pass; kill switch drill < 60s; on-call roster non-empty — and keep the invariant visible: versioned release with readyz, flag kill switch, rotated secret, named on-call. Track readyz_ok, kill_switch_seconds, secret_age_days ≤ 30 as the scoreboard. Surface under change control: https://pka.example/v1/ask. If you only have forty minutes, finish the fixture for app runs on laptop only — no probes, no owner, secret in .env committed before polishing UI. Promotion language stays ternary: promote, hold, or roll back based on evidence, not hope.
Go deeper
Before you start
Why this matters
Name the dashboard row or log line solo builder operating pka.example for 50 beta users opens first during CAP-OPS-PKA-12. It must include a correlation id and a bounded label from readyz_ok, kill_switch_seconds, secret_age_days ≤ 30. If telemetry is missing, write whether you promote, hold, or roll back — and why hold is the default.
Capstone metrics (readyz_ok, kill_switch_seconds, secret_age_days ≤ 30) appear in the final evidence pack.
In the wild
See how this idea shows up as a product and a company — then come back to the lesson. Skills transfer across vendors.
Related lessons
Check your understanding
Page assessment
Answer from memory. Completion is saved from this evidence, not from opening the next page.
All responses are required.