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

fix: register quality sharing as an out-of-band schema transport

Adam Eivyd5db8261edb3
diff --git a/server/lib/schemaVersions.js b/server/lib/schemaVersions.js
index c7f8724cf6..2a2367eebc 100644
--- a/server/lib/schemaVersions.js
+++ b/server/lib/schemaVersions.js
@@ -743,11 +743,14 @@ export const RECORD_KIND_SCHEMA_CATEGORIES = Object.freeze({
* claim-aware per-task merge (see syncCosTasksFromPeer) — no push to gate, so
* no RECORD_KIND_SCHEMA_CATEGORIES entry.
*
+ * `appQuality`: numeric-only local evidence at GET /api/apps/quality-federation,
+ * validated against its exact wire version by collectPortosQuality; never written or pushed.
+ *
* Do NOT add a real record-push category here to silence the guard — that would
* leave its push transfers ungated (silent cross-install corruption). Only
* genuinely non-push categories belong.
*/
-export const NON_RECORD_SCHEMA_CATEGORIES = Object.freeze(new Set(['mediaLibrary', 'cosHistory', 'cosTasks']));
+export const NON_RECORD_SCHEMA_CATEGORIES = Object.freeze(new Set(['mediaLibrary', 'cosHistory', 'cosTasks', 'appQuality']));
/**
* Lazy-read the current PortOS version from the ROOT package.json so a
diff --git a/server/services/dataSync.pipelineUniverse.test.js b/server/services/dataSync.pipelineUniverse.test.js
index d8ba40b171..4a6c4b5373 100644
--- a/server/services/dataSync.pipelineUniverse.test.js
+++ b/server/services/dataSync.pipelineUniverse.test.js
@@ -1113,6 +1113,8 @@ describe('dataSync — per-category schema gate (cross-key isolation)', () => {
// assertion stays honest about what the snapshot map IS and ISN'T
// responsible for.
const OUT_OF_BAND_SYNC_KEYS = new Set([
+ // Numeric PortOS quality uses its version-validated read-through endpoint, never snapshot writes.
+ 'appQuality',
// catalog → `POST /api/catalog/sync/apply` (server/services/catalogSync.js)
'catalog',
// authors → per-record peer-push only (no 60s file-snapshot category).