Skip to content

Release 6.0.0 - #68

Merged
a9lim merged 390 commits into
mainfrom
release/6.0.0
Nov 2, 2026
Merged

a9lim merged 390 commits into
mainfrom
release/6.0.0

Conversation

@a9lim

@a9lim a9lim commented Nov 2, 2026

Copy link
Copy Markdown
Collaborator

Version: __version__ is 5.4.1 here (from main). a9 bumps it to 6.0.0 on this branch before merging, which makes release.yml tag v6.0.0, publish drowse.ai to PyPI and cut the GitHub release. Merging without the bump is a no-op.

Main merged in: 6.0 already carried 5.4.1's probe-reader and mixed-steering fixes in its own form, so the merge keeps 6.0's side; it adds 5.4.1's refusal to extract a folder of more than two nodes as a vector. drowse.ai pins this repo as a submodule, and its parity changes for 6.0 land there separately.

6.0 reads the model's own parts. The Jacobian lens gains its input family:
four kinds (R, J, S, K) at two places in a block, fitted by one estimator;
neurons and heads become things you read, probe, gate on and ablate; any
generated token can be replayed layer by layer; every steering term can be
scoped to exact layers; and the dashboard is redrawn in Ledger, the Standard
Logits design system, around rooms that read the model token by token, with
all steering in one place. The persisted formats and the browser seam freeze
at this release.

What's new

Lenses: two families, four kinds, two sites

  • The S family. Beside the R family (R under RelP rules, J standard: what a
    vector is disposed to make the model say, read through W_U), the S family
    (S under RelP rules, K standard) reads what a vector has read, as a
    footprint z over the input embedding. One R and one S source are selected
    per model and resident together.
  • Two sites. Every kind fits at out (a block's output: where a neuron
    writes and a head reads) and mid (after attention: where a neuron reads and
    a head writes). A read at a site the source lacks says so; it never falls
    back to the other site.
  • The depth rule. Which family reads a place is a question of depth: S
    early, R late, both weighted in a crossover band (a 15–35% prior).
    drowse lens top (now with --site) and session.lens.read(vector, layer, site, of="residual" | "direction") read every layer that way and say which
    lens they used. Residual S reads are centred on the neutral mean at their
    site; direction reads are not.
  • One estimator. lens.fit.fit_lens is transport, ported from neuron-lens:
    per-block maps written out by hand over a verified block description
    (BlockSpec), one sweep per seed covering every layer and both sites, no
    autograd. drowse lens fit --kind r|j|s|k --sites out,mid fits any kind;
    local fits average 64 documents by default and record each site's split-half
    difference per layer (the signal for whether more documents would help;
    --no-split-half skips it). Fits checkpoint every --checkpoint-every
    documents and every ten minutes, and Ctrl-C or SIGTERM finishes the document
    in flight and saves. Dense decoders only: mixture-of-experts, hybrid and
    quantized blocks raise UnsupportedBlockError.
  • New providers. drowse lens fetch MODEL rs-r / rs-s bind
    stdlogits/rs-lenses' R and S lenses at both sites (Qwen3-8B, Gemma 4 12B).
  • The S token mask. An S read ranks only tokens the model saw often enough
    in text: counts from the bound neuron-lens catalog, else from
    drowse lens counts MODEL (streams the lens corpus through the tokenizer, no
    model load), else the tokenizer's rules. lens show and lens top name the
    source.
  • Steering and probing through S. slens/<word> steers toward having read
    a token and probes its footprint z (weighted toward the early layers where S
    is the faithful read); it gates like jlens/ (@when:slens/owl>3).
    lens decompose --dictionary tokens-out|tokens-in|neurons decomposes a
    direction in the Mahalanobis metric.

Units: neurons and heads

  • neuron/L8n344 and head/L20h17 are a fourth read family
    (session.units): probes, gates (no probe needed) and readings over a
    per-unit scale.
  • Static reads (drowse unit read, the ninth verb): what a neuron writes
    and fires on, per pole, and what a head copies or suppresses and reads,
    each through the depth rule, with hub tokens optionally hidden by
    neuron-lens's layer-contrastive z (--hide-hubs). unit top TOKEN --by writes|fires finds the neurons behind a token; unit find SELECTOR the
    neurons a direction is made of.
  • Unit ablation. !neuron/L8n344 and !head/L20h17 mean-ablate a unit
    exactly (the attention sink keeps its own activation); 0.3 neuron/L8n344
    pushes along a neuron's write. Throughput holds at 99% of vanilla with eight
    neurons and two heads ablated (SmolLM2-360M, MPS).
  • The neuron-lens catalog. drowse unit fetch MODEL binds
    stdlogits/neuron-lens at a pinned commit for Qwen3-8B and Gemma 4 12B: a
    label for every neuron pole and head (written by Claude Haiku 5.5), firing
    rates and token counts, with links to neuron-lens.com. A bound catalog sets
    the unit reading scale (its act_top, so 1.0 is "as strong as this unit
    usually fires in text") and the S token mask. Without one, readings divide
    by the neutral statistics' scale (with a floor that does not shrink with
    depth) and are labelled relative to the neutral text.

