惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Vercel News
Vercel News
博客园 - 【当耐特】
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
小众软件
小众软件
Hugging Face - Blog
Hugging Face - Blog
aimingoo的专栏
aimingoo的专栏
WordPress大学
WordPress大学
G
Google Developers Blog
博客园 - 叶小钗
大猫的无限游戏
大猫的无限游戏
P
Proofpoint News Feed
J
Java Code Geeks
U
Unit 42
云风的 BLOG
云风的 BLOG
阮一峰的网络日志
阮一峰的网络日志
N
Netflix TechBlog - Medium
宝玉的分享
宝玉的分享
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
D
Docker
V
Visual Studio Blog
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
H
Help Net Security
V
V2EX
T
Tailwind CSS Blog

Recent Commits to openclaw:main

test: merge chat side-result checks · openclaw/openclaw@ddd2c2a test: merge cron history checks · openclaw/openclaw@f7eb746 test: merge responsive navigation shell checks · openclaw/openclaw@c2e4b47 docs(changelog): add codex oauth fixes · openclaw/openclaw@628e6cd test: merge navigation routing cases · openclaw/openclaw@5d8cecb Tests: mock channel registry bundled fallback · openclaw/openclaw@2b08233 Secrets: avoid broad web search discovery for single plugin config · openclaw/openclaw@a464f59 test: merge config view browser checks · openclaw/openclaw@20cf511 fix(status): align oauth health with runtime · openclaw/openclaw@eed7116 feat: add macOS screen snapshots for monitor preview (#67954) thanks … · openclaw/openclaw@f377db1 fix: report shared auth scopes in hello-ok (#67810) thanks @BunsDev · openclaw/openclaw@0b6c39b Auto-reply: avoid eager bundled route fallback · openclaw/openclaw@3ea1bf4 Tests: narrow session binding contract setup · openclaw/openclaw@54e4e16 fix(macOS): enable undo/redo in webchat composer text input (#34962) · openclaw/openclaw@00951dc Tests: speed up channel setup promotion · openclaw/openclaw@82b529a Docs: refresh agent instructions · openclaw/openclaw@5775fe2 fix(auth): serialize OAuth refresh across agents to fix #26322 (#67876) · openclaw/openclaw@8e79080 test: allow ollama public surface boundary test · openclaw/openclaw@7d4f1a6 Docs: add test performance guardrails · openclaw/openclaw@89706d3 Tests: restore context-engine usage proof · openclaw/openclaw@e4c4f95 Tests: slim context engine runtime coverage · openclaw/openclaw@74c198f ci: retry failed custom checkouts · openclaw/openclaw@0ee5baf test: trim duplicate provider auth onboarding cases · openclaw/openclaw@1ffc02e matrix: fix sessions_spawn --thread subagent session spawning (#67643) · openclaw/openclaw@1ce2596 test: reduce auth choice fixture churn · openclaw/openclaw@857b9cd test: mock health status config boundaries · openclaw/openclaw@9d5ab4a test: mock onboard config io boundary · openclaw/openclaw@299694d test: mock legacy state plugin boundaries · openclaw/openclaw@2713089 test: mock channel install boundaries · openclaw/openclaw@b945248 test: mock doctor preview channel boundaries · openclaw/openclaw@b1a3ad4
test: tighten memory wiki assertions · openclaw/openclaw@...
steipete · 2026-05-11 · via Recent Commits to openclaw:main

@@ -47,31 +47,36 @@ describe("applyMemoryWikiMutation", () => {

4747

const page = await fs.readFile(path.join(rootDir, result.pagePath), "utf8");

4848

const parsed = parseWikiMarkdown(page);

494950-

expect(parsed.frontmatter).toMatchObject({

51-

pageType: "synthesis",

52-

id: "synthesis.alpha-synthesis",

53-

title: "Alpha Synthesis",

54-

sourceIds: ["source.alpha", "source.beta"],

55-

claims: [

56-

{

57-

id: "claim.alpha.postgres",

58-

text: "Alpha uses PostgreSQL for production writes.",

59-

status: "supported",

60-

confidence: 0.86,

61-

evidence: [

62-

{

63-

sourceId: "source.alpha",

64-

lines: "12-18",

65-

weight: 0.9,

66-

},

67-

],

68-

},

69-

],

70-

contradictions: ["Needs a better primary source"],

71-

questions: ["What changed after launch?"],

72-

confidence: 0.7,

73-

status: "active",

74-

});

50+

expect(parsed.frontmatter.pageType).toBe("synthesis");

51+

expect(parsed.frontmatter.id).toBe("synthesis.alpha-synthesis");

52+

expect(parsed.frontmatter.title).toBe("Alpha Synthesis");

53+

expect(parsed.frontmatter.sourceIds).toEqual(["source.alpha", "source.beta"]);

54+

expect(parsed.frontmatter.claims).toHaveLength(1);

55+

const claims = parsed.frontmatter.claims as

56+

| Array<{

57+

confidence?: number;

58+

evidence?: Array<Record<string, unknown>>;

59+

id?: string;

60+

status?: string;

61+

text?: string;

62+

}>

63+

| undefined;

64+

const claim = claims?.[0];

65+

expect(claim?.id).toBe("claim.alpha.postgres");

66+

expect(claim?.text).toBe("Alpha uses PostgreSQL for production writes.");

67+

expect(claim?.status).toBe("supported");

68+

expect(claim?.confidence).toBe(0.86);

69+

expect(claim?.evidence).toEqual([

70+

{

71+

sourceId: "source.alpha",

72+

lines: "12-18",

73+

weight: 0.9,

74+

},

75+

]);

76+

expect(parsed.frontmatter.contradictions).toEqual(["Needs a better primary source"]);

77+

expect(parsed.frontmatter.questions).toEqual(["What changed after launch?"]);

78+

expect(parsed.frontmatter.confidence).toBe(0.7);

79+

expect(parsed.frontmatter.status).toBe("active");

7580

expect(parsed.body).toContain("## Summary");

7681

expect(parsed.body).toContain("<!-- openclaw:wiki:generated:start -->");

7782

expect(parsed.body).toContain("Alpha summary body.");

@@ -138,23 +143,27 @@ keep this note

138143

const updated = await fs.readFile(targetPath, "utf8");

139144

const parsed = parseWikiMarkdown(updated);

140145141-

expect(parsed.frontmatter).toMatchObject({

142-

pageType: "entity",

143-

id: "entity.alpha",

144-

title: "Alpha",

145-

sourceIds: ["source.new"],

146-

claims: [

147-

{

148-

id: "claim.alpha.status",

149-

text: "Alpha is still active for existing tenants.",

150-

status: "contested",

151-

evidence: [{ sourceId: "source.new", lines: "4-9" }],

152-

},

153-

],

154-

contradictions: ["Conflicts with source.beta"],

155-

questions: ["Is Alpha still active?"],

156-

status: "review",

157-

});

146+

expect(parsed.frontmatter.pageType).toBe("entity");

147+

expect(parsed.frontmatter.id).toBe("entity.alpha");

148+

expect(parsed.frontmatter.title).toBe("Alpha");

149+

expect(parsed.frontmatter.sourceIds).toEqual(["source.new"]);

150+

expect(parsed.frontmatter.claims).toHaveLength(1);

151+

const claims = parsed.frontmatter.claims as

152+

| Array<{

153+

evidence?: Array<Record<string, unknown>>;

154+

id?: string;

155+

status?: string;

156+

text?: string;

157+

}>

158+

| undefined;

159+

const claim = claims?.[0];

160+

expect(claim?.id).toBe("claim.alpha.status");

161+

expect(claim?.text).toBe("Alpha is still active for existing tenants.");

162+

expect(claim?.status).toBe("contested");

163+

expect(claim?.evidence).toEqual([{ sourceId: "source.new", lines: "4-9" }]);

164+

expect(parsed.frontmatter.contradictions).toEqual(["Conflicts with source.beta"]);

165+

expect(parsed.frontmatter.questions).toEqual(["Is Alpha still active?"]);

166+

expect(parsed.frontmatter.status).toBe("review");

158167

expect(parsed.frontmatter).not.toHaveProperty("confidence");

159168

expect(parsed.body).toContain("keep this note");

160169

expect(parsed.body).toContain("<!-- openclaw:human:start -->");