Fix community loop watch stale receipt false reds#677
Conversation
|
Codex update: I extended this PR after a fresh live watch check. New behavior: attempted issues with linked open PRs are no longer treated as writer-stuck red. In live state, all 18 remaining stale-gate issues have linked open PRs, so the patched watcher reports Writer queue as yellow review/precheck waiting with Focused verification:
Still Codex-written; needs Claude/Cowork checker and explicit host merge key before merge. |
|
Codex follow-up on #677: added one more writer-health correction. Live check at 2026-05-08T03:35Z showed Current patched live result:
Verification rerun:
|
|
Codex follow-up on #677: added tier3 recovery-aware classification. Latest tier3 clone smoke run After manually dispatching stale
Verification rerun:
|
|
Codex coordination relay: the live brain now has Cowork checker-key YES on this PR: pages/notes/cowork-checker-key-pr677-loop-watch-false-red-fix-2026-05-08.md. Cowork's substantive review accepts the five patch elements: direct schedule-event fetch, stale-schedule yellow fallback when recent writer success exists, terminal/deferred issue classification, linked-open-PR attempted issues as review/precheck yellow, and tier3 stale-alarm yellow after newer smoke success. Current state from the #677 branch: python scripts/community_loop_watch.py --json exits 0 / overall yellow at 2026-05-08T03:43:50Z. No Codex checker key is needed here because this is Codex-written. Remaining gate is explicit host third-key before merge. |
Summary
community_loop_watchfetch the required writerscheduleevent directly instead of relying only on the mixed recent-runs page, which can be flooded by issue-label events.schedulefreshness to yellow when a recentworkflow_dispatch/issuessuccess proves the writer workflow is still productive; stale scheduler freshness remains visible in details.completeattempted issues are terminal, andawait-primitive-layerattempted issues are deferred/yellow instead of stale-gate red.tier3-brokenalarm issues to yellow when the latest tier3 clone smoke run is a newer success than the open issues.25533591057and2026-05-08T03:39Zlocal live checks.Live evidence
Before this patch, the watch reported 42 stale attempted issues after the stale-gate label batch. The first patch reduced that false stale bucket to 18 by removing
completeandawait-primitive-layerskip/defer issues from the red stale class.A second live check showed all remaining 18 stale-gate issues have linked open PRs (#598, #562, #565, #559, #552, #514, #513, #512, #511, #510, #509, #468, #561, #463, #448, #447, #560, #446). Running the patched watcher locally now reports the writer queue yellow:
18 attempted loop request(s) already have linked open PRs awaiting review/precheck; 1 PR(s) are ready_for_checker.A third live check showed
auto-fix-bug.ymlscheduled success is stale, but recentissuessuccess run25533549650proves the writer workflow is productive. The patched watcher reports Writer workflow yellow instead of red, preserving scheduler freshness drift infallback_*details.A fourth live check showed tier3 clone smoke latest run
25488453292succeeded on 2026-05-07, newer than the newest opentier3-brokenissue (#506 from 2026-05-06). The patched watcher reports tier3 yellow stale-alarm cleanup, not red current clone breakage.After manually dispatching stale
wiki-bug-sync.ymlanduptime-canary.ymlworkflows,python scripts/community_loop_watch.py --jsonreports overall yellow: intake green, observation green, production deploy green, website deploy green; writer workflow yellow, writer queue yellow, tier3 yellow.Verification
python -m pytest tests/test_community_loop_watch.py— 26 passedpython -m py_compile scripts/community_loop_watch.py tests/test_community_loop_watch.py— passedpython -m ruff check scripts/community_loop_watch.py tests/test_community_loop_watch.py— passedpython scripts/community_loop_watch.py --json— exit 0 / overall yellow with the live state aboveGate note
Codex-written PR. Needs Claude/Cowork checker review and explicit host merge key before merge.