Skip to content

[world] Expose capabilities in deployment health checks - #3425

Open
NathanColosimo wants to merge 1 commit into
mainfrom
codex/atomic-start-capabilities
Open

[world] Expose capabilities in deployment health checks#3425
NathanColosimo wants to merge 1 commit into
mainfrom
codex/atomic-start-capabilities

Conversation

@NathanColosimo

@NathanColosimo NathanColosimo commented Aug 10, 2026

Copy link
Copy Markdown
Contributor

Summary

  • define WorldCapabilitiesSchema with Zod and infer WorldCapabilities from it
  • return a World's capabilities from queue-based health checks
  • keep the direct HTTP health probe lightweight and independent of World initialization
  • preserve compatibility with older and malformed health responses by treating missing or invalid capabilities as unsupported

This gives start() one capability shape for both the current World and a target deployment's World.

Stack

  1. [world] Expose capabilities in deployment health checks #3425 — World capabilities in health checks
  2. [core] Add atomic start Hook admission #3426 — Atomic start Hook admission

Testing

  • pnpm --filter @workflow/world build
  • pnpm --filter @workflow/core build
  • pnpm --filter @workflow/core exec vitest run src/runtime/helpers.test.ts
  • targeted local E2E for the direct HTTP health endpoint

@changeset-bot

changeset-bot Bot commented Aug 10, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 459e34b

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

This PR includes changesets to release 20 packages
Name Type
@workflow/core Minor
@workflow/world Minor
workflow Minor
@workflow/builders Patch
@workflow/cli Patch
@workflow/next Patch
@workflow/nitro Patch
@workflow/vitest Patch
@workflow/web-shared Patch
@workflow/web Patch
@workflow/world-testing Patch
@workflow/world-local Patch
@workflow/world-postgres Patch
@workflow/world-vercel 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 10, 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 11, 2026 9:45pm
example-nextjs-workflow-webpack Ready Ready Preview Aug 11, 2026 9:45pm
example-workflow Ready Ready Preview Aug 11, 2026 9:45pm
workbench-astro-workflow Ready Ready Preview Aug 11, 2026 9:45pm
workbench-express-workflow Ready Ready Preview Aug 11, 2026 9:45pm
workbench-fastify-workflow Ready Ready Preview Aug 11, 2026 9:45pm
workbench-hono-workflow Ready Ready Preview Aug 11, 2026 9:45pm
workbench-nestjs-workflow Ready Ready Preview Aug 11, 2026 9:45pm
workbench-nitro-workflow Ready Ready Preview Aug 11, 2026 9:45pm
workbench-nuxt-workflow Ready Ready Preview Aug 11, 2026 9:45pm
workbench-python-workflow Error Error Aug 11, 2026 9:45pm
workbench-sveltekit-workflow Ready Ready Preview Aug 11, 2026 9:45pm
workbench-tanstack-start-workflow Ready Ready Preview Aug 11, 2026 9:45pm
workbench-vite-workflow Ready Ready Preview Aug 11, 2026 9:45pm
workflow-docs Ready Ready Preview, v0 Aug 11, 2026 9:45pm
workflow-swc-playground Ready Ready Preview Aug 11, 2026 9:45pm
workflow-tarballs Ready Ready Preview Aug 11, 2026 9:45pm
workflow-web Ready Ready Preview Aug 11, 2026 9:45pm

@github-actions

github-actions Bot commented Aug 10, 2026

Copy link
Copy Markdown
Contributor

📊 Workflow Benchmarks

commit 459e34b · Tue, 11 Aug 2026 21:59:28 GMT · run logs

Backend: vercel · app: nextjs-turbopack

