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 scientific-research-agents #8

Release agents v0.13.0: research folder on first research, nothing saved twice

Changes “Research is saved, never a blocker” in COORDINATION.md, the AGENTS.md block and all nine briefs:

  • The folder is made when research first comes up. No repo gets a corpus folder in advance. The first research in a conversation about a study or tool with no project folder opens one, with a short README, without asking.
  • Not twice. Before saving, the corpus is searched (the retrieval tool, then the checkout) for the same paper, passage or finding. What’s already there is linked, never copied, and a paper keeps its existing ledger key.

Bumps to 0.13.0. Tests: 13 OK.

🤖 Generated with Claude Code

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

Tell assistants in every repo to report in three lists

Every repo’s AGENTS.md (all kinds, all profiles) now tells assistants to report back in three short bullet lists:

  • Results: what is true now, not what was done (works, broke, didn’t work, new problem, unclear)
  • Next (assistant): the work it will do next
  • Needed from you: decisions or input from the person, or “Nothing”

Existing repos pick it up with scaffold update --apply. Test added; 82 tests pass. The 8 ruff findings in bin/ and tests/ predate this change.

🤖 Generated with Claude Code

2026-11-29 olimex-shield #8

Upgrade to scaffold v0.15.0: research is saved, never a blocker

Runs scaffold update --apply: moves to scaffold v0.15.0, adding “Research is saved, never a blocker” to AGENTS.md and the role briefs, and moving the CI ref. Scaffold-managed files only; locally edited files that would lose content were kept. scaffold check: no failures. Earlier releases’ manual upgrade steps, where any were pending, are not done here.

🤖 Generated with Claude Code

2026-11-27 scientific-research-scaffold #20

Release scaffold v0.15.0: research is saved, never a blocker

Moves the agents submodule to scientific-research-agents v0.12.0, which adds “Research is saved, never a blocker” to the AGENTS.md section and every brief. It joins the tool, study and workbench rules from polarizetech/scientific-research-scaffold#19. Bumps the generated CI ref, plugin manifests and CITATION to v0.15.0, and adds the CHANGELOG and UPGRADING sections. Tests: 107 OK (2 skipped).

🤖 Generated with Claude Code

2026-11-27 scientific-research-scaffold #19

Agent rules: research is saved, never a blocker

Adds the rule from scientific-research-agents v0.12.0 to agent-rules/tool.md, study.md and workbench.md, and to the tool section of PROTOCOL.md. Research is saved to the corpus project (or the study’s atlas) without asking, linked from the work, and never holds the work up. Scope files citing papers count as scope, not research. “No research here” is kept. Tests: 107 OK (2 skipped). The agents submodule bump to v0.12.0 follows once that release is tagged.

🤖 Generated with Claude Code

2026-11-27 scientific-research-agents #7

Release agents v0.12.0: research is saved, never a blocker

