Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

chore: renumber world-doctrine seed migration 165->167 to avoid collision with reader-panel/craft-knowledge (#2175)

[._.]/ Adam Eivy4d76831e3c51
diff --git a/scripts/migrations/165-editorial-world-doctrine-stages.js b/scripts/migrations/167-editorial-world-doctrine-stages.js
similarity index 100%
rename from scripts/migrations/165-editorial-world-doctrine-stages.js
rename to scripts/migrations/167-editorial-world-doctrine-stages.js
diff --git a/scripts/migrations/165-editorial-world-doctrine-stages.test.js b/scripts/migrations/167-editorial-world-doctrine-stages.test.js
similarity index 95%
rename from scripts/migrations/165-editorial-world-doctrine-stages.test.js
rename to scripts/migrations/167-editorial-world-doctrine-stages.test.js
index 6bf9ff6d04..2db0b31ab5 100644
--- a/scripts/migrations/165-editorial-world-doctrine-stages.test.js
+++ b/scripts/migrations/167-editorial-world-doctrine-stages.test.js
@@ -4,7 +4,7 @@ import { tmpdir } from 'os';
import { join, dirname } from 'path';
import { fileURLToPath } from 'url';
-import migration from './165-editorial-world-doctrine-stages.js';
+import migration from './167-editorial-world-doctrine-stages.js';
// scripts/migrations/<this> → ../.. is the repo root (matches _testHelpers.js).
const repoRoot = join(dirname(fileURLToPath(import.meta.url)), '..', '..');
@@ -17,7 +17,7 @@ const FILES = [
{ filename: 'pipeline-editorial-world-cost-free-power.md', stageKey: 'pipeline-editorial-world-cost-free-power', body: '# Cost-free power\n\nshipped body\n' },
];
-describe('migration 165 — seed editorial worldbuilding-doctrine stages', () => {
+describe('migration 167 — seed editorial worldbuilding-doctrine stages', () => {
let rootDir;
let stagesDir;
let refStagesDir;
@@ -38,7 +38,7 @@ describe('migration 165 — seed editorial worldbuilding-doctrine stages', () =>
};
beforeEach(() => {
- rootDir = mkdtempSync(join(tmpdir(), 'migration-165-'));
+ rootDir = mkdtempSync(join(tmpdir(), 'migration-167-'));
stagesDir = join(rootDir, 'data', 'prompts', 'stages');
refStagesDir = join(rootDir, 'data.reference', 'prompts', 'stages');
installedConfigPath = join(rootDir, 'data', 'prompts', 'stage-config.json');
diff --git a/server/lib/editorial/checkInfra.js b/server/lib/editorial/checkInfra.js
index 4e2d157b44..ea7421e596 100644
--- a/server/lib/editorial/checkInfra.js
+++ b/server/lib/editorial/checkInfra.js
@@ -738,7 +738,7 @@ export const PLOT_STRUCTURE_STAGE = 'pipeline-editorial-plot-structure';
// Stage names for the worldbuilding-doctrine LLM check pair (#2175). Both ship in
// data.reference/prompts/stages/ + stage-config.json (fresh installs via
// setup-data.js) and reach existing installs via the multi-stage seed migration
-// 165 (boot runs migrations but NOT setup-data, so the migration is required or
+// 167 (boot runs migrations but NOT setup-data, so the migration is required or
// the check throws "Stage not found" on first run). Both reconcile the prose against the
// canon world summary (`canonWorldSummary`) + the continuity-bible world-rule
// facts so an established-and-planted rule is NOT flagged: