Skip to content

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

Open
wolfy-j wants to merge 1 commit into
masterfrom
fix/pending-signal-arm-ref
Open

wolfy-j wants to merge 1 commit 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
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