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

@VaguelySeriousVaguelySerious 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

Pagev5
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 ownerAugust 14, 2026 01:14
@changeset-bot

changeset-botBot 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
NameType
@workflow/worldPatch
@workflow/corePatch
@workflow/world-localPatch
@workflow/world-postgresPatch
@workflow/world-vercelPatch
@workflow/world-testingPatch
@workflow/cliPatch
@workflow/vitestPatch
@workflow/web-sharedPatch
@workflow/webPatch
@workflow/buildersPatch
@workflow/nextPatch
@workflow/nitroPatch
workflowPatch
@workflow/astroPatch
@workflow/nestPatch
@workflow/rollupPatch
@workflow/sveltekitPatch
@workflow/vitePatch
@workflow/nuxtPatch

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

vercelBot commented Aug 14, 2026

Copy link
Copy Markdown
Contributor

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

ProjectDeploymentActionsUpdated (UTC)
example-nextjs-workflow-turbopackReadyReadyPreviewAug 14, 2026 4:53pm
example-nextjs-workflow-webpackReadyReadyPreviewAug 14, 2026 4:53pm
example-workflowReadyReadyPreviewAug 14, 2026 4:53pm
workbench-astro-workflowReadyReadyPreviewAug 14, 2026 4:53pm
workbench-express-workflowReadyReadyPreviewAug 14, 2026 4:53pm
workbench-fastify-workflowReadyReadyPreviewAug 14, 2026 4:53pm
workbench-hono-workflowReadyReadyPreviewAug 14, 2026 4:53pm
workbench-nestjs-workflowReadyReadyPreviewAug 14, 2026 4:53pm
workbench-nitro-workflowReadyReadyPreviewAug 14, 2026 4:53pm
workbench-nuxt-workflowReadyReadyPreviewAug 14, 2026 4:53pm
workbench-python-workflowErrorErrorAug 14, 2026 4:53pm
workbench-sveltekit-workflowReadyReadyPreviewAug 14, 2026 4:53pm
workbench-tanstack-start-workflowReadyReadyPreviewAug 14, 2026 4:53pm
workbench-vite-workflowReadyReadyPreviewAug 14, 2026 4:53pm
workflow-docsReadyReadyPreview, v0Aug 14, 2026 4:53pm
workflow-swc-playgroundReadyReadyPreviewAug 14, 2026 4:53pm
workflow-tarballsReadyReadyPreviewAug 14, 2026 4:53pm
workflow-webReadyReadyPreviewAug 14, 2026 4:53pm

@github-actions

github-actionsBot 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

MetricScenarioBest (ms)P75 (ms)P90 (ms)P99 (ms)Samples
TTFSstep1326 (+248%) 🔻1440 🔴 (+29%) 🔻1559 🔴 (+37%) 🔻1908 🔴 (+25%) 🔻30
TTFSstream1361 (+35%) 🔻1467 🔴 (+39%) 🔻1505 🔴 (+41%) 🔻1537 🔴 (+39%) 🔻30
TTFShook + stream1473 (+15%) 🔻1817 🔴 (+31%) 🔻1890 🔴 (+32%) 🔻2130 🔴 (+31%) 🔻30
Fan-out TTFSPromise.all(100 steps)8997 (+0.9%)10726 (+7.8%)10805 (+7.2%)15961 (+18%) 🔻10
Fan-out TTLSPromise.all(100 steps)17664 (±0%)19564 (+3.7%)19684 (+3.6%)25576 (+9.1%)10
STSO1020 steps (inline)155 (+26%) 🔻193 (+1.0%)212 (-7.4%)309 (-47%) 💚1019
WO1020 steps193638 (-0.9%)193638 (-0.9%)193638 (-0.9%)193638 (-0.9%)1
SLstream latency122 (+54%) 🔻148 🔴 (+35%) 🔻169 🔴 (+31%) 🔻274 🔴 (-20%) 💚30
SOstream overhead (text)150 (+35%) 🔻207 (+15%)261 (+27%) 🔻341 (-44%) 💚30
SOstream 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