Token anatomy and unit activity

  • session.token_anatomy(node_id, raw_index) replays one generated token
    through one tapped forward: what the residual reads as through both lenses
    at every layer, what attention, the MLP and the steering added, the neurons
    and heads that pushed the token, and where the top heads looked.
  • session.unit_activity(node_id) reads every neuron and head over a turn:
    the strongest units with their peak token, traces, and one token's whole
    population. Both are served under /drowse/v1/sessions/{id}/instruments/.
    Both read a prompt turn too: its captured tokens replay through the turn's
    prompt capture, unit activity in one prefill.
  • The geometry token replay carries each probe reading's per-layer whitened
    coordinates (subspace_coords_per_layer), where the probe plot places the
    token, whether or not the generation streamed them.

Steering

  • Per-term layer scoping. -0.5 deceptive{12-20}, !jlens/Paris{24-30}@response,
    0.4 personas%hacker{workspace}. A clause restricts a term to those of its
    fitted layers; naming an unfitted layer is a 422 that lists the fitted ones.
    The layer-selector language (--layers too) gains inclusive ranges.
  • Structured terms. Steering validation returns each term's fields
    (parts: kind, coefficient or along/onto, phase, token window, gate,
    projection, the layers it acts at and their share).

The dashboard

  • Redrawn in Ledger (@stdlogits/ledger 0.1.1): flat, borderless, one depth
    accent. The header holds six rooms, in order: Workbench (thread, page,
    Inspector), Units, Lens, Probes, Artifacts and Model. Streamed numbers use Ledger's MorphText
    directly: since 0.1.1 it shows a value that changes faster than its morph as
    plain text until it settles. Wherever the dashboard chooses an order it is
    neurons and heads, lenses, linear probes and vectors, manifolds, SAEs.
  • The Inspector shows the selection: a token (alternatives, the token
    anatomy, readings, steered or unsteered), a probe's geometry, a unit. With
    nothing selected it holds the instruments: the unit probes, the lens, the
    geometry probes, the SAE's features, sampling.
  • Token by token, everywhere. The Units, Lens and Probes rooms are
    readouts of the conversation at one token cursor shared with the workbench:
    a strip of the whole conversation's tokens, prompt tokens included, stepped
    with ← and → (across turns), Home and End (the ends of a turn's thinking or
    text) or a click, or the whole reply. Stepping in a room selects that token
    in the workbench, and the workbench's selection moves the rooms. Units
    reads the units strongest at the token (each at its peak, whole), or a whole
    layer at once; the chosen unit shows its activity token by token, what it
    writes, and its Push and Silence. Lens reads each layer through both
    lenses at the token: what the S lens reads there and what the R lens says,
    weighted by the depth band, steered or unsteered, with the lens probes;
    whole, the lens probes over the reply, or with none, the reply's last token. Probes lists the linear probes
    and vectors (the value at the token and the trace over the conversation),
    then the manifolds (where the token sits, placed in the probe's fitted
    geometry), then SAE features. None of them sets anything up: a missing
    catalog, lens or probe is one link to the Artifacts room.
  • The Artifacts room is where everything is prepared, in the order of
    priority: the neuron-lens unit catalog, the lenses (both families at both
    sites against the depth band, with split-half by layer, fetched or fitted),
    probes (built, installed, combined), templates, roles and SAEs. Every link to
    setup leads to its section, and the command palette (⌘K) finds each by what
    it does ("fit a lens", "build a probe"). The Model room shows the model's
    layers, neurons and heads, device, versions and what is prepared for it.
  • Steering in one place. Every term is made in the strip of chips over
    the composer. "+ Steer" picks, in the order of priority, a neuron or head
    (by ID, by a word it writes, or among the latest reply's most active
    units), a lens token, a concept, a manifold position or an SAE feature; the
    palette opens it on any kind ("steer", "push", "silence"). The instruments
    keep one-click shortcuts that land in the same strip: Push on a lens word or
    an SAE feature, Push and Silence on a token's neurons and Silence on its
    heads, Push +, Push − and Silence on a unit (a head is silenced, never
    pushed). The new chip opens its editor under the strip and leaves the view
    it came from as it was, so a Push from a token's anatomy keeps the token in
    view. Chips sort neurons and heads first; the expression keeps its order.
  • Recipes are chips. The term editor sits under the chips: signed
    strength, a layer strip, phase and token windows, "Only while…" gates, a
    relation to another concept, removal. The dashboard takes no typed recipe
    text: a recipe it cannot draw (from an agent or the API) stays one
    read-only chip and is sent as written. Agents, HTTP, the CLI and Python keep
    the full expression language.
  • Stopped replies. A reply cut by Stop or a dropped connection is recorded
    as cancelled on its loom node and marked "stopped early".
  • Slow pages are no longer cut. A page that reads slower than the model
    writes used to be disconnected (1013 once 256 events queued), which ended
    the reply. Now generation never waits on the reader: the server drops the
    frames it cannot deliver, sends one resync, and the page catches up from
    the tree, so the reply keeps its own finish reason. The server's keepalive
    ping no longer times out a busy reader either.
  • Lean token rows. A saved token row, generated or a prompt token,
    keeps only what the thread's tint, the rack's trace and the tree filter
    draw: every probe's score and a geometry probe's share and coordinates, at
    six significant digits. The token view and the hover replay the rest of the
    token (the lens and SAE replays now return the attached probes' readings
    too), and each reply keeps its settled reading once on its node. A row is
    about 2 kB a token with the 17 default probes on SmolLM2-360M (the token's
    whole envelope is about 118 kB): ten long replies (8,000 tokens, 21 probes)
    autosave in 24 MB, well under the dashboard's 64 MiB limit. A prompt
    token's row was kept whole (about 42 kB) because nothing could replay it;
    its turn now records where it was measured (the steering, the render and a
    digest of the prompt before it), so the token view and the hover replay
    prompt tokens too, Steered or Unsteered. A pasted prompt of 2,500 tokens
    saves in 4.6 MB, where it used to pass the autosave limit on its own.
  • Gated replies replay. A reply steered with an @when: gate replays one
    decode position at a time, firing the gate where generation did, so its
    token view, anatomy and unit activity work after a reload.
  • The eye. drowse's icons (the tab icon, favicon.ico, the app and touch
    icons) are Ledger's mark: the closed eye on the depth ramp, in light and
    dark. The per-state tab icons and the Fluent artwork are gone. A
    browser asking the dashboard for a file it lacks (/apple-touch-icon.png)
    gets a 404 rather than the page.

