Skip to content

Include opted-in MindIE navigation in ordinary Find - #746

Merged
jiangkuaixue123 merged 1 commit into
mainfrom
codex/mindie-default-find
Nov 27, 2026
Merged

jiangkuaixue123 merged 1 commit into
mainfrom
codex/mindie-default-find

Conversation

@jiangkuaixue123

@jiangkuaixue123 jiangkuaixue123 commented Nov 27, 2026 •

Copy link
Copy Markdown
Collaborator

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

{
  "schema_version": 1,
  "head_sha": "56a385e5525d4553e3aceec0d04f70ecbdb267fd",
  "human_only": false,
  "material_ai_authors": [
    {"tool": "Codex", "model_id": "unknown", "effort": "unknown", "role": "author"}
  ]
}

此 PR 修改的文件均在模型准入策略的受保护路径范围之外。GitHub 对当前提交报告 knowledge-model-policy: success,详情为 Not applicable。声明保留当前会话未能确认的模型与 effort。受保护路径 · 策略结果

Changed artifacts and evidence

  • 普通 Find 复用 Apps 的来源注册、MindIE 只读导航及通道的公共截止时间。CANNBot 的平台选项只发给 CANNBot。直接指定 MindIE 仍只查询所选外部来源。托管 CANNBot 路径继续使用原有 provider。
  • MindIE 输出保持原生顺序和结果限额,并在文本与 JSON 中区分匹配数量及按原因的 withheld 计数。原生计数描述域内排序前的条件过滤。详情沿用 mindie explain。CLI 帮助、操作指南、外部来源和插件文档已更新。
  • CLI 夹具覆盖双源、两种单源、旧授权、撤销、显式后端覆盖、后端冲突、离线、异常、超时和托管路径。双源结果与 --no-external 的本地命中一致。
  • 用官方 MindIE 0.13.13 wheel 及自建 SQLite 目录通过已安装的 CLI 验证了 2 条按原生顺序返回的版本化引用、condition_unknown=1、未授权 checkout 零 worker,以及数据库主体文件字节未变化。官方 wheel

Checks and dependencies

  • macOS arm64 / Python 3.12,ruff check src tests tools、git diff --check 和两个 CLI 帮助均通过。MindIE、CANNBot 与来源注册相关测试 115 passed、11 skipped(Windows 专项和真实 CANNBot 索引)。
  • 已激活虚拟环境的 macOS 全量 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。
  • GitHub draft lint/smoke、installed-package(3.10、3.11)、dashboard-browser、PR references 以及 macOS 和 Windows advisory host checks 已通过。Linux full-check(3.11)通过,7,606 passed、89 skipped、1 deselected。Linux 3.10 首次运行 7,605 passed、89 skipped、1 deselected、1 failed,失败节点为 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 负责。

Agent-assisted-by: Codex (author)
Signed-off-by: jiangkuaixue123 <[email protected]>
@jiangkuaixue123 jiangkuaixue123 added the area:apps Apps line: CLI, Python entrypoints, host inspection, workflows, views, and adapters label Nov 27, 2026
@jiangkuaixue123 jiangkuaixue123 added the area:knowledge Knowledge line: packs, skill library, knowledge admission label Nov 27, 2026
@jiangkuaixue123

Copy link
Copy Markdown
Collaborator Author

Codex 代表 @jiangkuaixue123(实施)。

@Dong1017 @zengchuang-hw @david6666666,请独立评审当前提交 56a385e5525d4553e3aceec0d04f70ecbdb267fd,并在 GitHub 提交正式 review。

请核对的交付与验证
  • 独立项目授权、旧授权与撤销、显式后端及冲突处理,确认普通 Find 才会默认加入 MindIE。
  • 双源并行和共享截止时间、CANNBot 平台参数隔离、原生版本化引用及条件过滤计数。
  • 相关回归 115 通过、11 跳过。官方 MindIE 0.13.13 wheel 使用自建 SQLite 目录通过 CLI 实测。真实获准项目索引的状态已在 PR 正文单列。

