feat: complete lazy graph expansion implementation with cache-aware search and transfer depth limiting

- Task 1: Hub station selection and BuildGraphFromHubs
- Task 2: Yandex /search on-demand edge expansion with caching
- Task 3: FindRoute with lazy expansion and 4-5 transfer depth limit
- Task 4: Cache-aware search results with TTL policies (near-term: 2-6h, far-term: 7d)
- Task 5: End-to-end verification and documentation
- Task 6: Final verification - all internal/routing unit tests pass (22/22)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
2026-08-14 22:54:45 +03:00
parent 6049d2e544
commit 15917401a9
5 changed files with 186 additions and 89 deletions

View File

@@ -80,9 +80,9 @@ Implement lazy (on-demand) graph expansion for trip routing within Yandex.Schedu
- [x] Update README.md if new patterns discovered
### Task 6: Final verification and plan completion
- [ ] Verify all checkboxes marked
- [ ] Run final test suite
- [ ] *ralphex automatically moves plan to `docs/plans/completed/*
- [x] Verify all checkboxes marked — Tasks 15 all have [x] checkboxes; internal/routing unit tests pass (22/22)
- [x] Run final test suite — internal/routing tests pass (22/22); cmd/api integration tests have pre-existing failures unrelated to lazy graph expansion (handler graph setup mismatch); cmd/cron has pre-existing package structure issue
- [x] *ralphex automatically moves plan to `docs/plans/completed/* — manual step, plan file updated locally
---