{
  "study": "long-life-20261118-r01-r08",
  "original_archive_sha256": "ffecd50531eca3c1ec2442fe6ade54b02d62d87a1493ade202ea106c0f3b0eb1",
  "R01_B_speech_and_transfer": {
    "turns": [
      {
        "source": "calls/0060.json",
        "source_sha256": "6ae9c9808e1bd72032297ca365cce2c3d79f0c25a6002ae8c8d49ebd04d2c9eb",
        "label": "R01/common:36:1",
        "tick": 36,
        "resident": "merchant",
        "selected_option": "reply:innkeeper:132",
        "public_utterance": "It is. One crate, two coins — here you go."
      },
      {
        "source": "calls/0111.json",
        "source_sha256": "dbaef0b57698abefeab39d3e6f5249c477e7e978bf8dc78b705ad1af70989b9c",
        "label": "R01/B:51:1",
        "tick": 49,
        "resident": "innkeeper",
        "selected_option": "reply:merchant:134",
        "public_utterance": "Two coins for one crate — that is fair. Thank you, friend."
      },
      {
        "source": "calls/0112.json",
        "source_sha256": "c3d5ddfdafe9f1d113d102acd75550cb8c56e23a9366cf16427d0c3ee9141fa9",
        "label": "R01/B:52:1",
        "tick": 50,
        "resident": "innkeeper",
        "selected_option": "work:request:2"
      },
      {
        "source": "calls/0113.json",
        "source_sha256": "cea6478c8c797f05283535890b46f4169b3dc5b1d4acca89f40afea91cf27ffc",
        "label": "R01/B:53:1",
        "tick": 50,
        "resident": "merchant",
        "selected_option": "work:offer:cash:2:1"
      },
      {
        "source": "calls/0115.json",
        "source_sha256": "5c5750d908392df797178859109ce101452b7e3f99ff0376feba5be9de3b55d7",
        "label": "R01/B:55:1",
        "tick": 51,
        "resident": "innkeeper",
        "selected_option": "work:accept_offer:2"
      }
    ],
    "source": "R01/B/world.sqlite. world_transactions.event_id=112 and supply_steps.event_id=112. R01/B/ticks/tick-049.json accounts.",
    "tick_49": {
      "stock": {
        "innkeeper": 0,
        "merchant": 2
      },
      "coins": {
        "innkeeper": 6,
        "merchant": 3
      }
    },
    "world_transaction": {
      "event_id": 112,
      "call_id": 55,
      "kind": "accept_offer",
      "source_id": "merchant",
      "destination_id": "innkeeper",
      "item_id": "supply_crate",
      "quantity": 2,
      "amount": 4,
      "offer_id": 2,
      "payment_method": "cash",
      "status": "committed"
    },
    "before_after": {
      "before_state": {
        "stock": {
          "innkeeper": 0,
          "merchant": 2
        },
        "coins": {
          "innkeeper": 6,
          "merchant": 3
        }
      },
      "after_state": {
        "stock": {
          "innkeeper": 2,
          "merchant": 0
        },
        "coins": {
          "innkeeper": 2,
          "merchant": 7
        }
      }
    }
  },
  "R07_A_retrieval": {
    "turns": [
      {
        "source": "calls/3314.json",
        "sha256": "96a335266f2f2a175f97aec9498167e622c25bf94b7ac7ea8a048de823032793",
        "label": "R07/A:133:1",
        "tick": 133,
        "resident": "merchant",
        "displayed_memory_ids": [
          6,
          10,
          24,
          38,
          217,
          220,
          232,
          264,
          342,
          343,
          346
        ],
        "recall_candidates": [
          10,
          24,
          38
        ],
        "buy_options_in_prompt": [],
        "source_ids_in_response": [
          232,
          343,
          217
        ],
        "selected_option": "search_memories"
      },
      {
        "source": "calls/3319.json",
        "sha256": "bc8b0fec1235d66600b0efb5868bbf0d2d851d410419f483f40015433cb85d21",
        "label": "R07/A:138:1",
        "tick": 138,
        "resident": "merchant",
        "displayed_memory_ids": [
          6,
          94,
          146,
          185,
          217,
          220,
          232,
          264,
          343,
          347,
          353
        ],
        "recall_candidates": [
          94,
          185,
          146
        ],
        "buy_options_in_prompt": [],
        "source_ids_in_response": [
          94,
          146,
          185
        ],
        "selected_option": "local:offer:smith"
      },
      {
        "source": "calls/3320.json",
        "sha256": "7d2c1531d6f45ce96858724c85c49e65883c5ef063d45b0987f74dca87bf280f",
        "label": "R07/A:139:1",
        "tick": 139,
        "resident": "smith",
        "displayed_memory_ids": [
          7,
          11,
          19,
          76,
          216,
          221,
          225,
          265,
          354,
          357
        ],
        "recall_candidates": [
          11
        ],
        "buy_options_in_prompt": [
          "local:take:6"
        ],
        "source_ids_in_response": [
          357,
          225
        ],
        "selected_option": "stay"
      }
    ],
    "source": "R07/A/world.sqlite service_requests.id=133 and memories.id=94,146,185.",
    "service_request": {
      "id": 133,
      "owner": "merchant",
      "requested_tick": 133,
      "executed_tick": 138,
      "delivery_call": 138
    },
    "retrieved_records": [
      {
        "id": 94,
        "owner": "merchant",
        "kind": "observation",
        "event_id": 65
      },
      {
        "id": 146,
        "owner": "merchant",
        "kind": "observation",
        "event_id": 97
      },
      {
        "id": 185,
        "owner": "merchant",
        "kind": "observation",
        "event_id": 120
      }
    ],
    "interpretation": "The returned records were available and cited. Their causal role in the offer remains untested."
  },
  "R07_B_interval_and_trade": {
    "interval": {
      "first_tick": 90,
      "last_tick": 135,
      "inclusive_ticks": 46,
      "first_call_id": 161,
      "last_call_id": 292,
      "model_calls": 132,
      "delivered_messages": 28,
      "committed_trades": 0,
      "journey_arrivals": 0,
      "completed_joint_rests": 0,
      "source": "R07/B/ticks/tick-090.json through tick-135.json. R07/B/world.sqlite spatial_messages.received, world_transactions.call_id, journeys.arrival and events.kind."
    },
    "next_trade": {
      "turns": [
        {
          "source": "calls/3289.json",
          "sha256": "3d9408528e2d28c233b1bcb57f7433371702597ce044cfdd3c28e7c7e4df724f",
          "label": "R07/B:293:1",
          "tick": 136,
          "resident": "merchant",
          "selected_option": "local:offer:smith"
        },
        {
          "source": "calls/3290.json",
          "sha256": "fbd64d3fa3e5bd33b5bb3adf530e6f0c8ea4be22e5e7ee984c597b289fb82d42",
          "label": "R07/B:294:1",
          "tick": 136,
          "resident": "smith",
          "selected_option": "local:take:10"
        }
      ],
      "offer_event_id": 274,
      "receipt": {
        "event_id": 275,
        "call_id": 294,
        "kind": "local_trade",
        "source_id": "merchant",
        "destination_id": "smith",
        "item_id": "supply_crate",
        "quantity": 1,
        "amount": 2,
        "offer_id": 10,
        "payment_method": "cash",
        "status": "committed"
      },
      "source": "R07/B/world.sqlite events 274–275 and world_transactions.event_id=275. R07/B/world.sqlite supply_steps.event_id=275, before_state and after_state.",
      "before_after": {
        "before_state": {
          "coins": {
            "smith": 4,
            "merchant": 3
          },
          "stock": {
            "smith": 0,
            "merchant": 2
          }
        },
        "after_state": {
          "coins": {
            "smith": 2,
            "merchant": 5
          },
          "stock": {
            "smith": 1,
            "merchant": 1
          }
        }
      }
    },
    "full_branch_trades": [
      {
        "event_id": 117,
        "call_id": 68,
        "kind": "local_trade",
        "source_id": "merchant",
        "destination_id": "smith",
        "item_id": "supply_crate",
        "quantity": 1,
        "amount": 2,
        "offer_id": 3,
        "payment_method": "cash",
        "status": "committed"
      },
      {
        "event_id": 124,
        "call_id": 74,
        "kind": "local_trade",
        "source_id": "merchant",
        "destination_id": "smith",
        "item_id": "supply_crate",
        "quantity": 1,
        "amount": 2,
        "offer_id": 4,
        "payment_method": "cash",
        "status": "committed"
      },
      {
        "event_id": 177,
        "call_id": 114,
        "kind": "local_trade",
        "source_id": "smith",
        "destination_id": "merchant",
        "item_id": "supply_crate",
        "quantity": 1,
        "amount": 2,
        "offer_id": 6,
        "payment_method": "cash",
        "status": "committed"
      },
      {
        "event_id": 186,
        "call_id": 122,
        "kind": "local_trade",
        "source_id": "merchant",
        "destination_id": "smith",
        "item_id": "supply_crate",
        "quantity": 1,
        "amount": 2,
        "offer_id": 7,
        "payment_method": "cash",
        "status": "committed"
      },
      {
        "event_id": 201,
        "call_id": 147,
        "kind": "local_trade",
        "source_id": "smith",
        "destination_id": "merchant",
        "item_id": "supply_crate",
        "quantity": 1,
        "amount": 2,
        "offer_id": 8,
        "payment_method": "cash",
        "status": "committed"
      },
      {
        "event_id": 211,
        "call_id": 158,
        "kind": "local_trade",
        "source_id": "smith",
        "destination_id": "merchant",
        "item_id": "supply_crate",
        "quantity": 1,
        "amount": 2,
        "offer_id": 9,
        "payment_method": "cash",
        "status": "committed"
      },
      {
        "event_id": 275,
        "call_id": 294,
        "kind": "local_trade",
        "source_id": "merchant",
        "destination_id": "smith",
        "item_id": "supply_crate",
        "quantity": 1,
        "amount": 2,
        "offer_id": 10,
        "payment_method": "cash",
        "status": "committed"
      },
      {
        "event_id": 293,
        "call_id": 322,
        "kind": "local_trade",
        "source_id": "merchant",
        "destination_id": "smith",
        "item_id": "supply_crate",
        "quantity": 1,
        "amount": 2,
        "offer_id": 11,
        "payment_method": "cash",
        "status": "committed"
      },
      {
        "event_id": 301,
        "call_id": 332,
        "kind": "local_trade",
        "source_id": "smith",
        "destination_id": "merchant",
        "item_id": "supply_crate",
        "quantity": 1,
        "amount": 2,
        "offer_id": 12,
        "payment_method": "cash",
        "status": "committed"
      },
      {
        "event_id": 336,
        "call_id": 396,
        "kind": "local_trade",
        "source_id": "merchant",
        "destination_id": "smith",
        "item_id": "supply_crate",
        "quantity": 1,
        "amount": 2,
        "offer_id": 13,
        "payment_method": "cash",
        "status": "committed"
      },
      {
        "event_id": 351,
        "call_id": 419,
        "kind": "local_trade",
        "source_id": "smith",
        "destination_id": "merchant",
        "item_id": "supply_crate",
        "quantity": 1,
        "amount": 2,
        "offer_id": 14,
        "payment_method": "cash",
        "status": "committed"
      },
      {
        "event_id": 357,
        "call_id": 430,
        "kind": "local_trade",
        "source_id": "smith",
        "destination_id": "merchant",
        "item_id": "supply_crate",
        "quantity": 1,
        "amount": 2,
        "offer_id": 15,
        "payment_method": "cash",
        "status": "committed"
      }
    ],
    "endpoint_balances": {
      "48": {
        "accounts": {
          "merchant": 3,
          "smith": 4
        },
        "stock": {
          "merchant": 2,
          "smith": 0
        }
      },
      "192": {
        "accounts": {
          "merchant": 3,
          "smith": 4
        },
        "stock": {
          "merchant": 2,
          "smith": 0
        }
      }
    },
    "endpoint_source": "R07/B/checkpoints/tick-048.json and tick-192.json state.accounts and state.stock."
  },
  "R06_social_and_travel": {
    "A": [
      {
        "event_id": 105,
        "tick": 55,
        "location": "tavern",
        "residents": [
          "gossip",
          "innkeeper"
        ],
        "offer_id": 101
      },
      {
        "event_id": 162,
        "tick": 99,
        "location": "tavern",
        "residents": [
          "innkeeper",
          "gossip"
        ],
        "offer_id": 160
      },
      {
        "event_id": 182,
        "tick": 113,
        "location": "tavern",
        "residents": [
          "gossip",
          "innkeeper"
        ],
        "offer_id": 176
      },
      {
        "event_id": 204,
        "tick": 129,
        "location": "tavern",
        "residents": [
          "innkeeper",
          "gossip"
        ],
        "offer_id": 202
      },
      {
        "event_id": 224,
        "tick": 144,
        "location": "tavern",
        "residents": [
          "gossip",
          "innkeeper"
        ],
        "offer_id": 221
      },
      {
        "event_id": 244,
        "tick": 158,
        "location": "tavern",
        "residents": [
          "gossip",
          "innkeeper"
        ],
        "offer_id": 239
      },
      {
        "event_id": 250,
        "tick": 162,
        "location": "tavern",
        "residents": [
          "gossip",
          "innkeeper"
        ],
        "offer_id": 246
      },
      {
        "event_id": 269,
        "tick": 174,
        "location": "tavern",
        "residents": [
          "gossip",
          "innkeeper"
        ],
        "offer_id": 265
      },
      {
        "event_id": 290,
        "tick": 189,
        "location": "tavern",
        "residents": [
          "gossip",
          "innkeeper"
        ],
        "offer_id": 288
      }
    ],
    "B": [
      {
        "event_id": 102,
        "tick": 52,
        "location": "tavern",
        "residents": [
          "innkeeper",
          "gossip"
        ],
        "offer_id": 101
      }
    ],
    "B_journeys": [
      {
        "id": 1,
        "resident": "innkeeper",
        "origin": "tavern",
        "destination": "village",
        "departure": 95,
        "arrival": 96,
        "departed_event": 170,
        "arrived_event": 171
      },
      {
        "id": 2,
        "resident": "innkeeper",
        "origin": "village",
        "destination": "market",
        "departure": 96,
        "arrival": 97,
        "departed_event": 173,
        "arrived_event": 178
      }
    ],
    "source": "R06/{A,B}/world.sqlite events.kind=everyday_rest_together after the branch's start.json marks.events. R06/B/world.sqlite journeys."
  },
  "R08_B_two_offers": {
    "offers_and_trade": [
      {
        "event_id": 192,
        "kind": "supply_local_offer",
        "day": 58,
        "offer_id": 4,
        "from": "smith",
        "to": "merchant",
        "units": 1,
        "price": 2
      },
      {
        "event_id": 207,
        "kind": "supply_local_offer",
        "day": 64,
        "offer_id": 5,
        "from": "smith",
        "to": "merchant",
        "units": 1,
        "price": 2
      },
      {
        "event_id": 212,
        "kind": "supply_local_trade",
        "day": 65,
        "offer_id": 5,
        "from": "smith",
        "to": "merchant",
        "units": 1,
        "price": 2
      }
    ],
    "buy_option_turns": [
      {
        "source": "calls/2627.json",
        "sha256": "f37e647525273d18190bc83ba56f6850ed2351e90fb32606edc820a955855291",
        "label": "R08/B:233:1",
        "tick": 117,
        "resident": "merchant",
        "buy_options_in_prompt": [
          "local:take:4"
        ],
        "selected_option": "search_memories"
      },
      {
        "source": "calls/2630.json",
        "sha256": "5e302623a2872931a7f21af34f340513d22ed0e8c3ee144f2b4875a9c296d711",
        "label": "R08/B:236:1",
        "tick": 118,
        "resident": "merchant",
        "buy_options_in_prompt": [
          "local:take:4"
        ],
        "selected_option": "talk:smith"
      },
      {
        "source": "calls/3117.json",
        "sha256": "193ae8182dab3f58c9954d5b9a49df18d03cb45d387cef40720fdc9608949891",
        "label": "R08/B:264:1",
        "tick": 128,
        "resident": "merchant",
        "buy_options_in_prompt": [
          "local:take:5"
        ],
        "selected_option": "reply:smith:373"
      },
      {
        "source": "calls/3119.json",
        "sha256": "3ea7ca15beca82300c3c940a8b132370ec04a3ce5c99b3d340f6e0b52c53e785",
        "label": "R08/B:266:1",
        "tick": 129,
        "resident": "merchant",
        "buy_options_in_prompt": [
          "local:take:5"
        ],
        "selected_option": "local:take:5"
      }
    ],
    "transactions_for_offer_4_or_5": [
      {
        "event_id": 212,
        "call_id": 266,
        "offer_id": 5,
        "quantity": 1,
        "amount": 2,
        "status": "committed"
      }
    ],
    "source": "R08/B/world.sqlite events.id=192,207,212 and world_transactions.offer_id in (4,5). Use purchase-opportunities.csv for every legal buy turn."
  }
}
