Skip to content

[world] Make spec version 6 the current version - #3542

Merged
VaguelySerious merged 3 commits into
mainfrom
peter/spec-version
Aug 14, 2026
Merged

[world] Make spec version 6 the current version#3542
VaguelySerious merged 3 commits into
mainfrom
peter/spec-version

Conversation

@VaguelySerious

@VaguelySerious VaguelySerious commented Aug 14, 2026

Copy link
Copy Markdown
Member

SPEC_VERSION_CURRENT was pinned to 5 while world-vercel declared 6, so the constant stopped describing what the SDK actually does. #3519 made slot-numbered event ids a requirement of the World contract rather than something a World opts into, which removed the reason the pin existed.

How a run's spec version is chosen

start() reads it off the World (opts.specVersion ?? world.specVersion), not from SPEC_VERSION_CURRENT. Because world-vercel declares the slot-identity version, runs on it have been created at spec 6 for a while. SPEC_VERSION_CURRENT is three other things: the version world-local, world-postgres and world-sim declare, the value stamped on every event other than run_created, and the floor of the World compatibility check.

What this changes

  • The accepted World range narrows from [5, 6] to {6}. A World declaring 5 is refused before the first run rather than failing partway through one, when the runtime cannot read a position out of an event id it loaded.
  • world-local, world-postgres and world-sim stamp 6, matching the slot-numbered ids they already allocate. Their declaration understated what they do.
  • Every event the runtime writes now carries the same version as the run it belongs to. A run created at 6 previously had its later events stamped 5.

Nothing in the runtime is gated on 6: every version test is >= against 3, 4 or 5. Runs already created keep their persisted version, and a World resolves a run's identity scheme from storage rather than from this constant.

Also in this PR

  • world-vercel declares SPEC_VERSION_CURRENT instead of the literal version that introduced slots. The two are equal today, but the next bump would raise the runtime's floor past the adapter shipped alongside it and reject it.
  • The doc comments that argued against this bump are rewritten around what is now true, in spec-version.ts, world-compatibility.ts and World.specVersion.
  • The building-a-world guide documents specVersion for the first time, including why a World author should declare the constant rather than a number.
  • The conformance suite checks the version a World declares, not only that its event ids are positions. A World could pass every conformance test with a stale declaration and then be rejected at startup, which reads as a broken install.

Docs Preview

Page v5
Building a World /v5/worlds/building-a-world#declaring-the-spec-version

Verification

Build, typecheck, docs code samples and docs link lint pass. Unit tests pass for core (2117), world-local (546), world-vercel (501) and world. The world-postgres conformance suite passes against Docker with the new assertion executing rather than skipped.

Signed-off-by: Peter Wielander <peter.wielander@vercel.com>
@VaguelySerious
VaguelySerious requested a review from a team as a code owner August 14, 2026 01:14
@changeset-bot

changeset-bot Bot commented Aug 14, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 00059e2

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 20 packages
Name Type
@workflow/world Patch
@workflow/core Patch
@workflow/world-local Patch
@workflow/world-postgres Patch
@workflow/world-vercel Patch
@workflow/world-testing Patch
@workflow/cli Patch
@workflow/vitest Patch
@workflow/web-shared Patch
@workflow/web Patch
@workflow/builders Patch
@workflow/next Patch
@workflow/nitro Patch
workflow Patch
@workflow/astro Patch
@workflow/nest Patch
@workflow/rollup Patch
@workflow/sveltekit Patch
@workflow/vite Patch
@workflow/nuxt Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@vercel

