# Data dictionary

Synthetic AI governance dataset for the fictional Larkmoor Financial Group. Generated by `analytics/generate_data.py`.
All dates are ISO 8601 (`YYYY-MM-DD`). An empty value means not applicable or not yet occurred.

## Relationships

```
business_units 1--* owners
business_units 1--* ai_systems *--1 owners
models         1--* ai_systems
ai_systems     1--* system_controls *--1 controls
system_controls 1--* control_tests
system_controls 1--* evidence
system_controls 1--* findings 1--* remediation_actions
system_controls 1--* exceptions
ai_systems     1--* incidents 1--* incident_refunds
ai_systems     1--* model_changes *--1 models
ai_systems     1--* lifecycle_events
```

## business_units

Organizational units that own AI systems. Grain: one row per business unit. Rows: 8.

| Column | Description |
|---|---|
| `bu_id` | Primary key. |
| `bu_name` | Business unit name. |
| `accountable_executive` | Executive accountable for residual risk in the unit. |
| `executive_title` | Title of the accountable executive. |

## owners

People who own AI systems day to day. Grain: one row per owner. Rows: 24.

| Column | Description |
|---|---|
| `owner_id` | Primary key. |
| `owner_name` | Fictional person name. |
| `owner_title` | Role title. |
| `bu_id` | Business unit. FK to business_units. |

## models

Models and providers used by systems. All names are fictional. Grain: one row per model. Rows: 8.

| Column | Description |
|---|---|
| `model_id` | Primary key. |
| `provider` | Provider name, or In-house. |
| `model_name` | Model or model family. |
| `hosting` | Where the model runs. |

## controls

Control catalog from the illustrative policy. Grain: one row per control. Rows: 24.

| Column | Description |
|---|---|
| `control_id` | Primary key, for example HUM-01. |
| `control_name` | Short control name. |
| `domain` | Governance, Data, Human oversight, Security, Validation, Third party, Financial or Operations. |
| `objective` | What the control is meant to achieve. |
| `is_critical` | 1 if missing verified evidence blocks release. |
| `evidence_required` | Artifact that evidences the control. |
| `control_owner_role` | Role that operates the control. |
| `test_frequency_days` | Target days between tests. |
| `evidence_validity_days` | Days an evidence record stays valid. |
| `nist_ai_rmf` | Indicative NIST AI RMF 1.0 subcategories, pipe separated. |
| `iso_42001` | Indicative ISO/IEC 42001:2023 Annex A references. |
| `owasp_genai` | Indicative OWASP GenAI references. |

## ai_systems

The enterprise AI inventory. Grain: one row per ai system. Rows: 75.

| Column | Description |
|---|---|
| `system_id` | Primary key, AIS-001 to AIS-075. |
| `system_name` | System name. |
| `bu_id` | Owning business unit. FK. |
| `business_purpose` | What the system does and for whom. |
| `owner_id` | System owner. FK to owners. |
| `model_id` | Model used. FK to models. |
| `lifecycle_status` | Status on the reporting date: Proposed, In assessment, Approved, Production, Suspended or Retired. |
| `registered_date` | Date entered in the inventory. |
| `approved_date` | Date release was authorized. Empty if not yet. |
| `production_date` | Go-live date. Empty if not live. |
| `suspended_date` | Date suspended, if currently suspended. |
| `retired_date` | Date retired. Empty if not retired. |
| `f_business_impact` | Assessment factor level 0 to 3. |
| `f_financial_exposure` | Assessment factor level 0 to 3. |
| `f_data_sensitivity` | Assessment factor level 0 to 3. |
| `f_autonomy` | Assessment factor level 0 to 3 (A0 to A3). |
| `f_human_oversight` | Assessment factor level 0 to 3. Higher means less oversight. |
| `f_external_impact` | Assessment factor level 0 to 3. |
| `f_security_posture` | Assessment factor level 0 to 3. Higher means weaker assurance. |
| `f_third_party` | Assessment factor level 0 to 3. |
| `f_regulatory` | Assessment factor level 0 to 3. |
| `autonomy_level` | Label for f_autonomy: A0 to A3. |
| `data_sensitivity` | Label for f_data_sensitivity. |
| `customer_facing` | 1 if external impact level is 2 or 3. |
| `inherent_score` | Weighted score 0 to 100, before controls. |
| `inherent_tier` | Low, Moderate, High or Critical, after escalation rules. |
| `last_review_date` | Most recent periodic review. |
| `next_review_date` | Next required review. Interval depends on tier. |

## system_controls

Which controls policy requires for each system, and when each was implemented. Grain: one row per system and required control. Rows: 1,036.

| Column | Description |
|---|---|
| `system_id` | FK to ai_systems. |
| `control_id` | FK to controls. |
| `implemented_date` | Date implemented. Empty if not implemented. |

## control_tests

Results of control tests on live systems. Grain: one row per test execution. Rows: 1,892.

