world: support workflow spec version 6 (slot identity) - #166
Open
marcopiraccini wants to merge 1 commit into
Open
world: support workflow spec version 6 (slot identity)#166marcopiraccini wants to merge 1 commit into
marcopiraccini wants to merge 1 commit into
Conversation
Signed-off-by: marcopiraccini <marco.piraccini@gmail.com>
marcopiraccini
marked this pull request as ready for review
August 15, 2026 06:05
marcopiraccini
requested review from
ShogunPanda and
mcollina
and removed request for
ShogunPanda
August 15, 2026 06:05
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Supersedes #160 and #163, the two halves of the SDK's jump to spec version 6 that Renovate split into separate PRs. Neither passes alone: #163 (
workflow→ beta.42) makes the runtime demand a spec-6 World while ours still declared 5 (hard startup gate → 500s), and #160 (@workflow/world→ beta.27) advancesSPEC_VERSION_CURRENTto 6 while the runtime still stamps runs at 5, so the cbor test asserts5 !== 6. This bumps both together and implements what spec 6 actually requires.Spec 6 is "slot identity": an event id must be slot-numbered —
evnt_followed by the event's dense, 1-based position in its run's log, zero-padded to 26 characters. The runtime callsrequireEventSloton every event id it loads and fails the run if it cannot read a slot, and it enforces density (no holes) by default. Our service previously exposedeventId = String(row.id)(the Postgres serial), which the runtime rejects with "Event id is not slot-numbered".