Pair With Me is an AI pair programmer that lives in your GitHub issues. You ask in a comment, it writes the spec and opens a draft pull request, and a person on your team approves and merges. Try it below.
acme / ledgerExample
Issues 12
Pull requests 3
Retry failed webhook deliveries with capped backoff #142
OpenClosedyou opened this issue · 7 comments
you
you opened 2 hours ago Owner
When a webhook delivery fails we drop it. We should retry with backoff and park anything that keeps failing so we can look at it.
you
you commented 41 minutes ago
@pairwithmeai /spec
👀 1🚀 1🎉 1
pairwithmeaibot commented 38 minutes ago · edited
Working on it. This comment will update when the spec is ready.
Spec
Retry failed webhook deliveries with exponential backoff, using the delivery ID as the idempotency key so a retry never posts twice. After the last attempt, move the delivery to a dead-letter topic.
Retry state survives a worker restart.
Tests cover the backoff schedule without sleeping.
Complexity: medium
you
you commented 33 minutes ago
@pairwithmeai /spec cap the backoff at 5 minutes, and keep failed deliveries on the dead-letter topic for 7 days.
👀 1🚀 1🎉 1
pairwithmeaibot commented 31 minutes ago · edited
Working on it. This comment will update when the spec is revised.
Spec · revised
Backoff is capped at 5 minutes. Failed deliveries stay on the dead-letter topic for 7 days. Nothing else changed.
Complexity: medium
DO
dev-o commented 30 minutes agoMember
Read the revised spec. That matches what we agreed in standup.
you
you commented 29 minutes ago
@pairwithmeai /implement
👀 1🚀 1🎉 1
pairwithmeaibot commented 27 minutes ago · edited
Working on it in a sandbox. This comment will update with the draft.
Opened draft pull request #148 on pairwithme/issue-142-7. It builds the revised spec. Tests ran in the sandbox; integration tests are left to CI.
pairwithmeai linked a pull request that will close this issue #148
DraftOpenMergedpairwithmeai wants to merge 1 commit into main from pairwithme/issue-142-7you merged 1 commit into main from pairwithme/issue-142-7
pairwithmeaibot opened this pull request 8 minutes ago
What changed and why
Failed deliveries now retry with exponential backoff capped at 5 minutes, keyed by delivery ID so a retry never posts twice. After the last attempt they go to the dead-letter topic and stay for 7 days, as the revised spec asked.
Tests run
go test ./internal/webhook/... passed in the sandbox.
Reviewing the diff against the spec. This comment will update.
Checked the diff against #142's revised spec. The backoff cap, idempotency key and 7-day retention match. One suggestion, not blocking: add jitter to the backoff so retries from many deliveries don't line up.
Reviews never approve. Approval is yours.
you marked this pull request as ready for review
DO
dev-o approved these changes 2 minutes agoApproved
Read the description and the diff. Matches the spec. Ship it.
you merged commit 4b1e9c2 into main
you
WritePreviewCommenting on issue #142
Post the comment to see what happens next.
Example repository, issue and people. The comments, reactions and draft follow what Pair With Me does today.
Every request is a comment in the open
Mention @pairwithmeai in an issue or pull request. It replies in one comment and updates it as it works. Requesters need write access to the repository.
Comment
What happens
@pairwithmeai <question>
Answers from the code and the thread. No files change.
@pairwithmeai /spec
Writes a spec for the issue, or revises the latest one.
@pairwithmeai /implement
Builds the latest spec and opens a draft pull request.
@pairwithmeai /review
Reviews a pull request against its diff and spec. Never approves.
@pairwithmeai /status
Lists recent requests on the thread. No model calls.
@pairwithmeai /cancel
Stops running requests and deletes their sandboxes.
People stay in charge at three points
Orchestration
People decide which step runs, who may start it, and when work stops.
Influence
People revise the spec in the thread before any code exists.
Accountability
Every draft says what changed, why, which spec it built, and who asked for it.
You can always see where a run is
👀
Claimed. A worker picked it up.
🚀
Sandbox started. The agent is working.
🎉
Succeeded. The comment holds the result.
😕
Failed or blocked. The comment says why.
After 10 minutes with no agent activity the comment says the run is stalled. A stalled run is never killed. A run that stops early opens a draft titled [Incomplete] that lists what's left.
The agent works in a sealed sandbox
Each request gets a fresh gVisor pod with the repository checked out and its toolchain installed: read-only root, non-root user, no DNS, deny-all network. It is deleted when the run ends.
Can reach
The model proxy
With a signed run token valid only for this run. The proxy enforces the model tier, so the sandbox can't ask for a bigger model.
The egress proxy
proxy.golang.org, sum.golang.org, PyPI, files.pythonhosted.org, registry.npmjs.org and Yarn. Every other host is refused.
Never has
A GitHub token
A provider API key
A Kubernetes service account
The open internet
Commits come from the worker, never the sandbox. Changes under .github/workflows are dropped and listed.
The spec sets the model
Request
Default tier
Questions, /spec, /review
reasoning
/implement, small spec
fast
/implement, medium spec
standard
/implement, large spec
reasoning
Each repository can change these defaults.
The second run is faster: dependency caches are keyed by lockfiles, a small memory graph lets the agent recall facts about the codebase between runs, and warm nodes keep the images pulled.
What it doesn't do today
Known limits, each with what to do instead, and what's planned next.
5 known limits3 planned
Small sandbox: 2 CPUs, 8 GiB, no Docker or service containers limitation
Rely on CI for integration and end-to-end tests.
Go, Python and Node images only limitation
Other languages fall back to the Node image.
Package registries are the only egress limitation
Add private mirrors as extra hosts, or vendor.
A repository's AGENTS.md isn't read yet limitation
Steer through the spec and the thread for now.
No spec approval gate yet limitation
Rely on write access and draft review.
Spec gate plannedorchestration
A repository can require an approved spec before /implement. Editing the spec voids the approval.
Repository instructions plannedinfluence
A committed file with the team's conventions, read at the base commit and named in every result.
Named owners plannedaccountability
Every draft names who asked for it and who approved the spec. Usage measured per installation.
Run it where your code lives
One Go binary runs four services: webhook, worker, model proxy and egress proxy. Pub/Sub queues the work. Choose either way to run it.
Hosted
We run it in the Pair With Me cloud.
Install the GitHub App on your repositories and start commenting. Sandboxes, proxies and queues run in the hosted environment.
Self-hosted
You run it in your own environment.
A self-contained system installed with a Helm chart on your Kubernetes, in your cloud or a private environment.
Bring the loop to your repositories
Pair With Me is in early access. Leave your work email and we'll be in touch about bringing it to your team, hosted or self-hosted.