pub(super) async fn require_ready_layer(
state: Arc<AppState>,
req: Request<Body>,
next: Next,
) -> ResponseExpand description
503 with Retry-After: 30 until AppState::is_ready() returns true.
Applied to every /v1/* route so agents see a deterministic “come
back later” signal instead of partial behaviour driven by stale or
missing trust state. Health/version/metrics are routed outside
/v1/* and stay unguarded so operators can scrape them while the
daemon is still priming.