{
  "v3": {
    "frozen_at": "2026-05-15T02:47:59.844755+00:00",
    "prompts": [
      {
        "id": "S1",
        "category": "SIMPLE",
        "prompt": "What is the capital of Australia, and which two larger cities did it compromise between when it was chosen as the capital? Answer in one paragraph."
      },
      {
        "id": "S2",
        "category": "SIMPLE",
        "prompt": "Explain photosynthesis in one short paragraph for a non-scientist. Cover the inputs, the outputs, and where it happens in the plant."
      },
      {
        "id": "S3",
        "category": "SIMPLE",
        "prompt": "Who invented the World Wide Web, in what year, and at which institution? Answer in 2-3 sentences and include why he created it."
      },
      {
        "id": "C1",
        "category": "COMPLEX",
        "prompt": "Explain the CAP theorem and the PACELC extension. In your answer, give a concrete example of a system that chooses CP, one that chooses AP, and one that chooses EL over EC. Be precise about the tradeoffs."
      },
      {
        "id": "C2",
        "category": "COMPLEX",
        "prompt": "Explain the Two Generals' Problem and why it implies you cannot solve consensus over an unreliable channel. Then briefly tie this to TCP's three-way handshake \u2014 does TCP solve it, work around it, or sidestep it? Be precise."
      },
      {
        "id": "C3",
        "category": "COMPLEX",
        "prompt": "State Bayes' theorem in one line, then walk through a concrete medical-test example: disease prevalence 1%, test sensitivity 99%, test specificity 95%. What is the probability a positive test result means the patient actually has the disease? Show the calculation step by step and then give the intuition for the result."
      },
      {
        "id": "K1",
        "category": "CODING",
        "prompt": "The Python function below is supposed to compute the running average of a list of numbers, but it produces incorrect results for some inputs. Identify the bug, explain precisely what triggers it, and provide a corrected version with 3-4 assert-based tests that demonstrate both the original failure and the fix.\n\n```python\ndef running_average(nums: list[float]) -> list[float]:\n    out = []\n    total = 0\n    for i, n in enumerate(nums):\n        total += n\n        out.append(total / i)\n    return out\n```"
      },
      {
        "id": "K2",
        "category": "CODING",
        "prompt": "Refactor the function below into clean, testable units. It currently mixes parsing, validation, FX conversion, large-order flagging, logging, and output construction inside a single loop with mutable shared state. Keep the public behaviour (return value + which orders are skipped) identical \u2014 do NOT add new features or change the rules. State the principles you applied in 2-3 short bullets at the end.\n\n```python\ndef process_orders(orders, fx_rates):\n    out = []\n    log = []\n    bad = 0\n    for o in orders:\n        if 'amount' not in o or 'currency' not in o:\n            log.append(f'skip: missing fields {o}')\n            bad += 1\n            continue\n        if o['currency'] not in fx_rates:\n            log.append(f'skip: unknown currency {o[\"currency\"]}')\n            bad += 1\n            continue\n        if o['amount'] < 0:\n            log.append(f'skip: negative {o}')\n            bad += 1\n            continue\n        usd = o['amount'] * fx_rates[o['currency']]\n        if usd > 1_000_000:\n            log.append(f'flag: huge order {o[\"id\"]} = {usd}')\n        out.append({**o, 'usd': usd})\n    print(f'processed {len(out)}, skipped {bad}')\n    return out\n```"
      },
      {
        "id": "K3",
        "category": "CODING",
        "prompt": "Implement a Python function `parse_duration(s: str) -> int` that converts a human duration string like '1h30m', '2d', '90s', or '1w2d3h' to total seconds. The spec is intentionally underspecified. First list your assumptions explicitly (whitespace handling, case sensitivity, allowed units, unit ordering, what counts as invalid input, what to return / raise on invalid input), then implement the function, then provide assert-based tests that exercise both the happy path and the edge cases your assumptions imply."
      },
      {
        "id": "A1",
        "category": "ARCHITECTURE",
        "prompt": "A two-engineer startup is choosing the database for a B2B SaaS product (CRM-like \u2014 accounts, contacts, deals, custom fields per tenant, reporting). They're debating Postgres vs MongoDB. Walk them through how to actually decide. Don't list every consideration \u2014 pick the 3-4 that matter most for their situation and go deep on each, including how each option behaves under concrete pressure (custom fields, ad-hoc reporting queries, schema evolution, hiring). End with a clear recommendation and one-line conditions that would flip your answer."
      },
      {
        "id": "A2",
        "category": "ARCHITECTURE",
        "prompt": "You're the SRE lead for a B2B SaaS product (~$8M ARR, 40 enterprise customers) running entirely in AWS us-east-1: a 3-tier web app on EC2 + RDS Postgres + S3. A 4-hour us-east-1 outage last month cost you a $400k enterprise renewal. Management is now demanding 'multi-region by EOY.' Your team is 6 engineers, 2 of them SRE-leaning. Walk through how you'd actually deliver this \u2014 what you'd ship in week 1, month 1, and quarter 1, what each step costs (engineer time, money, risk), and what trade-offs the business should make. It's fine to argue against full multi-region \u2014 just justify. Be concrete about RPO/RTO targets and where you'd deliberately accept worse numbers. Be definitive and dense \u2014 aim for 800-1200 words, no filler, no preamble."
      },
      {
        "id": "A3",
        "category": "ARCHITECTURE",
        "prompt": "Explain the cache stampede / dogpile problem to a competent backend engineer who hasn't hit it in production. Show why the naive 'check cache \u2192 regenerate on miss' pattern fails under load with a concrete numeric example. Then walk through the three main mitigation strategies \u2014 probabilistic early expiration (XFetch), request coalescing / single-flight, and stale-while-revalidate \u2014 explaining how each works mechanically, what failure modes each still has, and which you'd reach for first in a typical web service. Use code or pseudocode where it sharpens the explanation."
      }
    ]
  },
  "v4": {
    "frozen_at": "2026-07-30T00:00:00+00:00",
    "prompts": [
      {
        "id": "S1",
        "category": "SIMPLE",
        "prompt": "What is the capital of Australia, and which two larger cities did it compromise between when it was chosen as the capital? Answer in one paragraph."
      },
      {
        "id": "S2",
        "category": "SIMPLE",
        "prompt": "Explain photosynthesis in one short paragraph for a non-scientist. Cover the inputs, the outputs, and where it happens in the plant."
      },
      {
        "id": "S3",
        "category": "SIMPLE",
        "prompt": "Who invented the World Wide Web, in what year, and at which institution? Answer in 2-3 sentences and include why he created it."
      },
      {
        "id": "C1",
        "category": "COMPLEX",
        "prompt": "Explain the CAP theorem and the PACELC extension. In your answer, give a concrete example of a system that chooses CP, one that chooses AP, and one that chooses EL over EC. Be precise about the tradeoffs."
      },
      {
        "id": "C2",
        "category": "COMPLEX",
        "prompt": "Explain the Two Generals' Problem and why it implies you cannot solve consensus over an unreliable channel. Then briefly tie this to TCP's three-way handshake \u2014 does TCP solve it, work around it, or sidestep it? Be precise."
      },
      {
        "id": "C3",
        "category": "COMPLEX",
        "prompt": "State Bayes' theorem in one line, then walk through a concrete medical-test example: disease prevalence 1%, test sensitivity 99%, test specificity 95%. What is the probability a positive test result means the patient actually has the disease? Show the calculation step by step and then give the intuition for the result."
      },
      {
        "id": "K1",
        "category": "CODING",
        "prompt": "The Python function below is supposed to compute the running average of a list of numbers, but it produces incorrect results for some inputs. Identify the bug, explain precisely what triggers it, and provide a corrected version with 3-4 assert-based tests that demonstrate both the original failure and the fix.\n\n```python\ndef running_average(nums: list[float]) -> list[float]:\n    out = []\n    total = 0\n    for i, n in enumerate(nums):\n        total += n\n        out.append(total / i)\n    return out\n```"
      },
      {
        "id": "K2",
        "category": "CODING",
        "prompt": "Refactor the function below into clean, testable units. It currently mixes parsing, validation, FX conversion, large-order flagging, logging, and output construction inside a single loop with mutable shared state. Keep the public behaviour (return value + which orders are skipped) identical \u2014 do NOT add new features or change the rules. State the principles you applied in 2-3 short bullets at the end.\n\n```python\ndef process_orders(orders, fx_rates):\n    out = []\n    log = []\n    bad = 0\n    for o in orders:\n        if 'amount' not in o or 'currency' not in o:\n            log.append(f'skip: missing fields {o}')\n            bad += 1\n            continue\n        if o['currency'] not in fx_rates:\n            log.append(f'skip: unknown currency {o[\"currency\"]}')\n            bad += 1\n            continue\n        if o['amount'] < 0:\n            log.append(f'skip: negative {o}')\n            bad += 1\n            continue\n        usd = o['amount'] * fx_rates[o['currency']]\n        if usd > 1_000_000:\n            log.append(f'flag: huge order {o[\"id\"]} = {usd}')\n        out.append({**o, 'usd': usd})\n    print(f'processed {len(out)}, skipped {bad}')\n    return out\n```"
      },
      {
        "id": "K3",
        "category": "CODING",
        "prompt": "Implement a Python function `parse_duration(s: str) -> int` that converts a human duration string like '1h30m', '2d', '90s', or '1w2d3h' to total seconds. The spec is deliberately incomplete, so you must decide the details yourself.\n\nDo exactly three things, in this order and nothing else:\n1. State exactly four assumptions, one short line each \u2014 pick the four that most affect the implementation (e.g. whitespace, case, allowed units, unit ordering, invalid input).\n2. Implement the function.\n3. Give exactly six assert-based tests: four happy-path, two edge cases your assumptions imply.\n\nCommit to one behaviour per decision. Do not weigh or enumerate alternatives you rejected."
      },
      {
        "id": "A1",
        "category": "ARCHITECTURE",
        "prompt": "A two-engineer startup is choosing the database for a B2B SaaS product (CRM-like \u2014 accounts, contacts, deals, custom fields per tenant, reporting). They're debating Postgres vs MongoDB. Walk them through how to actually decide. Don't list every consideration \u2014 pick the 3-4 that matter most for their situation and go deep on each, including how each option behaves under concrete pressure (custom fields, ad-hoc reporting queries, schema evolution, hiring). End with a clear recommendation and one-line conditions that would flip your answer."
      },
      {
        "id": "A2",
        "category": "ARCHITECTURE",
        "prompt": "You're the SRE lead for a B2B SaaS product (~$8M ARR, 40 enterprise customers) running entirely in AWS us-east-1: a 3-tier web app on EC2 + RDS Postgres + S3. A 4-hour us-east-1 outage last month cost you a $400k enterprise renewal. Management is now demanding 'multi-region by EOY.' Your team is 6 engineers, 2 of them SRE-leaning. Walk through how you'd actually deliver this \u2014 what you'd ship in week 1, month 1, and quarter 1, what each step costs (engineer time, money, risk), and what trade-offs the business should make. It's fine to argue against full multi-region \u2014 just justify. Be concrete about RPO/RTO targets and where you'd deliberately accept worse numbers. Be definitive and dense \u2014 aim for 800-1200 words, no filler, no preamble."
      },
      {
        "id": "A3",
        "category": "ARCHITECTURE",
        "prompt": "Explain the cache stampede / dogpile problem to a competent backend engineer who hasn't hit it in production. Show why the naive 'check cache \u2192 regenerate on miss' pattern fails under load with a concrete numeric example. Then walk through the three main mitigation strategies \u2014 probabilistic early expiration (XFetch), request coalescing / single-flight, and stale-while-revalidate \u2014 explaining how each works mechanically, what failure modes each still has, and which you'd reach for first in a typical web service. Use code or pseudocode where it sharpens the explanation."
      }
    ]
  }
}