vercel Bot commented Aug 14, 2026

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
example-nextjs-workflow-turbopack Ready Ready Preview Aug 14, 2026 4:53pm
example-nextjs-workflow-webpack Ready Ready Preview Aug 14, 2026 4:53pm
example-workflow Ready Ready Preview Aug 14, 2026 4:53pm
workbench-astro-workflow Ready Ready Preview Aug 14, 2026 4:53pm
workbench-express-workflow Ready Ready Preview Aug 14, 2026 4:53pm
workbench-fastify-workflow Ready Ready Preview Aug 14, 2026 4:53pm
workbench-hono-workflow Ready Ready Preview Aug 14, 2026 4:53pm
workbench-nestjs-workflow Ready Ready Preview Aug 14, 2026 4:53pm
workbench-nitro-workflow Ready Ready Preview Aug 14, 2026 4:53pm
workbench-nuxt-workflow Ready Ready Preview Aug 14, 2026 4:53pm
workbench-python-workflow Error Error Aug 14, 2026 4:53pm
workbench-sveltekit-workflow Ready Ready Preview Aug 14, 2026 4:53pm
workbench-tanstack-start-workflow Ready Ready Preview Aug 14, 2026 4:53pm
workbench-vite-workflow Ready Ready Preview Aug 14, 2026 4:53pm
workflow-docs Ready Ready Preview, v0 Aug 14, 2026 4:53pm
workflow-swc-playground Ready Ready Preview Aug 14, 2026 4:53pm
workflow-tarballs Ready Ready Preview Aug 14, 2026 4:53pm
workflow-web Ready Ready Preview Aug 14, 2026 4:53pm

@github-actions

github-actions Bot commented Aug 14, 2026

Copy link
Copy Markdown
Contributor

📊 Workflow Benchmarks

commit 00059e2 · Fri, 14 Aug 2026 17:12:34 GMT · run logs

Backend: vercel · app: nextjs-turbopack

Metric Scenario Best (ms) P75 (ms) P90 (ms) P99 (ms) Samples
TTFS step 1326 (+248%) 🔻 1440 🔴 (+29%) 🔻 1559 🔴 (+37%) 🔻 1908 🔴 (+25%) 🔻 30
TTFS stream 1361 (+35%) 🔻 1467 🔴 (+39%) 🔻 1505 🔴 (+41%) 🔻 1537 🔴 (+39%) 🔻 30
TTFS hook + stream 1473 (+15%) 🔻 1817 🔴 (+31%) 🔻 1890 🔴 (+32%) 🔻 2130 🔴 (+31%) 🔻 30
Fan-out TTFS Promise.all(100 steps) 8997 (+0.9%) 10726 (+7.8%) 10805 (+7.2%) 15961 (+18%) 🔻 10
Fan-out TTLS Promise.all(100 steps) 17664 (±0%) 19564 (+3.7%) 19684 (+3.6%) 25576 (+9.1%) 10
STSO 1020 steps (inline) 155 (+26%) 🔻 193 (+1.0%) 212 (-7.4%) 309 (-47%) 💚 1019
WO 1020 steps 193638 (-0.9%) 193638 (-0.9%) 193638 (-0.9%) 193638 (-0.9%) 1
SL stream latency 122 (+54%) 🔻 148 🔴 (+35%) 🔻 169 🔴 (+31%) 🔻 274 🔴 (-20%) 💚 30
SO stream overhead (text) 150 (+35%) 🔻 207 (+15%) 261 (+27%) 🔻 341 (-44%) 💚 30
SO stream overhead (structured) 141 (+47%) 🔻 212 (+36%) 🔻 233 (+40%) 🔻 280 (+54%) 🔻 30
📈 STSO distribution vs main (inline / queue-hop histograms)

1020 steps (inline)

Cumulative STSO time: main 194368ms → this run 192196ms (Δ -2172ms, -1%)

  100-150 ms  ┃████                     main 180  this   0  -180
  150-200 ms  ██████████████████░░░░░┃  main 627  this 834  +207
  200-250 ms  ███┃                      main 134  this 148   +14
  250-300 ms  ┃                         main  29  this  26    -3
  300-350 ms  ┃                         main  15  this   4   -11
  350-400 ms  ┃                         main  11  this   6    -5
  400-450 ms  ┃                         main   4  this   0    -4
  450-500 ms  ┃                         main   5  this   0    -5
  500-550 ms  ┃                         main   3  this   0    -3
  550-600 ms  ┃                         main   1  this   0    -1
  600-650 ms  ┃                         main   5  this   0    -5
  650-700 ms  ┃                         main   1  this   0    -1
  750-800 ms  ┃                         main   1  this   1    +0
  800-850 ms  ┃                         main   1  this   0    -1
1100-1150 ms  ┃                         main   1  this   0    -1
4450-4500 ms  ┃                         main   1  this   0    -1
📜 Previous results (1)

d46e1c0

