Rebased onto current main (v1.6.9 layout): _learning_surface_for_path now
lives in deeptutor/api/routers/auth.py; change content unchanged.
- map /api/mastery-paths/* to chat (learner's own per-user progress data)
- map GET/HEAD/OPTIONS /api/knowledge-bases* to reading (browse-only;
mutations still default-deny)
- pass request.method into the surface lookup
- put_guardian_restrictions: when the account has no learning_policy yet,
seed the default learner grant and flip the preset to learner, avoiding
the standard-preset+policy mix that renders the admin shell and 403-storms
- regression tests: tests/multi_user/test_learning_surface_map.py (22 tests)