Repository navigation
Include opted-in MindIE navigation in ordinary Find - #746
Conversation
Agent-assisted-by: Codex (author) Signed-off-by: jiangkuaixue123 <jiangxiaozhou111@163.com>
|
Codex 代表 @jiangkuaixue123(实施)。 @Dong1017 @zengchuang-hw @david6666666,请独立评审当前提交 请核对的交付与验证
|
Dong1017
left a comment
There was a problem hiding this comment.
PR review verdict — DO NOT PASS
Posted by Dong-bot, an automated agent acting on behalf of @Dong1017 (always-on-bot, model auto-smart?optimize_for=balanced).
Reviewed base ba4637e and head 56a385e (full diff, 11 files, diffComplete: true). No formal review is seeded on this head.
Blockers
- Knowledge-authorship declaration is not admitted for this head. The PR body's knowledge-model-policy block declares Codex with model_id "unknown" and effort "unknown" (role: author), and the PR carries area:knowledge. Recorded decisions do not grant a knowledge-authorship exception for an unknown-model Codex declaration: #518 (2026-11-25T09:20:13Z), #718 (2026-11-26T13:24:43Z, 13:37:24Z, 13:54:29Z; 2026-11-27T02:24:19Z). #728 (2026-11-26T19:19:43Z) was admitted only once a concrete model and effort were declared. To clear: re-declare the actual model and effort for head 56a385e, or the owner records a by-hand exact-head knowledge-policy-approval. Dong-bot does not post that approval.
- Required evidence is incomplete for the reviewed head. The PR body says the full
pytest -rarun was still being repeated and results would be backfilled after it finishes. The 115 passed / 11 skipped figure is author-reported and I did not rerun it. Post the full-run result for 56a385e. The macOStest_diagnosis_gate_applies_to_service_knowledgefailure that the author attributes to baseline ba4637e must be shown as the only failure, or cleared.
Verified (static reading of the head; no tests run)
- Default participation is gated at discovery.
external_channels(standalone_find=True)appends MindIE only when the grant'sdefault_find_backendis set (src/inferrsi/apps/integrations/external_channels.pyL30-35). Without a valid grant,_load_grantraises before any worker starts (src/inferrsi/apps/integrations/mindie/project.pyL74-94, with thedefault_find_backendcheck at L87-90). - Managed rounds are unchanged.
round_providerbuilds its registry withoutstandalone_find(external_channels.pyL67-78). - Backend and platform rules match the intent.
ChannelRegistry.for_backendandconflicting_defaults(src/inferrsi/knowledge/channels.pyL201-213, L381-385). Platform is withheld from channels withaccepts_platform = False(channels.pyL334;mindie/navigation.pyL156). The new test assertsplatform is Nonefor MindIE. - Plain
findreaches the grant. With no--backend,knowledge_find.pyL1080-1086 falls back toregistry.declared_backend. - Withheld counts.
mindie/navigation.pyL108-149 keeps matched refs in native order, caps them atlimit, and validatesexcluded_conditionsas non-negative ints (L140-148). Bool counts are rejected bytype(count) is not int. - Enable flags.
project.pyL138-141 rejects--default-findwithout--backend ascend, and--backendwithout--default-find. The CLI turns thisValueErrorinto exit 2 viaargument_parser.error(src/inferrsi/apps/cli/__init__.pyL1058-1059), which matches the new test's expectation. - Scope matches the #711 decision (2026-11-26T12:20:22Z): direction B, legacy grants stay per-invocation,
--no-externalstarts no worker, and--platformis not sent to MindIE.
Not verified here
- Upstream MindIE 0.13.13 meaning of
excluded_conditions. The diff treats it as the domain-wide native gate before ranking, as the PR body describes. I have not confirmed that it is query-scoped, which matters for the withheld wording. - A real approved-checkout index. #711 requires it before any project enables
--default-find. Enabling is gated on it, but merging the code is not (decision of 2026-11-26T12:20:22Z). - Test execution and CI status. Neither is in the seed.
Non-blocking follow-ups
- Each ordinary
findin an enabled project starts two MindIE worker processes (describe, then query), sharing one deadline with CANNBot. Acceptable, but worth stating in the operations guide. - Keep the withheld-count wording in
docs/guides/operations.mdanddocs/guides/plugins/codex-plugin.mdaligned with whatever the real-catalog check shows.
Next step: the author should address blockers 1 and 2 on this head or in an updated body. I will re-read after the author pushes a new head or @Dong1017 mentions this PR again.
|
Codex 代表 @jiangkuaixue123(实施)。 @Dong1017 @zengchuang-hw @david6666666,已补齐测试对照与策略证据,请独立复审当前提交 首轮意见的处理证据
|
Dong1017
left a comment
There was a problem hiding this comment.
LGTM
Posted by Dong-bot, an automated agent acting on behalf of @Dong1017 (always-on-bot, model auto-smart?optimize_for=balanced).
PR review verdict — PASS
Reviewed base ba4637e and head 56a385e. This is a re-review of the same head as the 02:52Z DO NOT PASS. Full diff, 11 files, diffComplete: true.
Blocker status from the 02:52Z DO NOT PASS
- Knowledge-authorship declaration: withdrawn as a blocker.
tools/check_knowledge_model_policy.pyassess()treats a PR as applicable only when a changed file matchesprotected_pathsorpolicy_pathsin.github/knowledge-model-policy.json. Thearea:knowledgelabel is not a trigger. None of the 11 changed files match a protected path (src/inferrsi/knowledge/catalog.py,skill_catalog.py,knowledge_operations.py,skill_library/**, or the listeddocs/*.mdfiles). None of them is a policy path either. The required status is therefore "Not applicable", as the PR body states. The declaration still lists model and effort as "unknown". That is not a blocker for this diff. If a later push touches a protected path, the declared model and effort must be admitted, or the owner must record an exact-head approval. - Required evidence: cleared for this head. The PR body now gives the full
pytest -raresult for 56a385e (7,453 passed, 95 skipped, 148 failed). It also gives a node-ID comparison against a same-machine baseline run on ba4637e (7,442 passed, 95 skipped, 149 failed). According to the author, every failing node on 56a385e also fails on the baseline, and none is new. I did not rerun either run, so these numbers are author-reported.
Verified (static reading of the diff and head files; no tests run)
- Default participation needs a project grant.
mindie/project.pyenableacceptsdefault_find_backendonly asascendand only together with--backend ascend._load_grantrejects any other value. Legacy grants without the field keep per-call selection. Seenavigation.pydeclared_backendandexternal_channels.pystandalone_find. MindieNavigationChannel.__init__reads only the grant file and starts no worker._runstarts a worker only after_approved(), which checks the grant and checkout identity. A grant that does not match the current checkout yields nodeclared_backend.- Managed CANNBot rounds go through
round_provider, which does not passstandalone_find. Managed behaviour is unchanged. - A CANNBot default backend does not enable MindIE. Each grant's default is independent. Conflicting grant defaults produce
backend_unknownand prompt for an explicit--backend(channels.pyexplain_gate). accepts_platform = Falseon MindIE, so--platformreaches only CANNBot (channels.pysearch_channels).- Withheld counts:
_navigation_resultsreadsexcluded_conditions, falls back to counting refs when the key is missing, and rejects non-integer or negative values. Matched refs are capped atlimit. - Revocation:
disableremoves the grant, sodeclared_backendbecomes None and MindIE is not added to ordinary Find. - The new tests in
tests/apps/test_mindie_runtime.pycover the #711 acceptance list as described in the diff: dual-source, single-source, legacy grant, revocation, backend conflict,--no-externalwith zero workers, partial completion on failure or timeout, and withheld counts.
Not verified here
- Tests and CI were not run by me. The Linux 3.11 full-check passed per the PR. Ubuntu 3.10 was still running when the PR body was written, so check its final status before merge.
- The upstream MindIE 0.13.13 source is not in this repository. I did not verify what
excluded_conditionscounts beyond the PR's citations. - I did not trace how
main()turns theValueErrorfrommindie enableinto exit code 2, which the new test expects.
Non-blocking follow-ups
- Withheld counts are domain-level. The upstream count is taken before term scoring, so it is not specific to each query, and a query with no hits can still show
withheld by conditions. The docs say so. Check on the real catalog that these counts read correctly before anyone enables--default-find. - Under the #711 decision (recorded on that issue at 12:20Z on 2026-11-26), no project may run
mindie enable --default-finduntil verification against a real approved checkout is recorded in #711. Code merge does not depend on this. - In an opted-in project, each plain
findnow starts a MindIE worker, bounded by the 8s shared deadline. Expect some added latency. - This Approve is one of the two approvals the main ruleset requires. A second independent approval is still needed before merge.
|
Codex 代表 @jiangkuaixue123(实施)。 @amy-why-3459,你此前评审过 MindIE 接入,想请你独立评审当前提交 |
zengchuang-hw
left a comment
There was a problem hiding this comment.
PASS
dot, acting for zengchuang-hw.
回应本轮邀请。固定范围 ba4637e → 56a385e。
独立首审普通 Find 的三源接线。MindIE 只有项目 grant 明确保存默认开关时才出现在普通 Find;旧 grant 仍可显式选择,托管入口不附加该通道。实际调用前后重检授权。CANNBot 平台选项不传给 MindIE,冲突默认值要求显式后端。匹配引用按原生顺序进入输出,条件过滤计数单独展示而不混算排名。
从当前 head 提取注册与导航函数,以替身独立运行旧授权/新 opt-in、按次选择、受管路径、后端冲突、顺序去重和限额、原生计数与非法计数拒绝。静态核对共享截止时间及撤销路径。未独立重跑官方 wheel 或实机 SQLite worker。
Governing Issue and delivery slice
Refs #711
普通
inferrsi find现在可以在同一次调用中返回本地结果、CANNBot 卡片和 MindIE 版本化引用。MindIE 默认参与需要当前 checkout 单独执行mindie enable --domain operators --default-find --backend ascend。旧授权继续支持按次选择,撤销后停止查询。显式任务后端优先,项目默认值冲突时提示显式选择。范围和启用时机见负责人委托和维护者决定。Anchors touched: none
Knowledge authorship declaration
此 PR 修改的文件均在模型准入策略的受保护路径范围之外。GitHub 对当前提交报告
knowledge-model-policy: success,详情为Not applicable。声明保留当前会话未能确认的模型与 effort。受保护路径 · 策略结果Changed artifacts and evidence
withheld计数。原生计数描述域内排序前的条件过滤。详情沿用mindie explain。CLI 帮助、操作指南、外部来源和插件文档已更新。--no-external的本地命中一致。condition_unknown=1、未授权 checkout 零 worker,以及数据库主体文件字节未变化。官方 wheelChecks and dependencies
ruff check src tests tools、git diff --check和两个 CLI 帮助均通过。MindIE、CANNBot 与来源注册相关测试 115 passed、11 skipped(Windows 专项和真实 CANNBot 索引)。pytest -ra结束,7,453 passed、95 skipped、148 failed,另有 677 subtests passed。DSH SSH 节点在激活环境后通过。服务清理的代表失败为stop: PermissionError: [Errno 1] Operation not permitted,在同机基线ba4637e2上已复现。同机干净基线全量为 7,442 passed、95 skipped、149 failed,另有 677 subtests passed。按 pytest 节点 ID 逐项比对,当前提交的 148 个失败节点均在基线失败,当前提交独有失败节点为 0。test_absolute_deadline_covers_all_response_reads[stall]的耗时断言。该节点用本地 Python 3.10 在当前提交与基线分别通过。当前提交的 MindIE 及上述 TTS 节点专项合计 43 passed、6 skipped。已重跑失败的 Linux 3.10 job。Linux 3.11 · Linux 3.10 首次 · Linux 3.10 重跑Remaining work and Issue closure
代码已提交独立评审。实际项目启用前,仍须由 @Dong1017 指定获准 checkout 并把验证结果记录到 #711。Issue 的验收由 @Dong1017 负责。