Skip to content

feat(playground): port the full Doom experience - #509

Closed
jonkwheeler wants to merge 189 commits into
octanejs:mainfrom
jonkwheeler:jon/doom-full-port
Closed

jonkwheeler wants to merge 189 commits into
octanejs:mainfrom
jonkwheeler:jon/doom-full-port

Conversation

@jonkwheeler

@jonkwheeler jonkwheeler commented Aug 2, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • migrate the complete pinned doom-react-three-fiber gameplay contract to the Octane playground
  • stack on the full @octanejs/drei port in feat(drei): port the complete pinned web API #501
  • establish a clean-room oracle boundary because the upstream Doom repository has no declared license

Why

  • prove a complex React Three Fiber game can move to Octane using public Three, Drei, and state APIs
  • keep the definition of playable objective: the complete single-level combat/exploration experience, not a scene viewer or reduced slice

Changes

  • pin the external behavior oracle at b48daeb3f91b8d8175a1d59d6a9c0c6c3b47caa0
  • add an exhaustive behavior, framework-construct, evidence, and asset-provenance ledger
  • add negative controls for missing evidence, duplicate mappings, unclassified constructs, and unlicensed assets
  • wire the clean-room audit into the universal CI lint gate
  • add the complete playable clean-room level: 328 wall cells, five enemies, eleven collectibles, movement, combat, pointer lock, procedural visuals/audio, and safe pause/reset/exit controls
  • add deterministic model tests plus production Vite, SSR, Chromium/SwiftShader WebGL, framebuffer, permission-retry, and repeated-cleanup evidence
  • add asset checksum enforcement and negative controls for missing proof instrumentation

Validation

  • pnpm doom:audit:check
  • pnpm ci:workflow:test — 47/47
  • pnpm run sync immediately before push; no generated drift
  • playground production build (8,957 modules); targeted typecheck is blocked only by pre-existing playground/Lucide diagnostics
  • deterministic Chromium/WebGL gameplay and lifecycle suite — 3/3
  • repository-wide required checks

Risk / follow-ups

  • This is commit-stacked on feat(drei): port the complete pinned web API #501. GitHub cannot use a fork-only PR head as an upstream base branch, so the PR targets main; the duplicate Drei diff disappears when feat(drei): port the complete pinned web API #501 lands and this branch is refreshed.
  • The PR remains draft until Doom is fully playable, every evidence target executes, all checks are green, all feedback is resolved, and the branch is current/conflict-free.
  • No upstream Doom source or assets are vendored, packaged, or fetched in CI. All shipped game visuals and audio are original procedural work with a pinned SHA-256 manifest.
  • Drei Stats, Instance, and Instances run through public binding APIs. The loading indicator is app-owned because Drei Loader consumes client-only renderer progress and cannot participate in the SSR-safe landing graph.

Provenance

  • An agent produced this diff (agent-authored)

Note

Medium Risk
Large new 3D binding surface with extensive CI parity machinery; low runtime risk to existing packages, but merge complexity and the documented View renderer-boundary behavior affect consumers migrating from React Drei.

Overview
Introduces @octanejs/drei as a full Octane binding for the pinned @react-three/[email protected] public web API, with Octane-native implementations, dreiRenderers compiler config, and documentation of the sole intentional divergence: View cannot run from a DOM root or tunnel children through View.Port (inline Canvas views remain supported).

Parity is enforced by generated upstream crosswalk, react-parity lanes (pristine Playwright e2e, adapted Octane browser screenshot, large drei-differential Vitest suite, paired type lanes), hashed runtime-evidence inventories, and guard tests—wired into pnpm react-parity:check with Playwright Chromium install in CI.

Repo metadata and tooling are updated for the 61st binding (generated bindings-status, packages inventory, CLI data, @react-three/drei → @octanejs/drei mapping). CI also adds pnpm doom:audit:check, routes playground/octane/tests/doom through the browser shard, and excludes those specs from the default Vitest shard. .prettierignore skips packages/drei/**/*.tsrx where TSRX Prettier cannot round-trip.

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

@vercel

vercel Bot commented Aug 2, 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 3, 2026 12:26am
octane-website-mcp Ready Ready Preview Aug 3, 2026 12:26am

Request Review

@vercel
vercel Bot temporarily deployed to Preview – octane-website-mcp August 2, 2026 21:07 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
@vercel
vercel Bot temporarily deployed to Preview – octane-website August 2, 2026 21:08 Inactive
Prevent idle/chase steps into the player collision radius so enemies cannot soft-lock player movement.

Co-authored-by: Cursor <[email protected]>
jonkwheeler and others added 2 commits August 10, 2026 12:03
Resolve audit digest and lockfile conflicts mechanically after monaco-editor landed on main; regenerate workspace lockfile so drei stays present.

Co-authored-by: Cursor <[email protected]>
Rework the soft-lock regression so it asserts the shared occupation helper and an idle wander step without aggro, instead of a chase-hold setup that never entered the idle branch.

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

Copy link
Copy Markdown
Contributor Author

READY FOR REVIEW

@jonkwheeler

Copy link
Copy Markdown
Contributor Author

REVIEW WITHDRAWN

Restoring merge currency against origin/main; prior ready signal is void until Bugbot clears the new head.

@jonkwheeler

Copy link
Copy Markdown
Contributor Author

READY FOR REVIEW

Merge currency restored against origin/main; Cursor Bugbot completed cleanly on the current head with no unresolved findings.

@jonkwheeler

Copy link
Copy Markdown
Contributor Author

REVIEW WITHDRAWN

Branch is DIRTY against origin/main; merging and resolving conflicts before re-signaling readiness.

Resolve packages.md and evals manifest conflicts via pnpm sync after
landing main's version bumps and released changesets.

Co-authored-by: Cursor <[email protected]>
Comment thread playground/octane/doom-audit/audit.json Resolved
jonkwheeler and others added 2 commits August 10, 2026 14:34
Add a focused Playwright case that uses history back from an active level
and re-entry reset, and bind the audit browser-back behavior to that test.

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 3959f1a. Configure here.

@jonkwheeler

Copy link
Copy Markdown
Contributor Author

Merge currency restored against origin/main; added browser-back production evidence for the audit contract; Cursor Bugbot completed cleanly on the current head with no unresolved findings.

READY FOR REVIEW

Mirror phaseRef handling so the fixed-step loop stops immediately when
pause toggles instead of waiting for the next render commit.

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

Copy link
Copy Markdown
Contributor Author

REVIEW WITHDRAWN

Prior ready signal is void until the pause-ref Bugbot finding is fixed and Bugbot clears the new head.

@jonkwheeler

Copy link
Copy Markdown
Contributor Author

Currency restored via origin/main merge and update-branch; browser-back audit evidence and pause-ref simulation sync fixed; Cursor Bugbot completed cleanly on the current head with no unresolved findings.

READY FOR REVIEW

@leonidaz

Copy link
Copy Markdown
Collaborator

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

@leonidaz leonidaz closed this Aug 12, 2026
kotarotaniguchi0523 pushed a commit to kotarotaniguchi0523/octane that referenced this pull request Aug 12, 2026
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