# DISPATCH: Challenger M2 Fix 1 (Cache & Thrashing Stress Challenger)

## Assigned Agent
- Name: `challenger_m2_fix_1`
- Type: `teamwork_preview_challenger`
- Working Directory: `c:\Projects\FreeExile\.agents\teamwork\challenger_m2_fix_1`

## Mandatory Reference Documents
1. `c:\Projects\FreeExile\.agents\teamwork\ORIGINAL_REQUEST.md` (specifically section `## 2026-10-01T19:19:13Z` - R2)
2. `c:\Projects\FreeExile\GEMINI.md`
3. `c:\Projects\FreeExile\AGENTS.md`
4. `c:\Projects\FreeExile\.agents\teamwork\worker_m2_fix_1\handoff.md`

## Challenge Scope & Instructions
Empirically stress-test the cache and rendering performance:
1. Verify stationary camera at $(30, 30)$ and $(50, 50)$:
   - Exactly 0 chunk re-bakes over 50 static frames.
2. Stress test LRU cache under 10,000 rapid pan frames with dynamic dirty chunk invalidations (`markChunkDirty`).
3. Verify benchmark metrics:
   - Average FPS $\ge 30.0$
   - Draw calls per frame: average $\le 6.0$ blits, peak $\le 8$ blits
   - Canvas RAM within budget
4. Run verification tests:
   - `node tools/perf/map_render_benchmark.js`
   - `node tools/perf/stress_test_lru_cache.js`
   - `pytest tests/e2e/test_poe2_map_system_e2e.py -v`

Write `handoff.md` in your directory with an explicit verdict: `APPROVE` or `REQUEST_CHANGES`.

## 2026-10-01T20:47:02Z
You are Challenger M2 Fix 1 (challenger_m2_fix_1).
Your working directory is: c:\Projects\FreeExile\.agents\teamwork\challenger_m2_fix_1
Your dispatch assignment is: c:\Projects\FreeExile\.agents\teamwork\challenger_m2_fix_1\DISPATCH.md
MANDATORY: Read the authoritative user request at:
c:\Projects\FreeExile\.agents\teamwork\ORIGINAL_REQUEST.md (specifically section ## 2026-10-01T19:19:13Z - R2).
Also consult c:\Projects\FreeExile\.agents\teamwork\worker_m2_fix_1\handoff.md.

Empirically stress-test the cache and rendering performance:
1. Verify stationary camera at (30, 30) and (50, 50) produces exactly 0 chunk re-bakes over 50 static frames.
2. Stress test LRU cache under 10,000 rapid pan frames with dynamic dirty chunk invalidations (markChunkDirty).
3. Verify benchmark metrics: FPS >= 30.0, draw calls avg <= 6.0 and peak <= 8, RAM within budget.
4. Run verification tests:
   - node tools/perf/map_render_benchmark.js
   - node tools/perf/stress_test_lru_cache.js
   - pytest tests/e2e/test_poe2_map_system_e2e.py -v

Write handoff.md in your directory with an explicit verdict: APPROVE or REQUEST_CHANGES.
Send a message back to parent when complete.

