fix(pegboard): persist and replay hibernating requests#4656
fix(pegboard): persist and replay hibernating requests#4656NathanFlurry wants to merge 1 commit intobreak-up/keep-error-exposure-consistentfrom
Conversation
Code Review: fix(pegboard): persist and replay hibernating requestsOverviewThis PR fixes a correctness bug: in-flight requests to sleeping actors were not persisted to the DB, so they were lost on gateway or workflow restart. The fix:
CorrectnessResponsibility shift in The removed comment said the field was left empty because a guard populated it ephemerally before reaching the runner. The diff does not show whether that guard-side code was removed. If both paths remain, Idempotency race in The hibernating request list is fetched before the DB transaction. If the activity is retried, the list may differ (e.g. a request was GCd between retries). The persisted
Code QualityDouble clone of In both Logging level
StyleLog messages are lowercase with structured fields consistent with CLAUDE.md. Gateway/gateway2 and actor/actor2 runtime changes are kept in parity as required. Unrelated Change
MinorThe SummaryThe core logic is sound. Key questions before graduating from DRAFT:
Generated with Claude Code |
9550912 to
3948546
Compare
9191b42 to
88f4613
Compare
3948546 to
ae2a18f
Compare
88f4613 to
ae4fe54
Compare

Description
Please include a summary of the changes and the related issue. Please also include relevant motivation and context.
Type of change
How Has This Been Tested?
Please describe the tests that you ran to verify your changes.
Checklist: