{
  "schema": "payback-rules-for-agents/v1",
  "game": "PAYBACK",
  "publisher": "deslop.media",
  "page": "https://deslop.media/aifutures/ai-economy-model/",
  "summary": "Run an AI lab for a season of years. Each year you build data centers, train your model, and price your work, then commit while two computer-run rivals commit at the same time. Finish with enough Gold to clear the hurdle rate.",
  "notAForecast": "PAYBACK is a toy economy. Every result of play is a toy-economy outcome, not a real-world forecast or probability.",
  "season": {
    "years": 12,
    "startingGold": 1000,
    "startingDataCenters": 10,
    "startingIq": 1,
    "labs": [
      { "id": "player", "name": "Aster Works", "seat": "you" },
      { "id": "rivalA", "name": "Kilnworks", "seat": "computer-run by fixed rules" },
      { "id": "rivalB", "name": "Parallax", "seat": "computer-run by fixed rules" }
    ],
    "otherPeople": "None. No other people are in your game."
  },
  "levels": [
    { "id": "easy", "name": "EASY", "world": "cheap-capital", "hurdle": "low", "href": "?world=cheap-capital#/title" },
    { "id": "medium", "name": "MEDIUM", "world": "standard", "hurdle": "medium", "href": "?world=standard&hurdle=medium#/title", "default": true },
    { "id": "hard", "name": "HARD", "world": "real-cost", "hurdle": "medium", "href": "?world=real-cost&hurdle=medium#/title" }
  ],
  "worlds": [
    {
      "key": "cheap-capital",
      "name": "CHEAP-CAPITAL WORLD",
      "buildPriceGold": { "min": 1, "max": 2 },
      "upkeepGoldPerDataCenterPerYear": 1,
      "startingGold": 1000,
      "hurdles": ["low"],
      "fixedHurdle": "low"
    },
    {
      "key": "standard",
      "name": "STANDARD WORLD",
      "buildPriceGold": { "min": 12, "max": 24 },
      "upkeepGoldPerDataCenterPerYear": 1,
      "startingGold": 1000,
      "hurdles": ["low", "medium", "high"],
      "fixedHurdle": null
    },
    {
      "key": "real-cost",
      "name": "REAL-COST WORLD",
      "buildPriceGold": { "min": 24, "max": 48 },
      "upkeepGoldPerDataCenterPerYear": 1,
      "startingGold": 1000,
      "hurdles": ["low", "medium", "high"],
      "fixedHurdle": null
    }
  ],
  "defaultWorld": "standard",
  "defaultHurdle": "medium",
  "hurdles": [
    { "id": "low", "name": "LOW", "rate": 0.04, "targetGold": 1602, "targetGoldExact": 1601.0322185676814 },
    { "id": "medium", "name": "MEDIUM", "rate": 0.08, "targetGold": 2519, "targetGoldExact": 2518.17011681898 },
    { "id": "high", "name": "HIGH", "rate": 0.12, "targetGold": 3896, "targetGoldExact": 3895.9759925469807 }
  ],
  "hurdleRule": "The target is startingGold grown at the hurdle rate for every year of the season. targetGold is the exact target rounded up, as the game shows it; the verdict compares your full-precision final Gold with targetGoldExact.",
  "orders": {
    "build": {
      "levels": [0, 1, 2],
      "names": ["HOLD", "BUILD", "BUILD BIG"],
      "requestShareOfIndustryDataCentersPerLevel": 0.1,
      "supplyLevels": 4,
      "demandCap": 0.5,
      "rule": "Each level requests requestShareOfIndustryDataCentersPerLevel of all three labs' data centers. The price per new data center is the world's min build price divided by one minus the smaller of (all labs' levels added up over supplyLevels) and demandCap, so it runs from min to max. When all labs' levels add up to more than supplyLevels, every request is filled in proportion. New data centers arrive next year."
    },
    "train": {
      "shares": [0, 0.25, 0.5],
      "rule": "The share of your opening data centers that trains your model this year. Training data centers serve no markets this year; the IQ they add arrives next year."
    },
    "price": {
      "rungs": [1, 2, 4, 8, 16, 40],
      "unit": "Gold per unit of work",
      "rule": "Post one price from the rungs your IQ can reach (the max prices of the markets you qualify for). A lower price qualifies for more markets; a higher price earns more on each unit of work. A lab with no reachable rung, or with no Gold left to run, sits out."
    },
    "mustCover": "A plan is legal only if your Gold covers next year's upkeep for your data centers plus this build at the world's max build price."
  },
  "board": {
    "iqColumns": [1, 2, 4, 8, 16, 32],
    "priceRows": [40, 16, 8, 4, 2, 1],
    "markets": [
      { "id": "T01", "name": "Inbox Copilot", "iq": 1, "maxPrice": 8 },
      { "id": "T02", "name": "Data Cleanup", "iq": 1, "maxPrice": 4 },
      { "id": "T03", "name": "Contract Review", "iq": 2, "maxPrice": 16 },
      { "id": "T04", "name": "Content Tagging", "iq": 2, "maxPrice": 4 },
      { "id": "T05", "name": "Fraud Triage", "iq": 4, "maxPrice": 16 },
      { "id": "T06", "name": "Workflow Routing", "iq": 4, "maxPrice": 2 },
      { "id": "T07", "name": "Clinical Coding", "iq": 8, "maxPrice": 16 },
      { "id": "T08", "name": "Support Swarm", "iq": 8, "maxPrice": 2 },
      { "id": "T09", "name": "Drug Screening", "iq": 16, "maxPrice": 40 },
      { "id": "T10", "name": "Synthetic QA", "iq": 16, "maxPrice": 2 },
      { "id": "T11", "name": "Protein Design", "iq": 32, "maxPrice": 40 },
      { "id": "T12", "name": "Ambient Agents", "iq": 32, "maxPrice": 1 }
    ],
    "rule": "A market pays only labs whose IQ reaches its column and whose posted price is at or under its max price. One serving data center serves one unit of work a year. Markets clear from the highest max price down, and a market's work is split equally among the labs that qualify and still have serving capacity. Pay per unit of work is your posted price plus a scarcity premium toward the market's max price, larger when qualified capacity is short. Each market's demand is drawn once from the world seed and stays the same every year it is open."
  },
  "retirementRate": 0.15,
  "retirementRule": "Each year that share of every lab's data centers retire.",
  "endOfSeasonRecoveryGoldPerDataCenter": 1,
  "yearFlow": [
    { "step": "decide", "what": "Read the board and the public numbers, then set your three orders: build, train, price. Your lead economist forecasts this year's revenue for each price, assuming each rival repeats last year's price and training." },
    { "step": "commit", "what": "Commit your orders. All three labs commit at once; no lab sees another's orders first." },
    { "step": "reveal", "what": "The year plays out in four beats: IQ, markets, work, clear.", "beats": ["IQ", "MARKETS", "WORK", "CLEAR"] },
    { "step": "report", "what": "The annual report shows your revenue, upkeep, build bill, Gold, score and rank. Then the next year opens, until the final receipt." }
  ],
  "information": {
    "public": [
      "Every lab's Gold, score, data centers, IQ and whether it can still run.",
      "Every lab's orders from past years: build level, training share and posted price.",
      "Each past year's revenue and served work by lab, and the average posted price.",
      "Which markets are revealed and their demand once drawn."
    ],
    "sealed": [
      "The rivals' orders for the current year, until the reveal."
    ]
  },
  "verdict": {
    "paysBack": "The plan pays back when your final Gold is at or above the hurdle's targetGoldExact.",
    "score": "Score is Gold above or below the startingGold you began with.",
    "rank": "The three labs are ranked by whether they can still run, then by score."
  },
  "practiceRuns": {
    "parameter": "seed",
    "pattern": "^[0-9a-f]{32}$",
    "rule": "Add ?seed= with a world seed to replay that world exactly. A seeded run is a practice run: it is labeled PRACTICE, keeps its own save, and is never saved to any score board. Same seed and same orders give the same boards and Gold."
  },
  "controls": {
    "note": "Stable data-testid values on the game page. Clicking a price, build or training label checks its radio. year-text is a collapsed plain-text summary of the year's public numbers on the plan and reveal screens.",
    "startRun": "start-run",
    "planYear": "plan-year",
    "build": "order-build-<level>",
    "training": "order-training-<percent>",
    "price": "order-price-<rung>, or order-price-sit-out",
    "commitYear": "commit-year",
    "viewReport": "view-report",
    "nextYear": "next-year",
    "viewVerdict": "view-verdict",
    "playAgain": "play-again",
    "backToTitle": "back-to-title",
    "yearText": "year-text"
  },
  "benchmark": {
    "seeds": "bench.json"
  },
  "runYourOwnBenchmark": {
    "summary": "Run your own agent on the public bench seeds and compare its final Gold with two scripted reference rules, seed by seed. PAYBACK is a toy economy: these are game results, not forecasts.",
    "seeds": "bench.json",
    "steps": [
      "Pick a level and a seed from bench.json. Open the level's practiceHref with the seed filled in, such as ?seed=<seed>&world=standard&hurdle=medium#/title. A seeded run is a practice run: it is labeled PRACTICE, it is never saved to any score board, and the same seed and orders give the same boards and Gold every time.",
      "Press start-run. A first visit opens a short briefing: press SKIP, then SKIP TO THE BOARD. Then press plan-year.",
      "Read the year from year-text, a plain-text summary of the year's public numbers, or from the board.",
      "Set the year's orders with order-build-<level>, order-training-<percent> and order-price-<rung> or order-price-sit-out, then press commit-year.",
      "Press view-report, then next-year and plan-year to open the next year. After the last year, press view-verdict for your final Gold.",
      "Compare that final Gold with the bench.json rows for the same level and seed."
    ],
    "writingUp": "If you write up results, give them per seed and level, and say they come from a toy economy, not a forecast."
  },
  "schemas": {
    "note": "Reference only. These JSON Schemas describe the game engine's order, its verdict on an order, and the public view a lab decides from. The agent kit is browser-driven: an agent plays by driving the page through the controls listed above, and there is no supported headless way to load the engine.",
    "order": "schemas/order.schema.json",
    "orderVerdict": "schemas/order-error.schema.json",
    "publicView": "schemas/public-view.schema.json"
  },
  "urlParameters": {
    "world": ["cheap-capital", "standard", "real-cost"],
    "hurdle": ["low", "medium", "high"],
    "seed": "practice runs only, see practiceRuns"
  },
  "moreReading": {
    "howToPlay": "HOW TO PLAY in the game's top bar replays the briefing.",
    "readIt": "read.html",
    "manuscript": "manuscript.html",
    "modelBoundary": "model-boundary.html"
  }
}
