mirror of
https://github.com/rommapp/romm.git
synced 2026-11-30 02:22:44 +01:00
* docs(architecture): keep design in the architecture docs, point to code for listings BACKEND_ARCHITECTURE.md had grown to 2,223 lines, most of it listings copied from the code: every route, every model column, the migration list, the env var tables, the cache keys and a file-by-file tree. Those change with most pull requests and had drifted (151 documented routes against 287 registered, a viewer/editor/admin role model that is now two roles plus permission groups, the middleware order reversed). Keep what changes slowly and the code doesn't explain: layers, request flow, the auth, permission and visibility model, scanning, RetroArch sync, sockets, device installs, tasks and notification channels. Replace each listing with a pointer to where the fact lives (OpenAPI, models/, env.template, examples/config.example.yml, tasks/registry.py). Fix the roles, middleware order and visibility rules while there. FRONTEND_ARCHITECTURE.md loses its route, store, namespace and script lists the same way. AGENTS.md and the backend-development skill no longer promise "every endpoint". Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * docs(architecture): address Greptile review on access-control wording - Permission groups also carry hidden entities and age settings; users add their own hidden entities and override the group's age settings. - owned_rom_asset_or_404 is owner-only; public downloads check owner-or-public themselves, then assert_rom_visible. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011waFLHyn7XpSvd4B2brCdf --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>