feat(eve): add authenticated session hard delete - #1213
Draft
0xKoller wants to merge 1 commit into
Draft
Conversation
Add a built-in-JWT-only maintenance route that permanently purges an eve session and its Workflow run tree. Gate deletion on the provider-advertised runTreePurge capability and retain retryable conflicts for active trees. Signed-off-by: Koller <joseluiskoller98@gmail.com>
Contributor
|
@0xKoller is attempting to deploy a commit to the Vercel Team on Vercel. A member of the Team first needs to authorize it. |
| options: { | ||
| descendantAttribute: { key: string; value: string }; | ||
| }, | ||
| ) => Promise<{ purgedRunCount: number; status: "absent" | "purged" }>; |
Contributor
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.
Summary
DELETE /eve/v1/session/:sessionIdmaintenance route$eve.rootdescendants through the provider-advertised WorkflowrunTreePurgecapability204for deleted/absent trees, retryable409for active conflicts, and keep unsupported deployments unavailableRefs #1211.
Depends on vercel/workflow#3115.
Release block
This PR must remain draft and must not be released until the Workflow contract and a real provider implementation are released. In particular, the managed Vercel World cannot advertise
runTreePurgeuntil its separately owned backend atomically fences and purges root-plus-descendant state. The capability check deliberately fails closed.Verification
workflow-runtime.test.ts,eve.test.ts)pnpm --filter eve typecheckpnpm typecheck(32/32 workspace tasks)pnpm buildpnpm lintpnpm guard:invariantspnpm docs:checkgit diff --checkThe full workspace unit suite was also attempted twice. Under concurrent workspace load, unrelated 5-second import/dev-server tests timed out (for example
load-agent-info-data,subagent-emitter, and wildcard-listener normalization); the changed hard-delete suites remained green. CI is the authoritative full-suite run.