{
  "id": "woocommerce-bulk",
  "action": "Set price to 39.00 and stock to 15 through WooCommerce bulk-save handler",
  "edit_path": "Native WC_Admin_Post_Types::bulk_edit_save with two fixture products, WP-CLI user 1",
  "fixture_result": [
    {
      "id": 11,
      "regular_price": "39",
      "stock": 15
    },
    {
      "id": 13,
      "regular_price": "24.00",
      "stock": 15
    }
  ],
  "events": [
    {
      "id": "16",
      "network_id": "1",
      "site_id": "1",
      "occurred_at": "2026-11-22 06:12:46.030963",
      "code": "commerce.stock_changed",
      "category": "commerce",
      "action": "stock_changed",
      "outcome": "stored_change",
      "severity": "notice",
      "actor_kind": "authenticated_user",
      "actor_id": "1",
      "subject_id": null,
      "object_type": "product",
      "object_id": "11",
      "channel": "cli",
      "payload": {
        "event_scope": "site",
        "source": "wordpress",
        "actor_label": "User #1",
        "subject_label": "Not applicable",
        "facts": {
          "product_type": "simple",
          "execution_context": "authenticated_staff"
        },
        "diffs": [
          {
            "field": "quantity",
            "type": "scalar",
            "before": "8",
            "after": "15",
            "availability": "captured",
            "redacted": false
          }
        ],
        "collector": "woocommerce_crud_v1",
        "observed_via": "woocommerce_product_set_stock",
        "confidence": "successful_write_with_prewrite_snapshot",
        "ip_context": {
          "mode": "unavailable",
          "reason": "not_collected_by_this_collector"
        },
        "incomplete_context": false,
        "truncated": false,
        "before_consistency": "prewrite_snapshot_not_serializable_against_concurrent_writes",
        "maintenance": null
      }
    },
    {
      "id": "17",
      "network_id": "1",
      "site_id": "1",
      "occurred_at": "2026-11-22 06:12:46.068866",
      "code": "commerce.product_changed",
      "category": "commerce",
      "action": "product_changed",
      "outcome": "stored_change",
      "severity": "notice",
      "actor_kind": "authenticated_user",
      "actor_id": "1",
      "subject_id": null,
      "object_type": "product",
      "object_id": "11",
      "channel": "cli",
      "payload": {
        "event_scope": "site",
        "source": "wordpress",
        "actor_label": "User #1",
        "subject_label": "Not applicable",
        "facts": {
          "currency": "USD",
          "precision": 2,
          "product_type": "simple",
          "execution_context": "authenticated_staff"
        },
        "diffs": [
          {
            "field": "regular_price",
            "type": "scalar",
            "before": "34.90",
            "after": "39.00",
            "availability": "captured",
            "redacted": false
          }
        ],
        "collector": "woocommerce_crud_v1",
        "observed_via": "woocommerce_after_product_object_save",
        "confidence": "successful_write_with_prewrite_snapshot",
        "ip_context": {
          "mode": "unavailable",
          "reason": "not_collected_by_this_collector"
        },
        "incomplete_context": false,
        "truncated": false,
        "before_consistency": "prewrite_snapshot_not_serializable_against_concurrent_writes",
        "maintenance": null
      }
    },
    {
      "id": "18",
      "network_id": "1",
      "site_id": "1",
      "occurred_at": "2026-11-22 06:12:46.096373",
      "code": "commerce.stock_changed",
      "category": "commerce",
      "action": "stock_changed",
      "outcome": "stored_change",
      "severity": "notice",
      "actor_kind": "authenticated_user",
      "actor_id": "1",
      "subject_id": null,
      "object_type": "product",
      "object_id": "13",
      "channel": "cli",
      "payload": {
        "event_scope": "site",
        "source": "wordpress",
        "actor_label": "User #1",
        "subject_label": "Not applicable",
        "facts": {
          "product_type": "variation",
          "execution_context": "authenticated_staff"
        },
        "diffs": [
          {
            "field": "quantity",
            "type": "scalar",
            "before": "8",
            "after": "15",
            "availability": "captured",
            "redacted": false
          }
        ],
        "collector": "woocommerce_crud_v1",
        "observed_via": "woocommerce_variation_set_stock",
        "confidence": "successful_write_with_prewrite_snapshot",
        "ip_context": {
          "mode": "unavailable",
          "reason": "not_collected_by_this_collector"
        },
        "incomplete_context": false,
        "truncated": false,
        "before_consistency": "prewrite_snapshot_not_serializable_against_concurrent_writes",
        "maintenance": null
      }
    }
  ],
  "observed_codes": [
    "commerce.stock_changed",
    "commerce.product_changed",
    "commerce.stock_changed"
  ],
  "expected_event": "commerce.product_changed",
  "status": "partially_captured",
  "retained_fields": [
    "quantity",
    "regular_price"
  ],
  "retained_fact_names": [
    "currency",
    "execution_context",
    "precision",
    "product_type"
  ],
  "attribution": [
    "authenticated_user; actor_id=1; channel=cli"
  ],
  "limitations": "The native bulk handler captured simple-product price and both stock changes. WooCommerce did not change variation price through this bulk operation. Handler invocation was native WP-CLI, not browser bulk selection.",
  "alternatives": "WooCommerce bulk editor supported field/type rules, submitted job inputs and product settings.",
  "versions": {
    "logged_ai_free": "1.2.16",
    "wordpress": "7.1.5",
    "php": "8.5.4",
    "mariadb": "11.8.6",
    "woocommerce": "11.3.0",
    "order_storage": "HPOS"
  },
  "tested_at": "2026-11-22",
  "sample": "woocommerce-bulk.json",
  "screenshot": null
}