Performance

  • A curved probe reads all its layers in one stacked pass, bit-identical to
    reading them one at a time: the served dashboard with months attached went
    from about 16 to about 50 tok/s on SmolLM2-360M (MPS).
  • A new gate holds the served dashboard's instrumented decode (17 probes with
    subspace coordinates, the live R readout at every layer, eight
    alternatives, a loom row and a WebSocket frame per token) at ≥ 50% of
    vanilla; it measures 61–68% on SmolLM2-360M (MPS) across the release runs.

What breaks

Formats (all frozen at 6.0.0; readers accept only these)

Format 5.4 6.0
measurement envelope v1 v2 (lens binding per family, the units channel, footprint z, reading scale meta)
loom token sidecar 2 3 (token rows carry envelope v2; a generated or prompt row keeps only scores and each geometry reading's fraction and coords; an authored node's prompt_capture anchors its prompt rows' replay)
loom tree_format 2 2 (finish_reason may now be cancelled; every node carries aggregate_measurements, null or its reply's settled envelope; a node's token fields add prompt_capture)
transcripts v2 v3 (finish_reason on generated turns)
dashboard conversation snapshot v7 v8 (no typed recipe; chips only; tree nodes carry prompt_capture)
neutral cache v4 v5 (unit statistics and mid means; capture version 2)
lens format v7 v7 (adds an optional per-site split_half; odd only in checkpoint.json)
lens selection / binding 2 / 2 2 / 2
neuron-lens catalog binding – 2 (new)
lens token counts – 1 (new)
manifold.json, template.json, .drowse v10, v2, v1 unchanged

Bundled concepts

Three bundled axes had the model's own default answers at or past one pole
(the neutral mean sat at s = 1.01–1.20 along honest.deceptive on every
SmolLM2-360M layer, where 1 is the deceptive pole), so 0.5 honest pushed
deceptive-ward on all 32 SmolLM2 layers and 34 of 36 Qwen3-8B layers. They are
now one-node concepts measured from the default answers:

Removed Now Old spelling → new
honest.deceptive deceptive 0.5 honest → -0.5 deceptive
refusing.compliant refusing 0.5 compliant → -0.5 refusing
sincere.manipulative manipulative 0.5 sincere → -0.5 manipulative

A positive strength pushes toward the concept, a negative one past the
default (more honest, compliant or sincere than the model already is). The
table maps direction, not strength: a one-node concept runs hotter than the
old axis did, and SmolLM2-360M stays coherent to about ±0.15 (Qwen3-8B to
about ±0.35). The probes read 0 at the neutral baseline and 1 at the concept
(SmolLM2-360M's own replies read near 0; Qwen3-8B's read about 0.5, since the
bundled neutral corpus was written by another model), so gates and tree
filters on the old axes need new thresholds (for example agg:deceptive > 0.5
where you wrote agg:honest < 0). The old names do not resolve, and there is
no alias; the first run of 6.0 removes the old default/ folders and their
fits with a warning. The bundled roster is still 17 concepts.

Recipe composition

A regenerate's sampling now ranks cast < anchor < call < modifier: a sampling
field the call sets beats the turn it anchors on (in 5.4 the anchor won, so a
regenerate ran at the old turn's temperature and length, not the ones it was
sent with; golden recipe-compose-v1.json).
A regenerate that sends no sampling still reproduces the anchor exactly.
Steering, thinking and the system prompt keep cast < call < anchor <
modifier, and the seed still resolves modifier > call > anchor > cast. The
dashboard's A/B comparison sends no sampling of its own for that reason.

Removed and renamed

  • lens.fit.fit_jacobian_lens → lens.fit.fit_lens(kind=, sites=); the
    prompt_batch and vjp_mode knobs are gone (so is lens fit --prompt-batch, and the WebMCP lens-fit schema's prompt_batch).
  • RelpUnsupportedError → UnsupportedBlockError (422).
  • LensKey.side (output/input) → LensKey.family (R/S);
    lens_source_side → lens_source_family; lens_family() removed;
    load_lens/load_lens_sidecar and LENS_SOURCES.active take a family
    ("R", "S"). The on-disk spellings (active.json's output/input
    keys, a manifest's estimator_policy.direction) are unchanged.
  • The dashboard's "Edit as text" and text chip are gone.
  • WebMCP's drowse_navigate moves through the rooms: room (workbench,
    units, lens, probes, artifacts, model), section (any room's
    section, which selects its room: lenses, build, saes, …), page and
    token_details. 5.4's view, Controls section, expanded,
    presentation, left_sidebar and headers_visible are gone; instrument,
    loom_view and drawer remain.
  • session.probe_geometry is gone (the geometry route serves a host payload
    taken at attach).

The native WebSocket

  • A client must accept a new resync {dropped} frame: the server skipped that
    many token and tree_mutated frames for a slow reader, and the rest is in
    GET /tree. It always precedes the done of a reply it affects. The
    overflow close (1013 at 256 queued events) is gone; a send the peer accepts
    nothing of for 30 s still closes 1013.
  • done.result gains tok_per_sec and elapsed, the engine's own timing.

CLI

  • New: drowse unit (read, stats, top, find, fetch, ls, rm);
    lens counts; lens fit --kind s|k, --sites, --no-split-half;
    lens fetch rs-r|rs-s; lens top --site; lens decompose --dictionary;
    {a-b} ranges in every --layers.
  • Changed: lens fit --prompts defaults to 64 (was 100); serve also selects
    an S-family lens at startup and narrates the layers DLS drops, which is the
    one report of a degenerate axis (compute_dls_axes no longer raises a
    UserWarning when no layer passes).
  • Removed: lens fit --prompt-batch.

Migrating from 5.4

  • Neutral statistics recompute on first load (cache v5); expect one
    neutral pass per model.
  • Saved conversations from 5.x (loom trees with token sidecars,
    transcripts, dashboard backups and saved chats) do not load. Export
    anything you need from 5.4 first.
  • Manifolds, templates, packs and lenses carry over unchanged. A local
    lens fitted with 5.4's default of 100 documents is not replaced by a
    64-document fit: pass --prompts 100 (which also adds the mid site) or
    -f. Lens homes from before 5.4 still need
    python scripts/migrate_lens_v7.py --home ~/.drowse.
  • The open dashboard tab may keep running 5.4's dashboard after the
    upgrade: 5.4 served drowse.js and the page with no Cache-Control, so a
    browser could reuse them for a while without asking. Reload once with the
    cache bypassed (Shift-reload). From 6.0 every dashboard file says
    no-cache, so later upgrades show at the next load.
  • Code that called fit_jacobian_lens, LensKey.side or the side-named
    lens helpers moves to the names above. Steering expressions from 5.4 keep
    their meaning, except the three recast concepts (0.5 honest is now
    -0.5 deceptive); numbers and layer clauses now take ASCII digits only.
  • drowse.ai catches up after this release: its TypeScript grammar (layer
    clauses, unit atoms), its lens reader (S/K kinds, mid, split_half), its
    hosted fit (fit_lens(kind=, sites=("out",))), envelope v2 with the lean
    generated rows and the node's aggregate_measurements, the sampling order
    of recipe composition, the three one-node concepts in its catalog, and the
    Ledger shell (its own package moves to Ledger 0.1.1 with the submodule).
    Until its submodule pin moves, it keeps reading out-only J/R packs.

Verification

  • CPU: the full suite (ruff, pyright, webui types, the browser goldens,
    the package-isolation build and the webui build with a dist-drift check)
    runs in CI on Python 3.11, 3.12 and 3.13 on this PR. Locally on macOS
    (Python 3.13), on this branch with main (5.4.1) merged: pytest -m "not gpu and not perf" 5,973 passed, 7 skipped; svelte-check 0 errors, the
    Ledger ratchet at 0, two builds with no drift; npm ci on Node 24's npm.
  • MPS, SmolLM2-360M-Instruct: tests/gpu 64 passed, 1 skipped; the
    throughput gates: steered 97% of vanilla, ablation plus additive 89%, unit
    ablation 101%, the served dashboard 67% (bar 50%). Served walks: steered replies (±0.15 deceptive),
    chips built and reloaded, Stop recorded as cancelled; ten long replies
    (8,027 tokens, 21 probes) autosaved in 23.6 MB and drew the same after a
    reload; a page throttled to read slower than the model got one resync and
    drew all 1,024 tokens with no close; a gated reply's token view replayed
    after a reload; a pasted 2,513-token prompt saved in 4.6 MB and its tokens
    replayed Steered and Unsteered to the captured values; every room walked
    token by token, prompt tokens included, the same after a reload; each
    "+ Steer" kind, and a neuron silenced from each instrument, changed a
    temperature-0 reply;
    no console or HTTP errors at 1440, 1024 and 375 px, light and dark.
  • MPS, Qwen3-8B: on a sample of 20 neurons and heads, unit reads agree
    with neuron-lens's published tables (every S half in its top 64; head copy
    scores within 1e-5; late heads recomputed in fp32 match 64/64), lens top's S reads match an
    independent footprint over neuron-lens's kept tokens (top-1 140/140), the
    catalog scale puts the strongest neurons at 1.6–4x their catalog act_top,
    and a served walk (steered reply, unit view, Stop → cancelled) ran clean.
    deceptive, refusing and manipulative fit on all 36 layers, and 0.35
    and -0.35 deceptive push each way on every layer and in served replies.
  • CUDA: not checked for this release (the CUDA machine was busy). The
    CUDA paths (flash, cuda extras, --cuda-graphs) are unchanged from
    5.4 apart from the new lens and unit code, which ran only on MPS and CPU.

Known open items

  • religious.secular has the default answers at its secular pole on most
    layers (19 of 32 SmolLM2-360M layers and 28 of 36 Qwen3-8B layers at or
    below s = 0.05), the shape the three recast concepts had; DLS keeps 22 of 32
    and 34 of 36 of its layers. What to do with it is open.
  • A steered replay under a thinking-phase window (@after, @thinking) on a
    model that thinks is refused; the token view says so and shows the
    unsteered replay.
  • The neuron-lens catalog binding cannot yet check that the bound weights are
    the catalog's (neuron-lens publishes no weights identity).
  • How hard a neuron push lands depends on its layer. The dashboard starts one
    at 3 on a dial to ±8: on SmolLM2-360M a top writer's word first shows near 3
    from layers 26–27, the last layer's writers loop by 2, and early layers' only
    shift the theme even at 8. Agents, the API and the CLI take any strength.
  • The Units and Probes rooms read a reply as it was generated; only the Lens
    room replays without the steering.

Credits

Drowse is written by a9lim with Claude. Unit reads follow neuron-lens's
definitions; the catalog's labels are by Claude Haiku 5.5.

a9lim added 30 commits October 31, 2026 16:44
slens/ readings centre the residual on the neutral out mean, but probe_hash
was unchanged from the uncentred reading and did not bind the means, so a
transcript scored uncentred or under other neutral statements validated as
the same probe. The head is now slens-footprint-z-v2 and folds in a digest of
the means at the probe's layers, taken once per means mapping.
# Conflicts:
#	drowse/lens/AGENTS.md
#	drowse/server/AGENTS.md
#	webui/src/lib/api.ts
#	webui/src/lib/runtime/contracts.ts
#	webui/src/lib/webmcp/catalogue.ts
The node-replay lane made LensInstrument.read's of= required; the unit
reads lane called it without one. A unit's write and read rows are weight
directions, so they take the direction form, never the residual form
centred on the neutral mean at the site.
The anatomy cleared the lens readout, so the lens probes pinned during
generation left the Probes section, and a token with a captured lens
readout but no replay record lost it. The lens pins now follow the
steering switch where the anatomy shows (steered, it replays the
generation they were captured in), and a token the anatomy cannot
replay keeps the lens readout's view. The WebMCP token inspector gates
an unsteered lens replay on the same rule as the view.
On a narrow view (the phone, a 300 px Inspector) a unit's catalog label
takes its own line under the ID, meter and value, and the layer table's
column switch and fold sit in a row below the heading. The heads' heat
rows tint an attended token up to Ledger's 9% (22% is a unit's firing).
An absent cell's tip says where the lens reads instead of the engine's
fitted-layer list.
… the room, ablate unit terms at the neutral mean

