Skip to content

Releases

0.4.0

Choose a tag to compare

@github-actions github-actions released this 03 Nov 14:51
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.

0.3.0

Choose a tag to compare

@github-actions github-actions released this 31 Oct 04:51
0.3.0
cf94760

[0.3.0] - 2026-10-31

Breaking

  • The MCP render and features tools are removed; agents read brief.
    split_proposals and suggest no longer list spike indices, and
    list_clusters returns a TSV. The triage prompt is now review
    (triage still works).

Added

  • A review brief for agents: the MCP brief tool encodes a sort as text, with
    a header sent once, a ledger of flagged units, one-row cards and merge/split
    relations. Numbers are rounded only as far as no flag or rule threshold
    changes. On a 110-unit sort it is 34 KB in full, against 1.5 MB for the old
    per-unit tools. See Agents.
  • eval computes a merge or split without applying it. Candidates have
    handles (s12.1, m3) that split, propose and decide accept.
  • probe answers acg, ccg, compare, window, split C by=… and eval
    queries.
  • rules_eval and rules_apply: an agent writes threshold rules (now with
    name, all conditions and |x| ops), sees only the units near a
    threshold or at odds with Bombcell/UnitRefine, and applies them as one undo
    step. decide applies a batch of decisions as one undo step.
  • cluster_qc.tsv gains waveform (trough-to-peak, half-width, extrema),
    footprint (centroid, decay length, 80% radius, propagation), refractory,
    burst, amplitude-dip and drift-slope columns, all usable in rules.
  • sorrel auto --llm sends the brief: its header is cached with the rubric
    and each case is one card row or one counterfactual line. evidence.json
    stores the exact input with each verdict, and an older evidence.json is
    renamed aside, not deleted.
  • GitHub releases include a standalone sorrel-<VERSION>-x86_64-windows.exe
    next to the zip, checksummed in SHA256SUMS.txt and signed like the other
    assets.
  • sorrel auto --llm runs on the agent CLIs you are logged in to: bare
    --llm uses claude, --llm=codex and --llm=opencode the others, and
    --llm=api keeps the Anthropic API. Tools are disabled and each case runs
    in an empty directory. evidence.json records the backend in model.

Changed

  • Bare --llm now uses the claude CLI instead of the Anthropic API, and
    --llm-model has no default (each backend uses its own; claude-opus-5
    for api). --llm takes its backend as --llm=NAME.

Fixed

  • Sparse phy templates (template_ind.npy) are mapped onto their probe
    channels. They were read as if on channels 0 to n−1.

0.2.4

Choose a tag to compare

@github-actions github-actions released this 29 Oct 22:17
0.2.4
df8aabe

[0.2.4] - 2026-10-29

Breaking

  • sorrel <DATA_DIR> is now sorrel open <DATA_DIR>. Bare sorrel starts
    the launcher.
  • sorrel --headless <DATA_DIR> is now sorrel run --headless <DATA_DIR>.
  • sorrel --export-qc DIR is now sorrel qc <DATA_DIR> --out DIR.
  • sorrel --clear-cache DIR is now sorrel clear-cache <DATA_DIR>.
  • sorrel serve is removed; use sorrel mcp.
  • The MCP listener file moved from <DATA_DIR>/.sorrel/mcp.json to a per-user
    directory: $XDG_RUNTIME_DIR/sorrel/mcp/<hash>.json (fallback
    ~/.cache/sorrel/mcp/; %LOCALAPPDATA%\sorrel\mcp\ on Windows). Use
    sorrel mcp rather than reading it.

