{
 "_about": "An invented example project for the website's interactive demo. It follows the app's real rules (layout, shapes, colours, words) but none of it is from a real repository. Show it with the 'Example data' label, as the app does in its own example mode. Words in 'appText' fields follow the app's own templates in apps/desktop/live/city/loop-ui.ts and words.ts; keep them as written.",
 "label": "Example data",
 "project": {
  "name": "example-shop",
  "summary": "(example data) An invented shop.",
  "agent": "Claude Code"
 },
 "world": {
  "units": "world units; x runs left to right, z runs back (0) to front (24). The front edge holds Ways in, the back holds saved data, outside services are docks on the left edge, tests sit in a yard on the right.",
  "platform": {
   "x": 0,
   "z": 0,
   "w": 30,
   "d": 24
  },
  "districts": [
   {
    "name": "Ways in",
    "x": 6,
    "z": 18.5,
    "w": 15,
    "d": 4
   },
   {
    "name": "Shop logic",
    "x": 6,
    "z": 11,
    "w": 18,
    "d": 5
   },
   {
    "name": "Saved data",
    "x": 6,
    "z": 4,
    "w": 16,
    "d": 4.5
   },
   {
    "name": "Outside services",
    "x": 0.8,
    "z": 10,
    "w": 3.6,
    "d": 10
   },
   {
    "name": "Tests",
    "x": 25,
    "z": 11,
    "w": 4.4,
    "d": 5
   }
  ]
 },
 "parts": [
  {
   "id": "basket",
   "name": "Basket",
   "role": "entry",
   "shape": "gate",
   "district": "Ways in",
   "file": "src/web/basket.ts",
   "plain": "Where shoppers add and remove items.",
   "x": 9,
   "z": 20,
   "w": 1.73,
   "d": 0.9,
   "h": 1.52
  },
  {
   "id": "checkout",
   "name": "Checkout",
   "role": "entry",
   "shape": "gate",
   "district": "Ways in",
   "file": "src/web/checkout.ts",
   "plain": "Takes the basket to payment.",
   "x": 13.5,
   "z": 20,
   "w": 1.84,
   "d": 0.9,
   "h": 1.52
  },
  {
   "id": "signin",
   "name": "Sign in",
   "role": "entry",
   "shape": "gate",
   "district": "Ways in",
   "file": "src/web/sign_in.ts",
   "plain": "Lets members sign in.",
   "x": 18,
   "z": 20,
   "w": 1.6,
   "d": 0.9,
   "h": 1.4
  },
  {
   "id": "orders",
   "name": "Orders",
   "role": "service",
   "shape": "tower",
   "district": "Shop logic",
   "file": "src/orders.ts",
   "plain": "Turns a basket into an order.",
   "x": 10,
   "z": 13,
   "w": 1.69,
   "d": 1.69,
   "h": 4.92
  },
  {
   "id": "delivery",
   "name": "Delivery price",
   "role": "service",
   "shape": "tower",
   "district": "Shop logic",
   "file": "src/delivery.ts",
   "plain": "Works out what delivery costs.",
   "x": 14,
   "z": 13,
   "w": 1.5,
   "d": 1.5,
   "h": 3.72
  },
  {
   "id": "members",
   "name": "Members",
   "role": "service",
   "shape": "tower",
   "district": "Shop logic",
   "file": "src/members.ts",
   "plain": "Knows who is a member.",
   "x": 18,
   "z": 13,
   "w": 1.5,
   "d": 1.5,
   "h": 3.4
  },
  {
   "id": "money",
   "name": "Money format",
   "role": "helper",
   "shape": "house",
   "district": "Shop logic",
   "file": "src/money.ts",
   "plain": "Formats prices.",
   "x": 21.5,
   "z": 14,
   "w": 1.1,
   "d": 1.1,
   "h": 1.37
  },
  {
   "id": "records",
   "name": "Order records",
   "role": "store",
   "shape": "warehouse",
   "district": "Saved data",
   "file": "src/repo/orders.ts",
   "plain": "Keeps placed orders.",
   "x": 10,
   "z": 6,
   "w": 2.18,
   "d": 1.43,
   "h": 1.33
  },
  {
   "id": "products",
   "name": "Product data",
   "role": "model",
   "shape": "stacked cylinders",
   "district": "Saved data",
   "file": "src/schema/product.ts",
   "plain": "Describes a product.",
   "x": 15,
   "z": 6,
   "w": 1.37,
   "d": 1.37,
   "h": 2.0
  },
  {
   "id": "settings",
   "name": "Settings",
   "role": "config",
   "shape": "pavilion",
   "district": "Saved data",
   "file": "config/shop.json",
   "plain": "Delivery prices and limits.",
   "x": 19,
   "z": 6,
   "w": 0.95,
   "d": 0.95,
   "h": 0.75
  },
  {
   "id": "payments",
   "name": "Payment service",
   "role": "outside",
   "shape": "dock",
   "district": "Outside services",
   "file": "(outside)",
   "plain": "Card payments, outside this project.",
   "x": 2.5,
   "z": 12,
   "w": 1.5,
   "d": 1.2,
   "h": 0.9
  },
  {
   "id": "email",
   "name": "Email service",
   "role": "outside",
   "shape": "dock",
   "district": "Outside services",
   "file": "(outside)",
   "plain": "Sends order emails, outside this project.",
   "x": 2.5,
   "z": 17,
   "w": 1.5,
   "d": 1.2,
   "h": 0.9
  },
  {
   "id": "tests",
   "name": "Tests",
   "role": "test",
   "shape": "greenhouse",
   "district": "Tests",
   "file": "test/",
   "plain": "48 tests in 6 files.",
   "x": 27,
   "z": 13,
   "w": 1.6,
   "d": 1.6,
   "h": 0.35
  }
 ],
 "roads": [
  {
   "from": "basket",
   "to": "orders",
   "kind": "calls"
  },
  {
   "from": "checkout",
   "to": "orders",
   "kind": "calls"
  },
  {
   "from": "signin",
   "to": "members",
   "kind": "calls"
  },
  {
   "from": "orders",
   "to": "delivery",
   "kind": "calls"
  },
  {
   "from": "delivery",
   "to": "members",
   "kind": "calls"
  },
  {
   "from": "delivery",
   "to": "settings",
   "kind": "reads or writes data"
  },
  {
   "from": "orders",
   "to": "records",
   "kind": "reads or writes data"
  },
  {
   "from": "orders",
   "to": "payments",
   "kind": "calls"
  },
  {
   "from": "orders",
   "to": "email",
   "kind": "calls"
  },
  {
   "from": "delivery",
   "to": "money",
   "kind": "imports"
  },
  {
   "from": "orders",
   "to": "products",
   "kind": "reads or writes data"
  }
 ],
 "story": [
  {
   "step": 0,
   "title": "Your project, as a map",
   "explain": "Alofted reads your code and draws it as a city: ways in at the front, the logic in the middle, saved data at the back. Drag to move, scroll or pinch to zoom.",
   "map": {},
   "card": null
  },
  {
   "step": 1,
   "title": "Your agent makes a change",
   "explain": "Claude Code works in Alofted's copy, not your folder. The part it touched turns warm while Alofted checks it; parts that use it get a soft outline.",
   "map": {
    "changed": [
     "delivery"
    ],
    "affected": [
     "orders",
     "members"
    ]
   },
   "card": {
    "head": "Your agent's fix",
    "mark": "Waiting for the agent",
    "line": "Alofted checks each attempt when Claude Code is done.",
    "asked": "Give members free delivery on any order",
    "files": [
     {
      "name": "delivery.ts",
      "change": "Changed"
     }
    ],
    "affects": "Delivery price, Orders"
   },
   "progress": [
    "Finding what changed",
    "Running it as it is now",
    "Running it with the change",
    "Comparing old and new"
   ]
  },
  {
   "step": 2,
   "title": "Alofted runs it and finds a problem",
   "explain": "The old version is the referee. A test that passed before now fails, so the part turns brick red and Alofted shows expected versus got.",
   "map": {
    "broken": [
     "delivery"
    ],
    "affected": [
     "orders",
     "members"
    ]
   },
   "card": {
    "head": "Your agent's fix",
    "mark": "Agent is fixing it",
    "line": "Attempt 1 of 3 failed. Claude Code is trying again.",
    "asked": "Give members free delivery on any order",
    "files": [
     {
      "name": "delivery.ts",
      "change": "Changed"
     }
    ],
    "affects": "Delivery price, Orders",
    "tested": "Tested: every existing test (48), 2 tests written for the task, 2 of them proving it and 12 old versus new comparisons.",
    "attempts": [
     {
      "n": 1,
      "appText": "Fails: free delivery over £50 now charges delivery.",
      "evidence": {
       "what": "A non-member's £60 order",
       "expected": "Delivery £0",
       "got": "Delivery £3.99"
      },
      "after": "Alofted told the agent what broke"
     }
    ],
    "rupees": "0.62 of 3 rupees used."
   }
  },
  {
   "step": 3,
   "title": "The agent repairs it",
   "explain": "Alofted sent Claude Code a short note: what was asked, what broke, expected versus got. Never the test code, so it can't write around the check.",
   "map": {
    "changed": [
     "delivery"
    ],
    "affected": [
     "orders",
     "members"
    ]
   },
   "card": {
    "head": "Your agent's fix",
    "mark": "Agent is fixing it",
    "line": "Attempt 1 of 3 failed. Claude Code is trying again."
   },
   "noteToAgent": "Alofted ran your change on a copy, and it fails (attempt 1 of 3).\nWhat was asked: Give members free delivery on any order\nWhat broke:\n- free delivery over £50: expected Delivery £0, got Delivery £3.99.\nFiles you changed: src/delivery.ts\nFix your change in this folder. Alofted checks it again when you stop."
  },
  {
   "step": 4,
   "title": "Checked again: every test passes",
   "explain": "Attempt 2 passes every check and the whole existing suite, so the part turns green. Nothing has touched your folder yet.",
   "map": {
    "passed": [
     "delivery"
    ]
   },
   "card": {
    "head": "Your agent's fix",
    "mark": "Works",
    "line": "Passed on attempt 2 of 3.",
    "tested": "Tested: every existing test (48), 2 tests written for the task, 2 of them proving it and 12 old versus new comparisons.",
    "attempts": [
     {
      "n": 1,
      "appText": "Fails: free delivery over £50 now charges delivery."
     },
     {
      "n": 2,
      "appText": "Works"
     }
    ],
    "rupees": "1.10 of 3 rupees used.",
    "actions": [
     "Apply to my folder"
    ]
   }
  },
  {
   "step": 5,
   "title": "You approve, with undo",
   "explain": "The change lands in your folder only when you click Apply, with a snapshot so Undo puts it back exactly.",
   "map": {
    "passed": [
     "delivery"
    ]
   },
   "card": {
    "head": "Your agent's fix",
    "mark": "Works",
    "line": "Passed on attempt 2 of 3.",
    "status": "Applied to your folder.",
    "actions": [
     "Undo"
    ]
   }
  }
 ]
}