Skip to content

tp: fix descendant_slice missing boundary instant children#5239

Merged
LalitMaganti merged 23 commits intomainfrom
dev/lalitm/fix
Mar 30, 2026
Merged

tp: fix descendant_slice missing boundary instant children#5239
LalitMaganti merged 23 commits intomainfrom
dev/lalitm/fix

Conversation

@LalitMaganti
Copy link
Copy Markdown
Member

descendant_slice used strict Lt for the upper timestamp bound,
which excluded instant children at exactly ts + dur. These
children have a valid parent_id link (set during ingestion while
the parent was still open) but were missed by the geometric
filter.

Switch to Le and verify candidates at the end boundary with a
parent chain walk, matching the existing start-boundary logic.
Add a regression test reproducing the real-world sequence:
Begin(parent) -> Scoped(instant@boundary) -> End(parent).

descendant_slice used strict Lt for the upper timestamp bound,
which excluded instant children at exactly ts + dur. These
children have a valid parent_id link (set during ingestion while
the parent was still open) but were missed by the geometric
filter.

Switch to Le and verify candidates at the end boundary with a
parent chain walk, matching the existing start-boundary logic.
Add a regression test reproducing the real-world sequence:
Begin(parent) -> Scoped(instant@boundary) -> End(parent).
@LalitMaganti LalitMaganti requested a review from a team as a code owner March 23, 2026 22:44
@LalitMaganti LalitMaganti requested a review from aMayzner March 23, 2026 22:45
@github-actions
Copy link
Copy Markdown

github-actions bot commented Mar 23, 2026

@LalitMaganti LalitMaganti enabled auto-merge (squash) March 30, 2026 12:50
@LalitMaganti LalitMaganti merged commit 4647aeb into main Mar 30, 2026
24 checks passed
@LalitMaganti LalitMaganti deleted the dev/lalitm/fix branch March 30, 2026 13:21
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.

2 participants