Fri, 14 Aug 2026 01:36:36 GMT · run logs

vercel / nextjs-turbopack

Metric Scenario Best (ms) P75 (ms) P90 (ms) P99 (ms) Samples
TTFS step 1297 (+240%) 🔻 1356 🔴 (+22%) 🔻 1400 🔴 (+23%) 🔻 1653 🔴 (+7.9%) 30
TTFS stream 1303 (+30%) 🔻 1358 🔴 (+28%) 🔻 1370 🔴 (+28%) 🔻 1403 🔴 (+27%) 🔻 30
TTFS hook + stream 1568 (+23%) 🔻 1655 🔴 (+19%) 🔻 1695 🔴 (+19%) 🔻 1937 🔴 (+20%) 🔻 30
Fan-out TTFS Promise.all(100 steps) 8703 (-2.4%) 9352 (-6.0%) 10003 (-0.8%) 10529 (-22%) 💚 10
Fan-out TTLS Promise.all(100 steps) 17387 (-1.6%) 18266 (-3.2%) 18748 (-1.3%) 20365 (-13%) 10
STSO 1020 steps (inline) 126 (+2.4%) 174 (-8.9%) 197 (-14%) 381 (-34%) 💚 1019
WO 1020 steps 193881 (-0.8%) 193881 (-0.8%) 193881 (-0.8%) 193881 (-0.8%) 1
SL stream latency 80 (+1.3%) 112 🔴 (+1.8%) 118 🔴 (-8.5%) 178 🔴 (-48%) 💚 30
SO stream overhead (text) 120 (+8.1%) 180 (±0%) 502 🔴 (+144%) 🔻 6429 🔴 (+964%) 🔻 30
SO stream overhead (structured) 105 (+9.4%) 174 (+12%) 214 (+28%) 🔻 244 (+34%) 🔻 30
ℹ️ Metric definitions & methodology

The collapsed STSO distribution section above buckets every step gap of the sequential-steps run (not a sampled window), split by whether the step ending the gap ran inline — in the same warm process as the step before it, so the gap is pure framework overhead — or after a queue-hop — the first step of a fresh process, which pays queue dispatch, client reinit and event-log replay. Bars overlay the two runs: is main, marks where this run lands, bridges the gap when this run has more samples in a bucket.

Best/P75/P90/P99 deltas compare against the most recent benchmark run on main at the time of this run. 🔻 flags a delta worse than +15%, 💚 one better than −15%.

Metrics — TTFS: time to first step body (in-deployment start() → first step body, deployment clocks) · Fan-out TTFS: fan-out time to first step (in-deployment start() → first of the parallel step bodies to complete) · Fan-out TTLS: fan-out time to last step (in-deployment start() → last of the parallel step bodies to complete, i.e. when the Promise.all resolves) · STSO: step-to-step overhead (gap between consecutive step bodies) · WO: workflow overhead (whole-run time outside step bodies, in-deployment anchored) · SL: stream latency (in-deployment write → read propagation, readAt - writtenAt) · SO: stream overhead (end-to-end write+consume time beyond the modelled generation window)