Metric Scenario Best (ms) P75 (ms) P90 (ms) P99 (ms) Samples
TTFS step 1078 (+234%) 🔻 1341 🔴 (+27%) 🔻 1363 🔴 (+22%) 🔻 1459 🔴 (+4.4%) 30
TTFS stream 1270 (+699%) 🔻 1328 🔴 (+23%) 🔻 1343 🔴 (+23%) 🔻 1381 🔴 (+12%) 30
TTFS hook + stream 496 (-63%) 💚 1695 🔴 (+16%) 🔻 1734 🔴 (+16%) 🔻 2375 🔴 (+51%) 🔻 30
STSO 1020 steps (inline) 122 (-3.9%) 169 (-11%) 192 (-11%) 501 (+18%) 🔻 1019
WO 1020 steps 179029 (-2.8%) 179029 (-2.8%) 179029 (-2.8%) 179029 (-2.8%) 1
SL stream latency 82 (-5.7%) 109 🔴 (-14%) 117 🔴 (-15%) 147 🔴 (-70%) 💚 30
SO stream overhead (text) 105 (-2.8%) 152 (-24%) 💚 174 (-44%) 💚 353 (-26%) 💚 30
SO stream overhead (structured) 112 (+4.7%) 150 (-15%) 💚 161 (-33%) 💚 285 (-35%) 💚 30
📈 STSO distribution vs main (inline / queue-hop histograms)

1020 steps (inline)

Cumulative STSO time: main 183209ms → this run 177685ms (Δ -5524ms, -3%)

  100-150 ms  ██████░░░░░░░┃            main 168  this 393  +225
  150-200 ms  ██████████████████┃█████  main 675  this 545  -130
  200-250 ms  █┃███                     main 129  this  54   -75
  250-300 ms  ┃                         main  23  this   9   -14
  300-350 ms  ┃                         main   8  this   2    -6
  350-400 ms  ┃                         main   3  this   2    -1
  400-450 ms  ┃                         main   5  this   2    -3
  450-500 ms  ┃                         main   3  this   1    -2
  500-550 ms  ┃                         main   1  this   3    +2
  550-600 ms  ┃                         main   0  this   3    +3
  650-700 ms  ┃                         main   1  this   0    -1
  800-850 ms  ┃                         main   1  this   0    -1
  850-900 ms  ┃                         main   1  this   1    +0
  900-950 ms  ┃                         main   1  this   0    -1
 950-1000 ms  ┃                         main   0  this   1    +1
1200-1250 ms  ┃                         main   0  this   1    +1
4150-4200 ms  ┃                         main   0  this   1    +1
4250-4300 ms  ┃                         main   0  this   1    +1
📜 Previous results (4)

30d3802

Mon, 10 Aug 2026 23:58:42 GMT · run logs

vercel / nextjs-turbopack

Metric Scenario Best (ms) P75 (ms) P90 (ms) P99 (ms) Samples
TTFS step 1337 (+59%) 🔻 1439 🔴 (+30%) 🔻 1463 🔴 (+28%) 🔻 1574 🔴 (+34%) 🔻 30
TTFS stream 1340 (+547%) 🔻 1395 🔴 (+27%) 🔻 1429 🔴 (+29%) 🔻 1565 🔴 (+35%) 🔻 30
TTFS hook + stream 1378 (+10.0%) 1677 🔴 (+21%) 🔻 1717 🔴 (+20%) 🔻 1932 🔴 (+25%) 🔻 30
STSO 1020 steps (inline) 102 (+1.0%) 144 (-2.7%) 172 (+1.2%) 367 (+22%) 🔻 1019
WO 1020 steps 144782 (+2.1%) 144782 (+2.1%) 144782 (+2.1%) 144782 (+2.1%) 1
SL stream latency 106 (+22%) 🔻 143 🔴 (+27%) 🔻 211 🔴 (+69%) 🔻 395 🔴 (+178%) 🔻 30
SO stream overhead (text) 125 (+14%) 223 (+19%) 🔻 272 (+28%) 🔻 1104 🔴 (+362%) 🔻 30
SO stream overhead (structured) 124 (+12%) 261 🔴 (+61%) 🔻 488 (+164%) 🔻 770 (+213%) 🔻 30

7084900

Mon, 10 Aug 2026 23:16:58 GMT · run logs

vercel / nextjs-turbopack

