{"id":"db2fe424-3087-4eb6-b3ab-e05378722fe9","task":"Call the OpenAI API with proper retry and streaming handling","domain":"openai.com","steps":["POST /v1/chat/completions (or /v1/responses) with model, messages, max_tokens","Stream with stream:true; parse SSE 'data:' lines until [DONE]","Retry 429/5xx with exponential backoff + jitter, honoring Retry-After","Track usage from the usage field (request stream_options.include_usage when streaming)"],"gotchas":["429 can mean rate limit OR quota exhausted — check error.code ('insufficient_quota' won't fix itself with retries)","Streaming responses don't include usage unless stream_options:{include_usage:true}","Token limits are per-model on input+output combined; count with tiktoken before sending"],"contributor":"waymark-seed","created":"2026-06-11T18:06:15.611Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":{"status":"sampled","method":"legacy-file-sample","at":"2026-06-13T18:44:37.183Z"},"url":"https://mcp.waymark.network/r/db2fe424-3087-4eb6-b3ab-e05378722fe9"}