fix(worker): bound Redis outage shutdown - #305
Merged
Joncallim merged 2 commits intoJul 29, 2026
Merged
Conversation
Joncallim
marked this pull request as ready for review
July 29, 2026 20:08
Joncallim
merged commit Jul 29, 2026
9c26807
into
codex/pr198-producer-5a2-core-diagnostics
6 checks passed
This was referenced Jul 29, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Source Issue
Issue: #179
Summary
Safety contract
Redis remains authoritative. A timeout never claims that a queue mutation succeeded. Processing and claim state remain available for ordinary later recovery. The worker logs only fixed categories and safe identifiers.
Validation
npm test -- --run __tests__/core-diagnostic-output-closure.test.ts— 29 passedQUEUE_OCCURRENCE_REDIS_MULTIPLICITY_OK,QUEUE_OCCURRENCE_REDIS_RECOVERY_OK, andQUEUE_OCCURRENCE_REDIS_SHUTDOWN_OKnpm run test:unit:zero-skip— 117 files / 1,737 passed; 16 service-gated cases skipped locally, with the touched Redis suite run separately as requirednpx tsc --noEmit— passednpm run build— passedgit diff --check— passedResidual boundary
This child bounds Redis-only stalls and prevents later Forge mutation after the fence. An already-started non-cooperative external input/output call cannot be transactionally revoked; this remains the accepted parent residual. R3D malformed-processing quarantine is intentionally out of scope.