Repository navigation
Release 0.10.10 - #1557
Release 0.10.10#1557
Conversation
biosigio 1.2.10 reports every channels.tsv row it matched only by ignoring case in a per-channel map, which units_report republished verbatim. Replace it with a count (matched_case_only) and at most five examples, declared in the JSON Schema, zod and MCP z4 mirrors, and refuse the raw map in the schema. Reword unmatched_channels and unmatched_case_only, which said matching is exact. Tested: bun zarr-schema-contract and mcp-schema-parity; pytest join and convert_one classes on biosigio 1.2.9 and 1.2.10.
Raise the pin to >=1.2.10,<1.2.11 in requirements.txt, the hallu-zarr.sh fallback and BIOSIGIO_FLOOR, and test_hallu_zarr_config.py. The case-only canary now asserts 1.2.10's join on real EDFs through convert_one; new tests cover an ambiguous case row and a 300-channel case-differing sidecar whose index entry stays small. ZARR_ENGINE_VERSION unchanged. Tested: pytest converter suites on biosigio 1.2.10 (hallu config tests that need bash 4+ not runnable on this macOS host); ruff no new findings.
* feat: run enrichment on claude-sonnet-5-5 * feat: never tag standards papers as data papers * feat: resolve DOI metadata before enrichment * feat: tighten enrichment relation typing * feat: treat the HBN program paper as umbrella * test: avoid non-null assertions * docs: ADR 0075 never-data-paper relations * refactor: share one DOI registry fetch * fix: match citations DOI and title rules * fix: classify and sanitize DOI lookups * fix: gate IsDerivedFrom, drop self DOIs * feat: report DOI lookups on reindex * docs: correct MIPDB wording and em-dashes * fix: keep the pinned reindex return line
* fix: warn when DOI lookups fail on reindex * fix: mark DOIs past the lookup cap in prompts * fix: bound DOI lookups with a stage deadline * feat: show reindex warnings and cap in CLI * docs: note DOI stage deadline in ADR 0075
* docs: CHANGELOG entry for 0.10.10 Covers #1550 (Sonnet 5.5 enrichment, DOI lookups, relation guard) and #1552 (biosigio 1.2.10 case-only sidecar matches). Claims checked against the merged code. * docs: add #1556 to the 0.10.10 entry Failed-lookup warnings, the lookup-stage deadline, the over-cap marker, and the summary now printing warnings. Changelog format test passes.
Adds the news_posts table (migration 0087), public GET /news, /news/:slug, /news/media/:file, admin CRUD with a raw image upload stored in the NEWS_MEDIA R2 bucket (nemar-news-media, nemar-news-media-dev), and ADR 0076. Refs #1551; website half nemarOrg/website#372. Tested: news suites 90 pass, tsc clean, migrations:d1-check, and end to end with the website against a local harness.
* fix: start no DOI lookup after the deadline fetchRegistryRecord returns failed at once once the stage deadline has passed, instead of issuing requests that reject immediately; a cached answer still counts. Header and docstring now say what is logged and what is evicted. Tested: doi-metadata offline deadline test, typecheck, Biome. * fix: cue a reindex on failed DOI lookups The DOI lookup line turns yellow when lookups failed, and says to reindex again when the backend sent no lookup warning (a backend before #1556). Tested: reindex-lines unit tests. * docs: scope the DOI lookup warning Comments no longer say a sweep retries; ADR 0075 and the 0.10.10 entry say the warning is reindex-only (push-triggered runs log instead), that a push to README.md or dataset_description.json also re-enriches, that only model-written IsDerivedFrom is gated, and where demoted_dois appears. Tested: changelog format test.
* fix: type news media by name, not metadata GET /news/media/:file now always sends the Content-Type its regex-locked file extension implies, so a bad metadata write on the R2 object can never make the API origin serve text/html. Tested: the media route tests now run the public news routes in workerd through Miniflare, which reaches the 200 branch bun cannot; the new test fails on the old code (text/html) and passes (22 pass). * fix: bound news published_at to 2000-2100 zod accepted 9999-12-31T23:59:59-12:00, which SQLite datetime() turns into NULL (a 500 from the NOT NULL insert), and 0000-01-01T00:00:00+14:00, stored as year -0001. The year as written must now be 2000 through 2100, so both are a 400 naming published_at. Tested: new cases for both extremes on POST and PUT, the years just outside, and the accepted edges; they fail on the old code (500, 201) and pass (70 pass). * feat: audit news post create, update, delete Each admin write now inserts an audit_log row (news_post_created, news_post_updated, news_post_deleted; resource_type news_post, resource_id the post id; details with id, slug, status, published_at and the actor's username) in the same D1 batch as the write, so a failed audit insert fails the request with nothing written. The row is read from the post itself (INSERT ... SELECT) because a create's id does not exist until its INSERT runs; for update and delete this also means a 404 writes no row. Tested on real SQLite migrations: rows for all three writes, none for refused or missed writes, and a trigger-failed audit insert rolls each write back; the 5 new tests fail on the old code (75 pass). * feat: audit news image uploads An upload publishes: the object is readable by anyone with its URL, and the API can neither list nor delete it. POST /admin/news/media now writes a news_media_uploaded row (resource_id the file name; details with url, type, size, already_stored, actor) before the R2 put, so an audit insert that fails leaves nothing stored. Re-uploads of existing bytes are audited too. Tested: rows for a new and a repeated upload, none for every refusal, and a trigger-failed audit insert stores nothing; the 2 new tests fail on the old code (24 pass). * docs: say why the admin news list keeps bodies Trimming GET /admin/news to the summary columns would empty the website's admin list: its parseAdminNewsList (nemarOrg/website#372) drops any row without a string body. The list keeps full posts until the website parses it as summaries; the test now pins the body on every row. Tested: news-routes.test.ts (75 pass). * docs: ADR 0076 recall, cache window, deploy token Adds an Operations section: how to recall a mistaken image (R2 object delete with --remote, the API and website cache purges, the website redeploy), how long a post stays visible after unpublish or delete from the public routes' Cache-Control, and why the deploy token needs R2 (run 36610376353 attempt 1). Also records the new audit rows. Tested: test/adr-index.unit.test.ts.
nm000276 was uploaded with git-annex chunk=1GiB, so its bucket holds only SHA256E-s<size>-S<chunk>-C<n>--<hash> objects and every plain-key fetch 404'd (all 40 recordings failed). - download_blob: a 404 raises S3ObjectAbsent at once instead of being retried; every other failure is retried exactly as before. - fetch_annex_object: plain key first (one request, unchanged for unchunked datasets); on 404, discover the chunk size with one list-objects-v2, cache it per dataset, download C1..Cn in order through download_blob and append to a temp file, check the total, rename atomically. - A key the bucket holds in no complete form fails typed (annex_object_missing, not retryable); transient errors stay uncoded. Tested: new real-subprocess tests over a bucket stand-in laid out like nm000276, plus convert_one on chunked EDFs; converter suites pass.
The failures[].code description names every NEMAR-side code; add the new one. Description text only; bun test zarr mcp passes (root and backend).
A .set had no header count, so a store short of an inherited channels.tsv was refused even when it held every channel the file declares (on003645: 75-channel EEG under a 404-row MEG sidecar). Read nbchan from classic MAT v5/v7 (bounded streaming parse, never the sample matrix) and v7.3 (h5py metadata), and return it only where it equals the rows biosigIO serves. Tested with real files through convert_one; mutations of each guard fail the suite.
The struct walk skipped past data before its both-seen check, so a compressed EEG inflated every sample. Return as soon as nbchan and data are read. Adds a hand-built MAT v5 writer to the tests and a regression test whose deflate stream is garbage after the first 64 KiB of samples. Tested: pytest TestEeglabDeclaredChannelCount.
Shrink the MAT stream chunk to 64 KiB and test a 51 MB matrix, with nbchan before and after data, against a 3.2 MB bound; the parser peaks under 0.4 MB. Tested: pytest never_loaded.
Add EEGLAB_MAX_HEADER_READ_BYTES (256 MiB) across one classic .set header read; past it the read gives up with the usual single warning. Tested: a zlib bomb declaring cap + 1 MiB of zeros before nbchan returns None in under a second; one just under the cap still counts.
Explain why a fractional nbchan (biosigIO truncates classic, rounds v7.3) and an nbchan below the matrix rows both return None. Tests pin the importer's two readings of 3.6 and add the v7.3 nbchan-below-rows case. Tested: pytest fractional/disagreeing.
Cover big-endian files (including small-element nbchan), a 1xN EEG struct array, nbchan after data, variables around EEG, and truncation at every 2% and each of the first 512 bytes of three real files, each read bounded by a 5 s alarm. Tested: pytest, 1716 subtests.
A store short of its channels.tsv no longer counts as channel_count_mismatch when its own index entry discloses channels_tsv_count_mismatch with in_store == in_file == the store's total. A store short of its header, or short of the sidecar with no valid disclosure, is still flagged. Tested: bun test zarr-fidelity-sweep (73 pass).
The comment said 15 channels; its own arithmetic gives 16. Comment only, not tested.
Release record for 0.10.10Contents
ReviewSonnet reviews ran before the merge. Every finding was either fixed on
Staging exercise (dev worker)
After the merge (27bdc63, 2026-09-29T20:44Z)
Restore floorNo bookmark was captured before this merge. Migration 0087 only adds the empty Captured after the release and before the #1550 re-enrichment sweep, which rewrites enrichment for most of the catalog, at 2026-09-29T21:40Z: Latest row-level backup: nemarOrg/nemar-db-backup 64896e12 at 2026-09-29T21:13:58Z (10,371 rows). Follow-ups
|
Promotes
devtomainfor 0.10.10. The CHANGELOG entry is in #1554.Contents
claude-sonnet-5-5. Each run resolves up to 15 candidate DOIs through DataCite and Crossref and gives the model their titles, authors, years, venues and types. A deterministic guard (shared/never-data-paper.ts, ADR 0075) demotes standards, software, platform and umbrella papers from data-describing relations and drops a dataset's own NEMAR DOI.IsDerivedFromis kept only for DOIs DataCite types asDataset. Reindex responses carrydoi_resolution, andnemar admin reindexgains--json.matched_case_onlyindex fields, a carried raw map healed on merge, and a--case-onlydetector).Not in this release: #1553 (news posts), which needs R2 enabled on the
sccnaccount and its ADR renumbered to 0076 before it lands on dev.No migrations;
backend/wrangler-sccn.tomland.github/workflowsare unchanged frommain. The release review, staging exercise, D1 bookmark and checks will be recorded here before merge.After the deploy, the re-enrichment sweep in #1550 runs against production (pilot on nm000275, nm000273 and on002721 first; the live nm000103 to nm000107 are excluded).