# Schema All configurations have three splits: `train`, `validation`, and `test`. Parquet is the primary format; `jsonl/` contains equivalent compressed JSONL mirrors. Do not concatenate the mirrors with Parquet as additional training data. ## SFT configurations `sft` and `sft_extended` are disjoint sets of supervised source messages. Each row contains a conversational `prompt` and a one-message assistant `completion`. Tool results caused by the target completion are never included in its prompt. | Field | Meaning | |---|---| | `id` | Fingerprint-derived example identifier | | `session_id` | Pseudonymous source session | | `group_id` | Connected parent/fork/duplicate-task family | | `project_id` | Pseudonymous source project | | `split` | Assigned split | | `quality_flags` | Observed limitations; not a correctness score | | `prompt` | Chronological context available before the target action | | `completion` | One recorded Flash assistant message | | `teacher_model` | Original recorded model label | | `teacher_variant` | Recorded reasoning preset, if present | | `source_message_id` | Link to the canonical trajectory metadata | | `target_kind` | `tool_call`, `reasoning_and_answer`, or `answer` | | `prompt_tokens_cl100k` | Sum of serialized message token counts | | `completion_tokens_cl100k` | Serialized completion token count | | `dropped_context_messages` | Number of historical messages omitted by windowing | Each message has `role`, `content`, `reasoning_content`, `tool_calls`, `tool_call_id`, and `name`. Unused fields are empty. Each tool call uses the OpenAI-style `id`, `type: function`, and `function: {name, arguments}` structure. `arguments` is a valid JSON string, preserving heterogeneous tool schemas in one Arrow type. Some training chat templates expect a dictionary instead; parse that string before applying such a template. Reasoning is stored separately from final text. It is the provider-returned reasoning trace, not access to internal activations, logits or model weights. ## Canonical trajectories `trajectories` keeps complete retained session histories, without SFT context windowing, and also includes malformed/error steps for analysis. It is the canonical source for constructing a different training format. Additional columns: - `messages`: normalized chronological messages, including paired tool results. - `message_metadata_json`: a parallel list with the source sequence, teacher, source-message ID, flags, finish status and `flash_target` eligibility. - `instruction_snapshot_json`: persisted instruction snapshots and sequence boundaries. These are not a verified reconstruction of each API request and are not silently inserted into SFT prompts. - `flash_assistant_steps`: number of recorded Flash messages in the session. - `unique_text_tokens_cl100k`: serialized canonical message tokens, counted once per persisted occurrence. The field name does not imply semantic deduplication. Some mixed sessions contain another teacher's earlier messages as context. They are explicitly marked `other_teacher_context_only`; none is an SFT target. Recoverable text attachments are embedded in the associated user message with attachment boundary markers and flagged `text_attachment_included`. Identical or closely matching attached plans are included in task-family split grouping. ## Quality flags All examples disclose missing historical system-prompt reconstruction and missing original tool schemas. The source did not record enough information to faithfully recreate every full model request. The extended set includes context-windowed targets, targets affected by missing binary attachments, failed tool calls, or missing task context. Whole tool-call and result groups are retained when selecting a context window. A recent user request is retained where available. Windows use a 32,768-token budget under `cl100k_base`; this is a reference encoding, not a promise about a future student tokenizer or chat-template length. Oversized pinned requests or completions are retained only in the extended set with `context_over_budget`; filter or re-window them before training. Failed/empty assistant generations and structurally incomplete calls are excluded from SFT supervision but remain in canonical trajectories. A tool result with a failing test exit code can still be useful context. Source output truncation is flagged and not silently filled in. The `privacy_redacted_tool_output` flag marks contexts containing an explicit omission of a private account directory or device inventory. The matching tool call and result are retained so tool causality remains valid.