Skip to content

feat: add the portable Rust SQLite World - #4046

Draft
fantix wants to merge 20 commits into
vercel:mainfrom
fantix:feat/rust-world-portability
Draft

fantix wants to merge 20 commits into
vercel:mainfrom
fantix:feat/rust-world-portability

Conversation

@fantix

@fantix fantix commented Sep 9, 2026 •

Copy link
Copy Markdown
Member

Summary

  • complete the experimental, opt-in portable local World through Phase 2: the language-neutral protocol/planner, transactional SQLite materialization, Hooks, waits, attributes, resume deduplication, durable streams, terminal polling, and database-local cleanup
  • add a shared bounded Rust engine, leased/recoverable loopback queue workers, full Node-API bindings, exact native package identity checks, and explicit read-only inspection
  • integrate isolated SQLite pools into @workflow/vitest, aggregate local databases for CLI/web observability, and wire the staged Next.js workbench host
  • add an advisory Linux/Node 22 no-Rust consumer E2E lane plus a report-only SQLite event-log-race lane

Validation

  • cargo test --workspace --all-targets --locked
  • strict rust-world CI Clippy package set with -D warnings
  • affected package tests, builds, and typechecks; full web production build; pnpm lint; changeset validation; lat check
  • fresh local packed consumer with cargo and rustc disabled: addon load, schema migration, Next.js production build/start, then 5/5 focused E2E (instance methods, streams, Hook resume, sleep, webhook)
  • GitHub Rust World matrix: 12/12 jobs passed across Rust 1.88/stable; Node 22/24 on Linux glibc 2.28, macOS arm64, and Windows x64; Python probes on all three OS families
  • GitHub portable SQLite lane: 158 passed, 2 known advisory failures, 1 skipped in 254.65s; packaged no-Rust migration/build/start succeeded and diagnostics were uploaded

Known advisory gaps

The SQLite E2E job is intentionally continue-on-error and excluded from the required gate. Its two current failures are exact-queue-policy cases whose queue names are deliberately not advertised: .well-known/agent and the synthetic nonexistent-workflow negative case. Results still appear in the aggregate summary.

The package remains private and experimental and does not replace @workflow/world-local. The newly merged experimental run-payload retention option is accepted but retained rather than purged by SQLite; the backend does not claim retention-expiry support yet.

@changeset-bot

changeset-bot Bot commented Sep 9, 2026 •

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: fe3197e

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

This PR includes changesets to release 24 packages
Name Type
@workflow/builders Patch
@workflow/cli Minor
@workflow/utils Minor
@workflow/web Minor
@workflow/world Minor
@workflow/world-testing Patch
@workflow/vitest Minor
@workflow/astro Patch
@workflow/nest Patch
@workflow/next Patch
@workflow/nitro Patch
@workflow/rollup Patch
@workflow/sveltekit Patch
@workflow/vite Patch
workflow Patch
@workflow/ai Patch
@workflow/core Patch
@workflow/errors Patch
@workflow/web-shared Minor
@workflow/world-local Patch
@workflow/world-postgres Patch
@workflow/world-sqlite Patch
@workflow/world-vercel 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 Sep 9, 2026

Copy link
Copy Markdown
Contributor

@fantix is attempting to deploy a commit to the Vercel Labs Team on Vercel.

A member of the Team first needs to authorize it.

@socket-security

socket-security Bot commented Sep 9, 2026 •

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Addedcargo/​pyo3-build-config@​0.27.27910093100100
Addedcargo/​napi@​3.12.28210093100100
Addedcargo/​pyo3@​0.27.28283100100100
Addedcargo/​clap@​4.5.609910093100100
Addedcargo/​minicbor@​2.3.010010093100100
Addedcargo/​napi-build@​2.4.19810093100100
Addedcargo/​napi-derive@​3.6.39910093100100
Addedcargo/​rusqlite@​0.40.210010093100100

View full report

@socket-security

socket-security Bot commented Sep 9, 2026 •

Copy link
Copy Markdown

Warning

Review the following alerts detected in dependencies.

According to your organization's Security Policy, it is recommended to resolve "Warn" alerts. Learn more about Socket for GitHub.

Action Severity Alert  (click "▶" to expand/collapse)
Warn High
High CVE: PyO3 has an Out-of-bounds Read in nth / `nth_back` for `PyList` and `PyTuple` iterators

CVE: GHSA-36hh-v3qg-5jq4 PyO3 has an Out-of-bounds Read in nth / nth_back for PyList and PyTuple iterators (HIGH)

Affected versions: < 0.29.0

Patched version: 0.29.0

From: Cargo.lock → cargo/pyo3@0.27.2

ℹ Read more on: This package | This alert | What is a CVE?

Next steps: Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at support@socket.dev.

Suggestion: Remove or replace dependencies that include known high severity CVEs. Consumers can use dependency overrides or npm audit fix --force to remove vulnerable dependencies.

Mark the package as acceptable risk. To ignore this alert only in this pull request, reply with the comment @SocketSecurity ignore cargo/pyo3@0.27.2. You can also ignore all packages with @SocketSecurity ignore-all. To ignore an alert for all future pull requests, use Socket's Dashboard to change the triage state of this alert.

View full report

This branch has not been deployed

No deployments
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.

1 participant