Scenarios — step: one trivial no-op step, no stream; no hooks, so the run stays in turbo mode (in-process fast path) · stream: one streaming step; no hooks, so the run stays in turbo mode (in-process fast path) · hook + stream: registers a hook before one step, which exits turbo mode (dispatch path) · 1020 steps: 1020 trivial sequential steps; STSO is measured between consecutive steps in the given step ranges, and WO is the whole-run overhead outside step bodies · Promise.all(100 steps): 100 trivial no-op steps started together in a single Promise.all; Fan-out TTFS is the first of them to complete and Fan-out TTLS the last, both from the in-deployment clientStart, so their gap is the spread the runtime adds across the fan-out · stream latency: parallel reader/writer steps on a dedicated stream; SL is the in-deployment write->read propagation (readAt - writtenAt) · stream overhead (text): writer streams 300 variable-length text token deltas paced at 100/s for 3s (a haiku-size LLM's token throughput) while a parallel reader drains the whole stream; SO is the end-to-end write+consume time beyond the 3s generation window (overhead/backpressure) · stream overhead (structured): same workload as stream overhead (text), but each delta is an AI-SDK-style structured object ({ type: 'text-delta', id, text }) instead of a raw string, so the SO gap vs the text scenario is the added serialization cost

🔴 marks a percentile over its target (within target is left unmarked). Targets (p75/p90/p99, ms) — TTFS 200/300/600 · SL 50/60/125 · SO 250/500/1000

All metrics are measured from deployment-side timestamps only. Runs are triggered by an in-deployment route that stamps the anchor (clientStart) right before start(), so the CI runner’s request and its path through api.vercel.com sit outside every measured window. TTFS = in-deployment start() → first step body (turbo uses the in-process fast path, non-turbo the dispatch path), and includes the VQS dispatch hop plus any /flow cold start. Fan-out TTFS/TTLS are the first and last step completions of a single Promise.all over trivial steps, from the same anchor, so the gap between the two rows is the spread the runtime adds across the fan-out. STSO/WO are measured between step bodies on the deployment. SL is measured inside the workflow (parallel reader/writer steps), so it no longer includes the api.vercel.com read path.

Cold starts are kept in the numbers on purpose — they are part of real bursty-workload latency. The workbench deployment cold-starts the /flow invocation for a large fraction of runs, inflating P75+; the Best column shows the fastest (warm-start) sample for comparison.

@github-actions

github-actions Bot commented Aug 14, 2026

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

All tests passed

E2E Test Summary

Summary
Passed Failed Skipped Total
✅ ▲ Vercel Production 3466 0 590 4056
✅ 💻 Local Development 3673 0 539 4212
✅ 📦 Local Production 3810 0 558 4368
✅ 🐘 Local Postgres 3810 0 558 4368
✅ 🪟 Windows 312 0 0 312
✅ vercel-multi-region 27 0 0 27
Total 15098 0 2245 17343
Details by Category

✅ ▲ Vercel Production

App Passed Failed Skipped
✅ astro-node 128 0 28
✅ astro-quickjs 128 0 28
✅ example-node 128 0 28
✅ example-quickjs 128 0 28
✅ express-node 128 0 28
✅ express-quickjs 128 0 28
✅ fastify-node 128 0 28
✅ fastify-quickjs 128 0 28
✅ hono-node 128 0 28
✅ hono-quickjs 128 0 28
✅ nest-node 128 0 28
✅ nest-quickjs 128 0 28
✅ nextjs-turbopack-node 153 0 3
✅ nextjs-turbopack-quickjs 153 0 3
✅ nextjs-webpack-node 153 0 3
✅ nextjs-webpack-quickjs 153 0 3
✅ nitro-node 128 0 28
✅ nitro-quickjs 128 0 28
✅ nuxt-node 128 0 28
✅ nuxt-quickjs 128 0 28
✅ sveltekit-node 147 0 9
✅ sveltekit-quickjs 147 0 9
✅ tanstack-start-node 128 0 28
✅ tanstack-start-quickjs 128 0 28
✅ vite-node 128 0 28
✅ vite-quickjs 128 0 28

✅ 💻 Local Development

App Passed Failed Skipped
✅ astro-stable-node 130 0 26
✅ astro-stable-quickjs 130 0 26
✅ express-stable-node 130 0 26
✅ express-stable-quickjs 130 0 26
✅ fastify-stable-node 130 0 26
✅ fastify-stable-quickjs 130 0 26
✅ hono-stable-node 130 0 26
✅ hono-stable-quickjs 130 0 26
✅ nest-stable-node 130 0 26
✅ nest-stable-quickjs 130 0 26
✅ nextjs-turbopack-canary-node 137 0 19
✅ nextjs-turbopack-canary-quickjs 137 0 19
✅ nextjs-turbopack-stable-node 156 0 0
✅ nextjs-turbopack-stable-quickjs 156 0 0
✅ nextjs-webpack-canary-node 137 0 19
✅ nextjs-webpack-stable-node 156 0 0
✅ nextjs-webpack-stable-quickjs 156 0 0
✅ nitro-stable-node 130 0 26
✅ nitro-stable-quickjs 130 0 26
✅ nuxt-stable-node 130 0 26
✅ nuxt-stable-quickjs 130 0 26
✅ sveltekit-stable-node 149 0 7
✅ sveltekit-stable-quickjs 149 0 7
✅ tanstack-start-node 130 0 26
✅ tanstack-start-quickjs 130 0 26
✅ vite-stable-node 130 0 26
✅ vite-stable-quickjs 130 0 26

✅ 📦 Local Production

App Passed Failed Skipped
✅ astro-stable-node 130 0 26
✅ astro-stable-quickjs 130 0 26
✅ express-stable-node 130 0 26
✅ express-stable-quickjs 130 0 26
✅ fastify-stable-node 130 0 26
✅ fastify-stable-quickjs 130 0 26
✅ hono-stable-node 130 0 26
✅ hono-stable-quickjs 130 0 26
✅ nest-stable-node 130 0 26
✅ nest-stable-quickjs 130 0 26
✅ nextjs-turbopack-canary-node 137 0 19
✅ nextjs-turbopack-canary-quickjs 137 0 19
✅ nextjs-turbopack-stable-node 156 0 0
✅ nextjs-turbopack-stable-quickjs 156 0 0
✅ nextjs-webpack-canary-node 137 0 19
✅ nextjs-webpack-canary-quickjs 137 0 19
✅ nextjs-webpack-stable-node 156 0 0
✅ nextjs-webpack-stable-quickjs 156 0 0
✅ nitro-stable-node 130 0 26
✅ nitro-stable-quickjs 130 0 26
✅ nuxt-stable-node 130 0 26
✅ nuxt-stable-quickjs 130 0 26
✅ sveltekit-stable-node 149 0 7
✅ sveltekit-stable-quickjs 149 0 7
✅ tanstack-start-node 130 0 26
✅ tanstack-start-quickjs 130 0 26
✅ vite-stable-node 130 0 26
✅ vite-stable-quickjs 130 0 26

✅ 🐘 Local Postgres

App Passed Failed Skipped
✅ astro-stable-node 130 0 26
✅ astro-stable-quickjs 130 0 26
✅ express-stable-node 130 0 26
✅ express-stable-quickjs 130 0 26
✅ fastify-stable-node 130 0 26
✅ fastify-stable-quickjs 130 0 26
✅ hono-stable-node 130 0 26
✅ hono-stable-quickjs 130 0 26
✅ nest-stable-node 130 0 26
✅ nest-stable-quickjs 130 0 26
✅ nextjs-turbopack-canary-node 137 0 19
✅ nextjs-turbopack-canary-quickjs 137 0 19
✅ nextjs-turbopack-stable-node 156 0 0
✅ nextjs-turbopack-stable-quickjs 156 0 0
✅ nextjs-webpack-canary-node 137 0 19
✅ nextjs-webpack-canary-quickjs 137 0 19
✅ nextjs-webpack-stable-node 156 0 0
✅ nextjs-webpack-stable-quickjs 156 0 0
✅ nitro-stable-node 130 0 26
✅ nitro-stable-quickjs 130 0 26
✅ nuxt-stable-node 130 0 26
✅ nuxt-stable-quickjs 130 0 26
✅ sveltekit-stable-node 149 0 7
✅ sveltekit-stable-quickjs 149 0 7
✅ tanstack-start-node 130 0 26
✅ tanstack-start-quickjs 130 0 26
✅ vite-stable-node 130 0 26
✅ vite-stable-quickjs 130 0 26

✅ 🪟 Windows

App Passed Failed Skipped
✅ nextjs-turbopack-node 156 0 0
✅ nextjs-turbopack-quickjs 156 0 0

✅ vercel-multi-region

App Passed Failed Skipped
✅ nextjs-turbopack 27 0 0

📋 View full workflow run

@pranaygp
pranaygp enabled auto-merge (squash) August 14, 2026 01:16
*/
export const SPEC_VERSION_CURRENT =
SPEC_VERSION_SUPPORTS_COMPRESSION as SpecVersion;
SPEC_VERSION_SUPPORTS_SLOT_IDENTITY as SpecVersion;

@vercel vercel Bot Aug 14, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The unit test in spec-version.test.ts still asserts SPEC_VERSION_CURRENT === SPEC_VERSION_SUPPORTS_COMPRESSION (5), but the constant was intentionally bumped to 6, so the assertion fails and breaks the @workflow/world test suite.

Fix on Vercel

@github-actions

github-actions Bot commented Aug 14, 2026

Copy link
Copy Markdown
Contributor

Sim World

Simulated world deterministic testing for races. Traces

🟠 Mint-ordered log — 3 fail of 41 total

log=mint-ordered · fence=per-spec

scenario outcome events virt replay violations
smoke-no-steps completed 3 0ms ok 0
smoke-one-step completed 6 0ms ok 0
hook-at-step-started completed 12 0ms ok 0
hook-at-step-completed completed 12 0ms ok 0
hook-at-hook-created completed 12 0ms ok 0
deadline-hook-wins completed 7 1.0h ok 0
deadline-expires completed 7 1.0h ok 0
long-sleep completed 11 30.0d ok 0
hook-never-arrives stalled 3 0ms skipped 0
step-retries-twice completed 10 2.0s ok 0
parallel-steps completed 9 0ms ok 0
hook-on-execution-state completed 12 0ms ok 0
peek-hook-before-branch completed 12 0ms ok 0
peek-hook-after-branch completed 12 0ms ok 0
peek-hook-at-registration completed 12 0ms ok 0
race-hook-before-probe completed 12 0ms ok 0
race-hook-after-probe completed 12 0ms ok 0
race-duplicate-delivery completed 13 0ms ok 0
attr-hook-before-step completed 11 0ms ok 0
attr-hook-after-step completed 11 0ms ok 0
attr-from-step-body completed 13 0ms ok 0
fork-hook-after-timeout completed 14 1.0m ok 0
fork-hook-before-timeout completed 14 1.0m ok 0
count-hook-after-timeout completed 17 1.0m ok 0
count-hook-before-timeout completed 20 1.0m ok 0
stale-read-step-count-fork completed 20 1.0m ok 0
stale-read-equal-step-counts completed 14 1.0m ok 0
step-vs-step-fork completed 12 0ms ok 0
step-vs-step-fork-fenced completed 12 0ms ok 0
fence-catches-benign-direction completed 12 5ms ok 0
in-flight-before-decision failed 9 1.0m MISMATCH 1
in-flight-before-decision-counted failed 9 1.0m MISMATCH 1
in-flight-after-decision failed 9 1.0m MISMATCH 1
stale-read-step-count-fork-fenced completed 20 1.0m ok 0
fork-hook-wins completed 13 1.0m ok 0
fork-timeout-wins completed 13 1.0m ok 0
unclaimed-payload-under-fork completed 17 1.0m ok 0
claimed-payload-under-fork completed 17 1.0m ok 0
writers-independent-step-bodies completed 12 0ms ok 0
writers-scripted-tempo completed 12 0ms ok 0
cancel-mid-step cancelled 7 0ms skipped 0

Full trace: world-sim-mint.txt

🟢 Append-only log — 0 fail of 41 total

log=append-only · fence=per-spec

scenario outcome events virt replay violations
smoke-no-steps completed 3 0ms ok 0
smoke-one-step completed 6 0ms ok 0
hook-at-step-started completed 12 0ms ok 0
hook-at-step-completed completed 12 0ms ok 0
hook-at-hook-created completed 12 0ms ok 0
deadline-hook-wins completed 7 1.0h ok 0
deadline-expires completed 7 1.0h ok 0
long-sleep completed 11 30.0d ok 0
hook-never-arrives stalled 3 0ms skipped 0
step-retries-twice completed 10 2.0s ok 0
parallel-steps completed 9 0ms ok 0
hook-on-execution-state completed 12 0ms ok 0
peek-hook-before-branch completed 12 0ms ok 0
peek-hook-after-branch completed 12 0ms ok 0
peek-hook-at-registration completed 12 0ms ok 0
race-hook-before-probe completed 12 0ms ok 0
race-hook-after-probe completed 12 0ms ok 0
race-duplicate-delivery completed 13 0ms ok 0
attr-hook-before-step completed 11 0ms ok 0
attr-hook-after-step completed 11 0ms ok 0
attr-from-step-body completed 13 0ms ok 0
fork-hook-after-timeout completed 14 1.0m ok 0
fork-hook-before-timeout completed 14 1.0m ok 0
count-hook-after-timeout completed 17 1.0m ok 0
count-hook-before-timeout completed 20 1.0m ok 0
stale-read-step-count-fork completed 20 1.0m ok 0
stale-read-equal-step-counts completed 14 1.0m ok 0
step-vs-step-fork completed 12 0ms ok 0
step-vs-step-fork-fenced completed 12 0ms ok 0
fence-catches-benign-direction completed 12 5ms ok 0
in-flight-before-decision completed 17 1.0m ok 0
in-flight-before-decision-counted completed 17 1.0m ok 0
in-flight-after-decision completed 19 2.0m ok 0
stale-read-step-count-fork-fenced completed 20 1.0m ok 0
fork-hook-wins completed 13 1.0m ok 0
fork-timeout-wins completed 13 1.0m ok 0
unclaimed-payload-under-fork completed 17 1.0m ok 0
claimed-payload-under-fork completed 17 1.0m ok 0
writers-independent-step-bodies completed 12 0ms ok 0
writers-scripted-tempo completed 12 0ms ok 0
cancel-mid-step cancelled 7 0ms skipped 0

Full trace: world-sim-append-only.txt

The constant's own doc argued against the bump this branch makes, so
rewrite it around what is now true: slot-numbered event ids are a
requirement of the World contract (`requireEventSlot` fails a run whose
ids are not positions), which makes 6 both the version a World stamps
and the lowest one the runtime can serve. Same for the compatibility
range's rationale and the `World.specVersion` docs.

world-vercel declared the slot-identity literal rather than the current
version. Equal today, but the next bump would raise the runtime's floor
past the adapter shipped alongside it and reject it, so declare the
current version instead.

Document the requirement for World authors: the building-a-world guide
never mentioned `specVersion`, and the conformance suite checked that
event ids are positions without checking the version declared next to
them.
The three entries described one change from three angles, which reads as
three separate release notes. The narrowed World compatibility range is
the breaking part: a World declaring an older spec version stops working
against this runtime.
VaguelySerious added a commit that referenced this pull request Aug 14, 2026
…n skill

Two pieces, both for a World implementer rather than an application.

- The Spec versions section is rewritten for #3542. The accepted range
  narrows to a single version, because slot-numbered event ids stopped
  being optional, so a World declaring 5 is now refused before its first
  run rather than partway through one. The guidance that mattered stays
  the same and gets a reason: declare SPEC_VERSION_CURRENT, not a
  literal, and not SPEC_VERSION_SUPPORTS_SLOT_IDENTITY, which is a
  literal by another name.
- skills/migrating-world-v4-to-v5 is a second migration skill, for the
  World rather than the app. The two jobs share almost no surface, and
  the World half is the one where a type-clean port still fails on the
  first replay, so it leads with event id allocation and treats the
  signature changes as the small half. The application skill now hands
  that work off instead of summarizing it.

Also drops what the main merge left stale: the precondition guard row in
whats-new and the guard bullet in the application skill (the capability,
the env var and the stateUpdatedAt triple are all gone), and the
eventCount-supersedes-the-triple paragraph in the upgrade guide.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@VaguelySerious VaguelySerious added the event-log-race-repro Run the event log race reproduction job label Aug 14, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Event Log Race Repro

No event-log regressions in the latest repro job.

Run History

Metric 2026-08-14 17:07 UTC #1
logs / deploy
Result no regressions
Total 14
completed 14
CORRUPTED_EVENT_LOG 0
USER_ERROR 0
RUNTIME_ERROR 0
stuck 0
other 0
infra 0
Config 14 runs / step-storm 6, hook-storm 6, hook-sleep 2 / c8 / 6x8
Timing watchdog 2500ms / step 2200±250ms / stagger 400ms / poke 750ms / timeout 240000ms

Latest Scenario Breakdown

Scenario Total completed CORRUPTED_EVENT_LOG USER_ERROR RUNTIME_ERROR stuck other infra
step-storm 6 6 0 0 0 0 0 0
hook-storm 6 6 0 0 0 0 0 0
hook-sleep 2 2 0 0 0 0 0 0

@github-actions

Copy link
Copy Markdown
Contributor

Event Log Race Repro (world-postgres)

6 of 14 latest repro runs hit event-log regressions.

Run History

Metric 2026-08-14 17:11 UTC #1
logs / deploy
Result 6/14 regressions
Total 14
completed 8
CORRUPTED_EVENT_LOG 0
USER_ERROR 0
RUNTIME_ERROR 0
stuck 6
other 0
infra 0
Config 14 runs / step-storm 6, hook-storm 6, hook-sleep 2 / c8 / 6x8
Timing watchdog 2500ms / step 2200±250ms / stagger 400ms / poke 750ms / timeout 240000ms

Latest Scenario Breakdown

Scenario Total completed CORRUPTED_EVENT_LOG USER_ERROR RUNTIME_ERROR stuck other infra
step-storm 6 0 0 0 0 6 0 0
hook-storm 6 6 0 0 0 0 0 0
hook-sleep 2 2 0 0 0 0 0 0

Latest Non-Completed Runs

Scenario Attempt Outcome Status Error code Run
step-storm 3 stuck running wrun_01M00KPP7ZTZ9H8M4VE3YC55RB
step-storm 1 stuck running wrun_01M00KPP7ZTZ9H8M4VE3YC55RG
step-storm 2 stuck running wrun_01M00KPP7ZTZ9H8M4VE3YC55RD
step-storm 6 stuck running wrun_01M00KPP7ZTZ9H8M4VE3YC55RF
step-storm 5 stuck running wrun_01M00KPP7ZTZ9H8M4VE3YC55RE
step-storm 4 stuck running wrun_01M00KPP7ZTZ9H8M4VE3YC55RC

@github-actions

Copy link
Copy Markdown
Contributor

Event Log Race Repro (world-local)

6 of 14 latest repro runs hit event-log regressions.

Run History

Metric 2026-08-14 17:11 UTC #1
logs / deploy
Result 6/14 regressions
Total 14
completed 8
CORRUPTED_EVENT_LOG 1
USER_ERROR 0
RUNTIME_ERROR 0
stuck 5
other 0
infra 0
Config 14 runs / step-storm 6, hook-storm 6, hook-sleep 2 / c8 / 6x8
Timing watchdog 2500ms / step 2200±250ms / stagger 400ms / poke 750ms / timeout 240000ms

Latest Scenario Breakdown

Scenario Total completed CORRUPTED_EVENT_LOG USER_ERROR RUNTIME_ERROR stuck other infra
step-storm 6 0 1 0 0 5 0 0
hook-storm 6 6 0 0 0 0 0 0
hook-sleep 2 2 0 0 0 0 0 0

Latest Non-Completed Runs

Scenario Attempt Outcome Status Error code Run
step-storm 1 CORRUPTED_EVENT_LOG failed CORRUPTED_EVENT_LOG wrun_01M00KPFDPTE4QJ6P5CY3YGNGW
step-storm 6 stuck running wrun_01M00KPFDQ84E3CCNF72DK6VNB
step-storm 4 stuck running wrun_01M00KPFDJVB0J6R07RCM2MS5K
step-storm 5 stuck running wrun_01M00KPFDM4MWEJ04RT097MFWJ
step-storm 3 stuck running wrun_01M00KPFDHM3Y5RTB1MWJYHBNP
step-storm 2 stuck running wrun_01M00KPFD6RMRWBC46YBV37W9B

@VaguelySerious
VaguelySerious merged commit de2a86c into main Aug 14, 2026
167 of 172 checks passed
@VaguelySerious
VaguelySerious deleted the peter/spec-version branch August 14, 2026 17:22
@github-actions

Copy link
Copy Markdown
Contributor

No backport to stable for de2a86c (AI decision).

This is an intentional protocol/behavior change, not a fix: it bumps SPEC_VERSION_CURRENT to 6, narrows the accepted World range from [5, 6] to {6} so a World declaring 5 is now rejected outright, and changes the version stamped on newly created runs and events. Its own changeset labels it Breaking, and it builds on #3519 (making slot-numbered event ids a World contract requirement), which is main-line work; the accompanying docs and conformance-suite additions document a newly-required declaration rather than correcting something wrong on stable.

To override, re-run the Backport to stable workflow manually via workflow_dispatch and paste this commit SHA into the ref input:

de2a86c61c843a04c292e54e9c439553b3da02c5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

event-log-race-repro Run the event log race reproduction job

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants