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
JavaScript ai-agentsdashboarddeveloper-toolsdigital-twinquantified-selfsecond-brainself-hostedtailscale
fix([issue-2172]): renumber craft-knowledge migration 164 -> 165 after collision
[._.]/ Adam Eivy12493f951d1d
diff --git a/scripts/migrations/003-update-pipeline-stage-prompts.js b/scripts/migrations/003-update-pipeline-stage-prompts.jsindex 1f800ff547..088a9416bd 100644--- a/scripts/migrations/003-update-pipeline-stage-prompts.js+++ b/scripts/migrations/003-update-pipeline-stage-prompts.js@@ -32,7 +32,7 @@ export const ACCEPTED_OLD_MD5 = {'30ac30ec2b9d3e2a9eb869c181732cc6', // post-003 / pre-027 — the hash this migration originally produced'd1f8e3f1d214725b5aa67f309a81cd7d', // post-027 / pre-054'bef1bc2767b78f585f2bd89f3d615130', // post-054 / pre-054-fence- '25e3d58c2741bd98acd5d08ba70d8a5e', // post-127 / pre-164 (scene markers)+ '25e3d58c2741bd98acd5d08ba70d8a5e', // post-127 / pre-165 (scene markers)],'pipeline-comic-script.md': [ 'a4303016c34b65e4b0e641fe71252de3','40e5fdc1a1e68a7419b7dad936366c1a', // pre-003 (original)@@ -53,7 +53,7 @@ export const ACCEPTED_OLD_MD5 = {export const NEW_SHIPPED_MD5 = {'pipeline-idea-expansion.md': 'd6fa86a435f978336661dcabca67258f', // post-127 (scene markers)- 'pipeline-prose.md': '430d38ed2da59e0d4212e65edc499a74', // post-164 (craft anti-patterns)+ 'pipeline-prose.md': '430d38ed2da59e0d4212e65edc499a74', // post-165 (craft anti-patterns)'pipeline-comic-script.md': '49af30c05f008b20f6998a0f113f7d87', // post-127 (scene markers)'pipeline-tv-script.md': '376f779f4687b598f1c92ca4e770fd5a', // retired upstream (no data.reference)'pipeline-season-episodes.md': '50c68a29c3ebc275db3095d06bd87100', // post-005diff --git a/scripts/migrations/005-shape-aware-arc-prompts.js b/scripts/migrations/005-shape-aware-arc-prompts.jsindex 7f202c0029..7fe6a27d58 100644--- a/scripts/migrations/005-shape-aware-arc-prompts.js+++ b/scripts/migrations/005-shape-aware-arc-prompts.js@@ -24,7 +24,7 @@ export const ACCEPTED_OLD_MD5 = {'pipeline-arc-overview.md': ['6a3ecab43d1f46b7ef9aab6c69ea0326', // pre-005 (original)'d34d72b8e49ba303d38607845dd87f1c', // post-005 / pre-019 — the hash this migration originally produced- '0a1f6ffa6908522e3690c5e9e53a6ee0', // post-019 / pre-164 (foreshadowing ledger)+ '0a1f6ffa6908522e3690c5e9e53a6ee0', // post-019 / pre-165 (foreshadowing ledger)],'pipeline-arc-verify.md': ['52e31abc93e3105176236fcaa5d1575a', // pre-005 (original)@@ -44,7 +44,7 @@ export const ACCEPTED_OLD_MD5 = {};export const NEW_SHIPPED_MD5 = {- 'pipeline-arc-overview.md': '612f8b04950e2ff26dd350dd76a062fe', // post-164 (foreshadowing ledger)+ 'pipeline-arc-overview.md': '612f8b04950e2ff26dd350dd76a062fe', // post-165 (foreshadowing ledger)'pipeline-arc-verify.md': '36aa70cdfc25d7549573a4d556e7702c', // post-019'pipeline-volume-verify.md': '49458d36700cb94e34806d536ffe2940', // post-019'pipeline-season-episodes.md': '50c68a29c3ebc275db3095d06bd87100', // post-005 (live sample)diff --git a/scripts/migrations/019-arc-volume-prompts-canon-context.js b/scripts/migrations/019-arc-volume-prompts-canon-context.jsindex d644a76da6..b9303e6467 100644--- a/scripts/migrations/019-arc-volume-prompts-canon-context.js+++ b/scripts/migrations/019-arc-volume-prompts-canon-context.js@@ -39,7 +39,7 @@ export const ACCEPTED_OLD_MD5 = {'pipeline-arc-overview.md': ['d34d72b8e49ba303d38607845dd87f1c', // current (pre-Phase B) shipped'6a3ecab43d1f46b7ef9aab6c69ea0326', // pre-005 (shape-aware), still in setup-data.js OLD list- '0a1f6ffa6908522e3690c5e9e53a6ee0', // post-019 / pre-164 (foreshadowing ledger)+ '0a1f6ffa6908522e3690c5e9e53a6ee0', // post-019 / pre-165 (foreshadowing ledger)],'pipeline-arc-verify.md': ['ff56d8387162017e08d5d0491060ddd6', // current (pre-Phase B) shipped@@ -58,7 +58,7 @@ export const ACCEPTED_OLD_MD5 = {};export const NEW_SHIPPED_MD5 = {- 'pipeline-arc-overview.md': '612f8b04950e2ff26dd350dd76a062fe', // post-164 (foreshadowing ledger)+ 'pipeline-arc-overview.md': '612f8b04950e2ff26dd350dd76a062fe', // post-165 (foreshadowing ledger)'pipeline-arc-verify.md': '36aa70cdfc25d7549573a4d556e7702c', // post-019'pipeline-arc-resolve.md': 'cc27b4da1d1a13c35e35d1c2d6183815', // post-123 (episodes[] correction channel)'pipeline-volume-verify.md': '49458d36700cb94e34806d536ffe2940', // post-019diff --git a/scripts/migrations/027-text-stage-prompts-entities-summary.js b/scripts/migrations/027-text-stage-prompts-entities-summary.jsindex 85e77e06d1..59cb8ed679 100644--- a/scripts/migrations/027-text-stage-prompts-entities-summary.js+++ b/scripts/migrations/027-text-stage-prompts-entities-summary.js@@ -42,7 +42,7 @@ export const ACCEPTED_OLD_MD5 = {'bfea5aeeb471aae9749baee765b473a7', // pre-003 (in setup-data OLD list)'d1f8e3f1d214725b5aa67f309a81cd7d', // post-027 / pre-054'bef1bc2767b78f585f2bd89f3d615130', // post-054 / pre-054-fence- '25e3d58c2741bd98acd5d08ba70d8a5e', // post-127 / pre-164 (scene markers)+ '25e3d58c2741bd98acd5d08ba70d8a5e', // post-127 / pre-165 (scene markers)],'pipeline-teleplay.md': ['376f779f4687b598f1c92ca4e770fd5a', // pre-027 shipped@@ -67,7 +67,7 @@ export const ACCEPTED_OLD_MD5 = {};export const NEW_SHIPPED_MD5 = {- 'pipeline-prose.md': '430d38ed2da59e0d4212e65edc499a74', // post-164 (craft anti-patterns)+ 'pipeline-prose.md': '430d38ed2da59e0d4212e65edc499a74', // post-165 (craft anti-patterns)'pipeline-teleplay.md': '2ea9974ac3803658b2314db1f5818b77', // post-128 (canonical scene list)'pipeline-comic-script.md': '49af30c05f008b20f6998a0f113f7d87', // post-127 (scene markers)'universe-character-expand.md': '67b6e73ed47f318451a730088b4cff14',diff --git a/scripts/migrations/127-pipeline-scene-markers-prompts.js b/scripts/migrations/127-pipeline-scene-markers-prompts.jsindex 1df018bb34..aa59d9c355 100644--- a/scripts/migrations/127-pipeline-scene-markers-prompts.js+++ b/scripts/migrations/127-pipeline-scene-markers-prompts.js@@ -24,13 +24,13 @@ import { makePromptReplaceMigration } from './_lib.js';export const ACCEPTED_OLD_MD5 = {'pipeline-idea-expansion.md': ['93e9552c6662811e597a97296f3776a4'], // post-124 (scope-discipline)- 'pipeline-prose.md': ['84523d531eeafa60959c65c553b2563f', '25e3d58c2741bd98acd5d08ba70d8a5e'], // post-054-fence; post-127/pre-164 (scene markers)+ 'pipeline-prose.md': ['84523d531eeafa60959c65c553b2563f', '25e3d58c2741bd98acd5d08ba70d8a5e'], // post-054-fence; post-127/pre-165 (scene markers)'pipeline-comic-script.md': ['a4303016c34b65e4b0e641fe71252de3'], // post-126 (visible text exactness)};export const NEW_SHIPPED_MD5 = {'pipeline-idea-expansion.md': 'd6fa86a435f978336661dcabca67258f', // post-127 (scene markers)- 'pipeline-prose.md': '430d38ed2da59e0d4212e65edc499a74', // post-164 (craft anti-patterns)+ 'pipeline-prose.md': '430d38ed2da59e0d4212e65edc499a74', // post-165 (craft anti-patterns)'pipeline-comic-script.md': '49af30c05f008b20f6998a0f113f7d87', // post-127 (scene markers)};diff --git a/scripts/migrations/164-craft-knowledge-prompt-upgrades.js b/scripts/migrations/165-craft-knowledge-prompt-upgrades.jssimilarity index 84%rename from scripts/migrations/164-craft-knowledge-prompt-upgrades.jsrename to scripts/migrations/165-craft-knowledge-prompt-upgrades.jsindex 4240956b36..ccfbf44635 100644--- a/scripts/migrations/164-craft-knowledge-prompt-upgrades.js+++ b/scripts/migrations/165-craft-knowledge-prompt-upgrades.js@@ -17,11 +17,15 @@* editorial check.** `scripts/setup-data.js` only copies *missing* prompt files, so existing- * installs keep their old templates until this migration rewrites them. It's the- * first hash-driven update for `pipeline-prose.md` and `pipeline-arc-overview.md`- * since their current shipped hashes (migration-tracked in the drift baseline),- * and the first EVER for `writers-room-continue.md` — so no earlier migration's- * MD5 tables need resyncing.+ * installs keep their old templates until this migration rewrites them.+ * `writers-room-continue.md` is migration-tracked for the FIRST time here.+ * `pipeline-prose.md` and `pipeline-arc-overview.md` already have migration+ * lineages (003/027/054/127 and 005/019 respectively) — per the drift-cross-sync+ * convention, those earlier migrations were resynced in this same change: their+ * previous current hash moved into `ACCEPTED_OLD_MD5` and `NEW_SHIPPED_MD5` was+ * bumped to the post-165 hash so their drift-catch tests stay in lock-step with+ * the live sample. The drift baseline in `setup-data-drift.test.js` was updated+ * to match the merged sweep.** Customization-safe: only installs whose copy still hashes to the prior shipped* version are auto-updated; customized prompts are left intact and warned about.diff --git a/scripts/migrations/164-craft-knowledge-prompt-upgrades.test.js b/scripts/migrations/165-craft-knowledge-prompt-upgrades.test.jssimilarity index 65%rename from scripts/migrations/164-craft-knowledge-prompt-upgrades.test.jsrename to scripts/migrations/165-craft-knowledge-prompt-upgrades.test.jsindex c19b74090c..e16214f32c 100644--- a/scripts/migrations/164-craft-knowledge-prompt-upgrades.test.js+++ b/scripts/migrations/165-craft-knowledge-prompt-upgrades.test.js@@ -1,14 +1,14 @@import { describe } from 'vitest';import { runPromptMigrationTests } from './_testHelpers.js';-import migration, { applyMigration, ACCEPTED_OLD_MD5, NEW_SHIPPED_MD5 } from './164-craft-knowledge-prompt-upgrades.js';+import migration, { applyMigration, ACCEPTED_OLD_MD5, NEW_SHIPPED_MD5 } from './165-craft-knowledge-prompt-upgrades.js';-describe('migration 164 — craft-knowledge prompt upgrades', () => {+describe('migration 165 — craft-knowledge prompt upgrades', () => {runPromptMigrationTests({migration,applyMigration,ACCEPTED_OLD_MD5,NEW_SHIPPED_MD5,- prefix: 'migration-164-',+ prefix: 'migration-165-',});});