Repository navigation
observability: detect and explain application latency violations - #9
Merged
Merged
Conversation
fasterthanlime
force-pushed
the
cli-stalls-detector
branch
from
August 7, 2026 17:42
3563878 to
6238609
Compare
fasterthanlime
added a commit
that referenced
this pull request
Aug 7, 2026
## Summary Follow-up to #9. Make signal-cadence incidents identify the code executing or blocking during the violation rather than only proving that the signal stopped. - bind `MaxSignalGap` to the OS thread that creates the contract by default - retain explicit `max_signal_gap_for_thread` for cross-thread emitters - include every owner-thread off-CPU interval overlapping the exact violation window, longest first - rank concurrent threads by overlapping on-CPU time and in-window PET sample count - show each concurrent thread's most frequently sampled stack - render owner waits, wakers, and concurrent stacks in `stax incident` ## Live result A controlled binnacle renderer recording detected a 1.56 s presentation-cadence violation. The resulting incident automatically attached renderer TID `1276287`, enumerated its overlapping scheduler waits, and surfaced this stack inside the violation window: ```text malloc_consolidate int_malloc int_realloc realloc <alloc::raw_vec::RawVecInner>::finish_grow ``` It also ranked simultaneous VA encode and GPU worker stacks. This is the causal evidence missing from #9's threadless cadence incident. ## Verification - `cargo test -p stax-live observability` — 6 passed, including owner-wait/concurrent-stack regression - `cargo test -p stax --bin stax` — 41 passed - `cargo test -p stax-server` — 12 passed - `cargo test -p stax-target --lib` — 7 passed - focused `cargo check` for protocol/live/server/target/CLI - regenerated TypeScript bindings - live Linux recording and `stax incident` output exercised end to end - `git diff --check`
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.
Summary
stax stallsfor automatic whole-process work-gap detectionstax-targetevents,counters,contracts,violations, andincidentqueriesThis was exercised against binnacle's pointer/render pipeline. A deterministic pointer event was correlated across observed, dispatched, and renderer-received stages, and a presentation-cadence contract automatically reported an 818 ms frame gap against a 50 ms threshold.
stax incidentjoined the surrounding frame events and renderer counters without wall-clock correlation.Verification
cargo test -p stax --bin stax— 41 passedcargo test -p stax-live observability— 5 passedcargo test -p stax-server— 12 passedcargo test -p stax-target --lib— 7 passedgit diff --checkKnown environment limitation
The frontend Vite build cannot run in this checkout because its alias points at the absent local path
/home/amos/w/bearcove/oss/facet/vox/typescript/packages/vox-core/src/index.ts. Generated bindings and Rust protocol tests are included.