test(memory): inventory manager sync repro acquisition

This commit is contained in:
Galin Iliev
2026-08-09 21:36:28 -07:00
parent 330b63212e
commit 35d22eb476
2 changed files with 17 additions and 2 deletions
@@ -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));
@@ -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",