Skip to content

fix(supervisor): a turn that follows a reported wake takes a new access token first - #40

Merged
den-vasyliev merged 1 commit into
mainfrom
fix/hello-before-a-back-to-back-turn
Nov 29, 2026
Merged

den-vasyliev merged 1 commit into
mainfrom
fix/hello-before-a-back-to-back-turn

Conversation

@den-vasyliev

Copy link
Copy Markdown
Contributor

What

A spot that runs as an Agent Substrate actor reports a wake, and the core suspends the actor a moment later; the access token ends there. A turn that started inside that moment, in the same run, used the ended token: its first request to the core, the read of the standing notes, was refused, and the turn went on without its notes until a later tool call said hello again.

The link now remembers that a wake report reached the core since the token was taken (Link.RenewAfterReport), and the supervisor says hello before the first request of a turn in that case (renewToken, in turn and startSide). A turn that follows no report makes no extra call.

Checked

make check passes; TestLinkRenewsItsTokenAfterAWakeReport covers no report, after a report, and twice in a row. Run on a test cluster: turns work as before. The race itself was not reproduced by hand there.

…ss token before its first request to the core
@den-vasyliev
den-vasyliev merged commit 9be53a3 into main Nov 29, 2026
3 checks passed
@den-vasyliev
den-vasyliev deleted the fix/hello-before-a-back-to-back-turn branch November 29, 2026 02:29
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