The System user (pk=1, name "(System)") is assumed across the code as a mix of queries and constant expressions. Centralize the assumption into one or more system settings so it sits in one place. See #11607.
Task
Agent-assisted triage
- Suggested priority: minor
- Suggested lane: standard
- Updated with agent assistance on 2026-08-21
Original report
The code currently has the idea that the System user has pk=1 and name "(System)" captured as a mix of queries and constant expressions.
Even though we never expect this to change, it should become one or more system settings so the assumption sits in one place.
The System user (pk=1, name "(System)") is assumed across the code as a mix of queries and constant expressions. Centralize the assumption into one or more system settings so it sits in one place. See #11607.
Task
Agent-assisted triage
Original report
The code currently has the idea that the System user has pk=1 and name "(System)" captured as a mix of queries and constant expressions.
Even though we never expect this to change, it should become one or more system settings so the assumption sits in one place.