mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-25 11:55:47 -06:00
bccbb8a0c7
* fix: require memory persistence receipts * fix(memory): bind persistence failures to tool owners * fix(memory): preserve Codex persistence ownership * test(plugin-sdk): account for owner metadata export * test(codex): split owner timeout regression * fix(memory): cover durable deletes across runtimes * test(codex): type dynamic mutation fixtures * fix(agents): fail closed ambiguous side-effect owners * fix(memory): fail zero-row delete receipts
16 lines
555 B
TypeScript
16 lines
555 B
TypeScript
import { readFile } from "node:fs/promises";
|
|
import { describe, expect, it } from "vitest";
|
|
|
|
describe("memory-lancedb durable tool metadata", () => {
|
|
it.each(["memory_store", "memory_forget"])(
|
|
"declares %s as owner-backed side effect",
|
|
async (toolName) => {
|
|
const manifest = JSON.parse(
|
|
await readFile(new URL("./openclaw.plugin.json", import.meta.url), "utf8"),
|
|
) as { toolMetadata?: Record<string, { sideEffecting?: boolean }> };
|
|
|
|
expect(manifest.toolMetadata?.[toolName]?.sideEffecting).toBe(true);
|
|
},
|
|
);
|
|
});
|