Repository navigation
fix(dashboard): bound Bay terminal records to tide - #726
Merged
Merged
Conversation
Contributor
Author
|
@clawsweeper review |
Contributor
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
This was referenced Jul 20, 2026
azaj01
pushed a commit
to azaj01/clawsweeper
that referenced
this pull request
Sep 21, 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.
Summary
Stop OpenClaw Bay from replaying terminal outcomes from earlier tide windows. The terminal pools now retain only records admitted after the last completed wash, so old completed/failed entries cannot reappear after the bounded recent-event dedupe rolls over.
Problem
The public Bay snapshot was showing historical terminal rows even though the visible tide was recent. At 2026-07-20T21:35Z, the live
bay-demostatus contained success and failure outcomes approximately 238–316 hours old whilelast_tide_atwas 2026-07-20T20:13:57Z.The previous projection relied on a bounded
seen_eventslist. Once that list rolled over, an old immutable completed GitHub run could be admitted into the terminal buffer again.Implementation
last_tide_atremains the physical tide timestamp shown to users. The new internal watermark is the completion time of the last washed item; this preserves terminal items that arrive later in the same collection batch instead of accidentally discarding them.API impact
No new GitHub API, GraphQL, or dashboard refresh calls are added. This is a local state-projection and persistence fix over the terminal evidence already collected for OpenClaw Bay.
Validation
Review closeout
Both reviews completed clean. Earlier accepted review findings on post-tide tails, legacy-state tails, and same-second watermark boundaries were fixed and the focused proof was rerun after each change.
Rollout / caveat
On the first state merge after deployment, old Bay state without the new watermark uses a conservative one-hour bootstrap. This deliberately clears historic terminal rows that were already stale; a genuinely current legacy tail is preserved. Thereafter, terminal eligibility is exact and tide-window based.
After deployment, verify that Bay terminal entries are newer than the current tide window, that current outcomes continue to enter the pools, and that a tide clears only its threshold batch without allowing washed rows to return.