{
  "bundle_version": 1,
  "bundle_id": "bnd_inc_checkout_demo",
  "bundle_type": "failure",
  "captured_at": "2026-09-07T10:15:00.000Z",
  "sdk": {
    "name": "@debugbundle/sdk-node",
    "version": "1.6.0"
  },
  "project": {
    "id": "proj_demo",
    "slug": "proj_demo",
    "environment": "production"
  },
  "service": {
    "id": "svc_checkout_demo",
    "name": "checkout-api",
    "runtime": "node",
    "framework": "fastify",
    "version": null,
    "region": null
  },
  "signal": {
    "signal_id": "00000000-0000-4000-8000-000000000111",
    "signal_type": "exception",
    "severity": "high",
    "fingerprint": "fp_checkout_demo",
    "first_seen_at": "2026-09-07T10:15:00.000Z",
    "last_seen_at": "2026-09-07T10:15:00.000Z",
    "occurrence_count": 1,
    "source_event_types": [
      "backend_exception",
      "log_event"
    ]
  },
  "summary": {
    "title": "Cannot read properties of null (reading 'currency')",
    "description": "Deterministic bundle generated from new_context_type",
    "likely_cause": "TypeError occurred while handling POST /checkout in src/checkout.ts.",
    "confidence": 0.65,
    "recommended_action": "Inspect the first application frame in src/checkout.ts and the captured request/response context.",
    "severity": "high",
    "error_type": "TypeError",
    "error_message": "Cannot read properties of null (reading 'currency')",
    "first_application_frame": {
      "file": "src/checkout.ts",
      "line": 42,
      "function": "createCheckout"
    },
    "primary_signal": "exception",
    "signals": {
      "new_deploy": false,
      "regression_suspected": false,
      "customer_visible": false
    }
  },
  "impact": {
    "affected_users_estimate": null,
    "affected_requests_estimate": null,
    "business_criticality": "high",
    "customer_visible": false,
    "regression_suspected": false
  },
  "context": {
    "error": {
      "version": 1,
      "name": "TypeError",
      "message": "Cannot read properties of null (reading 'currency')",
      "stack": "TypeError: Cannot read properties of null (reading 'currency')\n    at createCheckout (src/checkout.ts:42:19)",
      "handled": false,
      "top_frames": [
        "at createCheckout (src/checkout.ts:42:19)"
      ]
    },
    "request": {
      "version": 1,
      "method": "POST",
      "path": "/checkout",
      "route_template": "/checkout",
      "query": {},
      "headers": {
        "host": "checkout.example.invalid",
        "content-type": "application/json",
        "authorization": "[REDACTED]"
      },
      "body": {
        "cart_id": "cart_demo",
        "shipping_country": "DE"
      },
      "request_id": null
    },
    "response": {
      "version": 1,
      "status_code": 500,
      "duration_ms": null
    },
    "logs": {
      "version": 1,
      "items": [
        {
          "level": "warn",
          "message": "No pricing configuration found for shipping country",
          "timestamp": "2026-09-07T10:14:59.900Z",
          "attributes": {
            "shipping_country": "DE"
          }
        }
      ]
    },
    "frontend": null,
    "environment": null,
    "deploy": {
      "version": 1,
      "commit_sha": "a1b2c3d4e5f60123456789abcdef0123456789abcd",
      "deploy_version": "checkout-1.4.0",
      "branch": "main",
      "deployed_at": "2026-09-07T10:00:00.000Z",
      "regression_window": false
    },
    "runtime": {
      "version": 1,
      "name": "node",
      "runtime_version": "24.0.0",
      "platform": null,
      "arch": null,
      "pid": null,
      "cwd": null,
      "uptime_sec": null,
      "hostname": null,
      "thread_id": null,
      "framework": "fastify",
      "framework_version": null,
      "memory": null,
      "framework_extras": null
    },
    "git": {
      "version": 1,
      "commit": "a1b2c3d4e5f60123456789abcdef0123456789abcd",
      "commit_short": "a1b2c3d",
      "branch": "main",
      "repo": null,
      "dirty": false,
      "source": "env"
    },
    "dependencies": null,
    "probe_data": {
      "version": 1,
      "items": []
    },
    "device": null
  },
  "reproduction": {
    "possible": true,
    "confidence": 0.8,
    "reason": "request_context_available",
    "artifacts": {
      "curl": "curl -X POST 'https://checkout.example.invalid/checkout' -H 'authorization: [REDACTED]' -H 'content-type: application/json' --data-raw '{\"cart_id\":\"cart_demo\",\"shipping_country\":\"DE\"}'",
      "httpie": "printf '%s' '{\"cart_id\":\"cart_demo\",\"shipping_country\":\"DE\"}' | http POST 'https://checkout.example.invalid/checkout' 'authorization:[REDACTED]' 'content-type:application/json'",
      "json_spec": {
        "method": "POST",
        "url": "https://checkout.example.invalid/checkout",
        "headers": {
          "authorization": "[REDACTED]",
          "content-type": "application/json"
        },
        "body": {
          "cart_id": "cart_demo",
          "shipping_country": "DE"
        }
      }
    },
    "feasibility_reference": null
  },
  "verification": {
    "verification_type": null,
    "synthetic": true,
    "local_verified": false,
    "production_verified": false
  },
  "links": {
    "self": null,
    "reproduction": null,
    "incident": null,
    "project": null,
    "docs": null
  },
  "redaction": {
    "redacted": true,
    "fields": [
      "context.request.headers.authorization"
    ],
    "notes": "Sensitive bundle fields were redacted before storage."
  },
  "metadata": {
    "created_at": "2026-09-07T10:15:00.000Z",
    "updated_at": "2026-09-07T10:15:00.000Z",
    "generator_version": "worker-build-bundle-v2",
    "generation_number": 1
  }
}
