feat(skills): baked-sim rule — offline physics stepped at build time, replayed by frame index - #3780
Open
jbernard077 wants to merge 1 commit into
Open
feat(skills): baked-sim rule — offline physics stepped at build time, replayed by frame index#3780jbernard077 wants to merge 1 commit into
jbernard077 wants to merge 1 commit into
Conversation
… replayed by frame index Adds rules/baked-sim.md to hyperframes-animation: a seeded build-time simulation (verlet rope reference) written as per-frame data, shipped as a synchronous script include, and replayed by one ease:"none" driver doing an index lookup — no integration or RNG at runtime, seek-safe by construction. Adds the rules-index row and a boundary pointer in particle-burst.md (interacting bodies are baked; ballistic ones stay closed-form).
jbernard077
force-pushed
the
feat/baked-sim-rule
branch
from
September 8, 2026 21:09
68c425c to
acf4478
Compare
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.
Adds one rule to
skills/hyperframes-animation: organic physics (a rope, flag, cloth, debris, aflock) is simulated once at build time and replayed by frame index, so the renderer never runs
an integrator. Validated in a deterministic reference build (a verlet pennant in a 24 s reel) through
the local gate.
What's added
rules/baked-sim.md— the bake → ship → replay contract:dt = 1/fpswith a seeded PRNG, fixed iteration counts andper-frame forces computed from the frame number, after a ~60-frame pre-roll so frame 0 is
already settled;
window.__NAME = {...}) — neverfetch(), which races the first-frame capture;ease: "none"driver spanning exactlyLAST / fpsseconds so the proxy equals theframe index at every sampled frame; its
onUpdatedoesframes[round(f)]— an index lookup andnothing else — with the frame-0 state applied at setup.
bake, re-bake for art direction), values, constraints.
rules-index.mdrow and a boundary sentence inparticle-burst.md(interacting bodies arebaked; ballistic particles stay closed-form), plus the hook-regenerated
skills-manifest.json.Validation
hyperframes checkon the reelmulberry32(42),dt = 1/30, 15 constraint passes, 60-frame pre-roll; re-running the bake reproduces the data file byte for byte, and the rule's own recipe run as a script reproduces it frame for frame (both logged)Math.random,Date.now, orrequestAnimationFramein the composition; the replay is a single index lookupFit against current HEAD
Anchors re-verified against
main@ 250afc3. The rule sits besideparticle-burst(closed-form,no bake) and points at
../adapters/three.mdfor the GPU lane; it introduces no new contract —it is the existing determinism rules applied to stateful physics.
Preview media
(the pennant scene of the reference reel: verlet rope baked offline, replayed by index, end card on
a critically damped spring)
pr-b-baked-pennant.mp4
🤖 Generated with Claude Code