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

docs: list all audit lanes and pin the lane table to the catalog with a test (#9143)

Adam Eivy89ae8327db21
diff --git a/docs/features/app-quality.md b/docs/features/app-quality.md
index 8192c6e110..6ce2e03905 100644
--- a/docs/features/app-quality.md
+++ b/docs/features/app-quality.md
@@ -8,7 +8,7 @@ Nothing calls an AI provider when a page loads or when the server starts.
The browser explicitly requests `includeQuality=true` on app reads; bare
`/api/apps` peer probes retain their existing response without assessment prose.
-All 30 scheduled audit categories first inventory first-party source roots, scan
+Every scheduled audit category first inventory first-party source roots, scan
for their category's signals, rank the top five candidates (or all if fewer),
and validate the strongest candidates before selecting a bounded investigation.
The raw worst offender may be passed over only with an explanation such as a
diff --git a/docs/features/self-improvement-audits.md b/docs/features/self-improvement-audits.md
index 7478776157..6bd4522189 100644
--- a/docs/features/self-improvement-audits.md
+++ b/docs/features/self-improvement-audits.md
@@ -53,10 +53,15 @@ the operator's live checkout.
| `better-dependency-freedom` | Whether a dependency should exist at all | `dependencies`, `depfree` | file | yes |
| `better-test-quality` | Existing tests that prove nothing | `tests`, `test-quality` | file | |
| `better-dev-environment` | What the dev loop leaves on the host | `tests`, `dev-environment` | file | |
+| `infrastructure` | Deployment, container, IaC and CI configuration | `infrastructure` | file | |
+| `data-integrity` | Ingestion, idempotency, consistency, schema evolution | `data-safety`, `data-integrity` | file | |
+| `reliability` | Shutdown, health checks, backpressure, job leasing, mixed-version deploys | `resilience`, `reliability` | file | |
+| `privacy` | Exposure, minimization, retention and erasure of personal data | `privacy` | file | |
+| `cost-efficiency` | Metered spend: paid calls, unbounded scans, over-provisioning | `performance`, `cost` | file | |
## Why the boundaries are explicit
-Twenty-six lanes only pay off if they do not file each other's findings. Every
+Lanes only pay off if they do not file each other's findings. Every
mission body names what it cedes and to whom, so two lanes cannot both claim one
problem:
diff --git a/server/lib/auditCatalog.docs.test.js b/server/lib/auditCatalog.docs.test.js
new file mode 100644
index 0000000000..e7487a75fd
--- /dev/null
+++ b/server/lib/auditCatalog.docs.test.js
@@ -0,0 +1,29 @@
+import { describe, it, expect } from 'vitest';
+import { readFileSync } from 'node:fs';
+import { AUDIT_TASK_TYPE_LIST, AUDIT_DEFINITIONS } from './auditCatalog.js';
+
+const DOC = new URL('../../docs/features/self-improvement-audits.md', import.meta.url);
+
+const parseRows = () => readFileSync(DOC, 'utf8')
+ .split('\n')
+ .map((line) => line.match(/^\| `([a-z-]+)` \|.*\| ((?:`[^`]+`(?:, )?)+) \| \w+ \|/))
+ .filter(Boolean)
+ .map(([, taskType, labels]) => ({
+ taskType,
+ labels: [...labels.matchAll(/`([^`]+)`/g)].map((m) => m[1]),
+ }));
+
+describe('self-improvement-audits.md lane table', () => {
+ it('has exactly one row per catalog lane', () => {
+ const types = parseRows().map((r) => r.taskType);
+ expect(new Set(types).size).toBe(types.length);
+ expect([...types].sort()).toEqual([...AUDIT_TASK_TYPE_LIST].sort());
+ });
+
+ it('documents the labels each lane files under', () => {
+ for (const { taskType, labels } of parseRows()) {
+ const { issueLabel, extraLabels } = AUDIT_DEFINITIONS[taskType].filing;
+ expect(labels, taskType).toEqual([issueLabel, ...extraLabels]);
+ }
+ });
+});