Skip to content

Release 0.8.21: search overview reads the top 20 and suggests where to start; app.nemar.org approved - #754

Merged
neuromechanist merged 12 commits into
mainfrom
develop
Nov 13, 2026
Merged

neuromechanist merged 12 commits into
mainfrom
develop

Conversation

@neuromechanist

@neuromechanist neuromechanist commented Nov 13, 2026 •

Copy link
Copy Markdown
Member

Promotes develop to main for 0.8.21: the search overview reworked from a NEMAR maintainer's feedback, and app.nemar.org approved as a NEMAR origin.
Four merged pull requests (#749, #750, #752, and the documentation-only #753 that files the CHANGELOG under 0.8.21), plus the post-0.8.20 sync of main into develop (#747) and CI-owned version bumps.

What reaches production

Compatibility and order

  • The current nemar.org (0.2.38) keeps working against this server: it sends at most 10 rows, reads the first 3 picks and ignores suggestion.
  • nemar.org 0.2.39 (nemarOrg/website, staging at 0.2.39) sends 20 rows, which only this server accepts, so the website release follows once production OSA reports 0.8.21.
  • No widget code changed (frontend/ untouched), so nemar.org's pinned widget build is unaffected.

Testing

Review (one integration-scoped Sonnet reviewer)

No Critical findings.

  • Important, release order: an OSA still on 0.8.20 refuses the website's 20 rows with a 422. Handled by the gate above: Release 0.2.39: AI Mode search reads the top 20 and suggests where to start nemarOrg/website#533 merges only once production /health reports 0.8.21, not when the release is published.
  • Confirmed: nemar.org 0.2.38 against this server truncates to 3 picks, needs only a non-empty summary (guaranteed), ignores suggestion; the in-memory cache is replaced on deploy and its key separates 10-row and 20-row callers; docs, CHANGELOG, route docstring and code agree.
  • Rejected, suggestion: adding a prompt or schema version to the cache key. The cache is in memory and per process, so a deploy clears it; this matters only if it is ever persisted.

github-actions Bot and others added 12 commits November 12, 2026 08:03
…p-after-v0.8.20

chore: sync develop with main after v0.8.20
…to start (#749)

* feat: search overview reads 20 results, lists up to 10 picks, suggests where to start

The prompt now asks for a conversational lead-in, up to 10 picks with how
each relates to the search, and a suggestion field under the same citation
filter. A reply is valid when its summary has words and any part names a
result. Unit and route tests updated (175 pass).

* docs: search overview contract for the top 20, 10 picks and suggestion

* docs: Home design placeholder says natural language

* fix: overview review round 1: closest picks when nothing fits, no pick count, cut-off reason

The prompt no longer asks for a pick count or names the top 20, and asks
for the closest picks when nothing fits (a reply without picks was a 502).
A first sentence over twice the cap is dropped, a cut-off reply raises
with its own reason, filter drops are logged, and picks carry max_length.
Tests added for each (182 pass).

* docs: overview token budget and long first sentence rule
…750)

* fix: overview prompt keeps the voice on the datasets, not on the input text

A real overview on dev said 'though the snippet is partial'. The prompt now
asks the model never to mention descriptions, snippets or titles and to
hedge instead. Prompt test extended (182 pass).

* fix: voice instruction names the input text, not the data, and does not invite guessing

Review: banning 'the data' was too broad for dataset prose, and 'hedge'
invited speculation against 'use only what the results say'. The model now
leaves out what a result does not say. Prompt test extended (182 pass).
* fix: approve app.nemar.org as a NEMAR origin

A signed-in reader's nemar.org pages are served from app.nemar.org, where
the widget was refused. Adding it to cors_origins authorizes chat and the
overview, CORS, and the notebook site's frame-ancestors. Tests added
(581 pass in authorization, notebook site and assistants).

* chore: worker origin list gains app.nemar.org; changelog says when the notebook site picks it up
@neuromechanist
neuromechanist merged commit 3646a35 into main Nov 13, 2026
27 checks passed

This branch was previously deployed

1 inactive deployment
testpypi — 53e8d5df Deployed Nov 13, 2026 by github-actions[bot] via Publish to TestPyPI #228
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.

1 participant