fix(status): dedupe unchanged keyed pause re-declarations - #2511
Open
quinnbot-ai wants to merge 1 commit into
Open
fix(status): dedupe unchanged keyed pause re-declarations#2511quinnbot-ai wants to merge 1 commit into
quinnbot-ai wants to merge 1 commit into
Conversation
This was referenced Aug 17, 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.
Problem
A worker that re-declares an unchanged
paused:status (same key, same reason) appends a new line tostate/<id>.statuson every declaration. Each append registers as a fresh wake event, so a long-running declared pause produces a stream of wakes that all carry zero new information - a wake storm the supervisor has to absorb one by one.Change
Dedupe at the producer side:
fm-status-report.shskips the append when the incoming keyedpaused:line is byte-identical in key and reason to the task's most recent still-active pause declaration. A pause with a changed reason, a changed key, or any intervening non-pause event still appends normally, so no state transition is ever hidden - only literal repeats are suppressed.Why producer-side
Deduping in the consumer (watcher/classifier) would still grow the status log unboundedly and still cost a wake per append. Suppressing the redundant append at the source keeps the log a faithful event history (every line is a real transition) and removes the storm at its origin.
Tests
tests/fm-status-report.test.shcovering: identical repeat suppressed, changed-reason appended, changed-key appended, repeat-after-intervening-event appended.🤖 Generated with Claude Code