Skip to content

fix(service): redeliver once for the App with a valid JWT - #7938

Merged
dan-petty merged 2 commits into
mainfrom
fix/7925-redeliver-once-per-app
Nov 30, 2026
Merged

dan-petty merged 2 commits into
mainfrom
fix/7925-redeliver-once-per-app

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

The row redeliver halted the roadmap Service. It signed one App JWT for a whole round, the round outlived the JWT, and GitHub answered 401, which the Service reads as a refused identity. The row also ran for each repository of service.repos, so each one asked again for each redelivery of the one App.

  • Only the row of the first repository of service.repos asks. Its redeliver.json keeps its path, so no manual step is necessary.
  • Each attempt and resend signs its JWT after its wait: the token of GitHubSession.rest() is now a function.
  • A refused attempt does not end the others. A refused identity or a rate limit still ends the round.

This change holds the JWT signing fix, because no #7911 pull request with it was open or merged. #7911 changes the class of a 403 rate limit, and the two branches merged with no conflict.

Closes #7925

Change: openspec/changes/archive/2026-11-30-7925-redeliver-once-per-app/

The row signed one JWT for a whole round, so a long round got HTTP 401 and the Service halted. It also ran once for each repository, though the deliveries belong to the App.
@dan-petty dan-petty added type/bug Type bug: the code does not do what it must scope/service The long-running devops Service and its lanes labels Nov 30, 2026
@dan-petty

Copy link
Copy Markdown
Owner Author

How this meets #7911

Verification

  • devops ci fail-to-pass: 3 new tests fail on the base and pass on the head. One gives the same HTTP 401 on an attempts request.
  • 1636 tests of tests/github and the related roadmap run tests passed.
  • devops ci --check passed for lint, format, typecheck, docs, openspec, security, constructs, test-tree, startup-imports, swallowed-failures and domain.
  • Not verified: no run against GitHub or the cluster. No request went to the App endpoints.

After the merge

A person reviews the diff in tuicr. The fix reaches the Service only with a release. If the Service is halted then, remove the halt record (docs/CLUSTER.md).

@dan-petty

Copy link
Copy Markdown
Owner Author

#7911 is now #7940. Its head 85b644fd6 changes no signing line, and its source and test content equals a11d94468. It merges with this head with no conflict, so this pull request keeps the JWT signing fix. #7940 alone leaves the 401 halt open. This pull request alone leaves the 403 halt open, so merge both.

@dan-petty

Copy link
Copy Markdown
Owner Author

Check results

Head commit: 8052a249f869902e4b49b1ed7c2e584ec9b76aa4

Check Conclusion Link
Tests & Coverage success run
devops-cli success run
zizmor success run
trivy-config success run
gitleaks success run
Trivy neutral run
Changed-Test Independence success run
Service Image Tests (shard 5 of 6) success run
Service Image Tests (shard 1 of 6) success run
Service Image Tests (shard 4 of 6) success run
Service Image Tests (shard 3 of 6) success run
Service Image Tests (shard 2 of 6) success run
Service Image Tests (shard 6 of 6) success run
CodeQL success run
Plan Check skipped run
Test Job Duration skipped run
Tests on Main skipped run
Docs Site Build success run
Tests & Coverage (shard 6 of 6) success run
Design Tokens success run
Tests & Coverage (shard 5 of 6) success run
Tests & Coverage (shard 3 of 6) success run
Changed-Test Independence (run 1 of 3) success run
Runner Image success run
Tests & Coverage (shard 2 of 6) success run
Tests & Coverage (shard 4 of 6) success run
Tests & Coverage (shard 1 of 6) success run
Changed-Test Independence (run 2 of 3) success run
Changed-Test Independence (run 3 of 3) success run
Service Image success run
Service Image Build success run
Fail-to-Pass Check success run
Static Analysis success run
Semantic PR title success run
Analyze (python) success run
Analyze (actions) success run

Fail-to-pass run: https://github.com/dan-petty/devops-cli/actions/runs/46506183183/job/142156922169

Skipped check: Trivy
Skipped check: Plan Check
Skipped check: Test Job Duration
Skipped check: Tests on Main

@dan-petty
dan-petty marked this pull request as ready for review November 30, 2026 20:42
@dan-petty
dan-petty merged commit c92bfdb into main Nov 30, 2026
36 checks passed
@dan-petty
dan-petty deleted the fix/7925-redeliver-once-per-app branch November 30, 2026 20:44
dan-petty-release Bot added a commit that referenced this pull request Nov 30, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.265.0](v0.264.1...v0.265.0)
(2026-11-30)


### Features

* **docs:** check code-span paths in prompt documents
([#7941](#7941))
([68eb592](68eb592))


### Bug Fixes

* **roadmap:** accept requirement names and quoted stage commands
([#7939](#7939))
([3afb7b7](3afb7b7))
* **service:** read a 403 that names a rate limit as one
([#7940](#7940))
([f197986](f197986))
* **service:** redeliver once for the App with a valid JWT
([#7938](#7938))
([c92bfdb](c92bfdb))


### Performance Improvements

* **roadmap:** a stage return reads the Claude prompt cache
([#7931](#7931))
([b4af1d6](b4af1d6))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope/service The long-running devops Service and its lanes type/bug Type bug: the code does not do what it must

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(service): the redeliver row outlives its App JWT and halts the Service

1 participant