Bug hunt: one ledger read in tick(), failed turns re-arm, watermark monotonic - #129
Merged
Conversation
… failed turns re-arm on the beat; since only moves forward; triage batched; handlers before boot - tick(): wakeDueTasks, then respond if any wanted conversation or unseen settled task, then dispatch; respond/triage/runWorker all end in tick() - a failed respond no longer strands wanted rows: the beat re-arms within 60s instead of a hot loop - Debounced logs its run's rejection under a label instead of leaking an unhandled rejection - caughtUp's watermark update is guarded by since <= last so a recreated row is never rewound - triage takes at most BATCH oldest unjudged rows - signal and unhandledRejection handlers register before the first resolve; Roster loads before the scheduler - park_after_ms read at call time; persona defaults to empty so a reload can clear it Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
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.
Adversarial bug hunt on e1341fb. Seven of eleven findings taken.
Not taken: own-bot self-trigger (her posts carry user), setStatus rejections (none in the journal), void runWorker catch (the rejection logger covers it).
🤖 Generated with Claude Code