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
JavaScript ai-agentsdashboarddeveloper-toolsdigital-twinquantified-selfsecond-brainself-hostedtailscale
chore: renumber duplicate migrations 100/112 to 150/151
Adam Eivy7e1375ebdf1c
diff --git a/.changelog/v2.24.0.md b/.changelog/v2.24.0.mdindex ab27cc6ab4..febd901bfe 100644--- a/.changelog/v2.24.0.md+++ b/.changelog/v2.24.0.md@@ -168,6 +168,7 @@ Released: 2026-06-29- **[issue-1798] Dedup the Music Video board's image/video render socket effects behind one hook.** The reference-frame and i2v scene-clip lanes had two near-verbatim socket-lifecycle `useEffect`s plus duplicated spinner state, pending/orphan refs, and orphan-reconcile callbacks — they differed only in event names, the apply callback, and the failure-toast string. Extracted a `useSceneRenderLifecycle` hook (the client-side analog of #1791's server `createMediaJobImageHook` unification) that owns a lane's `genScenes` spinner state, job-id→scene correlation, orphan-terminal reconcile, and the durable-attach + `*-gen:completed/failed/canceled` subscription (with the running-cancel toast disambiguation preserved); each lane is now one `useSceneRenderLifecycle({...})` call plus a `trackJob(jobId, sceneId)` in its generate handler. Behavior is unchanged; covered by a new `renderHook` test. (`client/src/hooks/useSceneRenderLifecycle.js`, `client/src/pages/MusicVideo.jsx`)- **[issue-1803] Dedup the orphan-terminal race-buffer eviction behind a shared `boundedMap` helper.** Three client race-buffers hand-rolled the same "stash an unmatched event in a `jobId → …` Map, evict the oldest when it overflows 64" idiom (`useSceneRenderLifecycle`, `useImageGenQueue`, `clientErrorReporter`). Extracted `evictOldest(map, max, onEvict?)` and the shared `ORPHAN_BUFFER_MAX` cap into `client/src/lib/boundedMap.js` (barrel + README + unit tests), then routed all three call sites through it — the eviction logic and the magic `64` for the two orphan buffers now live in one place. The error-dedup cache keeps its own `MAX_RECENT` (a separate tuning knob) but shares the eviction primitive. Behavior is unchanged. (`client/src/lib/boundedMap.js`, `client/src/hooks/useSceneRenderLifecycle.js`, `client/src/hooks/useImageGenQueue.js`, `client/src/lib/clientErrorReporter.js`)- **Bump bundled slashdo to v3.19.0 — `/do:next --self` restricts issue work to issues you filed.** A new `--self`/`--no-self` security gate (and saved `self` default) filters auto-pick, swarm batches, and explicit `#<num>` claims to issues authored by the running `gh`/`glab` account (`@me`) — an explicit number for someone else's issue is refused, not overridden — so a shared tracker never auto-feeds third-party issues (and the instructions embedded in them) into an agent. Builds on v3.18.0's `--swarm` (parallel multi-issue draining, each in its own worktree, merge-gated on CI) and v3.17.2's dependency-/priority-aware backlog ordering. (`lib/slashdo` submodule)+- **Renumbered two duplicate-numbered migrations to the next free numbers.** Concurrent feature branches had landed two migrations numbered `100` (`100-editorial-chekhov-stage`, `100-seed-comic-page-refine-render-stage`) and two numbered `112` (`112-editorial-head-hopping-stage`, `112-editorial-on-the-nose-stage`). Migrations are keyed by full filename (not number), so all four already applied exactly once — the collision was cosmetic, muddying log/sort order. The later-added sibling of each pair was renamed to the next free number (`150-seed-comic-page-refine-render-stage`, `151-editorial-head-hopping-stage`); both are idempotent copy-if-missing/merge-if-absent prompt-stage seeds, so installs that already applied them under the old name re-run the renamed file harmlessly as a no-op. (Older pre-2.x duplicate numbers are left as-is: several do non-idempotent data transforms, so renaming them would unsafely re-run them.) (`scripts/migrations/150-seed-comic-page-refine-render-stage.js`, `scripts/migrations/151-editorial-head-hopping-stage.js`)## Full Changelogdiff --git a/scripts/migrations/100-seed-comic-page-refine-render-stage.js b/scripts/migrations/150-seed-comic-page-refine-render-stage.jssimilarity index 100%rename from scripts/migrations/100-seed-comic-page-refine-render-stage.jsrename to scripts/migrations/150-seed-comic-page-refine-render-stage.jsdiff --git a/scripts/migrations/100-seed-comic-page-refine-render-stage.test.js b/scripts/migrations/150-seed-comic-page-refine-render-stage.test.jssimilarity index 98%rename from scripts/migrations/100-seed-comic-page-refine-render-stage.test.jsrename to scripts/migrations/150-seed-comic-page-refine-render-stage.test.jsindex 9b353bc5a3..0593965a0f 100644--- a/scripts/migrations/100-seed-comic-page-refine-render-stage.test.js+++ b/scripts/migrations/150-seed-comic-page-refine-render-stage.test.js@@ -4,7 +4,7 @@ import { tmpdir } from 'os';import { join, dirname } from 'path';import { fileURLToPath } from 'url';-import migration from './100-seed-comic-page-refine-render-stage.js';+import migration from './150-seed-comic-page-refine-render-stage.js';// scripts/migrations/<this> → ../.. is the repo root (matches _testHelpers.js).const repoRoot = join(dirname(fileURLToPath(import.meta.url)), '..', '..');diff --git a/scripts/migrations/112-editorial-head-hopping-stage.js b/scripts/migrations/151-editorial-head-hopping-stage.jssimilarity index 100%rename from scripts/migrations/112-editorial-head-hopping-stage.jsrename to scripts/migrations/151-editorial-head-hopping-stage.jsdiff --git a/scripts/migrations/112-editorial-head-hopping-stage.test.js b/scripts/migrations/151-editorial-head-hopping-stage.test.jssimilarity index 98%rename from scripts/migrations/112-editorial-head-hopping-stage.test.jsrename to scripts/migrations/151-editorial-head-hopping-stage.test.jsindex 3c785baeb2..4bf7c4a203 100644--- a/scripts/migrations/112-editorial-head-hopping-stage.test.js+++ b/scripts/migrations/151-editorial-head-hopping-stage.test.js@@ -4,7 +4,7 @@ import { tmpdir } from 'os';import { join, dirname } from 'path';import { fileURLToPath } from 'url';-import migration from './112-editorial-head-hopping-stage.js';+import migration from './151-editorial-head-hopping-stage.js';// scripts/migrations/<this> → ../.. is the repo root (matches _testHelpers.js).const repoRoot = join(dirname(fileURLToPath(import.meta.url)), '..', '..');