(Adaptive Loop) Prepare for Pass 3
This commit is contained in:
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.
|
||||
|
||||
@@ -11,20 +11,22 @@ Use when designing, implementing, polishing, or validating Adaptive Loop's brows
|
||||
|
||||
## Procedure
|
||||
|
||||
1. Treat the surface as an operational instrument: the board, legal actions, immediate consequences, objective, current pressure, and outcome must scan instantly.
|
||||
2. Establish a specific visual world: dark laboratory glass, luminous culture chambers, crisp microfluidic channels, restrained biological motion, and four consistently encoded pressures. Avoid generic dashboard/card styling.
|
||||
3. Render the board as **three interlocking hexagonal rings** — each loop a regular six-sided hexagon (pointy-top), stroked, distinct per-loop color, arranged in a symmetric trefoil with an over/under weave at the six ring crossings. Place chambers as circular nodes **on the rings at the hexagon vertices** in each loop's cyclic order; render each shared chamber once at the overlap and route both rings through it. Never draw the board as a network of connected spheres or a numbered wiring diagram. Full layout spec: `docs/board-layout.md` and SPEC §4 "Board layout (rendering)". Use real buttons or keyboard-operable controls around the SVG; keep hit targets separate from decorative geometry.
|
||||
4. Preview both chamber relocation and channel flow before commitment. Show exact population/resource deltas with symbols and text, not color alone. Selecting a rotation (focus/hover/tap) shows the preview and **enables Commit**; the selection **persists** until commit, a different selection, or Escape — never grey out Commit just because the pointer left the rotation or focus moved to the Commit button.
|
||||
5. Animate only to explain causality. Respect `prefers-reduced-motion` and provide immediate-state rendering when reduced motion is active.
|
||||
6. Support keyboard navigation, visible focus, accessible names, semantic status/outcome announcements, sufficient contrast, and 200% zoom without loss of function.
|
||||
7. Teach through scenario objectives and contextual labels, not a long modal tutorial.
|
||||
8. Run one bounded visual QA pass at desktop and narrow viewport, fix defects in one batch, then confirm once and stop polishing.
|
||||
1. Treat the surface as an operational instrument: the three concentric rings, the six gates, the legal rotations, immediate consequences, objective, current pressure, and outcome must scan instantly.
|
||||
2. Establish a specific visual world: dark laboratory glass, three concentric luminous glass rings of hex tiles connected by six luminous radial gates, crisp microfluidic channels, restrained biological motion, and four consistently encoded pressures. Avoid generic dashboard/card styling.
|
||||
3. Render the board as **three concentric hexagonal rings** (outer > middle > inner in tile count), clearly nested, with the **six gates drawn as luminous radial connectors** at the hex vertices. Rotation moves a ring's tiles around its loop; the gates are fixed in space, so rotation visibly changes which tiles are linked across rings. Never draw the board as a network of connected spheres or a numbered wiring diagram. Full layout spec: `docs/board-layout.md` and SPEC §4 "Board topology" / §13 "User interface".
|
||||
4. **Entity art must be intricate, not primitive.** Species and fixtures are distinct, detailed procedural SVG glyphs — more intricate than a plain circle or square — each using shape + short label + color; pressures use distinct iconography + color. Reference designs (elaborate while keeping legible at tile size): producer = 6-petal diatom/flower around a chloroplast center (green); grazer = segmented crescent with cilia legs and a mouth notch (amber); phage = lunar-lander virus (hex capsid + leg spikes) (pink); nutrient inlet = pipette/valve, heat source = coiled filament, toxin inlet = dropper, drain = funnel, immune node = sentinel eye, objective = targeting reticle. Pressures: Heat = sun rays, Hunger = crescent, Toxin = skull-drop, Immunity = shield. Tile state: nutrient/toxin as liquid levels, heat as rim glow, adapted as a border treatment + tag.
|
||||
5. Use real buttons or keyboard-operable controls around the SVG; keep hit targets separate from decorative geometry.
|
||||
6. Preview both tile relocation and (tangential + radial) flow before commitment. Show exact population/resource deltas with symbols and text, not color alone. Selecting a rotation (focus/hover/tap) shows the preview and **enables Commit**; the selection **persists** until commit, a different selection, or Escape — never grey out Commit just because the pointer left the rotation or focus moved to the Commit button.
|
||||
7. Animate only to explain causality. Respect `prefers-reduced-motion` and provide immediate-state rendering when reduced motion is active.
|
||||
8. Support keyboard navigation, visible focus, accessible names, semantic status/outcome announcements, sufficient contrast, and 200% zoom without loss of function.
|
||||
9. Teach through scenario objectives and contextual labels, not a long modal tutorial.
|
||||
10. Run one bounded visual QA pass at desktop and narrow viewport, fix defects in one batch, then confirm once and stop polishing.
|
||||
|
||||
## Pitfalls
|
||||
|
||||
- No downloaded or ripped commercial assets.
|
||||
- No tiny unreadable labels, color-only species/pressure encoding, hidden hover-only rules, or canvas-only controls.
|
||||
- No connected-sphere / wiring-diagram board: the three loops must read as distinct interlocking hexagonal rings.
|
||||
- No primitive-only entity rendering (plain circles/squares for species), tiny unreadable labels, color-only species/pressure encoding, hidden hover-only rules, or canvas-only controls.
|
||||
- No connected-sphere / wiring-diagram board: the board must read as three nested hexagonal rings linked by six gates.
|
||||
- No hover-gated Commit: the Commit control must stay enabled after a rotation is selected.
|
||||
- No ornamental animation that obscures turn resolution.
|
||||
- No claiming a mechanic in text unless it is visibly exercisable.
|
||||
@@ -35,8 +37,8 @@ Use when designing, implementing, polishing, or validating Adaptive Loop's brows
|
||||
Interact with the production build through public browser controls and capture evidence that one continuous take can show:
|
||||
|
||||
1. Start a campaign scenario.
|
||||
2. Preview and commit a loop rotation.
|
||||
3. Show movement and channel flow interacting.
|
||||
2. Preview and commit a ring rotation.
|
||||
3. Show tile movement and (tangential or radial) flow interacting.
|
||||
4. Trigger an adaptation and expose its benefit, cost, and spillover.
|
||||
5. Trigger a pressure-driven environmental change.
|
||||
6. Lose by collapse and retry.
|
||||
|
||||
Reference in new issue
Block a user