# frozen-afk/you_know_i_test_things architecture

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

- Interactive diagram: https://gitdiagram.com/frozen-afk/you_know_i_test_things
- Repository: https://github.com/frozen-afk/you_know_i_test_things

## Overview

This repository presents the Santa 2026 Elf Calculator competition and provides both an interactive browser playground and a Python solver for producing and checking puzzle submissions. The browser workflow is: enter or select a puzzle, solve or edit a program, then inspect its validity and execution trace. The site also explains the planner, exposes the Python source, and guides command-line runs. The solver excerpts are partial, so internal Python call relationships not directly shown are omitted or marked unverified.

Main entry points: [`src/App.tsx`](https://github.com/frozen-afk/you_know_i_test_things/blob/main/src/App.tsx) (Tabbed application), [`solver/elf_solver.py`](https://github.com/frozen-afk/you_know_i_test_things/blob/main/solver/elf_solver.py) (Solver CLI), [`src/components/Playground.tsx`](https://github.com/frozen-afk/you_know_i_test_things/blob/main/src/components/Playground.tsx) (Puzzle playground), [`src/components/CopyButton.tsx`](https://github.com/frozen-afk/you_know_i_test_things/blob/main/src/components/CopyButton.tsx) (Copy control)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["Web experience"]
  node_app["Tabbed application<br/>[App.tsx]"]
  node_playground["Puzzle playground<br/>[Playground.tsx]"]
  node_approach["Planner explanation<br/>[Approach.tsx]"]
  node_codeview["Source viewer<br/>[CodeView.tsx]"]
  node_runguide["Run guide<br/>[RunGuide.tsx]"]
  node_copy["Copy control<br/>[CopyButton.tsx]"]
end

subgraph group_browser["Browser planner"]
  node_presets["Puzzle presets<br/>[examples.ts]"]
  node_browserplanner["Browser planner<br/>[elf.ts]"]
end

subgraph group_python["Python solver"]
  node_pythoncli["Solver CLI<br/>[elf_solver.py]"]
  node_planning["Program search<br/>[elf_solver.py]"]
  node_verification["Program verifier<br/>[elf_solver.py]"]
  node_submission["Submission output<br/>[elf_solver.py]"]
  node_synthetic["Synthetic puzzle generator<br/>[make_synthetic.py]"]
end

subgraph group_guides["Solver guidance"]
  node_approachcontent["Planner stages<br/>[Approach.tsx]"]
end

node_visitor(("Competition user"))
node_puzzledata["Puzzle CSVs"]

node_visitor -->|"opens"| node_app
node_app -->|"renders"| node_playground
node_app -->|"renders"| node_approach
node_app -->|"renders"| node_codeview
node_app -->|"renders"| node_runguide
node_playground -->|"loads"| node_presets
node_playground -->|"solves and verifies"| node_browserplanner
node_playground -->|"renders"| node_copy
node_codeview -->|"renders"| node_copy
node_runguide -->|"renders"| node_copy
node_approach -->|"presents"| node_approachcontent
node_visitor -.->|"runs commands"| node_pythoncli
node_puzzledata -.->|"supplies puzzle CSV"| node_pythoncli
node_pythoncli -.->|"dispatches solve"| node_planning
node_pythoncli -.->|"dispatches check"| node_verification
node_planning -.->|"writes programs"| node_submission
node_pythoncli -->|"rechecks results"| node_verification

click node_app "https://github.com/frozen-afk/you_know_i_test_things/blob/main/src/App.tsx"
click node_playground "https://github.com/frozen-afk/you_know_i_test_things/blob/main/src/components/Playground.tsx"
click node_approach "https://github.com/frozen-afk/you_know_i_test_things/blob/main/src/components/Approach.tsx"
click node_codeview "https://github.com/frozen-afk/you_know_i_test_things/blob/main/src/components/CodeView.tsx"
click node_runguide "https://github.com/frozen-afk/you_know_i_test_things/blob/main/src/components/RunGuide.tsx"
click node_copy "https://github.com/frozen-afk/you_know_i_test_things/blob/main/src/components/CopyButton.tsx"
click node_presets "https://github.com/frozen-afk/you_know_i_test_things/blob/main/src/lib/examples.ts"
click node_browserplanner "https://github.com/frozen-afk/you_know_i_test_things/blob/main/src/lib/elf.ts"
click node_pythoncli "https://github.com/frozen-afk/you_know_i_test_things/blob/main/solver/elf_solver.py"
click node_planning "https://github.com/frozen-afk/you_know_i_test_things/blob/main/solver/elf_solver.py"
click node_verification "https://github.com/frozen-afk/you_know_i_test_things/blob/main/solver/elf_solver.py"
click node_submission "https://github.com/frozen-afk/you_know_i_test_things/blob/main/solver/elf_solver.py"
click node_synthetic "https://github.com/frozen-afk/you_know_i_test_things/blob/main/solver/make_synthetic.py"
click node_approachcontent "https://github.com/frozen-afk/you_know_i_test_things/blob/main/src/components/Approach.tsx"

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_app,node_playground,node_approach,node_codeview,node_runguide,node_copy,node_visitor toneBlue
class node_presets,node_browserplanner toneAmber
class node_pythoncli,node_planning,node_verification,node_submission,node_synthetic toneMint
class node_approachcontent toneRose
class node_puzzledata toneIndigo
```

## Components

### Web experience

- [Tabbed application](https://github.com/frozen-afk/you_know_i_test_things/blob/main/src/App.tsx): `src/App.tsx`
- [Puzzle playground](https://github.com/frozen-afk/you_know_i_test_things/blob/main/src/components/Playground.tsx): `src/components/Playground.tsx`
- [Planner explanation](https://github.com/frozen-afk/you_know_i_test_things/blob/main/src/components/Approach.tsx): `src/components/Approach.tsx`
- [Source viewer](https://github.com/frozen-afk/you_know_i_test_things/blob/main/src/components/CodeView.tsx): `src/components/CodeView.tsx`
- [Run guide](https://github.com/frozen-afk/you_know_i_test_things/blob/main/src/components/RunGuide.tsx): `src/components/RunGuide.tsx`
- [Copy control](https://github.com/frozen-afk/you_know_i_test_things/blob/main/src/components/CopyButton.tsx): `src/components/CopyButton.tsx`

### Browser planner

- [Puzzle presets](https://github.com/frozen-afk/you_know_i_test_things/blob/main/src/lib/examples.ts): `src/lib/examples.ts`
- [Browser planner](https://github.com/frozen-afk/you_know_i_test_things/blob/main/src/lib/elf.ts): `src/lib/elf.ts`

### Python solver

- [Solver CLI](https://github.com/frozen-afk/you_know_i_test_things/blob/main/solver/elf_solver.py): `solver/elf_solver.py`
- [Program search](https://github.com/frozen-afk/you_know_i_test_things/blob/main/solver/elf_solver.py): `solver/elf_solver.py`
- [Program verifier](https://github.com/frozen-afk/you_know_i_test_things/blob/main/solver/elf_solver.py): `solver/elf_solver.py`
- [Submission output](https://github.com/frozen-afk/you_know_i_test_things/blob/main/solver/elf_solver.py): `solver/elf_solver.py`
- [Synthetic puzzle generator](https://github.com/frozen-afk/you_know_i_test_things/blob/main/solver/make_synthetic.py): `solver/make_synthetic.py`

### Solver guidance

- [Planner stages](https://github.com/frozen-afk/you_know_i_test_things/blob/main/src/components/Approach.tsx): `src/components/Approach.tsx`

### Other components

- **Competition user**
- **Puzzle CSVs**

## Connections

- Competition user → Tabbed application: opens
- Tabbed application → Puzzle playground: renders (evidence: `src/App.tsx`)
- Tabbed application → Planner explanation: renders (evidence: `src/App.tsx`)
- Tabbed application → Source viewer: renders (evidence: `src/App.tsx`)
- Tabbed application → Run guide: renders (evidence: `src/App.tsx`)
- Puzzle playground → Puzzle presets: loads (evidence: `src/components/Playground.tsx`)
- Puzzle playground → Browser planner: solves and verifies (evidence: `src/components/Playground.tsx`)
- Puzzle playground → Copy control: renders (evidence: `src/components/Playground.tsx`)
- Source viewer → Copy control: renders (evidence: `src/components/CodeView.tsx`)
- Run guide → Copy control: renders (evidence: `src/components/RunGuide.tsx`)
- Planner explanation → Planner stages: presents (evidence: `src/components/Approach.tsx`)
- Competition user → Solver CLI: runs commands
- Puzzle CSVs → Solver CLI: supplies puzzle CSV
- Solver CLI → Program search: dispatches solve (evidence: `solver/elf_solver.py`)
- Solver CLI → Program verifier: dispatches check (evidence: `solver/elf_solver.py`)
- Program search → Submission output: writes programs (evidence: `solver/elf_solver.py`)
- Solver CLI → Program verifier: rechecks results (evidence: `solver/elf_solver.py`)
