feat(v1.0a2): cross-engine behavior runtime — Babylon auto-rotate + bob + conformance#38
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
…an (both engines)
…-on-throw) Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
v1.0 sub-stage A2 — proves the behavior runtime holds across engines. Formalizes
installBehaviors/tickBehaviors/uninstallBehaviorsontoIRuntimeAdapter, gives Babylon its own behavior framework (auto-rotate + bob), and validates runtime parity via the shared conformance suite. Headless only.How (TDD, per-task commits)
src/runtime/babylon/behaviors/) —BabylonBehaviorRegistry+ auto-rotate (quaternion increment) + bob, mirroring the Three structure and sharing the engine-neutralBehaviorDefinition.installBehaviors/tickBehaviors/uninstallBehaviorsadded toIRuntimeAdapter(ThreeAdapter already satisfied; NoopAdapter stubbed); BabylonAdapter implements them mirroring ThreeAdapter'sbehaviorRuntimemap + error isolation (console.warn+skip for unknown/invalid,console.error+catch on throw);getSupportedBehaviorsreturns the Babylon registry.describeAdapterConformancerun against both engines:describeNode().positionexactly equalsbase + amp·sin(2π·f·t)(cross-engine identical formula + handle state)Spec:
docs/superpowers/specs/2026-06-10-v1.0a2-babylon-behaviors-design.mdPlan:
docs/superpowers/plans/2026-06-10-v1.0a2-babylon-behaviors-plan.mdScope (deferred, in roadmap)
generateBehaviorCodefor Babylon → A3 (export). hover-highlight (pointer/material) +setBehaviorDomElementon the contract → B (render host / event story).dispose()behavior-handle release: A2 handles have nodispose, sobehaviorRuntime.clear()suffices; noted in Backlog for when a stateful Babylon behavior lands.Verification
pnpm lint(0 new) ·pnpm typecheck(0) ·pnpm test(518/518)🤖 Generated with Claude Code