MetricScenarioBest (ms)P75 (ms)P90 (ms)P99 (ms)Samples
TTFSstep1297 (+240%) 🔻1356 🔴 (+22%) 🔻1400 🔴 (+23%) 🔻1653 🔴 (+7.9%)30
TTFSstream1303 (+30%) 🔻1358 🔴 (+28%) 🔻1370 🔴 (+28%) 🔻1403 🔴 (+27%) 🔻30
TTFShook + stream1568 (+23%) 🔻1655 🔴 (+19%) 🔻1695 🔴 (+19%) 🔻1937 🔴 (+20%) 🔻30
Fan-out TTFSPromise.all(100 steps)8703 (-2.4%)9352 (-6.0%)10003 (-0.8%)10529 (-22%) 💚10
Fan-out TTLSPromise.all(100 steps)17387 (-1.6%)18266 (-3.2%)18748 (-1.3%)20365 (-13%)10
STSO1020 steps (inline)126 (+2.4%)174 (-8.9%)197 (-14%)381 (-34%) 💚1019
WO1020 steps193881 (-0.8%)193881 (-0.8%)193881 (-0.8%)193881 (-0.8%)1
SLstream latency80 (+1.3%)112 🔴 (+1.8%)118 🔴 (-8.5%)178 🔴 (-48%) 💚30
SOstream overhead (text)120 (+8.1%)180 (±0%)502 🔴 (+144%) 🔻6429 🔴 (+964%) 🔻30
SOstream 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-actionsBot commented Aug 14, 2026

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

All tests passed

E2E Test Summary

Summary
PassedFailedSkippedTotal
✅ ▲ Vercel Production346605904056
✅ 💻 Local Development367305394212
✅ 📦 Local Production381005584368
✅ 🐘 Local Postgres381005584368
✅ 🪟 Windows31200312
✅ vercel-multi-region270027
Total150980224517343
Details by Category

✅ ▲ Vercel Production

AppPassedFailedSkipped
✅ astro-node128028
✅ astro-quickjs128028
✅ example-node128028
✅ example-quickjs128028
✅ express-node128028
✅ express-quickjs128028
✅ fastify-node128028
✅ fastify-quickjs128028
✅ hono-node128028
✅ hono-quickjs128028
✅ nest-node128028
✅ nest-quickjs128028
✅ nextjs-turbopack-node15303
✅ nextjs-turbopack-quickjs15303
✅ nextjs-webpack-node15303
✅ nextjs-webpack-quickjs15303
✅ nitro-node128028
✅ nitro-quickjs128028
✅ nuxt-node128028
✅ nuxt-quickjs128028
✅ sveltekit-node14709
✅ sveltekit-quickjs14709
✅ tanstack-start-node128028
✅ tanstack-start-quickjs128028
✅ vite-node128028
✅ vite-quickjs128028

✅ 💻 Local Development

AppPassedFailedSkipped
✅ astro-stable-node130026
✅ astro-stable-quickjs130026
✅ express-stable-node130026
✅ express-stable-quickjs130026
✅ fastify-stable-node130026
✅ fastify-stable-quickjs130026
✅ hono-stable-node130026
✅ hono-stable-quickjs130026
✅ nest-stable-node130026
✅ nest-stable-quickjs130026
✅ nextjs-turbopack-canary-node137019
✅ nextjs-turbopack-canary-quickjs137019
✅ nextjs-turbopack-stable-node15600
✅ nextjs-turbopack-stable-quickjs15600
✅ nextjs-webpack-canary-node137019
✅ nextjs-webpack-stable-node15600
✅ nextjs-webpack-stable-quickjs15600
✅ nitro-stable-node130026
✅ nitro-stable-quickjs130026
✅ nuxt-stable-node130026
✅ nuxt-stable-quickjs130026
✅ sveltekit-stable-node14907
✅ sveltekit-stable-quickjs14907
✅ tanstack-start-node130026
✅ tanstack-start-quickjs130026
✅ vite-stable-node130026
✅ vite-stable-quickjs130026

✅ 📦 Local Production

AppPassedFailedSkipped
✅ astro-stable-node130026
✅ astro-stable-quickjs130026
✅ express-stable-node130026
✅ express-stable-quickjs130026
✅ fastify-stable-node130026
✅ fastify-stable-quickjs130026
✅ hono-stable-node130026
✅ hono-stable-quickjs130026
✅ nest-stable-node130026
✅ nest-stable-quickjs130026
✅ nextjs-turbopack-canary-node137019
✅ nextjs-turbopack-canary-quickjs137019
✅ nextjs-turbopack-stable-node15600
✅ nextjs-turbopack-stable-quickjs15600
✅ nextjs-webpack-canary-node137019
✅ nextjs-webpack-canary-quickjs137019
✅ nextjs-webpack-stable-node15600
✅ nextjs-webpack-stable-quickjs15600
✅ nitro-stable-node130026
✅ nitro-stable-quickjs130026
✅ nuxt-stable-node130026
✅ nuxt-stable-quickjs130026
✅ sveltekit-stable-node14907
✅ sveltekit-stable-quickjs14907
✅ tanstack-start-node130026
✅ tanstack-start-quickjs130026
✅ vite-stable-node130026
✅ vite-stable-quickjs130026

✅ 🐘 Local Postgres