Added

  • Tabs and a launcher in the GUI. sorrel open adds a dataset as a tab to the
    running window. The launcher offers Open dataset…, drag-and-drop and recent
    datasets. Ctrl-O opens, Ctrl-W closes a tab, Ctrl-Tab and Ctrl-Shift-Tab
    switch tabs.
  • sorrel run runs the GUI in the foreground; --standalone always starts a
    separate window.
  • sorrel status [--json] lists the running GUI, its tabs and session hosts.
  • sorrel call runs one MCP tool from a shell.
  • sorrel mcp tools lists the MCP tools offline; sorrel mcp config prints how
    to register sorrel with an agent.
  • sorrel agent-guide prints a primer for LLM agents.
  • sorrel completions for bash, zsh, fish, elvish and PowerShell.
  • sorrel describe --json.
  • History that never discards: undo moves back, an edit after an undo starts
    a branch, and the whole tree survives saving and reopening. A History
    pane lists every edit with who made it and when, marks branches and saves,
    and goes back to any edit on click. See History.
  • One session host for the GUI, MCP agents and remote guests. Every edit is
    journaled with its actor (you, an agent's client name, an algorithm, a
    remote peer).
  • sorrel mcp <DATA_DIR> connects an agent to the GUI or headless host on
    the directory, or serves the dataset itself. sorrel run --headless <DATA_DIR>
    runs the host without a window. See Agents.
  • Agent edits in the GUI: a toast names the agent and the edit, the touched
    clusters are selected and tinted in the table, and the top bar lists the
    connected agents with an activity dot.
  • Direct | Propose switch for agents. Under Propose, agent edits wait as
    cards in the new Proposals pane; Accept applies one as your decision
    (an accepted split keeps the agent as its method), Reject leaves the
    not-merge / not-split memory.
  • Agents get notifications/message when someone else changes the session.
  • The Windows smoke test on a real runner now runs sorrel mcp over stdio,
    sorrel mcp attached to a run --headless host through its
    %LOCALAPPDATA% listener file, and sorrel auto through uv.exe.

Changed

  • The curation journal is format v3, a tree of edits with their actor and
    time, head moves and save seals. v1 and v2 journals are upgraded on open,
    their undone commands kept as branches; sorrel 0.2.3 and earlier refuse a v3 journal
    ("not a sorrel journal (bad magic)") instead of truncating it. Remote protocol v3.
  • Saving no longer clears the undo history. For phy directories, the first
    save that replaces a file keeps its original in sorrel_original/ (listed
    in sorrel_original/ROOT), and reopening replays the journal onto those
    originals.
  • Opening a phy directory whose spike_clusters.npy or cluster_group.tsv
    changed outside sorrel since its last save (e.g. curated in phy) fails
    instead of letting the next save overwrite that work.
    --discard-journal now renames the journal and sorrel_original/ aside
    instead of deleting them.
  • After a rescue save, undoing the rescue and saving again writes the
    original per-spike arrays back; the directory no longer needs a reopen.
  • MCP agents can edit while the GUI is open; propose, select and selection work in the same
    server.
  • Hovering the save status shows the save path or the full error. It no
    longer says whether the undo history was sealed, because saving keeps it.
  • The winget and Chocolatey packages depend on uv (astral-sh.uv, uv),
    so sorrel auto works right after install.
  • The Windows install docs say the packages install uv, and the agents
    page has a Windows MCP config example.

Fixed

  • sorrel auto on Windows finds uv.exe on PATH (it looked for uv) and
    falls back to python, not python3, when uv is missing.

0.2.3

Choose a tag to compare

@github-actions github-actions released this 29 Oct 08:01
0.2.3
bd652d4

[0.2.3] - 2026-10-29

Fixed

  • The sorrel-ui crate no longer ships its kittest snapshot PNGs (~25 MB),
    which crates.io rejected as too large. This left sorrel-ui and sorrel
    unpublished at 0.2.2.

0.2.2

Choose a tag to compare

@github-actions github-actions released this 28 Oct 23:33
0.2.2
7ae605c

[0.2.2] - 2026-10-28

Added

  • Unit origin: every unit is Auto[<sorter>] or Sorrel[Manual],
    Sorrel[Algo:<name>] or Sorrel[LLM:<name>], with direct parents and a
    free-text note (:note). Auto units edited in sorrel are tagged tuned or
    split; units phy already edited are tagged external. Saved in
    cluster_sorrel_annotations.tsv and as a curation.json origin label.
    --sorter NAME overrides the detected sorter name.
  • sorrel rescue: FDR-controlled matched-filter spike rescue for existing
    units, with hybrid-injection recall checks.
  • In-place AddSpikes: rescued spikes are journaled as one undoable batch.
  • Home Manager module (homeManagerModules.default, programs.sorrel), and a
    sorrel.desktop menu entry in the Nix packages.
  • checks.workspace-tests: every workspace test under nextest in the Nix
    sandbox, the UI snapshot states on pinned lavapipe (SORREL_REQUIRE_GPU
    fails instead of skipping). simit qualifies every x86_64-linux flake check
    as an exact installable (nix-builds.yaml).
    Save rewrites every per-spike array, with backups in sorrel_original/.