The Units room's Heads list ranked from the node's top, which on SmolLM2
holds only neurons; heads now rank by their own write at the atlas's token
(rankHeads over the population), with an empty-state line when nothing
ranks. The selected unit's summary read the + pole whatever fired; it now
reads the side that fired here (peakPole, as the unit view opens), for its
writes, label, link and rate, and labels are kept per pole.

The term card's ablate switch kept a push's signed alpha, so -0.2 ablated
amplified the unit; switching now takes the operation's own alpha (1, the
neutral mean; 0.2 back to a push), and one rule (unitTerms.ts) refuses a
negative ablation alpha and a head push in the snapshot validator and in
WebMCP's rack edit.

The unit probe row drops its detach marker, which sat it 40 px left of every
other probe row; the unit view it selects detaches it. On touch the room's
strip and its more button reach 44 px, the key hint hides, and a narrow
window takes a short search placeholder.
…e the GPU section

The Units room's first load aborted the server on MPS (failed assertion
_status < MTLCommandBufferStatusCommitted). The three crash reports (the
builder's, the reviewer's and a fresh repro) show the same pair: a request
thread copying a tensor off the device (tolist) while another uploaded one
(to). The lock-free GET /probes copied each geometry probe's resident
node_coords on an AnyIO worker while the room's node replay uploaded its
ids, and the token replay rendered and uploaded those ids outside the
exclusive section.

