Update: clarify middleware direction docs#15
Merged
SI-RUI-ZHANG merged 1 commit intomainfrom Mar 11, 2026
Merged
Conversation
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.
原问题
README、QUICKSTART 和 ARCHITECTURE 对 middleware 的产品边界说明不够清楚;其中 ARCHITECTURE 的运行流程序列与实现不一致,且 README 漏掉了已支持的 /v1/messages 路由。
本次修复
基于当前实现重写 middleware 的产品方向说明,明确 harness 继续拥有 auth/provider/model 选择权,middleware 只在请求与响应两侧提供 normalize -> plugin -> denormalize 的策略层;补充当前仍需显式 inspect/enable 的现状,并修正架构文档里的错误流程与缺失路由。
改动文件
README.md
ARCHITECTURE.md
QUICKSTART.md
Reviewer: @SI-RUI-ZHANG