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
fix: enable fact-accuracy check by default so the series flag is the opt-in (#1588)
[._.]/ Adam Eivyb8b4880f84a6
diff --git a/server/lib/editorial/checkRegistry.js b/server/lib/editorial/checkRegistry.jsindex 8f124a01e1..72c11d93b6 100644--- a/server/lib/editorial/checkRegistry.js+++ b/server/lib/editorial/checkRegistry.js@@ -3281,10 +3281,15 @@ export const EDITORIAL_CHECKS = [// fiction is a credibility killer, but the prompt directs the model to mark a// plot-relevant error 'high' per finding, so the worst cases still surface high.severityDefault: 'medium',- // Opt-in: off by default so the check never runs on a series that hasn't- // declared itself fact-critical and supplied a reference (the gate also- // enforces both at run time).- defaultEnabled: false,+ // Registry-enabled like every other built-in check, but the GATE is the real+ // opt-in: it produces findings ONLY when the series is flagged fact-critical+ // AND a reference is supplied — mirroring how the comic/visual checks are+ // defaultEnabled:true yet skip a prose-only series via their content gate. A+ // `defaultEnabled: false` here would mean the series fact-critical flag alone+ // never triggers it, because getEnabledChecks() filters disabled checks out+ // BEFORE the per-series gate runs — so the advertised "flag the series" path+ // would silently do nothing until the user ALSO enabled it in check settings.+ defaultEnabled: true,// Reads the stitched manuscript corpus — so the runner only pays the// section-collection I/O when a manuscript-consuming check is enabled.needsManuscript: true,diff --git a/server/lib/editorial/checkRegistry.test.js b/server/lib/editorial/checkRegistry.test.jsindex bd43a2868b..339fcbc72b 100644--- a/server/lib/editorial/checkRegistry.test.js+++ b/server/lib/editorial/checkRegistry.test.js@@ -112,9 +112,11 @@ describe('editorial check registry — shape invariants', () => {expect(check).toBeTruthy();expect(check.kind).toBe('llm');expect(check.scope).toBe('series');- // Off by default so it never runs on a series that hasn't declared itself- // fact-critical with a reference.- expect(check.defaultEnabled).toBe(false);+ // Registry-enabled like the other content-gated checks (comic/visual) — the+ // GATE is the opt-in, not the enabled flag. A disabled check would be filtered+ // out before the per-series gate ran, so the series fact-critical flag alone+ // would never trigger it.+ expect(check.defaultEnabled).toBe(true);expect(check.sources).toContain('series.factReference');const manuscript = 'Some prose.';diff --git a/server/services/dataSync.pipelineUniverse.test.js b/server/services/dataSync.pipelineUniverse.test.jsindex c675e96cdb..6ff61b4a80 100644--- a/server/services/dataSync.pipelineUniverse.test.js+++ b/server/services/dataSync.pipelineUniverse.test.js@@ -1053,12 +1053,12 @@ describe('dataSync — per-category schema gate (cross-key isolation)', () => {const result = await dataSync.applyRemote('pipeline', {series: [{ id: 'ser-1', name: 'Foundry', updatedAt: '2026-05-17T11:00:00Z' }],issues: [],- }, { portosMeta: { portosVersion: '99.0.0', schemaVersions: { universes: 5, pipelineSeries: 7, pipelineIssues: 1, mediaCollections: 1 } } });+ }, { portosMeta: { portosVersion: '99.0.0', schemaVersions: { universes: 5, pipelineSeries: 8, pipelineIssues: 1, mediaCollections: 1 } } });expect(result.applied).toBe(false);expect(result.blockedBySchema).toBeDefined();// The reported gap is scoped to the relevant category — NOT mis-attributed.expect(result.blockedBySchema.ahead).toEqual([- { category: 'pipelineSeries', senderV: 7, receiverV: 6 },+ { category: 'pipelineSeries', senderV: 8, receiverV: 7 },]);expect(readSeriesState()).toEqual([]); // nothing written});diff --git a/server/services/sharing/integration.test.js b/server/services/sharing/integration.test.jsindex 5f00796874..dcf154630a 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: 6 }]);+ expect(result.ahead).toEqual([{ category: 'pipelineSeries', senderV: 99, receiverV: 7 }]);expect(result.producedByVersion).toBe('99.0.0');// Series stayed tombstoned (or absent) — apply was refused.await expect(series.getSeries(s.id)).rejects.toThrow();