@plasius/gpu-shader 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- import { ay as ShaderCompileUnitManifest, j as ShaderResult, ax as ShaderCompileUnitInventory, b6 as StableWebGpuMatrixManifest, aH as ShaderQualificationBundleManifest, aL as ShaderQualificationFixtureManifest, S as Sha256Hex, aQ as ShaderQualificationPreflightManifest, au as ShaderCellEvidence, aX as ShaderRunnerCellPreflightEvidence, aE as ShaderNonQualifyingWorkflowDiagnostic, a$ as ShaderValidationEvidence, aI as ShaderQualificationCandidateSubject, aZ as ShaderTrustedWorkflowProvenance, b0 as ShaderValidationEvidenceAttestationRef } from './contracts-C4eel8MT.cjs';
1
+ import { ay as ShaderCompileUnitManifest, j as ShaderResult, ax as ShaderCompileUnitInventory, b6 as StableWebGpuMatrixManifest, aH as ShaderQualificationBundleManifest, aL as ShaderQualificationFixtureManifest, S as Sha256Hex, aQ as ShaderQualificationPreflightManifest, au as ShaderCellEvidence, aX as ShaderRunnerCellPreflightEvidence, aE as ShaderNonQualifyingWorkflowDiagnostic, a$ as ShaderValidationEvidence, aI as ShaderQualificationCandidateSubject, aZ as ShaderTrustedWorkflowProvenance, b0 as ShaderValidationEvidenceAttestationRef } from './contracts-B49AUejk.cjs';
2
2
 
3
3
  /** Identity helper that makes compile-unit declarations readonly at the call site. */
4
4
  declare function defineShaderCompileUnit<const T extends ShaderCompileUnitManifest>(unit: T): T;
package/dist/testing.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { ay as ShaderCompileUnitManifest, j as ShaderResult, ax as ShaderCompileUnitInventory, b6 as StableWebGpuMatrixManifest, aH as ShaderQualificationBundleManifest, aL as ShaderQualificationFixtureManifest, S as Sha256Hex, aQ as ShaderQualificationPreflightManifest, au as ShaderCellEvidence, aX as ShaderRunnerCellPreflightEvidence, aE as ShaderNonQualifyingWorkflowDiagnostic, a$ as ShaderValidationEvidence, aI as ShaderQualificationCandidateSubject, aZ as ShaderTrustedWorkflowProvenance, b0 as ShaderValidationEvidenceAttestationRef } from './contracts-C4eel8MT.js';
1
+ import { ay as ShaderCompileUnitManifest, j as ShaderResult, ax as ShaderCompileUnitInventory, b6 as StableWebGpuMatrixManifest, aH as ShaderQualificationBundleManifest, aL as ShaderQualificationFixtureManifest, S as Sha256Hex, aQ as ShaderQualificationPreflightManifest, au as ShaderCellEvidence, aX as ShaderRunnerCellPreflightEvidence, aE as ShaderNonQualifyingWorkflowDiagnostic, a$ as ShaderValidationEvidence, aI as ShaderQualificationCandidateSubject, aZ as ShaderTrustedWorkflowProvenance, b0 as ShaderValidationEvidenceAttestationRef } from './contracts-B49AUejk.js';
2
2
 
3
3
  /** Identity helper that makes compile-unit declarations readonly at the call site. */
4
4
  declare function defineShaderCompileUnit<const T extends ShaderCompileUnitManifest>(unit: T): T;
package/dist/testing.js CHANGED
@@ -8,7 +8,7 @@ var SUPPORTED_STABLE_WEBGPU_MATRIX_POLICIES = [
8
8
  Object.freeze({
9
9
  matrixId: "stable-webgpu",
10
10
  matrixVersion: "2026-07-13",
11
- matrixSha256: "9b47ff8162b055d49e38c4fe90b9074992ab8c9e1125926e936f8122e6119fd8"
11
+ matrixSha256: "4620eca44fd03004ee7650cfe9fcf42934493611a5097da5525f71578980b016"
12
12
  })
13
13
  ];
14
14
  Object.freeze(SUPPORTED_STABLE_WEBGPU_MATRIX_POLICIES);
@@ -502,6 +502,13 @@ function keys(value, expected) {
502
502
  const set = new Set(expected);
503
503
  return Object.keys(value).every((key) => set.has(key)) && expected.every((key) => key in value);
504
504
  }
