feat: 实现 Agent Query Sink - #111
Merged
Merged
Conversation
This branch was successfully deployed
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.
产品行为
新增
core.agent-query.v1:由 AI 组合 info-base retrieval、Resolver read 与 graph navigation,异步交付answer + references。Sink 启用时挂载/sinks/{id}/query,请求创建core.sink.agent-query.v1Job;禁用时撤下该实例的 route。CLI 提供 Sink 管理与
query,继续作为独立 REST consumer。架构与维护
只负责 binding/execution,不建立中央
agent_toolsbusiness package。submit_query_result,独立入口无需借助 REST import chain 注册。SinkBasehooks 默认为 no-op;动态路由按实际对象 ownership 撤下并刷新 OpenAPI。标明历史基线,当前合同归 Unit TDD,执行证据归 unit packet。
复用现有 Sink/Job/Agent 表;无新依赖、schema migration 或发布编排变更。Core/CLI fragments 仅声明发行意图。
验证
pdm run check(14 passed、60 skipped)、pdm run -p cli check、pdm build -p cli、release contract 检查。lifecycle 与通用 Job admission;Organization 回归通过迁移后的读取工具及既有 graph 写入链路。
smoke 覆盖独立撤下、重启和 OpenAPI 更新。手工检查命令保存在 implementation-evidence,未增加自动化测试。
27b24e7的全部 CI 与 Preview 部署通过;通过已安装 CLI 复核 Tool discovery、submit_query_resultschema、Sink 1 动态 query schema,并确认
/readyz正常。交付状态与残余
本 PR 保持 draft,未获合并授权。合并依赖 Hub PR #29。真实模型可能在预算内未提交结果,当前按合同将 Job
标记为 failed;未增加 provider 特例。内存 Thread、超大材料与 best-effort 收尾的既有限制保持不变。
Job runtime schema 与 hermetic profile 已核对一致;其手工同步关系记录为既有架构观察项,本 PR 不扩展为
database-contract 生成机制重构。