Integrations API Rollout Runbook
Section titled “Integrations API Rollout Runbook”This runbook covers rollout, verification, migration, and rollback for the monorepo-owned integrations surface:
- runtime:
workers/consumer-api(/integrations/v1) - contract:
packages/api-contract - control plane:
apps/dashboardinstallation + credential flows - docs:
apps/docs - verification lanes:
tests/features/integrations-contract.mjs,tests/features/integrations-runtime.mjs,tests/features/integrations-resilience.mjs
External consumer repositories (WordPress, Drupal, SDKs) are downstream clients and are not deployed from this repository.
Rollout Steps
Section titled “Rollout Steps”- Update the canonical contract in
packages/api-contract. - Implement matching runtime behavior in
workers/consumer-api. - Update dashboard control-plane flows if the API change affects installations, credentials, origins, or audit visibility.
- Regenerate integrations docs:
pnpm generate:apiinapps/docs
- Run the required validation:
pnpm test:integrations:contractpnpm test:integrations:runtimepnpm test:integrations:resilience- any package/app type-checks touched by the change
- Deploy this monorepo’s runtime/docs changes.
- Notify or coordinate with external consumer repositories only after the API contract and runtime are stable.
Required Verification
Section titled “Required Verification”Minimum checks before rollout:
/integrations/v1/healthresponds with the expected version/integrations/v1/installationstill enforces installation auth correctly- affected scoped endpoints return the documented shape or documented auth/scope errors
- docs and OpenAPI output match the shipped contract
Migration Guidance
Section titled “Migration Guidance”When changing integrations behavior used by external consumers:
- prefer additive changes over breaking changes
- document any new scopes, fields, or error codes in the contract and docs
- keep old behavior available during a short migration window when feasible
- communicate required downstream updates to external consumer repositories
- remove deprecated behavior only after downstream consumers have a clear migration path
Rollback Guidance
Section titled “Rollback Guidance”If rollout causes regressions:
- stop promoting downstream consumer releases that depend on the new behavior
- roll back the public API worker/docs deployment if backward compatibility was broken here
- if the API is correct but the downstream client is not, roll back the external consumer repo instead
- verify the old contract/runtime behavior with the integrations test lanes before resuming rollout
Prefer runtime rollback before making destructive dashboard or data-layer changes.
Coordination Notes
Section titled “Coordination Notes”- This repository is the source of truth for the integrations contract and runtime.
- External consumer repositories must not rely on undocumented routes or internal schema details.
- Contract changes here should precede any downstream consumer implementation changes.