| Column | Description |
|---|---|
| `test_id` | Primary key. |
| `system_id` | FK. |
| `control_id` | FK. |
| `test_date` | Date the test was performed. |
| `result` | Pass or Fail. |
| `tested_by_line` | First line, Second line or Internal audit. |
| `method` | Inspection, Reperformance or Automated check. |

## evidence

Evidence register entries supporting controls. Metadata only; no documents. Grain: one row per evidence record. Rows: 1,599.

| Column | Description |
|---|---|
| `evidence_id` | Primary key. |
| `system_id` | FK. |
| `control_id` | FK. |
| `evidence_type` | Kind of artifact. |
| `collected_date` | Date collected. |
| `valid_until` | Expiry date. Evidence is current while the reporting date is before this. |
| `collected_by_role` | Role that provided it. |
| `source_system` | Where the artifact is held. |

## findings

Issues raised by control tests, second-line reviews, audit and incidents. Grain: one row per finding. Rows: 110.

| Column | Description |
|---|---|
| `finding_id` | Primary key. |
| `system_id` | FK. |
| `control_id` | Control the finding relates to. FK. |
| `severity` | Critical, High, Medium or Low. |
| `source` | Control test, Second-line review, Internal audit or Incident. |
| `source_test_id` | Failed test that raised the finding, if any. |
| `title` | Short description. |
| `opened_date` | Date opened. |
| `due_date` | Opened date plus the severity SLA (15, 30, 60 or 90 days). |
| `closed_date` | Date closed. Empty if open. |
| `owner_id` | Accountable owner. FK. |

## remediation_actions

Actions taken to close findings. Grain: one row per action. Rows: 139.

| Column | Description |
|---|---|
| `action_id` | Primary key. |
| `finding_id` | FK to findings. |
| `action` | What will be done. |
| `owner_role` | Role responsible. |
| `due_date` | Action due date. |
| `completed_date` | Date completed. Empty if open. |

## exceptions

Time-boxed approvals to operate without a required control. Grain: one row per exception. Rows: 19.

| Column | Description |
|---|---|
| `exception_id` | Primary key. |
| `system_id` | FK. |
| `control_id` | Control not met. FK. |
| `rationale` | Why the control cannot be met. |
| `compensating_control` | What addresses the risk meanwhile. |
| `approved_by_role` | Approving body. |
| `granted_date` | Date granted. |
| `expiry_date` | Date authority ends. |
| `closed_date` | Date closed. Empty if still open. |

## incidents

Operational incidents involving AI systems. Grain: one row per incident. Rows: 43.

| Column | Description |
|---|---|
| `incident_id` | Primary key. |
| `system_id` | FK. |
| `detected_date` | Date detected. |
| `category` | Type of incident. |
| `severity` | Sev1 (highest) to Sev4. |
| `resolved_date` | Date resolved. Empty if open. |
| `detection_source` | How it was found. |
| `customer_impact` | 1 if customers were affected. |
| `description` | What happened. |

## incident_refunds

Refund-level source records behind incident INC-0031. Every figure quoted about the incident is derived from these rows. Grain: one row per refund. Rows: 44.

| Column | Description |
|---|---|
| `refund_id` | Primary key. |
| `incident_id` | FK to incidents. |
| `system_id` | FK. |
| `customer_ref` | Synthetic customer reference. Not a real person. |
| `refund_date` | Date the refund was issued. |
| `sequence_in_day` | Order of the refund among that customer's refunds that day. |
| `amount_usd` | Refund amount in whole US dollars. |
| `prior_refunds_today_usd` | Total already refunded to the customer that day before this refund. |
| `policy_version` | Agent policy version in force when the refund was issued. |
| `rule_applied` | Agent policy rule that decided the request. |
| `supervisor_reviewed` | 1 if a supervisor reviewed the refund before it was issued. |

## model_changes

Provider or model changes and the reassessments they trigger. Grain: one row per change and affected system. Rows: 72.

| Column | Description |
|---|---|
| `change_id` | Primary key. |
| `model_id` | Model that changed. FK. |
| `system_id` | System affected. FK. |
| `change_date` | Date of the change. |
| `change_type` | Minor version, Major version, Retrain, Terms change, Feature change or Deprecation notice. |
| `change_note` | Description. |
| `reassessment_required` | 1 if policy requires reassessment. |
| `reassessment_due_date` | Change date plus 30 days (High, Critical) or 60 days. |
| `reassessment_completed_date` | Date completed. Empty if pending. |

## lifecycle_events

Governance history for each system. Grain: one row per event. Rows: 281.

| Column | Description |
|---|---|
| `event_id` | Primary key. |
| `system_id` | FK. |
| `event_date` | Date of the event. |
| `event_type` | Registered, Risk assessed, Release authorized, Deployed, Suspended and so on. |
| `actor_role` | Role that took the action. |
| `note` | Detail, where recorded. |
