Repository navigation
Agent API retry correctness
- Ask v3 JSON errors now identify their contract with
apiVersion: "v3",
allowingsemidex-lite/clientto apply the same typed retry policy used by
Ask v1 and v2. - Opt-in client retries cover retryable failures before an initial Agent API
stream begins. The default remains one attempt, so existing applications do
not acquire retries unless they explicitly configured them. - Continuation requests are not advertised as retryable after provider
execution starts. A failed continuation is closed by the runtime, preventing
the client from replaying a continuation that can no longer succeed. - Once an SSE response begins, terminal stream errors remain non-retryable.
Applications must reconcile external tool side effects rather than blindly
repeat them. - Gemini Agent failures now classify structured HTTP 429, 503 and timeout
evidence without parsing provider message text. Unknown failures fail closed
instead of being declared retryable by default. - A strict
generation.provider_failedaudit event records bounded
provider/model/category/phase/status/timing metadata, never prompts, tool
payloads, provider response bodies, exception messages or credentials. - A valid upstream
Retry-Afteris forwarded when the transport exposes it.
The bundled Google SDK currently discards those headers, so no delay is
fabricated.
Verification coverage
- Added an HTTP-level Agent API and client test for a retryable initial
provider failure followed by a successful retry. - Added route coverage for continuation invalidation and accurate retry
metadata. - Added deterministic 429/503/timeout classification, metadata propagation,
safe audit-schema and secret-exclusion coverage. - Made the Full/Lite manifest parity assertion insensitive to Git line-ending
normalization while preserving structural equality.
The public Agent API remains additive and experimental. Existing Search, Ask
v1/v2, key scopes, continuation ownership, and tool-execution boundaries are
unchanged. Final candidate results are recorded in
lite-v0.1.9-verification.md.
This patch does not add a guessed Gemini free-tier limiter. Semidex's existing
integration-key limiter is a local abuse boundary, not enforcement of
provider/project/model RPM, TPM or daily quotas.