# bkaczko/pressured-repair-eval architecture

> Architecture diagram of the GitHub repository bkaczko/pressured-repair-eval, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-12-03). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/bkaczko/pressured-repair-eval
- Repository: https://github.com/bkaczko/pressured-repair-eval

## Overview

pressured-repair-eval is a research evaluation of how coding agents respond when users blame earlier changes. Researchers generate task variants, run coding agents through Harbor, score final repository states against hidden tests, and analyze outcomes. Separate exploratory tools compare agents’ final claims and verification statements with their actions, and report urgency and effort. The graph reflects README-documented workflow and sampled tool code; task implementations and several integrations were not sampled, so their internal links are limited to documented relationships.

Main entry points: [`tools/report.py`](https://github.com/bkaczko/pressured-repair-eval/blob/main/tools/report.py) (Figures and Numbers), [`tools/summarize.py`](https://github.com/bkaczko/pressured-repair-eval/blob/main/tools/summarize.py) (Outcome Scorer), [`tools/make_arms.py`](https://github.com/bkaczko/pressured-repair-eval/blob/main/tools/make_arms.py) (Arm Builder), [`tools/judge_verification.py`](https://github.com/bkaczko/pressured-repair-eval/blob/main/tools/judge_verification.py) (Verification Judge)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_design["Study Design"]
  node_templates["Complaint Templates<br/>[templates.yaml]"]
end

subgraph group_tasks["Task Preparation"]
  node_task_corpus["Task Repositories"]
  node_arm_builder["Arm Builder<br/>[make_arms.py]"]
  node_harbor["Harbor Harness"]
  node_claude["Claude Code Agent"]
end

subgraph group_analysis["Scoring and Analysis"]
  node_trial_data["Trial Results"]
  node_scorer["Outcome Scorer<br/>[summarize.py]"]
  node_hypothesis_tests["Preregistered Tests<br/>[analyze.py]"]
  node_reporting["Figures and Numbers<br/>[report.py]"]
  node_results["Study Results"]
end

subgraph group_audits["Exploratory Audits"]
  node_claim_judge["Claim Judge<br/>[judge_claims.py]"]
  node_verification_judge["Verification Judge"]
  node_ownership_judge["Ownership Judge<br/>[judge_ownership.py]"]
  node_label_sheet["Label Sheet<br/>[label_sheet.py]"]
  node_urgency_analysis["Urgency Analysis<br/>[urgency.py]"]
  node_effort_analysis["Effort Analysis<br/>[effort.py]"]
end

node_researcher(("Researcher"))

node_researcher -->|"builds arms"| node_arm_builder
node_arm_builder -->|"expands tasks"| node_task_corpus
node_arm_builder -->|"uses wording"| node_templates
node_researcher -->|"launches runs"| node_harbor
node_harbor -->|"runs agent"| node_claude
node_harbor -->|"produces trials"| node_trial_data
node_trial_data -->|"scores trials"| node_scorer
node_scorer -->|"reads test metadata"| node_task_corpus
node_researcher -->|"tests hypotheses"| node_hypothesis_tests
node_hypothesis_tests -->|"uses scoring"| node_scorer
node_researcher -->|"generates report"| node_reporting
node_reporting -->|"scores trials"| node_scorer
node_reporting -->|"runs tests"| node_hypothesis_tests
node_reporting -->|"writes figures"| node_results
node_researcher -->|"checks claims"| node_claim_judge
node_claim_judge -->|"compares outcomes"| node_scorer
node_researcher -->|"checks verification"| node_verification_judge
node_verification_judge -->|"reads final reply"| node_claim_judge
node_verification_judge -->|"uses outcomes"| node_scorer
node_researcher -.->|"can assess ownership"| node_ownership_judge
node_researcher -.->|"can sample labels"| node_label_sheet
node_researcher -->|"analyzes urgency"| node_urgency_analysis
node_urgency_analysis -->|"loads trial data"| node_reporting
node_researcher -->|"measures effort"| node_effort_analysis
node_effort_analysis -->|"uses report helpers"| node_reporting
node_effort_analysis -->|"writes metrics"| node_results

click node_templates "https://github.com/bkaczko/pressured-repair-eval/blob/main/prompts/templates.yaml"
click node_task_corpus "https://github.com/bkaczko/pressured-repair-eval/tree/main/tasks/src"
click node_arm_builder "https://github.com/bkaczko/pressured-repair-eval/blob/main/tools/make_arms.py"
click node_scorer "https://github.com/bkaczko/pressured-repair-eval/blob/main/tools/summarize.py"
click node_hypothesis_tests "https://github.com/bkaczko/pressured-repair-eval/blob/main/tools/analyze.py"
click node_reporting "https://github.com/bkaczko/pressured-repair-eval/blob/main/tools/report.py"
click node_results "https://github.com/bkaczko/pressured-repair-eval/tree/main/results"
click node_claim_judge "https://github.com/bkaczko/pressured-repair-eval/blob/main/tools/judge_claims.py"
click node_verification_judge "https://github.com/bkaczko/pressured-repair-eval/blob/main/tools/judge_verification.py"
click node_ownership_judge "https://github.com/bkaczko/pressured-repair-eval/blob/main/tools/judge_ownership.py"
click node_label_sheet "https://github.com/bkaczko/pressured-repair-eval/blob/main/tools/label_sheet.py"
click node_urgency_analysis "https://github.com/bkaczko/pressured-repair-eval/blob/main/tools/urgency.py"
click node_effort_analysis "https://github.com/bkaczko/pressured-repair-eval/blob/main/tools/effort.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_templates toneBlue
class node_task_corpus,node_arm_builder,node_harbor,node_claude toneAmber
class node_trial_data,node_scorer,node_hypothesis_tests,node_reporting,node_results toneMint
class node_claim_judge,node_verification_judge,node_ownership_judge,node_label_sheet,node_urgency_analysis,node_effort_analysis toneRose
class node_researcher toneIndigo
```

## Components

### Study Design

- [Complaint Templates](https://github.com/bkaczko/pressured-repair-eval/blob/main/prompts/templates.yaml): `prompts/templates.yaml`

### Task Preparation

- [Task Repositories](https://github.com/bkaczko/pressured-repair-eval/tree/main/tasks/src): `tasks/src`
- [Arm Builder](https://github.com/bkaczko/pressured-repair-eval/blob/main/tools/make_arms.py): `tools/make_arms.py`
- **Harbor Harness**
- **Claude Code Agent**

### Scoring and Analysis

- **Trial Results**
- [Outcome Scorer](https://github.com/bkaczko/pressured-repair-eval/blob/main/tools/summarize.py): `tools/summarize.py`
- [Preregistered Tests](https://github.com/bkaczko/pressured-repair-eval/blob/main/tools/analyze.py): `tools/analyze.py`
- [Figures and Numbers](https://github.com/bkaczko/pressured-repair-eval/blob/main/tools/report.py): `tools/report.py`
- [Study Results](https://github.com/bkaczko/pressured-repair-eval/tree/main/results): `results`

### Exploratory Audits

- [Claim Judge](https://github.com/bkaczko/pressured-repair-eval/blob/main/tools/judge_claims.py): `tools/judge_claims.py`
- [Verification Judge](https://github.com/bkaczko/pressured-repair-eval/blob/main/tools/judge_verification.py): `tools/judge_verification.py`
- [Ownership Judge](https://github.com/bkaczko/pressured-repair-eval/blob/main/tools/judge_ownership.py): `tools/judge_ownership.py`
- [Label Sheet](https://github.com/bkaczko/pressured-repair-eval/blob/main/tools/label_sheet.py): `tools/label_sheet.py`
- [Urgency Analysis](https://github.com/bkaczko/pressured-repair-eval/blob/main/tools/urgency.py): `tools/urgency.py`
- [Effort Analysis](https://github.com/bkaczko/pressured-repair-eval/blob/main/tools/effort.py): `tools/effort.py`

### Other components

- **Researcher**

## Connections

- Researcher → Arm Builder: builds arms (evidence: `README.md`)
- Arm Builder → Task Repositories: expands tasks (evidence: `README.md`)
- Arm Builder → Complaint Templates: uses wording (evidence: `tools/make_arms.py`)
- Researcher → Harbor Harness: launches runs (evidence: `README.md`)
- Harbor Harness → Claude Code Agent: runs agent (evidence: `README.md`)
- Harbor Harness → Trial Results: produces trials (evidence: `README.md`)
- Trial Results → Outcome Scorer: scores trials (evidence: `tools/summarize.py`)
- Outcome Scorer → Task Repositories: reads test metadata (evidence: `tools/summarize.py`)
- Researcher → Preregistered Tests: tests hypotheses (evidence: `README.md`)
- Preregistered Tests → Outcome Scorer: uses scoring (evidence: `tools/analyze.py`)
- Researcher → Figures and Numbers: generates report (evidence: `README.md`)
- Figures and Numbers → Outcome Scorer: scores trials (evidence: `tools/report.py`)
- Figures and Numbers → Preregistered Tests: runs tests (evidence: `tools/report.py`)
- Figures and Numbers → Study Results: writes figures (evidence: `README.md`)
- Researcher → Claim Judge: checks claims (evidence: `README.md`)
- Claim Judge → Outcome Scorer: compares outcomes (evidence: `tools/judge_claims.py`)
- Researcher → Verification Judge: checks verification (evidence: `README.md`)
- Verification Judge → Claim Judge: reads final reply (evidence: `tools/judge_verification.py`)
- Verification Judge → Outcome Scorer: uses outcomes (evidence: `tools/judge_verification.py`)
- Researcher → Ownership Judge: can assess ownership (evidence: `README.md`)
- Researcher → Label Sheet: can sample labels (evidence: `README.md`)
- Researcher → Urgency Analysis: analyzes urgency (evidence: `README.md`)
- Urgency Analysis → Figures and Numbers: loads trial data (evidence: `tools/urgency.py`)
- Researcher → Effort Analysis: measures effort (evidence: `README.md`)
- Effort Analysis → Figures and Numbers: uses report helpers (evidence: `tools/effort.py`)
- Effort Analysis → Study Results: writes metrics (evidence: `README.md`)
