Skip to content

feat(alien-signals): add Octane bindings - #429

Closed
jonkwheeler wants to merge 71 commits into
octanejs:mainfrom
jonkwheeler:jon/alien-signals-binding
Closed

jonkwheeler wants to merge 71 commits into
octanejs:mainfrom
jonkwheeler:jon/alien-signals-binding

Conversation

@jonkwheeler

@jonkwheeler jonkwheeler commented Jul 30, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Octane users can now consume Alien Signals through a first-party React binding with signal creation, computed values, effects, scopes, subscription hooks, SSR safety, and hydration support.

The binding targets [email protected] directly; dependency analysis found no prerequisite binding migrations. It follows the repository’s established binding architecture, including manual slot/subslot invalidation, stable hook identities, post-commit effect and scope lifecycles, MCP discovery, generated package inventories, and package-pack coverage.

The central playground now includes an Alien Signals demo that exercises writable and computed signals plus scoped effects, so the integration is represented in the same runtime catalog as the other bindings.

Validation

  • Alien Signals runtime and SSR projects: 5 files, 12 tests passed
  • Package typecheck passed
  • SSR, hydration, cleanup, pre-commit cancellation, and callback-replacement lifecycle cases passed
  • MCP bridge: 2 files, 38 tests passed
  • Package-pack canaries: 10 tests passed
  • Generated package, status, parity-gap, CLI, and eval-corpus inventories are current
  • Vendored upstream source, tests, and license match the pinned checksums
  • Global React parity audit passed
  • Playground production build passed before the main-branch refresh; the latest full catalog build remains delegated to clean-install CI because this worktree borrows a stale dependency tree

Note

Medium Risk
New reactive binding with documented lifecycle/type divergences (useSignalScope, useSignalValue), but scope is isolated to signal subscriptions and covered by upstream-adapted, SSR, and hydration tests rather than security-critical paths.

Overview
Introduces @octanejs/alien-signals, a first-party port of [email protected] on top of unchanged [email protected], exposing the full hook/helper surface (createSignal, useSignal, useComputed, useSignalEffect, useSignalScope, etc.) with Octane subscriptions and lifecycle ownership instead of React.

The implementation wires reads through useSyncExternalStore, defers useSignalEffect / useSignalScope to post-commit, and documents two intentional divergences: useSignalValue accepts any ReadableSignal (including computed), and useSignalScope returns a cancellation-safe stop handle that can abort before commit.

Repo integration adds vendored upstream sources, react-parity audit lanes (pristine bun suite, adapted Vitest/TSRX fixtures, type probes), SSR/hydration/Octane contract tests, generated binding status and package inventory (61 bindings), CLI react-alien-signals alias data, a changeset for @octanejs/mcp-server, and a central playground Alien Signals demo.

Reviewed by Cursor Bugbot for commit 968045c. Bugbot is set up for automated code reviews on this repo. Configure here.

Provenance

  • An agent produced this diff (agent-authored)

@vercel

vercel Bot commented Jul 30, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
octane-website Ready Ready Preview Aug 2, 2026 7:01am
octane-website-mcp Ready Ready Preview Aug 2, 2026 7:01am

Request Review

@vercel
vercel Bot temporarily deployed to Preview – octane-website-mcp July 30, 2026 18:45 Inactive
@vercel
vercel Bot temporarily deployed to Preview – octane-website July 30, 2026 18:45 Inactive
@vercel
vercel Bot temporarily deployed to Preview – octane-website-mcp July 30, 2026 18:49 Inactive
@vercel
vercel Bot temporarily deployed to Preview – octane-website July 30, 2026 18:50 Inactive
Comment thread packages/alien-signals/src/index.ts Resolved
@vercel
vercel Bot temporarily deployed to Preview – octane-website-mcp July 30, 2026 19:59 Inactive
@vercel
vercel Bot temporarily deployed to Preview – octane-website July 30, 2026 20:00 Inactive
@vercel
vercel Bot temporarily deployed to Preview – octane-website-mcp July 30, 2026 20:23 Inactive
@vercel
vercel Bot temporarily deployed to Preview – octane-website July 30, 2026 20:24 Inactive
@vercel
vercel Bot temporarily deployed to Preview – octane-website-mcp July 30, 2026 20:28 Inactive
@vercel
vercel Bot temporarily deployed to Preview – octane-website July 30, 2026 20:28 Inactive
Comment thread packages/alien-signals/src/index.ts Resolved
@vercel
vercel Bot temporarily deployed to Preview – octane-website-mcp July 30, 2026 20:42 Inactive
@vercel
vercel Bot temporarily deployed to Preview – octane-website July 30, 2026 20:43 Inactive
@vercel
vercel Bot temporarily deployed to Preview – octane-website-mcp July 30, 2026 21:03 Inactive
@vercel
vercel Bot temporarily deployed to Preview – octane-website July 30, 2026 21:03 Inactive
jonkwheeler added a commit to jonkwheeler/octane that referenced this pull request Jul 30, 2026
@vercel
vercel Bot temporarily deployed to Preview – octane-website-mcp July 30, 2026 21:38 Inactive
@vercel
vercel Bot temporarily deployed to Preview – octane-website July 30, 2026 21:38 Inactive
Port react-alien-signals over the framework-neutral core with Octane-native hook slots, lifecycle ownership, SSR/hydration coverage, and a central playground demo. Register the package across release, CLI, MCP, compatibility, and packed-consumer surfaces.
@jonkwheeler
jonkwheeler force-pushed the jon/alien-signals-binding branch from 476f474 to 472496f Compare August 2, 2026 06:59
@vercel
vercel Bot temporarily deployed to Preview – octane-website-mcp August 2, 2026 07:00 Inactive
@vercel
vercel Bot temporarily deployed to Preview – octane-website August 2, 2026 07:01 Inactive
@github-actions github-actions Bot added agent-authored Diff or issue body substantially produced by an AI agent feat PR: new feature or capability labels Aug 2, 2026
@jonkwheeler