505
+ function canonicalEqual(left, right) {
506
+ try {
507
+ return canonicalizeGpuContract(left) === canonicalizeGpuContract(right);
508
+ } catch {
509
+ return false;
510
+ }
511
+ }
505
512
  var browserNames = /* @__PURE__ */ new Set(["chromium", "chrome", "edge", "firefox", "safari"]);
506
513
  var osNames = /* @__PURE__ */ new Set(["ubuntu", "windows", "macos", "chromeos", "android", "ios", "ipados", "visionos"]);
507
514
  var backends = /* @__PURE__ */ new Set(["swiftshader", "d3d12", "metal", "vulkan"]);
@@ -595,7 +602,9 @@ function validateStableWebGpuMatrix(value) {
595
602
  const kind = String(requirement?.kind);
596
603
  const validRequirement = requirement && (kind === "exact" ? keys(requirement, ["kind", "value"]) && typeof requirement.value === "string" && /^\d+(?:\.\d+)*$/u.test(requirement.value) : kind === "major" || kind === "minimum-major" ? keys(requirement, ["kind", "value"]) && Number.isSafeInteger(requirement.value) && Number(requirement.value) > 0 : kind === "stable-channel" && keys(requirement, ["kind", "channel"]) && requirement.channel === "stable");
597
604
  if (!validRequirement) diagnostics.push(issue2("OS version requirement is invalid.", `${path2}.os.versionRequirement`));
598
- if (typeof cell.cellId === "string" && JSON.stringify(requirement) !== JSON.stringify(VERSION_REQUIREMENTS.get(cell.cellId))) diagnostics.push(issue2("OS version requirement differs from the stable baseline.", `${path2}.os.versionRequirement`));
605
+ if (typeof cell.cellId === "string" && !canonicalEqual(requirement, VERSION_REQUIREMENTS.get(cell.cellId))) {
606
+ diagnostics.push(issue2("OS version requirement differs from the stable baseline.", `${path2}.os.versionRequirement`));
607
+ }
599
608
  }
600
609
  if (!adapter || !keys(adapter, ["kind", "vendor", "family", "backend"]) || !["software", "physical"].includes(String(adapter.kind)) || !backends.has(String(adapter.backend))) diagnostics.push(issue2("Adapter descriptor is invalid.", `${path2}.adapter`));
601
610
  if (!adapterAutomation || !keys(adapterAutomation, ["kind"]) || !automation.has(String(adapterAutomation.kind))) diagnostics.push(issue2("Automation descriptor is invalid.", `${path2}.automation`));
@@ -1360,12 +1369,12 @@ function parseQualificationExecutionProducer(value, path2 = "producer") {
1360
1369
  return input;
1361
1370
  }
1362
1371
  function assertProducerMatchesPreflight(producer, provenance, cell, path2, expectedJob) {
1363
- if (producer.repository !== provenance.repository || !canonicalEqual(producer.commit, provenance.commit) || producer.ref !== provenance.ref || producer.runId !== provenance.runId || producer.runAttempt !== provenance.runAttempt || producer.trustedWorkflowRepository !== "Plasius-LTD/gpu-shader" || producer.trustedWorkflowRef !== provenance.workflowRef || !canonicalEqual(producer.trustedWorkflowSha, provenance.workflowSha) || producer.job !== expectedJob) throw new TypeError(`${path2} does not match the exact qualification workflow run or subject.`);
1372
+ if (producer.repository !== provenance.repository || !canonicalEqual2(producer.commit, provenance.commit) || producer.ref !== provenance.ref || producer.runId !== provenance.runId || producer.runAttempt !== provenance.runAttempt || producer.trustedWorkflowRepository !== "Plasius-LTD/gpu-shader" || producer.trustedWorkflowRef !== provenance.workflowRef || !canonicalEqual2(producer.trustedWorkflowSha, provenance.workflowSha) || producer.job !== expectedJob) throw new TypeError(`${path2} does not match the exact qualification workflow run or subject.`);
1364
1373
  if (expectedJob === "swiftshader" && producer.runner.environment !== "github-hosted") throw new TypeError(`${path2} must identify the hosted SwiftShader job.`);
1365
1374
  if (expectedJob === "physical" && producer.runner.environment === "github-hosted") throw new TypeError(`${path2} cannot use a hosted runner for a physical execution cell.`);
1366
1375
  if (expectedJob === "physical-runner-preflight" && producer.runner.environment !== "github-hosted") throw new TypeError(`${path2} must identify its hosted orchestration job truthfully.`);
1367
1376
  }