Changed

  • The curation journal is format v2 (Split records how the unit was made,
    plus AddSpikes). v1 journals are upgraded on open; sorrel 0.2.x refuses
    a v2 journal instead of truncating it. Remote protocol v2.
  • Suggestions are memoised per cluster. Re-ranking after an edit takes
    137 ms instead of 807 ms on 1000 clusters and 2M spikes (about 5.7×).
  • Merge suggestions include drift-fragment pairs: nearby peak channels with
    complementary firing over time.
  • Split suggestions ignore amplitude bimodality that bursting explains
    (reason burst_explained).
  • Per-cluster cache keys no longer include the journal head, so caches
    survive unrelated edits.

Fixed

  • The cluster table's "amp" column is mean spike amplitude × template
    peak-to-peak, as in phy. It used to show the template peak alone, which
    is the same for every cluster on unit-norm Kilosort templates.
  • The sorrel crate is published again. Its embedded SpikeInterface
    sidecar (sorrel_auto.py) now lives inside the crate. 0.2.1's
    crates.io release stopped at sorrel because the packaged crate could
    not find the script; the other eight crates are on crates.io at 0.2.1.

Changed (UI)

  • phy-parity views fit their panes.
    • CCG, ISI, Waveforms and Scatter keep their main control on one row and
      put the rest in a ⚙ popover, so toolbars no longer wrap or overlap.
    • Cluster table:
      • The default columns (ID, ch, fr, n, qual, label) fit the panel, which
        opens at 22% of the window.
      • depth, sh, amp, isi, tags, origin and note are opt-in from the header
        menu.
      • Only the label cell is coloured, and descending sorts show ▼.
    • Similar: drops the repeated filter block.
    • Features:
      • Selected clusters are drawn over dimmed background spikes.
      • The grid adapts to the pane width, with square cells and readable
        labels.
      • Axes fit the spikes shown.
    • Waveforms: overlays the selected clusters by default, with a colour
      legend. "overlap" (o) switches to phy's side-by-side layout.
    • CCG: cells keep a 120 px minimum and scroll; axes sit on the outer
      edges; chips are readable.
    • ISI: overlays every selected cluster in one plot, with a shaded
      refractory band and per-cluster "<1 ms" chips.
    • Scatter: fills its pane, rings the selection, and labels axes with
      units.
    • The third selection colour is purple instead of red, so a selected
      cluster no longer looks like an error.
  • Roomier layout.
    • Text is 14 px, captions are at least 11 px, and controls and table rows are 24 px.
    • The top bar is 36 px and tab bars are 30 px, with 6 px gaps between panes.
    • The cluster panel opens at 340 px.
  • Save state is always visible. A chip next to the title reads
    "unsaved", "saved" or "save failed". Hovering it shows the save path,
    whether the undo history was sealed, or the full error.
    • A Save button joins Undo, Redo and Merge, and Merge names its target
      ("Merge 2 -> c1").
    • The save message no longer prints over the toolbar.
  • Cluster table.
    • Numbers are right-aligned monospace.
    • A selected row keeps its red and orange scores readable and shows its
      selection colour in a bar at the left edge.
    • IDs no longer shift when a row is selected.
    • The tags column appears only when some cluster has tags.
    • Clicking a row's text now selects the cluster. It used to start a text
      selection, and the Similar table had the same problem.
  • New default layout.
    • Three tab groups sit along the top: Shape, Compare and Assess.
    • Below them, a Time group (Raster, Drift, Contam·time, PSTH) sits beside the trace.
    • Saved per-dataset layouts are kept.
  • Plot axes sit outside the data.
    • Tick labels live in their own margins and units are axis titles, so labels no longer
      collide with data or clip at pane edges.
    • Trace channel numbers have a gutter, and the trace has a time axis.
    • The trace is drawn in neutral grey, so selection markers stand out.
  • Clearer panes.
    • CCG: y-axis, ±50 ms ticks, a visible refractory band and a sparse-data note.
    • PSTH: step bars and the per-event breakdown.
    • Raster: selected clusters in their selection colour and the rest in neutral grey.
    • Stats: marks where the selected cluster falls.
    • Quality: every sub-score coloured and the weakest bold.
    • Drift: "no measurable drift" instead of repeated ticks.
    • Contam·time: says when there is too little data.
    • Waveforms: use the cell height and show a scale bar.
    • Probe: drawn to scale with channel labels.
  • Dialogs.
    • Quit: the destructive "Quit without saving" is red, and "Save & quit" is the focused default.
    • Load error: shows the full path.
    • Loading: larger, readable loading screen.
    • Help: scrolls instead of clipping.
  • Contrast.
    • Secondary text, unchecked checkboxes, and plot grid and reference lines now meet
      WCAG AA in both themes (pinned by a unit test).
    • Light-theme window shadows are soft.

