Pair With Me Join the waitlist

You direct. It drafts. A person owns the code.

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

Retry failed webhook deliveries with capped backoff #142

Closed you opened this issue · 7 comments

  1. 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.

  2. you commented 41 minutes ago

    @pairwithmeai /spec

    👀 1🚀 1🎉 1

  3. pairwithmeai bot commented 38 minutes ago · edited

    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

  4. 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

  5. pairwithmeai bot commented 31 minutes ago · edited

    Spec · revised

    Backoff is capped at 5 minutes. Failed deliveries stay on the dead-letter topic for 7 days. Nothing else changed.

    Complexity: medium

  6. dev-o commented 30 minutes ago Member

    Read the revised spec. That matches what we agreed in standup.

  7. you commented 29 minutes ago

    @pairwithmeai /implement

    👀 1🚀 1🎉 1

  8. pairwithmeai bot commented 27 minutes ago · edited

    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.

  9. pairwithmeai linked a pull request that will close this issue #148

  10. you closed this as completed in #148

Retry webhook deliveries with capped backoff #148

Merged you merged 1 commit into main from pairwithme/issue-142-7

  1. pairwithmeai bot 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.

    Spec#142 comment · sha256:9f2c41e…
    Base3e7a0d1
    Model tierstandard

    Closes #142. Requested by @you in #142.

  2. you commented 4 minutes ago

    @pairwithmeai /review

    👀 1🚀 1🎉 1

  3. pairwithmeai bot reviewed 3 minutes ago Commented

    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.

  4. you marked this pull request as ready for review

  5. dev-o approved these changes 2 minutes ago Approved

    Read the description and the diff. Matches the spec. Ship it.

  6. you merged commit 4b1e9c2 into main

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.

CommentWhat happens
@pairwithmeai <question>Answers from the code and the thread. No files change.
@pairwithmeai /specWrites a spec for the issue, or revises the latest one.
@pairwithmeai /implementBuilds the latest spec and opens a draft pull request.
@pairwithmeai /reviewReviews a pull request against its diff and spec. Never approves.
@pairwithmeai /statusLists recent requests on the thread. No model calls.
@pairwithmeai /cancelStops 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

RequestDefault tier
Questions, /spec, /reviewreasoning
/implement, small specfast
/implement, medium specstandard
/implement, large specreasoning

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 limits 3 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 planned orchestration

    A repository can require an approved spec before /implement. Editing the spec voids the approval.

  • Repository instructions planned influence

    A committed file with the team's conventions, read at the base commit and named in every result.

  • Named owners planned accountability

    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.