AppPassedFailedSkipped
✅ astro-stable-node130026
✅ astro-stable-quickjs130026
✅ express-stable-node130026
✅ express-stable-quickjs130026
✅ fastify-stable-node130026
✅ fastify-stable-quickjs130026
✅ hono-stable-node130026
✅ hono-stable-quickjs130026
✅ nest-stable-node130026
✅ nest-stable-quickjs130026
✅ nextjs-turbopack-canary-node137019
✅ nextjs-turbopack-canary-quickjs137019
✅ nextjs-turbopack-stable-node15600
✅ nextjs-turbopack-stable-quickjs15600
✅ nextjs-webpack-canary-node137019
✅ nextjs-webpack-canary-quickjs137019
✅ nextjs-webpack-stable-node15600
✅ nextjs-webpack-stable-quickjs15600
✅ nitro-stable-node130026
✅ nitro-stable-quickjs130026
✅ nuxt-stable-node130026
✅ nuxt-stable-quickjs130026
✅ sveltekit-stable-node14907
✅ sveltekit-stable-quickjs14907
✅ tanstack-start-node130026
✅ tanstack-start-quickjs130026
✅ vite-stable-node130026
✅ vite-stable-quickjs130026

✅ 🪟 Windows

AppPassedFailedSkipped
✅ nextjs-turbopack-node15600
✅ nextjs-turbopack-quickjs15600

✅ vercel-multi-region

AppPassedFailedSkipped
✅ nextjs-turbopack2700

📋 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;

@vercelvercelBotAug 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-actionsBot 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

scenariooutcomeeventsvirtreplayviolations
smoke-no-stepscompleted30msok0
smoke-one-stepcompleted60msok0
hook-at-step-startedcompleted120msok0
hook-at-step-completedcompleted120msok0
hook-at-hook-createdcompleted120msok0
deadline-hook-winscompleted71.0hok0
deadline-expirescompleted71.0hok0
long-sleepcompleted1130.0dok0
hook-never-arrivesstalled30msskipped0
step-retries-twicecompleted102.0sok0
parallel-stepscompleted90msok0
hook-on-execution-statecompleted120msok0
peek-hook-before-branchcompleted120msok0
peek-hook-after-branchcompleted120msok0
peek-hook-at-registrationcompleted120msok0
race-hook-before-probecompleted120msok0
race-hook-after-probecompleted120msok0
race-duplicate-deliverycompleted130msok0
attr-hook-before-stepcompleted110msok0
attr-hook-after-stepcompleted110msok0
attr-from-step-bodycompleted130msok0
fork-hook-after-timeoutcompleted141.0mok0
fork-hook-before-timeoutcompleted141.0mok0
count-hook-after-timeoutcompleted171.0mok0
count-hook-before-timeoutcompleted201.0mok0
stale-read-step-count-forkcompleted201.0mok0
stale-read-equal-step-countscompleted141.0mok0
step-vs-step-forkcompleted120msok0
step-vs-step-fork-fencedcompleted120msok0
fence-catches-benign-directioncompleted125msok0
in-flight-before-decisionfailed91.0mMISMATCH1
in-flight-before-decision-countedfailed91.0mMISMATCH1
in-flight-after-decisionfailed91.0mMISMATCH1
stale-read-step-count-fork-fencedcompleted201.0mok0
fork-hook-winscompleted131.0mok0
fork-timeout-winscompleted131.0mok0
unclaimed-payload-under-forkcompleted171.0mok0
claimed-payload-under-forkcompleted171.0mok0
writers-independent-step-bodiescompleted120msok0
writers-scripted-tempocompleted120msok0
cancel-mid-stepcancelled70msskipped0

Full trace: world-sim-mint.txt

🟢 Append-only log — 0 fail of 41 total

log=append-only · fence=per-spec

scenariooutcomeeventsvirtreplayviolations
smoke-no-stepscompleted30msok0
smoke-one-stepcompleted60msok0
hook-at-step-startedcompleted120msok0
hook-at-step-completedcompleted120msok0
hook-at-hook-createdcompleted120msok0
deadline-hook-winscompleted71.0hok0
deadline-expirescompleted71.0hok0
long-sleepcompleted1130.0dok0
hook-never-arrivesstalled30msskipped0
step-retries-twicecompleted102.0sok0
parallel-stepscompleted90msok0
hook-on-execution-statecompleted120msok0
peek-hook-before-branchcompleted120msok0
peek-hook-after-branchcompleted120msok0
peek-hook-at-registrationcompleted120msok0
race-hook-before-probecompleted120msok0
race-hook-after-probecompleted120msok0
race-duplicate-deliverycompleted130msok0
attr-hook-before-stepcompleted110msok0
attr-hook-after-stepcompleted110msok0
attr-from-step-bodycompleted130msok0
fork-hook-after-timeoutcompleted141.0mok0
fork-hook-before-timeoutcompleted141.0mok0
count-hook-after-timeoutcompleted171.0mok0
count-hook-before-timeoutcompleted201.0mok0
stale-read-step-count-forkcompleted201.0mok0
stale-read-equal-step-countscompleted141.0mok0
step-vs-step-forkcompleted120msok0
step-vs-step-fork-fencedcompleted120msok0
fence-catches-benign-directioncompleted125msok0
in-flight-before-decisioncompleted171.0mok0
in-flight-before-decision-countedcompleted171.0mok0
in-flight-after-decisioncompleted192.0mok0
stale-read-step-count-fork-fencedcompleted201.0mok0
fork-hook-winscompleted131.0mok0
fork-timeout-winscompleted131.0mok0
unclaimed-payload-under-forkcompleted171.0mok0
claimed-payload-under-forkcompleted171.0mok0
writers-independent-step-bodiescompleted120msok0
writers-scripted-tempocompleted120msok0
cancel-mid-stepcancelled70msskipped0

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.
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>
@VaguelySeriousVaguelySerious 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