The probe listing now serves a host copy of the node coords taken at attach
(AttachedManifoldProbe.node_coords_host); the inspector's geometry, which
copies resident whitened factors, runs under the session lock and inside the
exclusive section (session.probe_geometry); and the token replay renders its
ids inside the section. A stress loop (a reply cancelled mid-way, the room
opened straight after, the probe listing and geometry hammered) aborts the
pre-fix server in its first round; the fixed one stays up through ten rounds
and 1785 listings, and under a dispatch-mode guard that flags any MPS op made
without the GPU lock it records none.
# Conflicts:
#	tests/units/test_unit_catalog.py
#	webui/package.json
# Conflicts:
#	drowse/server/response_models.py
#	drowse/web/AGENTS.md
#	webui/package.json
#	webui/src/lib/types.gen.ts
The term editor is the one editor: SteerCard, AtomSteerCard, RackCard and
TermView stay deleted. One UnitSteerEntry (mode "unit", not an atom
mode); one unit row rule in the snapshot validator (lib/unitTerms.ts plus
no clause); an ablation writes its coefficient like every other term
("1 !head/L28h12").
A unit term in the in-place term editor follows lib/unitTerms.ts: one
mutator (setUnitTerm, keyed through parseUnit; addUnitToRack, unitKey and
UNIT_DEFAULT_ALPHA removed), patchSteerEntry refuses an edit that breaks
the rule (a head push, a negative ablation), and the switch between push
and ablation is setUnitOperation's. The editor shows the unit's catalog
label (the chip too, unitTermLabel), opens its unit view, and draws its
layer on a fixed LayerStrip (no onchange: no presets, no painting), since
the grammar refuses a clause on a unit. The dead unitTermExpression writer
is gone: formatUnitTerm is the one writer.
An slens/<word> term (toward having read the word; jlens/ pushes toward
saying it) is a rack atom like jlens/: a chip, the term editor with its
layer strip and clause, the snapshot rows and WebMCP's rack edit. The Lens
panel steers by a word either way (Steer, As read; As read checks the
expression first, so a session without an S lens says so). The steering
docs no longer claim an slens push is refused.
An output kind's target is the last block's output, so its transport at
that layer's out is exactly the identity (no block lies between, under the
standard and RelP rules alike) and the fit stops a layer short there.
lens/read.py::output_transport is now the one place a read meets that
layer: plan_reads' R half reads the logit lens there, labelled logit, so
token anatomy (reads_as.r, mlp.r), LensInstrument.read and read_prompt
(whose default layers gain the last block) have it; the unit reads'
population statistics ask the same function, and their fill of an absent
half is gone. The anatomy's contribution cotangent at the last layer is
the token's own logit cotangent always. No golden changes (the anatomy
golden reads synthetic halves at L4 and L9).
E5 cut poles whose neutral act_top is 0 from the activity ranking, but a
pole with a tiny one still topped it (SmolLM2 L31n2394+, act_top 0.055
against its layer's typical 2.28, read 169). Every activation_over_scale
now divides by sqrt(s^2 + (c m)^2): s the unit's own act_top, m its
layer's median for its kind (both poles of every neuron; the layer's
heads), c = SCALE_FLOOR_SHARE = 0.25 (units/stats.py, soft_scale and
LayerUnitStats.neuron_reading_scale / head_reading_scale). On SmolLM2
0.24% of neuron poles and 1.25% of heads sit below c m; a unit at the
median reads 3% lower than over its own scale. No unit is cut: a silent
pole reads over c m and ranks with the rest. Probes, gates, the units
token readout and unit activity share it; Firing.neutral reports it as
scale. The c choice is documented in drowse/units/AGENTS.md.
Anatomy unit rows carried the raw activation (a head's write norm) while
unit activity, probes and the unit view read over the neutral scale. Each
layer's row now also carries activation_over_scale, over the unit's soft
scale, computed on the device and packed into the anatomy's one transfer
(None without unit statistics; the cross-layer list stays None). The token
view's unit tips lead with it. Envelope change: AnatomyUnit gains
activation_over_scale; measurement-envelope-v2.json regenerated (its
anatomy fixture rows gain a fourth value).
JLensPanel keyed found rows aggregate:${token}; two byte pieces that both
decode to U+FFFD collided and the keyed each threw each_key_duplicate
mid-reply. The lens aggregate now carries each chip's vocabulary id from
the device to the wire: runtime.aggregate_rows yields (token, strength,
com, spread, token_id) (LensAggregateRow in readout/measurements.py), the
envelope's lens readout aggregate entries gain id, and the webui's chips
keep it (LensAggregateChip). Found rows come from probeRows.foundLensRows,
keyed aggregate:${id}. Envelope change: measurement-envelope-v2.json's
lens aggregate entry gains id.
The startup banner said "Live J-lens readout" for whichever output lens
was selected and "S-lens" for the other. It now names the 6.0 model's two
families and the source: "R-family lens local:r: live readout on (31
fitted layers)", "S-family lens local:s: slens/ reads, probes and atoms",
with the mismatch and failure lines in the same words.
The DEFAULT_FIT_DOCUMENTS comment held an estimate (about 0.6x of 25
documents' split-half). Measured on SmolLM2-360M at the defaults (64
FineWeb-Edu documents, both sites, MPS): R:out 0.02-0.28, median 0.17, in
330 s; S:out 0.06-0.22, median 0.12, in 342 s; medians 0.62x and 0.65x of
25 documents', near the 1/sqrt(n) estimate of 0.63x.
…tion ran them

