# sarveshsonkusre02/head-of-research architecture

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

- Interactive diagram: https://gitdiagram.com/sarveshsonkusre02/head-of-research
- Repository: https://github.com/sarveshsonkusre02/head-of-research

## Overview

This repository is a three-task benchmark suite with reference implementations and graders, run together by `run_all.py`. The workflow is: execute the task 01 workspace-tool reference and grade its effects, run and grade the task 02 transaction-cleaning pipeline, then grade the task 03 interval-merging solution. The sampled source shows the runner’s calls and arguments; implementation details inside the referenced task modules were not sampled.

Main entry points: [`adzzat-head-of-research-final/run_all.py`](https://github.com/sarveshsonkusre02/head-of-research/blob/main/adzzat-head-of-research-final/run_all.py) (Benchmark Runner), [`adzzat-head-of-research-final/benchmarks/task01/tools.py`](https://github.com/sarveshsonkusre02/head-of-research/blob/main/adzzat-head-of-research-final/benchmarks/task01/tools.py) (Workspace Tools), [`adzzat-head-of-research-final/benchmarks/task01/reference.py`](https://github.com/sarveshsonkusre02/head-of-research/blob/main/adzzat-head-of-research-final/benchmarks/task01/reference.py) (Reference Solver), [`adzzat-head-of-research-final/benchmarks/task01/grader.py`](https://github.com/sarveshsonkusre02/head-of-research/blob/main/adzzat-head-of-research-final/benchmarks/task01/grader.py) (Reliability Grader)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_task01["Workspace Reliability"]
  node_workspace_tools["Workspace Tools<br/>[tools.py]"]
  node_workspace_reference["Reference Solver<br/>[reference.py]"]
  node_workspace_grader["Reliability Grader<br/>[grader.py]"]
end

subgraph group_task02["Transaction Pipeline"]
  node_transaction_pipeline["CSV Cleaner<br/>[pipeline.py]"]
  node_transaction_grader["Pipeline Grader<br/>[grader.py]"]
end

subgraph group_task03["Interval Merging"]
  node_interval_solution["Interval Merger<br/>[solution.py]"]
  node_interval_grader["Interval Grader<br/>[grader.py]"]
end

node_runner["Benchmark Runner<br/>[run_all.py]"]

node_runner -->|"creates tools"| node_workspace_tools
node_runner -->|"calls solver"| node_workspace_reference
node_runner -->|"grades effects"| node_workspace_grader
node_runner -->|"cleans CSV"| node_transaction_pipeline
node_runner -->|"grades outputs"| node_transaction_grader
node_runner -->|"passes merger"| node_interval_solution
node_runner -->|"grades merger"| node_interval_grader

click node_runner "https://github.com/sarveshsonkusre02/head-of-research/blob/main/adzzat-head-of-research-final/run_all.py"
click node_workspace_tools "https://github.com/sarveshsonkusre02/head-of-research/blob/main/adzzat-head-of-research-final/benchmarks/task01/tools.py"
click node_workspace_reference "https://github.com/sarveshsonkusre02/head-of-research/blob/main/adzzat-head-of-research-final/benchmarks/task01/reference.py"
click node_workspace_grader "https://github.com/sarveshsonkusre02/head-of-research/blob/main/adzzat-head-of-research-final/benchmarks/task01/grader.py"
click node_transaction_pipeline "https://github.com/sarveshsonkusre02/head-of-research/blob/main/adzzat-head-of-research-final/benchmarks/task02/pipeline.py"
click node_transaction_grader "https://github.com/sarveshsonkusre02/head-of-research/blob/main/adzzat-head-of-research-final/benchmarks/task02/grader.py"
click node_interval_solution "https://github.com/sarveshsonkusre02/head-of-research/blob/main/adzzat-head-of-research-final/benchmarks/task03/solution.py"
click node_interval_grader "https://github.com/sarveshsonkusre02/head-of-research/blob/main/adzzat-head-of-research-final/benchmarks/task03/grader.py"

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_workspace_tools,node_workspace_reference,node_workspace_grader toneBlue
class node_transaction_pipeline,node_transaction_grader toneAmber
class node_interval_solution,node_interval_grader toneMint
class node_runner toneTeal
```

## Components

### Workspace Reliability

- [Workspace Tools](https://github.com/sarveshsonkusre02/head-of-research/blob/main/adzzat-head-of-research-final/benchmarks/task01/tools.py): `adzzat-head-of-research-final/benchmarks/task01/tools.py`
- [Reference Solver](https://github.com/sarveshsonkusre02/head-of-research/blob/main/adzzat-head-of-research-final/benchmarks/task01/reference.py): `adzzat-head-of-research-final/benchmarks/task01/reference.py`
- [Reliability Grader](https://github.com/sarveshsonkusre02/head-of-research/blob/main/adzzat-head-of-research-final/benchmarks/task01/grader.py): `adzzat-head-of-research-final/benchmarks/task01/grader.py`

### Transaction Pipeline

- [CSV Cleaner](https://github.com/sarveshsonkusre02/head-of-research/blob/main/adzzat-head-of-research-final/benchmarks/task02/pipeline.py): `adzzat-head-of-research-final/benchmarks/task02/pipeline.py`
- [Pipeline Grader](https://github.com/sarveshsonkusre02/head-of-research/blob/main/adzzat-head-of-research-final/benchmarks/task02/grader.py): `adzzat-head-of-research-final/benchmarks/task02/grader.py`

### Interval Merging

- [Interval Merger](https://github.com/sarveshsonkusre02/head-of-research/blob/main/adzzat-head-of-research-final/benchmarks/task03/solution.py): `adzzat-head-of-research-final/benchmarks/task03/solution.py`
- [Interval Grader](https://github.com/sarveshsonkusre02/head-of-research/blob/main/adzzat-head-of-research-final/benchmarks/task03/grader.py): `adzzat-head-of-research-final/benchmarks/task03/grader.py`

### Other components

- [Benchmark Runner](https://github.com/sarveshsonkusre02/head-of-research/blob/main/adzzat-head-of-research-final/run_all.py): `adzzat-head-of-research-final/run_all.py`

## Connections

- Benchmark Runner → Workspace Tools: creates tools (evidence: `adzzat-head-of-research-final/run_all.py`)
- Benchmark Runner → Reference Solver: calls solver (evidence: `adzzat-head-of-research-final/run_all.py`)
- Benchmark Runner → Reliability Grader: grades effects (evidence: `adzzat-head-of-research-final/run_all.py`)
- Benchmark Runner → CSV Cleaner: cleans CSV (evidence: `adzzat-head-of-research-final/run_all.py`)
- Benchmark Runner → Pipeline Grader: grades outputs (evidence: `adzzat-head-of-research-final/run_all.py`)
- Benchmark Runner → Interval Merger: passes merger (evidence: `adzzat-head-of-research-final/run_all.py`)
- Benchmark Runner → Interval Grader: grades merger (evidence: `adzzat-head-of-research-final/run_all.py`)
