# Plan: Validate custom-router parity and apply fixes

## Phase 1: Parity Audit [checkpoint: a291fd8]

- [x] Task: Audit engines for `getCurrentPoolState()` and `setPool()` parity
  - [x] Review engine interfaces and implementations in `src/engines`
  - [x] Compare against expected behaviors from migration checklist
  - [x] Record any gaps with file/line references
  - [x] Gap: `src/engines/uniswap-v4-quote-engine.ts:15` imports `StateView.json`, but `artifacts/abis/StateView.json` is missing in repo
- [x] Task: Audit BaseRouter fallback behavior and caching
  - [x] Review fallback logic for pool state retrieval
  - [x] Validate caching behavior and any documented assumptions
  - [x] Record any gaps with file/line references (none found)
- [x] Task: Audit factory protocol routing and legacy compatibility
  - [x] Review protocol detector mappings and router selection
  - [x] Validate legacy method paths and backward compatibility
  - [x] Record any gaps with file/line references (none found)
- [x] Task: Conductor - User Manual Verification 'Phase 1: Parity Audit' (Protocol in workflow.md)

## Phase 2: Minimal Fixes + Tests [checkpoint: 2888ab6]

- [x] Task: Implement minimal fixes for verified parity gaps [849fe20]
  - [ ] Write failing tests for each gap (Red)
  - [ ] Implement minimal code changes to pass tests (Green)
  - [ ] Refactor if needed without behavior changes
  - [ ] Run tests and confirm pass
- [x] Task: Update documentation if behavior changes (no changes needed)
  - [ ] Identify affected docs
  - [ ] Update descriptions/examples to match changes
- [x] Task: Conductor - User Manual Verification 'Phase 2: Minimal Fixes + Tests' (Protocol in workflow.md)
