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
feat: compact quality snapshot entries
[._.]/ Adam Eivy30ae0d42c486
diff --git a/.quality.json b/.quality.jsonindex c5ca32c44c..7554f945ae 100644--- a/.quality.json+++ b/.quality.json@@ -41,565 +41,61 @@"high"],"measurements": [- [- "2026-09-10T06:14:17.032Z",- 6,- 68,- 5,- 0,- 1,- 4175,- 4175- ],- [- "2026-09-10T08:32:49.922Z",- 20,- 70,- 5,- 0,- 1,- 7278,- 7278- ],- [- "2026-09-10T10:25:44.286Z",- 15,- 72,- 5,- 0,- 2,- 3763,- 3763- ],- [- "2026-09-10T12:38:20.981Z",- 3,- 58,- 6,- 0,- 1,- 4185,- 4185- ],- [- "2026-09-10T14:41:26.439Z",- 17,- 68,- 5,- 0,- 1,- 4186,- 4186- ],- [- "2026-09-10T17:06:43.676Z",- 2,- 64,- 7,- 0,- 1,- 4185,- 4185- ],- [- "2026-09-10T19:06:38.953Z",- 12,- 76,- 5,- 0,- 1,- 239,- 239- ],- [- "2026-09-10T23:59:42.485Z",- 19,- 94,- 0,- 0,- 2,- 7462,- 7462- ],- [- "2026-09-11T00:11:45.376Z",- 8,- 82,- 6,- 0,- 2,- 7367,- 7367- ],- [- "2026-09-11T00:19:27.463Z",- 21,- 82,- 8,- 0,- 2,- 7291,- 7291- ],- [- "2026-09-11T02:09:13.557Z",- 0,- 68,- 8,- 0,- 2,- 1713,- 1713- ],- [- "2026-09-11T02:45:28.794Z",- 23,- 82,- 6,- 0,- 2,- 2541,- 2541- ],- [- "2026-09-11T04:48:25.502Z",- 14,- 86,- 4,- 0,- 1,- 7334,- 7334- ],- [- "2026-09-11T05:25:58.268Z",- 13,- 71,- 8,- 0,- 2,- 4188,- 4188- ],- [- "2026-09-11T05:26:04.263Z",- 24,- 58,- 8,- 0,- 2,- 1598,- 1598- ],- [- "2026-09-11T05:26:14.358Z",- 1,- 72,- 7,- 0,- 1,- 371,- 371- ],- [- "2026-09-11T05:26:52.844Z",- 16,- 62,- 6,- 0,- 2,- 4191,- 4191- ],- [- "2026-09-11T06:13:55.436Z",- 11,- 68,- 8,- 0,- 1,- 7364,- 7364- ],- [- "2026-09-11T19:44:53.227Z",- 22,- null,- 0,- 3,- 2,- 8140,- 8140- ],- [- "2026-09-11T19:55:10.104Z",- 18,- 74,- 8,- 0,- 2,- 2520,- 2520- ],- [- "2026-09-11T20:00:38.410Z",- 10,- 76,- 5,- 0,- 2,- 1595,- 1595- ],- [- "2026-09-11T20:05:26.381Z",- 5,- 78,- 7,- 0,- 2,- 7182,- 7182- ],- [- "2026-09-11T20:13:57.414Z",- 4,- 78,- 7,- 0,- 2,- 8140,- 8140- ],- [- "2026-09-11T20:19:43.474Z",- 7,- 82,- 5,- 0,- 2,- 3139,- 3139- ],- [- "2026-09-11T22:12:39.345Z",- 17,- 72,- 6,- 0,- 1,- 7341,- 7341- ],- [- "2026-09-11T23:24:29.322Z",- 3,- 61,- 7,- 0,- 2,- 6526,- 6526- ],- [- "2026-09-12T05:33:12.949Z",- 6,- 84,- 5,- 0,- 1,- 7447,- 7447- ],- [- "2026-09-12T05:44:02.767Z",- 20,- 82,- 5,- 0,- 1,- 7392,- 7392- ],- [- "2026-09-12T05:52:50.597Z",- 15,- 82,- 5,- 0,- 1,- 3809,- 3809- ],- [- "2026-09-12T06:18:10.363Z",- 17,- 82,- 6,- 0,- 1,- 7404,- 7404- ],- [- "2026-09-12T06:34:32.069Z",- 2,- 79,- 6,- 0,- 1,- 7396,- 7396- ],- [- "2026-09-12T06:44:46.386Z",- 12,- 78,- 7,- 0,- 1,- 7598,- 7598- ],- [- "2026-09-12T07:02:07.868Z",- 16,- 75,- 6,- 0,- 1,- 7389,- 7389- ],- [- "2026-09-12T14:24:37.137Z",- 4,- 95,- 0,- 0,- 1,- 7952,- 7952- ],- [- "2026-09-12T14:24:52.808Z",- 5,- 78,- 8,- 0,- 1,- 4237,- 4237- ],- [- "2026-09-12T14:55:53.463Z",- 1,- 82,- 6,- 0,- 1,- 7393,- 7393- ],- [- "2026-09-12T14:56:09.495Z",- 9,- 82,- 6,- 0,- 1,- 7389,- 7389- ],- [- "2026-09-12T16:22:39.982Z",- 3,- 78,- 4,- 0,- 1,- 3823,- 3823- ],- [- "2026-09-12T22:07:58.415Z",- 24,- 68,- 6,- 1,- 1,- 7424,- 7424- ],- [- "2026-09-12T22:47:33.908Z",- 0,- 73,- 7,- 0,- 2,- 1607,- 1607- ],- [- "2026-09-12T22:47:42.163Z",- 13,- 80,- 7,- 0,- 1,- 4213,- 4213- ],- [- "2026-09-12T22:47:50.466Z",- 11,- 62,- 8,- 1,- 1,- 7798,- 7798- ],- [- "2026-09-12T22:48:00.742Z",- 18,- 74,- 6,- 0,- 2,- 1603,- 1603- ],- [- "2026-09-13T03:16:17.962Z",- 11,- 80,- 7,- 1,- 2,- 2600,- 4238- ],- [- "2026-09-13T05:21:50.077Z",- 24,- 78,- 5,- 0,- 2,- 247,- 247- ],- [- "2026-09-17T01:00:58.478Z",- 0,- 68,- 6,- 0,- 1,- 4385,- 4385- ],- [- "2026-09-17T01:01:17.886Z",- 2,- 78,- 5,- 0,- 1,- 4354,- 4354- ],- [- "2026-09-17T04:14:14.575Z",- 16,- 68,- 7,- 0,- 2,- 4356,- 4356- ],- [- "2026-09-21T11:00:03.506Z",- 20,- 78,- 4,- 0,- 2,- 8785,- 8785- ],- [- "2026-09-21T22:10:15.312Z",- 16,- 55,- 7,- 1,- 1,- 2900,- 4518- ],- [- "2026-09-22T16:24:31.577Z",- 18,- 62,- 8,- 0,- 2,- 1701,- 1701- ],- [- "2026-09-22T16:24:54.078Z",- 15,- 62,- 5,- 0,- 1,- 8110,- 8110- ],- [- "2026-09-22T16:37:36.903Z",- 8,- 76,- 7,- 0,- 2,- 7995,- 7995- ],- [- "2026-09-22T19:28:42.988Z",- 16,- 80,- 4,- 0,- 1,- 8149,- 8149- ],- [- "2026-09-23T02:07:11.302Z",- 15,- 64,- 6,- 0,- 1,- 4081,- 4081- ],- [- "2026-09-23T03:56:51.038Z",- 18,- 70,- 6,- 0,- 1,- 1708,- 1708- ]+ ["2026-09-10T06:14:17.032Z",6,68,5,0,1,4175,4175],+ ["2026-09-10T08:32:49.922Z",20,70,5,0,1,7278,7278],+ ["2026-09-10T10:25:44.286Z",15,72,5,0,2,3763,3763],+ ["2026-09-10T12:38:20.981Z",3,58,6,0,1,4185,4185],+ ["2026-09-10T14:41:26.439Z",17,68,5,0,1,4186,4186],+ ["2026-09-10T17:06:43.676Z",2,64,7,0,1,4185,4185],+ ["2026-09-10T19:06:38.953Z",12,76,5,0,1,239,239],+ ["2026-09-10T23:59:42.485Z",19,94,0,0,2,7462,7462],+ ["2026-09-11T00:11:45.376Z",8,82,6,0,2,7367,7367],+ ["2026-09-11T00:19:27.463Z",21,82,8,0,2,7291,7291],+ ["2026-09-11T02:09:13.557Z",0,68,8,0,2,1713,1713],+ ["2026-09-11T02:45:28.794Z",23,82,6,0,2,2541,2541],+ ["2026-09-11T04:48:25.502Z",14,86,4,0,1,7334,7334],+ ["2026-09-11T05:25:58.268Z",13,71,8,0,2,4188,4188],+ ["2026-09-11T05:26:04.263Z",24,58,8,0,2,1598,1598],+ ["2026-09-11T05:26:14.358Z",1,72,7,0,1,371,371],+ ["2026-09-11T05:26:52.844Z",16,62,6,0,2,4191,4191],+ ["2026-09-11T06:13:55.436Z",11,68,8,0,1,7364,7364],+ ["2026-09-11T19:44:53.227Z",22,null,0,3,2,8140,8140],+ ["2026-09-11T19:55:10.104Z",18,74,8,0,2,2520,2520],+ ["2026-09-11T20:00:38.410Z",10,76,5,0,2,1595,1595],+ ["2026-09-11T20:05:26.381Z",5,78,7,0,2,7182,7182],+ ["2026-09-11T20:13:57.414Z",4,78,7,0,2,8140,8140],+ ["2026-09-11T20:19:43.474Z",7,82,5,0,2,3139,3139],+ ["2026-09-11T22:12:39.345Z",17,72,6,0,1,7341,7341],+ ["2026-09-11T23:24:29.322Z",3,61,7,0,2,6526,6526],+ ["2026-09-12T05:33:12.949Z",6,84,5,0,1,7447,7447],+ ["2026-09-12T05:44:02.767Z",20,82,5,0,1,7392,7392],+ ["2026-09-12T05:52:50.597Z",15,82,5,0,1,3809,3809],+ ["2026-09-12T06:18:10.363Z",17,82,6,0,1,7404,7404],+ ["2026-09-12T06:34:32.069Z",2,79,6,0,1,7396,7396],+ ["2026-09-12T06:44:46.386Z",12,78,7,0,1,7598,7598],+ ["2026-09-12T07:02:07.868Z",16,75,6,0,1,7389,7389],+ ["2026-09-12T14:24:37.137Z",4,95,0,0,1,7952,7952],+ ["2026-09-12T14:24:52.808Z",5,78,8,0,1,4237,4237],+ ["2026-09-12T14:55:53.463Z",1,82,6,0,1,7393,7393],+ ["2026-09-12T14:56:09.495Z",9,82,6,0,1,7389,7389],+ ["2026-09-12T16:22:39.982Z",3,78,4,0,1,3823,3823],+ ["2026-09-12T22:07:58.415Z",24,68,6,1,1,7424,7424],+ ["2026-09-12T22:47:33.908Z",0,73,7,0,2,1607,1607],+ ["2026-09-12T22:47:42.163Z",13,80,7,0,1,4213,4213],+ ["2026-09-12T22:47:50.466Z",11,62,8,1,1,7798,7798],+ ["2026-09-12T22:48:00.742Z",18,74,6,0,2,1603,1603],+ ["2026-09-13T03:16:17.962Z",11,80,7,1,2,2600,4238],+ ["2026-09-13T05:21:50.077Z",24,78,5,0,2,247,247],+ ["2026-09-17T01:00:58.478Z",0,68,6,0,1,4385,4385],+ ["2026-09-17T01:01:17.886Z",2,78,5,0,1,4354,4354],+ ["2026-09-17T04:14:14.575Z",16,68,7,0,2,4356,4356],+ ["2026-09-21T11:00:03.506Z",20,78,4,0,2,8785,8785],+ ["2026-09-21T22:10:15.312Z",16,55,7,1,1,2900,4518],+ ["2026-09-22T16:24:31.577Z",18,62,8,0,2,1701,1701],+ ["2026-09-22T16:24:54.078Z",15,62,5,0,1,8110,8110],+ ["2026-09-22T16:37:36.903Z",8,76,7,0,2,7995,7995],+ ["2026-09-22T19:28:42.988Z",16,80,4,0,1,8149,8149],+ ["2026-09-23T02:07:11.302Z",15,64,6,0,1,4081,4081],+ ["2026-09-23T03:56:51.038Z",18,70,6,0,1,1708,1708]]}diff --git a/server/services/appQualitySnapshotFormat.js b/server/services/appQualitySnapshotFormat.jsindex cc48c98973..c43f68291c 100644--- a/server/services/appQualitySnapshotFormat.js+++ b/server/services/appQualitySnapshotFormat.js@@ -113,6 +113,12 @@ function compareRecords(a, b) {|| compareText(a.category, b.category);}+function formatArrayEntries(values) {+ if (values.length === 0) return '[]';+ // Keep each immutable snapshot item on one diff line, including each row.+ return `[\n${values.map(value => ` ${JSON.stringify(value)}`).join(',\n')}\n ]`;+}+function canonicalize(repository, records) {const categories = [...new Set(records.map(record => record.category))].sort(compareText);const categoryIndex = new Map(categories.map((category, index) => [category, index]));@@ -128,15 +134,18 @@ function canonicalize(repository, records) {record.scannedFiles,record.totalFiles,]);- return `${JSON.stringify({- schemaVersion: APP_QUALITY_FILE_SCHEMA_VERSION,- repository,- reportVersion: APP_QUALITY_REPORT_VERSION,- categories,- coverage: [...QUALITY_COVERAGE_VALUES],- confidence: [...QUALITY_CONFIDENCE_VALUES],- measurements,- }, null, 2)}\n`;+ return [+ '{',+ ` "schemaVersion": ${APP_QUALITY_FILE_SCHEMA_VERSION},`,+ ` "repository": ${JSON.stringify(repository)},`,+ ` "reportVersion": ${APP_QUALITY_REPORT_VERSION},`,+ ` "categories": ${formatArrayEntries(categories)},`,+ ` "coverage": ${formatArrayEntries(QUALITY_COVERAGE_VALUES)},`,+ ` "confidence": ${formatArrayEntries(QUALITY_CONFIDENCE_VALUES)},`,+ ` "measurements": ${formatArrayEntries(measurements)}`,+ '}',+ '',+ ].join('\n');}/** Canonical v2 text, or null when the records are not a valid projection. */diff --git a/server/services/appQualitySnapshotFormat.test.js b/server/services/appQualitySnapshotFormat.test.jsindex a8d5036942..3a0fbc93e8 100644--- a/server/services/appQualitySnapshotFormat.test.js+++ b/server/services/appQualitySnapshotFormat.test.js@@ -69,6 +69,33 @@ it('serializes canonical v2 rows with stable indexes and no provenance', () => {['2026-09-21T00:00:00.000Z', 1, null, 0, 3, 0, 0, 4],],});+ expect(text).toBe([+ '{',+ ' "schemaVersion": 2,',+ ` "repository": "${repository}",`,+ ' "reportVersion": 1,',+ ' "categories": [',+ ' "security",',+ ' "typing"',+ ' ],',+ ' "coverage": [',+ ' "broad",',+ ' "partial",',+ ' "unavailable",',+ ' "not-applicable"',+ ' ],',+ ' "confidence": [',+ ' "low",',+ ' "medium",',+ ' "high"',+ ' ],',+ ' "measurements": [',+ ' ["2026-09-20T00:00:00.000Z",0,82,5,0,2,120,120],',+ ' ["2026-09-21T00:00:00.000Z",1,null,0,3,0,0,4]',+ ' ]',+ '}',+ '',+ ].join('\n'));expect(text.endsWith('\n')).toBe(true);expect(text).not.toMatch(/measurementId|example-user|agent-example|summary/);expect(classifyQualitySnapshot(text).canonical).toBe(text);