{
  "format_version": 1,
  "fixture_id": "event-record-lifecycle-smoke",
  "source": {
    "kind": "synthetic",
    "description": "Synthetic normalized event-service fixture covering staged append, activate, deactivate, and remove semantics across sequential trigger passes."
  },
  "state": {
    "calendar": {
      "year": 1830,
      "month_slot": 0,
      "phase_slot": 0,
      "tick_slot": 0
    },
    "world_flags": {
      "sandbox": false
    },
    "companies": [],
    "event_runtime_records": [
      {
        "record_id": 60,
        "trigger_kind": 7,
        "active": true,
        "one_shot": true,
        "effects": [
          {
            "kind": "append_event_record",
            "record": {
              "record_id": 64,
              "trigger_kind": 7,
              "active": true,
              "effects": [
                {
                  "kind": "set_candidate_availability",
                  "name": "Appended Industry",
                  "value": 1
                }
              ]
            }
          },
          {
            "kind": "deactivate_event_record",
            "record_id": 61
          },
          {
            "kind": "activate_event_record",
            "record_id": 62
          },
          {
            "kind": "remove_event_record",
            "record_id": 63
          }
        ]
      },
      {
        "record_id": 61,
        "trigger_kind": 7,
        "active": true,
        "effects": [
          {
            "kind": "set_world_flag",
            "key": "deactivated_after_first_pass",
            "value": true
          }
        ]
      },
      {
        "record_id": 62,
        "trigger_kind": 7,
        "active": false,
        "effects": [
          {
            "kind": "set_special_condition",
            "label": "Activated On Second Pass",
            "value": 1
          }
        ]
      },
      {
        "record_id": 63,
        "trigger_kind": 7,
        "active": true,
        "effects": [
          {
            "kind": "set_world_flag",
            "key": "removed_after_first_pass",
            "value": true
          }
        ]
      }
    ]
  },
  "commands": [
    {
      "kind": "service_trigger_kind",
      "trigger_kind": 7
    },
    {
      "kind": "service_trigger_kind",
      "trigger_kind": 7
    }
  ],
  "expected_summary": {
    "calendar": {
      "year": 1830,
      "month_slot": 0,
      "phase_slot": 0,
      "tick_slot": 0
    },
    "world_flag_count": 3,
    "company_count": 0,
    "event_runtime_record_count": 4,
    "candidate_availability_count": 1,
    "special_condition_count": 1,
    "enabled_special_condition_count": 1,
    "total_event_record_service_count": 5,
    "periodic_boundary_call_count": 0,
    "total_trigger_dispatch_count": 2,
    "dirty_rerun_count": 0,
    "total_company_cash": 0
  },
  "expected_state_fragment": {
    "candidate_availability": {
      "Appended Industry": 1
    },
    "special_conditions": {
      "Activated On Second Pass": 1
    },
    "world_flags": {
      "deactivated_after_first_pass": true,
      "removed_after_first_pass": true
    },
    "event_runtime_records": [
      {
        "record_id": 60,
        "service_count": 1,
        "has_fired": true,
        "active": true
      },
      {
        "record_id": 61,
        "service_count": 1,
        "active": false
      },
      {
        "record_id": 62,
        "service_count": 1,
        "active": true
      },
      {
        "record_id": 64,
        "service_count": 1,
        "active": true
      }
    ]
  }
}
