{
  "kind": "task-yuanrong-postgres-readonly-inventory-audit",
  "generatedAtUTC": "2026-11-06T20:22:30.703939+00:00",
  "sourceCommit": "2c924c562446a9613d66a1476110966daff37688",
  "sourceFiles": {
    "packages/storage-yr/catalog/postgres/schema.sql": {
      "sha256": "15bedbe4dcb871f76a593115d89cc79466fd143e9658059f5bce054ae486ca76",
      "bytes": 2172
    },
    "packages/storage-yr/catalog/postgres/session.go": {
      "sha256": "ca08ed675e63356436e872cef6654cc863d32b6242f9e2682c97f7b869add392",
      "bytes": 12429
    },
    "packages/storage-yr/layout.go": {
      "sha256": "71f752ad247dd7489d84646d60f88520dd11f7e1a9c41c715655cd081b5a35a7",
      "bytes": 3168
    },
    "packages/storage-yr/config.go": {
      "sha256": "2d32b33ddd7533068a9c22311ca615f370e5a137addc78a558537e1f40b3e422",
      "bytes": 4320
    }
  },
  "scope": "Exact storage_yr schema, schema version1, two namespace instances under one owned configured namespace base. Other tasks and unrelated tables are excluded.",
  "initialBuildAttributionRule": "Exact initial build UUID literal occurs in the internal object path; matching is metadata attribution only, not a runtime access trace. Raw UUID and paths are not exported.",
  "snapshotCount": 3,
  "snapshots": [
    {
      "phase": "WRITER_EXITED_READER_READY",
      "beginUTC": "2026-11-06T20:05:03.696634381Z",
      "endUTC": "2026-11-06T20:05:03.73139166Z",
      "rawSHA256": "5bd5d1f9a32db290aee5a76614ed8d68e51aacededa79b14b51c306ca0116157",
      "totals": {
        "generationRows": 34,
        "registeredManifestKeysAllStates": 34,
        "registeredKeyInventoryAllStates": 488,
        "currentPublishedRegisteredManifestKeys": 32,
        "currentPublishedRegisteredKeyInventory": 484,
        "plannedPartRowsAllStates": 454,
        "currentPublishedObjects": 32,
        "currentPublishedPlannedPartRows": 452,
        "currentPublishedObjectSizeMetadataBytes": 1783262367
      },
      "generationStateCounts": {
        "published": 34
      },
      "persistedUnknownGenerations": 0,
      "effectiveUnknownGenerations": 0,
      "initialBuildAttribution": {
        "generationRows": 7,
        "registeredManifestKeysAllStates": 7,
        "registeredKeyInventoryAllStates": 46,
        "currentPublishedRegisteredManifestKeys": 6,
        "currentPublishedRegisteredKeyInventory": 44,
        "plannedPartRowsAllStates": 39,
        "currentPublishedObjects": 6,
        "currentPublishedPlannedPartRows": 38,
        "currentPublishedObjectSizeMetadataBytes": 139882438
      },
      "checks": {
        "readOnlyRepeatableRead": true,
        "postgresFsyncAndFullPageWritesOn": true,
        "allCurrentPointersPublished": true,
        "allManifestKeyStructuresMatch": true,
        "allPlannedPartKeyStructuresMatch": true,
        "allCurrentPublishedPlannedPartTotalsEqualObjectSizeMetadata": true,
        "allCurrentPublishedPartsFollow4MiBLayout": true,
        "allPublishedSHA256MetadataValid": true,
        "writerAbsentBeforeAndAfter": true
      },
      "byNamespaceRole": {
        "build-cache": {
          "generationRows": 3,
          "registeredManifestKeysAllStates": 3,
          "registeredKeyInventoryAllStates": 6,
          "currentPublishedRegisteredManifestKeys": 3,
          "currentPublishedRegisteredKeyInventory": 6,
          "plannedPartRowsAllStates": 3,
          "currentPublishedObjects": 3,
          "currentPublishedPlannedPartRows": 3,
          "currentPublishedObjectSizeMetadataBytes": 192
        },
        "templates": {
          "generationRows": 31,
          "registeredManifestKeysAllStates": 31,
          "registeredKeyInventoryAllStates": 482,
          "currentPublishedRegisteredManifestKeys": 29,
          "currentPublishedRegisteredKeyInventory": 478,
          "plannedPartRowsAllStates": 451,
          "currentPublishedObjects": 29,
          "currentPublishedPlannedPartRows": 449,
          "currentPublishedObjectSizeMetadataBytes": 1783262175
        }
      }
    },
    {
      "phase": "SNAPSHOT_AFTER_COLD_RESTORE",
      "beginUTC": "2026-11-06T20:07:21.606244826Z",
      "endUTC": "2026-11-06T20:07:21.634417913Z",
      "rawSHA256": "968f01d29dbf38eafde719af66fbb3e46b06473bf71be9566cb895ba133020c3",
      "totals": {
        "generationRows": 34,
        "registeredManifestKeysAllStates": 34,
        "registeredKeyInventoryAllStates": 488,
        "currentPublishedRegisteredManifestKeys": 32,
        "currentPublishedRegisteredKeyInventory": 484,
        "plannedPartRowsAllStates": 454,
        "currentPublishedObjects": 32,
        "currentPublishedPlannedPartRows": 452,
        "currentPublishedObjectSizeMetadataBytes": 1783262367
      },
      "generationStateCounts": {
        "published": 34
      },
      "persistedUnknownGenerations": 0,
      "effectiveUnknownGenerations": 0,
      "initialBuildAttribution": {
        "generationRows": 7,
        "registeredManifestKeysAllStates": 7,
        "registeredKeyInventoryAllStates": 46,
        "currentPublishedRegisteredManifestKeys": 6,
        "currentPublishedRegisteredKeyInventory": 44,
        "plannedPartRowsAllStates": 39,
        "currentPublishedObjects": 6,
        "currentPublishedPlannedPartRows": 38,
        "currentPublishedObjectSizeMetadataBytes": 139882438
      },
      "checks": {
        "readOnlyRepeatableRead": true,
        "postgresFsyncAndFullPageWritesOn": true,
        "allCurrentPointersPublished": true,
        "allManifestKeyStructuresMatch": true,
        "allPlannedPartKeyStructuresMatch": true,
        "allCurrentPublishedPlannedPartTotalsEqualObjectSizeMetadata": true,
        "allCurrentPublishedPartsFollow4MiBLayout": true,
        "allPublishedSHA256MetadataValid": true,
        "writerAbsentBeforeAndAfter": true
      },
      "byNamespaceRole": {
        "build-cache": {
          "generationRows": 3,
          "registeredManifestKeysAllStates": 3,
          "registeredKeyInventoryAllStates": 6,
          "currentPublishedRegisteredManifestKeys": 3,
          "currentPublishedRegisteredKeyInventory": 6,
          "plannedPartRowsAllStates": 3,
          "currentPublishedObjects": 3,
          "currentPublishedPlannedPartRows": 3,
          "currentPublishedObjectSizeMetadataBytes": 192
        },
        "templates": {
          "generationRows": 31,
          "registeredManifestKeysAllStates": 31,
          "registeredKeyInventoryAllStates": 482,
          "currentPublishedRegisteredManifestKeys": 29,
          "currentPublishedRegisteredKeyInventory": 478,
          "plannedPartRowsAllStates": 451,
          "currentPublishedObjects": 29,
          "currentPublishedPlannedPartRows": 449,
          "currentPublishedObjectSizeMetadataBytes": 1783262175
        }
      },
      "processWindowSHA256": "439499684349fc8d9ffa29c5dd41032f8a2dd2d47e557b44c65b2710f5e29080",
      "processIdentityChecks": {
        "reader": true,
        "datasystem": true,
        "etcd": true,
        "postgres": true,
        "originalWriterAbsent": true
      },
      "comparedWithPrevious": {
        "generationContentsExactlyUnchanged": true,
        "newGenerations": 0,
        "removedGenerationInventoryRows": 0,
        "newGenerationTotals": {
          "generationRows": 0,
          "registeredManifestKeysAllStates": 0,
          "registeredKeyInventoryAllStates": 0,
          "currentPublishedRegisteredManifestKeys": 0,
          "currentPublishedRegisteredKeyInventory": 0,
          "plannedPartRowsAllStates": 0,
          "currentPublishedObjects": 0,
          "currentPublishedPlannedPartRows": 0,
          "currentPublishedObjectSizeMetadataBytes": 0
        },
        "existingGenerationOriginalFieldsUnchanged": true,
        "newGenerationsByCatalogPathClass": {},
        "currentPublishedObjectsDelta": 0,
        "currentObjectSizeMetadataBytesDelta": 0
      }
    },
    {
      "phase": "SNAPSHOT_AFTER_SIGNED_COPY",
      "beginUTC": "2026-11-06T20:19:06.284834839Z",
      "endUTC": "2026-11-06T20:19:06.320116119Z",
      "rawSHA256": "8a2c583d335ee29d90f948e8cca76932cd6154c3e0a36376848bf80ae2e622f2",
      "totals": {
        "generationRows": 57,
        "registeredManifestKeysAllStates": 57,
        "registeredKeyInventoryAllStates": 604,
        "currentPublishedRegisteredManifestKeys": 54,
        "currentPublishedRegisteredKeyInventory": 598,
        "plannedPartRowsAllStates": 547,
        "currentPublishedObjects": 54,
        "currentPublishedPlannedPartRows": 544,
        "currentPublishedObjectSizeMetadataBytes": 2088732186
      },
      "generationStateCounts": {
        "published": 57
      },
      "persistedUnknownGenerations": 0,
      "effectiveUnknownGenerations": 0,
      "initialBuildAttribution": {
        "generationRows": 7,
        "registeredManifestKeysAllStates": 7,
        "registeredKeyInventoryAllStates": 46,
        "currentPublishedRegisteredManifestKeys": 6,
        "currentPublishedRegisteredKeyInventory": 44,
        "plannedPartRowsAllStates": 39,
        "currentPublishedObjects": 6,
        "currentPublishedPlannedPartRows": 38,
        "currentPublishedObjectSizeMetadataBytes": 139882438
      },
      "checks": {
        "readOnlyRepeatableRead": true,
        "postgresFsyncAndFullPageWritesOn": true,
        "allCurrentPointersPublished": true,
        "allManifestKeyStructuresMatch": true,
        "allPlannedPartKeyStructuresMatch": true,
        "allCurrentPublishedPlannedPartTotalsEqualObjectSizeMetadata": true,
        "allCurrentPublishedPartsFollow4MiBLayout": true,
        "allPublishedSHA256MetadataValid": true,
        "writerAbsentBeforeAndAfter": true
      },
      "byNamespaceRole": {
        "build-cache": {
          "generationRows": 7,
          "registeredManifestKeysAllStates": 7,
          "registeredKeyInventoryAllStates": 14,
          "currentPublishedRegisteredManifestKeys": 7,
          "currentPublishedRegisteredKeyInventory": 14,
          "plannedPartRowsAllStates": 7,
          "currentPublishedObjects": 7,
          "currentPublishedPlannedPartRows": 7,
          "currentPublishedObjectSizeMetadataBytes": 16957
        },
        "templates": {
          "generationRows": 50,
          "registeredManifestKeysAllStates": 50,
          "registeredKeyInventoryAllStates": 590,
          "currentPublishedRegisteredManifestKeys": 47,
          "currentPublishedRegisteredKeyInventory": 584,
          "plannedPartRowsAllStates": 540,
          "currentPublishedObjects": 47,
          "currentPublishedPlannedPartRows": 537,
          "currentPublishedObjectSizeMetadataBytes": 2088715229
        }
      },
      "signedCopyBuildAttribution": {
        "generationRows": 7,
        "registeredManifestKeysAllStates": 7,
        "registeredKeyInventoryAllStates": 46,
        "currentPublishedRegisteredManifestKeys": 6,
        "currentPublishedRegisteredKeyInventory": 44,
        "plannedPartRowsAllStates": 39,
        "currentPublishedObjects": 6,
        "currentPublishedPlannedPartRows": 38,
        "currentPublishedObjectSizeMetadataBytes": 137912176
      },
      "byCatalogPathClass": {
        "layer-files-tar": {
          "generationRows": 1,
          "registeredManifestKeysAllStates": 1,
          "registeredKeyInventoryAllStates": 2,
          "currentPublishedRegisteredManifestKeys": 1,
          "currentPublishedRegisteredKeyInventory": 2,
          "plannedPartRowsAllStates": 1,
          "currentPublishedObjects": 1,
          "currentPublishedPlannedPartRows": 1,
          "currentPublishedObjectSizeMetadataBytes": 16573
        },
        "step-index": {
          "generationRows": 6,
          "registeredManifestKeysAllStates": 6,
          "registeredKeyInventoryAllStates": 12,
          "currentPublishedRegisteredManifestKeys": 6,
          "currentPublishedRegisteredKeyInventory": 12,
          "plannedPartRowsAllStates": 6,
          "currentPublishedObjects": 6,
          "currentPublishedPlannedPartRows": 6,
          "currentPublishedObjectSizeMetadataBytes": 384
        },
        "template-artifact": {
          "generationRows": 50,
          "registeredManifestKeysAllStates": 50,
          "registeredKeyInventoryAllStates": 590,
          "currentPublishedRegisteredManifestKeys": 47,
          "currentPublishedRegisteredKeyInventory": 584,
          "plannedPartRowsAllStates": 540,
          "currentPublishedObjects": 47,
          "currentPublishedPlannedPartRows": 537,
          "currentPublishedObjectSizeMetadataBytes": 2088715229
        }
      },
      "processWindowSHA256": "f3290c2b4f47263c8009a540f71295b53491cae8f5b0585acee3feeee1445135",
      "processIdentityChecks": {
        "reader": true,
        "datasystem": true,
        "etcd": true,
        "postgres": true,
        "originalWriterAbsent": true
      },
      "comparedWithPrevious": {
        "generationContentsExactlyUnchanged": false,
        "newGenerations": 23,
        "removedGenerationInventoryRows": 0,
        "newGenerationTotals": {
          "generationRows": 23,
          "registeredManifestKeysAllStates": 23,
          "registeredKeyInventoryAllStates": 116,
          "currentPublishedRegisteredManifestKeys": 22,
          "currentPublishedRegisteredKeyInventory": 114,
          "plannedPartRowsAllStates": 93,
          "currentPublishedObjects": 22,
          "currentPublishedPlannedPartRows": 92,
          "currentPublishedObjectSizeMetadataBytes": 305469819
        },
        "existingGenerationOriginalFieldsUnchanged": true,
        "newGenerationsByCatalogPathClass": {
          "layer-files-tar": {
            "generationRows": 1,
            "registeredManifestKeysAllStates": 1,
            "registeredKeyInventoryAllStates": 2,
            "currentPublishedRegisteredManifestKeys": 1,
            "currentPublishedRegisteredKeyInventory": 2,
            "plannedPartRowsAllStates": 1,
            "currentPublishedObjects": 1,
            "currentPublishedPlannedPartRows": 1,
            "currentPublishedObjectSizeMetadataBytes": 16573
          },
          "step-index": {
            "generationRows": 3,
            "registeredManifestKeysAllStates": 3,
            "registeredKeyInventoryAllStates": 6,
            "currentPublishedRegisteredManifestKeys": 3,
            "currentPublishedRegisteredKeyInventory": 6,
            "plannedPartRowsAllStates": 3,
            "currentPublishedObjects": 3,
            "currentPublishedPlannedPartRows": 3,
            "currentPublishedObjectSizeMetadataBytes": 192
          },
          "template-artifact": {
            "generationRows": 19,
            "registeredManifestKeysAllStates": 19,
            "registeredKeyInventoryAllStates": 108,
            "currentPublishedRegisteredManifestKeys": 18,
            "currentPublishedRegisteredKeyInventory": 106,
            "plannedPartRowsAllStates": 89,
            "currentPublishedObjects": 18,
            "currentPublishedPlannedPartRows": 88,
            "currentPublishedObjectSizeMetadataBytes": 305453054
          }
        },
        "currentPublishedObjectsDelta": 22,
        "currentObjectSizeMetadataBytesDelta": 305469819
      }
    }
  ],
  "boundary": {
    "plannedRowsAreNativeSDKACKs": false,
    "nativeAckCount": null,
    "directoryMetadataIndependentlyProvesWorkerPayloadPresence": false,
    "objectSizeMetadataIsPhysicalResidentBytes": false,
    "objectSizeMetadataIsGuestLogicalDiskOrRAMSize": false,
    "allTaskObjectsBelongToInitialBuild": false,
    "workerRestartDurabilityOrHAClaim": false,
    "e2eOutcomeClaim": "NONE — actual Guest checks are separate controller evidence",
    "profile": "NONE_L2_CACHE; SDK local cache disabled"
  },
  "stepIndexBoundary": "Source HashToPath maps scope/index/hash to LayerMetadata JSON containing template.build_id; SQL captures key-hash, registered length and publication state only. Index payload values were not read through SDK and are not inferred from length.",
  "firstSnapshotPhaseCorrection": "Raw001 pre-reader label was stale. Runtime controller correlated reader started and READY before capture; corrected phase WRITER_EXITED_READER_READY. Raw bytes preserved.",
  "keyLayout": "kyr1_<SHA256(namespace)>_<SHA256(path)>_<generation>_m and _c_<byte-offset>; no raw keys or private resources are published.",
  "pathClassificationSourceFiles": {
    "packages/orchestrator/internal/template/build/storage/paths/paths.go": {
      "sha256": "b1c1c399db6f392b54970df9f646e8289e7bdf557c07f5c3719f694732f6b440",
      "bytes": 399
    },
    "packages/orchestrator/internal/template/build/storage/cache/cache.go": {
      "sha256": "b97c3cb8fc21ed32b23234188d670dc0637f7f1cff17898ccf81bcaca62dec72",
      "bytes": 3897
    },
    "packages/orchestrator/internal/template/build/commands/copy.go": {
      "sha256": "34d6504111702d6a689b04ffc017fad007b730ee66142dc05fb746cb39401f64",
      "bytes": 6741
    },
    "packages/orchestrator/internal/template/server/upload_layer_files_template.go": {
      "sha256": "bb1520e3cf8c065f23bff5cf1fbf119931687f50d857c79c65ce80200e41e21a",
      "bytes": 1349
    }
  },
  "additiveCollectorEvidenceSHA256": "85771f0172cf40d8d0807eefdb733053a5e256ef102d4ec7c615dbfb4405c258",
  "fileCacheKeyHashBinding": {
    "objectPathSHA256": "06fbc8ccc61ed76d062988411f20f00a5ecbd8ca6b3760b8353224a3438d4f16",
    "registeredSizeMetadataBytes": 16573,
    "signedResultLogicalKeySHA256": "06fbc8ccc61ed76d062988411f20f00a5ecbd8ca6b3760b8353224a3438d4f16",
    "signedResultLogicalKeyHashMatch": true,
    "uploadRequestSHA256": "f8da060e32ed1097ddce2d738db23c43bcd231443bd3620711cdb8d35095cba1",
    "catalogWholeObjectSHA256Metadata": "f8da060e32ed1097ddce2d738db23c43bcd231443bd3620711cdb8d35095cba1",
    "requestSizeAndSHA256MatchCatalogMetadata": true,
    "bindingSource": "Sole runtime controller extracted safe fields from actual signed-copy.result.json; parent independently validates raw runtime evidence. No signed URL, signature, actual tenant path or private origin included.",
    "guestConsumerBytes": 16421,
    "guestConsumerSHA256": "999fa77a62301303e72758d15d0d183e92db6d130b0ce7d39d9519e766d94efb",
    "controllerReportedSignedAssertionsPassed": 5,
    "workerPayloadPresenceIndependentlyProbedBySQLCollector": false
  },
  "separateControllerRuntimeArtifact": {
    "rawSHA256": "e8628e41ed55aaa8c5eacd7b0195d61c2d845ef8b8668c11b181edaa277bea78",
    "reportedStatus": "PASS",
    "assertions": {
      "fileSHA256": true,
      "fileBytes": true,
      "memoryFingerprint": true,
      "memoryBufferDigest": true,
      "guestPID": true,
      "guestStartTicks": true,
      "guestBootID": true,
      "counterRetained": true,
      "counterAdvances": true,
      "newSandboxID": true
    },
    "passedAssertions": 10,
    "collectedBySQLInventory": false,
    "interpretation": "Separate Guest cold-restore record; this SQL collector makes no full E2E, signed-COPY, worker-restart persistence or HA claim."
  }
}
