[good first issue-platform adapt-Pi] Add zero-code MemoryProxy adapter for Pi - #1174
Open
Nobeta-Work wants to merge 1 commit into
Open
[good first issue-platform adapt-Pi] Add zero-code MemoryProxy adapter for Pi#1174Nobeta-Work wants to merge 1 commit into
Nobeta-Work wants to merge 1 commit into
Conversation
Integrate Pi through its native models.json provider configuration instead of a client extension. Use Pi's x-session-id affinity header and validated static Team, Agent, and Task headers to preserve session binding without plugins, hooks, or MCP. Classify Pi compaction and branch summaries as auxiliary requests, keep no-form initialization failures request-local and fail-open, and add route, credit, configuration, regression-test, smoke-validation, and bilingual setup coverage. Signed-off-by: Nobeta-Work <377877931@qq.com>
Nobeta-Work
force-pushed
the
feat/pi-memoryproxy-adapter
branch
from
August 27, 2026 01:59
335315a to
46d380b
Compare
Collaborator
|
Thank you so much for your attention and contribution! We will arrange an internal review for this PR shortly, and all feedback will be shared right here in the discussion. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description | 描述
Adds Pi as a first-class MemoryProxy client through
/pi/<spaceId>/v1/chat/completions.The integration uses Pi's native
models.jsonprovider and dynamicx-session-id, requiring no plugin, hook, MCP server, or Pi source change. Static Team, Agent, and Task headers are validated before non-interactive session registration.Pi reuses the existing authentication, session binding, Memory/Skill/Knowledge injection, write-back, observability, and credit pipelines. Compaction and branch summaries are strictly classified as auxiliary requests to prevent synthetic history from polluting memory. Missing or invalid presets fail open for the current request without persistently disabling the session.
Standalone English and Chinese setup guides are included under
adapters/pi/.Related Issue | 关联 Issue
Related to #926
Change Type | 修改类型
Self-test Checklist | 自测清单
Additional Notes | 其他说明
Validation:
0.84.2tested with--no-extensions.<session_context>injection, streaming upstream forwarding, and credit reporting.This is a zero-code, configuration-only integration. Pi
0.84.2is the verified compatibility baseline.npm run typecheckstill reports pre-existingSessionInfo,resetFlow, and private cost-guard type errors on the target branch; none originate from the Pi adapter.