Repository navigation
Phase P3: rework group - #2322
Merged
neuromechanist merged 14 commits intoNov 22, 2026
Merged
neuromechanist merged 14 commits into
neuromechanist merged 14 commits into
Conversation
📦 Package PreviewYour package is ready to test! bun install -g nemar-cli@PR2322Version: 🤖 Updated on each push. |
neuromechanist
merged commit Nov 22, 2026
67f9d8f
into
feature/issue-2307-epic-admin-tree
27 checks passed
This was referenced Nov 22, 2026
Closed
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 P3 of the admin command tree restructure (ADR 0135): a new
nemar admin reworkgroup holds the operations that change the content or history of an existing dataset (ADR 0135 decision 3), with anannexsub-group for the git-annex repairs. Every old path is a row of the moved-command table: it runs nothing, prints one line naming the new path, and exits 1.admin fleetstays a live group; its three annex repairs become stubs under it.Moves are their own commits with no behavior change; the two flag changes are separate commits with their own tests.
Closes #2311
Part of epic #2307
Old path to new path
admin revert->admin rework revertadmin recover,admin recover status->admin rework recover,admin rework recover status(moved, not retired)admin annex-normalize->admin rework annex normalizeadmin fleet annex-policy->admin rework annex policyadmin fleet key-registration->admin rework annex key-registrationadmin fleet content-recovery->admin rework annex content-recoveryBehavior changes
admin rework annex normalizeis a dry run unless--applyis given: it plans and stops before any change. The old--dry-runis accepted and hidden;--applywith--dry-runis refused. It now also takes-n, --no(decline the confirmation), the same option the other confirming admin commands have.admin rework recover:--applyis the write flag;--executeis a hidden alias of it.Callers updated in this repository
backend/src/services/import-failure-cause.ts:115,src/lib/import-finalize-gate.ts:149,src/lib/repull/execute/register.ts:258,src/lib/fleet-annex-policy.ts:91, 456, 476, therework annex key-registrationhints inadmin.ts,src/lib/recover-datasets.ts,src/lib/argv-shadowing.tscomments, two backend comments, theadmin --helpblock (areworkline replacesrevert), the ieeg-geometry plan's proposed command (admin rework ieeg-geometry),.context/recover-runbook.md, and CHANGELOG.Outside this repository (not in this PR)
docs.nemar.org
admin/commands.mdx(regenerate) and nemarDatasets/.githubdocs/import-failure-procedure.md:32(nemar admin recover <id>).Test plan
bun run lint,bun run typecheck,biome checkon every changed and new test filetest/admin-annex-normalize-dry-run.unit.test.ts(5 pass), against a local bare origin and a reused--dirclone, so nothing is cloned from GitHub; every run passes--no, so nothing is committed or pushed even with a terminal attachedtest/admin-rework-recover-apply.unit.test.ts(4 pass)moved-commands.unit,help-tiers.unit,admin-restructure,fleet-content-recovery,fleet-annex-policy.unit,completion-candidates.unit,admin-users-group.unit: 843 tests across 15 files, 0 fail after fixingrelease-version-flag(30 pass); 13 skips are live-tier tests that need keystest/cli.test.tsgrepped and updated (revert); itsreverttests run locally: 2 pass, 1 skip (needs a key)--dry-run) in normalize fails the default test; dropping the--executealias on recover fails its alias testbun testnot run (runs at epic to dev)