Repository navigation
Phase P1: dataset group - #2320
Merged
neuromechanist merged 25 commits intoNov 22, 2026
Merged
neuromechanist merged 25 commits into
neuromechanist merged 25 commits into
Conversation
📦 Package PreviewYour package is ready to test! bun install -g nemar-cli@PR2320Version: 🤖 Updated on each push. |
neuromechanist
merged commit Nov 22, 2026
9956077
into
feature/issue-2307-epic-admin-tree
31 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 P1 of the admin command tree restructure (ADR 0135):
nemar admin repobecomesnemar admin dataset, withrepokept as a Commander alias, and the per-dataset commands move under it. 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 behavior changes (the
--applyflag on the lifecycle commands,doctor fixdry run by default, dropping--provider) are separate commits.Closes #2309
Part of epic #2307
Old path to new path
admin repo->admin dataset(aliasrepokept, soadmin repo publish approvestill runs)admin publish,admin withdraw,admin restore(ADR 0125 stubs) -> now point atadmin dataset publish|withdraw|restoreadmin ci {check, add, validate, sync}->admin dataset ci ...admin doi {create, info, update, enrich}->admin dataset doi ...admin exemplar {create, status, remint-dois}->admin dataset exemplar ...admin doctor scan,admin doctor fix->admin dataset doctor scan|fix(admin doctor kindsstays until P2 moves it tousers kind-check)admin s3,admin s3 lock,admin s3 credential-check->admin dataset s3 ...admin delete-dataset->admin dataset deleteadmin bulk-delete->admin dataset bulk-delete(no behavior change)admin reindex->admin dataset reindexadmin make-public-> retired; its stub says the bare visibility flip that skipped the publication request and screen no longer exists and to usenemar admin dataset publish(thePOST /datasets/:id/publishroute stays, no break-glass flag; ADR 0135 amendment 2026-11-22, with a pointer in ADR 0065)admin regenerate-iam,admin s3 regenerate-iam-> retired; the stub says why (the backend route still answers 410)Behavior changes
admin dataset unpublish|withdraw|restore:--applyis the write flag;--executeis a hidden alias of it.admin dataset doctor fix: a dry run unless--apply;--dry-runis accepted and hidden; both together are refused.admin dataset doi create:--providerremoved (it could only be refused; EZID is the registrar, ADR 0007).src/lib/moved-commands.ts: a row may be{ oldPath, retired }for a command with no replacement; its line reads "'...' was retired: Nothing was run."make-publicand itspublishDatasetclient function are removed.Callers updated in this repository
shared/publication-review.tsCOMMAND_*,shared/contract/publication.ts, backend mail and refusal text (email.ts,identifier-screen.ts,unpublish.ts,routes/datasets/publication.ts,routes/admin/fleet.ts), CLI hints insrc/,help-groups.ts(admin lead block is now users, approve, revoke, dataset, pr-reviews, mail, notify), theadmin --helptext, README,.rules/datasets-and-fixtures.md, one memory, three current runbooks, and CHANGELOG. The publication-request mail hashes inbackend/test/publication-review-mail.test.tsare re-pinned: the new mail withadmin dataset publishput back toadmin repo publishhashes to the old pins exactly.Outside this repository (not in this PR)
The website
cliApproveCommand(website#582), the nemar-observability manifest alert text and its test, and the docs.nemar.org pages that name moved paths change in the same release.Test plan
bun run lint,bun run typecheck,biome checkon every changed test and backend filetest/moved-commands.unit.test.ts(296 pass), now asserting each pointer's usage line, not only exit 0test/adr-index.unit.test.ts(10 pass),test/admin-restructure.test.ts(20 pass),test/help-tiers.unit.test.ts(12 pass)test/approve-publication-probe.unit.test.ts(5 pass): runs the bash probe fromapprove-publication.ymlverbatim against the realadmin repo --helpandadmin dataset --help, colored and plain, with a folded-help control that picks the dead pathtest/admin-dataset-group.unit.test.ts(22 pass, including a confirmed--yesrun per spelling that asserts the request carriesdry_run: false) andtest/admin-doctor-fix-dry-run.unit.test.ts(5 pass), against a recording Bun.serve stand-in with an environment built from nothingdry_run: trueafter confirmation in withdraw and restore fails the 4 confirmed-run tests.alias("repo")fails 3 of the 5 probe tests; pointing a stub at a path that does not exist fails its pointer testbun testnot run (runs at epic to dev)