Metric2026-08-14 17:07 UTC #1
logs / deploy
Resultno regressions
Total14
completed14
CORRUPTED_EVENT_LOG0
USER_ERROR0
RUNTIME_ERROR0
stuck0
other0
infra0
Config14 runs / step-storm 6, hook-storm 6, hook-sleep 2 / c8 / 6x8
Timingwatchdog 2500ms / step 2200±250ms / stagger 400ms / poke 750ms / timeout 240000ms

Latest Scenario Breakdown

ScenarioTotalcompletedCORRUPTED_EVENT_LOGUSER_ERRORRUNTIME_ERRORstuckotherinfra
step-storm66000000
hook-storm66000000
hook-sleep22000000

@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

Metric2026-08-14 17:11 UTC #1
logs / deploy
Result6/14 regressions
Total14
completed8
CORRUPTED_EVENT_LOG0
USER_ERROR0
RUNTIME_ERROR0
stuck6
other0
infra0
Config14 runs / step-storm 6, hook-storm 6, hook-sleep 2 / c8 / 6x8
Timingwatchdog 2500ms / step 2200±250ms / stagger 400ms / poke 750ms / timeout 240000ms

Latest Scenario Breakdown

ScenarioTotalcompletedCORRUPTED_EVENT_LOGUSER_ERRORRUNTIME_ERRORstuckotherinfra
step-storm60000600
hook-storm66000000
hook-sleep22000000

Latest Non-Completed Runs

ScenarioAttemptOutcomeStatusError codeRun
step-storm3stuckrunningwrun_01M00KPP7ZTZ9H8M4VE3YC55RB
step-storm1stuckrunningwrun_01M00KPP7ZTZ9H8M4VE3YC55RG
step-storm2stuckrunningwrun_01M00KPP7ZTZ9H8M4VE3YC55RD
step-storm6stuckrunningwrun_01M00KPP7ZTZ9H8M4VE3YC55RF
step-storm5stuckrunningwrun_01M00KPP7ZTZ9H8M4VE3YC55RE
step-storm4stuckrunningwrun_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

Metric2026-08-14 17:11 UTC #1
logs / deploy
Result6/14 regressions
Total14
completed8
CORRUPTED_EVENT_LOG1
USER_ERROR0
RUNTIME_ERROR0
stuck5
other0
infra0
Config14 runs / step-storm 6, hook-storm 6, hook-sleep 2 / c8 / 6x8
Timingwatchdog 2500ms / step 2200±250ms / stagger 400ms / poke 750ms / timeout 240000ms

Latest Scenario Breakdown

ScenarioTotalcompletedCORRUPTED_EVENT_LOGUSER_ERRORRUNTIME_ERRORstuckotherinfra
step-storm60100500
hook-storm66000000
hook-sleep22000000

Latest Non-Completed Runs

ScenarioAttemptOutcomeStatusError codeRun
step-storm1CORRUPTED_EVENT_LOGfailedCORRUPTED_EVENT_LOGwrun_01M00KPFDPTE4QJ6P5CY3YGNGW
step-storm6stuckrunningwrun_01M00KPFDQ84E3CCNF72DK6VNB
step-storm4stuckrunningwrun_01M00KPFDJVB0J6R07RCM2MS5K
step-storm5stuckrunningwrun_01M00KPFDM4MWEJ04RT097MFWJ
step-storm3stuckrunningwrun_01M00KPFDHM3Y5RTB1MWJYHBNP
step-storm2stuckrunningwrun_01M00KPFD6RMRWBC46YBV37W9B

@VaguelySerious
VaguelySerious merged commit de2a86c into mainAug 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 freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

event-log-race-reproRun the event log race reproduction job

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@VaguelySerious@pranaygp