Expand description
System-admin identity: the explicit, validated owner row that the platform attributes system-initiated work to (scheduler bootstrap jobs, gateway telemetry, default MCP server owners).
Resolution is a one-shot operation performed during runtime bootstrap:
the profile-supplied SystemAdminConfig is looked up against the
users table, validated (active, has admin role), and the resulting
SystemAdmin is handed to AppContext. From there, every consumer
that needs the platform owner takes it as a constructor argument; the
only exception is logging attribution, which parks the value in a
cell scoped to systemprompt_logging.
Structsยง
- System
Admin - Resolved system-admin handle threaded through
AppContext. Holds the typedUserIdof the actualusersrow, not a sentinel. - System
Admin Config - Profile-supplied configuration for the platform owner. Must resolve at
startup to an active user row carrying the
adminrole; the platform refuses to boot otherwise.