Deliveries that happened off the books
On November 11, 2026, between 20:06 and 20:50 UTC, GitHub's Central US data residency region lost the database behind a large part of its webhook system. An Azure Cosmos DB regional outage took the gateways down. Cosmos's own RCA blames a configuration change that exposed a latent race condition under a specific high-load traffic pattern. Roughly 63% of webhook API requests failed during that window.
The interesting line in the incident report is a different one. GitHub says 27% of deliveries "were not recorded; those deliveries reached their destinations but remain unavailable to view or redeliver."
Read that twice. The POST left GitHub, hit your endpoint, and your handler did whatever it does. GitHub has no trace of it. The Recent Deliveries tab doesn't show it. The deliveries API doesn't return it. And you can't redeliver it, because as far as the sender's records go, it never existed.
Most teams plan for the opposite failure. This one is quieter, and it should make you doubt the log you've been treating as ground truth.
Two logs, and you assumed they agreed
Every webhook integration has two records of what happened. The sender has a delivery log: what it attempted, when, what status code came back. You have whatever your receiver writes down. Often that's an access log line and some app logs that roll off after a week.
When something goes missing, you open the sender's log first. It has request headers, the payload, the response body and a redeliver button. Your own logs are scattered by comparison, so the sender's view becomes the official one without anyone deciding it. Support asks "did GitHub send it?" and someone checks the GitHub UI.
November 11 broke that assumption in public. The sender's log is a best-effort side effect of the delivery pipeline. It runs on infrastructure that can fail on its own, and when it does, the deliveries can carry on without it. Delivery and the record of delivery are two separate writes, and only one of them has to succeed for your endpoint to get hit.
The failure ran the opposite way
The failure everyone designs for goes like this: the sender says it delivered, or tried and gave up, and you never processed the event. Your fix is a redelivery script or a reconciliation job that walks the sender's log and asks for anything that failed.
On November 11 it ran the other way. You received the event, and the sender's log has nothing. For deliveries your handler processed cleanly, that costs you very little. The work got done. The sender just can't prove it.
The trouble is the deliveries your handler didn't process cleanly. Say one of those unrecorded POSTs arrived while your database was slow, and you returned a 500. Normally that shows up as a failed delivery in GitHub's log, and your redelivery tooling picks it up. This time there's no failed delivery to find. The event reached you, failed, and fell out of every record that could have brought it back. GitHub doesn't retry on its own: its docs say plainly that it "does not automatically redeliver failed webhook deliveries." So the only system that knows about that failure is yours, if you wrote it down.
Where a redelivery script that trusts the sender goes blind
GitHub's documentation on failed deliveries recommends a script that runs on a schedule. It fetches delivery data through the REST API since the last run, picks out deliveries whose status isn't OK, and calls the redeliver endpoint for each one. For a repository webhook those are GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries and POST /repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}/attempts. Organization hooks and GitHub Apps have their own equivalents.
It's a sensible script, and most teams copied it. November 11 found both of its blind spots.
First, it can only redeliver what the sender recorded. An unrecorded delivery that your handler failed is invisible to it. The script reports zero failures and exits green.
Second, it usually keeps a checkpoint: a timestamp or the last delivery ID it processed, so the next run doesn't rescan everything. Once the checkpoint moves past a window where the sender's log is incomplete, that gap is behind it for good. No later run looks back.
Your recovery tool shares a failure domain with the outage
There's a second detail in that incident report: 63% of webhook API requests failed. The deliveries API your redelivery script calls is part of that webhook API. So during the exact window when deliveries were going unrecorded, your recovery tooling was getting errors from the endpoint it relies on to find failures.
What does your script do when the list call fails halfway through pagination? Plenty of hand-rolled versions log the error and then save the new checkpoint anyway, because the save sits in a finally block. A transient API failure becomes a permanent hole.
The rule is simple. Move the checkpoint forward only past pages you fully read, and only on a run that finished without errors.
async function redeliverFailed(hookId: number, since: Date) {
let cursor: string | undefined
let oldestSeen = new Date()
try {
do {
const page = await listDeliveries(hookId, { cursor, per_page: 100 })
for (const d of page.items) {
const deliveredAt = new Date(d.delivered_at)
if (deliveredAt < since) return commitCheckpoint(hookId, oldestSeen)
if (d.status !== 'OK' && !d.redelivery) await redeliver(hookId, d.id)
oldestSeen = deliveredAt
}
cursor = page.nextCursor
} while (cursor)
await commitCheckpoint(hookId, oldestSeen)
} catch (err) {
// Leave the checkpoint where it was. The next run rescans this window.
metrics.increment('redelivery.scan_failed', { hookId })
throw err
}
}
The script also skips entries flagged as redeliveries, so it doesn't redeliver its own redeliveries in a loop. And when a scan fails, it bumps a metric someone actually alerts on. A redelivery job that has been failing quietly for three runs is the same as having no redelivery job.
Keep your own receipt ledger
Reading the sender's log more carefully won't fill its gaps. You need a log of your own that doesn't depend on the sender at all.
Every GitHub delivery carries an X-GitHub-Delivery header with a GUID that identifies it. GitHub's best-practices guide says that if you request a redelivery, X-GitHub-Delivery stays the same as in the original delivery. That makes it a good primary key: one row per delivery, no matter how many times it arrives. Next to it, store X-GitHub-Event, X-GitHub-Hook-ID, the time you received it, and the raw body, or a pointer to where you keep the body.
CREATE TABLE webhook_receipts (
delivery_guid uuid PRIMARY KEY,
hook_id bigint NOT NULL,
event text NOT NULL,
received_at timestamptz NOT NULL DEFAULT now(),
body_ref text NOT NULL,
status text NOT NULL DEFAULT 'received',
attempts int NOT NULL DEFAULT 1,
last_error text
);
CREATE INDEX webhook_receipts_status_received
ON webhook_receipts (status, received_at);
That table is your audit trail. When support asks whether GitHub sent the event, you answer from your own records. When the sender's log has a hole, yours doesn't.
It doubles as your idempotency store, which you need anyway. The mechanics are in our post on duplicate processing. Insert on conflict, bump attempts, and use the row to decide whether the work already happened.
Write the receipt before you do the work
The order matters more than the schema. GitHub wants a 2XX within 10 seconds. If you process first and record afterwards, a crash in the middle leaves you exactly where the sender's log left you on November 11: the event arrived, something went wrong, and no record says so.
Verify the signature, write the receipt, enqueue the work, return 202. Mark the row done or failed from the worker.
app.post('/webhooks/github', async (req, res) => {
if (!verifySignature(req.rawBody, req.get('X-Hub-Signature-256'))) {
return res.sendStatus(401)
}
const guid = req.get('X-GitHub-Delivery')!
const bodyRef = await blobStore.put(`github/${guid}`, req.rawBody)
await db.query(
`INSERT INTO webhook_receipts (delivery_guid, hook_id, event, body_ref)
VALUES ($1, $2, $3, $4)
ON CONFLICT (delivery_guid)
DO UPDATE SET attempts = webhook_receipts.attempts + 1`,
[guid, req.get('X-GitHub-Hook-ID'), req.get('X-GitHub-Event'), bodyRef]
)
await queue.enqueue('github-event', { guid })
res.sendStatus(202)
})
Once the receipt is written, retrying a failure is your job. That's the point. Your worker retries from the stored body, on your schedule, and never asks whether the sender's log heard about the delivery. If the receipt write itself fails, return a 5xx. That's the one failure the sender's log should see.
A word on storage: raw bodies are a copy of someone else's data. Give them a retention period on purpose, as we argued in the post on payload retention. A few weeks covers any realistic incident review.
Reconcile in both directions
With two logs, you can compare them, and the comparison runs both ways.
GitHub recorded a delivery GUID that isn't in your ledger? Either your endpoint never got it, or you failed before writing the receipt. Redeliver it through the API. That's the classic case, and the only one the stock script handles.
Your ledger has a GUID that GitHub's deliveries list doesn't return? Normally that's rare enough to be interesting. On November 11 in Central US it was more than a quarter of traffic. If the receipt is done, note it and move on. If it's failed or stuck in received, redelivery is off the table. Replay it yourself from the stored body.
Both sides have it, but GitHub shows OK and your row says failed? Your handler returned 202 and the worker failed afterwards. That's the design working as intended, and your own retry owns it. This is also the pattern behind 200 OK with nothing happening, so make sure your worker retries actually alert when they run out.
const stuck = await db.query(
`SELECT delivery_guid, body_ref FROM webhook_receipts
WHERE status IN ('received', 'failed')
AND received_at < now() - interval '15 minutes'
ORDER BY received_at
LIMIT 500`
)
for (const row of stuck.rows) {
await queue.enqueue('github-event', { guid: row.delivery_guid, replay: true })
}
That query never calls GitHub, so it keeps working while the deliveries API is failing, as it was on November 11.
When neither log has the event
A receipt ledger covers deliveries that arrived. It can't help with events that were never sent, deliveries lost before they reached you while the sender also failed to record them, or a backlog that drains hours later. For those you need a reconciliation pass against the source of truth itself: the GitHub REST API state of the pull requests, check runs or issues you care about.
We've covered that pattern in why webhooks don't keep your state in sync. It's the backstop under the backstop. GitHub's October incidents got there by other routes: webhooks running an hour late, then a retry storm inside GitHub's own Redis client. November 11 adds one more: the sender's memory of what it sent can be wrong.
What to check from November 11
If you receive GitHub webhooks from the Central US data residency region, run this check now, while your logs still cover the window.
Pull every request your endpoint received between 20:06 and 20:50 UTC on November 11. Use your ledger if you have one, or access logs and application logs if you don't. Look for anything that didn't end in a success: 5xx responses, timeouts at your load balancer, worker failures. Then check those GUIDs against GitHub's deliveries API. Anything that failed on your side and doesn't appear on GitHub's side is an event nobody is going to resend. Replay it from your own copy, or rebuild the affected state from the REST API.
If you can't do this check because you have no record of what arrived, that's the real finding. Build the ledger before the next incident.
Frequently asked questions
Does this affect github.com, or only data residency customers? GitHub's report puts the unrecorded deliveries in the Central US data residency region. It doesn't report the same figure for other regions. The design lesson applies everywhere, though: any sender's delivery log is a separate write from the delivery itself and can drift from it.
Can I ask GitHub to redeliver an unrecorded delivery by its GUID? No. The redeliver endpoint takes the delivery ID from GitHub's own records, and the incident report says the unrecorded deliveries are unavailable to view or redeliver. Your only options are replaying from a body you stored yourself or rebuilding state from the REST API.
Is storing every raw webhook body worth the cost? For most integrations, yes, with a short retention period. GitHub payloads are usually small, and a few weeks of them is cheap next to one afternoon of reconstructing lost events by hand. Hash or drop fields you don't need if the payload carries personal data.
Should the receipt ledger and the idempotency table be the same table? Usually. Both are keyed on the delivery GUID and both need to be written before processing. Keeping them separate means two writes that can disagree, which is the exact problem this post is about.
How often should the two-way reconciliation run? Run the stuck-receipt replay every few minutes, because it only touches your own database. Run the comparison against GitHub's deliveries API hourly or daily, and make it resumable so a failed API call during an incident leaves its checkpoint where it was.