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
address review (claude): bump pipelineSeries to 11 for voice exemplar fields
[._.]/ Adam Eivyf5cbec8f4644
diff --git a/server/lib/schemaVersions.js b/server/lib/schemaVersions.jsindex 62e2ccc02a..3b81156046 100644--- a/server/lib/schemaVersions.js+++ b/server/lib/schemaVersions.js@@ -141,7 +141,16 @@ export const PORTOS_SCHEMA_VERSIONS = Object.freeze({// `sanitizeArc` would silently strip the ledger and last-writer-wins the loss// back onto the newer peer. Bump makes the older peer reject the ahead-version// series transfer instead. Per-category gate → only series sync pauses with old peers.- pipelineSeries: 10,+ // v11 = `series.styleGuide.voiceExemplars` + `series.styleGuide.voiceAntiExemplars`+ // added (#2179) — the voice exemplar / anti-exemplar "tuning fork" passages. Same+ // additive field INSIDE the federated `styleGuide` sub-object as styleGuide itself+ // (v4): a ≤v10 peer that re-sanitizes a series through its voiceExemplars-unaware+ // `sanitizeStyleGuide` would silently strip the passages and last-writer-wins the+ // loss back onto the newer peer (`preserveAbsentAdditiveFields` only restores a+ // wholly-absent `styleGuide`, not a present-but-sub-field-stripped one). Bump makes+ // the older peer reject the ahead-version series transfer instead. Per-category gate+ // → only series sync pauses with old peers.+ pipelineSeries: 11,// NOT bumped for the manuscript-review sibling doc now bundled on series// pushes/exports (`data/pipeline-series/{id}/manuscript-review.json`).// Unlike `readerMap` (v2), the review is NOT a field inside the seriesdiff --git a/server/lib/schemaVersions.test.js b/server/lib/schemaVersions.test.jsindex 81f591055b..5ee2966965 100644--- a/server/lib/schemaVersions.test.js+++ b/server/lib/schemaVersions.test.js@@ -27,11 +27,13 @@ describe('PORTOS_SCHEMA_VERSIONS', () => {it('declares pipeline collection layout versions', () => {// pipelineIssues bumped to 2 when stages.audio.audioMode + cues[] were added.expect(PORTOS_SCHEMA_VERSIONS.pipelineIssues).toBe(2);- // pipelineSeries bumped to 10 when series.arc.foreshadowing was added (#2172)+ // pipelineSeries bumped to 11 when series.styleGuide.voiceExemplars ++ // voiceAntiExemplars were added (#2179)// (v2 = readerMap, v3 = tickingClock, v4 = styleGuide, v5 = coverImage,// v6 = characterArcs, v7 = factCritical + factReference,- // v8 = editorialCheckConfig, v9 = severityWeights + blockingSeverities).- expect(PORTOS_SCHEMA_VERSIONS.pipelineSeries).toBe(10);+ // v8 = editorialCheckConfig, v9 = severityWeights + blockingSeverities,+ // v10 = arc.foreshadowing).+ expect(PORTOS_SCHEMA_VERSIONS.pipelineSeries).toBe(11);});it('declares mediaCollections layout version', () => {@@ -45,7 +47,7 @@ describe('buildPortosMeta', () => {expect(meta.portosVersion).toMatch(/^\d+\.\d+\.\d+/);expect(meta.schemaVersions.universes).toBe(7);expect(meta.schemaVersions.pipelineIssues).toBe(2);- expect(meta.schemaVersions.pipelineSeries).toBe(10);+ expect(meta.schemaVersions.pipelineSeries).toBe(11);});it('overrides merge into schemaVersions', async () => {diff --git a/server/services/sharing/integration.test.js b/server/services/sharing/integration.test.jsindex 33257c3aaf..9fa4f55f31 100644--- a/server/services/sharing/integration.test.js+++ b/server/services/sharing/integration.test.js@@ -2333,7 +2333,7 @@ describe('sharing round-trip', () => {const result = await importer.processManifest(bucket.id, exp.filename);expect(result.skipped).toBe(true);expect(result.reason).toBe('portos-schema-ahead');- expect(result.ahead).toEqual([{ category: 'pipelineSeries', senderV: 99, receiverV: 10 }]);+ expect(result.ahead).toEqual([{ category: 'pipelineSeries', senderV: 99, receiverV: 11 }]);expect(result.producedByVersion).toBe('99.0.0');// Series stayed tombstoned (or absent) — apply was refused.await expect(series.getSeries(s.id)).rejects.toThrow();