feat(providers): endpoint-lane request budget, reactive re-clamp, cogitate caps
Converge both non-bundled run_generate/run_agenerate branches through one shared _prepare_endpoint_request that fits input, applies image-aware output clamps with _SAFETY_MARGIN_TOKENS, and raises ContextBudgetExceeded before POST when the completion floor cannot fit. Add a single reactive completion-budget re-clamp using limit - input - 16, with one retry inside the held admission permit and remaining deadline; prompt-alone and second context 400s are terminal context_window_exceeded. Add a body-reading _classify_byo_generate_error backstop with length-capped, credential-redacted matching. Preserve generic-BYO and bundled byte-identical request bodies while adding confidential Qwen parity, and thread served windows once per cogitate run for scaled caps/condenser while unknown and sub-16384 windows remain unchanged.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>