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

test([nav-route-manifest-coverage-guard]): flag non-double-quoted path= as malformed

[._.]/ Adam Eivya9d335bcccaa
diff --git a/server/lib/navManifest.test.js b/server/lib/navManifest.test.js
index a7c5bcc381..ee612b928b 100644
--- a/server/lib/navManifest.test.js
+++ b/server/lib/navManifest.test.js
@@ -224,7 +224,10 @@ function scanRoutes(appSrc) {
// (leaf). Anything else is a multi-line opener the scanner can't handle.
if (!line.endsWith('>')) { malformed.push(line); continue; }
+ // A `path=` attribute that didn't parse (e.g. single-quoted) must not be
+ // silently mistaken for a pathless index route — flag it loudly instead.
const pathMatch = line.match(/\bpath="([^"]*)"/);
+ if (!pathMatch && /\bpath=/.test(line)) { malformed.push(line); continue; }
const routePath = pathMatch ? pathMatch[1] : null; // null = index route
// A container is a layout wrapper: push its segment so children resolve to