Skip to content

fix: expose the parked arm reference in pending signal inspection - #144

Merged
wolfy-j merged 2 commits into
masterfrom
fix/pending-signal-arm-ref
Nov 22, 2026
Merged

wolfy-j merged 2 commits into
masterfrom
fix/pending-signal-arm-ref

Conversation

@wolfy-j

@wolfy-j wolfy-j commented Nov 12, 2026

Copy link
Copy Markdown
Contributor

pending_signal now also returns the arm that parked the wait.

The parked arm {ref, args} is already persisted in the NODE_YIELD content at park time, and pending_signal already decodes that content. It now returns arm_ref alongside node_id, type and yield_id, or nil for waits parked without an arm.

A host that resumes waits can then check that the module completing a wait is the one whose arm parked it. Without that check, one wait Block's result can complete another Block's wait in the same flow.

No schema change. The test reads an armed wait from a real SQL row, returns the latest episode's arm, and returns nil for unarmed waits.

@wolfy-j
wolfy-j requested a review from skhaz November 12, 2026 23:55
@wolfy-j
wolfy-j merged commit 61b19ca into master Nov 22, 2026
11 of 12 checks passed
@wolfy-j
wolfy-j deleted the fix/pending-signal-arm-ref branch November 22, 2026 04:07
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.

2 participants