1368
- function canonicalEqual(left, right) {
1377
+ function canonicalEqual2(left, right) {
1369
1378
  return canonicalizeGpuContract(left) === canonicalizeGpuContract(right);
1370
1379
  }
1371
1380
  function foldRunnerLabel(value) {
@@ -1401,13 +1410,13 @@ async function createQualificationPreflight(input) {
1401
1410
  } catch (cause) {
1402
1411
  throw new TypeError("Selected matrix artifact is not UTF-8 JSON.", { cause });
1403
1412
  }
1404
- if (!canonicalEqual(parsedMatrix, input.matrix)) throw new TypeError("Selected matrix artifact bytes differ from the supplied matrix value.");
1413
+ if (!canonicalEqual2(parsedMatrix, input.matrix)) throw new TypeError("Selected matrix artifact bytes differ from the supplied matrix value.");
1405
1414
  const actualMatrixSha256 = await computeSha256(input.matrixBytes);
1406
1415
  if (actualMatrixSha256 !== input.matrixSha256) throw new TypeError("Selected matrix digest is not derived from the exact matrix manifest.");
1407
1416
  const inventorySha256 = await computeQualificationInventorySha256(input.bundle);
1408
1417
  if (inventorySha256 !== input.bundle.subject.compileUnitInventorySha256) throw new TypeError("Bundle subject contains a stale compile-unit inventory digest.");
1409
1418
  const requiredCells = input.matrix.cells.map((cell) => cell.cellId);
1410
- if (!canonicalEqual(input.bundle.subject.requiredCellIds, requiredCells)) throw new TypeError("Bundle subject cell set differs from the selected matrix.");
1419
+ if (!canonicalEqual2(input.bundle.subject.requiredCellIds, requiredCells)) throw new TypeError("Bundle subject cell set differs from the selected matrix.");
1411
1420
  const subjectBindingSha256 = await computeQualificationSubjectBinding({
1412
1421
  subject: input.bundle.subject,
1413
1422
  dataBundleSha256: input.dataBundleSha256,
@@ -1467,7 +1476,7 @@ function assertResult(value, path2, cell, passingRequired, timeBounds, expectedR
1467
1476
  const labels = array2(runner.labels, `${path2}.observed.runner.labels`).map((item, index) => token3(item, `${path2}.observed.runner.labels[${index}]`));
1468
1477
  const normalizedLabels = labels.map(foldRunnerLabel);
1469
1478
  if (new Set(normalizedLabels).size !== normalizedLabels.length || cell.runnerLabels.some((label) => !normalizedLabels.includes(foldRunnerLabel(label)))) throw new TypeError(`${path2} actual runner labels do not contain the matrix route (ASCII case-insensitive).`);
1470
- if (expectedRunner && (runnerId !== expectedRunner.name || !canonicalEqual(labels, expectedRunner.labels))) throw new TypeError(`${path2} runner identity/labels differ from the exact runner API preflight observation.`);
1479
+ if (expectedRunner && (runnerId !== expectedRunner.name || !canonicalEqual2(labels, expectedRunner.labels))) throw new TypeError(`${path2} runner identity/labels differ from the exact runner API preflight observation.`);
1471
1480
  const os = object5(observed.os, `${path2}.observed.os`);
1472
1481
  exact3(os, ["name", "version", "channel", "architecture"], `${path2}.observed.os`);
1473
1482
  const osVersion = token3(os.version, `${path2}.observed.os.version`);
@@ -1526,15 +1535,15 @@ function assertCellEvidence(value, cell, matrix, preflight, harness, adapterHarn
1526
1535
  if (input.contractVersion !== SHADER_VALIDATION_EVIDENCE_VERSION || input.qualificationId !== preflight.qualificationId || input.matrixId !== matrix.matrixId || input.matrixVersion !== matrix.version || input.cellId !== cell.cellId || input.matrixSha256 !== preflight.matrixSha256 || input.dataBundleSha256 !== preflight.dataBundleSha256 || input.compileUnitInventorySha256 !== preflight.compileUnitInventorySha256 || input.subjectBindingSha256 !== preflight.subjectBindingSha256) throw new TypeError(`Cell evidence ${cell.cellId} has stale subject/matrix identities.`);
1527
1536
  const actualHarness = object5(input.harness, `cellEvidence.${cell.cellId}.harness`);
1528
1537
  exact3(actualHarness, ["id", "version", "sha256"], `cellEvidence.${cell.cellId}.harness`);
1529
- if (!canonicalEqual(actualHarness, harness)) throw new TypeError(`Cell evidence ${cell.cellId} used a different harness.`);
1538
+ if (!canonicalEqual2(actualHarness, harness)) throw new TypeError(`Cell evidence ${cell.cellId} used a different harness.`);
1530
1539
  const automation2 = object5(input.automation, `cellEvidence.${cell.cellId}.automation`);
1531
1540
  exact3(automation2, ["kind", "driver", "version", "sha256"], `cellEvidence.${cell.cellId}.automation`);
1532
1541
  if (automation2.kind !== cell.automation.kind) throw new TypeError(`Cell evidence ${cell.cellId} used the wrong automation route.`);
1533
1542
  token3(automation2.driver, `cellEvidence.${cell.cellId}.automation.driver`);
1534
1543
  token3(automation2.version, `cellEvidence.${cell.cellId}.automation.version`);
1535
1544
  sha2(automation2.sha256, `cellEvidence.${cell.cellId}.automation.sha256`);
1536
- if (adapterHarness !== null && !canonicalEqual({ id: automation2.driver, version: automation2.version, sha256: automation2.sha256 }, adapterHarness)) throw new TypeError(`Cell evidence ${cell.cellId} automation differs from its independently verified preflight adapter harness.`);
1537
- if (!canonicalEqual(parseTrustedWorkflowProvenance(input.qualificationPreflightProvenance), preflight.provenance)) throw new TypeError(`Cell evidence ${cell.cellId} changed trusted prepare provenance.`);
1545
+ if (adapterHarness !== null && !canonicalEqual2({ id: automation2.driver, version: automation2.version, sha256: automation2.sha256 }, adapterHarness)) throw new TypeError(`Cell evidence ${cell.cellId} automation differs from its independently verified preflight adapter harness.`);
1546
+ if (!canonicalEqual2(parseTrustedWorkflowProvenance(input.qualificationPreflightProvenance), preflight.provenance)) throw new TypeError(`Cell evidence ${cell.cellId} changed trusted prepare provenance.`);
1538
1547
  const producer = parseQualificationExecutionProducer(input.producer, `cellEvidence.${cell.cellId}.producer`);
1539
1548
  assertProducerMatchesPreflight(producer, preflight.provenance, cell, `cellEvidence.${cell.cellId}.producer`, cell.adapter.kind === "software" ? "swiftshader" : "physical");
1540
1549
  const results = array2(input.results, `cellEvidence.${cell.cellId}.results`);
@@ -1576,7 +1585,7 @@ async function aggregateShaderValidationEvidence(input) {
1576
1585
  } catch (cause) {
1577
1586
  throw new TypeError(`${label} bytes are not UTF-8 JSON.`, { cause });
1578
1587
  }
1579
- if (!canonicalEqual(parsed, artifact.value)) throw new TypeError(`${label} parsed value differs from its exact bytes.`);
1588
+ if (!canonicalEqual2(parsed, artifact.value)) throw new TypeError(`${label} parsed value differs from its exact bytes.`);
1580
1589
  };
1581
1590
  await verifyArtifact(input.preflight, "Qualification preflight");
1582
1591
  for (const artifact of input.cellEvidence) await verifyArtifact(artifact, "Cell evidence");
@@ -1596,14 +1605,14 @@ async function aggregateShaderValidationEvidence(input) {
1596
1605
  const sourceBlob = object5(preflight.sourceBlob, "Qualification preflight.sourceBlob");
1597
1606
  exact3(sourceBlob, ["host", "versionId", "uri"], "Qualification preflight.sourceBlob");
1598
1607
  const normalizedSource = immutableBlobUri(token3(sourceBlob.uri, "Qualification preflight.sourceBlob.uri", 2048));
1599
- if (!canonicalEqual(sourceBlob, normalizedSource)) throw new TypeError("Qualification preflight source Blob claims are stale.");
1608
+ if (!canonicalEqual2(sourceBlob, normalizedSource)) throw new TypeError("Qualification preflight source Blob claims are stale.");
1600
1609
  let parsedMatrix;
1601
1610
  try {
1602
1611
  parsedMatrix = JSON.parse(new TextDecoder("utf-8", { fatal: true }).decode(input.matrixBytes));
1603
1612
  } catch (cause) {
1604
1613
  throw new TypeError("Matrix artifact is not UTF-8 JSON.", { cause });
1605
1614
  }
1606
- if (!canonicalEqual(parsedMatrix, input.matrix)) throw new TypeError("Matrix artifact bytes differ from the supplied matrix value.");
1615
+ if (!canonicalEqual2(parsedMatrix, input.matrix)) throw new TypeError("Matrix artifact bytes differ from the supplied matrix value.");
1607
1616
  const actualMatrixSha256 = await computeSha256(input.matrixBytes);
1608
1617
  if (preflight.matrixSha256 !== actualMatrixSha256) throw new TypeError("Qualification preflight matrix artifact digest is stale.");
1609
1618
  const actualInventorySha256 = await computeQualificationInventorySha256(input.bundle);
@@ -1647,7 +1656,7 @@ async function aggregateShaderValidationEvidence(input) {
1647
1656
  exact3(raw, ["contractVersion", "kind", "qualificationId", "cellId", "status", "matrixSha256", "runnerLabels", "matchedRunners", "adapterHarness", "qualificationPreflightProvenance", "producer"], `runnerPreflight.${cell.cellId}`);
1648
1657
  const producer = parseQualificationExecutionProducer(value2.producer, `runnerPreflight.${cell.cellId}.producer`);
1649
1658
  assertProducerMatchesPreflight(producer, preflight.provenance, cell, `runnerPreflight.${cell.cellId}.producer`, cell.adapter.kind === "software" ? "swiftshader" : "physical-runner-preflight");
1650
- if (value2.contractVersion !== SHADER_VALIDATION_EVIDENCE_VERSION || value2.kind !== "shader-runner-cell-preflight-evidence" || value2.qualificationId !== preflight.qualificationId || value2.cellId !== cell.cellId || value2.matrixSha256 !== preflight.matrixSha256 || !canonicalEqual(value2.runnerLabels, cell.runnerLabels) || !canonicalEqual(value2.qualificationPreflightProvenance, preflight.provenance)) throw new TypeError(`Runner preflight ${cell.cellId} is stale or inconsistent.`);
1659
+ if (value2.contractVersion !== SHADER_VALIDATION_EVIDENCE_VERSION || value2.kind !== "shader-runner-cell-preflight-evidence" || value2.qualificationId !== preflight.qualificationId || value2.cellId !== cell.cellId || value2.matrixSha256 !== preflight.matrixSha256 || !canonicalEqual2(value2.runnerLabels, cell.runnerLabels) || !canonicalEqual2(value2.qualificationPreflightProvenance, preflight.provenance)) throw new TypeError(`Runner preflight ${cell.cellId} is stale or inconsistent.`);
1651
1660
  const requestedLabels = cell.runnerLabels.map(foldRunnerLabel);
1652
1661
  const matched = array2(value2.matchedRunners, `runnerPreflight.${cell.cellId}.matchedRunners`).map((item, index) => {
1653
1662
  const label = `runnerPreflight.${cell.cellId}.matchedRunners[${index}]`;
@@ -1686,7 +1695,7 @@ async function aggregateShaderValidationEvidence(input) {
1686
1695
  const producer = parseQualificationExecutionProducer(value2.producer, `workflowDiagnostic.${cell.cellId}.producer`);
1687
1696
  assertProducerMatchesPreflight(producer, preflight.provenance, cell, `workflowDiagnostic.${cell.cellId}.producer`, cell.adapter.kind === "software" ? "swiftshader" : "physical");
1688
1697
  if (!runner.value.matchedRunners.some((item) => item.name === producer.runner.name)) throw new TypeError(`Workflow diagnostic ${cell.cellId} was not produced by a runner matched in preflight.`);
1689
- if (value2.contractVersion !== SHADER_VALIDATION_EVIDENCE_VERSION || value2.kind !== "non-qualifying-workflow-diagnostic" || value2.qualificationId !== preflight.qualificationId || value2.cellId !== cell.cellId || value2.matrixSha256 !== preflight.matrixSha256 || !canonicalEqual(value2.qualificationPreflightProvenance, preflight.provenance)) throw new TypeError(`Workflow diagnostic ${cell.cellId} is stale or inconsistent.`);
1698
+ if (value2.contractVersion !== SHADER_VALIDATION_EVIDENCE_VERSION || value2.kind !== "non-qualifying-workflow-diagnostic" || value2.qualificationId !== preflight.qualificationId || value2.cellId !== cell.cellId || value2.matrixSha256 !== preflight.matrixSha256 || !canonicalEqual2(value2.qualificationPreflightProvenance, preflight.provenance)) throw new TypeError(`Workflow diagnostic ${cell.cellId} is stale or inconsistent.`);
1690
1699
  token3(value2.message, `workflowDiagnostic.${cell.cellId}.message`, 4096);
1691
1700
  const status2 = value2.status === "timeout" ? "timeout" : "failed";
1692
1701
  for (const unit of units) results.push(syntheticResult(unit, cell, status2, value2.message, now));
@@ -1735,7 +1744,7 @@ async function validateShaderValidationEvidence(input) {
1735
1744
  } catch (cause) {
1736
1745
  throw new TypeError("Matrix artifact is not UTF-8 JSON.", { cause });
1737
1746
  }
1738
- if (!canonicalEqual(parsedMatrix, input.matrix)) throw new TypeError("Matrix artifact bytes differ from the supplied matrix value.");
1747
+ if (!canonicalEqual2(parsedMatrix, input.matrix)) throw new TypeError("Matrix artifact bytes differ from the supplied matrix value.");
1739
1748
  const matrixSha256 = await computeSha256(input.matrixBytes);
1740
1749
  const inventorySha256 = await computeQualificationInventorySha256(input.bundle);
1741
1750
  if (inventorySha256 !== input.bundle.subject.compileUnitInventorySha256) throw new TypeError("Bundle subject inventory digest is stale.");
@@ -1743,7 +1752,7 @@ async function validateShaderValidationEvidence(input) {
1743
1752
  const expectedSubjectKeys = [...Object.keys(input.bundle.subject), "dataBundleSha256"];
1744
1753
  exact3(subject, expectedSubjectKeys, "evidence.subject");
1745
1754
  const candidateSubject = Object.fromEntries(Object.entries(subject).filter(([key]) => key !== "dataBundleSha256"));
1746
- if (!canonicalEqual(candidateSubject, input.bundle.subject)) throw new TypeError("Evidence candidate subject differs from bundle.");
1755
+ if (!canonicalEqual2(candidateSubject, input.bundle.subject)) throw new TypeError("Evidence candidate subject differs from bundle.");
1747
1756
  const dataBundleSha256 = sha2(subject.dataBundleSha256, "evidence.subject.dataBundleSha256");
1748
1757
  if (input.dataBundleSha256 && input.dataBundleSha256 !== dataBundleSha256) throw new TypeError("Evidence data bundle digest differs from the exact archive.");
1749
1758
  if (subject.compileUnitInventorySha256 !== inventorySha256) throw new TypeError("Evidence compile-unit inventory digest is stale.");
@@ -1801,11 +1810,11 @@ async function validateShaderValidationEvidence(input) {
1801
1810
  const sourceArtifactSha256 = sha2(run.sourceArtifactSha256, `${path2}.sourceArtifactSha256`);
1802
1811
  if (/^0{64}$/u.test(sourceArtifactSha256)) throw new TypeError(`${path2}.sourceArtifactSha256 cannot be a placeholder.`);
1803
1812
  const resultsSha256 = sha2(run.resultsSha256, `${path2}.resultsSha256`);
1804
- if (!canonicalEqual(parseTrustedWorkflowProvenance(run.qualificationPreflightProvenance, `${path2}.qualificationPreflightProvenance`), preflightProvenance)) throw new TypeError(`${path2} changed qualification preflight provenance.`);
1813
+ if (!canonicalEqual2(parseTrustedWorkflowProvenance(run.qualificationPreflightProvenance, `${path2}.qualificationPreflightProvenance`), preflightProvenance)) throw new TypeError(`${path2} changed qualification preflight provenance.`);
1805
1814
  const producer = parseQualificationExecutionProducer(run.producer, `${path2}.producer`);
1806
1815
  const expectedJob = run.source === "runner-preflight" ? cell.adapter.kind === "software" ? "swiftshader" : "physical-runner-preflight" : cell.adapter.kind === "software" ? "swiftshader" : "physical";
1807
1816
  assertProducerMatchesPreflight(producer, preflightProvenance, cell, `${path2}.producer`, expectedJob);
1808
- if (!canonicalEqual(run.harness, harness)) throw new TypeError(`${path2}.harness differs.`);
1817
+ if (!canonicalEqual2(run.harness, harness)) throw new TypeError(`${path2}.harness differs.`);
1809
1818
  if (run.source === "cell-evidence") {
1810
1819
  const automation2 = object5(run.automation, `${path2}.automation`);
1811
1820
  exact3(automation2, ["kind", "driver", "version", "sha256"], `${path2}.automation`);