@Dong1017 Dong1017 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

  1. 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.
  2. Required evidence is incomplete for the reviewed head. The PR body says the full pytest -ra run 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 macOS test_diagnosis_gate_applies_to_service_knowledge failure 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's default_find_backend is set (src/inferrsi/apps/integrations/external_channels.py L30-35). Without a valid grant, _load_grant raises before any worker starts (src/inferrsi/apps/integrations/mindie/project.py L74-94, with the default_find_backend check at L87-90).
  • Managed rounds are unchanged. round_provider builds its registry without standalone_find (external_channels.py L67-78).
  • Backend and platform rules match the intent. ChannelRegistry.for_backend and conflicting_defaults (src/inferrsi/knowledge/channels.py L201-213, L381-385). Platform is withheld from channels with accepts_platform = False (channels.py L334; mindie/navigation.py L156). The new test asserts platform is None for MindIE.
  • Plain find reaches the grant. With no --backend, knowledge_find.py L1080-1086 falls back to registry.declared_backend.
  • Withheld counts. mindie/navigation.py L108-149 keeps matched refs in native order, caps them at limit, and validates excluded_conditions as non-negative ints (L140-148). Bool counts are rejected by type(count) is not int.
  • Enable flags. project.py L138-141 rejects --default-find without --backend ascend, and --backend without --default-find. The CLI turns this ValueError into exit 2 via argument_parser.error (src/inferrsi/apps/cli/__init__.py L1058-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-external starts no worker, and --platform is 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 find in 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.md and docs/guides/plugins/codex-plugin.md aligned 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.


@jiangkuaixue123

Copy link
Copy Markdown
Collaborator Author

Codex 代表 @jiangkuaixue123(实施)。

@Dong1017 @zengchuang-hw @david6666666,已补齐测试对照与策略证据,请独立复审当前提交 56a385e5525d4553e3aceec0d04f70ecbdb267fd 并提交正式 GitHub review。首轮意见

首轮意见的处理证据
  1. 模型准入适用性按受保护路径计算,area 标签记录改动职责。这 11 个文件均在受保护范围外,当前提交的必需状态为 success / Not applicable。PR 声明保留本会话未能确认的实际设置。策略范围 · 当前提交的检查结果
  2. 同一台 macOS、Python 3.12 环境运行两套完整 pytest。当前提交为 7,453 通过、95 跳过、148 失败。基线 ba4637e2 为 7,442 通过、95 跳过、149 失败。按 pytest 节点 ID 比对,当前提交的 148 个失败节点全部在基线复现,当前提交独有失败为 0。Ubuntu 3.11 全量已通过,Ubuntu 3.10 尚在执行。Linux 3.11 结果
  3. MindIE v0.13.13 在词项评分前累积排除计数,并在导航响应中作为 excluded_conditions 返回。因此文档将它定义为域内条件门槛的计数。真实获准目录仍待单独验证。原生过滤 · 导航输出

@Dong1017 Dong1017 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

  1. Knowledge-authorship declaration: withdrawn as a blocker. tools/check_knowledge_model_policy.py assess() treats a PR as applicable only when a changed file matches protected_paths or policy_paths in .github/knowledge-model-policy.json. The area:knowledge label 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 listed docs/*.md files). 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.
  2. Required evidence: cleared for this head. The PR body now gives the full pytest -ra result 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.py enable accepts default_find_backend only as ascend and only together with --backend ascend. _load_grant rejects any other value. Legacy grants without the field keep per-call selection. See navigation.py declared_backend and external_channels.py standalone_find.
  • MindieNavigationChannel.__init__ reads only the grant file and starts no worker. _run starts a worker only after _approved(), which checks the grant and checkout identity. A grant that does not match the current checkout yields no declared_backend.
  • Managed CANNBot rounds go through round_provider, which does not pass standalone_find. Managed behaviour is unchanged.
  • A CANNBot default backend does not enable MindIE. Each grant's default is independent. Conflicting grant defaults produce backend_unknown and prompt for an explicit --backend (channels.py explain_gate).
  • accepts_platform = False on MindIE, so --platform reaches only CANNBot (channels.py search_channels).
  • Withheld counts: _navigation_results reads excluded_conditions, falls back to counting refs when the key is missing, and rejects non-integer or negative values. Matched refs are capped at limit.
  • Revocation: disable removes the grant, so declared_backend becomes None and MindIE is not added to ordinary Find.
  • The new tests in tests/apps/test_mindie_runtime.py cover the #711 acceptance list as described in the diff: dual-source, single-source, legacy grant, revocation, backend conflict, --no-external with 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_conditions counts beyond the PR's citations.
  • I did not trace how main() turns the ValueError from mindie enable into 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-find until verification against a real approved checkout is recorded in #711. Code merge does not depend on this.
  • In an opted-in project, each plain find now 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.

@jiangkuaixue123

Copy link
Copy Markdown
Collaborator Author

Codex 代表 @jiangkuaixue123(实施)。

@amy-why-3459,你此前评审过 MindIE 接入,想请你独立评审当前提交 56a385e5525d4553e3aceec0d04f70ecbdb267fd,并提交正式 GitHub review。

评审范围与证据

#711 为普通 Find 增加项目级 MindIE opt-in,保留与 CANNBot 分开的授权、原生版本化引用和条件过滤计数。复审补充了 Linux 3.11 全量通过、macOS 基线失败节点比对和原生计数来源。完整验证状态在 PR 正文。实施决策 · 当前提交验证

@zengchuang-hw zengchuang-hw left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PASS
dot, acting for zengchuang-hw.

回应本轮邀请。固定范围 ba4637e → 56a385e。

独立首审普通 Find 的三源接线。MindIE 只有项目 grant 明确保存默认开关时才出现在普通 Find;旧 grant 仍可显式选择,托管入口不附加该通道。实际调用前后重检授权。CANNBot 平台选项不传给 MindIE,冲突默认值要求显式后端。匹配引用按原生顺序进入输出,条件过滤计数单独展示而不混算排名。

从当前 head 提取注册与导航函数,以替身独立运行旧授权/新 opt-in、按次选择、受管路径、后端冲突、顺序去重和限额、原生计数与非法计数拒绝。静态核对共享截止时间及撤销路径。未独立重跑官方 wheel 或实机 SQLite worker。

Copy link
Copy Markdown
Contributor

dot, acting for zengchuang-hw.

回应最初的独立检视邀请:当前同一提交的默认授权、撤销和来源边界已在正式检视答复,不重复批准。

@jiangkuaixue123
jiangkuaixue123 merged commit 477446f into main Nov 27, 2026
20 of 23 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:apps Apps line: CLI, Python entrypoints, host inspection, workflows, views, and adapters area:knowledge Knowledge line: packs, skill library, knowledge admission

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants