{
  "schemaVersion": "aiwg.storage-server-benchmark/v1",
  "evidenceId": "postgres-direct-reference-v1",
  "observedAt": "2026-10-26T14:19:26.383Z",
  "validUntil": "2027-01-24T14:19:26.383Z",
  "subject": {
    "branch": "HEAD",
    "commit": "13084ef2febb9b9805a980a40a98da8b9ce97b76",
    "sourceFiles": [
      "src/storage/backends/postgres.ts",
      "src/storage/qualification.ts",
      "test/integration/storage-postgres-live.test.ts"
    ],
    "sourceDigest": "8195ac10471877d53013b35b3e14241cba17dd75950616ac8dd35b4bfb6bc3b4",
    "checkout": {
      "kind": "detached-worktree",
      "baseCommit": "13084ef2febb9b9805a980a40a98da8b9ce97b76",
      "modifiedSourceFiles": [
        "src/storage/backends/postgres.ts"
      ]
    }
  },
  "runtime": {
    "node": "v24.22.1",
    "platform": "linux",
    "arch": "x64"
  },
  "server": {
    "engine": "postgresql",
    "engineVersion": "17.11",
    "accessMode": "direct",
    "driver": {
      "name": "pg",
      "version": "8.23.0"
    },
    "containerImage": "postgres:17-alpine",
    "containerDigest": "sha256:d4bb0a8c1b7bb2e29f976d099e7bfb9a5d8858cffe9e46b35cd302cd1f1f8168"
  },
  "qualification": {
    "schemaVersion": "aiwg.storage-qualification/v1",
    "runId": "525dd773b0583454ca56351f351d98b7a695fd34440bef655e1f31ed0a900562",
    "startedAt": "2026-10-26T14:19:25.626Z",
    "completedAt": "2026-10-26T14:19:26.383Z",
    "scope": {
      "backend": "postgres-direct",
      "branch": "HEAD",
      "commit": "13084ef2febb9b9805a980a40a98da8b9ce97b76",
      "datasetId": "postgres-envelope-v1",
      "declaredRecords": 128,
      "readers": 4,
      "writers": 4,
      "operations": 132,
      "observedRecords": 128,
      "observedOperations": 132
    },
    "verification": {
      "valid": true,
      "missing": [],
      "unexpected": [],
      "corrupt": [],
      "expectedDigest": "ba22e33c3f376d37730b7a285baf77ef1b9068bfc88bdd2c0910fa44ee2d21a1",
      "observedDigest": "ba22e33c3f376d37730b7a285baf77ef1b9068bfc88bdd2c0910fa44ee2d21a1"
    },
    "latencyMs": {
      "p50": 7.159198000001197,
      "p95": 59.38422100000025,
      "p99": 107.70932399999947
    },
    "throughputPerSecond": 177.44294067840357,
    "errors": 45,
    "retries": 45,
    "errorRate": 0.3409090909090909,
    "retryRate": 0.3409090909090909,
    "resources": {
      "cpuUserMicros": 324755,
      "cpuSystemMicros": 83386,
      "rssBytes": 295321600,
      "databaseBytes": 8410803,
      "writeAmplification": 10.239668161161436,
      "walBytes": 335728,
      "lockWaits": 0,
      "poolSaturation": 0.5,
      "migrationMs": null,
      "recoveryMs": null,
      "transportOverheadMs": null
    },
    "sideEffectSummary": [
      {
        "outcome": "committed",
        "count": 108
      },
      {
        "outcome": "replayed",
        "count": 24
      }
    ]
  },
  "testGate": {
    "passed": 6,
    "failed": 0,
    "skipped": 0,
    "coverage": [
      "proves atomic replay, updates, tombstones, snapshots, cursors, query, traversal, and health",
      "round-trips schema, records, receipts, and tombstones through pg_dump/pg_restore",
      "passes the filesystem-shaped offline migration and approval-bound cutover gate",
      "upgrades and explicitly rolls back an isolated schema with exact-count approval",
      "emits a correctness-qualified direct-server operating-envelope record",
      "reconnects after PostgreSQL terminates an established pooled session"
    ]
  },
  "interpretation": "Disposable loopback reference-host observation only; not a universal capacity limit or production certification."
}
