Polarize
GitHub Get in touch

Changelog

What changed in the code.

Merged pull requests across the public polarizetech repositories, newest first, synced from GitHub once a day. Every repository, with the posts about it, is under Work.

2026-11-30 polarize-ui #27

feat: DriftDiffusion chart and Kramers–Moyal estimator

Builds scope/drift-diffusion.md (Tier: explore).

  • kramersMoyal() — per-bin drift K(1) / diffusion K(2) with SE and counts (Lin et al. 2025); histogramPotential(), equilibriumPotential() (Quintanilha Valente et al. 2025, eqs. 7–8).
  • DriftDiffusion — drift / diffusion / potential panels; MEASURED-style estimate with ±2 SE band, PREDICTED-style dashed truth, sparse bins hatched, Itô + τs inline, sampling caveat in a Note.
  • Synthetic bistable demo (Euler–Maruyama, seeded) with additive and multiplicative stories under Science / Stochastic dynamics.
  • tests/kramers-moyal.test.ts (5 tests) checks the estimator against the model’s own drift, diffusion and Ueq; wired into dev_check.py.

Additive exports only (patch). Standard published methods on synthetic data. Display constants, test tolerances and demo parameters are marked exploratory.

Checks: node tests 5/5, dev_check.py 481/481, tsc clean. Verified both stories in Storybook.

🤖 Generated with Claude Code

2026-11-30 polarize-ui #26

docs: scope for the drift-diffusion chart

Adds scope/drift-diffusion.md (Tier: explore), the plan for a DriftDiffusion chart in Science / Stochastic dynamics. No code.

  • F1 Kramers–Moyal drift/diffusion estimator (Lin et al. 2025)
  • F2 two-panel chart, Itô labelled (Brückner & Broedersz 2024; Dakos et al. 2012)
  • F3 equilibrium potential (Quintanilha Valente et al. 2025)
  • F4 synthetic bistable demo, Euler–Maruyama (Quintanilha Valente et al. 2025; Pillonetto et al. 2026)
  • F5 sampling-interval caveat (Lin et al. 2025)

Standard published methods on synthetic data only. Bin-count default and demo parameter values are marked exploratory.

🤖 Generated with Claude Code

2026-11-30 polarize-ui #25

feat: xs knob size; science stories use knobs instead of faders

  • New .ui-knob--xs and .ui-playknob--xs (40px); Knob and PlayKnob accept size="xs". New “Knob sizes” story (xs/sm/md/lg).
  • Science stories (Mechanisms ×3, Space ×2, Trajectory playback) swap Fader for Knob size="xs", props unchanged.
  • Fader component and its Controls stories untouched (public API).

Additive only (patch). Checks: dev_check.py 480/480, tsc clean. Verified in Storybook: Knob sizes and Mechanisms render the xs knobs.

🤖 Generated with Claude Code

2026-11-30 polarize-ui #24

fix: tissue-field uses knobs, not range sliders

<tissue-field>’s Time scrubber, Opacity and Hide below were bare <input type="range"> sliders, against the no-range-sliders rule.

  • Each input is wrapped in .ui-knob and drawn with initControl from controls.js; the native input still drives the existing listeners.
  • The Time knob follows playback (handle.set(k) in _readout).
  • Knob spans get display: inline-block so the knob’s size applies.
  • Removed the now-unused .tf-scrub rule and the range accent-color rule (internal classes, not public API).

Checks: dev_check.py 480/480, tsc clean. Verified in Storybook (Science / Tissue field): three knobs render, Time knob turns during playback.

🤖 Generated with Claude Code

2026-11-30 polarize-ui #22

feat: volume component (WebGL), React wrapper, synthetic demo story

Opened for review from an existing branch (last commit 2026-10-02); not merged.

  • New <tissue-field> custom element (WebGL volume, tissue-field/1 format) and ./tissue-field.js export
  • New TissueField React export (src/science/space/TissueField.tsx)
  • New optional peer dependency three
  • Synthetic demo story; no data in the repo

Additive only per the commit message (new export, optional peer dep), so a non-breaking release.

Before merging

  • Conflicts with main in dev_check.py and package.json (branch is ~2 months behind).
  • Public-repo check: confirm the component, the tissue-field/1 format and the demo model (stories/models/tissue-demo/) are standard/synthetic, not unpublished group work.

🤖 Generated with Claude Code

2026-11-30 scientific-research-scaffold #23

Release scaffold v0.17.0: exploratory work is MVP work

  • Moves the agents submodule to scientific-research-agents v0.14.0, which adds “Exploratory work is MVP work”.
  • Study and tool rules: a first pass is whittled down to about an hour, built from open-source and peer-reviewed pieces that already work, with every try versioned.
  • Predict first now applies once the work is out of exploratory: there’s no preregistration while exploratory.
  • Releases app version names and URLs (polarizetech/scientific-research-scaffold#22).
  • Bumps the CI ref, the manifests and CITATION, and adds an UPGRADING section.

Tests: 108 OK (2 skipped).

🤖 Generated with Claude Code

2026-11-30 scientific-research-agents #9

Release agents v0.14.0: exploratory work is MVP work

Adds “Exploratory work is MVP work” to COORDINATION.md, a bullet in the AGENTS.md block, and an MVP-mode section to the computational-engineer and frontend-developer briefs:

  • Scope: the lead whittles a first pass down to what can be built in about an hour; the person decides what’s cut.
  • Reuse: build from open-source and peer-reviewed pieces that already work, writing glue rather than engines, and recommend the open-source option without being asked.
  • Research and versions: one research pass per project, and every try is versioned.
  • Preregistration: none until the work leaves exploratory.
  • Rules still hold: the repo’s own stack, conventions and design system.

Bumps to 0.14.0. Tests: 13 OK.

🤖 Generated with Claude Code

2026-11-30 scientific-research-scaffold #22

App versions: one name and one URL per version

Finishes the app-urls work that had been sitting uncommitted since 2026-10-21, ported onto current main:

  • PROTOCOL.md § 6: a version is named <slug> <vN>, with no separate product name, and served at /<slug>/<vN>/ when hosted under a shared address. A retired version’s route is removed, and apps use relative URLs only. This is marked as advice, not a check.
  • Study agent rules: the same rule.
  • App template: redirects to the trailing-slash form so the same files work at the sub-path.
  • CHANGELOG: an Unreleased entry.

Tests: 108 OK (2 skipped).

🤖 Generated with Claude Code

2026-11-30 polarize-ui #21

fix!: keep SpatialSpace panes fixed at the centre of view

Panes in SpatialSpace drifted with the pointer (the head-tracking stand-in rotated the world they lived in) and slid in on a 3-D arc when switching.

  • Panes now render in a screen-fixed layer: centred, no rotation, no depth offset; switching is an opacity fade (instant with reduced motion).
  • Dock and Spaces menu unchanged (still trail the head; Follow/Recenter work).
  • New optional prop arrangement?: "fixed" | "arc", default "fixed". "arc" keeps the old behaviour; new story “Space: arc (legacy)”.

Breaking: default layout changed. Migrate with arrangement="arc" to keep the old arc.

Checks: npm run typecheck clean, dev_check.py 475/475. Verified in Storybook: pane stays centred while hovering corners; Next swaps in place.

🤖 Generated with Claude Code

2026-11-30 scientific-research-scaffold #21

Release scaffold v0.16.0: research folder on first research, nothing saved twice

  • Moves the agents submodule to scientific-research-agents v0.13.0: the corpus project folder is opened the first time research comes up, without asking, and what the corpus already holds is linked, never copied.
  • Updates the tool and study rules to match.
  • Releases the “report in three lists” rule (polarizetech/scientific-research-scaffold#6), which was under Unreleased.
  • Bumps the CI ref, the manifests and CITATION to v0.16.0, and adds an UPGRADING section.

Tests: 108 OK (2 skipped).

🤖 Generated with Claude Code