{
  "id": "content-api-edit",
  "action": "Change a draft title and body",
  "edit_path": "Native wp_update_post API in WP-CLI, user 1",
  "fixture_result": {
    "id": 10,
    "title": "Delivery policy: updated dispatch window",
    "content": "We dispatch in two working days."
  },
  "events": [
    {
      "id": "8",
      "network_id": "1",
      "site_id": "1",
      "occurred_at": "2026-11-22 06:12:26.693813",
      "code": "content.post_changed",
      "category": "content",
      "action": "post_changed",
      "outcome": "stored_change",
      "severity": "notice",
      "actor_kind": "authenticated_user",
      "actor_id": "1",
      "subject_id": null,
      "object_type": "post",
      "object_id": "10",
      "channel": "cli",
      "payload": {
        "event_scope": "site",
        "source": "wordpress",
        "actor_label": "User #1",
        "subject_label": "Not applicable",
        "facts": {
          "post_type": "post",
          "revision_id": 14
        },
        "diffs": [
          {
            "field": "post_title",
            "type": "scalar",
            "before": null,
            "after": null,
            "availability": "redacted",
            "redacted": true
          },
          {
            "field": "post_content",
            "type": "scalar",
            "before": null,
            "after": null,
            "availability": "redacted",
            "redacted": true
          },
          {
            "field": "post_date",
            "type": "scalar",
            "before": null,
            "after": null,
            "availability": "redacted",
            "redacted": true
          }
        ],
        "collector": "core_allowlisted_v1",
        "observed_via": "wp_after_insert_post",
        "confidence": "successful_post_hook",
        "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": [
    "content.post_changed"
  ],
  "expected_event": "content.post_changed",
  "status": "partially_captured",
  "retained_fields": [
    "post_content",
    "post_date",
    "post_title"
  ],
  "retained_fact_names": [
    "post_type",
    "revision_id"
  ],
  "attribution": [
    "authenticated_user; actor_id=1; channel=cli"
  ],
  "limitations": "Changed field names, actor ID, object ID, revision ID and time are retained. Original title/body values are deliberately redacted. This native API exercise is not a browser editor test.",
  "alternatives": "Use native WordPress Revisions for retained before/after title and body text; backups if revisions or audit records are absent.",
  "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": "content-api-edit.json",
  "screenshot": "content-api-edit-detail.png"
}
