salesforce-reliability-patterns

v2026.09.24

Build Salesforce integration reliability with idempotency, bounded retries, durable state, dead letters, reconciliation, backfill, and tested recovery. Use when designing resilient systems. Trigger with "harden Salesforce reliability".

GitHub
Install command
npx skhub add jeremylongshore/salesforce-reliability-patterns
Markdown
SKILL.md

Salesforce Reliability and Recovery Patterns

Overview

Make every read, write, job, and event path safe under duplicate, delayed, partial, uncertain, throttled, and unavailable outcomes.

Prerequisites

  • Business invariants, sources of truth, operation classes, stable keys, ordering, latency, and recovery objectives
  • Current Salesforce API, event, limit, error, job-result, and transaction contracts
  • Durable queue and checkpoint stores, quarantine or dead-letter path, reconciliation, backfill, and owners

Tool Discipline

Use Read, Glob, and Grep to inspect approved repository and evidence files, WebFetch to re-check current first-party Salesforce documentation, and Write or Edit only for secretless plans, fixtures, configuration, and redacted receipts.

Current Contract

Salesforce synchronous, composite, bulk, and event surfaces have different transaction, result, retry, ordering, and recovery semantics. CDC can emit gap or overflow events; no transport removes the need for idempotency and reconciliation.

Authentication

Use separate minimum-permission principals for runtime, repair, and diagnostics. Protect tokens, payloads, checkpoints, dead letters, and repair tooling from unauthorized access and logging.

Instructions

  1. Classify each operation as read, create, update, upsert, delete, job, publish, or consume and define its invariant and stable key.
  2. Document timeout, error, partial-result, transaction, limit, ordering, duplicate, replay, and retention semantics from current contracts.
  3. Design idempotency through external IDs, request ledgers, deduplication keys, conditional state, or invariant checks appropriate to the operation.
  4. Retry only classified transient failures with bounded attempts, jitter, budget, and circuit breaking; reconcile uncertain outcomes first.
  5. Persist queue, job, checkpoint, schema, and dead-letter state durably with redaction, retention, and ownership.
  6. Test token expiry, timeouts, partial writes, locks, hard limits, duplicate events, gaps, schema drift, consumer outage, and restart.
  7. Run recovery and backfill drills, compare against the source of truth, and measure recovery objectives and duplicate business effects.

Approval Boundaries

Do not replay, purge queues, skip failed records, alter checkpoints, repair data, fail over, or change retry budgets without application and data owners.

Output

Return the operation contracts, failure matrix, idempotency and retry design, durable-state schema, test results, recovery receipt, gaps, and owners.

Error Handling

ConditionResponse
Write timed out with unknown outcomeReconcile by stable key or request ledger before any retry.
Event gap or overflow is detectedBound the interval and use the approved source-of-truth reconciliation or backfill.
Dead-letter payload contains sensitive dataRestrict and redact the store, assess exposure, and repair producers before replay.

Example

A redacted completion receipt might look like this:

integration=orders; key=erp_id; retries=transient-only; ledger=durable; dlq=encrypted; chaos=pass; recovery=42m

Resources

Next Steps

Run the workflow first in the lowest-risk authorized org and preserve its redacted receipt. Schedule a review against the next Salesforce seasonal release and the customer change calendar.

Discovery
Tags

No tags published for this skill.

Version
Latest version metadata

Version

v2026.09.24

Published

Sep 24, 2026

Category

Uncategorized

License

MIT

Source path

skills/.curated/salesforce-reliability-patterns

Default branch

main

Latest commit

e5a6c3b

Tree SHA

c2dc8e8