Repository navigation
Phase P4: import group and upstream commands - #2323
Merged
neuromechanist merged 14 commits intoNov 24, 2026
Merged
neuromechanist merged 14 commits into
neuromechanist merged 14 commits into
Conversation
2 of 3 tasks
📦 Package PreviewYour package is ready to test! bun install -g nemar-cli@PR2323Version: 🤖 Updated on each push. |
neuromechanist
merged commit Nov 24, 2026
d83bdfe
into
feature/issue-2307-epic-admin-tree
51 of 53 checks passed
This was referenced Nov 24, 2026
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
Phase P4 of the admin command tree restructure (ADR 0135): the import commands join the existing
nemar admin importgroup (besidestatus,rollback,retry,verify), and the upstream snapshot commands joinnemar admin repull. Every old path is a row of the moved-command table: it runs nothing, prints one line naming the new path, and exits 1.Moves are their own commits with no behavior change. The
import-weeklymove is a one-line re-parent (importCommand.addCommand(importWeeklyCommand.name("weekly"))) with the command's definition untouched, so the RFC branches that editimport-weeklyrebase over it with a one-line conflict at most;import-coverageandimport-issue-triagemove the same way.Closes #2312
Part of epic #2307
Old path to new path
admin import-openneuro->admin import openneuroadmin import-coverage->admin import coverageadmin import-weekly->admin import weeklyadmin import-issue-triage->admin import triageadmin upstream-status->admin repull upstream-statusadmin upstream-backfill->admin repull upstream-backfillBehavior changes
admin repull upstream-backfill:--applyis the write flag;--executeis a hidden alias of it. The request still carriesexecute=1..github/dataset-workflows/onboard-openneuro.yml: each of the prepare, copy and finalize steps asks the installed CLI which import path it has (nemar admin import openneuro --help, read by its usage line, with a fallback toadmin import-openneuro) and calls that path. It is byte-identical to Onboard: probe the CLI's import path nemarDatasets/.github#158.Expected CI failure: dataset-workflow-parity
test/dataset-workflow-parity.test.tscompares this repository's copy ofonboard-openneuro.ymlwith nemarDatasets/.githubmain, so it FAILS on this PR until the owner merges nemarDatasets/.github#158. Locally, withNEMAR_DATASET_WORKFLOW_LIVEset: against nemarDatasetsmain, 3 pass and 1 fail (the byte comparison); against the #158 branch, 4 pass. Merge order: #158 first (it works with today's CLI and with this one), then this phase.Callers updated in this repository
Backend
import-coverage.ts,import-failure-cause.ts,import-weekly-summary.ts,import-weekly-summary-sweep.ts;shared/upstream-staleness.ts,shared/repull-observability.ts,shared/contract/weekly-attention.ts;src/lib/import-openneuro.ts,src/lib/repull/auto-view.ts,src/lib/upstream-status-report.ts,src/lib/upstream-measure.ts,src/lib/debug-log.ts,src/commands/admin-upstream-status.ts, theadmin --helpblock, and CHANGELOG..context/design-upstream-repull.mdand.context/plan-multi-archive-importer.mdare design records and are left as written.Outside this repository (not in this PR)
nemarDatasets/.github#158 (the workflow), nemarDatasets/.github
docs/import-failure-procedure.md:33, docs.nemar.org pages, and the website's.context/handoff.md:52.Test plan
bun run lint,bun run typecheck,biome checkon every changed test filetest/onboard-workflow.test.ts(new block): everynemar admin ...path the workflow names is a live command except the old-CLI fallback, which is the moved-command stub; the import is only called through the probe's choice; the three steps carry the same probe; the probe picksadmin import openneurofrom this CLI's real help, plain and with forced color; the control shows an unknown word underimportanswers with exit 0; and against a pre-move CLI's answers it falls back toadmin import-openneuro--tagfound in both (output in Onboard: probe the CLI's import path nemarDatasets/.github#158)moved-commands.unit,help-tiers.unit,admin-restructure,repull-command-text.unit,repull-workflow,completion-candidates.unit,release-version-flag: 24 files, 1213 pass, 6 skip (live tier, no keys), 1 fail fixed (repull-command-textlistedrepull's children; it now imports the whole tree so it does not depend on file order)import-tag-pin.integrationupdated (its API is a closed local port)if ! nemar admin import openneuro --help) fails the pre-move fallback testdataset-workflow-paritygreen: needs Onboard: probe the CLI's import path nemarDatasets/.github#158 merged (owner)bun testnot run (runs at epic to dev)