Skip to content

Epic #2324 seam fixes: migration prefixes, ADR status, changelog - #2413

Merged
neuromechanist merged 9 commits into
feature/issue-2324-epic-pipeline-progressfrom
fix/2412-seam-fixes
Nov 26, 2026
Merged

neuromechanist merged 9 commits into
feature/issue-2324-epic-pipeline-progressfrom
fix/2412-seam-fixes

Conversation

@neuromechanist

@neuromechanist neuromechanist commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Seam-review fixes for #2412 (epic #2324 into dev).

Findings and fixes

  • Migration prefixes. Round 1: a prefix must be exactly four digits (wrangler numbers by parseInt and applies in string order, so 00153_b.sql or 154_x.sql would slip past); a malformed name gets its own message; scripts/migration-prefixes.ts joins the cli paths filter so unit-pure runs on it.
    Originally: Nothing rejected two D1 migrations with the same numeric prefix, though wrangler d1 migrations apply tracks by file name (open Publication queue: decide lane (epic #2182) #2397 also adds 0150-0154).
    New scripts/migration-prefixes.ts (duplicateMigrationPrefixes) and test/migration-prefixes.unit.test.ts fail on any shared prefix in backend/src/db/migrations; scripts/d1-migration-check.ts runs the same check before replaying.
    The two pairs already applied in production (0003, 0015) are grandfathered by exact file names; a third file on either prefix still fails.
    The test proves failure on a temp copy of the directory with a duplicate added (no mocks). Revert check: a probe 0153_dup_probe.sql in the real directory fails the first test naming both files; neutering the check fails the three duplicate cases.
  • ADR status. ADR 0140 is built entirely by this epic: accepted in its header (**Accepted:** 2026-11-26; correct it if the UTC merge date differs) and unmarked in the load-bearing list, which marks only ADRs that are not accepted.
    ADRs 0134, 0137 and 0141 stay proposed, each with a header line saying when it moves to accepted (0141: its launcher part, decision 5, is built only on the nemar-process epic).
  • CHANGELOG. Unreleased collapsed to the end state that lands on dev (checked against origin/dev: no plugin manifest, checkpoint maps, figures checkpoint, progress vectors or serving_index there).
    Dropped the ADR 0140 "until the dispatcher stages the index" sentence; the N1 entry now states the final quality checkpoint (nemar-quality then nemar-spectrum); the N1b and Plugin manifest: no unit for a produced role without columns #2358 entries are folded into the manifest's Added entry without the "edited in place", "gone" and "lose figures" history; "regenerated" vectors and "unchanged" maps wording removed; "1.0.0-b1 above" now reads "in 0.10.40 below". The 0.10.40 section and everything after it are byte-identical to dev.
  • CHANGELOG, round 1. The path rule (relativeLocation) is stated as a plain constraint in the Added progress, signalJourney and launcher entries; only the data_papers DOI narrowing (on dev since migration 0088) stays under Changed; the nemar-process gap and the manifest copies are stated relative to nemar-process's epic reaching its dev.
  • Skip-word lists. VIEWS_SKIPPED_NEUROSCHEMA_WORDS and VIEWS_SKIPPED_NEMAR_PROCESS_WORDS docblocks now say they are documentation a contract test holds, not a validation allowlist (the backend admits any failureCode word).

Tests

  • bun run typecheck, bun run lint, Biome on the touched files
  • bun test test/migration-prefixes.unit.test.ts test/adr-index.unit.test.ts test/changelog-format.unit.test.ts test/quality-documents-contract.unit.test.ts (135 pass, 0 fail); round 1: migration-prefixes, adr-index, changelog-format (24 pass, 0 fail)
  • Full bun test not run (targeted only, per .rules/testing.md).

Agentic AI tools were used. The author assumes full responsibility for this content.

@github-actions

github-actions Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

📦 Package Preview

Your package is ready to test!

bun install -g nemar-cli@PR2413

Version: 0.10.40-PR2413.6d9242b
Commit: 6d9242b


🤖 Updated on each push.

@neuromechanist
neuromechanist merged commit 15f8802 into feature/issue-2324-epic-pipeline-progress Nov 26, 2026
27 of 31 checks passed
@neuromechanist
neuromechanist deleted the fix/2412-seam-fixes branch November 26, 2026 18:15

This branch was previously deployed

1 inactive deployment
npm — 6d9242b3 Deployed Nov 26, 2026 by neuromechanist via publish #4993
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