Adds “Research is saved, never a blocker” to COORDINATION.md, the AGENTS.md block and all nine briefs. Research that comes up is saved without asking to the corpus project for the current study or tool (or the study’s atlas): observations become ledger statements that say how each was marked, and the work links to them. No agent flags, refuses or holds up work because something is research. Scope files citing papers (scope/*.md, SCOPE.toml evidence) count as scope, not research, and are allowed in tools. Bumps VERSION, CHANGELOG and CITATION to 0.12.0. Tests: 13 OK.

🤖 Generated with Claude Code

2026-11-27 retrieval-augmented-generation #77

Pin paper-fetch at f7c6746 for per-request rerank and embed routes

Bumps paper-fetch from 7001d78 to f7c6746 (polarizetech/paper-fetch#17): rerank_route / embed_route, PAPER_FETCH_RERANK_DEFAULT and PAPER_FETCH_RERANK_LOCAL_MODEL. Without it, ask’s providers={"rerank": ...} fails on the droplet. uv lock --upgrade-package paper-fetch changed only paper-fetch.

Tests: 585 passed, 1 failed (tests/test_pipeline.py::test_no_panel_means_no_comparison, which also fails on main). The 4 test_models_service.py failures on main pass with this pin.

After merge the droplet gets PAPER_FETCH_RERANK_DEFAULT=off: reranking only when an ask asks for it.

🤖 Generated with Claude Code

2026-11-27 retrieval-augmented-generation #76

Skip the fresh search for chatter and repository questions

Quick asks ran a SearXNG search on the message verbatim, so chatter (“approved, go ahead”) and questions about a repo returned junk leads.

  • config/routing.default.toml: new [fresh] chatter phrase list.
  • research_mcp/routing.py: Rules.chatter and is_chatter().
  • research_mcp/ask.py: quick asks skip _fresh for chatter or when repo is passed, with a Fresh search: skipped (...) progress line. Passage retrieval unchanged.
  • tests/test_ask.py: two tests for the skips.

Tests: tests/test_ask.py and tests/test_routing.py pass (71). The full suite has 5 failures (4 in test_models_service.py, 1 in test_pipeline.py) that fail identically on main.

🤖 Generated with Claude Code

2026-11-26 polarize-ui #20

feat: MapSearch component for picking latitude and longitude

Adds MapSearch: a place search box, a map and latitude/longitude fields that share one value, { lat, lon } in WGS 84 decimal degrees. No new dependency and no map library.

What it does

  • Search box. Typed coordinates are parsed locally: signed decimals, latitude first (48.4284, -123.3656), or degrees-minutes-seconds with hemispheres (48°25′42″N 123°21′56″W). Place names go to a pluggable search function. nominatimSearch() is provided for OpenStreetMap and runs on Enter only, because Nominatim’s usage policy forbids autocomplete.
  • Map. A Web Mercator (EPSG:3857) z/x/y tile grid drawn with plain <img> tiles. Tiles are opt-in via tileUrl + attribution; without them it draws an offline graticule, so nothing touches the network by default. Light tiles are inverted and dimmed by default (tileFilter="dark", values chosen by eye) so a dark page gets no light backdrop.
  • Input. Drag pans, wheel and +/− zoom, a click drops the pin. With the map focused, arrows pan and Enter drops the pin at the centre.
  • Fields. Latitude/longitude inputs, clear, use-my-location (browser geolocation, accuracy shown), and hidden form inputs via latName / lonName.

Public API

New exports: MapSearch, MapSearchProps, LatLon, GeocodeResult, GeocodeFn, isLatLon, parseCoordinates, formatCoordinates, nominatimSearch. Additions only, so this is a patch release; nothing is renamed or removed.

Stories: General UI/Components/Map search (Offline, OpenStreetMap tiles and place search, States). Only the OpenStreetMap story makes network requests, and it shows the © OpenStreetMap contributors credit.

Checks

  • python3 dev_check.py: 475/475 passed
  • npx tsc -p .: clean
  • python3 scripts/api_surface.py --removed v0.8.1: nothing removed

Not yet tried in a browser: drag, wheel zoom and live search have not been exercised in Storybook.

🤖 Generated with Claude Code

2026-11-26 olimex-shield #6

Beats extension: live R peaks and R-R intervals (exploratory)

Adds extensions/beats/ (olimex-shield-ext-beats 0.1.0, catalogued, exploratory): GET /beats runs Elgendi 2013’s two-moving-average QRS detector (doi:10.1371/journal.pone.0073557) on the last 5 s of the live ring. It returns each beat once, numbered (k), with its host time t, age_s and rr_s. It is for polarize-holo’s ?heart=ecg (polarizetech/polarize-holo, branch claude/ecg-heart).

  • Settings from the paper: 8–20 Hz, third-order Butterworth run forward and backward, 97 ms and 611 ms windows, offset fraction 0.08. The extracted text prints “0.8”; the paper tested 0–10 % and found 2–10 % best. The owner approved this reading and the test.
  • Why this detector: Porr & Macfarlane 2024 (doi:10.1371/journal.pone.0309739) rank Elgendi among the best at rest.
  • Scope: scope/ecg-beats.md (explore tier). Stdlib only, and nothing on the recording path changes.

Checks: extensions/beats/dev_check.py 5/5, python3 scripts/check.py passes, ruff check . and ruff format --check . are clean. The route has been checked against the bridge’s demo://synthetic source only (EEG-like noise, so the beats it found there mean nothing). Not yet checked on a person wearing the shield.

🤖 Generated with Claude Code