Skip to content

feat(temporal): Carried the turn past a worker that lost a step it was running. - #17

Closed
moetemp wants to merge 1 commit into
moe/pinned-queuesfrom
moe/lost-host-migration
Closed

moetemp wants to merge 1 commit into
moe/pinned-queuesfrom
moe/lost-host-migration

Conversation

@moetemp

@moetemp moetemp commented Sep 15, 2026

Copy link
Copy Markdown
Collaborator

This PR keeps a turn going when a pinned attempt that had started fails.

Nothing can say whether the tool over there has stopped, so the step's calls stay where their host has them, and the step is closed on the shared queue without touching the tree: a seal standing in a directory that never ran the tools would ship the state before them. What makes the window harmless is that nobody else publishes during it, and the pack store now refuses files from an attempt the session has moved past, under the same owner token the transcript is fenced by.

Two clauses a lost host is held to are written on SnapshotSync.push, and both have a test: the seal that closes a step elsewhere publishes nothing (stepped-drain-writers.test.ts), and a pack from a superseded attempt is refused (SnapshotSync owner fence in worktree-materialize.test.ts). pinned-retry.test.ts and replay.test.ts run the branch through a real test server and replay its history.

@github-actions

Copy link
Copy Markdown

This PR doesn't fully meet our contributing guidelines and PR template.

What needs to be fixed:

  • PR description is missing required template sections. Please use the PR template.

Please edit this PR description to address the above within 2 hours, or it will be automatically closed.

If you believe this was flagged incorrectly, please let a maintainer know.

A pinned attempt that started and then failed leaves the tool's outcome unknown, and nothing can say whether the process behind it stopped. The step is closed on the shared queue without touching the tree, so the turn goes on, and the pack store refuses files from an attempt the session has moved past, under the same token the transcript is fenced by.
@moetemp
moetemp force-pushed the moe/lost-host-migration branch from 4a5ce71 to 2420e09 Compare September 15, 2026 01:01
@github-actions

Copy link
Copy Markdown

This pull request has been automatically closed because it was not updated to meet our contributing guidelines within the 2-hour window.

Feel free to open a new pull request that follows our guidelines.

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