Skip to content

feat(service): redeliver webhook deliveries that failed #4560

Done

Description

@dan-petty

Problem or Motivation

No replica of the roadmap Service receives webhook deliveries for about 116 s at each rollout, 36.9 minutes a day. "GitHub does not automatically redeliver failed deliveries" (https://docs.github.com/en/webhooks/using-webhooks/handling-failed-webhook-deliveries). The repository has no redelivery code. A lost delivery waits for the next poll of its row. After "fix(roadmap): make intake due when a new issue opens", a lost delivery costs at most 5 minutes for intake, so this item cuts a delay, not a loss.

Proposed Solution & Architectural Design

  • A short row redeliver (the status lane now; a step of the sweep after "feat(roadmap): run the reconcile sweep on a cluster schedule") lists the deliveries since its last check, picks the failed ones that have no later success of the same id, and asks GitHub for a redelivery of each, as the documented script does.
  • First check whether the hook is the App's (/app/hook/deliveries, App JWT) or a repository hook, and use those endpoints. Count each request in the request window. Coordinate with feat(service): verify GitHub App webhooks with one secret #4417 (verify GitHub App webhooks with one secret).
  • The router marks a delivery id only after its target accepted it, so a redelivery of a failed target runs again.

Target Subsystem

SDLC, Git & PR Governance (roadmap Service webhooks: src/devops_cli/server/).

Existing Tool Considered

GitHub's documented redelivery pattern and its REST endpoints. A stateless router with 2 replicas removes most failures but not all. Cost: about 60,000 tokens and 3 hours to build, about 3,000 tokens a month to keep, about 10,000 tokens to fix.

Acceptance Criteria

  • With the HTTP edge doubled: a failed delivery gets one redelivery request; a delivered one gets none; a redelivery that fails again is tried at the next run, up to the age limit of the API.
  • Live: after a rollout, the delivery list shows each failed delivery of the rollout window with a later success.
  • Measure: failed deliveries with no later success, a week: 0.

Dependencies

None.

Source: #4517

Alternatives check of 2026-11-25: in-use.
The repository already uses this tool.
Tool: gidgethub (https://pypi.org/project/gidgethub), Apache-2.0 AND MIT, last activity 2026-11-20, maintained.
Reason: Searches found no packaged redelivery tool: GitHub documents only a script template. gidgethub, already used here, supplies the REST transport and App JWT; the selection, cursor state, gauge and router marking must still be built.

Covers:

  • REST calls to App hook endpoints
  • App JWT signed from app ID and private key
  • Rate-limit headers and retry-after exposed

Lacks:

  • Selection of failed guids with no later success
  • Cursor and pending map across runs
  • Unresolved-delivery gauge and dashboard query
  • Per-consumer delivery-id marking in the router

Owner decision 2026-11-13

The approved pipeline split (tracker #5482, Phase 4) keeps this scope. The poll stays the fallback for a lost delivery.

  • Live proof: after the merge and the release, the redelivery runs as the App over the failed deliveries of the last 24 h. A comment gives the delivery IDs that it sent again and their new status.

Proposed design

Problem statement

At each rollout, no roadmap Service replica receives webhook deliveries for about 116 s, or 36.9 minutes a day, and GitHub does not redeliver a failed delivery. The Service receives the GitHub App webhook today (the single-secret App webhook of #4417 has landed), and the repository has no redelivery code, so a lost delivery waits for the next poll, up to 5 minutes for intake. This change adds a no-clone redeliver row that lists App hook deliveries since its last check, sends one redelivery request for each failed delivery identity with no later success, keeps pending identities in redeliver.json, sets an unresolved-delivery gauge, and marks a delivery id per consumer in the router, which answers 500 when a consumer target raises. The repository hook path needs a token with write access and is deferred to a new issue.

Acceptance criteria

Requirement: Redeliver a failed App hook delivery

The redeliver row SHALL send one attempts request for each App hook delivery guid whose newest attempt has no 2xx status code.

Scenario: Failed identity selected

  • WHEN A faked GET /app/hook/deliveries answer holds one failed guid and one delivered guid.
  • THEN The row sends one POST /app/hook/deliveries/{delivery_id}/attempts request for the failed guid and none for the delivered guid.

Requirement: Skip an identity with a later success

The redeliver row MUST NOT send an attempts request for a guid that has a later 2xx attempt.

Scenario: Later success clears the identity

  • WHEN A faked delivery list holds a failed attempt and a later 2xx attempt with the same guid.
  • THEN The row sends no attempts request for that guid and holds no entry for it in redeliver.json.

Requirement: Keep a failed identity pending

The redeliver row SHALL keep a failed guid in the pending map of redeliver.json until a later 2xx attempt or 3 days, across cursor advances.

Scenario: Pending identity survives the cursor

  • WHEN A pending guid redelivery fails again and the row advances its cursor to a newer delivery.
  • THEN The next run reads redeliver.json and sends an attempts request for the newest failed delivery id of the pending guid.

Requirement: Age limit of 3 days

The redeliver row MUST NOT send an attempts request for a delivery whose delivered_at is more than 3 days before the row clock.

Scenario: Old delivery skipped

  • WHEN A faked failed delivery has a delivered_at value 4 days before the row clock.
  • THEN The row sends no attempts request for that delivery and drops its guid from redeliver.json.

Requirement: App hook endpoints with an App JWT

The redeliver row SHALL send its list and attempts requests to /app/hook/deliveries through GitHubSession.rest() with an App JWT in the Authorization: Bearer header.

Scenario: App hook redelivery

  • WHEN A faked failed App hook delivery needs a redelivery.
  • THEN The row sends GET /app/hook/deliveries and POST /app/hook/deliveries/{delivery_id}/attempts, each with the JWT that gidgethub.apps.get_jwt signs from the configured App ID and private key.

Requirement: No App webhook

The redeliver row SHALL exit 0, set devops_cli_service_webhook_unresolved_deliveries to 0 and send no attempts request when GET /app/hook/deliveries answers 404 or an empty list.

Scenario: No App webhook

  • WHEN The faked GET /app/hook/deliveries answers 404.
  • THEN The row returns a successful JobOutcome, the gauge value is 0, and no attempts request is sent.

Requirement: Request budget counts each attempt

The redeliver row SHALL send each list and attempts request through GitHubSession.rest(), so the Service RequestBudget counts each attempt under the redeliver row.

Scenario: Budget counts the row

  • WHEN The row makes one list request and two attempts requests through the session with a faked RequestBudget gate.
  • THEN The gate admits three requests and devops_cli_github_requests_total counts three attempts with the row redeliver.

Requirement: Mark a delivery id per consumer

The webhook router SHALL record a delivery id for a consumer only after that consumer delivery target returns without raising.

Scenario: Failed target stays unmarked

  • WHEN A delivery with one id reaches two consumers and one target raises.
  • THEN The router records the id only for the consumer whose target returned, and a second request with the same id runs only the consumer whose target raised.

Requirement: A failed target answers 500

The webhook router SHALL hand a delivery to every subscribed consumer and answer HTTP 500 when any consumer delivery target raised.

Scenario: One target raises

  • WHEN A delivery reaches two consumers and the first target raises.
  • THEN Both targets run and the route answers HTTP 500.

Requirement: Unresolved delivery gauge

The redeliver row SHALL set devops_cli_service_webhook_unresolved_deliveries to the count of failed guid identities in redeliver.json with no later 2xx attempt.

Scenario: Every failed identity has a later success

  • WHEN A faked delivery list holds failed identities and each one has a later 2xx attempt.
  • THEN The gauge value is 0.

Requirement: Declared Service series

The change SHALL declare the gauge as CONST_SERVICE_METRIC_WEBHOOK_UNRESOLVED_DELIVERIES and list it in SERVICE_SERIES as InstrumentKind.GAUGE.

Scenario: The telemetry instruments test passes

  • WHEN The change runs uv run pytest tests/telemetry/test_telemetry_instruments.py.
  • THEN The test passes, so the gauge is a declared Service series.

Requirement: No-clone status row

The Service SHALL run the redelivery as the no-clone row redeliver of the status lane, with first_run_due and DEFAULT_ROADMAP_REDELIVER_INTERVAL_MINUTES = 7, until the reconcile sweep lands.

Scenario: The row needs no clone

  • WHEN The change runs uv run pytest tests/roadmap/test_roadmap_run_job_rows.py tests/roadmap/test_roadmap_intervals.py.
  • THEN The tests pass, STATUS_LANE_ROWS holds redeliver with needs_clone false, first_run_due true and an interval of 7 minutes.

Requirement: Dashboard query

The dashboard k8s/devops/dashboards/roadmap-service-telemetry.json SHALL hold a panel whose query reads the devops_cli_service_webhook_unresolved_deliveries series.

Scenario: Dashboard passes the k8s validator

  • WHEN The change runs uv run devops ci --check --only k8s.
  • THEN The k8s check exits 0.

Requirement: Pending a person after the merge

A person SHALL, after the merge and the release, run the redelivery as the App over the failed deliveries of the last 24 h and comment each delivery ID that it sent again with its new status.

Scenario: Live proof given

  • WHEN The change is merged and released.
  • THEN The issue comment lists each delivery ID that the redelivery sent again over the last 24 h with its new status.

Existing Tool Considered

gidgethub (https://pypi.org/project/gidgethub), Apache-2.0 AND MIT, last activity 2026-11-20, maintained. The alternatives check of 2026-11-25 in the issue body records the verdict in-use, and its block states what the tool lacks for this change. The repository already uses gidgethub for its REST transport and App JWT, as docs/adr/0006-github-session-requests-go-through-gidgethub.md records, so the change builds on that transport rather than a second client. Building the parts that the block leaves to this change costs about 60,000 tokens and 3 hours, about 3,000 tokens a month to keep and about 10,000 tokens to fix.

Key questions

  • Which GitHub API endpoints does the App hook redelivery row use?: The row uses the GitHub App hook endpoints: GET /app/hook/deliveries to list and POST /app/hook/deliveries/{delivery_id}/attempts to redeliver, each with an App JWT. The App JWT authenticates the App itself, so the row needs no installation token or installation permission. The repository hook path needs a token with the repository Webhooks write permission, and this change defers it. (best practice) [sources: https://docs.github.com/en/webhooks/testing-and-troubleshooting-webhooks/redelivering-webhooks, docs/adr/0015-roadmap-jobs-act-as-a-github-app-on-the-personal-account.md, src/devops_cli/github/hook_deliveries.py:98]
    • Chosen: App hook endpoints with an App JWT. The App JWT authenticates the App hook with no installation permission, and GitHub documents these endpoints for a GitHub App webhook.
    • Rejected: Repository hook endpoints in this change. Their redelivery needs a token with write access, and the Service token holds Webhooks read today.
    • Rejected: Detect both and use both. The repository path cannot run with the token as scoped, so this change defers it.
  • Which webhook does the Service receive today?: The Service receives the GitHub App webhook at https://hooks.<domain>/webhooks/github, verified with the single App webhook secret service.github_app.webhook_secret; feat(service): verify GitHub App webhooks with one secret #4417 landed and replaced the per-repository secrets of service.webhook_secrets. The route checks the signature with service_manager.webhook_secret and refuses a payload whose repository is not managed with HTTP 403. The GitHub App setup starts with webhook off and the deployment step then enables the App webhook with that one secret and the six roadmap events. [sources: docs/CLUSTER.md:49, src/devops_cli/server/routes/webhooks.py:777, src/devops_cli/server/routes/webhooks.py:782, src/devops_cli/server/routes/webhooks.py:790, openspec/specs/roadmap-service-webhooks/spec.md:157]
  • How does the row decide that a delivery needs a redelivery?: The row lists App hook deliveries since the last check with GET /app/hook/deliveries and no status filter. It groups them by guid, ordered by delivered_at. A guid needs a redelivery when its newest attempt has no 2xx status code. The row sends one attempts request for the newest failed attempt id. A 3xx answer is a failure, as the existing delivery read counts every code outside 2xx. docs/SERVICE_PATTERNS.md:40 records that a redelivery keeps its delivery id, so a later attempt of the same guid is the one that clears it. (best practice) [sources: https://docs.github.com/en/webhooks/testing-and-troubleshooting-webhooks/redelivering-webhooks, src/devops_cli/github/hook_deliveries.py:131, docs/CLUSTER.md:53, docs/SERVICE_PATTERNS.md:40]
    • Chosen: Group by guid and use the newest attempt. The guid is the identity that GitHub lists for the event and that a redelivery keeps, and a later 2xx attempt clears it.
    • Rejected: Group by attempt id. A redelivery is a new attempt of the delivery, so an attempt key retries the same event.
    • Rejected: List only status=failure. The filter hides the later success of the same guid that the row must see before it retries.
    • Rejected: Count a 3xx answer as a success. The existing delivery read counts every code outside 2xx as a failure, and GitHub records a redirect as no acceptance.
  • How does the row keep a failed redelivery pending after it advances its cursor?: The row keeps a cursor and a pending map of guid to the newest failed attempt in redeliver.json beside schedule.json. The change adds CONST_ROADMAP_REDELIVER_LEDGER_FILENAME = "redeliver.json" beside CONST_ROADMAP_RUN_STATE_FILENAME (src/devops_cli/config/constants.py:4261). The Service already keeps item-label-times.json beside each schedule.json. Each run reads the list back to the cursor and merges the attempts. It drops a guid on a later 2xx attempt or at 3 days. It advances the cursor and sends one redelivery per pending guid. As a sweep step it keeps the cursor and the pending set in the shared state that ADR 0021 puts in Valkey. (best practice) [sources: src/devops_cli/github/hook_deliveries.py:96, src/devops_cli/github/hook_deliveries.py:123, docs/CLUSTER.md:52, src/devops_cli/config/constants.py:4261, docs/adr/0021-the-roadmap-service-is-a-webhook-router-cluster-pods-run-the-roadmap-jobs-and-valkey-holds-their-shared-state.md, src/devops_cli/roadmap/run.py:1214]
    • Chosen: Cursor plus pending map. It retries a failed delivery and keeps the list small.
    • Rejected: Cursor only. A failed redelivery falls behind the cursor and is never retried.
    • Rejected: Full 3-day scan each run. It reads every page of the 3-day window on each run, more requests than the cursor and the pending map.
  • What age limit applies to a redelivery request?: 3 days. GitHub's 'Redelivering webhooks' page, fetched 2026-11-29, says 'You can redeliver webhook deliveries that occurred in the past 3 days' and that the 'Recent deliveries' list of a GitHub App holds 'all deliveries from the past 3 days'. The Service calls https://api.github.com, so its limit is 3 days. [sources: https://docs.github.com/en/webhooks/testing-and-troubleshooting-webhooks/redelivering-webhooks]
  • How does the row send an App JWT and account for its GitHub requests?: The row signs a JWT with gidgethub.apps.get_jwt(app_id=..., private_key=...) for the configured App. It sends each request through GitHubSession.rest() with a token keyword that the change adds, because rest() and the transport send() take no token today. The request still waits on the ledger and the budget. The gate that ServiceManager._start_rows (called by start) sets with set_request_gate(self.budget.admit, self.budget.refund) charges the Service RequestBudget. The row runs in the request scope of its name. The ast-grep rule github-request-scope-row refuses a request scope that names no row. Each attempt counts under the redeliver row. (best practice) [sources: src/devops_cli/github/session.py:97, src/devops_cli/github/session_transport.py:527, src/devops_cli/github/session_transport.py:226, src/devops_cli/github/rate_limiter.py:799, src/devops_cli/server/service.py:959, docs/CLUSTER.md:53, docs/adr/0006-github-session-requests-go-through-gidgethub.md, openspec/changes/archive/2026-10-28-1647-roadmap-github-app/proposal.md:44]
    • Chosen: A JWT through the session transport. The request still waits on the ledger and the budget, and gidgethub signs the JWT.
    • Rejected: A second raw gidgethub client. It bypasses the session pacing, ledger and request budget.
    • Rejected: An installation token. GitHub's script for an App webhook needs a JWT for the find and redeliver endpoints.
  • When does the router mark a delivery id?: The router records the delivery id for a consumer after that consumer delivery target returns without raising. The router today calls delivery_cache.check_and_add once in _route before _hand_to_consumers (src/devops_cli/server/routes/webhooks.py:861), so a target that raises is never retried. The change moves the mark after the target returns and keys the DeliveryLRUCache (src/devops_cli/server/service.py:911) by the delivery id and the consumer name, so a redelivery runs only the consumer that failed. The router hands the event to every subscribed consumer, catches a target's exception, and answers HTTP 500 when any target raised, so GitHub records the delivery as failed and the redeliver row sees it. (best practice) [sources: src/devops_cli/server/routes/webhooks.py:861, src/devops_cli/server/routes/webhooks.py:866, src/devops_cli/server/service.py:911, docs/SERVICE_PATTERNS.md:40, docs/adr/0009-one-webhook-router-delivers-each-event-to-the-consumers-subscribed-to-it.md, tests/server/test_server_service.py:317]
    • Chosen: Mark per consumer after the target returns. A redelivery runs only the consumer whose target failed, and the 500 answer makes GitHub record the delivery as failed.
    • Rejected: Mark on receipt. A target that raises is never retried.
    • Rejected: Mark after every consumer accepts. A redelivery reruns consumers that already accepted.
  • How does the Service measure failed deliveries without a later success?: The row sets the gauge devops_cli_service_webhook_unresolved_deliveries through GLOBAL_METRICS.set_gauge to the number of guid identities in the pending map that have no later 2xx attempt. The name comes from a new CONST_SERVICE_METRIC_* constant, and the series joins SERVICE_SERIES as a gauge. The change also lists the gauge in docs/CLUSTER.md:53 beside the other Service series. The existing devops_cli_service_webhook_delivery_failures gauge is a per-repository, 15-minute window count by code, so it cannot show an unresolved identity. (best practice) [sources: src/devops_cli/github/hook_deliveries.py:16, docs/CLUSTER.md:53, tests/telemetry/test_telemetry_instruments.py:84, k8s/devops/dashboards/roadmap-service-telemetry.json:936]
    • Chosen: A new gauge that the row sets each run. The value is a current count, and a week is a query window.
    • Rejected: Extend devops_cli_service_webhook_delivery_failures. It is a windowed count by repository and code and knows nothing of a later success.
    • Rejected: A weekly counter. A counter cannot fall when an identity gets a later success.
    • Rejected: No metric. The measure of the issue cannot be read.
  • Which dashboard holds the Service panels?: k8s/devops/dashboards/roadmap-service-telemetry.json holds the Service panels, such as the existing webhook-delivery-failures query at line 936. k8s/devops/dashboards/devops-cli.json is the dashboard of the devops command itself. It holds only a link titled Roadmap Service to the telemetry dashboard. The new panel goes in roadmap-service-telemetry.json, and the k8s row of devops ci validates that its query names a declared metric. [sources: k8s/devops/dashboards/roadmap-service-telemetry.json:936, k8s/devops/dashboards/devops-cli.json:17, tests/gate/k8s_checks/dashboards.py:48]
  • Which lane runs the redeliver row, and how often?: A no-clone row of the status lane, named redeliver, runs now. Its interval is DEFAULT_ROADMAP_REDELIVER_INTERVAL_MINUTES = 7. The row-interval rule requires a prime interval that is no multiple of 5 minutes, and 7 is the smallest such interval above the 5-minute poll. The interval test counts the constants today at 15 and the change raises that count to 16. When the reconcile sweep lands, the redelivery becomes a step of that sweep, which ADR 0021 runs every 5 minutes. (best practice) [sources: src/devops_cli/roadmap/run.py:1214, src/devops_cli/config/defaults.py:994, tests/roadmap/test_roadmap_intervals.py:23, tests/roadmap/test_roadmap_intervals.py:30, tests/roadmap/test_roadmap_intervals.py:31, docs/adr/0021-the-roadmap-service-is-a-webhook-router-cluster-pods-run-the-roadmap-jobs-and-valkey-holds-their-shared-state.md]
    • Chosen: A 7-minute status row now, a sweep step after. It gives a live effect before the sweep lands and keeps the interval prime and off the 5-minute tick.
    • Rejected: A 5-minute status row. The interval test refuses a multiple of 5 minutes.
    • Rejected: A step of the sweep only. The reconcile sweep does not exist yet, so the change would wait on another item for a live effect.
    • Rejected: The model lane. The model lane holds the rows that call the model, and the row calls none.
  • Does this item depend on feat(service): verify GitHub App webhooks with one secret #4417?: No. feat(service): verify GitHub App webhooks with one secret #4417 has landed: the main spec openspec/specs/roadmap-service-webhooks/spec.md:157 records 'Single App webhook secret', the router verifies each delivery with one secret, service_manager.webhook_secret (src/devops_cli/server/routes/webhooks.py:782), and the deployment step enables the App webhook with service.github_app.webhook_secret (docs/CLUSTER.md:49). The App JWT hook endpoints are therefore reachable today, so the code and the live proof need no other item, and no dependency is recorded. [sources: openspec/specs/roadmap-service-webhooks/spec.md:157, src/devops_cli/server/routes/webhooks.py:782, docs/CLUSTER.md:49, src/devops_cli/server/service.py:1186]
  • Does the approved pipeline split keep this scope?: Yes. ADR 0021 lists the redelivery as a step of the sweep, and docs/ROADMAP_WORKFLOW.md:485 records the pipeline split tracker feat(roadmap): track the roadmap pipeline split into jobs #5482. docs/SERVICE_PATTERNS.md:42 records the rule that the redelivery reads the failed deliveries of each hook and asks GitHub to redeliver them. The owner decision of 2026-11-13 keeps this scope, and the poll stays the fallback for a lost delivery. The live proof runs after the merge and the release. (best practice) [sources: docs/adr/0021-the-roadmap-service-is-a-webhook-router-cluster-pods-run-the-roadmap-jobs-and-valkey-holds-their-shared-state.md:55, docs/ROADMAP_WORKFLOW.md:485, docs/SERVICE_PATTERNS.md:42]
    • Chosen: Keep the scope. The owner decision of 2026-11-13 keeps this scope and the poll fallback.
    • Rejected: Keep the poll only. The owner decision keeps the redelivery scope.
  • How does the per-consumer mark fit the recorded rule that the router drops a repeated delivery id?: The recorded rule becomes per consumer: the router drops a repeated delivery id for each consumer that already accepted the delivery, and hands it to a consumer that has not. The change updates docs/SERVICE_PATTERNS.md IN4 and the bullet of ADR 0009 that says the router drops a repeated delivery id. The existing single-consumer test test_webhook_duplicate_and_ignored_deliveries keeps its expectation: a second delivery with the same id answers 200 duplicate and runs no consumer again. (best practice) [sources: docs/SERVICE_PATTERNS.md:40, docs/adr/0009-one-webhook-router-delivers-each-event-to-the-consumers-subscribed-to-it.md, src/devops_cli/server/routes/webhooks.py:861, tests/server/test_server_service.py:317]
    • Chosen: Amend the rule to one mark per consumer. A failed consumer is retried and an accepted one is not, and the single-consumer behaviour stays as the existing test expects.
    • Rejected: Keep the global drop. A target that raises is never retried, so the redelivery row cannot repair it.
    • Rejected: A second router path for redeliveries. It duplicates the verification, validation and subscription logic that ADR 0009 puts in one router.

Fit

Fits in one pull request.

Suspected block

None.

Dependencies

None.

Moved to new items

#7703

Activity

  1. added
    source/agent
    on Nov 11, 2026
  2. added
    type/feature
    scope/service
    status/new
    value/medium
    effort/low
    on Nov 11, 2026
  3. dan-petty commented on Nov 11, 2026

    @dan-petty
    OwnerAuthor

    Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.

    • Type: type/feature. The feat prefix of the title gives the type.
    • Scope: scope/service. The (service) scope of the title gives the scope.
    • Priority: P2-Medium. It cuts a 5-minute delay per lost delivery but does not prevent data loss, so it is not urgent.
    • Value: Medium. It removes up to 36.9 minutes of daily delay for webhook-driven jobs, but the impact is a delay, not a loss.
    • Effort: Low. The body estimates about 3 hours to build and a small monthly upkeep cost.
    • Related: feat(cli): service mode for devops serve with github webhooks, a polling tick and per-repo job queues #752, which asks for a different change. #752 is the umbrella service-mode item that chose polling over redelivery; the candidate adds the redelivery sweep that #752 deferred.
  4. added
    priority/p2-medium
    on Nov 11, 2026
  5. devops-cli-service commented on Nov 11, 2026

    @devops-cli-service
    Contributor

    Refine cannot set this item to Ready at 1db29f7 while the items below stay open. The next refine round looks at the item again when they close, or when a person replies in a comment or edits the body.

    The next refine round also looks at the item again when a commit on the default branch changes one of these files: src/devops_cli/server/routes/webhooks.py.

  6. devops-cli-service commented on Nov 12, 2026

    @devops-cli-service
    Contributor

    Refine cannot set this item to Ready at c3130a3 until a person answers the questions below. Reply in a comment or edit the body, and the next refine round looks at the item again.

    • Who configures the GitHub App's webhook and its secret? (a person decides)
  7. devops-cli-service commented on Nov 12, 2026

    @devops-cli-service
    Contributor

    Alternatives check: partly

    Reason: The searches found no open, maintained tool that redelivers failed GitHub webhook deliveries: GitHub's own page says it never redelivers automatically and only offers example scripts to copy. The one library that covers a real part of the need is gidgethub, the GitHub REST client the Service already uses (and the issue itself names), which handles the App-JWT-signed requests, pagination and decoding that the delivery-list and attempts calls need, but it has no redelivery job.

    Tool: gidgethub (https://pypi.org/project/gidgethub)

    • License: Apache-2.0 AND MIT
    • Last activity: 2026-09-25
    • Maintained: yes

    Covers:

    • The GitHub REST client the row's requests go through: builds each request, decodes each answer, follows Link pages, keeps ETags, retries a rate limit and signs the App JWT
    • Already the client of every GitHub request in the Service through GitHubSession (ADR 0006), so the delivery-list and redelivery calls stay paced and budgeted

    Lacks:

    • No redelivery job: no listing of GitHub App hook deliveries grouped by guid
    • No cursor and pending set that keeps a failed identity across runs
    • No 3-day age limit and no POST /app/hook/deliveries/{delivery_id}/attempts call
    • No devops_cli_service_webhook_failed_deliveries gauge or dashboard query
    • No maintained tool exists for the redelivery pattern; GitHub documents only example scripts to adapt

    Tools considered:

    Searches run:

    • GitHub App hook deliveries redelivery script open source, results: 5
    • tool to automatically redeliver failed GitHub webhook deliveries, results: 5
    • hookdeck github webhook redelivery, results: 5
    • gidgethub redeliver webhook delivery attempts, results: 5
    • octokit redeliver webhook delivery plugin, results: 5
    • GitHub webhook redelivery open source project cron, results: 5
    • github webhook failed deliveries retry service, results: 5
    • gidgethub python library, results: 5
    • webhook delivery retry queue open source self-hosted github, results: 5

    Sources:

    Checked on 2026-11-12. A person decides what this means for the item. The check changes no label and closes no issue.

  8. dan-petty commented on Nov 13, 2026

    @dan-petty
    OwnerAuthor

    The SRE service spec (#5445, docs/SRE.md) takes SLO 5 of the roadmap Service from the Traefik requests. A webhook that GitHub sent while no pod ran does not get to Traefik, so SLO 5 does not count it. On 2026-11-13, the Deployment had no available replica in 4.6 % of the minutes of 7 days.

    Please let the gauge devops_cli_service_webhook_failed_deliveries of this item count as bad events of SLO 5, next to the 5xx answers. The Sloth spec of #4709 can hold that SLI.

  9. devops-cli-service commented on Nov 14, 2026

    @devops-cli-service
    Contributor

    Refine cannot set this item to Ready at 79eb893 until a person answers the questions below. Reply in a comment or edit the body, and the next refine round looks at the item again.

    • Who configures the GitHub App's webhook and its secret? (a person decides)
  10. devops-cli-service commented on Nov 19, 2026

    @devops-cli-service
    Contributor
  11. 7 remaining items

  12. added
    owner/service
    and removed
    owner/service
    on Nov 29, 2026
  13. added
    status/in-progress
    and removed
    status/ready
    on Nov 29, 2026
  14. removed
    owner/service
    on Nov 29, 2026
  15. added
    status/in-review
    and removed
    status/in-progress
    on Nov 29, 2026
  16. removed
    status/in-review
    on Nov 29, 2026
  17. devops-cli-service commented on Nov 29, 2026

    @devops-cli-service
    Contributor

    Live since 2026-11-29 16:50 UTC

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    effort/lowpriority/p2-mediumscope/servicesource/agenttype/featurevalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions