{
  "format": "plaincompile.evidence-bundle",
  "version": 1,
  "outcome": "passed_within_tested_scope",
  "sourceRevision": {
    "commit": "644d4fef2247fba2de9c616326aa0626b517c12c",
    "branch": "resident/unified",
    "dirty": false
  },
  "projectSha256": "1c3f0e4f6d32a512807bdc6b30d5a90307b7653c456db692b32ffb18f0a1cc6d",
  "contract": {
    "version": 1,
    "target": "windows-x64",
    "requirements": [
      {
        "id": "create-invoice",
        "verification": "software",
        "statement": "Creating an invoice computes subtotal, 8.1% VAT, and total and saves the draft locally."
      },
      {
        "id": "persist-reload",
        "verification": "software",
        "statement": "Saved invoices persist across application restart."
      },
      {
        "id": "negative-qty",
        "verification": "software",
        "heldOut": true,
        "statement": "Negative item quantities are rejected without corrupting existing totals."
      },
      {
        "id": "thermal-printer",
        "verification": "hardware",
        "statement": "Print receipt to a physical ESC/POS thermal receipt printer over USB."
      }
    ],
    "contractSha256": "b7017bcf6a10d5066417efbd7a22d786f78c9ae9b729b37da71e24fb6cabcfd8",
    "baselineLocked": true,
    "baselineInSync": true
  },
  "environment": {
    "verifier": "Clean Windows x64 VM (.NET Framework 4.8, C# 5, NSIS installer, offline UI automation)",
    "witness": "Separate sealed witness container (Ed25519 hardware-free artifact & challenge attestation)",
    "network": "disabled"
  },
  "authenticatedInputs": {
    "projectJson": "{\"format\":\"plaincompile.project-materials\",\"version\":1,\"target\":\"windows-x64\",\"files\":[{\"path\":\"plaincompile.contract.json\",\"encoding\":\"utf8\",\"content\":\"{\\\"version\\\":1,\\\"target\\\":\\\"windows-x64\\\",\\\"requirements\\\":[{\\\"id\\\":\\\"create-invoice\\\",\\\"verification\\\":\\\"software\\\",\\\"statement\\\":\\\"Creating an invoice computes subtotal, 8.1% VAT, and total and saves the draft locally.\\\"},{\\\"id\\\":\\\"persist-reload\\\",\\\"verification\\\":\\\"software\\\",\\\"statement\\\":\\\"Saved invoices persist across application restart.\\\"},{\\\"id\\\":\\\"negative-qty\\\",\\\"verification\\\":\\\"software\\\",\\\"heldOut\\\":true,\\\"statement\\\":\\\"Negative item quantities are rejected without corrupting existing totals.\\\"},{\\\"id\\\":\\\"thermal-printer\\\",\\\"verification\\\":\\\"hardware\\\",\\\"statement\\\":\\\"Print receipt to a physical ESC/POS thermal receipt printer over USB.\\\"}],\\\"contractSha256\\\":\\\"b7017bcf6a10d5066417efbd7a22d786f78c9ae9b729b37da71e24fb6cabcfd8\\\",\\\"baselineLocked\\\":true,\\\"baselineInSync\\\":true}\"},{\"path\":\"plaincompile.source-revision.json\",\"encoding\":\"utf8\",\"content\":\"{\\\"commit\\\":\\\"644d4fef2247fba2de9c616326aa0626b517c12c\\\",\\\"branch\\\":\\\"resident/unified\\\",\\\"dirty\\\":false}\"},{\"path\":\"Program.cs\",\"encoding\":\"utf8\",\"content\":\"namespace InvoiceTool{static class Program{static void Main(){}}}\"}],\"materials\":[],\"build\":[{\"program\":\"powershell.exe\",\"args\":[\"-NoProfile\",\"-File\",\"build.ps1\"],\"cwd\":\".\",\"timeoutMs\":120000}],\"verify\":[{\"program\":\"powershell.exe\",\"args\":[\"-NoProfile\",\"-File\",\"verify.ps1\"],\"cwd\":\".\",\"timeoutMs\":120000}],\"package\":[{\"program\":\"powershell.exe\",\"args\":[\"-NoProfile\",\"-File\",\"package.ps1\"],\"cwd\":\".\",\"timeoutMs\":120000}],\"outputs\":[{\"path\":\"out/InvoiceTool-Setup.exe\",\"role\":\"installer\"},{\"path\":\"out/acceptance.json\",\"role\":\"acceptance-report\"}]}"
  },
  "authenticatedArtifacts": {
    "out/acceptance.json": "{\n  \"format\": \"plaincompile.acceptance-report\",\n  \"version\": 1,\n  \"projectId\": \"11111111111111111111111111111111\",\n  \"revision\": 3,\n  \"passed\": 3,\n  \"failed\": 0,\n  \"unverified\": 1,\n  \"checks\": [\n    {\n      \"id\": \"create-invoice\",\n      \"title\": \"Computes VAT invoice subtotal and saves locally\",\n      \"status\": \"passed\",\n      \"durationMs\": 412\n    },\n    {\n      \"id\": \"persist-reload\",\n      \"title\": \"Reloads saved invoices after app restart\",\n      \"status\": \"passed\",\n      \"durationMs\": 530\n    },\n    {\n      \"id\": \"negative-qty\",\n      \"title\": \"Held-out validation check\",\n      \"heldOut\": true,\n      \"status\": \"passed\",\n      \"durationMs\": 295\n    },\n    {\n      \"id\": \"thermal-printer\",\n      \"title\": \"Physical USB thermal printer receipt output\",\n      \"status\": \"unverified\",\n      \"reason\": \"Physical USB hardware is unavailable in the disposable clean Windows VM; requires manual testing on customer hardware.\"\n    }\n  ]\n}\n"
  },
  "artifacts": [
    {
      "path": "out/InvoiceTool-Setup.exe",
      "role": "installer",
      "sha256": "1eae1286417368b2f192192fad6ac2c4d530454c18aff4b84f44ddabf4a3092c",
      "bytes": 56,
      "format": "pe-x64"
    },
    {
      "path": "out/acceptance.json",
      "role": "acceptance-report",
      "sha256": "52345e1217853458f3259d13eaaed7d5bc36a6c771029a01f60ba733b5ffb778",
      "bytes": 942,
      "format": "file"
    }
  ],
  "acceptance": {
    "format": "plaincompile.acceptance-report",
    "version": 1,
    "projectId": "11111111111111111111111111111111",
    "revision": 3,
    "passed": 3,
    "failed": 0,
    "unverified": 1,
    "checks": [
      {
        "id": "create-invoice",
        "title": "Computes VAT invoice subtotal and saves locally",
        "status": "passed",
        "durationMs": 412
      },
      {
        "id": "persist-reload",
        "title": "Reloads saved invoices after app restart",
        "status": "passed",
        "durationMs": 530
      },
      {
        "id": "negative-qty",
        "title": "Held-out validation check",
        "heldOut": true,
        "status": "passed",
        "durationMs": 295
      },
      {
        "id": "thermal-printer",
        "title": "Physical USB thermal printer receipt output",
        "status": "unverified",
        "reason": "Physical USB hardware is unavailable in the disposable clean Windows VM; requires manual testing on customer hardware."
      }
    ]
  },
  "signatureScope": "Ed25519 signature over canonical payload {version,jobId,attemptId,challenge,projectSha256,artifacts[],reportSha256}. Because projectSha256 commits to authenticatedInputs.projectJson (containing plaincompile.contract.json and plaincompile.source-revision.json) and artifacts[] commits to authenticatedArtifacts[\"out/acceptance.json\"], modifying the signer key, contract, source revision, or acceptance results fails independent verification.",
  "limitations": [
    "Functional acceptance checks prove the 3 automated assertions ran against the installed app on fresh test data; held-out checks keep full test details redacted.",
    "Requirements tagged hardware or external-service (thermal-printer) remain explicitly unverified by CI.",
    "The witness Ed25519 verdict has coverage=artifact-integrity-only and does not certify unasserted behavior or real-device behavior."
  ],
  "witness": {
    "keyId": "sample-witness-2026-v1",
    "publicKeyPem": "-----BEGIN PUBLIC KEY-----\nMCowBQYDK2VwAyEAxRLDmZDQ02xUHxD0E7bMx6vRC/xpmaNQx59QLKPcgPI=\n-----END PUBLIC KEY-----\n",
    "reportJson": "{\n  \"version\": 1,\n  \"status\": \"passed\",\n  \"coverage\": \"artifact-integrity-only\",\n  \"environment\": \"Disposable Windows Server / Windows 11 x64 VM; no network; clean machine rebooted per attempt\",\n  \"contractSha256\": \"b7017bcf6a10d5066417efbd7a22d786f78c9ae9b729b37da71e24fb6cabcfd8\",\n  \"sourceRevision\": {\n    \"commit\": \"644d4fef2247fba2de9c616326aa0626b517c12c\",\n    \"branch\": \"resident/unified\",\n    \"dirty\": false\n  },\n  \"artifacts\": [\n    {\n      \"path\": \"out/acceptance.json\",\n      \"sha256\": \"52345e1217853458f3259d13eaaed7d5bc36a6c771029a01f60ba733b5ffb778\",\n      \"bytes\": 942,\n      \"format\": \"file\"\n    },\n    {\n      \"path\": \"out/InvoiceTool-Setup.exe\",\n      \"sha256\": \"1eae1286417368b2f192192fad6ac2c4d530454c18aff4b84f44ddabf4a3092c\",\n      \"bytes\": 56,\n      \"format\": \"pe-x64\"\n    }\n  ],\n  \"limitations\": [\n    \"Functional behavior and hardware were not independently tested.\",\n    \"Witness verdict verifies sealed VM artifact hashes against the frozen projectSha256 after container stop.\"\n  ]\n}",
    "verdict": {
      "payload": {
        "version": 1,
        "jobId": "22222222222222222222222222222222",
        "attemptId": "33333333333333333333333333333333",
        "challenge": "4444444444444444444444444444444444444444444444444444444444444444",
        "projectSha256": "1c3f0e4f6d32a512807bdc6b30d5a90307b7653c456db692b32ffb18f0a1cc6d",
        "artifacts": [
          {
            "path": "out/acceptance.json",
            "role": "acceptance-report",
            "sha256": "52345e1217853458f3259d13eaaed7d5bc36a6c771029a01f60ba733b5ffb778",
            "bytes": 942
          },
          {
            "path": "out/InvoiceTool-Setup.exe",
            "role": "installer",
            "sha256": "1eae1286417368b2f192192fad6ac2c4d530454c18aff4b84f44ddabf4a3092c",
            "bytes": 56
          }
        ],
        "reportSha256": "39ecc1fe2fbcfe55b734521182d6a6f201f8e0f9583b42b230bc63015fea3d51"
      },
      "signature": "dMAwDTFxqgZ0sZob/DAFAw9RUaomFND1gIp8W4auZInZ3RLoiYwUA2Q5IIHBAMDfiGlrxNE5fDkIVlUxaUveCQ=="
    }
  }
}
