From 35d22eb476ccee54433d8a87bf0a4416738f86f7 Mon Sep 17 00:00:00 2001 From: Galin Iliev Date: Sun, 9 Aug 2026 21:36:28 -0700 Subject: [PATCH] test(memory): inventory manager sync repro acquisition --- .../memory-authorization-path-inventory.test.ts | 12 ++++++++++-- src/plugins/memory-authorization-path-inventory.ts | 7 +++++++ 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/src/plugins/memory-authorization-path-inventory.test.ts b/src/plugins/memory-authorization-path-inventory.test.ts index ff441b449e61..d9ace6807ea3 100644 --- a/src/plugins/memory-authorization-path-inventory.test.ts +++ b/src/plugins/memory-authorization-path-inventory.test.ts @@ -14,6 +14,7 @@ const REPO_ROOT = path.resolve(path.dirname(fileURLToPath(import.meta.url)), ".. const REQUIRED_PHASE_0_PATH_IDS = [ "selected-runtime-manager-acquisition", + "memory-index-manager-sync-repro-manager-acquisition", "selected-runtime-backend-resolution", "bootstrap-memory-and-user-files", "startup-recent-memory-context", @@ -709,6 +710,13 @@ describe("memory authorization path inventory", () => { disposition: "blocked-in-enforced-mode", surfaces: ["src/hooks/bundled/session-memory/handler.ts"], }); + expect(entriesById.get("memory-index-manager-sync-repro-manager-acquisition")).toEqual({ + id: "memory-index-manager-sync-repro-manager-acquisition", + direction: "control", + owner: "operator-memory-host", + disposition: "legacy-only", + surfaces: ["scripts/memory-index-manager.sync-repro.ts"], + }); }); it("names only existing production surfaces", () => { @@ -838,9 +846,9 @@ describe("memory authorization path inventory", () => { ); }); - it("does not allow an unrecorded production context-free manager acquisition", () => { + it("does not allow an unrecorded repo-owned context-free manager acquisition", () => { const scanned = listRepoFilesSync(REPO_ROOT, { - roots: ["src", "extensions", "packages"], + roots: ["src", "extensions", "packages", "scripts"], includeFile: isProductionTypeScript, }); const inventoried = new Set(inventory.flatMap((item) => item.surfaces)); diff --git a/src/plugins/memory-authorization-path-inventory.ts b/src/plugins/memory-authorization-path-inventory.ts index 078d3bf85dc9..00b330d717d7 100644 --- a/src/plugins/memory-authorization-path-inventory.ts +++ b/src/plugins/memory-authorization-path-inventory.ts @@ -56,6 +56,13 @@ export const MEMORY_AUTHORIZATION_PATH_INVENTORY = Object.freeze([ "extensions/memory-core/src/runtime-provider.ts", "extensions/memory-core/src/memory/search-manager.ts", ), + entry( + "memory-index-manager-sync-repro-manager-acquisition", + "control", + "operator-memory-host", + "legacy-only", + "scripts/memory-index-manager.sync-repro.ts", + ), entry( "selected-runtime-backend-resolution", "control",