Skip to content

test(insights): protect rolling bitmap semantics#125

Merged
olalie merged 1 commit into
mainfrom
test/insights-bitmask-regression
May 26, 2026
Merged

test(insights): protect rolling bitmap semantics#125
olalie merged 1 commit into
mainfrom
test/insights-bitmask-regression

Conversation

@olalie

@olalie olalie commented May 26, 2026

Copy link
Copy Markdown
Owner

Summary

Add comprehensive regression coverage for the rolling 30-day bitmap semantics in insights processing.
Clarify the internal anchor-day semantics used for bitmap interpretation without changing persisted JSON compatibility.

Changes

  • add regression coverage for bitmap aging and pruning
  • add boundary tests for delta=29/30/31 behaviour
  • add tests for same-day additive snapshot semantics
  • add tests for pruning and re-observation behaviour
  • verify inclusive tie-breaking behaviour in top lists
  • clarify l semantics as bitmap anchor day
  • use anchor_day terminology internally where helpful
  • tighten contract-oriented docstrings and comments

Notes

  • no runtime behaviour changes
  • no persistence-format changes
  • persisted JSON field "l" remains unchanged
  • internal semantics clarified only

Testing

  • pytest
  • 237 passed

@olalie olalie merged commit 4eff588 into main May 26, 2026
6 checks passed
@olalie olalie deleted the test/insights-bitmask-regression branch May 26, 2026 14:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant