diff --git a/CHANGELOG.md b/CHANGELOG.md
index 0706620..f7fa897 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,23 @@
# Changelog
+## 0.15.1
+
+The desktop app opens in a few seconds instead of twenty or more, the Mac window's buttons no longer sit on the FormCite name, arXiv lookups work again, Preferences looks and works like the other Form apps, and the agent dock has its button at the top left.
+
+### Fixed
+- **The desktop app took 20 to 30 seconds to open.** The window waited for a signal from the page that it had drawn, and the page never sent it, so every launch sat out a 20 second fallback after the engine was already up. The page sends it again, and the window opens once it has drawn and the splash has had its 2.6 seconds. The engine itself starts in under a second.
+- **On a Mac the red, yellow and green window buttons covered "FormCite"** at the top left, in every view including Preferences. The top left now leaves room for them from the first frame (beside the brand when the menus are in the menu bar, before the menus when they are in the window), and gives the room back in full screen, where the buttons are hidden.
+- **arXiv lookups failed** with "arxiv answered with status ..." in Recent calls. arXiv's search API is under heavy load and refuses some callers outright. FormCite now asks arXiv's OAI-PMH service for the same record when the search API refuses or does not answer. It is listed as its own service, arxiv-oai, with its own switch; switching arXiv off still keeps arXiv off.
+- **Recent calls cut the answer short.** The status or error now reads in full, and hovering a row shows the whole call.
+- **Pasting an arXiv id** in any common form now works and says what it found: `arXiv:2402.06196`, `arxiv:2402.06196v2`, `2402.06196`, `https://arxiv.org/abs/2402.06196`, `https://arxiv.org/pdf/2402.06196v1` and old ids such as `hep-th/9901001`, as well as `doi:` and doi.org links, ISBNs with hyphens and `PMID: 123`. Press Enter to add it. Home and the Add dialog now say you can paste one.
+
+### Improved
+- **Preferences in the Form apps' form:** the sections stand in their own rail to the left of a Preferences card, and the card shows only the section you pick. Every setting is where it was.
+- **An Agents button at the top left** opens and closes the agent dock and stays lit while it is open, as in the other Form apps. Preferences, Agents keeps the switch to show the dock.
+
+### Under the hood
+- Checked for this version, on Linux x64, on 1 December 2026 (EST): the window's type check and production build; the engine from source and frozen as onefile and onedir (each answered in under a second, three runs each); arXiv lookups of 2402.06196, hep-th/9901001 and 0704.0001v2 against the live services; identifier detection for every form above; and the built window in headless Chrome at four times slower CPU with a stand-in for the Mac desktop shell: the reveal signal sent once, the room for the window buttons on the first frame, the Agents button following the dock, and no layout shift switching Preferences sections. Not run: a build or launch on macOS or Windows, so the opening time and the window buttons were not seen on a real Mac.
+
## 0.15.0
FormCite now builds into a desktop app for macOS, Windows and Linux, and the window gains a menu bar, a Home screen, Preferences in sections, a right-click menu on items, an agent dock, and three demo libraries with templates to start from.
diff --git a/README.md b/README.md
index 1b3bb7d..3cffa14 100644
--- a/README.md
+++ b/README.md
@@ -11,7 +11,7 @@
-
+
diff --git a/backend/HASHOUT_LOG.md b/backend/HASHOUT_LOG.md
index 9e8e470..513de27 100644
--- a/backend/HASHOUT_LOG.md
+++ b/backend/HASHOUT_LOG.md
@@ -2,7 +2,7 @@
Living log of all comment content, explainers, rationale, TODOs, & removed (hashed-out) code for this side of the repo. Source files stay comment-free per dev-rules `sub-skills/hashout-log/SUB-SKILL.md`; everything they would have said lives here, indexed. This file is also the compressed contextual map of this side: read it first, then edit code surgically.
-Current build version: v0.15.0
+Current build version: v0.15.1
Last updated: 2026-11-27 (US Eastern) · the lean rows route for the window's list and opening an attachment
---
@@ -1732,3 +1732,15 @@ New in v0.15.0 (2026-12-01 EST, agent `cite-home`). No engine feature was added.
Templates: 40 independent styles from citation-style-language/styles `master` at 38e17c7 (2026-12-01), unmodified (CC BY-SA 3.0, `templates/CREDITS.md`), and FormCite's own `formcite-plain-author-date.csl`, copied from `app/style/regression/custom/`. 41 candidates were fetched, and `bibtex.csl` was dropped because it writes BibTeX rather than a citation style. Ten starters: thesis, grant, course, systematic-review, journal-article, book-project, lab-group, conference-talk, teaching-portfolio and policy-brief. `templates/index.json` lists all 51.
Checked: each demo copied into a fresh data folder, registered with `library new` and listed with the CLI (260, 215 and 240 items). In the built window under 4x CPU throttling, switching to each in Preferences showed its item count, its own collections and tags in Items. Every style rendered the 20 regression references (bibliography complete, citations non-empty) through `render_with_style` and formatted three demo items through `./formcite cli format --style-file` (41 of 41). Every starter opened with its collection and tag counts as listed in its about.json. The style engine came from the 0.14.0 abi3 wheel C1 built (`formcite_style`, Hayagriva 0.10.1).
+
+## app/lookup/arxiv.py, app/lookup/arxiv_oai.py · arXiv lookups fall back to arXiv's OAI-PMH service {#app-arxiv-oai}
+
+New in v0.15.1 (2026-12-01, EST). The owner's Recent calls showed every arXiv call failing with "arxiv answered with status ..." for `export.arxiv.org/api/query?id_list=2402.06196&max_results=1`. The request itself is right: https, `id_list`, the documented query API, FormCite's descriptive User-Agent, redirects followed only to https hosts FormCite declares. Tested from this machine on 2026-12-01: `https://export.arxiv.org/api/query?...` answered 403 Forbidden (Fastly, HTML body) to every variation tried: FormCite's User-Agent with and without a mailto, a browser User-Agent, curl's default, Python-urllib, HTTP/1.1, no gzip, `Accept: application/atom+xml`. `http://` answers 301 to the same https address, and `https://arxiv.org/api/query` 302s to the http export address, so neither is a way round. The rest of arXiv answered 200 from the same address (`arxiv.org/abs/2402.06196`, `export.arxiv.org/`, `oaipmh.arxiv.org/oai`), so it is the query API that refuses, not the network. arXiv's API group (May 2026) says the query API is under very high load, rate limits are being held where they are, 429 blocks expire on their own, and a replacement platform with keys is planned. So any one address may get 403, 429 or 503 there for a while, which is what the owner saw.
+
+`fetch` still asks the query API first (it carries affiliations and the first-version date). When that call ends in a `NetworkError` (any non-404 status, a timeout, an unreachable host), it asks arXiv's OAI-PMH service for the same record: `GetRecord`, `identifier=oai:arXiv.org:`, `metadataPrefix=arXiv`. That is a second registered service, `arxiv-oai` on `oaipmh.arxiv.org`, so it has its own switch, its own 3 s pace and its own rows in Recent calls. A `NetworkOff` from `arxiv` (the service switched off) does not fall back: turning arXiv off keeps arXiv off. If the OAI service is switched off the first error stands; if it also fails, both messages are given. `arxiv_oai.parse` reads the OAI answer with the same guards as the Atom parser (2 MB, no DOCTYPE or entities), maps `idDoesNotExist` to not found, checks that the record's id matches the one asked for, and fills the same entry shape `arxiv_map.to_csl` already takes: title, abstract, authors as forenames plus keyname, categories (first is taken as primary), journal-ref, comments, doi. OAI's `created` can be a later version's date (2402.06196 says 2025-03-23 for a February 2024 paper), so the issued date is `created` only when it falls in the year and month the identifier carries, and otherwise the first of that month. Checked live: 2402.06196, hep-th/9901001 and 0704.0001v2 all came back with title, authors, date and categories through the OAI service after the query API's 403, and Recent calls listed the 403 and the 200.
+
+Before, quoted from `fetch`: `answer = parse(net.fetch_text(SERVICE, QUERY_URL, params={"id_list": identifier, "max_results": "1"}))`, `errors = [e for e in answer["entries"] if e["error"]]`, `if errors:`, `message = errors[0]["summary"] or "no message"`, `raise Invalid(f"arXiv refused the identifier {identifier}: {message}.")`, `record = normalize(to_csl(_pick(answer["entries"], identifier), identifier))`; and `SERVICES = (SERVICE,)`.
+
+## app/lookup/guess.py · old-style arXiv ids and a kind word followed by a space {#app-guess-forms}
+
+New in v0.15.1 (2026-12-01, EST). Checked every form the owner listed against `guess`: `arXiv:2402.06196`, `arxiv:2402.06196v2`, `2402.06196`, `https://arxiv.org/abs/2402.06196`, `https://arxiv.org/pdf/2402.06196v1` (and `.pdf`), `doi:10.x/...`, `https://doi.org/10.x/...`, hyphenated ISBNs and `PMID: 123` were already detected. Two were not: a bare old-style id (`hep-th/9901001` answered "cannot tell what kind of identifier") and a kind word followed by a space instead of a colon (`arXiv 2402.06196`, `DOI 10.1038/...`). `guess` now also tries `ARXIV_OLD` (the pattern `_clean` already used) after the URL and new-style checks, and `PREFIX` takes a space as well as `:` or `=` after the kind word. `ISBN-13: ...` still goes through `ISBN_SHAPE`, since `PREFIX` needs the bare word. Before: `PREFIX = re.compile(r"^\s*(doi|arxiv|isbn|pmid|pubmed)\s*[=:]\s*(.+?)\s*$", re.IGNORECASE)` and `if ARXIV_URL.match(raw) or ARXIV_NEW.match(raw):`.
diff --git a/backend/app/__init__.py b/backend/app/__init__.py
index 9da2f8f..903e77c 100644
--- a/backend/app/__init__.py
+++ b/backend/app/__init__.py
@@ -1 +1 @@
-__version__ = "0.15.0"
+__version__ = "0.15.1"
diff --git a/backend/app/lookup/arxiv.py b/backend/app/lookup/arxiv.py
index 5fb5bb5..1419cd8 100644
--- a/backend/app/lookup/arxiv.py
+++ b/backend/app/lookup/arxiv.py
@@ -2,15 +2,19 @@
from app.record.normalize import normalize, validate
from app.store.errors import Invalid, NotFound
+from . import arxiv_oai
from .arxiv_atom import parse
from .arxiv_id import base, clean
from .arxiv_map import to_csl
KIND = "arxiv"
SERVICE = "arxiv"
-SERVICES = (SERVICE,)
+OAI_SERVICE = "arxiv-oai"
+SERVICES = (SERVICE, OAI_SERVICE)
HOST = "export.arxiv.org"
+OAI_HOST = "oaipmh.arxiv.org"
QUERY_URL = f"https://{HOST}/api/query"
+OAI_URL = f"https://{OAI_HOST}/oai"
INTERVAL_SECONDS = 3.0
net.register(
@@ -20,6 +24,13 @@
"https://info.arxiv.org/help/api/user-manual.html",
interval=INTERVAL_SECONDS,
)
+net.register(
+ OAI_SERVICE,
+ OAI_HOST,
+ "Look up the same preprint record from arXiv's OAI-PMH service when arXiv's search API refuses or is busy.",
+ "https://info.arxiv.org/help/oa/index.html",
+ interval=INTERVAL_SECONDS,
+)
__all__ = ["KIND", "SERVICES", "clean", "fetch"]
@@ -32,13 +43,31 @@ def _pick(entries: list[dict], identifier: str) -> dict:
raise NotFound(f"arXiv has no article with the identifier {identifier}.")
-def fetch(value: str) -> dict:
- identifier = clean(value)
+def _from_oai(identifier: str, first: Exception) -> dict:
+ try:
+ text = net.fetch_text(OAI_SERVICE, OAI_URL, params={"verb": "GetRecord", "identifier": f"oai:arXiv.org:{base(identifier)}", "metadataPrefix": "arXiv"})
+ except net.NetworkOff:
+ raise first from None
+ except net.NetworkError as exc:
+ raise net.NetworkError(f"{first} The OAI service did not answer either: {exc}") from None
+ return arxiv_oai.parse(text, identifier)
+
+
+def _from_api(identifier: str) -> dict:
answer = parse(net.fetch_text(SERVICE, QUERY_URL, params={"id_list": identifier, "max_results": "1"}))
errors = [e for e in answer["entries"] if e["error"]]
if errors:
message = errors[0]["summary"] or "no message"
raise Invalid(f"arXiv refused the identifier {identifier}: {message}.")
- record = normalize(to_csl(_pick(answer["entries"], identifier), identifier))
+ return _pick(answer["entries"], identifier)
+
+
+def fetch(value: str) -> dict:
+ identifier = clean(value)
+ try:
+ entry = _from_api(identifier)
+ except net.NetworkError as exc:
+ entry = _from_oai(identifier, exc)
+ record = normalize(to_csl(entry, identifier))
validate(record)
return record
diff --git a/backend/app/lookup/arxiv_oai.py b/backend/app/lookup/arxiv_oai.py
new file mode 100644
index 0000000..1e65018
--- /dev/null
+++ b/backend/app/lookup/arxiv_oai.py
@@ -0,0 +1,85 @@
+import re
+import xml.etree.ElementTree as ET
+
+from app.store.errors import Invalid, NotFound
+
+from .arxiv_id import base
+
+OAI = "{http://www.openarchives.org/OAI/2.0/}"
+META = "{http://arxiv.org/OAI/arXiv/}"
+MAX_BYTES = 2_000_000
+FORBIDDEN = re.compile(r" str:
+ return re.sub(r"\s+", " ", text or "").strip()
+
+
+def _root(xml_text: str) -> ET.Element:
+ if len(xml_text.encode("utf-8", errors="replace")) > MAX_BYTES:
+ raise Invalid("arXiv's OAI service answered with more than 2 MB, which is far more than one record; FormCite did not read it.")
+ if FORBIDDEN.search(xml_text):
+ raise Invalid("arXiv's OAI answer declared a document type or entities, which FormCite does not read.")
+ try:
+ return ET.fromstring(xml_text, parser=ET.XMLParser())
+ except ET.ParseError as exc:
+ raise Invalid(f"arXiv's OAI answer was not XML FormCite could read: {exc}.") from None
+
+
+def _month_of(identifier: str) -> tuple[int, int] | None:
+ found = NEW_ID.match(identifier) or OLD_ID.match(identifier)
+ if not found:
+ return None
+ yy, mm = int(found.group(1)), int(found.group(2))
+ return (1900 + yy if yy >= 91 else 2000 + yy), mm
+
+
+def _published(created: str, identifier: str) -> str:
+ month = _month_of(identifier)
+ stamp = re.match(r"^(\d{4})-(\d{2})-\d{2}", created or "")
+ if stamp and (month is None or (int(stamp.group(1)), int(stamp.group(2))) == month):
+ return stamp.group(0)
+ if month is None:
+ return ""
+ return f"{month[0]:04d}-{month[1]:02d}-01"
+
+
+def _name(author: ET.Element) -> str:
+ parts = [_fold(author.findtext(f"{META}{tag}")) for tag in ("forenames", "keyname")]
+ return " ".join(p for p in parts if p)
+
+
+def parse(xml_text: str, identifier: str) -> dict:
+ root = _root(xml_text)
+ if root.tag != f"{OAI}OAI-PMH":
+ raise Invalid("arXiv's OAI answer was not an OAI-PMH document.")
+ error = root.find(f"{OAI}error")
+ if error is not None:
+ if error.get("code") == "idDoesNotExist":
+ raise NotFound(f"arXiv has no article with the identifier {identifier}.")
+ raise Invalid(f"arXiv's OAI service refused the identifier {identifier}: {_fold(error.text) or error.get('code', 'no message')}.")
+ node = root.find(f"{OAI}GetRecord/{OAI}record/{OAI}metadata/{META}arXiv")
+ if node is None:
+ raise NotFound(f"arXiv has no article with the identifier {identifier}.")
+ found = _fold(node.findtext(f"{META}id"))
+ if base(found) != base(identifier):
+ raise NotFound(f"arXiv has no article with the identifier {identifier}.")
+ categories = _fold(node.findtext(f"{META}categories")).split()
+ return {
+ "id": found,
+ "arxiv_id": found,
+ "error": False,
+ "title": _fold(node.findtext(f"{META}title")),
+ "summary": _fold(node.findtext(f"{META}abstract")),
+ "authors": [{"name": _name(a), "affiliations": []} for a in node.findall(f"{META}authors/{META}author") if _name(a)],
+ "published": _published(_fold(node.findtext(f"{META}created")), found),
+ "updated": _fold(node.findtext(f"{META}updated")),
+ "primary_category": categories[0] if categories else "",
+ "categories": categories,
+ "journal_ref": _fold(node.findtext(f"{META}journal-ref")),
+ "comment": _fold(node.findtext(f"{META}comments")),
+ "doi": _fold(node.findtext(f"{META}doi")),
+ "links": [],
+ }
diff --git a/backend/app/lookup/guess.py b/backend/app/lookup/guess.py
index 252d1e1..ba7fc2b 100644
--- a/backend/app/lookup/guess.py
+++ b/backend/app/lookup/guess.py
@@ -3,7 +3,7 @@
from app.store.errors import Invalid
-PREFIX = re.compile(r"^\s*(doi|arxiv|isbn|pmid|pubmed)\s*[=:]\s*(.+?)\s*$", re.IGNORECASE)
+PREFIX = re.compile(r"^\s*(doi|arxiv|isbn|pmid|pubmed)(?:\s*[=:]\s*|\s+)(.+?)\s*$", re.IGNORECASE)
DOI_URL = re.compile(r"^(?:https?://)?(?:dx\.)?doi\.org/(.+)$", re.IGNORECASE)
DOI = re.compile(r"^10\.\d{4,9}/\S+$")
ARXIV_URL = re.compile(r"^(?:https?://)?(?:www\.|export\.)?arxiv\.org/(?:abs|pdf)/(.+?)(?:\.pdf)?/?$", re.IGNORECASE)
@@ -67,7 +67,7 @@ def guess(text: str) -> tuple[str, str]:
return "pubmed", _clean("pubmed", pmid.group(1))
if DOI_URL.match(raw) or raw.startswith("10."):
return "doi", _clean("doi", raw)
- if ARXIV_URL.match(raw) or ARXIV_NEW.match(raw):
+ if ARXIV_URL.match(raw) or ARXIV_NEW.match(raw) or ARXIV_OLD.match(raw):
return "arxiv", _clean("arxiv", raw)
if PUBMED_URL.match(raw):
return "pubmed", _clean("pubmed", raw)
diff --git a/frontend/HASHOUT_LOG.md b/frontend/HASHOUT_LOG.md
index 0fe5012..00ee8bd 100644
--- a/frontend/HASHOUT_LOG.md
+++ b/frontend/HASHOUT_LOG.md
@@ -549,3 +549,35 @@ Checked (verified under throttling): the urban-heat demo (260 items), built wind
## src/ui/menu.ts · bar menus open under the bar's row {#src-menu-under-row}
The independent check measured the bar menus' top at 36 while the menu bar row ends at 40: `MenuBar.open` opened each menu at its 24 px button's bottom plus 4, and the button is centred in the 40 px row, so the menu started inside the row (FORM-MENU-OVERLAP-FIX rule 1 and section 5). Right-click menus already used `barFloor()` (the row's bottom plus 4, 44). The bar now opens at the larger of the two, so both kinds share the same floor. Before: `b.menu.openUnder(r.left, r.bottom + 4);`.
+
+## src/ui/dom.ts · revealApp tells the desktop shell the window has painted {#src-reveal-app-ready}
+
+New in v0.15.1 (2026-12-01, EST). The owner's built macOS app took almost 20 s to open the first time and about 30 s the second. Cause: the shell (`src-tauri/src/reveal.rs`) builds the main window at alpha 0 and shows it when the page invokes `app_ready`, or after its 20 s `FALLBACK`. v0.1.0 removed that invoke from `revealApp` while the app had no desktop shell (see #src-ui-dom), and it was never put back when the shell landed, so every desktop launch waited the full fallback after the engine was up. The engine is not the wait: on Linux, from source it answered `/api/health` 1.34 s after spawn cold and 0.66 s warm; frozen with this repo's PyInstaller flags it answered in 0.83 to 0.91 s as `--onefile` and 0.72 to 0.74 s as `--onedir`, three runs each, a second run never slower. macOS already freezes `--onedir` into `Contents/Resources/engine` (`setup/freeze_backend`, `tauri.macos.conf.json`), as FormVis does, so no temp unpack or per-launch rescan of a onefile archive applies there; the freeze mode is unchanged. The shell's port wait (TCP connect every 100 ms, 90 s limit) and the window-key claim (one POST, shared by every caller since v0.15.0) add no fixed delay either.
+
+`revealApp` now adds `app-ready` after two frames and then, in the desktop shell only, waits two more frames and invokes `app_ready` (no arguments; FormCite's command takes none). Each two-frame wait also settles after 120 ms, as FormDeck's `revealApp` does, because WebKit may hold `requestAnimationFrame` in a window that is on screen at alpha 0; without that the invoke could still wait for the fallback. The second `app-ready` check makes the class write happen once. Node and property touched: `body` class `app-ready` only, as before; nothing is built or moved, and the window first shows on a page that has already painted. Before, quoted: `requestAnimationFrame(() => requestAnimationFrame(() => {` `document.body.classList.add('app-ready');` `}));`.
+
+## index.html, src/styles/tokens.css, src/styles/shell.css, src/ui/traffic-lights.ts · room for the macOS traffic lights {#src-traffic-lights-inset}
+
+New in v0.15.1 (2026-12-01, EST). On macOS the window's title bar is an overlay (`src-tauri/src/main.rs` `TitleBarStyle::Overlay`, `traffic_lights.rs` places the buttons at x 14 in a 38 px row), and nothing in the page made room, so the three buttons sat on "FormCite" in the sidebar head in every view (the sidebar is shared by Home, Items, Duplicates, Trash, Connections and Preferences). FormVis gives its title row `padding-left: var(--cv-traffic-w)` (78 px) under `.has-overlay-titlebar`; FormCite does the same with its own names. The pre-paint script in `index.html` sets `data-fc-lights="inset"` on `html` in the macOS desktop shell, before any stylesheet applies, so the first paint already has the room and nothing moves on load. `tokens.css` adds `--fc-traffic-w: 78px` (buttons end at 68 px, 10 px clear). `shell.css` puts it on whichever element is the window's top-left: `.fc-sb-head` when the menus are in the system menu bar (`data-fc-menubar="native"`, the in-window row is 0 px), or `.fc-menubar-host` when the menus are in the window. Only `padding-inline-start` changes; the head stays 44 px high and 264 px wide, its brand, live dot and version still fit on one line (78 + 20 + 8 + name + 8 + version + 16 is under 264). Windows and Linux never get the attribute. In full screen macOS hides the buttons, so `watchTrafficLights` (called once from `mountApp`) asks `getCurrentWindow().isFullscreen()` on each `resize` and sets the attribute to `full` or back to `inset`, writing only when it changes; that move happens during the full-screen resize itself, never on load. `core:window:default` already allows `is_fullscreen`. The window is never restored into full screen (`window_state.rs` keeps only maximized), so the pre-paint value is right at launch.
+
+## src/ui/preferences.ts, src/styles/preferences.css · Recent calls show the whole answer {#src-recent-calls-full}
+
+New in v0.15.1 (2026-12-01, EST). The result column was a fixed 150 px, so "arxiv answered with status 403 Forbidden. · 281 ms" read as "arxiv answered with statu...". The row's columns are now 128 px for the time (19 characters at 11 px tabular figures fit) and two equal flexible columns for the call and its result, so a status line reads whole at the pane's usual width; each row also carries a `title` with the time, the call and the result on three lines, set by `setTitle` only when it changes, for anything still cut. Row height, the 12 fixed slots and the list's height are unchanged, so nothing moves when the log refreshes. Before: `grid-template-columns: 148px minmax(0, 1fr) 150px;`.
+
+## src/ui/add.ts, src/ui/home.ts · pasting an arXiv id is the obvious way in {#src-add-identifier-kinds}
+
+New in v0.15.1 (2026-12-01, EST). The owner found no easy way to add arXiv:2402.06196. The engine's detection (`backend/app/lookup/guess.py`, see backend #app-guess-forms) takes every common form; the window did not say so. The Add dialog's label now reads "Paste a DOI, arXiv id, ISBN or PubMed ID, or a link to one" and its placeholder leads with `arXiv:2402.06196`. As the field changes, `identifierKind` names what the text looks like in the dialog's existing status line ("An arXiv id. Press Enter to add it."); the line is a fixed 40 px box already, so only its text changes and nothing moves. The patterns mirror the engine's, only to name the kind; the engine still decides. Enter already added. Home's hero line now says "Paste a DOI, an arXiv id such as arXiv:2402.06196, an ISBN or a PubMed ID, or a link to any of them". The Items search has no identifier path (it filters the library), so it is unchanged. Before: label "DOI, arXiv id, ISBN or PubMed ID", placeholder "10.1000/xyz123, arXiv:2301.00001, PMID: 123", hero "Add by DOI, arXiv id, ISBN or PubMed ID, import BibTeX, ...".
+
+## src/ui/preferences.ts, src/styles/preferences.css, src/ui/icons.ts · Preferences in FormVis's form, one section at a time {#src-prefs-form}
+
+New in v0.15.1 (2026-12-01, EST). The owner: Preferences was "NOT anything like the Form apps": a list beside one long column of folding sections, so picking Appearance still showed Network under it. FormVis (`frontend/src/ui/prefs.ts`, `styles/dialogs.css` `.cv-prefs-*`) and FormDeck (`ui/dialogs-file.ts` `PreferencesDialog`, `styles/app-dialogs.css` `.fd-prefs-*`) show Preferences as a window-like card (44 px head with a settings icon and the title, a scrolling page area on `--bg-primary`) with the section rail standing apart on its left (232 px glass rail, a 6 px inset nav on `--bg-primary`, 40 px tabs with an accent icon, the active tab filled with the accent). FormCite now builds the same in its Preferences view: `.fc-pr` is a two-column grid (rail, then the card up to 840 by 780 px, centred), `.fc-pr-dlg` is the card, `.fc-pr-pages` scrolls inside it. FormLedger was compared too; it keeps one scrolling column with a scroll spy, which is what the owner did not want, so its structure was not followed. FormCite keeps Preferences a view rather than a modal dialog, so it opens exactly as before (side panel, Mod+, and the app menu); the card and rail take FormVis's measures and tokens.
+
+One section shows at a time: every `.fc-pr-sec` carries `role="tabpanel"` and `hidden`, and `mountRail` (now `mountRail(root)`) shows the picked one and hides the rest with `setHidden`, sets `aria-selected`, `is-active` and a roving `tabindex` on the tabs, and puts the page area back to its top. Up, Down, Home and End move through the tabs. The section head is a plain `h3` with the icon and the name; there is no fold, chevron or scroll spy any more. Every setting, its markup, ids and handlers are unchanged, so `mountPreferences`, the `busy` indicator (`[data-sec=...]`) and the shell switches work as before. The Agents section's group is now "Dock", as FormLedger names it, and its hint names the new Agents button. Under 1180 px of window the rail folds to 76 px icon tabs, as FormVis's folded rail does; each tab has a `title`. Zero shift: the rail and the card have fixed boxes and only the hidden flags change; measured, card at 558,101 840 by 758 and rail 232 px wide for all six sections, layout shift 0 over six switches under CPU 4x. `icons.ts` gains `settings` (the card head) and `agent` (see #src-agent-button).
+
+Removed, quoted: `const CHEV = ...`; the section head ``; `mountRail(scroller, root)` with `pinned`, `fold`, `spy` and `scroller.scrollTo({ top: Math.max(0, y), behavior: 'smooth' })`; CSS `.fc-pr-rail { position: sticky; ... }`, `.fc-pr-sec.is-current`, `.fc-pr-sechead:hover`, `.fc-pr-chev`, `.fc-pr-sec.is-folded .fc-pr-chev`, `.fc-pr-secbody[hidden]`, and the 900 px rule that laid the rail out in rows.
+
+## src/ui/app.ts, src/styles/shell.css · the Agents button at the top left {#src-agent-button}
+
+New in v0.15.1 (2026-12-01, EST). The dock had no button at the top left as the other Form apps have. FormVis puts a 28 px title-bar button with its `agent` glyph and `aria-pressed` in its title-bar tools (`ui/titlebar-tools.ts`, `.cv-tt-btn`, `.is-on`), FormDeck an "Agents" button with the same glyph (`app.ts`, `fd-agent-btn`); FormLedger has none yet. FormCite's top left is the sidebar head, so the button sits there, after the brand and the live dot and version, and after the traffic-light inset on macOS: `