Skip to content

Catch up with nemar-process dev and neuroschema 0.6.1 (#2411) - #2439

Merged
neuromechanist merged 11 commits into
devfrom
fix/issue-2411-process-dev
Nov 27, 2026
Merged

neuromechanist merged 11 commits into
devfrom
fix/issue-2411-process-dev

Conversation

@neuromechanist

@neuromechanist neuromechanist commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

Closes #2411

Catches nemar-cli up with nemar-process's epic (nemarOrg/nemar-process#101 merged into it as 90e248d7) and neuroschema 0.6.1 (nemarOrg/neuroschema#40, tag v0.6.1, 86f28d18), then points CI back at nemar-process dev.

Changes

  • Engine. RECIPE_ENGINE moves to [email protected]+871bc7f8a03b6d925330c598e8dcd18b835614d3, the eegprep block of nemar-process's lock at 90e248d7. This brings ICLabel on ONNX (onnxruntime 1.32.0) and MIR in nemar-quality 0.2.0. The tests that hard-code the engine moved with it. Recipe versions stay 1.0.0-b2.
  • neuroschema 0.6.1. Re-vendored with build-vendor.mjs at 86f28d18: dataset.bundle.json provenance, views/SHA256SUMS.json, and the two regenerated sensor vector files. NEUROSCHEMA_VERSION is now 0.6.1, and the contract tests' RELEASE_COMMIT and version expectations moved with it. The neuroschema example fixtures are re-copied at v0.6.1, and the comments that name the current version were updated.
  • ica-views fixture. test/fixtures/quality/ica-views is nemar-process 90e248d7's product. Its SHA256SUMS.json has the new sizes, digests and source_commit, and the byte comparison against that commit passes. The __proto__ case in test/quality-documents-contract.unit.test.ts now anchors on nemar-quality:mutualInformationReduction, which sorts first in the plugin step's qualityMetrics. New tests fail if a re-copied fixture lacks MIR: one checks that the entry carries the metric, the other that its one-recording distribution matches the record to four decimals.
  • frame_rotated retired. Dropped from VIEWS_SKIPPED_NEMAR_PROCESS_WORDS, which now equals nemar-process's OWN_SKIP_REASONS.
    • A stored record that still gives frame_rotated is admitted. Tests cover both the entry reader and its Ajv mirror.
    • The new words of Configure git-annex public S3 remote on dataset publication #101 are not views-skipped words, so they are not added there. mir_refused and mir_bins_changed are plugin metric-skip words, in the run record's extensions.nemar.plugins[].metrics_skipped. iclabel_frame_unoriented is the detail of a recording that fails.
    • nemar-cli enumerates neither kind of word, and no backend reader needs a change: plugin entries are read for name and status only, and readRecipeRecord ignores the new onnxruntime key in the engine stamp.
  • ADR 0137 notes that the parity reference eegprep is now 871bc7f8. Its two eegprep divergences (empty map for duplicates, shifted values) are marked as true at edf694c8 and fixed at 871bc7f8; the merge and drop rules still decide both. CHANGELOG has an Unreleased entry.
  • CI. The test workflow checks out nemar-process at ref: dev again, and the PINNED comment is removed (last commit).

How the version bump affects stored documents

  • metadata.json now serves schema_version 0.6.1. The envelope is built per request from NEUROSCHEMA_VERSION, and the live contract check accepts any patch on the 0.6 line.
  • Documents stored at 0.6.0 or earlier still validate. The bundle uses nsc: ids and carries no raw.githubusercontent.com/.../v0.6.x URI. Its schema_version is a plain string. The backend validates only extension objects (dataQuality, processing, signalJourney) by their nsc: id, and those carry no stamp.
  • A new test validates records and datasets stamped 0.6.0, 0.4.1 and 0.3.0 against the 0.6.1 bundle. The only exact-version literal is the Zod neuroschemaDatasetSchema, which no backend code validates against; only the tests use it.

Deployment

Follow the 0.10.40 procedure before this reaches an environment with compute on:

  1. Release nemar-process, after Pipeline checkpoints, live progress and quality plugins (ADR 0134, ADR 0137) nemar-process#98.
  2. Publish the runtime image from its main.
  3. Repin COMPUTE_RUNTIME_IMAGE.
  4. Verify the pinned digest's tuple with nemar-recipe version.

If this is deployed before the image, one record from the older image holds the recipe's whole claimed tuple (tuple_mismatch). The cron then skips that recipe for every dataset (registry_drift). The hold does not clear with time or by repinning the image; only deleting the hold rows or a new registry tuple clears it. Compute stays dark until the owner turns it on.

Merge order

Test plan

Targeted runs only; the full bun test was not run. The drift tests ran against a nemar-process checkout at 90e248d7 with NEMAR_PROCESS_DIR and NEMAR_PROCESS_OBSERVATION_DIR set and NEMAR_REQUIRE_PROCESS_RECIPES, NEMAR_REQUIRE_PROCESS_QUEUES and NEMAR_REQUIRE_PROCESS_OBSERVATION_DRIFT on.

  • bun run typecheck, bun run lint, and biome on the changed files (no errors)
  • bun run migrations:d1-check
  • 33 suites, 1848 pass, 0 fail, 1 skip (the "required flag without a checkout" case, skipped because a checkout was given). They cover:
    • the recipe, observation and queue drift tests
    • compute-recipes*, contract-neuroschema*, contract-schemas, neuroschema-build-vendor and quality-documents*
    • the engine suites: compute-{pipeline-input,derivatives,runner-jobs,job-callbacks,pipeline-dispatch,pipeline} and admin-compute-*
    • zarr-engine-protocol-contract, metadata-json*, quality-{route,admin-views,processing-route}, data-route, schema-check and view-digest
  • CI against nemar-process dev after Pipeline checkpoints, live progress and quality plugins (ADR 0134, ADR 0137) nemar-process#98

Agentic AI tools were used. The author assumes full responsibility for this content.

RECIPE_ENGINE is now [email protected]+871bc7f8 (nemar-process#101's
lock). The contract test holds the vectors' eegprep commit to the
engine, so neuroschema is re-vendored at nemarOrg/neuroschema#40's
head (sensor vectors regenerated at 871bc7f8); it moves to the 0.6.1
release commit later. Part of #2411.
Tested: typecheck; targeted suites incl. the process drift test
against nemar-process feature/66-mir.
nemar-process#101 removes the word: eegprep 871bc7f8 orients the
CTF, 4DBti and KitYokogawa frames. Part of #2411.
Tested: quality-documents-contract unit test.
Re-vendor at v0.6.1 (86f28d18) and set NEUROSCHEMA_VERSION to
0.6.1; the served metadata.json now says 0.6.1. The bundle never
checks a stamp, so stored 0.6.0 documents still validate (new test).
Part of #2411. Tested: contract-neuroschema*, contract-schemas,
data-route, zarr-engine-protocol-contract.
The fixture is nemar-process#101's product: nemar-quality 0.2.0 with
mutualInformationReduction, which sorts first in the plugin step's
qualityMetrics, so the __proto__ case anchors on it. Part of #2411.
Tested: quality-documents-contract (byte comparison against
90e248d7), schema-check, view-digest and the backend quality suites.
Removes the a5125c7b pin and its comment: nemar-process dev carries
the epic once nemarOrg/nemar-process#98 merges. Closes #2411.
Duplicates and non-finite values: true at edf694c8, fixed at
871bc7f8 (sccn/eegprep#672); the merge and drop rules still
decide. Part of #2411.
The hold from a premature deploy stops the recipe everywhere and
never clears on its own; follow the 0.10.40 procedure. A stored
frame_rotated is still admitted. Part of #2411.
The fixture must carry mutualInformationReduction (entry and a
one-recording distribution), and a stored frame_rotated skip is
admitted by the entry and its Ajv mirror. Part of #2411.
Tested: quality-documents-contract, adr-index.
@github-actions

github-actions Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

📦 Package Preview

Your package is ready to test!

bun install -g nemar-cli@PR2439

Version: 0.10.47-PR2439.90a0dc4
Commit: 90a0dc4


🤖 Updated on each push.

This branch was previously deployed

1 inactive deployment
npm — 90a0dc45 Deployed Nov 27, 2026 by neuromechanist via publish #5065
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