From 1b42e1980eace1f23dcbe81e37c1d22228286442 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=89=E9=97=B2=E9=9D=99=E9=9B=85?= Date: Wed, 11 Mar 2026 12:43:15 +0800 Subject: [PATCH 1/2] fix: wire 4 orphaned test files into npm test (65 cases) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit access-tracker.test.mjs (59), self-improvement.test.mjs (3), session-recovery-paths.test.mjs (2), jsonl-distill-slash-filter.test.mjs (1) were present in test/ but never executed by `npm test`. All 4 pass independently on master. Note: the pre-existing smart-extractor-branches.mjs failure (LLM-dependent assertion) is unrelated to this change. memory-reflection.test.mjs is intentionally excluded — it has a known failing assertion on the sessionStrategy default value. Co-Authored-By: Claude Opus 4.6 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 7bb0dab..98e4d33 100644 --- a/package.json +++ b/package.json @@ -35,7 +35,7 @@ ] }, "scripts": { - "test": "node test/embedder-error-hints.test.mjs && node test/migrate-legacy-schema.test.mjs && node --test test/config-session-strategy-migration.test.mjs && node test/update-consistency-lancedb.test.mjs && node test/cli-smoke.mjs && node test/functional-e2e.mjs && node test/retriever-rerank-regression.mjs && node test/smart-memory-lifecycle.mjs && node test/smart-extractor-branches.mjs && node test/plugin-manifest-regression.mjs", + "test": "node test/embedder-error-hints.test.mjs && node test/migrate-legacy-schema.test.mjs && node --test test/config-session-strategy-migration.test.mjs && node test/update-consistency-lancedb.test.mjs && node test/cli-smoke.mjs && node test/functional-e2e.mjs && node test/retriever-rerank-regression.mjs && node test/smart-memory-lifecycle.mjs && node test/smart-extractor-branches.mjs && node test/plugin-manifest-regression.mjs && node --test test/access-tracker.test.mjs && node --test test/self-improvement.test.mjs && node --test test/session-recovery-paths.test.mjs && node --test test/jsonl-distill-slash-filter.test.mjs", "test:openclaw-host": "node test/openclaw-host-functional.mjs" }, "devDependencies": { From bcb0ccb0c52082a9f205eb2f045277b6b6aa6030 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=89=E9=97=B2=E9=9D=99=E9=9B=85?= Date: Wed, 11 Mar 2026 17:44:28 +0800 Subject: [PATCH 2/2] fix: move flaky smart-extractor-branches to end of test chain Codex review correctly identified that the 4 newly wired tests were placed after the known-flaky smart-extractor-branches.mjs, meaning they never actually ran in `npm test`. Move the flaky test to the end of the chain so all deterministic tests execute first. Co-Authored-By: Claude Opus 4.6 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 98e4d33..e64ffae 100644 --- a/package.json +++ b/package.json @@ -35,7 +35,7 @@ ] }, "scripts": { - "test": "node test/embedder-error-hints.test.mjs && node test/migrate-legacy-schema.test.mjs && node --test test/config-session-strategy-migration.test.mjs && node test/update-consistency-lancedb.test.mjs && node test/cli-smoke.mjs && node test/functional-e2e.mjs && node test/retriever-rerank-regression.mjs && node test/smart-memory-lifecycle.mjs && node test/smart-extractor-branches.mjs && node test/plugin-manifest-regression.mjs && node --test test/access-tracker.test.mjs && node --test test/self-improvement.test.mjs && node --test test/session-recovery-paths.test.mjs && node --test test/jsonl-distill-slash-filter.test.mjs", + "test": "node test/embedder-error-hints.test.mjs && node test/migrate-legacy-schema.test.mjs && node --test test/config-session-strategy-migration.test.mjs && node test/update-consistency-lancedb.test.mjs && node test/cli-smoke.mjs && node test/functional-e2e.mjs && node test/retriever-rerank-regression.mjs && node test/smart-memory-lifecycle.mjs && node test/plugin-manifest-regression.mjs && node --test test/access-tracker.test.mjs && node --test test/self-improvement.test.mjs && node --test test/session-recovery-paths.test.mjs && node --test test/jsonl-distill-slash-filter.test.mjs && node test/smart-extractor-branches.mjs", "test:openclaw-host": "node test/openclaw-host-functional.mjs" }, "devDependencies": {