Critical fixes enabling SURGIO production use:
1. Fix tenant resolution: middleware_stack sets request.state.tenant_id='default'
for non-API routes, which preempted the user's actual tenant_id in
verify_tenant_access Priority 2. Now skips 'default' placeholder values,
allowing Priority 3 (authenticated user's tenant) to resolve correctly.
2. Fix /cases route shadowing: public_routes.py had a /cases handler that
rendered an empty template, registered before cases_traces_routes.py.
Removed the shadow route so the proper handler with data loads.
3. Fix traces_stream.html template: sum(attribute='__len__') TypeError.
Changed to map('length')|sum which is valid Jinja2.
4. Add city filter UI: chips (All/Tan-Tan/Nador/Guelmim) on /traces and
/cases templates. Routes accept ?city= query param.
5. Import pipeline: use StatusGroup enum values instead of hardcoded strings.
6. Bootstrap script for production admin user setup.
Verified: Login → all 9 routes return 200 wi…
chore: Cycle 14 — remove 33 dead files (5,269 LOC)