0.2.1

Choose a tag to compare

@github-actions github-actions released this 28 Oct 15:22
0.2.1
0569197

[0.2.1] - 2026-10-28

Fixed

  • A GPU backend that rejects a compute kernel no longer kills Sorrel. Kernel
    creation now runs under wgpu error scopes, so a driver or shader-compiler
    failure (FXC on D3D12 was the case seen) leaves trace preprocessing on the
    CPU and logs one warning naming the adapter and backend, instead of
    panicking at startup. Uncaptured wgpu errors on Sorrel's own devices are
    logged rather than fatal.
  • sorrel gpu-check reports "kernels unavailable" per adapter and carries
    on with the others instead of panicking. It exits non-zero on a CPU/GPU
    mismatch, or when no compute-capable adapter can run the kernels.

Changed (release)

  • First release on winget (winget install Caniko.Sorrel). The release
    workflow now submits the manifests through the GitHub API; 0.2.0's
    submission failed because wingetcreate needs .NET, which hosted
    runners lack under wine.
  • The workspace crates publish to crates.io from CI in dependency order,
    through simit's trusted publisher, instead of by hand.
  • Every change now runs the Windows build on a real windows-2025 runner:
    gpu-check on DX12, headless qc and report, a GUI launch with a
    screenshot, and a Python wheel install.

0.2.0

Choose a tag to compare

@github-actions github-actions released this 27 Oct 22:11
0.2.0
24c968c

[0.2.0] - 2026-10-26

Fixed (data integrity)

  • Old SpikeInterface phy exports load. Their amplitudes.npy is int16 and
    their channel_positions.npy int64. Integer arrays read where floats are
    expected are now widened instead of rejected.

  • sorrel auto changes:

    • Geometry check. On recordings whose channel positions look like
      indices (< 5 µm apart, e.g. tetrode sorts), it warns and tags every
      unit review:geometry. Bombcell's and UnitRefine's spatial metrics are
      meaningless there. On two labelled tetrode recordings it called 58 of 65
      human-kept units noise.
    • Reruns are reproducible. The random spike sample is seeded, and the
      analyzer cache is keyed on the extension parameters.
    • No full recompute after a save. The cache key is now the spike-train
      values rather than the file bytes.
    • bc:* reason tags follow SpikeInterface's rules. Bounds are
      inclusive and NaN metrics fail where Bombcell says they do. Previously
      the tags could name a rule the unit had passed. Labels were unaffected.
  • Per-spike arrays stored as (n, 1) columns, as written by Kilosort 2 and
    SpikeInterface's export_to_phy, now load. They used to fail with
    "expected 1-D array".

  • Saving no longer corrupts the next session. Ctrl-S on a phy /
    Kilosort directory now reseals the journal against the freshly written
    spike_clusters.npy, and the binary seals every journal against its
    data on open, so a reopen loads the saved state once instead of
    replaying every edit (and every split) a second time on top of it.
    Journals sealed against other data fail closed with a message naming
    --discard-journal. SortingAnalyzer, NWB and rez.mat sessions keep
    their journal as the source of truth and are never resealed.

  • The journal file is sorrel.journal (it was never SQLite); a legacy
    sorrel.sqlite is still picked up with a warning.

  • quality_metrics.csv accepts tab- and semicolon-separated files;
    cluster_KSLabel.tsv seeds labels when there is no cluster_group.tsv
    (and is no longer mistaken for a numeric metric); --export-qc works
    for every backend; the QC JSON key is firing_rate like the TSV.

  • spike_clusters.npy is saved in spike_times.npy row order. It used to be
    written in time order, which misaligned it with amplitudes.npy,
    pc_features.npy and the other per-spike arrays whenever the source was
    unsorted or had simultaneous spikes in different clusters.

