conductor(plan): write 2-phase implementation plan for data_structure_strengthening_20260606
~22 tasks across 2 phases, each with explicit Red-Green-Refactor TDD steps: - Phase 1 (1.1-1.12): Foundation. type_aliases.py (10 TypeAliases + 1 NamedTuple) with 8 unit tests. Mechanical replacement of 345 weak sites in 6 files (ai_client 139, app_controller 86, models 51, api_hook_client 32, project_manager 20, aggregate 17). Each file has a per-substitution table for the mechanical replacement. Audit script gains --strict mode + baseline file (CI gate). 4 audit tests. - Phase 2 (2.1-2.10): FileItemsDiff NamedTuple integrated. generate_type_registry.py (AST-based; 3 modes: default, --check, --diff). Initial registry generated in docs/type_registry/ (8+ .md files). 6 generator tests. Type aliases styleguide + product-guidelines updates. Manual smoke test. Track archived. The type registry generator uses --check mode for CI: it regenerates to a temp dir and diffs against the committed registry; exit 1 if drift. The agent's track-completion workflow is: regenerate -> review diff -> commit. CI enforces --check on every PR. Self-review at the end maps every spec section to a task (no gaps), confirms zero placeholders, and verifies type/method-name consistency across phases (all 10 aliases + FileItemsDiff defined in Task 1.2; used consistently in Tasks 1.3-1.8 and Phase 2).
This commit is contained in: