Skip to content

πŸ—οΈ refactor(runtime): adopt Effect v4 for the next v5 alpha - #3390

Draft
smashah wants to merge 7 commits into
masterfrom
agent/effect-v4-alpha
Draft

πŸ—οΈ refactor(runtime): adopt Effect v4 for the next v5 alpha#3390
smashah wants to merge 7 commits into
masterfrom
agent/effect-v4-alpha

Conversation

@smashah

@smashah smashah commented Jul 22, 2026

Copy link
Copy Markdown
Member

What changed

  • Adopt Effect v4 as the v5 capability kernel, with runtime-specific browser, Node, Bun, and edge adapters.
  • Add scoped browser/session resource management, capability-enforced chat sandboxes, supervised plugin services, durable webhook delivery, and parallel startup work.
  • Replace PQueue paths with measured Effect-backed concurrency primitives and add observability, benchmarks, and contract evidence.
  • Move source imports to extensionless TypeScript paths and upgrade the workspace toolchain, including TypeScript 7 and pnpm 11.15.1.
  • Make clean-checkout validation deterministic and add a Changesets entry for the next v5 alpha.

Why

This implements the Effect v4 architecture explored in #3385 while the v5 API is still intentionally negotiable. It gives each supported runtime an explicit capability boundary, improves browser-session cleanup and memory control, and lets independent startup work such as patch and license preloads run concurrently.

Release impact

  • The repository stays in the existing alpha prerelease mode.
  • The new runtime adapter packages join the fixed v5 release group.
  • After merge, the normal master to release promotion can publish the next alpha after v5.0.0-alpha.8.

Validation

  • pnpm install --frozen-lockfile on Node 22.22.2 / pnpm 11.15.1
  • pnpm test β€” 64/64 Turbo tasks passed, including docs build and prerender
  • pnpm typecheck β€” 16/16 tasks passed
  • pnpm lint
  • pnpm check:effect-contracts
  • pnpm changeset status
  • git diff --check

The startup benchmark measured about 2.07x speedup for one session and 6.25x for three concurrent sessions.

@coderabbitai

coderabbitai Bot commented Jul 22, 2026

Copy link
Copy Markdown

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

βš™οΈ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 4771cb49-994e-48a9-a38e-83ba9a4660b2

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • πŸ” Trigger review
✨ Finishing Touches
πŸ§ͺ Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch agent/effect-v4-alpha

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❀️ Share

Comment @coderabbitai help to get the list of available commands.

@smashah smashah added the bump:minor Release workflow: minor version bump label Jul 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bump:minor Release workflow: minor version bump

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant