Repository navigation
Phase P5: sweeps and checks into fleet - #2345
Merged
neuromechanist merged 11 commits intoNov 24, 2026
Merged
neuromechanist merged 11 commits into
neuromechanist merged 11 commits into
Conversation
📦 Package PreviewYour package is ready to test! bun install -g nemar-cli@PR2345Version: 🤖 Updated on each push. |
neuromechanist
merged commit Nov 24, 2026
c95d807
into
feature/issue-2307-epic-admin-tree
27 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 P5 of the admin command tree restructure (ADR 0135): what runs across all datasets or checks the platform moves under
nemar admin fleet, which stays live withdrift,enforce,require-reviewandrevalidate(and the P3 stubs). Per the owner's decision of 2026-11-22 there is no separate maintenance group; the sweeps sit in a newfleet sweepsub-group. 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: each sweep is re-parented with a one-line
fleetSweepCommand.addCommand(<command>.name("<new>")), its definition untouched; the two flag changes are a separate commit with their own tests.Closes #2313
Part of epic #2307
Old path to new path
admin hed-sweep->admin fleet sweep hedadmin recording-stats-sweep->admin fleet sweep recording-statsadmin signal-defaults-sweep->admin fleet sweep signal-defaultsadmin data-integrity-sweep->admin fleet sweep data-integrityadmin zarr-fidelity-sweep->admin fleet sweep zarr-fidelityadmin anonymity-sweep->admin fleet sweep anonymityadmin availability-report->admin fleet sweep availabilityadmin summary,admin summary check->admin fleet summary,admin fleet summary checkadmin zarr-catalog,admin zarr-catalog publish->admin fleet zarr-catalog,admin fleet zarr-catalog publishadmin e2e-test->admin fleet e2e-testBehavior changes
admin fleet sweep availability: for one dataset,--applycommits the report (a preview without it);--writeis a hidden alias.--allruns the sweep and writes with or without--apply, as it always did (ADR 0135 decision 4 keeps defaults); the help now says so instead of "Dry-run by default".admin fleet summary check:--applydispatches generate-manifest for the drifted versions;--fixis a hidden alias;--yesand--nobehave as before.fleetdescription and theadmin --helpblock now describe the group as a whole.Unattended callers
Grepped every workflow and script here, the backend crons, nemarDatasets/.github, the website and nemar-observability: nothing runs any of these commands unattended.
.github/workflows/check-summary-drift.ymlonly printssummary check --fix --yesin its weekly issue body; it now printsnemar admin fleet summary check --apply --yes.Callers updated in this repository
check-summary-drift.yml(issue text and header comment), backend comments (index.ts,datasets-lifecycle.ts,datasetId.ts,enrich-dataset.ts,exemplar.ts,manifest-coverage.ts,page-bundle.ts), CLI hints and examples inadmin.tsanddataset.ts, AGENTS.md:50 and.rules/datasets-and-fixtures.md(e2e-test),.context/recover-runbook.md,.context/scrub-runbook.md, and CHANGELOG.Outside this repository (not in this PR)
docs.nemar.org
admin/commands.mdx(regenerate),admin/operations/access-policies.md:445,admin/operations/zarr-serving.md:227; nemar-infisicalRESUME.md:59and nemar-private.context/runbook-copy-dataset.md:129(e2e-test).Test plan
bun run lint,bun run typecheck,biome checkon every changed and new test filetest/admin-fleet-apply.unit.test.ts(12 pass):availabilitypreviews without a flag and commits with--applyor--write;--allwrites without--applyand its help says so;summary checkreports without a flag and with--yesalone, declines with--no, and dispatches each drifted version with--yes, for--applyand--fix; both helps list--applyand hide the old spellingavailabilitydescription fails the--allhelp testmoved-commands.unit,help-tiers.unit,admin-restructure,completion-candidates.unit,release-version-flag,onboard-workflow,apply-flag.unit: 14 files, 846 pass, 1 fail fixed (recording-signal-sweeps-cliasserted the sweeps inadmin --help; it now readsadmin fleet sweep --help), then 19 pass in that fileavailabilityalways write (options.apply !== false) fails the preview testbun testnot run (runs at epic to dev)