Repository navigation
Map recipe pre-checks to preprocess - #2337
Merged
neuromechanist merged 2 commits intoNov 23, 2026
Merged
neuromechanist merged 2 commits into
neuromechanist merged 2 commits into
Conversation
📦 Package PreviewYour package is ready to test! bun install -g nemar-cli@PR2337Version: 🤖 Updated on each push. |
8 of 9 tasks
Contributor
Author
|
Review converged: one reviewer (code+tests), round-1 findings fixed in 7c721e1 (pre-check vectors, strict drift test, comments). All checks green. |
neuromechanist
merged commit Nov 23, 2026
1b64536
into
feature/issue-2324-epic-pipeline-progress
27 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.
Summary
Three checks run under a later step's id before that step runs: the floor's robust-amplitude measurement under
qc(before bad channels and bad windows), and nemar-ica's rank check undericaand location check undericlabel(before ASR). A recording they refuse would be counted as having passed checkpoints that never ran, and that count is published in neuroschemaprocessing. nemar-process (nemarOrg/nemar-process#74, Phase 3) gives them their own step ids,qc_amplitude,ica_eligibilityandiclabel_locations, declared asPRE_CHECKSbesideSTEP_ORDERand counted atpreprocess; this PR makes the registry's maps match.shared/compute-recipes.ts:RECIPE_PRE_CHECKS;qc_amplitudein the floor'spreprocess(beforebad_channels);ica_eligibilityandiclabel_locationsin nemar-ica'spreprocess(after the re-runqc, beforeasr).shared/contract/compute-progress-vectors.jsonregenerated (NEMAR_WRITE_PROGRESS_VECTORS=1): only the maps change.test/compute-recipes-process-drift.unit.test.ts: STEP_ORDER is compared with the map without the pre-checks (they are table step ids, not record steps); each pre-check must sit atpreprocess; when the nemar-process checkout declaresPRE_CHECKS, they must equal the map's. It passes against nemar-processdevtoday (noPRE_CHECKSyet) and against the Phase 3 branch.test/compute-recipes.unit.test.ts: the step orders and a pre-check test.The recipe versions stay
1.0.0-b1: no image has been published, and the record's processing steps are unchanged (the pre-checks are not record steps). After this merges, nemar-process #74 re-pins its progress and runner pins to the new epic commit.Part of epic #2324
Test plan
bun testoncompute-recipes.unit,compute-checkpoints.unit(vectors equal the code),compute-progress-contract.unit,compute-recipes-process-drift.unit(required, against the nemar-process Phase 3 tree and against nemar-processorigin/dev): 163 passcompute-progress-reconcile,compute-runner-progress,compute-progress-route,compute-pipeline-grid: 77 passqc_amplitudefrom the floor map fails the drift testbun run typecheck,bun run lint, biome on the touched filesbun test(epic to dev gate)Review round 1
ica_mixed: thed.setrow's step is nowica_eligibility, and a newh.setrow failsstep_failedaticlabel_locations;floor_mixed: a newi.setrow failsstep_failedatqc_amplitude. Regenerated withNEMAR_WRITE_PROGRESS_VECTORS=1. nemar-process Add BIDS CI at upload, push --pr, dataset ci command #74's Python replay passes with the new vectors (scratch archive of Add BIDS CI at upload, push --pr, dataset ci command #74 head:test_progress_rules.py53 passed on Python 3.9,test_checkpoint_maps.py7 passed).steps.pythat declaresCHECKPOINTSmust declarePRE_CHECKS, and itsCHECKPOINTS(parsed by a newcheckpointsOf, pinned on literal text) must equal the registry's map step for step. Against nemar-processdev(noCHECKPOINTSyet): 9 pass. Against an archive of Add BIDS CI at upload, push --pr, dataset ci command #74: 9 pass. Mutations on that archive:PRE_CHECKSdeleted from nemar_ica fails 1;qc_amplitudemoved toqualityin the floor fails 1.STEP_ORDERplusPRE_CHECKS.Round 1 gates:
compute-recipes.unit,compute-checkpoints.unit,compute-progress-contract.unit155 pass; backendcompute-progress-reconcile,compute-runner-progress,compute-progress-route,compute-pipeline-grid77 pass; typecheck, lint, biome clean. The fullbun testwas not run (epic to dev gate).