{
  "source": "snapshot",
  "uptime": "0d 0h 0m 2s",
  "uptimeMs": 2504,
  "packageCount": 17,
  "versionCount": 23,
  "lastIntegrity": {
    "status": "unknown",
    "timestamp": null,
    "failures": 0,
    "source": "unknown"
  },
  "platformSummary": {
    "active": 4
  },
  "platformApiAvailable": {
    "yes": 4,
    "no": 0
  },
  "dodQueue": 2,
  "dodByStatus": {
    "flagged": 2,
    "pending": 2,
    "rejected": 1,
    "verified": 1
  },
  "experimentsActive": 1,
  "predictionN": 30,
  "timestamp": "2026-07-27T17:09:30.920Z",
  "snapshotAt": "2026-07-27T17:09:30.920Z",
  "env": {
    "ok": true,
    "source": "env-check",
    "checkedAt": "2026-07-27T17:09:30.921Z",
    "summary": {
      "total": 26,
      "ok": 26,
      "missing": 6,
      "placeholder": 0,
      "requiredMissing": 0
    },
    "table": [
      {
        "Key": "CLOUDFLARE_ACCOUNT_ID",
        "Group": "cloudflare",
        "Severity": "required",
        "Status": "set",
        "Detail": "7a470541a704caaf91e71efccc78fd36 · default 7a470541…"
      },
      {
        "Key": "CLOUDFLARE_ZONE_ID",
        "Group": "cloudflare",
        "Severity": "recommended",
        "Status": "default",
        "Detail": "unset · code default · a3b7ba4b…"
      },
      {
        "Key": "CLOUDFLARE_ZONE_NAME",
        "Group": "cloudflare",
        "Severity": "optional",
        "Status": "default",
        "Detail": "unset · code default · factory-wager.com"
      },
      {
        "Key": "CLOUDFLARE_API_TOKEN",
        "Group": "cloudflare",
        "Severity": "required",
        "Status": "set",
        "Detail": "set (len 53, cfa…15)"
      },
      {
        "Key": "CLOUDFLARE_DNS_API_TOKEN",
        "Group": "cloudflare",
        "Severity": "recommended",
        "Status": "set",
        "Detail": "set (len 53, cfa…22)"
      },
      {
        "Key": "R2_ACCESS_KEY_ID",
        "Group": "r2",
        "Severity": "required",
        "Status": "set",
        "Detail": "set (len 32, 582…bd)"
      },
      {
        "Key": "R2_SECRET_ACCESS_KEY",
        "Group": "r2",
        "Severity": "required",
        "Status": "set",
        "Detail": "set (len 64, 35e…65)"
      },
      {
        "Key": "R2_ENDPOINT",
        "Group": "r2",
        "Severity": "recommended",
        "Status": "set",
        "Detail": "https://7a470541a704caaf91e71efccc78fd36… · via R2_S3_ENDPOINT · or derived from account id"
      },
      {
        "Key": "R2_REGISTRY_BUCKET",
        "Group": "r2",
        "Severity": "recommended",
        "Status": "set",
        "Detail": "bun-secrets · via R2_BUCKET_NAME · factory-wager-registry"
      },
      {
        "Key": "REGISTRY_URL",
        "Group": "registry",
        "Severity": "recommended",
        "Status": "default",
        "Detail": "unset · code default · npm publish/install plane (default https://registry.factory-wager.com); see bun publish --registry"
      },
      {
        "Key": "ROUTING_PROBE_BASE_URL",
        "Group": "registry",
        "Severity": "optional",
        "Status": "default",
        "Detail": "unset · code default · Pages public origin for routing proof (default https://score.factory-wager.com); not REGISTRY_URL"
      },
      {
        "Key": "REGISTRY_PUBLIC_URL",
        "Group": "registry",
        "Severity": "optional",
        "Status": "missing",
        "Detail": "—"
      },
      {
        "Key": "REGISTRY_SECRET",
        "Group": "registry",
        "Severity": "required",
        "Status": "set",
        "Detail": "set (len 7)"
      },
      {
        "Key": "API_KEY",
        "Group": "registry",
        "Severity": "optional",
        "Status": "missing",
        "Detail": "optional proof POST publish"
      },
      {
        "Key": "OPS_DB_PATH",
        "Group": "ops",
        "Severity": "recommended",
        "Status": "default",
        "Detail": "unset · code default · data/operations.db"
      },
      {
        "Key": "GITHUB_TOKEN",
        "Group": "github",
        "Severity": "optional",
        "Status": "missing",
        "Detail": "aliases: GITHUB_ACCESS_TOKEN · GH_TOKEN · or `gh auth login` (channels.ts gh-cli fallback)"
      },
      {
        "Key": "TELEGRAM_BOT_FACTORY",
        "Group": "ops",
        "Severity": "optional",
        "Status": "set",
        "Detail": "set (len 46, 897…70)"
      },
      {
        "Key": "TELEGRAM_BOT_TOKEN",
        "Group": "ops",
        "Severity": "optional",
        "Status": "missing",
        "Detail": "legacy alias for factory bot token"
      },
      {
        "Key": "TELEGRAM_OPS_CHAT_ID",
        "Group": "ops",
        "Severity": "optional",
        "Status": "set",
        "Detail": "-1004377517723 · supergroup chat id for ops/alerts projector (forum topics via TELEGRAM_TOPICS)"
      },
      {
        "Key": "TELEGRAM_TOPICS",
        "Group": "ops",
        "Severity": "optional",
        "Status": "set",
        "Detail": "{\"ops\":1,\"alerts\":1,\"toc\":1,\"general\":1} · JSON map logical topic → message_thread_id (e.g. {\"ops\":2,\"alerts\":5})"
      },
      {
        "Key": "TELEGRAM_WEBHOOK_SECRET",
        "Group": "ops",
        "Severity": "optional",
        "Status": "set",
        "Detail": "set (len 48, 10d…9b)"
      },
      {
        "Key": "PLAY_SIGNING_SECRET",
        "Group": "ops",
        "Severity": "recommended",
        "Status": "default",
        "Detail": "unset · code default · defaults to operations-dev-secret if unset"
      },
      {
        "Key": "PROVISION_ENCRYPTION_KEY",
        "Group": "ops",
        "Severity": "optional",
        "Status": "missing",
        "Detail": "—"
      },
      {
        "Key": "SNAPSHOT_PHASE",
        "Group": "ops",
        "Severity": "optional",
        "Status": "default",
        "Detail": "unset · code default · pre | post"
      },
      {
        "Key": "BUN_CONSOLE_DEPTH",
        "Group": "runtime",
        "Severity": "optional",
        "Status": "set",
        "Detail": "4 · wrapper default 4"
      },
      {
        "Key": "SLACK_WEBHOOK_URL",
        "Group": "alerts",
        "Severity": "optional",
        "Status": "missing",
        "Detail": "—"
      }
    ],
    "requiredMissingKeys": []
  },
  "routeStats": {
    "routing": {
      "passed": 18,
      "total": 18,
      "httpOk": 16,
      "criticalFailed": 0,
      "p95Ms": 398.79,
      "errorRate": 0,
      "proofHash": "2d3f00aa4fe03f133ed48c56050215f18f9fa824137a2b92f781cc4e06928e7d",
      "baseUrl": "https://score.factory-wager.com",
      "routes": [
        {
          "path": "/api/operations/summary",
          "status": 200,
          "pass": true,
          "critical": true,
          "timeMs": 67.34,
          "contentType": "application/json"
        },
        {
          "path": "/portal/dashboard-app.js",
          "status": 200,
          "pass": true,
          "critical": true,
          "timeMs": 61.59,
          "contentType": "application/javascript"
        },
        {
          "path": "/portal/ops/",
          "status": 200,
          "pass": true,
          "critical": true,
          "timeMs": 54.07,
          "contentType": "text/html"
        },
        {
          "path": "/portal/dashboard/",
          "status": 200,
          "pass": true,
          "critical": true,
          "timeMs": 51.52,
          "contentType": "text/html"
        },
        {
          "path": "/api/monitoring",
          "status": 200,
          "pass": true,
          "critical": true,
          "timeMs": 48.18,
          "contentType": "application/json"
        },
        {
          "path": "/registry/ops-summary.json",
          "status": 200,
          "pass": true,
          "critical": true,
          "timeMs": 34.84,
          "contentType": "application/json"
        },
        {
          "path": "/registry/@factorywager/bun-utils-test/latest.json",
          "status": 200,
          "pass": true,
          "critical": true,
          "timeMs": 31.94,
          "contentType": "application/json"
        },
        {
          "path": "/health",
          "status": 200,
          "pass": true,
          "critical": false,
          "timeMs": 398.79,
          "contentType": "application/json"
        },
        {
          "path": "/api/registry/@factorywager/routing-test/latest.json",
          "status": 200,
          "pass": true,
          "critical": false,
          "timeMs": 310.88,
          "contentType": "application/json"
        },
        {
          "path": "/api/registry/@factorywager/test-pkg",
          "status": 200,
          "pass": true,
          "critical": false,
          "timeMs": 306.48,
          "contentType": "text/html"
        },
        {
          "path": "/api/registry/@factorywager/bun-utils-test/latest.json",
          "status": 200,
          "pass": true,
          "critical": false,
          "timeMs": 289.36,
          "contentType": "application/json"
        },
        {
          "path": "/portal",
          "status": 200,
          "pass": true,
          "critical": false,
          "timeMs": 288.2,
          "contentType": "text/html"
        },
        {
          "path": "/monitoring",
          "status": 200,
          "pass": true,
          "critical": false,
          "timeMs": 266.69,
          "contentType": "text/html"
        },
        {
          "path": "/api/registry",
          "status": 400,
          "pass": true,
          "critical": false,
          "timeMs": 182.69,
          "contentType": "application/json"
        },
        {
          "path": "/ready",
          "status": 200,
          "pass": true,
          "critical": false,
          "timeMs": 178.66,
          "contentType": "text/html"
        },
        {
          "path": "/registry/static.json",
          "status": 200,
          "pass": true,
          "critical": false,
          "timeMs": 149.64,
          "contentType": "application/json"
        },
        {
          "path": "/registry/@factorywager/routing-test/latest.json",
          "status": 200,
          "pass": true,
          "critical": false,
          "timeMs": 39.7,
          "contentType": "application/json"
        },
        {
          "path": "/api/registry/static",
          "status": 400,
          "pass": true,
          "critical": false,
          "timeMs": 28.05,
          "contentType": "application/json"
        }
      ]
    }
  },
  "bunApiProof": {
    "demosPassed": 30,
    "demosTotal": 30,
    "demoPassRate": "100.0%",
    "generated": "2026-07-27T17:09:30.917Z",
    "apisVerified": 30
  },
  "registryClientProof": {
    "available": true,
    "sdkVersion": "1.0.0",
    "passed": 3,
    "total": 3,
    "status": "pass",
    "subsystem": "package-manager",
    "proofHash": "38542ede96aad679d33a4c8baec9651ad940db3cd75a80f2cb10fc714f116c1f",
    "timestamp": "2026-07-24T04:59:00.755Z",
    "path": "/registry/registry-client-proof.json"
  },
  "docsCoverageProof": {
    "available": true,
    "ok": true,
    "subsystem": "other",
    "missingCanonicalCount": 0,
    "catalogTracked": 26,
    "catalogTotal": 26,
    "overlayTracked": 213,
    "overlayTotal": 213,
    "referenceModuleCount": 44,
    "referencePageCount": 57,
    "indexStale": false,
    "proofHash": "9820d84a3f27f610657f8b00c2e3a51272423b881242ff672d4fed3675d1e1ee",
    "timestamp": "2026-07-27T00:55:47.957Z",
    "path": "/registry/docs-coverage-proof.json"
  }
}
