Skip to content

fix(test): count only observer stack packets - #201725

Merged
vincentkoc merged 1 commit into
mainfrom
fix/stall-observer-stack-counts-20261119
Nov 19, 2026
Merged

vincentkoc merged 1 commit into
mainfrom
fix/stall-observer-stack-counts-20261119

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Nov 19, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

The delayed stack-capture test counts every observer packet as a stack. On Linux, the same port carries valid kernel samples, so a kernel packet fails the stack-only count assertions during full validation.

User Impact

No production behavior changes. The test now counts stack packets using the production consumer's frames discriminator. Kernel sampling remains covered independently.

Why This Change Was Made

Keep all timing, inspector-start, delayed-capture rejection, and shared stack-budget assertions. Filter only the three message-count assertions so they measure the intended stack contract: zero delayed stacks, three accepted stacks, and no further stacks after the budget is consumed.

Production +0/-0; tests +5/-3. No new mock, timeout, skip, or test is added.

Related: #199959

Evidence

  • Full pin validation fails the old count on Node. This stack case is intentionally skipped on Bun and Node 26+, so a Bun-only green run cannot validate it.
  • Production diagnostic-stall-kernel.ts already distinguishes stack samples by frames; the real futex integration case covers kernel sample delivery.
  • Independent source review and local ClawSweeper passed with no correctness or security findings for f165544e2ce40e46682bd67b6a98777f506dafec..c0c83cfa5b585b3449903af8fd1a5161b500ae86. Native commit formatting and line-cap hooks and git diff --check passed.
  • Exact-head Node/Bun CI passes all four Node cases, including the delayed-capture case (42 ms). Bun passes three recovery cases and intentionally skips the delayed-capture case. Log SHA-256: 13da704d37cd97f608273f20d1ea22f2ba6d5647d4f62b0cc4e836ee6c5977a8. The run uses the existing dual-all runtime selector.

@vincentkoc vincentkoc self-assigned this Nov 19, 2026
@clawsweeper

clawsweeper Bot commented Nov 19, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@vincentkoc
vincentkoc marked this pull request as ready for review November 19, 2026 08:45
@vincentkoc
vincentkoc enabled auto-merge (squash) November 19, 2026 08:47
@vincentkoc
vincentkoc merged commit 6e55f5c into main Nov 19, 2026
240 checks passed
@vincentkoc
vincentkoc deleted the fix/stall-observer-stack-counts-20261119 branch November 19, 2026 08:55
@vincentkoc

Copy link
Copy Markdown
Member Author

Merged via squash auto-merge.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant