platepilot

Provider outage and manual fallback

Scope

This runbook covers future meal analysis, nutrition lookup, identity, subscription, notification, or health-provider degradation. No real provider is integrated in M0.

M0 behavior

.env.example enables deterministic synthetic mocks for local development. Mocks make tests repeatable and avoid vendor calls. They do not simulate every timeout, malformed response, quota limit, callback delay, or privacy failure unless a test explicitly does so.

Do not switch a future production environment to mocks to conceal an outage.

Detection signals

Future signals are PENDING:

Keep provider payloads and adult content out of metrics and routine logs.

Future response

  1. Confirm the affected adapter, operations, start time, and data/privacy impact.
  2. Open an incident at the appropriate severity.
  3. Stop unbounded retries and protect queue/database capacity.
  4. Use the adapter kill switch or circuit breaker when approved.
  5. Preserve unaffected functions and existing adult records.
  6. Present honest pending/unavailable states and a next action.
  7. For analysis or lookup, offer manual meal entry without requiring a subscription-provider response.
  8. For billing, avoid fabricating entitlement; preserve non-paid access and reconcile later.
  9. For identity, do not bypass authentication. Existing sessions follow approved risk rules.
  10. Contact the provider through the future approved support/security route; share minimum necessary identifiers.

All production controls and contact routes above are PENDING implementation.

Queue and analysis recovery

Before replaying future jobs:

Never overwrite an adult-confirmed manual correction with a late automated result.

Communication guidance

Recommended:

Photo analysis is temporarily unavailable. You can enter this meal manually and try analysis again later.

Avoid naming a vendor unless approved, promising a recovery time without evidence, or implying saved data was lost when only analysis is delayed.

Exit criteria