Repository navigation
Conversation
…ate on clock multiples Three failures of the network runs: - a 1-hour query run late in a slow round found its window's raw samples evicted: every query of a round now reads one store snapshot pinned when the round starts (QueryRunner::pin_round / answer_in); - a round answered from data its producer had not delivered yet (feeder lag 13 s > issue delay 6 s; fanout_1m 12% low): a round first waits, at most --intent-data-wait-ms (default 30 s), for the watermark to pass its evaluation time and the windows ending by then to be refreshed; the wait is recorded (RoundRecord::data_wait_ms); - a clock whose first evaluation was not on a multiple of its interval could never tile its views' windows (QaT proto_5m/p99_5m failed every round): each clock evaluates on multiples of its interval. packets_bench: whole-hour epoch, all clocks, per-proto exact check. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01K1M6boFpwkpMtRc1FnZuYi
zzylol
added a commit
that referenced
this pull request
Dec 4, 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.
Why
The first network runs found intent-round failures in the data plane:
the raw samples of packets at or before … are evicted. N5 full: fanin/ports/entropy_1h failed every round.max_lag_ms), the round issued at T + 6 s, and the query answered from a window whose last seconds had not arrived yet.materialized view N has no rows tilinghit every round of the 5-minute clock. That run's first evaluation time (…070000) was not a multiple of 60 s or 300 s, so the 1-minute chain windows could never tile the queries' ranges.The fourth finding, EXACT proto_1h being 3.5–8% high (28% for one rare proto), is not a data-plane bug. All protos were high by about 140 s / 3600 s. The exact reference (
net_exact rounds) dropped seconds from its window cache when round lines arrived out of evaluation-time order (a slow clock's line is written when its round ends). That is fixed in the eval tool, not here.What
QueryRunner::pin_round,answer_in,answer_bound_in;EngineHandle::pin_round_snapshot,evaluate_in). A late query in a slow round reads what was kept at the round's start, so the raw-retention margin only has to cover the issue delay. This replaces growing it by query timeout × queries per round.--intent-data-wait-ms(default 30 s) for two things: the watermark passing T (every sample at or before T delivered), and the windows ending by then being refreshed (a barrier at T, which by then only waits for commits). The wait is recorded asRoundRecord::data_wait_msand is included induration_ms. In-processIntentLoop::newdefaults to no wait; usewith_data_waitto set one.--intent-first-evaluation-ms, started that much later.Tests
intent_sil_modes::a_round_waits_for_its_late_data_and_answers_exactly(query-at-a-time and full): the last 30 s of rows arrive after the round starts. Without a wait the answer is not exact, which reproduces the bug; with a wait it is exact and records the wait.intent_sil_modes::a_round_reads_the_store_pinned_when_it_started: after ingestion moves 3 h ahead, the newest store fails q1 at T, while the pinned snapshot answers it exactly.intent::each_clock_evaluates_on_multiples_of_its_interval; the expectation inclocks_run_concurrently_each_on_its_own_roundsis updated (the 3 s clock now evaluates at 12 s and 15 s).cargo test -p data_plane --lib --test intent_sil_modes --test intent_roundspasses.Deferred
🤖 Generated with Claude Code
https://claude.ai/code/session_01K1M6boFpwkpMtRc1FnZuYi