The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
test(memory): rig fixes from the first full local pass
M3gA-Minde9ae9fea6662
diff --git a/scripts/memory-scenarios/connectors.mjs b/scripts/memory-scenarios/connectors.mjsindex 4629624771..e09e1d9d25 100644--- a/scripts/memory-scenarios/connectors.mjs+++ b/scripts/memory-scenarios/connectors.mjs@@ -106,7 +106,10 @@ export const connectors = {const edited = await waitFor(async () => {const g = byToolkit(await composioItems(), "gmail");- return g.some((h) => (h.text ?? "").includes("31st")) ? g : null;+ return g.some((h) => (h.text ?? "").includes("31st")) &&+ !g.some((h) => (h.text ?? "").includes("30th at 7pm"))+ ? g+ : null;},{timeoutMs: 120_000,@@ -135,6 +138,24 @@ export const connectors = {connection_id: composio.connectionId("gmail"),clear_memory: true,});+ if (+ !del.ok &&+ /not available over the direct route/i.test(JSON.stringify(del.error))+ ) {+ ctx.note(+ "D3-D4-untestable",+ "disconnect-with-clear is not available over Composio's direct route (the mock's mode), so D3 and D4 could not run here; they need the backend route",+ );+ for (const id of Object.values(added))+ if (id)+ await ctx.tryRpc("openhuman.memory_sources_remove", {+ id,+ forget_items: true,+ });+ await ctx.setConfigToml("memory", { observed_actor: false });+ await ctx.restartCore();+ return;+ }check("D3-disconnect",del.ok,diff --git a/scripts/memory-scenarios/lib.mjs b/scripts/memory-scenarios/lib.mjsindex ce6ca0647c..1f1a6c7c72 100644--- a/scripts/memory-scenarios/lib.mjs+++ b/scripts/memory-scenarios/lib.mjs@@ -416,7 +416,7 @@ export class Findings {actual:typeof actual === "string"? actual- : JSON.stringify(actual)?.slice(0, 600),+ : (JSON.stringify(actual) ?? String(actual)).slice(0, 600),evidence,basis,});diff --git a/scripts/memory-scenarios/migration.mjs b/scripts/memory-scenarios/migration.mjsindex d0b446f1ef..cf22165af3 100644--- a/scripts/memory-scenarios/migration.mjs+++ b/scripts/memory-scenarios/migration.mjs@@ -136,6 +136,20 @@ export const migration = {imported,);+ // On a self-hosted CortexDB the legacy tree counts as shared: the move+ // waits for the takeover dialog's consent (by design). Give it, as the+ // user confirming the dialog would.+ const gate = await status();+ if (mscan?.shared) {+ check(+ "E2b-waits-for-consent",+ !gate.running && pick(gate, "state.phase") !== "cleaned",+ "a shared tree is not moved without consent",+ gate,+ "high",+ );+ await ctx.rpc("openhuman.memory_migration_start", { takeover: true });+ }// Organizing starts on its own; try to stop the core mid-move.let restarted = false;const deadline = Date.now() + 600_000;diff --git a/scripts/memory-scenarios/scenarios.mjs b/scripts/memory-scenarios/scenarios.mjsindex 02a0c4551e..46432a3281 100644--- a/scripts/memory-scenarios/scenarios.mjs+++ b/scripts/memory-scenarios/scenarios.mjs@@ -479,9 +479,12 @@ const sourceCap = {pv.error,);const pack = pv.value?.pack ?? {};- const refs = JSON.stringify(pack.refs ?? pack.sections ?? []);- const read = sources.filter(- (s) => lc(refs).includes(`source:${s}`) || lc(refs).includes(`"${s}"`),+ // Sources are on the section hits' namespaces (`refs` holds item ids).+ const namespaces = (pack.sections ?? []).flatMap((s) =>+ (s.hits ?? []).map((h) => String(h.meta?.namespace ?? "")),+ );+ const read = sources.filter((s) =>+ namespaces.some((ns) => ns.startsWith(`source:${s}`)),);ctx.results.source_cap = {sources_seen_in_pack: read,