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

raise the server import budget for the source-kind leaf (113,700 → 114,200)

[._.]/ Adam Eivy44b4fffb24e0
diff --git a/server/lib/importScoping.test.js b/server/lib/importScoping.test.js
index 3007dc9c11..d4f3e117b1 100644
--- a/server/lib/importScoping.test.js
+++ b/server/lib/importScoping.test.js
@@ -709,7 +709,18 @@ describe('deferred imports stay deferred (#6156)', () => {
// the change: 113,350 — the pre-change tree had already eroded to within single
// digits of the old ceiling, so this restores the ~350 of headroom the recent
// entries carry rather than leaving the next unrelated commit to trip it.
-const MAX_STATIC_INSTANTIATIONS = 113700;
+// 113,700 → 114,200 (#7609 catalog extraction lens): `lib/catalogSourceKinds.js`
+// is a dependency-free leaf — the scrap source-kind vocabulary plus the
+// extraction lens each kind implies — so it adds one node per closure that
+// reaches it: `lib/catalogValidation.js` (which builds its ingest enum from
+// the ids), `services/catalogExtraction.js`, the lib barrel, and its own
+// suite. No subtree, and no widely-reached module gained an edge into one.
+// Measured before 113,568, after 113,814; its whole share is 246. The
+// alternative is what this issue exists to close: the lens re-declared as a
+// private Set inside the extractor, parallel to the source-kind list at the
+// Zod boundary, where a new ingest source silently reads a memoir through the
+// fiction lens. Restores the ~390 of headroom the recent entries carry.
+const MAX_STATIC_INSTANTIATIONS = 114200;
const SKIP_DIRS = new Set(['node_modules', 'coverage', 'dist', 'data']);