Skip to content

Vendor neuroschema 0.7.0 for quality axes - #2534

Merged
neuromechanist merged 6 commits into
feature/issue-2524-epic-quality-axesfrom
feature/issue-2525-vendor-neuroschema-0.7.0
Nov 28, 2026
Merged

neuromechanist merged 6 commits into
feature/issue-2524-epic-quality-axesfrom
feature/issue-2525-vendor-neuroschema-0.7.0

Conversation

@neuromechanist

@neuromechanist neuromechanist commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor

Part of #2525 (epic #2524), phase 0a.3 PR 1 of 2.

Vendors neuroschema 0.7.0, tag v0.7.0 at c3ea2c066e7045f8074e3d2644ff543501c2b06e (nemarOrg/neuroschema#47): the quality state words, the item result, the provenance block and the metadataQuality, annotationQuality and conformance namespaces.

Changes

  • build-vendor.mjs: quality joins VENDORED_SOURCES (a dirty checkout under quality/ is refused). The views/ writer is now one function taking {sourceRoots, rules, dest, description}; a second set copies neuroschema quality/vectors/* to shared/contract/neuroschema/quality/vectors/, with its own quality/SHA256SUMS.json (format nemar.vendored-files.v1). --check covers both sets (every file, no file more or less). A commit with no file under quality/vectors/ is refused.
  • Regenerated at the tag: dataset.bundle.json (50 schemas, now including the six quality schemas), views/SHA256SUMS.json (only the version and commit change; every view file is byte for byte 0.6.1's), and the new quality/ (quality-verdicts.v1.json, item-checks.v1.json, conformance-checks.v1.json).
  • Pins moved to 0.7.0: NEUROSCHEMA_VERSION and its comments in shared/contract/dataset.ts, the shared/contract/index.ts comment, the comments in backend/src/routes/data.ts and backend/src/services/data-router.ts, shared/neurobagel/input-schema.ts, the "currently 0.7.0" description in shared/zarr-engine-protocol.schema.json, both test/fixtures/neuroschema/*-ds002718-processing.json stamps, test/contract-schemas.test.ts (0.6.1 is now refused too) and test/data-route.unit.test.ts.
  • Transition line: NEUROSCHEMA_TRANSITION_LINES goes from the stale ["0.4"] to ["0.6"] (production serves 0.6.1), with its docblock and test rewritten. The "rejects another MINOR" case now uses 0.5 instead of 0.6, because 0.6 is the transition line.
  • New tests: in test/contract-neuroschema.test.ts, quality/SHA256SUMS.json is stamped 0.7.0 at the release commit, every copy matches it and it lists exactly the three vector files, the bundle holds the three quality definitions and the three namespaces, and the 79-case verdict corpus replays under Ajv on the bundle with every case's valid (6 schemas, each resolved to its nsc:/ id). In test/neuroschema-build-vendor.unit.test.ts, the quality rule is copied byte for byte from git (a skip-worktree tamper does not get through), a dirty quality/ is refused with nothing written, an empty quality/vectors/ is refused, and --check reports a missing, an extra and a changed quality/ file.
  • CHANGELOG.md (Unreleased): "Vendor neuroschema 0.7.0 (quality states and namespaces)".

The TypeScript replay of item-checks and conformance-checks belongs to phase 1a, not to this PR. nemar-process's byte copy of the bundle moves in 2a.2; its advisory nemar-cli-latest job will show the difference once this reaches dev, which is expected.

What the website must re-copy (phase 0b, website#625)

  • Re-run scripts/copy-quality-views-vocabulary.mjs: its pin moves to 0.7.0 and this commit. The view bytes are unchanged.
  • Add a source for the quality vectors: shared/contract/neuroschema/quality/SHA256SUMS.json (same nemar.vendored-files.v1 format as views/), copying vectors/*.json to test/fixtures/quality/vectors/.
  • The website's drift test against nemar-cli dev stays red until the whole epic merges (owner ruling: one merge).

Tests

  • bun shared/contract/neuroschema/build-vendor.mjs <neuroschema at v0.7.0> --check: matches 0.7.0 at c3ea2c06
  • bun run typecheck
  • bunx biome check on shared/contract and the changed tests: clean
  • bun test on contract-neuroschema, contract-neuroschema-record, neuroschema-build-vendor, contract-schemas, data-route.unit, compute-checkpoints, quality-documents-contract and plugin-manifest-contract: 597 pass, 1 skip (the nemar-process byte comparison, which needs NEMAR_PROCESS_DIR; with the variable set, quality-documents-contract passes 117 of 117)
  • Not run: test/contract-live.test.ts and test/data-route.test.ts (they read a deployed backend). They would check the live schema_version against NEUROSCHEMA_LINE_RE, which matters because the transition line moved to 0.6.

Review

  • Review round 1 (e625672): no Critical or Important findings; three Low fixes in one commit: the views describe block is retitled (views since 0.6.0, stamped 0.7.0), the data-router comment names the public neuroschema repository instead of a local path, and the transition-line docblock links the follow-up Empty NEUROSCHEMA_TRANSITION_LINES after the 0.7.0 backend deploys #2535. Reran contract-neuroschema, neuroschema-build-vendor.unit, data-route.unit and contract-schemas (312 pass, 0 fail) and biome on the changed files (clean).

Agentic AI tools were used. Workflows follow the Research Skills (doi:10.5281/zenodo.20696515). The author assumes full responsibility for this content and associated changes.

@github-actions

github-actions Bot commented Nov 28, 2026 •

Copy link
Copy Markdown

📦 Package Preview

Your package is ready to test!

bun install -g nemar-cli@PR2534

Version: 0.10.61-PR2534.e625672
Commit: e625672


🤖 Updated on each push.

@neuromechanist
neuromechanist merged commit ae9abbc into feature/issue-2524-epic-quality-axes Nov 28, 2026
27 checks passed
@neuromechanist
neuromechanist deleted the feature/issue-2525-vendor-neuroschema-0.7.0 branch November 28, 2026 20:44

This branch was previously deployed

1 inactive deployment
npm — e625672d Deployed Nov 28, 2026 by neuromechanist via publish #5293
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