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: track the source-agnostic prompt hashes across prior stage-prompt migrations

[._.]/ Adam Eivy5d567da60971
diff --git a/scripts/migrations/003-update-pipeline-stage-prompts.js b/scripts/migrations/003-update-pipeline-stage-prompts.js
index 8a4c93ad48..9ed075418b 100644
--- a/scripts/migrations/003-update-pipeline-stage-prompts.js
+++ b/scripts/migrations/003-update-pipeline-stage-prompts.js
@@ -23,15 +23,18 @@ export const ACCEPTED_OLD_MD5 = {
'aee25112b2c596f643b17c559b772c22', // pre-003 (original)
'41facefbc0c0549d456bef9111f95ab9', // post-003 / pre-004 — the hash this migration originally produced
'1ee44cf95851ff8debf18729ebcd40b4', // post-004 / pre-025
+ '1f3c5d077a5ef9a4b610335d5e3edd9c', // post-025 / pre-054
],
'pipeline-prose.md': [
'bfea5aeeb471aae9749baee765b473a7', // pre-003 (original)
'30ac30ec2b9d3e2a9eb869c181732cc6', // post-003 / pre-027 — the hash this migration originally produced
+ 'd1f8e3f1d214725b5aa67f309a81cd7d', // post-027 / pre-054
],
'pipeline-comic-script.md': [
'40e5fdc1a1e68a7419b7dad936366c1a', // pre-003 (original)
'beab031951859ca13579cdb9c4dbe769', // post-003 / pre-013 — the hash this migration originally produced
'1e0af305c27d0c80c4b482d2ebcb4a0d', // post-013 / pre-027
+ '133d200d069c2e8173b7c129eea58f53', // post-027 / pre-054
],
'pipeline-tv-script.md': ['3f6fecc25573ed054b47db392250034a'],
'pipeline-season-episodes.md': [
@@ -41,9 +44,9 @@ export const ACCEPTED_OLD_MD5 = {
};
export const NEW_SHIPPED_MD5 = {
- 'pipeline-idea-expansion.md': '1f3c5d077a5ef9a4b610335d5e3edd9c', // post-025
- 'pipeline-prose.md': 'd1f8e3f1d214725b5aa67f309a81cd7d', // post-027
- 'pipeline-comic-script.md': '133d200d069c2e8173b7c129eea58f53', // post-027
+ 'pipeline-idea-expansion.md': 'b5c47c94ffc74637983c95761ab0c66c', // post-054
+ 'pipeline-prose.md': 'bef1bc2767b78f585f2bd89f3d615130', // post-054
+ 'pipeline-comic-script.md': 'e530fc76b89cedaef848ad7ec99c934c', // post-054
'pipeline-tv-script.md': '376f779f4687b598f1c92ca4e770fd5a', // retired upstream (no data.reference)
'pipeline-season-episodes.md': '50c68a29c3ebc275db3095d06bd87100', // post-005
};
diff --git a/scripts/migrations/004-augment-idea-expansion-context.js b/scripts/migrations/004-augment-idea-expansion-context.js
index cad20170e3..2bd9e3e570 100644
--- a/scripts/migrations/004-augment-idea-expansion-context.js
+++ b/scripts/migrations/004-augment-idea-expansion-context.js
@@ -15,11 +15,12 @@ export const ACCEPTED_OLD_MD5 = {
'pipeline-idea-expansion.md': [
'1ee44cf95851ff8debf18729ebcd40b4', // post-004 / pre-025 — the hash this migration originally produced
'41facefbc0c0549d456bef9111f95ab9', // post-003 / pre-004
+ '1f3c5d077a5ef9a4b610335d5e3edd9c', // post-025 / pre-054
],
};
export const NEW_SHIPPED_MD5 = {
- 'pipeline-idea-expansion.md': '1f3c5d077a5ef9a4b610335d5e3edd9c', // post-025
+ 'pipeline-idea-expansion.md': 'b5c47c94ffc74637983c95761ab0c66c', // post-054
};
const { applyMigration, up } = makePromptReplaceMigration({
diff --git a/scripts/migrations/013-comic-script-back-cover.js b/scripts/migrations/013-comic-script-back-cover.js
index ce3b381566..3e57158b7e 100644
--- a/scripts/migrations/013-comic-script-back-cover.js
+++ b/scripts/migrations/013-comic-script-back-cover.js
@@ -18,11 +18,12 @@ export const ACCEPTED_OLD_MD5 = {
'40e5fdc1a1e68a7419b7dad936366c1a', // pre-003 (original)
'beab031951859ca13579cdb9c4dbe769', // post-003 (length-profile feature)
'1e0af305c27d0c80c4b482d2ebcb4a0d', // post-013 / pre-027 — the hash this migration originally produced
+ '133d200d069c2e8173b7c129eea58f53', // post-027 / pre-054
],
};
export const NEW_SHIPPED_MD5 = {
- 'pipeline-comic-script.md': '133d200d069c2e8173b7c129eea58f53', // post-027
+ 'pipeline-comic-script.md': 'e530fc76b89cedaef848ad7ec99c934c', // post-054
};
const { applyMigration, up } = makePromptReplaceMigration({
diff --git a/scripts/migrations/025-idea-stage-character-detail.js b/scripts/migrations/025-idea-stage-character-detail.js
index 5a401ad73d..5e839021d5 100644
--- a/scripts/migrations/025-idea-stage-character-detail.js
+++ b/scripts/migrations/025-idea-stage-character-detail.js
@@ -29,12 +29,13 @@ export const ACCEPTED_OLD_MD5 = {
'1ee44cf95851ff8debf18729ebcd40b4', // post-004 shipped — current pre-025
'41facefbc0c0549d456bef9111f95ab9', // post-003, pre-004, still in setup-data.js OLD list
'aee25112b2c596f643b17c559b772c22', // pre-003, still in setup-data.js OLD list
+ '1f3c5d077a5ef9a4b610335d5e3edd9c', // post-025 / pre-054
],
};
// New shipped hash — what data.reference carries post-migration.
export const NEW_SHIPPED_MD5 = {
- 'pipeline-idea-expansion.md': '1f3c5d077a5ef9a4b610335d5e3edd9c',
+ 'pipeline-idea-expansion.md': 'b5c47c94ffc74637983c95761ab0c66c', // post-054
};
const { applyMigration, up } = makePromptReplaceMigration({
diff --git a/scripts/migrations/027-text-stage-prompts-entities-summary.js b/scripts/migrations/027-text-stage-prompts-entities-summary.js
index 9ad2d34496..5ba846e925 100644
--- a/scripts/migrations/027-text-stage-prompts-entities-summary.js
+++ b/scripts/migrations/027-text-stage-prompts-entities-summary.js
@@ -40,15 +40,18 @@ export const ACCEPTED_OLD_MD5 = {
'pipeline-prose.md': [
'30ac30ec2b9d3e2a9eb869c181732cc6', // post-003 / pre-027 shipped
'bfea5aeeb471aae9749baee765b473a7', // pre-003 (in setup-data OLD list)
+ 'd1f8e3f1d214725b5aa67f309a81cd7d', // post-027 / pre-054
],
'pipeline-teleplay.md': [
'376f779f4687b598f1c92ca4e770fd5a', // pre-027 shipped
'3f6fecc25573ed054b47db392250034a', // pre-shape (in setup-data OLD list)
+ '1280ef6b1ad68fa44070ca7478ec2a5f', // post-027 / pre-054
],
'pipeline-comic-script.md': [
'1e0af305c27d0c80c4b482d2ebcb4a0d', // post-011 / pre-027 shipped
'beab031951859ca13579cdb9c4dbe769', // pre-011 (in setup-data OLD list)
'40e5fdc1a1e68a7419b7dad936366c1a', // pre-003 (in setup-data OLD list)
+ '133d200d069c2e8173b7c129eea58f53', // post-027 / pre-054
],
'universe-character-expand.md': [
'ef109eb8e12ddb664c11c790271b5139', // pre-027 shipped
@@ -56,9 +59,9 @@ export const ACCEPTED_OLD_MD5 = {
};
export const NEW_SHIPPED_MD5 = {
- 'pipeline-prose.md': 'd1f8e3f1d214725b5aa67f309a81cd7d',
- 'pipeline-teleplay.md': '1280ef6b1ad68fa44070ca7478ec2a5f',
- 'pipeline-comic-script.md': '133d200d069c2e8173b7c129eea58f53',
+ 'pipeline-prose.md': 'bef1bc2767b78f585f2bd89f3d615130', // post-054
+ 'pipeline-teleplay.md': '2568e14beaa574d43f8018a5def51d04', // post-054
+ 'pipeline-comic-script.md': 'e530fc76b89cedaef848ad7ec99c934c', // post-054
'universe-character-expand.md': '67b6e73ed47f318451a730088b4cff14',
};
diff --git a/scripts/setup-data.js b/scripts/setup-data.js
index 571f8deae4..7316e30359 100644
--- a/scripts/setup-data.js
+++ b/scripts/setup-data.js
@@ -141,16 +141,17 @@ const SHIPPED_PROMPT_OLD_MD5 = {
// idea-expansion: aee… (pre-003), 41fa… (post-003, pre-004), and
// 1ee44c… (post-004, pre-025) all auto-updatable to the post-025
// (role/physicalDescription/personality/background plumbing) hash.
- 'pipeline-idea-expansion.md': ['aee25112b2c596f643b17c559b772c22', '41facefbc0c0549d456bef9111f95ab9', '1ee44cf95851ff8debf18729ebcd40b4'],
+ // post-054 ({{#sourceMaterials}} source-agnostic block) appends the prior
+ // post-025/post-027 hashes to each chain.
+ 'pipeline-idea-expansion.md': ['aee25112b2c596f643b17c559b772c22', '41facefbc0c0549d456bef9111f95ab9', '1ee44cf95851ff8debf18729ebcd40b4', '1f3c5d077a5ef9a4b610335d5e3edd9c'],
// prose: bfea5a… (pre-003) and 30ac30… (post-003, pre-027) both auto-
- // updatable to the post-027 ({{worldEntitiesSummary}}) hash.
- 'pipeline-prose.md': ['bfea5aeeb471aae9749baee765b473a7', '30ac30ec2b9d3e2a9eb869c181732cc6'],
+ // updatable to the post-054 (source-agnostic) hash.
+ 'pipeline-prose.md': ['bfea5aeeb471aae9749baee765b473a7', '30ac30ec2b9d3e2a9eb869c181732cc6', 'd1f8e3f1d214725b5aa67f309a81cd7d'],
// comic-script: 40e5fd… (pre-003), beab03… (post-003, pre-011), and 1e0af3…
- // (post-011, pre-027) all auto-updatable to the post-027 ({{worldEntitiesSummary}}) hash.
- 'pipeline-comic-script.md': ['40e5fdc1a1e68a7419b7dad936366c1a', 'beab031951859ca13579cdb9c4dbe769', '1e0af305c27d0c80c4b482d2ebcb4a0d'],
- // teleplay: 3f6fec… (pre-027) auto-updatable to the post-027
- // ({{worldEntitiesSummary}}) hash. Original 376f77… is the post-027 prior.
- 'pipeline-teleplay.md': ['3f6fecc25573ed054b47db392250034a', '376f779f4687b598f1c92ca4e770fd5a'],
+ // (post-011, pre-027) all auto-updatable to the post-054 (source-agnostic) hash.
+ 'pipeline-comic-script.md': ['40e5fdc1a1e68a7419b7dad936366c1a', 'beab031951859ca13579cdb9c4dbe769', '1e0af305c27d0c80c4b482d2ebcb4a0d', '133d200d069c2e8173b7c129eea58f53'],
+ // teleplay: 3f6fec… (pre-027) auto-updatable to the post-054 hash.
+ 'pipeline-teleplay.md': ['3f6fecc25573ed054b47db392250034a', '376f779f4687b598f1c92ca4e770fd5a', '1280ef6b1ad68fa44070ca7478ec2a5f'],
// season-episodes: 6e349a… (pre-003) and c4928e… (post-003, pre-005) both
// auto-updatable to the post-005 (shape-aware) hash.
'pipeline-season-episodes.md': ['6e349ad26bed8a0ccb042571f03f03eb', 'c4928e2a5f833358116b29d2d669888d'],
@@ -193,10 +194,10 @@ const SHIPPED_PROMPT_OLD_MD5 = {
],
};
const SHIPPED_PROMPT_NEW_MD5 = {
- 'pipeline-idea-expansion.md': '1f3c5d077a5ef9a4b610335d5e3edd9c',
- 'pipeline-prose.md': 'd1f8e3f1d214725b5aa67f309a81cd7d',
- 'pipeline-comic-script.md': '133d200d069c2e8173b7c129eea58f53',
- 'pipeline-teleplay.md': '1280ef6b1ad68fa44070ca7478ec2a5f',
+ 'pipeline-idea-expansion.md': 'b5c47c94ffc74637983c95761ab0c66c',
+ 'pipeline-prose.md': 'bef1bc2767b78f585f2bd89f3d615130',
+ 'pipeline-comic-script.md': 'e530fc76b89cedaef848ad7ec99c934c',
+ 'pipeline-teleplay.md': '2568e14beaa574d43f8018a5def51d04',
'pipeline-season-episodes.md':'50c68a29c3ebc275db3095d06bd87100',
'pipeline-arc-overview.md': '0a1f6ffa6908522e3690c5e9e53a6ee0',
'pipeline-arc-verify.md': '36aa70cdfc25d7549573a4d556e7702c',