Skip to content

Blog/dsh pet powercontext memory - #2661

Closed
beatenevo wants to merge 9 commits into
oceanbase:masterfrom
beatenevo:blog/dsh-pet-powercontext-memory
Closed

beatenevo wants to merge 9 commits into
oceanbase:masterfrom
beatenevo:blog/dsh-pet-powercontext-memory

Conversation

@beatenevo

Copy link
Copy Markdown
Contributor

Which issue or RFC does this PR close?

Closes #.

Rationale for this change

What changes are included in this PR?

Are there any user-facing changes?

How was this change tested?

AI usage statement

Comment thread tests/e2e/test_blog_site.py Outdated
"dsh-pet-powercontext-memory/dsh-sources.png",
"dsh-pet-powercontext-memory/dsh-settings.png",
"dsh-pet-powercontext-memory/dsh-memory-service.png",
"dsh-pet-powercontext-memory/reuse-cost.en.svg",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[P2] 中文版引用英文图表,同时把该文件加入豁免名单,等于绕过“图表按语言成对”的检查

docs/zh/blog/posts/dsh-pet-powercontext-memory.md 引用 reuse-cost.en.svg,图内文字全为英文(Known generation input (million tokens)、Full history、Estimated known cost (CNY) 等,见该 SVG 的 <text> 节点)。

本行把 "dsh-pet-powercontext-memory/reuse-cost.en.svg" 加入 original_images。该函数对不在名单内的图片强制 assert image.endswith(f".{language}.svg") 并要求另一语言副本存在——因此加入名单后,中文版引用英文图表不再被任何断言拦住;而 test_blog_language_is_consistent_in_text_examples_and_diagrams 的 docstring 正是 “Catch untranslated prompts/comments and accidental cross-language image reuse”,本 PR 改的正是这条守卫的适用范围。

影响:中文版正文出现整幅英文图表;更关键的是守卫被改成放行,后续同类“图表漏译”不会再被这条测试发现。对比同文件对 Harbor 文章的写法是显式声明 “deliberately shares English architecture figures across editions”,这里却把 SVG 图表与 GIF/界面截图放进同一条笼统注释里豁免,等于让 .svg 也进入无语言约束的分支。

建议:补 reuse-cost.zh.svg,中文文章引用 .zh.svg、英文文章继续用 .en.svg,测试无需改动。若确实要中英共用同一张英文图表,请把“图表共用”与“截图/录屏共用”分成两组名单,并在注释里单独说明该图表的共用决定,避免后续图表继续顺着这条分支逃过检查。

@hireview001 hireview001 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM


The pet's memory is one host adapter for PowerContext. The same server can be connected to DeepSeek Harness itself, so that **your coding agent sessions** get project-level memory too.

The `powercontext-dsh` plugin adds a thin Cordis adapter that maps PowerContext's HTTP API into Harness. Before each turn it recalls relevant context and captures the user's input as a Source; the model then uses `pc_*` tools to read and write Memory, Handoff, Source, Experience and Skill explicitly.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[P3] Describe the native MCP tool surface

Readers looking for the advertised pc_* Memory, Handoff and Skill tools will not find them: the DSH plugin registers native MCP tools named mcp__powercontext__<operation>. Update this paragraph and the corresponding table in both editions to describe the actual tool surface.

@AlexStocks AlexStocks added the 1.6.0 v1.6.0 release tracking label Nov 17, 2026

@hireview001 hireview001 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

1.6.0 v1.6.0 release tracking

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants