Repository navigation
Re-vendor neuroschema 0.6.0 (epic #2324 N1a) - #2356
Merged
neuromechanist merged 9 commits intoNov 24, 2026
Merged
neuromechanist merged 9 commits into
neuromechanist merged 9 commits into
Conversation
build-vendor.mjs now copies views/registry.json, views/vectors, views/montages and examples/views byte for byte into shared/contract/neuroschema/views/ with a SHA256SUMS.json, and refuses a dirty neuroschema checkout. Tested: regeneration from v0.6.0 is reproducible.
Bundle and view files from tag v0.6.0 (e09ed407): 44 schemas, the view registry, parity vectors, montages with provenance and the example product. NEUROSCHEMA_VERSION 0.6.0; fixtures re-copied from the 0.6.0 examples; the transition line stays 0.4 (0.5.0 was never deployed). New tests: release stamp, view schemas in the bundle, SHA256SUMS, eegprep commit equals the recipe engine's, record example refused with figures, example product bytes. Tested: targeted contract tests; the progress path agreement test is fixed in the next commit.
PROGRESS_PATH_RE and the ProgressPath pattern of the progress and results report schemas now refuse . segments, empty segments, leading or trailing spaces and % ? #, so live failures, failure lists and signalJourney link locations follow neuroschema 0.6.0. Tests: agreement both ways with the vendored relativeLocation, the schema pattern equals the regex, failure lists and links refuse the narrowed paths.
The writer's DOI rule is neuroschema 0.6.0 dataPaper.doi exactly: four to nine ASCII digits and a printable-ASCII suffix. Tests hold the writer to the vendored schema case for case.
Every vendored byte (version, schemas, view files) is read with git cat-file at the stamped commit and the file list from git ls-tree, so skip-worktree, autocrlf and smudge cannot leak working-tree bytes. The dirty-tree refusal stays. Everything is built and checked in memory before views/ is emptied. --check diffs against the vendored tree and writes nothing. Tested: new hermetic test (skip-worktree, CRLF, dirty refusal, --check), each guard mutated.
📦 Package PreviewYour package is ready to test! bun install -g nemar-cli@PR2356Version: 🤖 Updated on each push. |
Contributor
Author
|
Review r1 (code+tests+errors+comments): no Critical or Important; build-vendor now reads git blobs at the stamped commit and has --check, mutation table in the body, docblock rewrapped, CHANGELOG names the P2 window. Driver verified: the 4 build-vendor tests pass and --check against a fresh v0.6.0 clone reports an exact match. CI: only the two expected failures (plugin-name agreement, owned by N1b next; recipe drift, until nemar-process PZ reaches dev); cancelled shard rerun once. Admin-merging into the epic branch. |
neuromechanist
merged commit Nov 24, 2026
d3b5f66
into
feature/issue-2324-epic-pipeline-progress
46 of 53 checks passed
9 tasks done
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Phase N1a of epic #2324 (ADR 0137): re-vendor neuroschema 0.6.0, tag
v0.6.0on main at e09ed407.Changes
build-vendor.mjsalso copiesviews/registry.json,views/vectors/*,views/montages/*(withPROVENANCE.json) and the example product (examples/views/toviews/examples/) byte for byte, withviews/SHA256SUMS.json(source path, size, SHA-256, version, commit)..gitattributesmarks the copies-text.git cat-file blob <commit>:<path>). The file list comes fromgit ls-tree, so skip-worktree, autocrlf and smudge filters cannot put working-tree bytes into the copy. The dirty-tree refusal stays as a second guard. Everything is built and checked in memory beforeviews/is emptied, so a refused run leaves the tree untouched.--checkrebuilds in memory, compares againstdataset.bundle.jsonandviews/(every file, with nothing missing and nothing extra), writes nothing, and exits 1 on any difference.definitions/view.schema.json, the kind, content and transform schemas). Regeneration from the tag is reproducible.NEUROSCHEMA_VERSION0.6.0; comments that named v0.5.0 fixed. The transition line stays["0.4"], since 0.5.0 never left the epic, and the pin test now refuses 0.5.x.test/fixtures/neuroschema/*-ds002718-processing.jsonre-copied from the 0.6.0 examples.PROGRESS_PATH_REand theProgressPathpattern incompute-progress.schema.jsonandcompute-results-report.schema.jsonnarrowed to 0.6.0relativeLocation(ASCII): no.or empty segment, no trailing/, no leading or trailing space, none of% ? #. This also governs the failure lists and signalJourney linklocation. The old assertion that./aanda//bare accepted is replaced by agreement tests in both directions.data_papersDOI writer pattern is now^10\.[0-9]{4,9}/[!-~]+$(neuroschemadataPaper.doi).%,?,#or a leading or trailing space passes nemar-process's filter but is refused by the backend.Tests (no mocks)
view.schema.jsonand every registry kind in the bundle, every view file matches SHA256SUMS and SHA256SUMS lists every file, the eegprep commit in the vectors equals the recipes' engine commit, the record example validates withviewsand is refused withfigures(renamed or added), and the example product's record validates with its declared files equal to the product bytes.relativeLocation, the ASCII-only narrowing, the schema pattern equal to the regex, and the failure lists and links refusing narrowed paths.test/neuroschema-build-vendor.unit.test.tsbuilds a small git repository in a temporary directory and runs a copy of the script against it. It covers skip-worktree on a view file and on a schema (the committed bytes are vendored), an autocrlf CRLF working copy (the LF blob is vendored), a visible change (refused, with the vendored tree untouched), and--check(exact tree passes; a missing tree, a flipped byte, an extra file or a changed bundle each fails, and nothing is written).views/registry.jsonandschema/definitions/view.schema.jsonwere set to skip-worktree and overwritten.git statuswas clean,--checkexited 0, and a write run left the vendored tree unchanged.Mutation table
Each mutation was applied to the source, the targeted tests were run, and the file was restored.
source_commitchanged by one characterview.schema.jsonrenamed in the bundle (id and refs)vectors/view-digest.v1.jsonmontages/biosemi64.jsonRECIPE_ENGINEcommit changedsensor-field.v1.jsonchangedfiguresPROGRESS_PATH_REreverted to the 0.5.0 rule\d{4,9}/\S+NEUROSCHEMA_VERSIONleft at 0.5.0views/vectors/--check)--checkignores extra filesGates
bun install(root, backend),bun run typecheck,bun run lint: clean.test/plugin-manifest-contract.unit.test.ts, "the name and version patterns agree with neuroschema processingTypes.plugin". In 0.6.0 the plugin name pattern is narrower, so the corpus caseA.b_c-dnow differs. N1b changesPLUGIN_NAME_RE, so this PR leaves it unchanged.bun test(epic gate), and the live testscontract-liveanddata-route(they need a deployed backend). The recipe drift test skips locally because there is no nemar-process checkout; on CI it is expected to fail on the epic branch because nemar-processdevlacks PZ.Downstream
nemar-process re-copies
compute-progress.schema.jsonandcompute-results-report.schema.json(P2, consumer-impact item 8).