Skip to content

0.4.0

Latest

Choose a tag to compare

@github-actions github-actions released this 03 Nov 14:51
· 237 commits to trunk since this release
0.4.0
c6b5dfd

[0.4.0] - 2026-11-03

Added

  • Features view v2.
    • Lasso, in every lasso view: Ctrl-drag draws it freehand, simplified to at most 64 nodes. On a closed lasso you can drag a node, double-click an edge to insert one, or right-click a node to delete it.
    • k-means collision: the matrix and per-cell badges count the other parts' spikes and the other clusters' spikes inside a part's hull in all 16 projections.
    • Layouts: compact, regular and expansive, matched to the pane's size.
  • Features 3D. A GPU view with an orbit camera.
    • Axis triples: the triples of the channel set's dimensions (time, PCs and spike depth) are ranked by silhouette, and the focused 2D plot's two axes can be pinned.
    • Hulls: each cluster gets a hull, styled by whether the sorter or Sorrel made it. Split children show their parent's hull from before the split, and the lasso shows as a prism.
    • Pre-merge hulls: a merged unit shows its sources as grey dashed hulls (legend "before merge (c1 + c2)") without hovering its History row.
  • Kilosort 4 spike positions. spike_positions.npy is read when present (finite, one row per spike, else ignored with a warning). Its y is the best per-spike depth for the Drift map, and its x joins depth in the Features 3D triples.
  • Pane controls. Any pane can be maximized (button, Ctrl+Shift+M, :max) or popped out into its own window (button, :pop). F11 toggles full screen.
  • Waveforms ↔ Features.
    • Channels: Shift-click a Waveforms box or a Probe site to edit the Features channel set; Ctrl-click and Ctrl-right-click set channels A and B. The grid's A and B follow the best-separating pair.
    • Alternatives: an alternatives strip ranks the other projections.
    • Highlight: Waveforms outlines the focused plot's channels and draws the lassoed spikes and the PC shapes.
  • Cross-talk between views.
    • Spike brush: one set of spikes, picked by a lasso, a k-means part, an amplitude threshold or the ISI refractory band, is drawn in every spike view.
    • Time range: Shift-drag along a time axis.
    • Hover: the spike under the pointer is marked in the other views.
    • Split preview: a lasso shows the inside and outside parts in ISI, Waveforms and Quality before you split.
    • Ghosts: hovering a Similar, Suggest or History row previews the merge or the state before that edit.
    • Colour: Features can be coloured by time or depth.
  • sorrelw.exe, a Windows launcher without a console window: it starts the
    sibling sorrel.exe with the same arguments and exits. It ships in the
    zip and as a standalone sorrel-<VERSION>-x86_64-windows-gui.exe; on Linux
    and macOS it just execs sorrel.
  • sorrel install-shortcut [--remove] adds or deletes the Start-menu
    shortcut to sorrelw.exe (Windows only). The Chocolatey package makes its
    own, and winget lists both executables.
  • The Windows executables embed the app icon, version information and a
    manifest (long paths, UTF-8 code page, per-monitor DPI). The window has the
    app icon on every platform, and the Linux packages install it with the
    menu entry.
  • Windows documentation: Start menu, SmartScreen and download verification,
    uninstall and PowerShell completions.
  • The Windows tests (including the save tests) run on a hosted
    windows-2025 runner in CI.
  • Double-blind curation bench.
    • sorrel blind: splits a curated session (or, with --phy-curated, a Kilosort sort curated in phy) into the sorter's own output and the human's final state plus provenance.json.
    • sorrel diff TRUTH TEST --root INPUT: a spike-level score of two curations of one sort: unit recovery, merges, splits, noise exclusion and ARI, keyed by root cluster.
    • scripts/bench_curation.py: runs sorrel auto --llm and the MCP review agent against the human curation, with a sealed holdout and blinded adjudication.
    • Prompts: SORREL_RUBRIC and SORREL_REVIEW override the rubric and review instructions (the MCP review prompt and sorrel auto --llm share one source), and sorrel agent-guide --prompt review prints the effective text.
    • Skill: export-curated-sort packages phy-curated sorts for the bench, one package per recording; recordings where the sorter found no units are excluded.

