# DISPATCH — worker_hygiene_remediation

## Identity
- Role: Code Hygiene & Test Modularization Worker
- Subagent Type: teamwork_preview_worker
- Working Directory: c:\Projects\FreeExile\.agents\teamwork\worker_hygiene_remediation
- Parent: orchestrator_20

## Mission
Remediate the Hard Cap file length violation reported by `victory_auditor_12`:
`tests/unit/test_challenger_cocos_kinematics_stress.ts` has 565 lines (> 500 lines Hard Cap).

## Authoritative Inputs
- Read audit finding from parent message:
  `tests/unit/test_challenger_cocos_kinematics_stress.ts` (565 lines > 500 lines Hard Cap).
- Read AGENTS.md § 10: File length caps: code logic <= 350 lines (soft cap), <= 500 lines (hard cap).

## Specific Tasks
1. Modularize `tests/unit/test_challenger_cocos_kinematics_stress.ts`:
   - Extract mock harness, math helpers, or scenario suites into a companion file, e.g. `tests/unit/kinematics_stress_helpers.ts`.
   - Ensure both files are strictly <= 350 lines (Soft Cap).
2. Execute verification:
   - Run: `npx tsx tests/unit/test_challenger_cocos_kinematics_stress.ts` (all 27 checks must PASS).
   - Run: `npx tsc --noEmit --project client/cocos/tsconfig.json` (0 errors).
   - Run: `python tools/lint/check_code_and_doc_hygiene.py --strict` (must exit cleanly with code 0 and ZERO violations).
3. Document results in `handoff.md` and notify parent.

## 2026-10-03T09:11:57Z
You are worker_hygiene_remediation. Working directory is c:\Projects\FreeExile\.agents\teamwork\worker_hygiene_remediation. Read your DISPATCH.md at c:\Projects\FreeExile\.agents\teamwork\worker_hygiene_remediation\DISPATCH.md. Remediate the file length violation in tests/unit/test_challenger_cocos_kinematics_stress.ts (565 lines > 500 lines Hard Cap). Split into modular files (e.g. tests/unit/kinematics_stress_helpers.ts, all <= 350 lines). Run npx tsx tests/unit/test_challenger_cocos_kinematics_stress.ts (ensure 27/27 checks pass) and python tools/lint/check_code_and_doc_hygiene.py --strict (ensure exit code 0). Deliver handoff.md and notify parent.