Fixed (GPU)

  • No more crashes on the OpenGL fallback. When wgpu picks a GL adapter
    (old Intel iGPUs, NVIDIA without a Vulkan driver, VMs, WGPU_BACKEND=gl),
    eframe gets no compute support; trace CMR and high-pass now stay on the
    CPU there instead of panicking on pipeline creation.
  • Long trace windows no longer crash on any GPU. Windows longer than
    about 2 s at 30 kHz exceeded the 65,535-workgroup and 128 MiB
    storage-buffer limits; the kernels now check device limits and the trace
    falls back to the CPU.
  • OpenGL on NVIDIA no longer loses the device. wgpu's indirect-call
    validation builds a compute pipeline on every device, which NVIDIA's GL 3.3
    EGL context cannot run. Sorrel issues no indirect calls, so it is off for
    every Sorrel wgpu instance (WGPU_VALIDATION_INDIRECT_CALL=1 restores it).
  • The Linux tarballs and the AppImage use the host's GPU drivers. They
    used to ship a Nix-built binary (glibc 2.44, /nix/store loader) that
    either did not start on Ubuntu or Fedora or found no GPU. They are now
    built with cargo-zigbuild against glibc 2.31 and load the host's
    Vulkan/GL libraries, and with them its Mesa or NVIDIA driver. The
    AppImage wraps that binary instead of a Nix closure.
  • The Windows release builds again. aws-lc-sys (via libp2p-quic)
    needs winpthreads' <sched.h>, which the MinGW compiler did not see.

Added (automatic curation)

  • sorrel auto: Kilosort output in, curated session out. An embedded
    SpikeInterface (≥ 0.105) pipeline runs:

    • redundant-unit detection
    • the similarity_correlograms and slay merge presets
    • Bombcell and UnitRefine labels on the merged units
    • with --llm, a Claude verdict on the units the classifiers disagree on
      or are unsure about, and on merges only one preset found

    The structured numeric evidence and each verdict are kept in
    evidence.json. Everything is applied as one undoable batch.
    See Automatic curation.

  • Cluster tags. Every automatic decision records its source (src:*,
    merged:*, bc:*, conf:*), and uncertain ones get review:*.

    • Tags are journaled and undoable (CurationCommand::Tag).
    • They are saved to cluster_sorrel_tags.tsv (a phy column) and to a
      tags category in curation.json.
    • The cluster table has a tags column and a review filter, and its
      filter box matches tags.
    • A GUI edit clears the cluster's review:* tags and adds src:human.
  • sorrel apply --curation FILE imports a SpikeInterface curation.json
    (labels, tags and merges) as one undoable batch. Importing the same
    document again changes nothing.

  • sorrel report --tag PREFIX renders only matching clusters
    (--tag review: gives the review queue).

  • sorrel serve adds tag and evidence, and list_clusters takes a tag
    filter.

