{
  "input": {
    "exeSha256": "af2f5a1227911d8aa06b3908d6bd0211838211cae14ea91099cb57d0df990781",
    "steamBuild": "23966345",
    "kfcVersion": "1076226|^/game38/branches/ea_update_08|2026-06-29T10:27:39.052394Z",
    "kfcSha256": "b0b0ec4c4f970c0b317224b44d330ef7dd41334bf53ee93d3bce4d0180489a42",
    "provenance": "Prior descriptor/reflection extraction cross-checked with direct current KFC3 content reads; old three raw tile hashes reproduce exactly. Current investigation reads source files only."
  },
  "scope": {
    "descriptorCount": 135,
    "typeCounts": {
      "Solid": 130,
      "Fog": 5
    },
    "rawSamples": 1035,
    "sampleBytes": 19624870,
    "sampleColumns": 764841,
    "oldGoldenFixturesMatched": true
  },
  "indexFormat": {
    "tileHeader": "u8 columns_x, u8 columns_z, then columns_x*columns_z little-endian u24 offsets relative to payload_start=2+3*columns",
    "offsetOrder": "Nondecreasing in every inspected sample; last column ends at file EOF.",
    "columnHeader": "u16 LE vertical brick count (Y indices [0,count)); u16 LE control-byte count; control bytes; body bytes",
    "smallWorldLayerTileSizes": [
      8,
      16,
      32,
      64,
      128,
      256,
      512
    ],
    "smallWorldLayerColumnCounts": [
      1,
      2,
      4,
      8,
      16,
      32,
      64
    ],
    "columnsWidthInLayerSamples": 8,
    "layerUnitInDescriptorUnits": [
      32,
      16,
      8,
      4,
      2,
      1,
      0.5
    ],
    "edgeFixture": {
      "type": "Solid/Fog",
      "layer": 0,
      "tile": 8,
      "columnDimensions": [
        8,
        8
      ],
      "layerSamples": [
        64,
        64
      ],
      "coverageCalculation": "(128+128+64)*32=10240"
    },
    "heightStatistics": {
      "worldLayerPairs": 945,
      "pairsMatchingHeightCeiling": 935,
      "pairsExceedingHeightCeiling": 0,
      "smallWorldLayerPairs": 931,
      "smallPairsMatchingHeightCeiling": 931,
      "importantCaveat": "Earlier statistical hypothesis is now confirmed by column/region consumer code: first u16 is vertical brick-count upper bound; second is control-byte length."
    },
    "brickSampleOrder": "x+8*y+64*z, 512 little-endian u16 samples per 8^3 brick",
    "columnDecoder": "terraform-codec-reference.mjs: parseVoxelColumn/decodeVoxelColumn"
  },
  "mainWorlds": [
    {
      "type": "Solid",
      "size": {
        "x": 10240,
        "y": 2648,
        "z": 10240
      },
      "origin": {
        "x": 0,
        "y": 0,
        "z": 0
      },
      "materialGuidCount": 198,
      "defaultTerrainMaterial": 1,
      "levels": [
        {
          "level": 0,
          "tileSize": {
            "x": 128,
            "y": 128
          },
          "tileCount": {
            "x": 3,
            "y": 3
          },
          "references": 9,
          "uniqueContentHashes": 9,
          "referencedBytesIncludingDuplicateReferences": 549127
        },
        {
          "level": 1,
          "tileSize": {
            "x": 128,
            "y": 128
          },
          "tileCount": {
            "x": 5,
            "y": 5
          },
          "references": 25,
          "uniqueContentHashes": 25,
          "referencedBytesIncludingDuplicateReferences": 2407666
        },
        {
          "level": 2,
          "tileSize": {
            "x": 128,
            "y": 128
          },
          "tileCount": {
            "x": 10,
            "y": 10
          },
          "references": 100,
          "uniqueContentHashes": 100,
          "referencedBytesIncludingDuplicateReferences": 10525617
        },
        {
          "level": 3,
          "tileSize": {
            "x": 128,
            "y": 128
          },
          "tileCount": {
            "x": 20,
            "y": 20
          },
          "references": 400,
          "uniqueContentHashes": 400,
          "referencedBytesIncludingDuplicateReferences": 44401063
        },
        {
          "level": 4,
          "tileSize": {
            "x": 128,
            "y": 128
          },
          "tileCount": {
            "x": 40,
            "y": 40
          },
          "references": 1600,
          "uniqueContentHashes": 1594,
          "referencedBytesIncludingDuplicateReferences": 183468605
        },
        {
          "level": 5,
          "tileSize": {
            "x": 256,
            "y": 256
          },
          "tileCount": {
            "x": 40,
            "y": 40
          },
          "references": 1600,
          "uniqueContentHashes": 1595,
          "referencedBytesIncludingDuplicateReferences": 740836617
        },
        {
          "level": 6,
          "tileSize": {
            "x": 256,
            "y": 256
          },
          "tileCount": {
            "x": 80,
            "y": 80
          },
          "references": 6400,
          "uniqueContentHashes": 6365,
          "referencedBytesIncludingDuplicateReferences": 2957015620
        }
      ]
    },
    {
      "type": "Fog",
      "size": {
        "x": 10240,
        "y": 1956,
        "z": 10240
      },
      "origin": {
        "x": 0,
        "y": 0,
        "z": 0
      },
      "materialGuidCount": 0,
      "defaultTerrainMaterial": 0,
      "levels": [
        {
          "level": 0,
          "tileSize": {
            "x": 128,
            "y": 128
          },
          "tileCount": {
            "x": 3,
            "y": 3
          },
          "references": 9,
          "uniqueContentHashes": 9,
          "referencedBytesIncludingDuplicateReferences": 138427
        },
        {
          "level": 1,
          "tileSize": {
            "x": 128,
            "y": 128
          },
          "tileCount": {
            "x": 5,
            "y": 5
          },
          "references": 25,
          "uniqueContentHashes": 25,
          "referencedBytesIncludingDuplicateReferences": 571843
        },
        {
          "level": 2,
          "tileSize": {
            "x": 128,
            "y": 128
          },
          "tileCount": {
            "x": 10,
            "y": 10
          },
          "references": 100,
          "uniqueContentHashes": 100,
          "referencedBytesIncludingDuplicateReferences": 2389215
        },
        {
          "level": 3,
          "tileSize": {
            "x": 128,
            "y": 128
          },
          "tileCount": {
            "x": 20,
            "y": 20
          },
          "references": 400,
          "uniqueContentHashes": 393,
          "referencedBytesIncludingDuplicateReferences": 10004155
        },
        {
          "level": 4,
          "tileSize": {
            "x": 128,
            "y": 128
          },
          "tileCount": {
            "x": 40,
            "y": 40
          },
          "references": 1600,
          "uniqueContentHashes": 1465,
          "referencedBytesIncludingDuplicateReferences": 41559606
        },
        {
          "level": 5,
          "tileSize": {
            "x": 256,
            "y": 256
          },
          "tileCount": {
            "x": 40,
            "y": 40
          },
          "references": 1600,
          "uniqueContentHashes": 1466,
          "referencedBytesIncludingDuplicateReferences": 172653812
        },
        {
          "level": 6,
          "tileSize": {
            "x": 256,
            "y": 256
          },
          "tileCount": {
            "x": 80,
            "y": 80
          },
          "references": 6400,
          "uniqueContentHashes": 5434,
          "referencedBytesIncludingDuplicateReferences": 703021061
        }
      ]
    }
  ],
  "fixtureTests": {
    "oldRawFixtures": [
      {
        "oldName": "main-world-level0-tile0.bin",
        "oldSha256": "0f605f5f32bcf9da6ae92faf11d8f050e15fc1db952e4fd8b68ca4b02fa42942",
        "newSha256": "0f605f5f32bcf9da6ae92faf11d8f050e15fc1db952e4fd8b68ca4b02fa42942",
        "match": true
      },
      {
        "oldName": "main-world-level6-tile0.bin",
        "oldSha256": "b6f845817d05bc1fc53b96515e5ee2ec374074a0f23c034f6c10ddb734662d3a",
        "newSha256": "b6f845817d05bc1fc53b96515e5ee2ec374074a0f23c034f6c10ddb734662d3a",
        "match": true
      },
      {
        "oldName": "main-fog-level0-tile0.bin",
        "oldSha256": "74d4c0875c925ee3b232184ae42173433d4a265e046287a8a9641f5d9c7075eb",
        "newSha256": "74d4c0875c925ee3b232184ae42173433d4a265e046287a8a9641f5d9c7075eb",
        "match": true
      }
    ],
    "smallColumnExamples": [
      {
        "world": "022bd475-089a-43b8-b49a-2bcf2f0cd84f_75f48072_0.json",
        "bytes": 18,
        "sha256": "74879d7320505cb66abfc187b099ac71c4e1229af5f5b2b34299b062440f76fd",
        "columnHex": "010002001e00f9ffd7ff3f076b"
      },
      {
        "world": "024150fb-87bd-43be-9304-4955c7cd095c_75f48072_0.json",
        "bytes": 17,
        "sha256": "3d984be4f5cfb77ca469a7cce33c6c95013313207d5123c79818fe6e056a5f34",
        "columnHex": "010002001a00f9ffa7aa2aa8"
      },
      {
        "world": "03b9d9ad-d704-46b3-ae97-2dc40e1677fd_75f48072_0.json",
        "bytes": 17,
        "sha256": "765cba7ebfc7855dcc770b9782f648c5b311cdc283923b3846e5a09b1bd95119",
        "columnHex": "010002001a00f9ffa7aa2a8f"
      }
    ],
    "emptyColumnHex": "00000000",
    "smallZeroPayloadColumnHex": "0100010000",
    "normalizedSmallLevel0GeometryGroups": {
      "010002001a00f9ffa7aa2a": 66,
      "010002001e00f9ffd7ff3f07": 59
    }
  },
  "cpuDisplacement": {
    "bytes": 103568,
    "headerBytes": 1024,
    "offsetSlots": 256,
    "nonzeroOffsetSlots": 214,
    "uniqueRecords": 123,
    "validRecords": 123,
    "recordLayout": "float32[3] + u32 width + u32 height + width*height raw bytes; no per-record padding in this blob",
    "squareRecords": true,
    "float0TimesWidthWithin1e6Of2": true,
    "observedWidths": [
      4,
      6,
      8,
      10,
      12,
      16,
      20,
      24,
      30,
      32,
      40,
      50,
      64,
      128
    ],
    "exampleRecord": {
      "offset": 1024,
      "float3": [
        0.03999999910593033,
        0.5,
        0.5
      ],
      "width": 50,
      "height": 50,
      "size": 2520
    },
    "unknown": "Mapping from local packed material IDs to global GUID slots, other rendering consumers and runtime equivalence remain unresolved.",
    "consumer": {
      "address": "0x140e87e50",
      "slot": "2*materialId + (normal.y < approximately 0.707 ? 1 : 0)",
      "condition": "normal.y > approximately -0.707, slot < 256, nonzero offset",
      "parameters": [
        "UV frequency",
        "displacement amplitude",
        "sample bias"
      ],
      "formula": "(nearestRepeatSampleByte/255 - bias) * amplitude; position += displacement * normal",
      "scope": "Collision vertex consumer; not all rendering paths"
    }
  },
  "voxelHashes": [
    {
      "type": "Solid",
      "bytes": 6553600,
      "wordCount32": 1638400,
      "uniqueU32": 1513667,
      "firstU32": 714015869,
      "wordCountIsSquare": 1280,
      "candidateGridRelationship": "1280^2 u32 = (world_size_x/8) * (world_size_z/8) u32; shape and ordering not verified"
    },
    {
      "type": "Fog",
      "bytes": 6553600,
      "wordCount32": 1638400,
      "uniqueU32": 1046307,
      "firstU32": 523818181,
      "wordCountIsSquare": 1280,
      "candidateGridRelationship": "1280^2 u32 = (world_size_x/8) * (world_size_z/8) u32; shape and ordering not verified"
    }
  ],
  "limitations": [
    "No game runtime observations or editing experiments.",
    "Seven-layer selection and cross-LOD stitching remain unresolved; sample spacing uses descriptor units.",
    "Source local material IDs are not yet mapped to all global GUID slots.",
    "Resource 8^3 brick, GPU brick declarations and CPU mesh contexts are different layouts; do not equate them."
  ],
  "codecValidation": {
    "tiles": 149,
    "columns": 6853,
    "logicalBricks": 575330,
    "uniformBricks": 551522,
    "compressedBrickReferences": 23808,
    "compressedBytes": 1181683,
    "uniqueCompressedPayloadsDecoded": 7734,
    "distinctDecodeVoxelSamples": 3959808,
    "logicalVoxelSamples": 294568960,
    "logicalDecodedBytes": 589137920,
    "report": "voxel-codec-validation.json",
    "failures": 0
  }
}
