{
  "id": "hpos-order-status",
  "action": "Change HPOS order status from pending to processing",
  "edit_path": "Native WC_Order::update_status in WP-CLI, user 1",
  "fixture_result": {
    "id": 15,
    "status": "processing"
  },
  "events": [
    {
      "id": "13",
      "network_id": "1",
      "site_id": "1",
      "occurred_at": "2026-11-22 06:12:39.457069",
      "code": "commerce.order_changed",
      "category": "commerce",
      "action": "order_changed",
      "outcome": "stored_change",
      "severity": "notice",
      "actor_kind": "authenticated_user",
      "actor_id": "1",
      "subject_id": null,
      "object_type": "order",
      "object_id": "15",
      "channel": "cli",
      "payload": {
        "event_scope": "site",
        "source": "wordpress",
        "actor_label": "User #1",
        "subject_label": "Not applicable",
        "facts": {
          "currency": "USD",
          "precision": 2,
          "execution_context": "authenticated_staff"
        },
        "diffs": [
          {
            "field": "status",
            "type": "scalar",
            "before": "pending",
            "after": "processing",
            "availability": "captured",
            "redacted": false
          }
        ],
        "collector": "woocommerce_crud_v1",
        "observed_via": "woocommerce_after_order_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": "14",
      "network_id": "1",
      "site_id": "1",
      "occurred_at": "2026-11-22 06:12:39.541794",
      "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": "10",
            "after": "8",
            "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
      }
    }
  ],
  "observed_codes": [
    "commerce.order_changed",
    "commerce.stock_changed"
  ],
  "expected_event": "commerce.order_changed",
  "status": "captured",
  "retained_fields": [
    "quantity",
    "status"
  ],
  "retained_fact_names": [
    "currency",
    "execution_context",
    "precision",
    "product_type"
  ],
  "attribution": [
    "authenticated_user; actor_id=1; channel=cli"
  ],
  "limitations": "HPOS status transition is retained. Related stock-reduction records may also occur; this is not proof that a payment settled.",
  "alternatives": "Native order notes for the surrounding order workflow and gateway records for payment facts.",
  "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": "hpos-order-status.json",
  "screenshot": "hpos-order-status-detail.png"
}
