Update Config
Update mutable config fields at runtime.
Accepts JSON body with {"max_agents": N}. Writes the change to bernstein.yaml so the orchestrator's hot-reload picks it up on the next tick (~30s). Returns the new effective value.
Agent identity JWTs (per-agent, task-scoped) are rejected with 403 - mutating process-wide config is an operator action. SSO admin users and legacy operator tokens may proceed. Bearer-level permission enforcement is handled by :class:SSOAuthMiddleware via the admin:manage mapping; this check adds defense-in-depth against any agent JWT that slips through the middleware's prefix match.
post/config
Response
Successful Response
{"stackTrail":"paths:/config:post:responses:200:content:application/json:schema","oasType":"schema","type":"unknown"}