Changed

  • The landing page moves from Zola to Plinth's plinth-project: a
    full-width animated hero (a still for reduced motion, a Waveforms crop on
    phones), six focused gallery crops with a lightbox, a self-hosted Inter
    subset, social metadata, and leaf-green download buttons that point at the
    latest release. .#site still merges the mdBook docs under /docs/, and
    the README opens with the hero.

Notes

  • Window pop-outs are exercised on Linux (X11 and Wayland). Native Windows
    window-manager behavior is not covered by CI; the Windows smoke covers the
    rest of the UI.
  • On Wayland a driver that offers only vsync (FIFO) can still stall when the
    main window is fully covered, for example by a full-screen pop-out. Mesa's
    RADV, ANV, radeonsi and lavapipe drivers offer mailbox and immediate, so
    they are not affected. Sorrel's next step, should such a driver appear, is
    to skip painting a covered main window.

Fixed

  • A popped-out pane's window was destroyed and recreated whenever the main
    window was hidden (minimized, or covered by a full-screen pop-out), so F11
    in a pop-out never stuck. Pop-outs now stay alive, and remember full screen.
  • On Wayland the app froze while its main window was fully covered, for
    example by a full-screen pop-out: a vsync present waits for a frame callback
    a covered surface never gets. Sorrel now presents without waiting there.
  • A cluster made by a split now shows up in list_clusters, can be relabelled
    and is written to cluster_group.tsv, live, after save and after a
    reopen. It had no label slot, so everything that reads labels skipped it.
  • sorrel share/join work in the Windows binary: GNU ld dropped the piying
    handler registrations (hello: unknown message 'sorrel/hello/1'). The
    Windows build now links with --no-gc-sections.
  • windows-gnu builds of the sorrel and sorrelw binaries keep the linkme
    registrations on every build path (plain cargo and cargo install too),
    not only the Nix release build: --no-gc-sections now comes from the build
    script.
  • Saving a Kilosort/phy dataset no longer fails on Windows with "user-mapped
    section" (os error 1224): the provider kept spike_times.npy and
    spike_clusters.npy mapped after loading, and the save renames a new
    spike_clusters.npy over it. A cache entry that is still mapped is skipped
    by eviction and replacement, and retried by the next GC.
  • join refuses a host path that is absolute, has a drive (C:\x), a
    backslash, a colon or a .., which could write outside the join directory
    on Windows.
  • A save, export or journal write that Windows refuses because phy, Python or
    an Explorer preview holds the file now says to close that program and try
    again.
  • The listener file and sorrel status no longer show
    \\?\C:\... paths.
  • The "already open" message names the owning pid on Windows: it is kept in
    <journal>.lock.pid, since the locked .lock file cannot be read there.
  • sorrel auto --llm on Windows: an npm .cmd shim no longer re-parses the
    system prompt (it goes in a file for claude, and opencode gets its prompt as
    an attached file), and the Anthropic credential check also looks in
    ~/.config/anthropic.
  • share no longer tries to send the host's journal lock file, which Windows
    will not let a second handle read.
  • sorrel-relay warns on Windows that its key file is not ACL-restricted; the
    relay is documented as a Linux/macOS server.
  • sorrel auto --llm no longer aborts the whole run, losing every paid
    verdict, when one case has no card or one call fails. That case stays in
    review. An existing evidence.json is renamed aside on every run.
  • sorrel auto refuses --llm together with --discard-journal or
    --reuse, and --llm=api checks for credentials before the analysis.
    On Windows the CLI backends use UTF-8 pipes and resolve npm .cmd shims.
  • brief relation lines, eval and probe report presence over the same
    50 bins as QC, and keep every active rule threshold when rounding.
  • A rule op ||> is rejected instead of never firing, and so is a NaN or
    infinite rule value.
  • An agent edit validated before the human switched to propose-only is no
    longer applied.
  • Sparse phy templates that name a channel twice keep both columns.