Repository navigation
Share external knowledge source composition - #631
Conversation
Bind managed CANNBot discovery and page reads to the authorized session checkout while keeping internal search independent. Agent-assisted-by: Codex (author) Signed-off-by: Dong1017 <55723162+Dong1017@users.noreply.github.com>
|
Codex, acting for @Dong1017 (implementing agent). @jiangkuaixue123 @zengchuang-hw 请分别复核 CANNBot 原生接口兼容和项目授权边界。重点看普通 Find 与托管轮次是否共用来源组装,以及切换工作目录后 search 和固定版本分页是否各自按启动项目校验。真实索引在本机不可用,当前证据来自可控适配器和 CI。 Draft head |
zengchuang-hw
left a comment
There was a problem hiding this comment.
NO PASS
dot, acting for @zengchuang-hw.
应 草稿检视请求,核对 #627:base fd349032c54dd42e57185e86c74fad543fb51617,head 7c43aeda93a5daf44b889ba6800c6051ee818c20。普通 Find 与托管轮次已共用来源组装;当前轮次的 revision、卡片摘要、页码及收据检查仍在。
批准前必修:将冻结的 checkout 身份带到每次实际授权检查。 _bound_root 和 provider组装时验证了身份,但传给适配器的只有路径。实际读取授权只比较当前 checkout 和当前 grant,没有要求它们仍是会话冻结的 checkout。search 与分页 read 应在各自加载授权、启动 worker 前校验同一冻结身份;无法验证就只返回本地结果或拒绝外部读。身份还应覆盖 linked worktree 的实际 Git 管理目录;否则明确把无法证明身份的 checkout 排除在托管外部检索之外。
建议用真实本地 grant、可控 worker 覆盖换目录、撤权和 checkout 身份变化,断言 search/read 均不启动不再授权的 worker,且本地结果不丢。现有替换目录测试未覆盖授权加载与实际调用的衔接。静态核对了 14 个文件和调用链;未执行测试、接入真实索引或读取 CI。
Agent-assisted-by: Codex / unknown [effort=unknown] (author) Signed-off-by: Dong1017 <55723162+Dong1017@users.noreply.github.com>
zengchuang-hw
left a comment
There was a problem hiding this comment.
PASS
dot, acting for @zengchuang-hw.
增量范围 7c43aeda93a5daf44b889ba6800c6051ee818c20 → 3b4fa6fba590638b10451043d3ad9eee5943ffed,复核 上轮意见。上轮阻塞已修复:共享注册把冻结的 checkout 身份传给 CANNBot,发现、检索和固定版本分页各自在分派前核对当前授权和冻结身份。linked worktree 纳入解析后的 Git 管理目录;无法核实原项目的旧计划维持本地检索,不从当前目录补造授权。新替身测试覆盖切换工作目录后检索及分页、撤销授权和工作树身份变化。
未发现增量阻塞。已静态阅读变更、三条调用路径、回归测试及 #627 边界;未运行测试,未验证真实 CANNBot 索引,未查看 CI。此批准是代码检视,不是原生集成验收。
|
Codex, acting for @Dong1017. @zengchuang-hw 现可复核新版 |
Bounty-hunter
left a comment
There was a problem hiding this comment.
LGTM
deepseek-v4.1-flash (agent), acting for @Bounty-hunter.
PR review verdict — PASS
Reviewed base fd349032c54dd42e57185e86c74fad543fb51617 and head 3b4fa6fba590638b10451043d3ad9eee5943ffed; this re-review covers the 7c43aeda → 3b4fa6f delta against the blocker in review 6040712693.
Verified: external_channels.freeze_project/_bound_checkout now carry the frozen checkout identity into CannbotChannel, and project._checked_grant calls matches_checkout(root, expected) before every describe, search and read worker launch. The identity covers the checkout root, the .git marker and the resolved Git admin directory, so a linked worktree is bound to its real admin dir. New controlled-worker tests cover a deleted grant, a replaced .git directory marker and a replaced linked-worktree admin dir, and assert no worker action runs after the change. The legacy plan without external_knowledge_project now stays local; the updated test asserts no source registration for it.
Unverified: I did not run the test suite, did not use a real CANNBot checkout/index, and did not read CI results. This is a static re-review of the delta only; the earlier review's structural checks are not repeated here.
|
Codex, acting for @Dong1017 (integrator). Merged the shared external-source registry into Integration evidenceChecked the governing task and its native parent, the live PR references, head Independent review by @zengchuang-hw · Independent review by @Bounty-hunter |
|
Posted by Dong-bot, an automated agent acting on behalf of @Dong1017 (always-on-bot, model claude-sonnet-5-5). 这条评论请的是 @jiangkuaixue123 与 @zengchuang-hw,不是发给本账号的 PTAL,本轮不补正式 verdict。 它指向已被取代的草稿 head 按 diff 复核, 未验证:未运行测试、无真实 CANNBot checkout/index、未读 CI。 逐项核对
以上为静态核对与仓库内证据;Dong-bot(授权代表)不是本 PR 的独立批准方。 |
|
Posted by Dong-bot, an automated agent acting on behalf of @Dong1017 (always-on-bot, model claude-sonnet-5-5). 这轮同样不补正式 verdict:该 PTAL 是发给 @zengchuang-hw 的,而他在同一 head 上已批准、PR 也已合并,且 Dong1017 是本 PR 作者、本账号不构成独立票。 已核对的评审状态(head 按 diff 我自己复核, 未验证:我没有运行任何测试、没有真实 CANNBot checkout/index,也读不到 CI,因此触发评论里的 Windows 140 通过 / 5 跳过 / 1 项超时和新跑的 Linux 检查我都无法独立确认;这些只以评论和合并记录的自述为准。 Details
以上为静态核对;Dong-bot(授权代表)不是本 PR 的独立批准方,与 #619 7134657059、#629 7140716118 及本线程 7140968742 的处置一致。 |
Codex, acting for @Dong1017 (implementing agent).
Governing Issue and delivery slice
Refs #627
Anchors touched: A1, A5, A7. Scope was accepted on #627 and in the #500 decision.
Ordinary Find and managed rounds now obtain external sources from the same Apps registry. Find takes an explicit task backend first, uses a single compatible grant default when available, and keeps its internal search independent. Managed rounds freeze the selected project's path and checkout identity. Search and page reads independently check the target checkout's grant. CANNBot retains its native indexed search, fixed-revision pagination and source ranking.
Knowledge authorship declaration
Changed artifacts and evidence
apps/integrations/external_channels.pycomposes the registry for Find and managed rounds. Registry tests cover denied or conflicting default backends, explicit selection and local retrieval. The stale-index fixture verifies unchanged local hits.apps/integrations/cannbot/keeps the existing native adapter for both discovery and exact-page reads. The injected worker verifies revision, card digest and page. Separate tests exercise the original launch checkout after changing directories, replacement of the checkout at the same path, grant checks, and a legacy benchmark without a trusted project.Checks and dependencies
src tests tools, diff whitespace, currentmainmergeability, 100 target/module/channel tests (plus 43 subtests), three targeted managed benchmark cases, and the missing-index fallback with the fixture worker.pytesthits a pre-existingfcntlcollection error. A broad adjacent Windows run had 121 passed, 6 skipped, and 13 CANNBot boundary failures in subprocess timing/timeout tests. At least one timeout also reproduced on the base; the remaining local failures still need comparison. An approved native checkout and its real index are unavailable here.Review follow-up
Remaining work and Issue closure
The draft is ready for independent review of the assembly and authorization contract. @Dong1017 owns acceptance after merge. MindIE's pinned native query/explain and its independent grant and retention policy remain a tracked integration on #500. Confidence in real external retrieval requires an approved CANNBot checkout and native index.