Skip to content

feat: chemical boil spit (spray + mass loss) - #125

Merged
arnoudja merged 3 commits into
masterfrom
cursor/chemical-boil-spit-a443
Sep 28, 2026
Merged

arnoudja merged 3 commits into
masterfrom
cursor/chemical-boil-spit-a443

Conversation

@arnoudja

@arnoudja arnoudja commented Sep 28, 2026 •

Copy link
Copy Markdown
Owner

Summary

When instant chemical heat (H₂SO₄/HCl Φ_L, neutralization, kinetic dissolve ΔH) would push a vessel to or above boil on an action: clamp at T_boil, discard school spray fraction (CHEMICAL_SPIT_FRAC = 0.03), emit one silent spit event, and play a CSS/SVG spray burst on the last action target (water, dish, or filtrate). Clock ticks clamp only (no spray mass / no spit event). No teaching banner. Burner continuous boil stays separate.

Changes

  • Unify chemical ΔT through apply_chemical_heat(..., allow_spit_mass) / shared vessel_boil_temperature_c
  • Action: clamp + discard + at most one spit; clock (apply_elapsed): clamp only
  • FE: suppress spit from banner; shared SpitSprayOverlay on water / dish / filtrate; prefers-reduced-motion hides droplets
  • Spec: docs/lab-scene-spec.md — Instant chemical heat and boil spit

Tests

  • chemical_heat_overshoot_spits_and_drops_mass_at_boil
  • mild_dilution_does_not_spit
  • stacked_chemical_heats_emit_at_most_one_spit
  • chemical_heat_clock_mode_clamps_without_spit_mass
  • FE helpers + LabBench dish spit-cue wiring test

Out of scope

Teaching copy; H₂SO₄-only local-heat UX; burner retune; three.js; graphic injury; stock water→beaker-h2so4; challenge changes.

Open in Web Open in Cursor 

cursoragent and others added 3 commits September 28, 2026 12:15
Route instant chemical heat through apply_chemical_heat; when T would
cross boil, clamp, discard CHEMICAL_SPIT_FRAC, emit one silent spit
event, and play a CSS spray cue on the action target (no teaching banner).

Co-authored-by: Arnoud <arnoudja@users.noreply.github.com>
Co-authored-by: Arnoud <arnoudja@users.noreply.github.com>
Wire CSS/SVG spit spray to dish and filtrate as well as water.
Pass allow_spit_mass=false from apply_elapsed so clock kinetic heat
clamps at boil without discarding spray mass or emitting spit.

Co-authored-by: Arnoud <arnoudja@users.noreply.github.com>
@arnoudja
arnoudja marked this pull request as ready for review September 28, 2026 12:31
@arnoudja
arnoudja merged commit d37cc68 into master Sep 28, 2026
12 checks passed
@arnoudja
arnoudja deleted the cursor/chemical-boil-spit-a443 branch September 28, 2026 14:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants