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

推荐订阅源

freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
H
Help Net Security
云风的 BLOG
云风的 BLOG
Apple Machine Learning Research
Apple Machine Learning Research
H
Hackread – Cybersecurity News, Data Breaches, AI and More
Hugging Face - Blog
Hugging Face - Blog
博客园_首页
D
Docker
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
Blog — PlanetScale
Blog — PlanetScale
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
GbyAI
GbyAI
博客园 - Franky
B
Blog RSS Feed
Stack Overflow Blog
Stack Overflow Blog
L
LangChain Blog
量子位
V
Visual Studio Blog
Y
Y Combinator Blog
小众软件
小众软件
N
Netflix TechBlog - Medium
博客园 - 三生石上(FineUI控件)
Microsoft Security Blog
Microsoft Security 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
fix(memory): surface skipped short-term recall hits (#927...
mushuiyu886 · 2026-06-14 · via Recent Commits to openclaw:main

@@ -76,6 +76,87 @@ describe("memory host event journal integration", () => {

7676

expect(promotionEvent.applied).toBe(1);

7777

});

787879+

it("records skipped recall events for durable memory hits excluded from short-term promotion", async () => {

80+

const workspaceDir = await createTempWorkspace("memory-core-skipped-recall-events-");

81+

await fs.mkdir(path.join(workspaceDir, "memory", "decisoes"), { recursive: true });

82+

await fs.mkdir(path.join(workspaceDir, "memory", "idiomas"), { recursive: true });

83+

await fs.writeFile(

84+

path.join(workspaceDir, "MEMORY.md"),

85+

"# Memory\n\nAlpha durable note.\n",

86+

"utf8",

87+

);

88+

await fs.writeFile(

89+

path.join(workspaceDir, "memory", "decisoes", "2026-06.md"),

90+

"# Decisoes\n\nAlpha monthly decision.\n",

91+

"utf8",

92+

);

93+

await fs.writeFile(

94+

path.join(workspaceDir, "memory", "idiomas", "PLANO.md"),

95+

"# Plano\n\nAlpha language plan.\n",

96+

"utf8",

97+

);

98+99+

await recordShortTermRecalls({

100+

workspaceDir,

101+

query: "alpha durable memory",

102+

results: [

103+

{

104+

path: "MEMORY.md",

105+

startLine: 3,

106+

endLine: 3,

107+

score: 0.91,

108+

snippet: "Alpha durable note.",

109+

source: "memory",

110+

},

111+

{

112+

path: "memory/decisoes/2026-06.md",

113+

startLine: 3,

114+

endLine: 3,

115+

score: 0.88,

116+

snippet: "Alpha monthly decision.",

117+

source: "memory",

118+

},

119+

{

120+

path: "memory/idiomas/PLANO.md",

121+

startLine: 3,

122+

endLine: 3,

123+

score: 0.83,

124+

snippet: "Alpha language plan.",

125+

source: "memory",

126+

},

127+

],

128+

nowMs: Date.UTC(2026, 5, 13, 9, 0, 0),

129+

});

130+131+

const candidates = await rankShortTermPromotionCandidates({

132+

workspaceDir,

133+

minScore: 0,

134+

minRecallCount: 0,

135+

minUniqueQueries: 0,

136+

nowMs: Date.UTC(2026, 5, 13, 9, 5, 0),

137+

});

138+

const events = await readMemoryHostEvents({ workspaceDir });

139+140+

expect(candidates).toEqual([]);

141+

expect(events.map((event) => event.type)).toEqual(["memory.recall.skipped"]);

142+

const skippedEvent = events[0];

143+

if (skippedEvent?.type !== "memory.recall.skipped") {

144+

throw new Error("expected skipped recall event");

145+

}

146+

expect(skippedEvent.query).toBe("alpha durable memory");

147+

expect(skippedEvent.reason).toBe("non-short-term-memory-path");

148+

expect(skippedEvent.eligibleResultCount).toBe(0);

149+

expect(skippedEvent.skippedResultCount).toBe(3);

150+

expect(skippedEvent.results.map((result) => result.path)).toEqual([

151+

"MEMORY.md",

152+

"memory/decisoes/2026-06.md",

153+

"memory/idiomas/PLANO.md",

154+

]);

155+

expect(

156+

skippedEvent.results.every((result) => result.reason === "non-short-term-memory-path"),

157+

).toBe(true);

158+

});

159+79160

it("records dreaming completion events when phase artifacts are written", async () => {

80161

const workspaceDir = await createTempWorkspace("memory-core-dream-events-");

81162