{
  "revision": "4f5a2bf3e2331bde4b88f4d69917c6e1409e2a19",
  "scope": "Living Village configuration used in the registered Long-Life experiment. Ranges are the full function definitions at this revision.",
  "implementation": [
    {
      "component": "world_state",
      "file": "village_zero/living.py",
      "symbol": "LivingWorld.living_actions",
      "first_line": 148,
      "last_line": 195,
      "source_sha256": "6c4a47fc06b061777c9c61bea9842e8d5099123e27c91b4ec2e908af8e523ced",
      "description": "Builds the resident's eligible local work and market options from current location, stocks, offers and counterparties."
    },
    {
      "component": "local_perception",
      "file": "village_zero/local_perception.py",
      "symbol": "visible",
      "first_line": 10,
      "last_line": 50,
      "source_sha256": "a6aa887664e62d82eb0d462f1e70675b25c676b96ed7414466d49570b3065013",
      "description": "Builds the resident's visible surroundings and handles travel and local presence."
    },
    {
      "component": "message_delivery",
      "file": "village_zero/propagation.py",
      "symbol": "PropagationWorld.dispatch",
      "first_line": 180,
      "last_line": 201,
      "source_sha256": "81306acb056842c1c4607673153e600f854c81fa08008241b03b12182dd78645",
      "description": "Delivers a queued message to its intended recipient and records the recipient memory and delivery."
    },
    {
      "component": "personal_memory",
      "file": "village_zero/memory_index.py",
      "symbol": "MemoryIndex.search_memories",
      "first_line": 182,
      "last_line": 240,
      "source_sha256": "6544316c0ba2f1bf7ecaa4360b076d60f923fe50d2ea96060cbf04d0a503d629",
      "description": "Restricts lookup to the owner's eligible records, then ranks lexical and vector matches as configured."
    },
    {
      "component": "context_builder",
      "file": "village_zero/context.py",
      "symbol": "build_context",
      "first_line": 270,
      "last_line": 443,
      "source_sha256": "053b20b3e48d52f2018e10e532ae8cf8d30e4cb5595293886e433fde49dac004",
      "description": "Chooses the configured packing policy and applies the native prompt measurement path in the registered profile."
    },
    {
      "component": "scheduler",
      "file": "village_zero/fair_attention.py",
      "symbol": "resident_order",
      "first_line": 56,
      "last_line": 108,
      "source_sha256": "0eb922dcf08601d01b1dc70782c6a23dd0cd7ba0b552cfc7836c4e7e5c4b3145",
      "description": "Ranks residents using current eligibility and recorded attention. Differences in who gets a turn alter the opportunities the model sees."
    },
    {
      "component": "serial_rounds",
      "file": "temporal_experiment63.py",
      "symbol": "rounds",
      "first_line": 122,
      "last_line": 152,
      "source_sha256": "3a8d630c6f144546a890a1eb2254fc5787c933cf0367d4562476176359e5da72",
      "description": "Selects a different eligible resident for each available same-tick round. Effects from earlier rounds can change the next candidate set."
    },
    {
      "component": "decision_layer",
      "file": "long_life_run.py",
      "symbol": "transport_records",
      "first_line": 60,
      "last_line": 78,
      "source_sha256": "3c70bde215539e1b3b0e611fbbd29765f51411b822cc4c4d080adedc68513d1d",
      "description": "Checks generation options, the resident's native input limit, model placement and call identity at the boundary between model and world."
    },
    {
      "component": "validation_receipts",
      "file": "village_zero/social.py",
      "symbol": "Social.apply_saved",
      "first_line": 269,
      "last_line": 343,
      "source_sha256": "b787e66ee053dbe9f5ab0f0e1eb4a2ab0ac1bbb22e04e86a6c6719a21aef9c27",
      "description": "Checks the saved response and actor's contract, records the applied result and returns a prior receipt when the turn was already applied."
    },
    {
      "component": "joint_rest",
      "file": "village_zero/everyday_rest.py",
      "symbol": "actions",
      "first_line": 22,
      "last_line": 67,
      "source_sha256": "96fb9e8e083219d4e1d209a8005790bdf742ba5613d527fa40779310ee624d49",
      "description": "Builds available rest and invitation responses from contact, timing and stored offers."
    },
    {
      "component": "recovery",
      "file": "long_life_run.py",
      "symbol": "recovery_check",
      "first_line": 81,
      "last_line": 113,
      "source_sha256": "3c70bde215539e1b3b0e611fbbd29765f51411b822cc4c4d080adedc68513d1d",
      "description": "Compares saved requests, responses and journal attempts on a working copy when checking recoverability."
    },
    {
      "component": "cohort_checks",
      "file": "long_life_run.py",
      "symbol": "validate_cohort",
      "first_line": 152,
      "last_line": 182,
      "source_sha256": "3c70bde215539e1b3b0e611fbbd29765f51411b822cc4c4d080adedc68513d1d",
      "description": "Checks the fork source and the expected checkpoint set for completed phases."
    },
    {
      "component": "reserve_request",
      "file": "village_zero/social.py",
      "symbol": "Social._reserve",
      "first_line": 82,
      "last_line": 97,
      "source_sha256": "b787e66ee053dbe9f5ab0f0e1eb4a2ab0ac1bbb22e04e86a6c6719a21aef9c27",
      "description": "Persists the complete logical request and job linkage in world.sqlite calls.request before the provider is called."
    },
    {
      "component": "journal_schema",
      "file": "mid_tick_runner.py",
      "symbol": "TurnJournal.__init__",
      "first_line": 21,
      "last_line": 48,
      "source_sha256": "b03ca66f4ca447a0ba7bca55a038bdff2f82c30965700c8f4f615b74ca04d83f",
      "description": "Initializes the independent transport.sqlite journal, including attempt keys, request SHA-256, response, failure and tick cursor."
    },
    {
      "component": "journal_attempt",
      "file": "mid_tick_runner.py",
      "symbol": "TurnJournal.provider",
      "first_line": 61,
      "last_line": 94,
      "source_sha256": "b03ca66f4ca447a0ba7bca55a038bdff2f82c30965700c8f4f615b74ca04d83f",
      "description": "Hashes and checks the matching saved packet, records a numbered attempt and persists its response or failure."
    },
    {
      "component": "save_world_response",
      "file": "village_zero/social.py",
      "symbol": "Social._save_response",
      "first_line": 123,
      "last_line": 145,
      "source_sha256": "b787e66ee053dbe9f5ab0f0e1eb4a2ab0ac1bbb22e04e86a6c6719a21aef9c27",
      "description": "Saves the returned envelope on the logical call before engine application."
    },
    {
      "component": "recover_response",
      "file": "mid_tick_runner.py",
      "symbol": "settle",
      "first_line": 106,
      "last_line": 136,
      "source_sha256": "b03ca66f4ca447a0ba7bca55a038bdff2f82c30965700c8f4f615b74ca04d83f",
      "description": "Reconciles a pending logical call with the verified journal response and resumes the same decision slot."
    },
    {
      "component": "memory_packing",
      "file": "village_zero/context.py",
      "symbol": "_build_context",
      "first_line": 16,
      "last_line": 268,
      "source_sha256": "053b20b3e48d52f2018e10e532ae8cf8d30e4cb5595293886e433fde49dac004",
      "description": "Ranks eligible memories, packs within the remaining budget and records the selected and omitted IDs."
    }
  ],
  "technical_document": {
    "title": "Architecture and boundaries",
    "sha256": "1ed4ff237d523756bbef38eaf8db4bf293ab57888d4e6873e80b98a21e4d856c",
    "sections": [
      {
        "lines": "11–38",
        "subject": "World engine, residents, perception and memory"
      },
      {
        "lines": "40–59",
        "subject": "Scheduling, model and context budget"
      },
      {
        "lines": "62–92",
        "subject": "Action validation, receipts, checkpoints and recovery"
      }
    ]
  },
  "public_examples": [
    "joint-rest-trace.json",
    "context-selection.json",
    "world-atlas.json",
    "journal-cases.json",
    "runtime-profile.json"
  ]
}
