feat: Phase 5 — Holographic Core (payload system, rules, HUD, worker, spring drag, tests)#1
Open
akaradje wants to merge 7 commits into
Open
feat: Phase 5 — Holographic Core (payload system, rules, HUD, worker, spring drag, tests)#1akaradje wants to merge 7 commits into
akaradje wants to merge 7 commits into
Conversation
Add packed u32 event queue (merge/fracture/spawn/despawn) to Rust. JS PayloadRegistry decodes events and maintains Map<entityId, payload>. Relations emit merge/fracture events; spawn/despawn tracked in lib. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Pure JS functions for per-type merge/fracture semantics. Configurable numeric reducer (sum/avg/product). Auto-detect payload type from raw input. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Preact+htm via CDN (zero build step). Translucent panels with backdrop-filter blur. Mode switcher (Select/Draw), floating inspector panel, bottom toolbar for physics config, payload input dialog. All positioned above canvas with pointer-events selectively enabled. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Worker owns the Wasm engine; main thread handles input + canvas blit. SharedArrayBuffer path with Atomics.wait/notify for frame sync. Transfer-based postMessage fallback when SAB unavailable. Node/Express serve script sets COOP/COEP headers. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Damped spring (Hooke's law + velocity damping) pulls pinned nodes toward cursor. Exposed pin_node/unpin_node/update_pin_target API. Configurable stiffness and damping coefficients. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
12 Rust tests covering spawn/despawn round trip, quadtree query correctness, bitwise merge & fracture producing expected masks, color derivation, capacity bounds. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
ASCII architecture diagram with worker, payload system docs, rule engine table, COOP/COEP instructions, roadmap table, package.json test scripts. Example page demonstrating JSON/numeric/text data workflows. Co-Authored-By: Claude Opus 4.7 <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.
Summary
Implements the remaining blueprint features for the Liquid-State Engine:
pin_node/unpin_node/update_pin_targetAPI.Files Changed
18 files, +2617 / -309 lines
Verification Checklist
cargo check --target wasm32-unknown-unknown— clean, no warningscargo test— 12/12 tests passHow to Test
🤖 Generated with Claude Code