🌊 The original agent harness. Deploy intelligent multi-player swarms, coordinate autonomous workflows, and build conversational AI systems. Features adaptive memory, self-learning intelligence, federation, vector RAG integration, and native Claude Code / Codex / Hermes and many more Integrated
TypeScript agentic-aiagentic-frameworkagentic-workflowagentsai-agentsai-assistantai-skillsautonomous-agentsclaudecodexdsh-pluginharnessmcp-servermulti-agentmulti-agent-systemsnpmskillsswarmswarm-intelligencetypescript
fix(ci): graph schema smoke — checkpoint WAL before sql.js re-read
ruv3f1747a52736
diff --git a/scripts/smoke-graph-schema-migration.mjs b/scripts/smoke-graph-schema-migration.mjsindex 438f8ad9d3..5fe48db3b1 100644--- a/scripts/smoke-graph-schema-migration.mjs+++ b/scripts/smoke-graph-schema-migration.mjs@@ -128,6 +128,13 @@ async function testEdgeInsert() {const count = await countGraphEdges(dbPath);assert(count === 1, `2b: graph_edges has 1 row (found ${count})`);+ // Close the better-sqlite3 connection so its WAL is checkpointed back+ // into the main DB file before we re-read via sql.js (#2431 added WAL+ // mode for cross-connection safety; without this checkpoint, sql.js+ // sees only the pre-insert main file and the inserted rows live in+ // the .db-wal sidecar).+ _resetBridgeDb();+// Verify embedding_ref is inline-encodedconst SQL = await loadSqlJs();const fileBuffer = fs.readFileSync(dbPath);@@ -173,6 +180,9 @@ async function testLegacyIdPrefix() {});assert(ok, '3a: insertGraphEdge with mem:-prefixed IDs succeeds');+ // Checkpoint WAL → main DB before re-reading via sql.js (#2431).+ _resetBridgeDb();+// Verify row exists with the prefixed IDsconst SQL = await loadSqlJs();const fileBuffer = fs.readFileSync(dbPath);@@ -262,6 +272,12 @@ async function testTableAutoCreate() {});assert(ok, '5a: insertGraphEdge succeeds on DB without graph_edges');+ // Checkpoint WAL → main DB before re-reading via sql.js (#2431).+ // Without this, sql.js sees only the pre-insert main file (just+ // memory_entries) and the auto-created graph_edges table sits in+ // the .db-wal sidecar, failing assertion 5b.+ _resetBridgeDb();+// Verify table was createdconst fileBuffer = fs.readFileSync(oldDbPath);const dbCheck = new SQL.Database(fileBuffer);