Added (CLI and interchange)

  • Python wheels on PyPI as sorrel-ephys (pip install sorrel-ephys,
    then import sorrel; PyPI's sorrel is an unrelated project), also
    attached to every GitHub release: one cp38-abi3 wheel per
    platform (manylinux_2_34 x86_64 / aarch64, win_amd64, macosx_11_0_arm64)
    with the sorrel Python API and the GUI binary, assembled by
    nix/wheel.nix from the release cross builds and uploaded by the release
    workflow with PyPI trusted publishing. sorrel.launch also finds
    the bundled binary when the kernel's PATH lacks the environment's
    scripts directory.
  • Windows packages on winget (Caniko.Sorrel) and Chocolatey
    (sorrel).
    The release workflow submits both from the release's
    Windows zip on every stable tag. The repository now carries the
    LICENSE-MIT and LICENSE-APACHE texts its MIT OR Apache-2.0 license
    names.
  • sorrel gpu-check lists every GPU adapter wgpu can see (vendor, backend,
    driver) and checks CMR, high-pass and mean-snippet kernels against the CPU
    on each, exiting non-zero on a mismatch. Headless GPU contexts (tests,
    this command) honour WGPU_BACKEND, WGPU_ADAPTER_NAME and
    WGPU_POWER_PREF, like the GUI.
  • clap command line with subcommands: qc, suggest [--json],
    apply --rules FILE [--dry-run] [--save] (QC-threshold auto-labels as
    one undoable batch), report (self-contained HTML with per-cluster
    metrics, template, ISI and ACG as inline SVG), serve (JSON-RPC 2.0
    over stdio in MCP shape: metrics, suggestions, SVG plots, journaled
    relabel / merge / split / undo / save), diff A.tsv B.tsv (confusion
    table, Cohen's kappa, disagreements), journal dump|replay,
    clear-cache. sorrel <DIR> [flags] still opens the GUI.
  • Full phy export (Cargo feature phy-export, on by default):
    sorrel export-phy <DIR> --out OUT [--copy-raw], the export_phy
    serve tool, an Export phy button and Session.export_phy(out) in
    sorrel-py all write a complete phy template-gui directory from any
    backend. A phy source is copied with its curation applied. SortingAnalyzer,
    NWB and rez.mat sessions get mean templates computed from the raw trace.
    params.py points at the raw file; --copy-raw (or an NWB source, whose
    trace lives in memory) streams it into recording.dat.
  • Every save also writes SpikeInterface's curation.json
    (format_version 2) next to the phy files; labels (and, for
    SortingAnalyzer folders, pending merges and splits) round-trip through
    spikeinterface.curation.apply_curation. The file is read back on open
    to seed labels. SortingAnalyzer unit ids are preserved.
  • sorrel-py: in-process sorrel.Session (open, qc, suggest, labels,
    set_label, merge, split, undo, redo, save, curation) sharing the GUI's
    journal; open_analyzer keeps its directory by default so the
    curation survives, and read_curation loads it for SpikeInterface.
  • Library: Session::version() (monotonic cache key),
    Session::reseal, applied_commands, primary_template;
    Journal::replay_at, n_records; sorrel_data::open and
    sorrel_io::detect shared by the binary and the bindings;
    DataProvider::unit_id.

Added (library, for the science views)

  • sorrel_compute::psth (peri-event histogram plus per-event relative
    spike times) and sorrel_io::Events (events.csv time,label in
    seconds, or events.npy), the data side of an event-aligned view.
  • sorrel_data::spike_depths: per-spike depth from PC-weighted centre of
    mass with a template-peak fallback, the data side of a real drift map.
  • sorrel_compute::subtract_channel_median_grouped: common-median
    referencing within each shank, threaded through sorrel-render as
    build_trace_vertices_{cfg,gpu}_shanked and a public
    apply_preproc_cpu.

Changed (performance)

  • ClusterIndex::from_provider merges the per-cluster spike buckets with a
    heap instead of an argmin scan: 1 M spikes at 1000 clusters 1.07 s →
    75 ms, at 100 clusters 116 ms → 23 ms (bench
    seed_amplitudes_cache, SORREL_BENCH_CLUSTERS).
  • .npy files are memory-mapped and, when the on-disk type already
    matches, copied with one memcpy instead of decoded element by element;
    peak memory per array drops from 2× to 1×. pc_features.npy and
    templates.npy are shared (Arc) between the provider and the cluster
    index instead of copied.
  • mtscomp .cbin + .ch recordings (the IBL archive format) open
    directly: point params.py:dat_path (or --dat) at the .cbin and
    windows are inflated on demand with a small chunk cache.

Added (UI)

  • Export phy b...
Read more