{
  "ursId": "URS-074",
  "title": "Virtual kit pricing modes (fixed and component-sum)",
  "timestamp": "2026-08-03T23:05:39.857Z",
  "durationMs": 139761,
  "config": {
    "inboxUrl": "http://localhost:43843",
    "dbHost": "localhost",
    "dbPort": 45457,
    "dbName": "cc_repinbox_dev"
  },
  "setup": {
    "status": "pass"
  },
  "scenarios": [
    {
      "name": "Step 1: Fixed-price kit billing",
      "status": "pass",
      "description": "Step 1: Fixed-price kit billing",
      "screenshots": [
        "/home/runner/_work/code/code/validation_test_results/urs-074-virtual-kit-pricing-modes/2026-08-03T23-05-39-857Z/screenshots/step-01-fixed-kit-product.png",
        "/home/runner/_work/code/code/validation_test_results/urs-074-virtual-kit-pricing-modes/2026-08-03T23-05-39-857Z/screenshots/step-01-fixed-kit-account-pricing.png",
        "/home/runner/_work/code/code/validation_test_results/urs-074-virtual-kit-pricing-modes/2026-08-03T23-05-39-857Z/screenshots/step-01-fixed-kit-selected.png",
        "/home/runner/_work/code/code/validation_test_results/urs-074-virtual-kit-pricing-modes/2026-08-03T23-05-39-857Z/screenshots/step-01-review.png",
        "/home/runner/_work/code/code/validation_test_results/urs-074-virtual-kit-pricing-modes/2026-08-03T23-05-39-857Z/screenshots/step-01-submitted.png"
      ],
      "explanation": "Documents that IK2025LL (LiraLock® Implant Kit) is configured with pricing_mode='fixed' on the ROSS account, and that a bill-only order charges the kit at the stored per-account approved price — not a computed sum. The billing order item unit_price is frozen at submission time.",
      "startedAt": "2026-08-03T23:05:46.438Z",
      "finishedAt": "2026-08-03T23:06:15.555Z",
      "videoPath": "/home/runner/_work/code/code/validation_test_results/urs-074-virtual-kit-pricing-modes/2026-08-03T23-05-39-857Z/videos/step-01-fixed-price-kit-billing.webm"
    },
    {
      "name": "Step 2: Component-sum pricing",
      "status": "pass",
      "description": "Step 2: Component-sum pricing",
      "screenshots": [
        "/home/runner/_work/code/code/validation_test_results/urs-074-virtual-kit-pricing-modes/2026-08-03T23-05-39-857Z/screenshots/step-02-cs-kit-product.png",
        "/home/runner/_work/code/code/validation_test_results/urs-074-virtual-kit-pricing-modes/2026-08-03T23-05-39-857Z/screenshots/step-02-cs-account-pricing.png",
        "/home/runner/_work/code/code/validation_test_results/urs-074-virtual-kit-pricing-modes/2026-08-03T23-05-39-857Z/screenshots/step-02-cs-kit-selected.png",
        "/home/runner/_work/code/code/validation_test_results/urs-074-virtual-kit-pricing-modes/2026-08-03T23-05-39-857Z/screenshots/step-02-review.png",
        "/home/runner/_work/code/code/validation_test_results/urs-074-virtual-kit-pricing-modes/2026-08-03T23-05-39-857Z/screenshots/step-02-submitted.png"
      ],
      "explanation": "Documents that IK2025CS (LiraLock® Surgical System CS) is configured with pricing_mode='component_sum' on the ROSS account. The account pricing page displays a read-only computed price equal to the sum of its component approved prices (LL516SNA $3,000 + NP019N1A $1,500 = $4,500). No stored price input is available. The bill-only order captures this computed sum as the kit unit_price.",
      "startedAt": "2026-08-03T23:06:21.196Z",
      "finishedAt": "2026-08-03T23:06:50.071Z",
      "videoPath": "/home/runner/_work/code/code/validation_test_results/urs-074-virtual-kit-pricing-modes/2026-08-03T23-05-39-857Z/videos/step-02-component-sum-billing.webm"
    },
    {
      "name": "Step 3: Automatic recalculation",
      "status": "pass",
      "description": "Step 3: Automatic recalculation",
      "screenshots": [
        "/home/runner/_work/code/code/validation_test_results/urs-074-virtual-kit-pricing-modes/2026-08-03T23-05-39-857Z/screenshots/step-03-price-before.png",
        "/home/runner/_work/code/code/validation_test_results/urs-074-virtual-kit-pricing-modes/2026-08-03T23-05-39-857Z/screenshots/step-03-price-after.png",
        "/home/runner/_work/code/code/validation_test_results/urs-074-virtual-kit-pricing-modes/2026-08-03T23-05-39-857Z/screenshots/step-03-review.png",
        "/home/runner/_work/code/code/validation_test_results/urs-074-virtual-kit-pricing-modes/2026-08-03T23-05-39-857Z/screenshots/step-03-updated-submitted.png"
      ],
      "explanation": "Shows that updating the LL516SNA component price on ROSS from $3,000 to $2,750 immediately changes the kit effective price from $4,500 to $4,250. A new bill-only order billed after the update captures $4,250. The original bill-only snapshot from Step 2 is unaffected — each billing order freezes the component-sum price at the moment of submission.",
      "startedAt": "2026-08-03T23:06:56.156Z",
      "finishedAt": "2026-08-03T23:07:24.989Z",
      "videoPath": "/home/runner/_work/code/code/validation_test_results/urs-074-virtual-kit-pricing-modes/2026-08-03T23-05-39-857Z/videos/step-03-recalculated-billing.webm"
    },
    {
      "name": "Step 4: Missing component price blocks billing",
      "status": "pass",
      "description": "Step 4: Missing component price blocks billing",
      "screenshots": [
        "/home/runner/_work/code/code/validation_test_results/urs-074-virtual-kit-pricing-modes/2026-08-03T23-05-39-857Z/screenshots/step-04-missing-component-price-warning.png",
        "/home/runner/_work/code/code/validation_test_results/urs-074-virtual-kit-pricing-modes/2026-08-03T23-05-39-857Z/screenshots/step-04-billing-no-cs-kit.png"
      ],
      "explanation": "Deactivating the NP019N1A approved pricing row on ROSS causes the kit pricing widget to display \"Missing component prices\" instead of a dollar amount. IK2025CS is absent from the bill-only product picker (or shown as unavailable) while a component lacks active pricing. Restoring the pricing row re-enables billing.",
      "startedAt": "2026-08-03T23:07:31.042Z",
      "finishedAt": "2026-08-03T23:07:47.918Z",
      "videoPath": "/home/runner/_work/code/code/validation_test_results/urs-074-virtual-kit-pricing-modes/2026-08-03T23-05-39-857Z/videos/step-04-billing-blocked.webm"
    },
    {
      "name": "Step 5: Derived price not proposable",
      "status": "pass",
      "description": "Step 5: Derived price not proposable",
      "screenshots": [
        "/home/runner/_work/code/code/validation_test_results/urs-074-virtual-kit-pricing-modes/2026-08-03T23-05-39-857Z/screenshots/step-05-account-pricing-before.png",
        "/home/runner/_work/code/code/validation_test_results/urs-074-virtual-kit-pricing-modes/2026-08-03T23-05-39-857Z/screenshots/step-05-proposal-form-no-price-input.png",
        "/home/runner/_work/code/code/validation_test_results/urs-074-virtual-kit-pricing-modes/2026-08-03T23-05-39-857Z/screenshots/step-05-product-settings-component-sum.png"
      ],
      "explanation": "The pricing proposal form for IK2025CS on the ROSS account shows no price-entry field — the kit price is derived from its components and cannot be stored. Only an enabled/disabled toggle is available. The product settings page confirms pricing_mode='component_sum'.",
      "startedAt": "2026-08-03T23:07:53.927Z",
      "finishedAt": "2026-08-03T23:07:59.391Z",
      "videoPath": "/home/runner/_work/code/code/validation_test_results/urs-074-virtual-kit-pricing-modes/2026-08-03T23-05-39-857Z/videos/step-05-no-price-proposal.webm"
    }
  ],
  "dbValidations": [
    {
      "name": "IK2025LL has pricing_mode=fixed and an effective, enabled pricing row on ROSS",
      "query": "SELECT p.sku, p.pricing_mode,\n            ap.price, ap.status, ap.active AS pricing_active, ap.enabled\n     FROM org_products p\n     JOIN sales_account_approved_pricing ap\n       ON ap.org_product_id = p.id\n      AND ap.sales_account_id = $2\n      AND ap.active = true\n     WHERE p.id = $1",
      "status": "pass",
      "rows": [
        {
          "sku": "IK2025LL",
          "pricing_mode": "fixed",
          "price": "4750.00",
          "status": "effective",
          "pricing_active": true,
          "enabled": true
        }
      ],
      "assertion": "IK2025LL has pricing_mode='fixed', active pricing with status='effective' and enabled=true"
    },
    {
      "name": "Bill-only for IK2025LL records the stored approved price as unit_price",
      "query": "SELECT boi.unit_price, bo.status\n     FROM billing_orders bo\n     JOIN billing_order_items boi ON boi.billing_order_id = bo.id\n     WHERE boi.product_id = $1\n       AND bo.notes LIKE $2",
      "status": "pass",
      "rows": [
        {
          "unit_price": "4750.00",
          "status": "submitted"
        }
      ],
      "assertion": "IK2025LL billing order item unit_price matches the stored per-account approved price"
    },
    {
      "name": "IK2025CS has pricing_mode=component_sum and a two-component BOM",
      "query": "SELECT p.sku, p.pricing_mode, cp.sku AS component_sku, pc.quantity\n     FROM org_products p\n     JOIN product_components pc ON pc.composite_product_id = p.id\n     JOIN org_products cp ON cp.id = pc.component_product_id\n     WHERE p.id = $1\n     ORDER BY pc.sort_order",
      "status": "pass",
      "rows": [
        {
          "sku": "IK2025CS",
          "pricing_mode": "component_sum",
          "component_sku": "LL516SNA",
          "quantity": 1
        },
        {
          "sku": "IK2025CS",
          "pricing_mode": "component_sum",
          "component_sku": "NP019N1A",
          "quantity": 1
        }
      ],
      "assertion": "IK2025CS is a virtual_kit with pricing_mode='component_sum' and LL516SNA + NP019N1A in the BOM"
    },
    {
      "name": "First IK2025CS bill-only has unit_price = $4500 (= $3,000 + $1,500)",
      "query": "SELECT boi.unit_price, bo.status\n     FROM billing_orders bo\n     JOIN billing_order_items boi ON boi.billing_order_id = bo.id\n     WHERE boi.product_id = $1\n       AND bo.notes LIKE $2",
      "status": "pass",
      "rows": [
        {
          "unit_price": "4500.00",
          "status": "submitted"
        }
      ],
      "assertion": "IK2025CS bill-only unit_price = 4500 (sum of component approved prices)"
    },
    {
      "name": "Second IK2025CS bill-only has unit_price = $4250 after LL516SNA price update",
      "query": "SELECT boi.unit_price, bo.status\n     FROM billing_orders bo\n     JOIN billing_order_items boi ON boi.billing_order_id = bo.id\n     WHERE boi.product_id = $1\n       AND bo.notes LIKE $2",
      "status": "pass",
      "rows": [
        {
          "unit_price": "4250.00",
          "status": "submitted"
        }
      ],
      "assertion": "IK2025CS second bill-only unit_price = 4250 (computed from $2,750 + $1,500)"
    },
    {
      "name": "Original IK2025CS bill-only snapshot still shows $4500 after component price change",
      "query": "SELECT boi.unit_price\n     FROM billing_orders bo\n     JOIN billing_order_items boi ON boi.billing_order_id = bo.id\n     WHERE boi.product_id = $1\n       AND bo.notes LIKE $2",
      "status": "pass",
      "rows": [
        {
          "unit_price": "4500.00"
        }
      ],
      "assertion": "Unit price = 4500 (frozen at billing time, not recalculated after component update)"
    },
    {
      "name": "Attempting to bill IK2025CS with a missing component price creates no billing order line",
      "query": "SELECT boi.id, bo.notes\n     FROM billing_orders bo\n     JOIN billing_order_items boi ON boi.billing_order_id = bo.id\n     WHERE boi.product_id = $1\n       AND bo.notes LIKE $2",
      "status": "pass",
      "rows": [],
      "assertion": "No billing order line created for IK2025CS when a component price is missing (billing blocked)"
    },
    {
      "name": "LL516SNA pricing row on ROSS shows the recalculation price ($2750.00)",
      "query": "SELECT price, active FROM sales_account_approved_pricing\n     WHERE id = $1",
      "status": "pass",
      "rows": [
        {
          "price": "2750.00",
          "active": true
        }
      ],
      "assertion": "price = 2750.00 (set by scenario 3's component price update)"
    }
  ],
  "overallStatus": "pass",
  "outputDir": "/home/runner/_work/code/code/validation_test_results/urs-074-virtual-kit-pricing-modes/2026-08-03T23-05-39-857Z",
  "auditStartTime": "2026-08-03T23:05:37.901Z",
  "auditEventEvidence": [
    {
      "createdAt": "2026-08-03T23:05:43.373Z",
      "eventType": "user_log",
      "action": "user:login",
      "userEmail": "alex.admin@vantismedical.com",
      "userId": "f6a7b8c9-d0e1-2345-f123-456789012345",
      "organizationName": "Vantis",
      "organizationId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
      "objectId": null,
      "secondaryObjectId": null,
      "payload": {
        "email": "alex.admin@vantismedical.com"
      },
      "route": "/login",
      "traceId": "00000000000000000000000000000000"
    },
    {
      "createdAt": "2026-08-03T23:05:51.568Z",
      "eventType": "user_log",
      "action": "user:login",
      "userEmail": "blair.bennett@corvetasurgical.com",
      "userId": "17b8c9d0-e1f2-3456-1234-567890123456",
      "organizationName": "Corveta Surgical Group",
      "organizationId": "b2c3d4e5-f6a7-8901-bcde-f12345678901",
      "objectId": null,
      "secondaryObjectId": null,
      "payload": {
        "email": "blair.bennett@corvetasurgical.com"
      },
      "route": "/login",
      "traceId": "00000000000000000000000000000000"
    },
    {
      "createdAt": "2026-08-03T23:06:13.116Z",
      "eventType": "decision",
      "action": "bill_only_order.inventory_items_decrement",
      "userEmail": "blair.bennett@corvetasurgical.com",
      "userId": "17b8c9d0-e1f2-3456-1234-567890123456",
      "organizationName": "Vantis",
      "organizationId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
      "objectId": "019fc9e0-af2e-764a-847d-eb5541624026",
      "secondaryObjectId": null,
      "payload": {
        "reason": "inventory_items_decremented",
        "itemCount": 2,
        "performed": true,
        "entityType": "billing_order",
        "inventorySource": "inventory_items"
      },
      "route": null,
      "traceId": null
    },
    {
      "createdAt": "2026-08-03T23:06:13.116Z",
      "eventType": "decision",
      "action": "bill_only.link_purchase_order",
      "userEmail": "blair.bennett@corvetasurgical.com",
      "userId": "17b8c9d0-e1f2-3456-1234-567890123456",
      "organizationName": "Corveta Surgical Group",
      "organizationId": "b2c3d4e5-f6a7-8901-bcde-f12345678901",
      "objectId": "019fc9e0-af2e-764a-847d-eb5541624026",
      "secondaryObjectId": null,
      "payload": {
        "reason": "no_purchase_order_selected",
        "performed": false,
        "entityType": "billing_order",
        "salesOrganizationId": "b2c3d4e5-f6a7-8901-bcde-f12345678901",
        "manufacturerOrganizationId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
      },
      "route": null,
      "traceId": null
    },
    {
      "createdAt": "2026-08-03T23:06:13.116Z",
      "eventType": "decision",
      "action": "bill_only_order.direct_po_import_on_create",
      "userEmail": "blair.bennett@corvetasurgical.com",
      "userId": "17b8c9d0-e1f2-3456-1234-567890123456",
      "organizationName": "Vantis",
      "organizationId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
      "objectId": "019fc9e0-af2e-764a-847d-eb5541624026",
      "secondaryObjectId": null,
      "payload": {
        "reason": "No uploaded PO documents",
        "performed": false,
        "entityType": "billing_order",
        "fileSourceOrganizationId": "b2c3d4e5-f6a7-8901-bcde-f12345678901",
        "hasSelectedPurchaseOrderId": false,
        "purchaseOrderDocumentCount": 0
      },
      "route": null,
      "traceId": null
    },
    {
      "createdAt": "2026-08-03T23:06:13.116Z",
      "eventType": "billing_order",
      "action": "status_change",
      "userEmail": "blair.bennett@corvetasurgical.com",
      "userId": "17b8c9d0-e1f2-3456-1234-567890123456",
      "organizationName": "Vantis",
      "organizationId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
      "objectId": "019fc9e0-af2e-764a-847d-eb5541624026",
      "secondaryObjectId": null,
      "payload": {
        "reason": null,
        "toStatus": "submitted",
        "fromStatus": null,
        "automatedAction": false
      },
      "route": null,
      "traceId": null
    },
    {
      "createdAt": "2026-08-03T23:06:13.773Z",
      "eventType": "transactional_email",
      "action": "new_bill_only",
      "userEmail": null,
      "userId": null,
      "organizationName": "Corveta Surgical Group",
      "organizationId": "b2c3d4e5-f6a7-8901-bcde-f12345678901",
      "objectId": "019fc9e0-af2e-764a-847d-eb5541624026",
      "secondaryObjectId": null,
      "payload": {
        "to": [
          "blair.bennett@corvetasurgical.com"
        ],
        "s3Path": "email-audit/b2c3d4e5-f6a7-8901-bcde-f12345678901/019fc9e0-b17c-7cab-9b83-30c3653b5e7d/",
        "subject": "New Bill-Only Order - 8/3/2026 - Vantis BO-1",
        "messageId": "dev-console-log",
        "relatedEntityType": "billing_order"
      },
      "route": null,
      "traceId": null
    },
    {
      "createdAt": "2026-08-03T23:06:18.454Z",
      "eventType": "user_log",
      "action": "user:login",
      "userEmail": "alex.admin@vantismedical.com",
      "userId": "f6a7b8c9-d0e1-2345-f123-456789012345",
      "organizationName": "Vantis",
      "organizationId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
      "objectId": null,
      "secondaryObjectId": null,
      "payload": {
        "email": "alex.admin@vantismedical.com"
      },
      "route": "/login",
      "traceId": "00000000000000000000000000000000"
    },
    {
      "createdAt": "2026-08-03T23:06:25.868Z",
      "eventType": "user_log",
      "action": "user:login",
      "userEmail": "blair.bennett@corvetasurgical.com",
      "userId": "17b8c9d0-e1f2-3456-1234-567890123456",
      "organizationName": "Corveta Surgical Group",
      "organizationId": "b2c3d4e5-f6a7-8901-bcde-f12345678901",
      "objectId": null,
      "secondaryObjectId": null,
      "payload": {
        "email": "blair.bennett@corvetasurgical.com"
      },
      "route": "/login",
      "traceId": "00000000000000000000000000000000"
    },
    {
      "createdAt": "2026-08-03T23:06:47.744Z",
      "eventType": "decision",
      "action": "bill_only_order.inventory_items_decrement",
      "userEmail": "blair.bennett@corvetasurgical.com",
      "userId": "17b8c9d0-e1f2-3456-1234-567890123456",
      "organizationName": "Vantis",
      "organizationId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
      "objectId": "019fc9e1-366e-75d6-850b-cf8e5c7ba8ab",
      "secondaryObjectId": null,
      "payload": {
        "reason": "inventory_items_decremented",
        "itemCount": 2,
        "performed": true,
        "entityType": "billing_order",
        "inventorySource": "inventory_items"
      },
      "route": null,
      "traceId": null
    },
    {
      "createdAt": "2026-08-03T23:06:47.744Z",
      "eventType": "decision",
      "action": "bill_only.link_purchase_order",
      "userEmail": "blair.bennett@corvetasurgical.com",
      "userId": "17b8c9d0-e1f2-3456-1234-567890123456",
      "organizationName": "Corveta Surgical Group",
      "organizationId": "b2c3d4e5-f6a7-8901-bcde-f12345678901",
      "objectId": "019fc9e1-366e-75d6-850b-cf8e5c7ba8ab",
      "secondaryObjectId": null,
      "payload": {
        "reason": "no_purchase_order_selected",
        "performed": false,
        "entityType": "billing_order",
        "salesOrganizationId": "b2c3d4e5-f6a7-8901-bcde-f12345678901",
        "manufacturerOrganizationId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
      },
      "route": null,
      "traceId": null
    },
    {
      "createdAt": "2026-08-03T23:06:47.744Z",
      "eventType": "decision",
      "action": "bill_only_order.direct_po_import_on_create",
      "userEmail": "blair.bennett@corvetasurgical.com",
      "userId": "17b8c9d0-e1f2-3456-1234-567890123456",
      "organizationName": "Vantis",
      "organizationId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
      "objectId": "019fc9e1-366e-75d6-850b-cf8e5c7ba8ab",
      "secondaryObjectId": null,
      "payload": {
        "reason": "No uploaded PO documents",
        "performed": false,
        "entityType": "billing_order",
        "fileSourceOrganizationId": "b2c3d4e5-f6a7-8901-bcde-f12345678901",
        "hasSelectedPurchaseOrderId": false,
        "purchaseOrderDocumentCount": 0
      },
      "route": null,
      "traceId": null
    },
    {
      "createdAt": "2026-08-03T23:06:47.744Z",
      "eventType": "billing_order",
      "action": "status_change",
      "userEmail": "blair.bennett@corvetasurgical.com",
      "userId": "17b8c9d0-e1f2-3456-1234-567890123456",
      "organizationName": "Vantis",
      "organizationId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
      "objectId": "019fc9e1-366e-75d6-850b-cf8e5c7ba8ab",
      "secondaryObjectId": null,
      "payload": {
        "reason": null,
        "toStatus": "submitted",
        "fromStatus": null,
        "automatedAction": false
      },
      "route": null,
      "traceId": null
    },
    {
      "createdAt": "2026-08-03T23:06:48.857Z",
      "eventType": "transactional_email",
      "action": "new_bill_only",
      "userEmail": null,
      "userId": null,
      "organizationName": "Corveta Surgical Group",
      "organizationId": "b2c3d4e5-f6a7-8901-bcde-f12345678901",
      "objectId": "019fc9e1-366e-75d6-850b-cf8e5c7ba8ab",
      "secondaryObjectId": null,
      "payload": {
        "to": [
          "blair.bennett@corvetasurgical.com"
        ],
        "s3Path": "email-audit/b2c3d4e5-f6a7-8901-bcde-f12345678901/019fc9e1-3a8f-7108-bfe0-013637845669/",
        "subject": "New Bill-Only Order - 8/3/2026 - Vantis BO-2",
        "messageId": "dev-console-log",
        "relatedEntityType": "billing_order"
      },
      "route": null,
      "traceId": null
    },
    {
      "createdAt": "2026-08-03T23:06:52.986Z",
      "eventType": "user_log",
      "action": "user:login",
      "userEmail": "alex.admin@vantismedical.com",
      "userId": "f6a7b8c9-d0e1-2345-f123-456789012345",
      "organizationName": "Vantis",
      "organizationId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
      "objectId": null,
      "secondaryObjectId": null,
      "payload": {
        "email": "alex.admin@vantismedical.com"
      },
      "route": "/login",
      "traceId": "00000000000000000000000000000000"
    },
    {
      "createdAt": "2026-08-03T23:07:00.694Z",
      "eventType": "user_log",
      "action": "user:login",
      "userEmail": "blair.bennett@corvetasurgical.com",
      "userId": "17b8c9d0-e1f2-3456-1234-567890123456",
      "organizationName": "Corveta Surgical Group",
      "organizationId": "b2c3d4e5-f6a7-8901-bcde-f12345678901",
      "objectId": null,
      "secondaryObjectId": null,
      "payload": {
        "email": "blair.bennett@corvetasurgical.com"
      },
      "route": "/login",
      "traceId": "00000000000000000000000000000000"
    },
    {
      "createdAt": "2026-08-03T23:07:22.528Z",
      "eventType": "decision",
      "action": "bill_only.link_purchase_order",
      "userEmail": "blair.bennett@corvetasurgical.com",
      "userId": "17b8c9d0-e1f2-3456-1234-567890123456",
      "organizationName": "Corveta Surgical Group",
      "organizationId": "b2c3d4e5-f6a7-8901-bcde-f12345678901",
      "objectId": "019fc9e1-be4a-7bfd-9ca2-e70517827075",
      "secondaryObjectId": null,
      "payload": {
        "reason": "no_purchase_order_selected",
        "performed": false,
        "entityType": "billing_order",
        "salesOrganizationId": "b2c3d4e5-f6a7-8901-bcde-f12345678901",
        "manufacturerOrganizationId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
      },
      "route": null,
      "traceId": null
    },
    {
      "createdAt": "2026-08-03T23:07:22.528Z",
      "eventType": "decision",
      "action": "bill_only_order.inventory_items_decrement",
      "userEmail": "blair.bennett@corvetasurgical.com",
      "userId": "17b8c9d0-e1f2-3456-1234-567890123456",
      "organizationName": "Vantis",
      "organizationId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
      "objectId": "019fc9e1-be4a-7bfd-9ca2-e70517827075",
      "secondaryObjectId": null,
      "payload": {
        "reason": "inventory_items_decremented",
        "itemCount": 2,
        "performed": true,
        "entityType": "billing_order",
        "inventorySource": "inventory_items"
      },
      "route": null,
      "traceId": null
    },
    {
      "createdAt": "2026-08-03T23:07:22.528Z",
      "eventType": "decision",
      "action": "bill_only_order.direct_po_import_on_create",
      "userEmail": "blair.bennett@corvetasurgical.com",
      "userId": "17b8c9d0-e1f2-3456-1234-567890123456",
      "organizationName": "Vantis",
      "organizationId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
      "objectId": "019fc9e1-be4a-7bfd-9ca2-e70517827075",
      "secondaryObjectId": null,
      "payload": {
        "reason": "No uploaded PO documents",
        "performed": false,
        "entityType": "billing_order",
        "fileSourceOrganizationId": "b2c3d4e5-f6a7-8901-bcde-f12345678901",
        "hasSelectedPurchaseOrderId": false,
        "purchaseOrderDocumentCount": 0
      },
      "route": null,
      "traceId": null
    },
    {
      "createdAt": "2026-08-03T23:07:22.528Z",
      "eventType": "billing_order",
      "action": "status_change",
      "userEmail": "blair.bennett@corvetasurgical.com",
      "userId": "17b8c9d0-e1f2-3456-1234-567890123456",
      "organizationName": "Vantis",
      "organizationId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
      "objectId": "019fc9e1-be4a-7bfd-9ca2-e70517827075",
      "secondaryObjectId": null,
      "payload": {
        "reason": null,
        "toStatus": "submitted",
        "fromStatus": null,
        "automatedAction": false
      },
      "route": null,
      "traceId": null
    },
    {
      "createdAt": "2026-08-03T23:07:23.980Z",
      "eventType": "transactional_email",
      "action": "new_bill_only",
      "userEmail": null,
      "userId": null,
      "organizationName": "Corveta Surgical Group",
      "organizationId": "b2c3d4e5-f6a7-8901-bcde-f12345678901",
      "objectId": "019fc9e1-be4a-7bfd-9ca2-e70517827075",
      "secondaryObjectId": null,
      "payload": {
        "to": [
          "blair.bennett@corvetasurgical.com"
        ],
        "s3Path": "email-audit/b2c3d4e5-f6a7-8901-bcde-f12345678901/019fc9e1-c3c2-7468-b475-5cc5a3a63aa3/",
        "subject": "New Bill-Only Order - 8/3/2026 - Vantis BO-3",
        "messageId": "dev-console-log",
        "relatedEntityType": "billing_order"
      },
      "route": null,
      "traceId": null
    },
    {
      "createdAt": "2026-08-03T23:07:27.878Z",
      "eventType": "user_log",
      "action": "user:login",
      "userEmail": "alex.admin@vantismedical.com",
      "userId": "f6a7b8c9-d0e1-2345-f123-456789012345",
      "organizationName": "Vantis",
      "organizationId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
      "objectId": null,
      "secondaryObjectId": null,
      "payload": {
        "email": "alex.admin@vantismedical.com"
      },
      "route": "/login",
      "traceId": "00000000000000000000000000000000"
    },
    {
      "createdAt": "2026-08-03T23:07:33.877Z",
      "eventType": "user_log",
      "action": "user:login",
      "userEmail": "blair.bennett@corvetasurgical.com",
      "userId": "17b8c9d0-e1f2-3456-1234-567890123456",
      "organizationName": "Corveta Surgical Group",
      "organizationId": "b2c3d4e5-f6a7-8901-bcde-f12345678901",
      "objectId": null,
      "secondaryObjectId": null,
      "payload": {
        "email": "blair.bennett@corvetasurgical.com"
      },
      "route": "/login",
      "traceId": "00000000000000000000000000000000"
    },
    {
      "createdAt": "2026-08-03T23:07:50.812Z",
      "eventType": "user_log",
      "action": "user:login",
      "userEmail": "alex.admin@vantismedical.com",
      "userId": "f6a7b8c9-d0e1-2345-f123-456789012345",
      "organizationName": "Vantis",
      "organizationId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
      "objectId": null,
      "secondaryObjectId": null,
      "payload": {
        "email": "alex.admin@vantismedical.com"
      },
      "route": "/login",
      "traceId": "00000000000000000000000000000000"
    }
  ],
  "auditQuery": "SELECT\n    ae.created_at,\n    ae.event_type,\n    ae.action,\n    ae.user_id,\n    u.email AS user_email,\n    ae.organization_id,\n    o.name AS organization_name,\n    ae.object_id,\n    ae.secondary_object_id,\n    ae.payload,\n    ae.route,\n    ae.trace_id\n  FROM audit_events ae\n  LEFT JOIN users u ON u.id = ae.user_id\n  LEFT JOIN organizations o ON o.id = ae.organization_id\n  WHERE ae.created_at >= $1\n    AND ae.organization_id = ANY($2::uuid[])\n  ORDER BY ae.created_at ASC",
  "auditAssertions": [],
  "emailAssertions": [],
  "videoPaths": [
    "/home/runner/_work/code/code/validation_test_results/urs-074-virtual-kit-pricing-modes/2026-08-03T23-05-39-857Z/videos/step-01-fixed-price-kit-config.webm",
    "/home/runner/_work/code/code/validation_test_results/urs-074-virtual-kit-pricing-modes/2026-08-03T23-05-39-857Z/videos/step-02-component-sum-pricing.webm",
    "/home/runner/_work/code/code/validation_test_results/urs-074-virtual-kit-pricing-modes/2026-08-03T23-05-39-857Z/videos/step-03-recalculation.webm",
    "/home/runner/_work/code/code/validation_test_results/urs-074-virtual-kit-pricing-modes/2026-08-03T23-05-39-857Z/videos/step-04-missing-component-price.webm"
  ]
}