Steering resolution, the live lens toggle, lens reconciliation and the
transcript's probe digests uploaded to or read from the device without the
model lock, beside background fits that hold it. The registry now runs every
lazy load in the exclusive section, the composer resolves under its model
lock, decompose resolves inside its section, the live toggle and lens reload
enter the section, the compatibility check is metadata only, and geometry
probes record their digest at attach. Validation runs in a worker thread and
answers 409 while the model is busy instead of blocking the event loop.

The token replay behind every family's token readout now segments the
forward with replay_segments, as the node replay does, so a triggered recipe
reads the same number in the readout, the anatomy and the activity, and a
gated or thinking-phase term refuses in every replay.
Fix e made the aggregate chip's id required under envelope version 2, but the
tree reader checked only the version, so a pre-6.0 row or an outdated
producer's PUT /tree loaded and the dashboard keyed every chip by an
undefined id. Version 2 was never released without ids, so the reader now
refuses such rows instead of bumping the version and the goldens.
slens/ atoms steer, unit mean-ablation keeps the attention sink, and the
local lens fit defaults to 64 documents.
a9lim added 24 commits November 1, 2026 17:22
…spector's view

Also correct the webui README on where the command palette lives (⌘K, or Menu → Search everything).
Clear chat, another conversation or another branch drops a token selection and the
rest whose turn no longer holds that node, so the rooms read the latest reply whole
instead of a token nobody selected.
…rough the lens readout without the anatomy

