Skip to content

Add Lynx Phase 1 native scaffolding - #180

Merged
trueadm merged 3 commits into
mainfrom
codex/lynx-phase-1
Jul 19, 2026
Merged

trueadm merged 3 commits into
mainfrom
codex/lynx-phase-1

Conversation

@trueadm

@trueadm trueadm commented Jul 19, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • split the universal renderer into a host-neutral core, a DOM boundary module, and a new octane/universal/native facade while preserving the existing DOM facade exports
  • add generic renderer validation, explicit host microtask scheduling, renderer-region ownership scoping, and runtime/thread build metadata across compiler and Rspack integrations
  • add private @octanejs/lynx and @octanejs/rspeedy-plugin scaffolds with exact Lynx/Rspeedy pins, renderer-local intrinsics, background/main-thread production builds, and an external packed-consumer canary
  • carry forward the Phase 0 teardown hardening and ship the required upstream Apache-2.0 license for adapted Lynx type declarations
  • keep the private Lynx milestone status out of the public bindings catalog

Scope

This completes the Milestone 1 build/source gate only. Milestone 0 remains blocked on public lifecycle/event hooks and Android/iOS engine evidence. This PR does not add a native root, claim real-device support, or claim Octane .lynx.bundle execution.

Validation

  • pnpm typecheck
  • pnpm test — 1,186 files and 11,367 tests passed
  • pnpm format:check
  • npm run phase0 in packages/lynx/probe — 17 protocol/lifecycle tests plus pinned bundle/evidence audit
  • node packages/octane/scripts/build.mjs
  • node scripts/check-package-packs.mjs — 43 tarballs plus the external DOM/React-free Lynx production graph
  • focused Octane, Rspack, Rspeedy, Lynx, and website-MCP projects
  • Three size benchmark: +1,068 raw bytes (+0.08%), +333–334 gzip bytes (+0.11%), and -13/+403 Brotli bytes across the Octane min/full fixtures; codegen-size output is unchanged

Note

Medium Risk
Touches core universal scheduling and compiler/renderer resolution paths used beyond Lynx; DOM/Three behavior is intended unchanged but the surface area is large. Lynx remains private scaffolding with no production native host yet.

Overview
Milestone 1 Lynx scaffolding — Private @octanejs/lynx and @octanejs/rspeedy-plugin add data-only renderer config for **/*.lynx.tsrx, a facade over octane/universal/native, module-scoped Lynx intrinsics (no global React/DOM JSX pollution), and explicit “not implemented” metadata for root/platform/testing. Runtime-compatibility evidence and dual-thread compile graphs are documented; this is a build/source gate only, not a native preview or .lynx.bundle execution.

Universal runtime & compiler — The universal stack gains a DOM-free native entry, optional scheduleMicrotask when queueMicrotask is absent, and ExperimentalRendererValidationOptions on renderer registry entries (forbidden globals/imports, text parents, host props). Rspack can pick graph-local Octane runtime with distinct cache metadata per universal specialization; project .ts/.js helpers can be validated for renderer-selected files without changing compile ownership.

Phase 0 probe hardening — Background/main transport uses request-correlated acks and a dedicated destroy path with idempotent teardown when PAPI append/remove mutates then throws (__GetParent / __ElementIsEqual); probe tests grow from 12 to 17.

Repo wiring — Changesets patch octane, @octanejs/app-core, and @octanejs/rspack-plugin; root typecheck includes Lynx packages; docs mark Milestone 1 implemented while Milestone 0 device/hook gates stay blocked.

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

@vercel

vercel Bot commented Jul 19, 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, Comment Jul 19, 2026 1:26pm
octane-website-mcp Ready Ready Preview, Comment Jul 19, 2026 1:26pm

Request Review

@vercel
vercel Bot temporarily deployed to Preview – octane-website July 19, 2026 12:35 Inactive
@trueadm
trueadm marked this pull request as ready for review July 19, 2026 12:43
# Conflicts:
#	packages/octane-evals/datasets/train/user-apps-v1/manifest.jsonl
@vercel
vercel Bot temporarily deployed to Preview – octane-website-mcp July 19, 2026 13:25 Inactive
@vercel
vercel Bot temporarily deployed to Preview – octane-website July 19, 2026 13:26 Inactive
@trueadm
trueadm merged commit 9d86d20 into main Jul 19, 2026
22 checks passed
@trueadm
trueadm deleted the codex/lynx-phase-1 branch July 19, 2026 14:17

This branch was previously deployed

2 inactive deployments
Preview – octane-website — 1806d3c7 Deployed Jul 19, 2026 by vercel[bot]
Preview – octane-website-mcp — 1806d3c7 Deployed Jul 19, 2026 by vercel[bot]
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