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

推荐订阅源

N
Netflix TechBlog - Medium
G
Google Developers Blog
H
Hackread – Cybersecurity News, Data Breaches, AI and More
T
The Blog of Author Tim Ferriss
Microsoft Azure Blog
Microsoft Azure Blog
GbyAI
GbyAI
L
LangChain Blog
云风的 BLOG
云风的 BLOG
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
aimingoo的专栏
aimingoo的专栏
P
Proofpoint News Feed
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
小众软件
小众软件
WordPress大学
WordPress大学
A
About on SuperTechFans
大猫的无限游戏
大猫的无限游戏
C
Check Point Blog
月光博客
月光博客
Stack Overflow Blog
Stack Overflow Blog
美团技术团队
Jina AI
Jina AI
T
Tailwind CSS Blog
Google DeepMind News
Google DeepMind News
D
Docker

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-wiki): reduce people wiki search noise · openc...
steipete · 2026-04-29 · via Recent Commits to openclaw:main

@@ -44,6 +44,8 @@ const COMPILE_PAGE_GROUPS: Array<{ kind: WikiPageKind; dir: string; heading: str

4444

];

4545

const AGENT_DIGEST_PATH = ".openclaw-wiki/cache/agent-digest.json";

4646

const CLAIMS_DIGEST_PATH = ".openclaw-wiki/cache/claims.jsonl";

47+

const MAX_RELATED_PAGES_PER_SECTION = 12;

48+

const MAX_SHARED_SOURCE_FANOUT = 24;

47494850

type DashboardPageDefinition = {

4951

id: string;

@@ -395,12 +397,33 @@ function renderWikiPageLinks(params: {

395397

.join("\n");

396398

}

397399400+

function sharedSourceFanout(

401+

page: WikiPageSummary,

402+

allPages: WikiPageSummary[],

403+

): Map<string, number> {

404+

const sourceIds = new Set(page.sourceIds);

405+

const counts = new Map<string, number>();

406+

for (const candidate of allPages) {

407+

if (candidate.relativePath === page.relativePath) {

408+

continue;

409+

}

410+

for (const sourceId of candidate.sourceIds) {

411+

if (!sourceIds.has(sourceId)) {

412+

continue;

413+

}

414+

counts.set(sourceId, (counts.get(sourceId) ?? 0) + 1);

415+

}

416+

}

417+

return counts;

418+

}

419+398420

function buildRelatedBlockBody(params: {

399421

config: ResolvedMemoryWikiConfig;

400422

page: WikiPageSummary;

401423

allPages: WikiPageSummary[];

402424

}): string {

403425

const candidatePages = params.allPages.filter((candidate) => candidate.kind !== "report");

426+

const sourceFanout = sharedSourceFanout(params.page, candidatePages);

404427

const pagesById = new Map(

405428

candidatePages.flatMap((candidate) =>

406429

candidate.id ? [[candidate.id, candidate] as const] : [],

@@ -426,6 +449,10 @@ function buildRelatedBlockBody(params: {

426449

);

427450

}),

428451

);

452+

const backlinkPages =

453+

backlinks.length <= MAX_SHARED_SOURCE_FANOUT

454+

? backlinks.slice(0, MAX_RELATED_PAGES_PER_SECTION)

455+

: [];

429456

const relatedPages = uniquePages(

430457

candidatePages.filter((candidate) => {

431458

if (candidate.relativePath === params.page.relativePath) {

@@ -434,15 +461,19 @@ function buildRelatedBlockBody(params: {

434461

if (sourcePages.some((sourcePage) => sourcePage.relativePath === candidate.relativePath)) {

435462

return false;

436463

}

437-

if (backlinks.some((backlink) => backlink.relativePath === candidate.relativePath)) {

464+

if (backlinkPages.some((backlink) => backlink.relativePath === candidate.relativePath)) {

438465

return false;

439466

}

440467

if (params.page.sourceIds.length === 0 || candidate.sourceIds.length === 0) {

441468

return false;

442469

}

443-

return params.page.sourceIds.some((sourceId) => candidate.sourceIds.includes(sourceId));

470+

return params.page.sourceIds.some(

471+

(sourceId) =>

472+

candidate.sourceIds.includes(sourceId) &&

473+

(sourceFanout.get(sourceId) ?? 0) <= MAX_SHARED_SOURCE_FANOUT,

474+

);

444475

}),

445-

);

476+

).slice(0, MAX_RELATED_PAGES_PER_SECTION);

446477447478

const sections: string[] = [];

448479

if (sourcePages.length > 0) {

@@ -451,10 +482,10 @@ function buildRelatedBlockBody(params: {

451482

renderWikiPageLinks({ config: params.config, pages: sourcePages }),

452483

);

453484

}

454-

if (backlinks.length > 0) {

485+

if (backlinkPages.length > 0) {

455486

sections.push(

456487

"### Referenced By",

457-

renderWikiPageLinks({ config: params.config, pages: backlinks }),

488+

renderWikiPageLinks({ config: params.config, pages: backlinkPages }),

458489

);

459490

}

460491

if (relatedPages.length > 0) {