# kidOS Research data codebook

## Record keys and dates

Dates are inclusive UTC calendar days. Events and installation totals filter by event time, preferences by snapshot time, and browser sessions by the first server receipt. CSVs use UTC ISO timestamps. Blank fields indicate unavailable or inapplicable values.

- `installation_id` — Random ID for a kidOS installation in a browser. Join by this field when working at installation level.
- `session_id` — Random ID for an activity session. Join Events and Browser sessions using both installation_id and session_id. A new session starts on page load or after at least 30 minutes without recorded activity.
- `participant_id` — Optional random child-profile ID. Join Events and Preferences using installation_id and participant_id when both rows identify a profile. A blank ID denotes a shared desktop or an event without a profile ID. Browser sessions have no participant ID.

## Events

One row per matching event.

- `event_id` — Event identifier. Use it together with installation_id to identify a shared event.
- `sequence` — Recorded event order within a session. Gaps can occur when events were excluded from sharing or by filters.
- `occurred_at_utc` — Event time recorded on the device, expressed in UTC.
- `app_id` — The kidOS app or view that recorded the event.
- `event_name` — The event type. The list below gives the current event codes.
- `target` — An optional control label, item, outcome, or exit action. Its meaning depends on the event type.
- `game` — Game identifier when reported.
- `mode` — Game mode when reported.
- `prompt` — Prompt shown to the participant when reported.
- `expected` — Expected answer when reported.
- `entered` — Response entered by the participant when reported.
- `accuracy` — Accuracy on a scale from 0 to 1 when reported.
- `score` — Score in the game’s own units when reported.
- `item` — Game item involved in the event when reported.
- `sheet` — Coloring page when reported.
- `region` — Coloring page region when reported.
- `totalRegions` — Total regions on the coloring page when reported.
- `target_json` — JSON copy of the target. Use it to recover text if the spreadsheet-safe target cell has a leading apostrophe.
- `details_json` — JSON object containing the event’s recorded details.

### Event types

- `app.open` — Opened app
- `app.close` — Closed app
- `app.load_failed` — App failed to open
- `ui.click` — Clicked a control
- `appearance.change` — Changed appearance
- `parent.save_settings` — Saved Parent Settings
- `audio.play_requested` — Requested audio playback
- `audio.play_started` — Started audio playback
- `audio.play_failed` — Audio playback failed
- `game.math.stimulus` — Math prompt shown
- `game.math.attempt` — Math answer submitted
- `game.days.stimulus` — Days prompt shown
- `game.days.attempt` — Days answer submitted
- `game.fruit.stimulus` — Fruit prompt shown
- `game.fruit.attempt` — Fruit answer submitted
- `game.laundry.attempt` — Laundry move attempted
- `game.color.stimulus` — Coloring page shown
- `game.color.attempt` — Coloring action attempted
- `game.snake.food` — Collected snake food
- `game.gesture.attempt` — Gesture attempted
- `game.emotion.attempt` — Emotion response

## Installations

One row per installation with matching activity. Counts and timestamps reflect the selected event filters.

- `events` — Count of matching events.
- `sessions` — Count of distinct sessions with matching events.
- `app_opens` — Count of matching app.open events.
- `first_event_at_utc` — Earliest matching event time, expressed in UTC.
- `last_event_at_utc` — Latest matching event time, expressed in UTC.

## Preferences

Each row contains a shared configuration snapshot. A date range selects snapshots recorded within that range.

- `recorded_at_utc` — When the snapshot was recorded. The export keeps the latest matching snapshot for each installation and participant.
- `theme` — Selected appearance theme.
- `wallpaper` — Selected wallpaper category. Custom wallpapers are identified by category.
- `icon_size` — Configured desktop icon size.
- `focus_color` — Configured focus indicator color.
- `enabled_apps_json` — JSON array of enabled app IDs.
- `tracked_apps_json` — JSON array of app IDs selected for digital wellbeing tracking.
- `number_lab_limit` — Configured Number Lab limit.
- `wellbeing_enabled` — Whether digital wellbeing is enabled.
- `daily_limit_minutes` — Configured daily limit in minutes. A value of 0 means the limit is off.
- `bookmarks_daily_limit_minutes` — Configured bookmarks limit in minutes. A value of 0 means the limit is off.
- `websites_daily_limit_minutes` — Configured websites limit in minutes. A value of 0 means the limit is off.
- `web_games_daily_limit_minutes` — Configured web games limit in minutes. A value of 0 means the limit is off.

## Browser sessions

Each row represents one session with shared activity. Display dimensions reflect the browser environment when the session first shared an event.

- `first_received_at_utc` — When the server first received a shared event for the session. Upload delays can make this later than the first event time.
- `browser_name` — Browser name parsed from the reported user agent when available.
- `browser_version` — Browser version parsed from the reported user agent when available.
- `os_name` — Operating system name parsed from the reported user agent when available.
- `os_version` — Operating system version parsed from the reported user agent when available.
- `device_type` — Device category parsed from the reported user agent when available.
- `browser_data_recorded` — True when a browser metadata record exists for the session. Older sessions can have false and blank browser fields.
- `screen_width_css_px` — Browser-reported screen width in CSS pixels at the first shareable event.
- `screen_height_css_px` — Browser-reported screen height in CSS pixels at the first shareable event.
- `viewport_width_css_px` — Browser viewport width in CSS pixels at the first shareable event.
- `viewport_height_css_px` — Browser viewport height in CSS pixels at the first shareable event.
- `device_pixel_ratio` — Browser-reported ratio of device pixels to CSS pixels.
- `touch_supported` — Whether the browser reported at least one touch point. False means it reported zero. A blank means the value was unavailable.
