Repository navigation
fix: suppress stale contribution poll noise - #37
Merged
Merged
Conversation
A transient forge read failure had no retry, so merged and closed PRs kept waking firstmate with an unavailable observation for readable-but-flaky reads. Retry once after a short pause, and once a durable record confirms a terminal merged or closed state, stop re-observing that URL every poll.
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.
Intent
Stop the contributions poll from waking firstmate with 'observation unavailable' for pull requests that merged long ago. Over the last day the poll has woken firstmate a dozen times with that line for PRs 335, 341, 347, 350, 362, 367 to 380 on Scout, 48 and 50 on forge, and Doc-Creator 58, all merged or closed and all readable from GitHub at the time. Each wake is noise the supervisor must read and acknowledge; none led to an action.
What Changed
Risk Assessment
✅ Low: The change is bounded to contribution polling, correctly retries transient failures, permanently settles merged PRs, and schedules slow rechecks for closed-unmerged records.
Testing
Exercised retry recovery, terminal settlement, suppression of re-observation noise, and 24-hour reopened-issue handling; all targeted checks passed with no worktree artifacts.
Evidence: Contributions polling behavior test transcript
Source: Contributions polling behavior test transcript
Pipeline
Updates from git push no-mistakes
✅ **intent** - passed
✅ No issues found.
✅ **Rebase** - passed
✅ No issues found.
🔧 **Review** - 2 issues found → auto-fixed ✅
bin/fm-contributions.sh:335- The newsettledflag permanently removes every closed record from future polling, including issues and PRs that GitHub later reopens. A reopened contribution will never be observed again, so its new maintainer signals and readiness can be missed. Confirm whether closed items are intentionally irreversible; otherwise restrict settlement or retain a recheck path.bin/fm-contributions.sh:302- The retry sleeps for the full configurable delay without checking the poll deadline. With a small budget or a largeFM_CONTRIBUTIONS_RETRY_DELAY, one failed observation can block well beyond the advertised budget before the second attempt is skipped byobserve. Bound the sleep by remaining budget or skip the retry when the deadline cannot accommodate it.🔧 Fix: Fix terminal rechecks and budgeted retries
✅ Re-checked - no issues remain.
✅ **Test** - passed
✅ No issues found.
bash tests/fm-contributions.test.shCaptured targeted retry, settlement, and reopened-issue evidence in the test log.✅ **Document** - passed
✅ No issues found.
✅ **Lint** - passed
✅ No issues found.
✅ **Push** - passed
✅ No issues found.
Built by: claude/sonnet at medium