Metric Scenario Best (ms) P75 (ms) P90 (ms) P99 (ms) Samples
TTFS step 293 (-13%) 1425 🔴 (+27%) 🔻 1475 🔴 (+29%) 🔻 1722 🔴 (+13%) 30
TTFS stream 224 (-78%) 💚 1404 🔴 (+34%) 🔻 1463 🔴 (+39%) 🔻 1765 🔴 (+63%) 🔻 30
TTFS hook + stream 358 (-72%) 💚 1694 🔴 (+22%) 🔻 1852 🔴 (+26%) 🔻 2020 🔴 (+20%) 🔻 30
STSO 1020 steps (inline) 85 (-11%) 157 (+4.0%) 186 (+3.3%) 323 (-9.0%) 1019
WO 1020 steps 156230 (+5.5%) 156230 (+5.5%) 156230 (+5.5%) 156230 (+5.5%) 1
SL stream latency 99 (+15%) 🔻 195 🔴 (+50%) 🔻 239 🔴 (+37%) 🔻 380 🔴 (+75%) 🔻 30
SO stream overhead (text) 137 (+49%) 🔻 211 (+13%) 235 (+9.8%) 900 (+259%) 🔻 30
SO stream overhead (structured) 143 (+39%) 🔻 238 (+52%) 🔻 465 (+141%) 🔻 1133 🔴 (+368%) 🔻 30

a6f6825

Mon, 10 Aug 2026 21:45:10 GMT · run logs

vercel / nextjs-turbopack

Metric Scenario Best (ms) P75 (ms) P90 (ms) P99 (ms) Samples
TTFS step 251 (+21%) 🔻 1422 🔴 (+31%) 🔻 1455 🔴 (+29%) 🔻 1613 🔴 (±0%) 30
TTFS stream 222 (+16%) 🔻 1434 🔴 (+33%) 🔻 1482 🔴 (+35%) 🔻 1539 🔴 (+38%) 🔻 30
TTFS hook + stream 418 (-55%) 💚 1680 🔴 (+23%) 🔻 1705 🔴 (+16%) 🔻 1888 🔴 (+24%) 🔻 30
STSO 1020 steps (inline) 101 (+31%) 🔻 150 (+2.0%) 174 (-1.7%) 268 (-46%) 💚 1019
WO 1020 steps 145990 (-4.9%) 145990 (-4.9%) 145990 (-4.9%) 145990 (-4.9%) 1
SL stream latency 92 (+7.0%) 150 🔴 (+2.0%) 184 🔴 (+14%) 344 🔴 (+14%) 30
SO stream overhead (text) 117 (-5.6%) 218 (-19%) 💚 248 (-24%) 💚 395 (-76%) 💚 30
SO stream overhead (structured) 134 (+22%) 🔻 295 🔴 (+5.0%) 439 (-52%) 💚 906 (-55%) 💚 30

984728e

Mon, 10 Aug 2026 21:02:51 GMT · run logs

vercel / nextjs-turbopack

Metric Scenario Best (ms) P75 (ms) P90 (ms) P99 (ms) Samples
TTFS step 257 (-74%) 💚 1387 🔴 (+15%) 🔻 1407 🔴 (+13%) 1666 🔴 (+25%) 🔻 30
TTFS stream 230 (-11%) 1472 🔴 (+30%) 🔻 1515 🔴 (+27%) 🔻 1946 🔴 (+40%) 🔻 30
TTFS hook + stream 361 (-16%) 💚 1648 🔴 (+9.1%) 1729 🔴 (+5.7%) 2028 🔴 (-4.1%) 30
STSO 1020 steps (inline) 107 (+16%) 🔻 169 (+3.0%) 208 (+8.3%) 397 (-7.7%) 1019
WO 1020 steps 167752 (+5.0%) 167752 (+5.0%) 167752 (+5.0%) 167752 (+5.0%) 1
SL stream latency 108 (-3.6%) 172 🔴 (-9.0%) 240 🔴 (-45%) 💚 500 🔴 (-14%) 30
SO stream overhead (text) 130 (-5.1%) 327 🔴 (+37%) 🔻 735 🔴 (+98%) 🔻 1605 🔴 (+27%) 🔻 30
SO stream overhead (structured) 140 (-7.9%) 313 🔴 (+20%) 🔻 390 (+3.2%) 673 (-2.2%) 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) · 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 · 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. 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 10, 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 3810 0 558 4368
✅ 📦 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 15235 0 2264 17499
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-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 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

@NathanColosimo NathanColosimo changed the title feat(world): expose capabilities in health checks [world] Expose capabilities in deployment health checks Aug 10, 2026
Comment thread packages/core/src/runtime/helpers.ts Outdated
@NathanColosimo
NathanColosimo force-pushed the codex/atomic-start-capabilities branch from 681274e to 78b2b1e Compare August 10, 2026 22:47
Comment thread packages/world/src/capabilities.ts Outdated

@TooTallNate TooTallNate left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Reviewed at 7084900. The direction is right — one capability shape for the local World and a probed target, Zod-inferred instead of hand-rolled parsing — and the suite is green as written. But the strictness semantics are a forward-compatibility trap that will fire on the very next capability addition, and I verified it experimentally.

The problem: .strict() turns "newer peer" into "unhealthy peer".

WorldCapabilitiesSchema is .strict(), and parseHealthCheckResponse does safeParse(response)null on failure. I built the branch and ran the exact scenario:

capabilities: { hookRetention: { active: true }, slotEventIds: true }
→ safeParse success: false ("Unrecognized key: slotEventIds")
→ WHOLE RESPONSE DISCARDED (healthy / specVersion / encryptionPublicKey / hookResumeInputVersion all lost)

slotEventIds isn't hypothetical — #3389 (approved, in flight) adds exactly that field, and every world it touches will declare it. The moment both PRs are in, any deployment on the newer world reads as healthy: false ("timed out") to any prober on this build. Since routine deploys create SDK version skew between live deployments, this fires in normal operation: cross-deployment start() silently degrades to the legacy wire format, loses compression, loses the sealed-args key preload, and closes the parallel-resume gate — against a perfectly healthy target. The rejects invalid World capabilities test currently encodes this failure mode as correct.

There's also a tolerance regression on the other fields: the old parser kept healthy: true and skipped a malformed optional field (specVersion: "not-a-number"); the new safeParse discards the whole response (verified). And the PR description says "treating missing or invalid capabilities as unsupported" — the code treats them as unhealthy, which is a different and much worse thing.

Requested changes:

  1. Drop .strict() from WorldCapabilitiesSchema and the inner hookRetention object. Zod's default strip semantics give exactly the behavior the description promises: unknown capability fields are ignored (fail-closed per capability), and a newer responder parses clean.
  2. Make capabilities unable to sink the response: capabilities: WorldCapabilitiesSchema.catch(undefined).optional() (or equivalent) so even a genuinely malformed capabilities object degrades to "unsupported" while healthy/encryptionPublicKey/versions survive. Consider the same per-field .catch(undefined) for the other optionals to restore the old parser's field-level tolerance — the probe is an optimization and should never manufacture failure.
  3. Update the tests to encode tolerance: unknown capability key → known capabilities still surfaced; malformed optional field → field omitted, healthy kept. (The current rejects … tests assert the trap.)
  4. Coordinate with #3389: it adds slotEventIds to the interface this PR deletes from interfaces.ts — whichever lands second must add the field to the schema, and the merge is a semantic conflict, not a textual one, in one direction.

Non-blocking:

  • The schema's doc comments are solid but noticeably abbreviated from the interface's (the hookResumeDedup per-lookup-attestation note and the fuller deploymentAffinity rationale didn't survive). Worth carrying the operational detail over — the schema is now the only home those docs have.
  • Changeset (minor across core/world/workflow) is right for the new export.

The refactor itself is good and #3426 presumably needs it — with strip-plus-catch semantics this becomes a clean approve.

@github-actions

Copy link
Copy Markdown
Contributor

Sim World

Simulated world deterministic testing for races. Traces

🟠 Mint-ordered log — 6 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 17 1.0m MISMATCH 1
stale-read-equal-step-counts completed 14 1.0m MISMATCH 1
step-vs-step-fork completed 12 0ms MISMATCH 1
step-vs-step-fork-fenced completed 12 0ms MISMATCH 1
fence-catches-benign-direction completed 12 5ms ok 0
in-flight-before-decision completed 17 1.0m MISMATCH 1
in-flight-before-decision-counted completed 20 1.0m ok 0
in-flight-after-decision failed 14 2.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

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.

3 participants