solid-motion-experiments docs research milestone0-decision-log.md
2.8 kB · 61 lines
Markdown
at main

Milestone 0 Decision Log #

Purpose #

Record end-of-milestone decisions tied to evidence, not assumptions.

Locked Scope Decisions #

  • Milestone 0 is research + proof, not production shipping.
  • Timing contract must distinguish render-phase, post-render, and post-paint.
  • Hydration safety requires deterministic SSR output and mount-gated animation start.
  • Presence proof is the current retained-child prototype, not the older createRoot retention path.
  • Layout starts explicit invalidation-first (layoutDependency) before observer automation.
  • attrEffect remains conditional with fallback path due to alpha status.
  • Do not widen unimplemented public props during closeout. Keep them deferred until later milestones.

Included In Milestone 0 #

  • motion.div viability with stable namespace access.
  • motion.create(...) viability with cached wrappers and forwarding-mode separation.
  • adapter sufficiency for the current Solid 1 runtime bridge.
  • deterministic pre-mount style resolution.
  • retained-child presence through PresenceChild and single-slot AnimatePresence.
  • explicit-invalidation layout proof through the demo reorder route.

Deferred Beyond Milestone 0 #

  • gestures, drag, and press parity
  • keyed list AnimatePresence
  • shared layout and layout groups
  • broader viewport and scroll semantics
  • Solid 2-specific runtime work
  • any public prop that exists only as a placeholder and has no local proof yet

Required Exit Decisions #

  1. motion.div viability
  • Status: Complete
  • Evidence: src/component/motion.test.tsx proves stable namespace access.
  1. motion.create viability
  • Status: Complete
  • Evidence: src/component/motion.test.tsx proves wrapper caching and forwarding-mode separation.
  1. Adapter contract sufficiency
  • Status: Experimental, sufficient for Milestone 0
  • Evidence: current runtime bridge in src/adapter/solid1.ts, plus the proof surfaces exercised by src/component/motion.test.tsx, src/presence/animate-presence.test.tsx, and the demo routes.
  1. Presence strategy (retained child record)
  • Status: Complete for the prototype scope
  • Evidence: src/presence/animate-presence.test.tsx plus the retained-exit demos on /presence.
  1. Layout MVP policy (explicit invalidation)
  • Status: Complete for the prototype scope
  • Evidence: demo/src/routes/layout.tsx exercises reorder measurement and the larger explicit-invalidation layout probes with layoutDependency.
  1. Runtime reuse keep/adapt/avoid set
  • Status: Draft complete
  • Evidence: motion-source-map.md.
  1. Solid 2 isolation strategy
  • Status: Draft complete
  • Evidence: solid2-risk-register.md.

Promotion Rule to Milestone 1 #

Only promote behaviors with documented contract + local proof evidence. Keep unresolved items experimental.