CometAPI Chat Fallback Runbook Review
Last reviewed: 2026-07-02
Who this is for: operators who already route production chat-completion traffic through CometAPI or are preparing a fallback runbook before doing so.
Source Pack
This draft uses four source inputs:
| Source | How it is used |
|---|---|
| Existing CometAPI fallback runbook refresh target | In-place refresh target and continuity reference. |
| Google SRE incident management guide | Incident-review structure, role clarity, and operational follow-through. |
| CometAPI documentation home | Source to verify base URL, authentication, service scope, and documentation navigation. |
| CometAPI chat API documentation | Primary source to verify chat-completion request and response contract details. |
Source coverage status: pending_review. The final reviewer should confirm that every endpoint, field, and operational claim below is still supported by the current CometAPI documentation.
Intent Brief
The goal is not to create another generic fallback checklist. The operator needs a reviewable runbook that connects three things:
- The actual CometAPI chat-completion contract that production code depends on.
- The fallback decision points that should be visible during an incident.
- The post-incident questions that decide whether the fallback helped, failed quietly, or added risk.
Use this page as an incident-review worksheet after a chat-completion degradation, or as a pre-incident readiness review before enabling fallback in production. For adjacent operational notes, keep this page connected to the LLM reliability posts index and the broader CometAPI reliability article archive .
Key Takeaways
- Treat fallback as a production behavior with its own contract, metrics, and rollback path.
- Verify CometAPI endpoint paths, authentication, request fields, response fields, error semantics, and billing assumptions directly against the CometAPI docs before each runbook review.
- During an incident, record the exact trigger that moved traffic, the model or route selected, the user-visible effect, and the recovery condition.
- After the incident, compare fallback success against quality, latency, cost, and support impact, not just HTTP success.
- Do not hard-code undocumented paths, auth headers, model IDs, limits, or pricing into the runbook.
Definition
A CometAPI chat fallback runbook is an operator-facing procedure for moving chat-completion traffic away from a degraded primary route and toward a validated CometAPI-backed route, while preserving observability, user-impact tracking, and a clear return path.
A useful runbook should answer:
- What signal starts fallback?
- Which CometAPI contract is being called?
- Which model or route is allowed?
- What behavior counts as success?
- What behavior requires rollback?
- What evidence will be reviewed after the incident?
Google’s incident-management guidance emphasizes structured incident response and follow-up, including clear coordination and learning from the event. That framing matters here because fallback can hide a dependency failure unless the team records why traffic moved and what changed for users.
Runbook Scope
This review should cover the chat-completion path only. Do not mix embeddings, image generation, batch processing, or unrelated APIs into the same procedure unless those systems share the same traffic path and incident trigger.
Before enabling fallback, confirm these runbook facts from the CometAPI documentation home and the CometAPI chat API documentation :
- The base URL used by the production client.
- The chat-completion endpoint path.
- The required authentication header or token format.
- The supported request fields for chat messages.
- The response shape consumed by your application.
- The documented error behavior.
- Any rate-limit, quota, or billing details that affect automated retry or fallback volume.
If any of these cannot be verified from current documentation, label the runbook assumption as unverified and prevent automatic fallback until an owner signs off.
Contract Details To Verify
| Contract area | Value to verify before production use | Primary source beside row | Operator note |
|---|---|---|---|
| Endpoint paths | Verify the current chat-completion path from the CometAPI chat documentation rather than copying the path from old code or a prior incident note. | CometAPI chat API documentation | Store the verified path in configuration, not inside the incident checklist text. |
| Auth headers | Verify the required authentication header name, token format, and any workspace or project scoping from CometAPI docs. | CometAPI chat API documentation | Redact credentials in incident notes and logs. |
| Request fields | Verify required and optional chat request fields, including model selection, message format, streaming behavior, and generation controls. | CometAPI chat API documentation | Mark every field your client sends as required-by-app, optional-by-app, or experimental. |
| Response fields | Verify the response fields your application parses, including completion text, finish reason, usage metadata, and identifiers if documented. | CometAPI chat API documentation | A fallback that returns HTTP 200 can still fail if response parsing changes. |
| Error behavior | Verify documented error response shape, retryable status categories, and any provider-specific error payloads from the source. | CometAPI chat API documentation | Do not assume all 429, 5xx, or timeout cases should be retried the same way. |
| Rate-limit or billing assumptions | Verify rate limits, quota behavior, usage reporting, and billing-relevant fields from CometAPI documentation or account configuration. | CometAPI chat API documentation | Treat any threshold in this runbook as an example to tune unless the source explicitly supports it. |
Fallback Decision Record
During the incident, write down the decision record before or immediately after routing changes. Keep it short enough for the incident channel.
| Question | Record during incident |
|---|---|
| What triggered fallback? | Alert name, metric, error budget burn, customer report, or manual operator observation. |
| What traffic moved? | Percentage, tenant group, environment, feature, or request class. |
| What CometAPI route was used? | Verified configuration key and validated model ID, not a secret or undocumented path. |
| What was expected to improve? | Availability, latency, error rate, or partial feature continuity. |
| What might degrade? | Output quality, latency, cost, streaming behavior, tool-call behavior, or support load. |
| What is the rollback condition? | A specific signal that tells the incident lead to stop fallback or return to normal routing. |
This mirrors the operational discipline recommended by the Google SRE incident management guide : assign ownership, coordinate decisions, and preserve enough context for follow-up.
Practical Validation Steps
Run these checks before relying on the runbook:
- Verify the CometAPI base URL and chat path from current documentation.
- Send one synthetic chat request from a non-production environment using a validated model ID.
- Confirm the application can parse the response fields it actually uses.
- Force a controlled primary-route failure and confirm fallback activates only under the intended condition.
- Confirm fallback emits separate metrics for attempted, succeeded, failed, timed out, and rolled-back requests.
- Confirm logs contain request correlation IDs but do not expose prompts, credentials, or sensitive user data.
- Confirm support and incident channels can identify when fallback is active.
- Confirm rollback works without a deploy.
- Confirm cost and quota dashboards are visible to the incident lead or delegated operator.
- Record the validation date and owner in the runbook.
Use example thresholds only as starting points. For example, a team might test fallback after a short burst of elevated timeout rate, but the real threshold should come from the application’s latency budget, customer impact, and CometAPI account limits.
Sanitized Chat Fallback Probe
Use a minimal probe that validates contract compatibility without exposing production prompts or secrets. Replace every placeholder with a value verified from current documentation and your own configuration.
curl -sS -X POST "<COMETAPI_BASE_URL_FROM_DOCS><COMETAPI_CHAT_PATH_FROM_DOCS>" \
-H "<AUTH_HEADER_FROM_DOCS>: <REDACTED_TOKEN>" \
-H "Content-Type: application/json" \
-d '{
"model": "<VALIDATED_MODEL_ID>",
"messages": [
{
"role": "system",
"content": "Return a concise operational readiness response."
},
{
"role": "user",
"content": "Confirm this chat fallback probe reached the configured provider."
}
]
}'
Validation target:
- The request reaches the documented chat-completion endpoint.
- The auth mechanism works with a non-production token.
- The response includes the fields your client expects.
- The call is observable in logs, metrics, and usage reporting.
- The output is not used as a quality benchmark. It is a contract probe.
Incident Review Checklist
After the incident, review fallback as its own system. A fallback path can reduce visible errors while adding hidden cost, quality drift, or debugging delay.
| Review area | Questions to answer |
|---|---|
| Trigger quality | Did fallback activate for the right reason, at the right time, and for the right traffic? |
| Detection gap | Did customers or support notice the problem before automated alerts? |
| Contract fit | Did the CometAPI chat response match the fields and parsing assumptions in production? |
| User impact | Did users see errors, slower responses, changed behavior, missing streaming, or degraded output quality? |
| Cost and quota | Did fallback traffic create unexpected usage, quota pressure, or billing risk? |
| Observability | Could operators distinguish primary-route failures from fallback-route failures? |
| Recovery | Was the return to normal routing explicit, measured, and reversible? |
| Documentation | Did the runbook contain stale endpoint, auth, field, limit, or escalation details? |
Common Failure Modes
The most important failure modes are usually ordinary:
- The fallback path works in staging but uses a different model, auth scope, or route in production.
- The client retries primary and fallback at the same time, multiplying load.
- The response parser assumes a field that is absent or shaped differently.
- Streaming behavior changes and the frontend treats it as a broken response.
- The incident channel declares recovery when HTTP success improves, but support tickets continue.
- Cost monitoring lags behind traffic movement.
- The runbook owner is unclear, so stale contract details remain in place.
Tie each failure mode to an owner and a verification step. Do not leave it as an observation.
When To Use CometAPI In The Runbook
Use CometAPI in the fallback runbook when the team has verified the specific chat-completion contract it depends on and can observe fallback behavior separately from the primary route.
A practical CTA for operators evaluating the integration is: Start with CometAPI .
Before expanding traffic, review related operational material in the LLM API reliability posts index .
FAQ
Should fallback be automatic or manual?
Use automatic fallback only when the trigger, scope, rollback condition, and observability are already validated. Manual approval is safer when the fallback can change user-visible quality, cost, streaming behavior, or data handling.
Is HTTP 200 enough to declare fallback successful?
No. HTTP success only proves that a request completed at the transport and API layer. Operators should also verify response parsing, latency, user-visible behavior, quality-sensitive workflows, cost, and quota impact.
Can the runbook include exact endpoint paths and model IDs?
Yes, but only after they are verified from the current CometAPI documentation or account configuration. This draft intentionally uses placeholders where the prompt evidence does not quote exact values.
How often should this runbook be reviewed?
Review it after every fallback incident, after any CometAPI contract or account-configuration change, and before major launches that materially increase chat-completion traffic.
What should be excluded from the incident notes?
Do not include API keys, bearer tokens, full sensitive prompts, private customer data, or raw payloads that violate logging policy. Keep redacted request IDs, timestamps, route names, and validated configuration references.
Sources Checked
- Source evidence 1 - accessed 2026-07-02; purpose: verify source-backed claims.
- Source evidence 2 - accessed 2026-07-02; purpose: verify source-backed claims.
- Source evidence 3 - accessed 2026-07-02; purpose: verify source-backed claims.
- Source evidence 4 - accessed 2026-07-02; purpose: verify source-backed claims.