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

migrations: resync arc-resolve drift hashes after episode-corrections change

[._.]/ Adam Eivy6e679e22384a
diff --git a/scripts/migrations/005-shape-aware-arc-prompts.js b/scripts/migrations/005-shape-aware-arc-prompts.js
index 0320cd3027..cca5d0fa73 100644
--- a/scripts/migrations/005-shape-aware-arc-prompts.js
+++ b/scripts/migrations/005-shape-aware-arc-prompts.js
@@ -38,6 +38,7 @@ export const ACCEPTED_OLD_MD5 = {
'87bc5c01f1a8a97b681727a38b05edc6', // pre-005 (original)
'a8677bbe1eb38f871fb152a5b0fec7c6', // post-005 / pre-019 — the hash this migration originally produced
'8e348f3d1894382889f9f0ee7d5c6792', // post-019 / pre-023
+ '5b340885c6e8f8afc63424d6b5bc7eb7', // post-023 / pre-123 (episode-synopsis anchor)
],
};
@@ -46,7 +47,7 @@ export const NEW_SHIPPED_MD5 = {
'pipeline-arc-verify.md': '36aa70cdfc25d7549573a4d556e7702c', // post-019
'pipeline-volume-verify.md': '49458d36700cb94e34806d536ffe2940', // post-019
'pipeline-season-episodes.md': '50c68a29c3ebc275db3095d06bd87100', // post-005 (live sample)
- 'pipeline-arc-resolve.md': '5b340885c6e8f8afc63424d6b5bc7eb7', // post-023
+ 'pipeline-arc-resolve.md': 'cc27b4da1d1a13c35e35d1c2d6183815', // post-123 (episodes[] correction channel)
};
const { applyMigration, up } = makePromptReplaceMigration({
diff --git a/scripts/migrations/019-arc-volume-prompts-canon-context.js b/scripts/migrations/019-arc-volume-prompts-canon-context.js
index 8e6672c4fa..656d1a1323 100644
--- a/scripts/migrations/019-arc-volume-prompts-canon-context.js
+++ b/scripts/migrations/019-arc-volume-prompts-canon-context.js
@@ -45,7 +45,8 @@ export const ACCEPTED_OLD_MD5 = {
'52e31abc93e3105176236fcaa5d1575a', // pre-005 (shape-aware), still in setup-data.js OLD list
],
'pipeline-arc-resolve.md': [
- '8e348f3d1894382889f9f0ee7d5c6792', // post-019 / pre-023 — the hash this migration originally produced; included so a re-run after a `data/migrations.applied.json` reset can cleanly advance an install at the intermediate state to the post-023 live sample
+ '5b340885c6e8f8afc63424d6b5bc7eb7', // post-023 / pre-123 — episode-synopsis anchor, before the episodes[] channel
+ '8e348f3d1894382889f9f0ee7d5c6792', // post-019 / pre-023 — the hash this migration originally produced; included so a re-run after a `data/migrations.applied.json` reset can cleanly advance an install at the intermediate state to the post-123 live sample
'a8677bbe1eb38f871fb152a5b0fec7c6', // pre-019 (pre-Phase B) shipped
'87bc5c01f1a8a97b681727a38b05edc6', // pre-005 (shape-aware), still in setup-data.js OLD list
],
@@ -58,7 +59,7 @@ export const ACCEPTED_OLD_MD5 = {
export const NEW_SHIPPED_MD5 = {
'pipeline-arc-overview.md': '0a1f6ffa6908522e3690c5e9e53a6ee0', // post-019
'pipeline-arc-verify.md': '36aa70cdfc25d7549573a4d556e7702c', // post-019
- 'pipeline-arc-resolve.md': '5b340885c6e8f8afc63424d6b5bc7eb7', // post-023 (episode-synopsis anchor)
+ 'pipeline-arc-resolve.md': 'cc27b4da1d1a13c35e35d1c2d6183815', // post-123 (episodes[] correction channel)
'pipeline-volume-verify.md': '49458d36700cb94e34806d536ffe2940', // post-019
};
diff --git a/scripts/migrations/023-resolve-prompt-episode-anchor.js b/scripts/migrations/023-resolve-prompt-episode-anchor.js
index ae9bf08580..2eb729e9a5 100644
--- a/scripts/migrations/023-resolve-prompt-episode-anchor.js
+++ b/scripts/migrations/023-resolve-prompt-episode-anchor.js
@@ -27,15 +27,19 @@ import { makePromptReplaceMigration } from './_lib.js';
// maintaining local copies.
export const ACCEPTED_OLD_MD5 = {
'pipeline-arc-resolve.md': [
+ '5b340885c6e8f8afc63424d6b5bc7eb7', // post-023 / pre-123 — episode-synopsis anchor, the hash this migration originally produced
'8e348f3d1894382889f9f0ee7d5c6792', // post-019 (worldCanonText) shipped — current pre-023
'a8677bbe1eb38f871fb152a5b0fec7c6', // pre-019 (pre-canon), still in setup-data.js OLD list
'87bc5c01f1a8a97b681727a38b05edc6', // pre-005 (shape-aware), still in setup-data.js OLD list
],
};
-// New shipped hash — what data.reference carries post-migration.
+// New shipped hash — what data.reference carries post-migration. Bumped to the
+// post-123 body (the episodes[] correction channel) so this migration's
+// drift-catch test stays green against the live data.reference sample; a fresh
+// install at the pre-123 hash still advances cleanly via the accepted-OLD list.
export const NEW_SHIPPED_MD5 = {
- 'pipeline-arc-resolve.md': '5b340885c6e8f8afc63424d6b5bc7eb7',
+ 'pipeline-arc-resolve.md': 'cc27b4da1d1a13c35e35d1c2d6183815',
};
const { applyMigration, up } = makePromptReplaceMigration({
diff --git a/scripts/setup-data-drift.test.js b/scripts/setup-data-drift.test.js
index 3f678e0f8c..73bfd27f22 100644
--- a/scripts/setup-data-drift.test.js
+++ b/scripts/setup-data-drift.test.js
@@ -32,7 +32,8 @@ const EXPECTED_STAGE_OLD = {
'pipeline-arc-overview.md': ['6a3ecab43d1f46b7ef9aab6c69ea0326', 'd34d72b8e49ba303d38607845dd87f1c'],
'pipeline-arc-verify.md': ['52e31abc93e3105176236fcaa5d1575a', 'ff56d8387162017e08d5d0491060ddd6'],
'pipeline-volume-verify.md': ['03f3c874cb80e1c98abcf03168fa7a92', 'c6ea28e972ad6e229bafb2d602b4dda3'],
- 'pipeline-arc-resolve.md': ['87bc5c01f1a8a97b681727a38b05edc6', '8e348f3d1894382889f9f0ee7d5c6792', 'a8677bbe1eb38f871fb152a5b0fec7c6'],
+ 'pipeline-arc-resolve.md': ['5b340885c6e8f8afc63424d6b5bc7eb7', '87bc5c01f1a8a97b681727a38b05edc6', '8e348f3d1894382889f9f0ee7d5c6792', 'a8677bbe1eb38f871fb152a5b0fec7c6'],
+ 'pipeline-script-verify.md': ['ed6c8101644cfe56a100eb6bfe3587f3'],
'pipeline-extract-scenes.md': ['59fa5ee305ce53d91eb15224d8b546d3', 'c51fb208568d0d903eb43b437478b0ba'],
'writers-room-places.md': ['24a33628cc94d80fa5ca60831d973daf', '7f1f80eb63d67a21161994cde115045e'],
'universe-character-expand.md': ['ef109eb8e12ddb664c11c790271b5139'],
@@ -52,7 +53,8 @@ const EXPECTED_STAGE_NEW = {
'pipeline-arc-overview.md': '0a1f6ffa6908522e3690c5e9e53a6ee0',
'pipeline-arc-verify.md': '36aa70cdfc25d7549573a4d556e7702c',
'pipeline-volume-verify.md': '49458d36700cb94e34806d536ffe2940',
- 'pipeline-arc-resolve.md': '5b340885c6e8f8afc63424d6b5bc7eb7',
+ 'pipeline-arc-resolve.md': 'cc27b4da1d1a13c35e35d1c2d6183815',
+ 'pipeline-script-verify.md': '722c62462d05462603cf67ca0ed1dee8',
'pipeline-extract-scenes.md': '9f404b0c4721b23932a6d2dcfc1fba43',
'writers-room-places.md': 'a7f68e51dd6b4421d20f5bd9d855d9b4',
'cos-agent-briefing.md': 'dccb392a43cbd3dac900fee12c31619a',