feat(world-vercel): queue-first start-hook admission#2765
Draft
NathanColosimo wants to merge 1 commit into
Draft
feat(world-vercel): queue-first start-hook admission#2765NathanColosimo wants to merge 1 commit into
NathanColosimo wants to merge 1 commit into
Conversation
Contributor
🦋 Changeset detectedLatest commit: 0216f7f The changes in this PR will be included in the next version bump. This PR includes changesets to release 17 packages
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 |
Contributor
🧪 E2E Test Results✅ All tests passed Summary
Details by Category✅ ▲ Vercel Production
✅ 💻 Local Development
✅ 📦 Local Production
✅ 🐘 Local Postgres
✅ 🪟 Windows
✅ 📋 Other
|
This was referenced Jul 2, 2026
7e74614 to
4d6e0e8
Compare
d5b2a73 to
17d3b9c
Compare
84e800b to
306be29
Compare
f85a345 to
85f81d2
Compare
Advertises queue-first experimentalStartHookAdmission (TTL capped at 30 days, tokens at 255 bytes) and classifies 409 hook_conflict responses as HookConflictError in the shared errorForResponse, so the v3 and v4 request paths map it identically. Atomic admission itself is implemented server-side (workflow-server).
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.
Stack 4/4 · #2762 → #2763 → #2764 → this PR · Server counterpart: vercel/workflow-server#561
Enables queue-first start-hook admission for
@workflow/world-vercel.experimentalStartHookAdmission: { mode: 'queue-first', maxTtlSeconds: 30d, maxTokenBytes: 255 }—start()(PR 1) enforces the caps client-side before queueing.409+code: 'hook_conflict'responses asHookConflictError(token +conflictingRunId) inside the sharederrorForResponse, so the v3 (makeRequest) and v4 request paths map it identically.run_created+ token claim + idempotency guard in one transaction, same-run retry short-circuit, stale-claim reclaim, retention — is server-side. A queued run that loses its claim is acknowledged without running user code (runtime handling from PR 1, gated by theexperimentalStartHookLoserAckcapability).