Repository navigation
dashboard: grace period for a new block's bare template - #97
Merged
Merged
Conversation
The enforcer's first template after every block carries only the witness commitment; the sidechain commitments arrive on the next poll, ~30s later. template_commitments judged only the newest row, so a health run landing in that gap failed — and since the snapshot is held for 5 minutes, it outlasted the broadcaster's debounce and posted a "ledger health check is failing" / "pass again" pair a few times a day. Measured on betanet over 7 days: 183 bare templates, one per block, none older than 30s. A bare template younger than 120s now reads as "commitments pending"; one that outlives it still fails, within one monitor interval. Co-Authored-By: Claude Opus 5.5 (1M context) <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.
The enforcer's first template after every new block has only the witness commitment. The sidechain commitments come in on the next poll, about 30s later.⚠️ a ledger health check is failing" post followed by "✅ all ledger health checks pass again" a few times a day, with nothing wrong.
template_commitmentsonly looks at the newest template, so a health run that lands in that gap fails. The dashboard keeps that result for 5 minutes and the broadcaster polls every 60s, so it gets past the broadcaster's 3-poll debounce. The result is a "Evidence (avonpool betanet, last 7 days): 183 of 1,621 templates were bare (
cb_op_returns = 1). That's one per block, each lasting a single 30s poll and never longer. Every block the pool found in that period was mined from a template with commitments.Change: a bare template younger than
TEMPLATE_COMMIT_GRACE_SEC(120s, four polls) passes, with detail "new block — commitments pending". A bare template that outlives the grace period still fails, so an enforcer that really stops committing is still caught within one monitor interval. Two tests cover a young bare template (pass) and a 180s-old one (fail). The existing tests are unchanged and pass.🤖 Generated with Claude Code