Skip to content

incident: join owner waits and concurrent stacks - #10

Merged
fasterthanlime merged 1 commit into
mainfrom
incident-causal-evidence
Aug 7, 2026
Merged

fasterthanlime merged 1 commit into
mainfrom
incident-causal-evidence

Conversation

@fasterthanlime

Copy link
Copy Markdown
Collaborator

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:

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

@fasterthanlime
fasterthanlime merged commit 1732ef2 into main Aug 7, 2026
1 of 4 checks passed
@fasterthanlime
fasterthanlime deleted the incident-causal-evidence branch August 7, 2026 18:20
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