Skip to content

Phase P5: sweeps and checks into fleet - #2345

Merged
neuromechanist merged 11 commits into
feature/issue-2307-epic-admin-treefrom
feature/issue-2313-phase5-fleet-sweeps
Nov 24, 2026
Merged

neuromechanist merged 11 commits into
feature/issue-2307-epic-admin-treefrom
feature/issue-2313-phase5-fleet-sweeps

Conversation

@neuromechanist

@neuromechanist neuromechanist commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

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 with drift, enforce, require-review and revalidate (and the P3 stubs). Per the owner's decision of 2026-11-22 there is no separate maintenance group; the sweeps sit in a new fleet sweep sub-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 hed
  • admin recording-stats-sweep -> admin fleet sweep recording-stats
  • admin signal-defaults-sweep -> admin fleet sweep signal-defaults
  • admin data-integrity-sweep -> admin fleet sweep data-integrity
  • admin zarr-fidelity-sweep -> admin fleet sweep zarr-fidelity
  • admin anonymity-sweep -> admin fleet sweep anonymity
  • admin availability-report -> admin fleet sweep availability
  • admin summary, admin summary check -> admin fleet summary, admin fleet summary check
  • admin zarr-catalog, admin zarr-catalog publish -> admin fleet zarr-catalog, admin fleet zarr-catalog publish
  • admin e2e-test -> admin fleet e2e-test

Behavior changes

  • admin fleet sweep availability: for one dataset, --apply commits the report (a preview without it); --write is a hidden alias. --all runs 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: --apply dispatches generate-manifest for the drifted versions; --fix is a hidden alias; --yes and --no behave as before.
  • The fleet description and the admin --help block 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.yml only prints summary check --fix --yes in its weekly issue body; it now prints nemar 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 in admin.ts and dataset.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-infisical RESUME.md:59 and nemar-private .context/runbook-copy-dataset.md:129 (e2e-test).

Test plan

  • bun run lint, bun run typecheck, biome check on every changed and new test file
  • New test/admin-fleet-apply.unit.test.ts (12 pass): availability previews without a flag and commits with --apply or --write; --all writes without --apply and its help says so; summary check reports without a flag and with --yes alone, declines with --no, and dispatches each drifted version with --yes, for --apply and --fix; both helps list --apply and hide the old spelling
  • Mutation: restoring "Dry-run by default" in the availability description fails the --all help test
  • Every changed test file plus moved-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-cli asserted the sweeps in admin --help; it now reads admin fleet sweep --help), then 19 pass in that file
  • Live-tier and integration test files grepped for every moved path
  • Mutation: making availability always write (options.apply !== false) fails the preview test
  • Full bun test not run (runs at epic to dev)

@github-actions

Copy link
Copy Markdown

📦 Package Preview

Your package is ready to test!

bun install -g nemar-cli@PR2345

Version: 0.10.39-PR2345.e3d945f
Commit: e3d945f


🤖 Updated on each push.

@neuromechanist
neuromechanist merged commit c95d807 into feature/issue-2307-epic-admin-tree Nov 24, 2026
27 checks passed
@neuromechanist
neuromechanist deleted the feature/issue-2313-phase5-fleet-sweeps branch November 24, 2026 00:37

This branch was previously deployed

1 inactive deployment
npm — e3d945fc Deployed Nov 24, 2026 by neuromechanist via publish #4820
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant