> ## Documentation Index
> Fetch the complete documentation index at: https://praison.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Reload Validation Protocol • AI Agent SDK

> ReloadValidationProtocol: Protocol a gateway implements for atomic, validated config cutover.

# ReloadValidationProtocol

> Defined in the [**config**](../modules/config) module.

<Badge color="blue">AI Agent</Badge>

Protocol a gateway implements for atomic, validated config cutover.

The invariant: **never drain the live runtime until**
:meth:`validate_candidate` **returns a report with** `ok=True`. Owning
this contract in core keeps the "never cut over to an unvalidated
candidate" guarantee canonical so every gateway build honours it, rather
than being re-implemented per entry point (SIGHUP, `gateway reload`,
`gateway restart`).

## Methods

<CardGroup cols={2}>
  <Card title="validate_candidate()" icon="function" href="../functions/ReloadValidationProtocol-validate_candidate">
    Build/boot the candidate from `new_config` and pre-flight it.
  </Card>
</CardGroup>

## Source

<Card title="View on GitHub" icon="github" href="https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/gateway/config.py#L345">
  `praisonaiagents/gateway/config.py` at line 345
</Card>
