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

1.9 KB
Raw Blame
/**
 * Keep arc verification and repair at episode-planning altitude.
 *
 * Continuity repair used the 200k generic stage-input ceiling even though
 * episode generation capped a synopsis at 4k. Repeated verifier rounds could
 * therefore grow a concise drafting seed into a procedural near-manuscript,
 * while the judges had no explicit dramatic-economy or synopsis-size check.
 * Publish the new shared budget and the goal/obstacle/choice/consequence,
 * metadata-fit, and premise-engine checks to customized installs.
 */

import { makePromptReplaceMigration } from './_lib.js';

export const ACCEPTED_OLD_MD5 = {
  'pipeline-arc-resolve.md': ['aa2e463ebe0857859d79aa0c6ccb0256'],
  'pipeline-arc-verify.md': [
    '9f32e91bd33b97d30e1cbb2e697f4fc3',
    '90712f66ec68061ebed2147044e5baee',
  ],
  'pipeline-volume-verify.md': [
    '49458d36700cb94e34806d536ffe2940',
    '3e8a8f00d5faaee9d8e08a49d801b812',
  ],
};

export const NEW_SHIPPED_MD5 = {
  'pipeline-arc-resolve.md': '5fb659e459a296b7d378d7711f4b78cd',
  'pipeline-arc-verify.md': '090920d816beef8dfc12ee6152511456',
  'pipeline-volume-verify.md': '6f9b4ba4d9dd9a51a1032c7f0ca90405',
};

const { applyMigration, up } = makePromptReplaceMigration({
  accepted: ACCEPTED_OLD_MD5,
  current: NEW_SHIPPED_MD5,
  label: 'pipeline planning economy',
  customizedHint: (filename) => filename === 'pipeline-arc-resolve.md'
    ? `   To upgrade it manually, diff data.reference/prompts/stages/${filename}\n` +
      `   against data/prompts/stages/${filename}, enforce the shared 4,000-character\n` +
      `   episode-synopsis budget, and replace or compact conflicting language instead of appending.\n`
    : `   To upgrade it manually, diff data.reference/prompts/stages/${filename}\n` +
      `   against data/prompts/stages/${filename} and add the planning-altitude,\n` +
      `   dramatic-economy, metadata-fit, and premise-engine rules.`,
});

export { applyMigration };
export default { up };