Package 

Class ConnectionPolicy


  • @Serializable() 
    public final class ConnectionPolicy
    
                        

    Server-driven connection policy — the connection block of the settings row (CONNECTION_POLICY_DESIGN.md §2), sibling of guardrails and delivered the same way (register-time configSettings on acceptance and refusal) plus live over the WebSocket as a policy_update message.

    Same philosophy as GuardrailConfig: lenient parse, and clamps are client-side law — every numeric field is coerced into a safe range, while non-positive, absent, or unparseable values fall back to defaults that exactly reproduce today's shipped behavior. A bad settings edit can degrade to the status quo but can never make the fleet ping every second or hammer /register with zero backoff.