# brendenlake/scan architecture

> Architecture diagram of the GitHub repository brendenlake/scan, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-17). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/brendenlake/scan
- Repository: https://github.com/brendenlake/scan

## Overview

SCAN is a static research dataset for evaluating compositional language-to-action generalization, not an executable application. Researchers use command/action pairs from the full corpus or select a documented train-test split, then evaluate models on its held-out examples. The repository provides baseline, length, primitive/template generalization, filler, few-shot, and data-size variations. The tree and README show these dataset boundaries and intended uses, but no source excerpts show scripts or runtime processing, so the graph does not infer a processing pipeline.

Main entry points: [`tasks.txt`](https://github.com/brendenlake/scan/blob/master/tasks.txt) (SCAN command pairs), [`simple_split`](https://github.com/brendenlake/scan/tree/master/simple_split) (Simple split), [`length_split`](https://github.com/brendenlake/scan/tree/master/length_split) (Length split), [`add_prim_split`](https://github.com/brendenlake/scan/tree/master/add_prim_split) (New primitive)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_corpus["Core corpus"]
  node_corpus_data["SCAN command pairs<br/>[tasks.txt]"]
end

subgraph group_generalization["Generalization splits"]
  node_simple["Simple split"]
  node_length["Length split"]
  node_primitive["New primitive"]
  node_template["New template"]
end

subgraph group_sampling["Sampling variations"]
  node_fillers["Primitive fillers"]
  node_fewshot["Few-shot samples"]
  node_size_variations["Training-size variants"]
  node_primitive_variations["Primitive variants"]
end

node_researchers(("Researchers"))

node_researchers -->|"use command pairs"| node_corpus_data
node_researchers -->|"compare baseline"| node_simple
node_researchers -->|"test length transfer"| node_length
node_researchers -->|"test new primitive"| node_primitive
node_researchers -->|"test new template"| node_template
node_researchers -->|"test filler transfer"| node_fillers
node_researchers -->|"measure few-shot transfer"| node_fewshot
node_researchers -->|"vary training size"| node_size_variations
node_researchers -->|"vary primitive examples"| node_primitive_variations

click node_corpus_data "https://github.com/brendenlake/scan/blob/master/tasks.txt"
click node_simple "https://github.com/brendenlake/scan/tree/master/simple_split"
click node_length "https://github.com/brendenlake/scan/tree/master/length_split"
click node_primitive "https://github.com/brendenlake/scan/tree/master/add_prim_split"
click node_template "https://github.com/brendenlake/scan/tree/master/template_split"
click node_fillers "https://github.com/brendenlake/scan/tree/master/filler_split"
click node_fewshot "https://github.com/brendenlake/scan/tree/master/few_shot_split"
click node_size_variations "https://github.com/brendenlake/scan/tree/master/simple_split/size_variations"
click node_primitive_variations "https://github.com/brendenlake/scan/tree/master/add_prim_split/with_additional_examples"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_corpus_data toneBlue
class node_simple,node_length,node_primitive,node_template toneAmber
class node_fillers,node_fewshot,node_size_variations,node_primitive_variations toneMint
class node_researchers toneIndigo
```

## Components

### Core corpus

- [SCAN command pairs](https://github.com/brendenlake/scan/blob/master/tasks.txt): `tasks.txt`

### Generalization splits

- [Simple split](https://github.com/brendenlake/scan/tree/master/simple_split): `simple_split`
- [Length split](https://github.com/brendenlake/scan/tree/master/length_split): `length_split`
- [New primitive](https://github.com/brendenlake/scan/tree/master/add_prim_split): `add_prim_split`
- [New template](https://github.com/brendenlake/scan/tree/master/template_split): `template_split`

### Sampling variations

- [Primitive fillers](https://github.com/brendenlake/scan/tree/master/filler_split): `filler_split`
- [Few-shot samples](https://github.com/brendenlake/scan/tree/master/few_shot_split): `few_shot_split`
- [Training-size variants](https://github.com/brendenlake/scan/tree/master/simple_split/size_variations): `simple_split/size_variations`
- [Primitive variants](https://github.com/brendenlake/scan/tree/master/add_prim_split/with_additional_examples): `add_prim_split/with_additional_examples`

### Other components

- **Researchers**

## Connections

- Researchers → SCAN command pairs: use command pairs (evidence: `README.md`)
- Researchers → Simple split: compare baseline (evidence: `README.md`)
- Researchers → Length split: test length transfer (evidence: `README.md`)
- Researchers → New primitive: test new primitive (evidence: `README.md`)
- Researchers → New template: test new template (evidence: `README.md`)
- Researchers → Primitive fillers: test filler transfer (evidence: `README.md`)
- Researchers → Few-shot samples: measure few-shot transfer (evidence: `README.md`)
- Researchers → Training-size variants: vary training size (evidence: `README.md`)
- Researchers → Primitive variants: vary primitive examples (evidence: `README.md`)
