Repository navigation
impl(042): increment 4 part 3 follow-up, one invalidation pass per poll tick - #413
Conversation
AI review (no-findings)Looking at the two changed files:
The old code in the Tracing the
The key edge case (failed=true, over=true, lagging=false):
The spec note says "the gap was counted once either way" (net invalidation count unchanged), so collapsing to one call is the intended fix. All five test assertions match the function's actual outputs (verified by manual trace). The The
Adds an increment note dated 2026-10-30, naming the file, the fix, and the test. The description accurately matches the code change. No bugs, security issues, or governance inconsistencies found. {"head": "b876c9c42c9098e10a3d9360431c3016fac2565a", "verdict": "no-findings", "findings": []}Subject: d2a496f...b876c9c, diff digest a6f4402e75d4e71ac19ebb8776dc29dcb353e0b3eb5909454ff778719d71c3cf, 1 call(s). An AI comment is not an approval. |
Follow-up to #407 for its review finding. A failed poll on the tick where lag first passed
max_lag_mscalledinvalidation_losttwice, so it invalidated the source's plans twice. The gap was counted once either way.integrations/rustev-serve/src/contexts.rs: the poll loop now asks one helper,loss, for the singleinvalidation_lostcall a tick needs, if any. A failed poll counts a gap only while a sequence was held. Lag first passing the bound adds no second call on the same tick.contexts::tests::a_tick_invalidates_at_most_once_even_when_failure_and_lag_coincideasserts one pass when failure and lag coincide, and checks the failure-only, lag-only and healthy ticks.Checks:
make gate,scripts/check-authored-content.sh,cargo fmt --all --check,cargo clippy -p rustev-serve --all-targets -D warningsandcargo test -p rustev-serve --lib contexts::pass locally.