Copy link
Copy Markdown
Contributor Author

Branch is behind main again; updated onto latest main via update-branch. Re-validating ready checklist (Bugbot on new head).

REVIEW WITHDRAWN

Reject local no-op act shadows that previously padded hook-surface
transitions the same way shadowed Promise.resolve did.

Co-authored-by: Cursor <[email protected]>

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.

Fix All in Cursor

Bugbot Autofix is ON, but it could not run because the branch was deleted or merged before autofix could start.

Reviewed by Cursor Bugbot for commit 3e4ee3b. Configure here.

Only `import { act }` from known modules authenticates; default,
namespace, and renamed imports such as `cleanup as act` do not.

Co-authored-by: Cursor <[email protected]>
@jonkwheeler

Copy link
Copy Markdown
Contributor Author

Addressed post-currency Bugbot findings on act authentication (local no-op shadows, then exact named-import-only). Branch updated onto main; Bugbot SUCCESS on current head; no unresolved threads; merge CLEAN. Still draft.

@jonkwheeler

Copy link
Copy Markdown
Contributor Author

READY FOR REVIEW

@jonkwheeler

Copy link
Copy Markdown
Contributor Author

READY FOR REVIEW

@jonkwheeler

Copy link
Copy Markdown
Contributor Author

Branch updated onto latest main via update-branch. Bugbot completed cleanly on the new head with no unresolved findings; merge state is CLEAN.

READY FOR REVIEW

@jonkwheeler

Copy link
Copy Markdown
Contributor Author

REVIEW WITHDRAWN

Merged origin/main to clear DIRTY conflicts; prior ready pass is void until Bugbot finishes on the new head.

@jonkwheeler

Copy link
Copy Markdown
Contributor Author

READY FOR REVIEW

@jonkwheeler

Copy link
Copy Markdown
Contributor Author

REVIEW WITHDRAWN

Merged origin/main to clear DIRTY conflicts; prior ready pass is void until Bugbot finishes on the new head and the ready checklist passes again.

@jonkwheeler

Copy link
Copy Markdown
Contributor Author

READY FOR REVIEW

@jonkwheeler

Copy link
Copy Markdown
Contributor Author

REVIEW WITHDRAWN

Merged origin/main to clear DIRTY conflicts; prior ready pass is void until Bugbot finishes on the new head.

Resolve sync conflicts via pnpm sync after Version Packages (octanejs#682) landed on main.

Co-authored-by: Cursor <[email protected]>
@jonkwheeler

Copy link
Copy Markdown
Contributor Author

Merged origin/main (Version Packages #682); sync conflicts resolved via pnpm sync. Bugbot SUCCESS on current head; merge CLEAN; no unresolved threads. Still draft.

READY FOR REVIEW

@jonkwheeler

Copy link
Copy Markdown
Contributor Author

Branch is behind main again; updating onto latest main via update-branch. Re-validating ready checklist (Bugbot on new head).

REVIEW WITHDRAWN

@jonkwheeler

Copy link
Copy Markdown
Contributor Author

Currency pass complete: branch updated onto main via update-branch, Bugbot SUCCESS on current head, no unresolved threads, merge state CLEAN. Still draft.

READY FOR REVIEW

@leonidaz

Copy link
Copy Markdown
Collaborator

Thank you for your contribution! This pull request was incorporated into main as commit 371d9f9c2936 through consolidated PR #699.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agent-authored Diff or issue body substantially produced by an AI agent feat PR: new feature or capability READY FOR REVIEW REVIEW COMPLETE

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants