> ## Documentation Index
> Fetch the complete documentation index at: https://offthepace.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# int_event_corrections

> Safety car, red flag, and other race event corrections.

<Note>Part of the [Residual](/transform/families/residual) family.</Note>

Safety car, red flag, and other race event corrections. One row per lap with event flags indicating whether the lap should be treated as anomalous for skill extraction (e.g., SC restart, red flag laps).

## Lineage

```mermaid theme={null}
flowchart LR
  stg_laps --> int_event_corrections
  int_event_corrections --> fct_cliff_prediction_features
  int_event_corrections --> int_constructor_structural_pace
  int_event_corrections --> int_dirty_air_tax_component
  int_event_corrections --> int_driver_race_skill_loro
  int_event_corrections --> int_lap_normalized_pace
  int_event_corrections --> int_lap_residual_decomposed
  int_event_corrections --> mart_corner_skill_driver
  style int_event_corrections fill:#e40404,stroke:#e40404,color:#fff
```

## Overview

| Property          | Value                                    |
| ----------------- | ---------------------------------------- |
| Layer             | `intermediate`                           |
| Family            | [Residual](/transform/families/residual) |
| Contract enforced | No                                       |
| Upstream          | [`stg_laps`](../stg/stg_laps)            |

**2 tests** [guard](/transform/ci/overview) this model  -  2 generic, 0 singular.

## Columns

| Column   | Type | Nullable | Tests                                                                        | Description              |
| -------- | ---- | -------- | ---------------------------------------------------------------------------- | ------------------------ |
| `lap_id` |      | Yes      | [`not_null`](/transform/ci/structural), [`unique`](/transform/ci/structural) | Foreign key to stg\_laps |
