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

866 B
Raw Blame
/**
 * Seed the Series Autopilot observing-orchestrator diagnosis stage into
 * existing installs.
 *
 * Mirrors `235-pipeline-self-improve-stage.js`: copies the `.md` template from
 * `data.reference/prompts/stages/` and merges its stage-config entry into
 * `data/prompts/stage-config.json`. Boot runs migrations (server/index.js) but
 * NOT `setup-data.js`, so an upgrade that pulls + `pm2 restart`s would
 * otherwise leave the stage unseeded — and an autopilot run with the observer
 * enabled would throw "Stage not found" the first time a step's telemetry
 * triggered a pass.
 *
 * Customization-safe + idempotent per `_seedStageHelpers.js` — the template is
 * copied only when missing and the config entry merged only when absent.
 */

import { makeSeedMigration } from './_seedStageHelpers.js';

export default makeSeedMigration('pipeline-observer');