Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

test(module-pins): verify search source release matches loaded artifact

Steven Enamakel634b79801fe2
diff --git a/scripts/__tests__/module-pins.test.mjs b/scripts/__tests__/module-pins.test.mjs
index 0049940f78..840941b417 100644
--- a/scripts/__tests__/module-pins.test.mjs
+++ b/scripts/__tests__/module-pins.test.mjs
@@ -125,6 +125,16 @@ test("voice source release matches the artifact used for recording summaries", (
);
});
+test("search source release matches the loaded search artifact", () => {
+ const record = [...parseRecords(readRegistry()).values()].find(
+ (record) => record.id === "tinysearch",
+ );
+ assert.ok(record, "search adapter requires a registered module");
+ const source = readFileSync(join(REPO_ROOT, "vendor/tinysearch/Cargo.toml"), "utf8");
+ const version = source.match(/^version\s*=\s*"([^"]+)"/m)?.[1];
+ assert.equal(version, record.version, "search source must match its loaded artifact");
+});
+
// ── Registry parsing ──────────────────────────────────────────────────────────
test("parses every record `ALL` lists out of the real registry", () => {