# Technical Document Extraction: Distribution of Actions per Turn
## 1. Document Metadata
* **Title:** Distribution of Actions per Turn (Normalized)
* **Image Type:** Stacked Bar Chart (Normalized to 1.0)
* **Primary Language:** English
## 2. Component Isolation
### A. Header
* **Text:** "Distribution of Actions per Turn (Normalized)"
### B. Main Chart Area
* **Y-Axis Label:** "Frequency"
* **Y-Axis Scale:** 0.0 to 1.0 (intervals of 0.2)
* **X-Axis Label:** "Turn"
* **X-Axis Scale:** Discrete integers from 0 to 38.
* **Data Representation:** Each vertical bar represents a single "Turn." The bar is segmented by color to show the relative frequency (proportion) of different actions performed during that specific turn across a dataset.
### C. Legend (Spatial Placement: Right Side [x=0.85, y=0.5])
The legend contains 15 categories, grouped by color families:
* **Red/Orange (Search/Find):** `search_dir` (dark red), `search_file` (burnt orange), `find_file` (orange), `find` (light orange).
* **Green (File Manipulation):** `create` (dark green), `edit` (medium green).
* **Grayscale (Completion):** `exit_cost` (black), `submit` (gray).
* **Blue (Navigation):** `open` (dark blue), `scroll_up` (medium blue), `scroll_down` (bright blue), `goto` (light blue).
* **Yellow/Gold (Execution):** `python3` (olive/dark gold), `python` (gold), `pytest` (light yellow).
---
## 3. Data Extraction and Trend Analysis
### General Trends
1. **Early Phase (Turns 0-5):** High concentration of search and navigation actions. Turn 0 is dominated by `create` (dark green) and `search_dir` (dark red). Turn 1 shows a massive spike in `open` (dark blue).
2. **Middle Phase (Turns 6-30):** The chart is dominated by `edit` (medium green) and `submit` (gray), interspersed with navigation (`scroll_up/down`, `goto`) and execution (`python/pytest`).
3. **Late Phase (Turns 31-38):** A sharp transition occurs. `edit` actions diminish. `exit_cost` (black) and `submit` (gray) become the primary components, indicating the conclusion of tasks.
### Detailed Action Distribution by Turn (Approximate Values)
| Turn | Dominant Actions (Visual Estimate) | Observations |
| :--- | :--- | :--- |
| **0** | `create` (~60%), `search_dir` (~20%), `find_file` (~20%) | Initialization phase. |
| **1** | `open` (~35%), `edit` (~60%) | First file opening and editing. |
| **2** | `python` (~55%), `edit` (~30%) | Early execution attempt. |
| **3** | `edit` (~35%), `find_file` (~25%), `open` (~15%) | Mixed search and edit. |
| **5** | `edit` (~40%), `python` (~15%), `find_file` (~10%) | Heavy editing begins. |
| **10** | `edit` (~40%), `submit` (~15%), `open` (~10%), `python` (~20%) | Sustained development cycle. |
| **20** | `edit` (~40%), `submit` (~10%), `python` (~25%), `goto` (~10%) | High execution/testing frequency. |
| **30** | `edit` (~35%), `submit` (~15%), `python` (~15%), `scroll_up` (~10%) | Transition toward completion. |
| **34** | `edit` (~60%), `exit_cost` (~20%), `open` (~15%) | Final edits before exit. |
| **36** | `edit` (~35%), `exit_cost` (~65%) | Exit process dominates. |
| **37** | `submit` (100%) | Pure submission turn. |
| **38** | `exit_cost` (100%) | Final termination. |
---
## 4. Component Analysis
* **`edit` (Medium Green):** This is the most consistent action throughout the lifecycle, appearing in almost every turn from 1 to 36, typically occupying 30-60% of the turn's volume.
* **`python` / `pytest` (Yellows):** These appear consistently from Turn 2 through Turn 33, representing the iterative "run/test" cycle of a technical task.
* **`submit` (Gray):** This action starts appearing around Turn 4 and remains a steady background component until it takes over completely at Turn 37.
* **`exit_cost` (Black):** This action is negligible for the first 30 turns but grows rapidly from Turn 31 onwards, representing the overhead or finality of ending a session.
* **Navigation (Blues):** `open`, `scroll`, and `goto` are most prevalent in the first half of the process (Turns 1-25), suggesting that information seeking and context setting happen early.
## 5. Summary of Information
The image depicts the lifecycle of a technical task (likely coding or debugging). It shows a logical progression:
1. **Discovery:** Searching and creating files.
2. **Iteration:** A long middle phase of editing, navigating code, and running Python scripts/tests.
3. **Finalization:** A concluding phase where editing stops, and the user submits work and exits the environment.