Scheduling reliability: re-arm bounded recovery cycles - #21
Draft
hiidkaboutyou-spec wants to merge 3 commits into
Draft
Scheduling reliability: re-arm bounded recovery cycles#21hiidkaboutyou-spec wants to merge 3 commits into
hiidkaboutyou-spec wants to merge 3 commits into
Conversation
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.
Scope
Small follow-up repair for the confirmed one-shot Daily scheduling watchdog defect. No retrieval, source, cursor, translation, media, Telegram, Fanfic, or public-publishing behavior is changed.
Root cause
The recovery Daily is created with the repository GITHUB_TOKEN. GitHub allows that workflow_dispatch run itself, but token-triggered events do not generally create downstream workflow runs; production confirmed the recovery completion did not produce the workflow_run watchdog successor. Relying on workflow_run alone therefore made recovery one-shot.
Repair
Keep workflow_run as the fast primary watchdog arm and add an independent off-minute periodic watchdog heartbeat (
4,16,28,40,52). The heartbeat only inspects Daily workflow state and dispatches onemain.yml mode=liverecovery when the latest relevant Daily is stale and no active Daily exists. Failed automated recovery is a hard stop for periodic chaining. API/dispatch failures fail safe.Safety
Validation requested
Canonical validation plus workflow YAML/CI on this exact head. Do not merge until green and reviewed.