A failed replay had left the previous token's anatomy under the new token's heading and its
lens probes as this token's. A runtime with the lens token readout but no anatomy (the
browser's) now reads each token through it, R lens alone, instead of saying it replays none.
The empty room leads to the Workbench in place of a caption, and a phone's layer rows show two
words a lens whole.
The server's sentence, which on HTTP names CLI commands, moves to the tip.
…Units list by its rows

An empty Units room leads to the Workbench. The list's count is its rows at a token as over the
reply; the model's whole population and the values' scale ride the tip.
"push" and "silence" found nothing and "steer" only the Workbench. Each Steer entry opens the
picker on its kind; the kind the picker remembers moves to the workbench store.
selection.svelte.ts had imported the chat log, whose imports need an installed runtime, so a
test that loads the selection first failed to load.
Ledger defines a gallery build script, so npm prepares it as a git
dependency, and npm 11.19 (Node 24, as CI runs) refuses that step with
EALLOWSCRIPTS. The tag's tarball skips preparation, needs no SSH and
records an integrity hash.
…the Lens room's whole view

A neuron pushes at its one layer, where an atom pushes at each of its
layers with the same per-layer budget, so at the old default (0.2 on a
±1 dial) a push never changed a SmolLM2 reply's words. Measured at
temperature 0: a top writer's word first shows near 3 from layers 26-27,
the last layer's writers loop by 2, and early layers only shift the
theme even at 8. Atoms keep their ±1 dial.

