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

chore: renumber arc-resolve migration 120 -> 123 (collision with origin/main Songs->Rounds 120)

[._.]/ Adam Eivy1a46441d3e6f
diff --git a/.changelog/NEXT.md b/.changelog/NEXT.md
index 5ea120c234..5eef664d5d 100644
--- a/.changelog/NEXT.md
+++ b/.changelog/NEXT.md
@@ -37,7 +37,7 @@
- **Install additional audio models from HuggingFace.** The Track editor's generator panel can pull extra checkpoints (e.g. a larger MusicGen, an AudioLDM2 variant) straight from HuggingFace into the local cache — same streamed-download path as the image/video model installer — and they become selectable for generation immediately. User-installed models persist in `data/audio-models.json` and can be removed from the same panel.
- **"Audio & Music" category in the Local LLM model installer (Settings → Local LLM).** The Hugging Face model search gained an audio/music output category that surfaces generation models (MusicGen, AudioLDM2, ACE-Step, Stable Audio, Magenta…) — the GGUF filter is relaxed for this category since audio models aren't GGUF. Installing an audio model downloads it into the HF cache and registers it in the **same** shared audio-model registry the Music studio reads (`data/audio-models.json`), so there's one DRY place to manage audio models: install it once from the installer and it's immediately selectable in the Music studio. Models no on-device engine can run yet — and ACE-Step, which uses a fixed checkpoint — are discovery-only with a "Visit" link. Curated suggestions lead the list: **ACE-Step v1.5**, **`google/magenta-realtime-2`**, and **`stabilityai/stable-audio-3-medium`** (the last gated behind a Hugging Face data-sharing agreement).
-- **Autopilot now heals episode-level arc contradictions instead of pausing on them.** The arc-verify convergence loop re-verifies and auto-resolves the arc each round, but auto-resolve could previously only rewrite the arc + volume/season synopses — it was explicitly forbidden from touching episodes. So a contradiction that *originated* inside one episode's planning synopsis (e.g. an episode stages an event a later volume reserves as its own "first" occurrence) could never be fixed: every round re-flagged it because the episode text never changed, and the run always hard-paused with "arc verification did not converge." The auto-resolve pass can now return targeted episode-synopsis corrections (keyed by season + episode number), applied at the arc-verify gate **before** any beats/scripts are generated — so the cheap structural layer is made consistent before expensive script generation. Locked episodes are left untouched; already-expanded beats on a corrected episode are cleared so they regenerate from the fixed synopsis. (`pipeline-arc-resolve` prompt + migration 120.)
+- **Autopilot now heals episode-level arc contradictions instead of pausing on them.** The arc-verify convergence loop re-verifies and auto-resolves the arc each round, but auto-resolve could previously only rewrite the arc + volume/season synopses — it was explicitly forbidden from touching episodes. So a contradiction that *originated* inside one episode's planning synopsis (e.g. an episode stages an event a later volume reserves as its own "first" occurrence) could never be fixed: every round re-flagged it because the episode text never changed, and the run always hard-paused with "arc verification did not converge." The auto-resolve pass can now return targeted episode-synopsis corrections (keyed by season + episode number), applied at the arc-verify gate **before** any beats/scripts are generated — so the cheap structural layer is made consistent before expensive script generation. Locked episodes are left untouched; already-expanded beats on a corrected episode are cleared so they regenerate from the fixed synopsis. (`pipeline-arc-resolve` prompt + migration 123.)
- **Autopilot can target one format of a multi-format series.** A `comic+tv` series can now be driven to just its comic draft (or just TV) in a single run via a per-run format restriction, so you don't pay to generate, say, 24 teleplays when you only want the comic proof. Absent a restriction the run authors every format the series targets (unchanged default).
- **Autopilot convergence rounds are now configurable.** The series autopilot re-verifies the arc (and re-reviews the manuscript) in bounded auto-resolve loops, and previously hard-stopped after 3 arc rounds / 2 editorial rounds with "did not converge after 3 rounds" — leaving no way to give a stubborn arc more attempts. You can now set **Arc verify rounds** and **Editorial rounds** (0–20, where 0 skips that gate) in Autonomous mode → **Options**; the values persist as a per-install default and are reused on **Resume**. A per-run override still wins over the saved default, which wins over the built-in floor (3 / 2). When a gate still can't auto-resolve within the limit, the pause message now says how many blocking findings remain and points you to edit the arc/manuscript or raise the limit and resume.
- Editorial Checks page now has an AI provider + model selector that configures the editorial pass. Leave it on "Default provider" to use the active/stage provider, or pick a specific provider/model to override the LLM-backed checks for that run.
diff --git a/scripts/migrations/120-arc-resolve-episode-corrections.js b/scripts/migrations/123-arc-resolve-episode-corrections.js
similarity index 95%
rename from scripts/migrations/120-arc-resolve-episode-corrections.js
rename to scripts/migrations/123-arc-resolve-episode-corrections.js
index 7c23b2e69e..84d7208373 100644
--- a/scripts/migrations/120-arc-resolve-episode-corrections.js
+++ b/scripts/migrations/123-arc-resolve-episode-corrections.js
@@ -21,12 +21,12 @@ import { makePromptReplaceMigration } from './_lib.js';
export const ACCEPTED_OLD_MD5 = {
'pipeline-arc-resolve.md': [
- '5b340885c6e8f8afc63424d6b5bc7eb7', // pre-120 (episodes forbidden)
+ '5b340885c6e8f8afc63424d6b5bc7eb7', // pre-123 (episodes forbidden)
],
};
export const NEW_SHIPPED_MD5 = {
- 'pipeline-arc-resolve.md': 'cc27b4da1d1a13c35e35d1c2d6183815', // post-120 (episodes[] channel)
+ 'pipeline-arc-resolve.md': 'cc27b4da1d1a13c35e35d1c2d6183815', // post-123 (episodes[] channel)
};
const { applyMigration, up } = makePromptReplaceMigration({