(Adaptive Loop) Prepare for Pass 3

This commit is contained in:
AlexKucera committed 2026-08-13 09:07:45 +02:00
1 parent 8249da7e9b
commit 72497dcdbe
40 files changed
+242 -6229

No files matched your search

@@ -14,9 +14,9 @@ Use when implementing or changing Adaptive Loop's simulation, scenario rules, pr
1. Keep the domain model serializable and independent of rendering.
2. Route every committed action through one pure transition: `nextState(state, action)`.
3. Generate previews by calling the same transition on cloned state. Never maintain separate forecast rules.
4. Resolve each turn in a fixed documented order: chamber rotation → channel reconnection/flow → consumption and growth → biological interactions → migration → adaptation → environmental advance → objective/collapse evaluation.
4. Resolve each turn in a fixed documented order: ring rotation (which also re-aligns the six gates) → channel flow (tangential around each ring + inward through gates) → consumption and growth → biological interactions → migration (tangential + radial through gates) → adaptation → environmental advance → objective/collapse evaluation.
5. Test vertical behavior through public seams. Use worked states and literal expected outcomes, not assertions that reimplement the production algorithm.
6. Cover at least: clockwise/counterclockwise loop rotation, overlapping-loop movement, flow direction, capped populations/resources, adaptation threshold, local trait activation, trait cost, species spillover, pressure-driven environment mutation, win, collapse, exact save/restore, preview/commit equality, and deterministic replay.
6. Cover at least: clockwise/counterclockwise ring rotation for all three rings, gate alignment after rotation, tangential and inward-radial flow direction, capped populations/resources, adaptation threshold, local trait activation, trait cost, species spillover, pressure-driven environment mutation, win, collapse, exact save/restore, preview/commit equality, and deterministic replay.
7. When a defect appears, search sibling actions and scenarios for the same failure class; fix the shared transition once.
8. Compare canonical domain state only: stable-key serialization or normalized deep equality must exclude timestamps, animation, focus, hover, and other transient UI state.