With no lens probes over the reply, the Lens room's whole view was a
card and a link. It now reads the reply's last token through both lenses
(tokenCursor.replyLast), beside Watch a word, and the cursor stays whole.
6.0 already carries 5.4.1's probe-reader and mixed-steering fixes in its
own form (digests recorded at roster writes, host payloads at attach), so
every conflict keeps 6.0's side. New here: extraction refuses to reuse a
folder of more than two nodes as a vector. 5.4.1's add_probe refusal test
is dropped: 6.0 fits an installed unfitted manifold in place on attach
(test_probe_attach_unfitted).
Comment thread webui/scripts/check-ledger.mjs Fixed
Comment thread webui/scripts/units.test.mjs Fixed
Comment thread webui/scripts/units.test.mjs Fixed
a9lim added 2 commits November 1, 2026 19:20
… prior check

CodeQL flagged the tests' one-pass comment and tag stripping (a pass
can join a split match into a new one) and check-ledger's existsSync
before the read and write. The tests share scripts/markup.mjs, which
repeats each removal until nothing changes; the ratchet is read once,
a missing file reading as none.
@a9lim
a9lim enabled auto-merge November 2, 2026 00:22
The test curve passes through neutral at one node, so that node and
neutral tie exactly, and argsort's order for the tie followed the
platform's float rounding: CI's Linux runners read neutral first where
macOS read the node. The test now requires the labels read to be the
reference's three nearest by distance, in order, whichever way a tie
falls.
@a9lim
a9lim merged commit 8391a2a into main Nov 2, 2026
12 checks passed
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