Document indexer block-time parse fallback risk (candle skew) #95

Closed
opened 2026-04-09 03:24:43 +00:00 by PlasticDigits · 4 comments
PlasticDigits commented 2026-04-09 03:24:43 +00:00 (Migrated from gitlab.com)

Evidence

  • docs/indexer-invariants.md

Epic

#62

## Evidence - `docs/indexer-invariants.md` ## Epic #62
PlasticDigits commented 2026-04-09 03:24:44 +00:00 (Migrated from gitlab.com)

marked this issue as related to #62

marked this issue as related to #62
PlasticDigits commented 2026-04-13 12:29:17 +00:00 (Migrated from gitlab.com)

Epic #62 delivery

Documented block time fallback and candle skew in docs/indexer-invariants.md (behavior of parse_block_time in indexer/src/indexer/poller.rs, mitigations, Prometheus counter indexer_block_time_fallbacks_total, link to reorg runbook).

@brouie please review.

## Epic #62 delivery Documented **block time fallback and candle skew** in `docs/indexer-invariants.md` (behavior of `parse_block_time` in `indexer/src/indexer/poller.rs`, mitigations, Prometheus counter `indexer_block_time_fallbacks_total`, link to reorg runbook). @brouie please review.
PlasticDigits commented 2026-04-13 12:29:18 +00:00 (Migrated from gitlab.com)

mentioned in issue #62

mentioned in issue #62
Brouie commented 2026-04-20 07:17:11 +00:00 (Migrated from gitlab.com)

@PlasticDigits Verified on current main. docs/indexer-invariants.md covers block time fallback:

  • Line 42: Summary table entry 'Block time usable | RFC3339 parse; else tracing::warn + Utc::now() | Misaligned candles (documented risk) | Manual / logs'
  • Line 70: Dedicated 'Block time fallback and candle skew' section
  • Line 72: parse_block_time source pointer (indexer/src/indexer/poller.rs)
  • Line 77: Risk statement 'Event times and candle bucket boundaries can diverge from true chain time -- OHLC intervals may skew relative to block time'
  • Line 79: Mitigations including Prometheus counter indexer_block_time_fallbacks_total with METRICS_BIND guidance

Risk documented, operator mitigations clear. Closing.

@PlasticDigits Verified on current main. docs/indexer-invariants.md covers block time fallback: - Line 42: Summary table entry 'Block time usable | RFC3339 parse; else tracing::warn + Utc::now() | Misaligned candles (documented risk) | Manual / logs' - Line 70: Dedicated 'Block time fallback and candle skew' section - Line 72: parse_block_time source pointer (indexer/src/indexer/poller.rs) - Line 77: Risk statement 'Event times and candle bucket boundaries can diverge from true chain time -- OHLC intervals may skew relative to block time' - Line 79: Mitigations including Prometheus counter indexer_block_time_fallbacks_total with METRICS_BIND guidance Risk documented, operator mitigations clear. Closing.
Brouie (Migrated from gitlab.com) closed this issue 2026-04-20 07:17:15 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
code/cl8y-dex-terraclassic#95
No description provided.