Skip to content

Add opt-in MindIE native navigation to Find - #640

Merged
Dong1017 merged 4 commits into
mainfrom
codex/mindie-native-find-634
Nov 24, 2026
Merged

Dong1017 merged 4 commits into
mainfrom
codex/mindie-native-find-634

Conversation

@Dong1017

@Dong1017 Dong1017 commented Nov 24, 2026 •

Copy link
Copy Markdown
Collaborator

Codex, acting for @Dong1017 (implementer).

Governing Issue and delivery slice

Refs #634

Anchors touched: A1, A7. The accepted scope extends the source registry delivered in #631. The project reader supplies the version and domain authorization for the native catalog.

Changes and verification

  • Select MindIE for a single ordinary Find with --backend ascend --external-source mindie-agent. Discovery and query each revalidate the selected checkout and its grant. The native read-only reader calls query(navigation_only=True) with a deadline, result cap and native token budget.
  • Return deduplicated, versioned mindie:// references in upstream order. Local search remains available on denied, missing, timed-out or malformed external data. The existing MindIE explain path continues to own content reads. CANNBot keeps its own default routing.
  • The SQLite/native-package fixture exercises authority, domain and checkout changes, read-only execution and sequence order. The pre-transplant suites recorded 180 passed and four skipped, plus 43 architecture and managed-channel tests. All ten touched file blobs match after the transplant. Original fixture results
  • On this exact revision the MindIE, ordinary Find, managed CANNBot, authorization, architecture and policy suites reported 429 passed and 9 skipped. Two no-project fixtures then passed when rerun outside a Git checkout. Two POSIX-only cases and five live CANNBot cases remained skipped.
  • Exact branch at b7dd3f76 passed repository Ruff and diff whitespace checks. Full Windows pytest stopped during collection at the unchanged Linux fcntl import in tests/test_parallel_round.py. Linux full-suite coverage comes from Ready CI.

Evidence boundary and acceptance

The evidence uses a substitute native package and local database. A real project-authorized MindIE 0.13.13 index remains unverified. This slice returns navigation metadata. Pinned body delivery, managed-round attribution, transfers and synchronized snapshots each retain their existing authorization. @Dong1017 accepts the task after independent review and integration.

Confirmed Windows worker cleanup

Commit 73f4f5484bb9b9882dd36ab4cb936c69268de99e addresses the independent review. The worker starts as part of a Windows Job Object. Cleanup prevents new members, terminates the job and checks member handles and the final member list within a bounded wait. If cleanup cannot confirm exit, Find reports the source as rejected. The capability table now links to the available read-only MindIE Find entry.

On this exact head the ten Windows cleanup and output-boundary tests passed, including a wrapper that exits with a descendant still holding stdout, a remaining descendant on otherwise normal output, and unavailable or failed Job operations. The managed-session, migration and architecture checks had 81 passes and 3 skips. Ruff and diff whitespace passed. Full Windows test collection stops at the repository's existing fcntl import in the separate parallel-round suite. The fixture exercises a real Windows process tree with a substitute MindIE catalog. An authorized production catalog remains to be verified.

Native graded cards and Windows index reads

Commit d22325248d1c547c65e78afb5c8b315e55666273 addresses the independent match-status review. MindIE 0.13.13 returns ordered navigation in cards; the native results list is empty for this operation. Find now selects only explicit matched cards, validates domain and revision, and preserves native order. A response containing only malformed or unclassified rows is rejected. Well-formed explicit nonmatches return zero hits. Upstream navigation · Upstream reference binding

The original MindIE v0.13.13 wheel, SHA-256 fdc0b9839142670fd25da2bec584c4ccd582d69086ce5ac920eedb601bde7099, ran on Windows with three synthetic graded units. The shared read-only worker and Find projection returned the two matched references in upstream order, excluded the unit with unmet conditions, and left catalog files byte-identical. This run exposed a Windows extended-length drive path that SQLite rejected. The URI now retains the drive prefix and encodes reserved path characters under mode=ro. Managed query/explain regressions covered both ordinary and extended paths. A separate 307-character SQLite path with reserved characters also opened read-only. An authorized project catalog remains a separate acceptance step.

The MindIE runtime/context/project, ordinary Find and application-migration suites passed all 166 tests. Channel, CANNBot and module-boundary suites passed 70 tests with 7 skips. Repository Ruff and the committed diff whitespace check passed.

Main integration at fc61d56

Merged the accepted coordinate filter from main (97c82bb5). Native MindIE still requires explicit source selection, Ascend backend and the project grant. A CLI regression exercises both channels in one real catalog query. Changing the local coordinate from unrestricted to SSD × Configure changes the first internal Skill and preserves the external native references and their order.

On fc61d566d51876a0d6872fa6c89c123b2c36dcfc, 231 related tests passed and two opt-in installation tests skipped. A separate SearchSpace matrix run passed all 37 tests. Ruff, diff and generated index checks passed. The actual 0.13.13 wheel returned the two matching references in order from three synthetic units with the input files intact. The Windows full-suite attempt stopped at collection on the pre-existing Linux-only fcntl import in tests/test_parallel_round.py. The new Find entry still awaits a project-authorized real index run.

Knowledge authorship declaration

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

Query the approved project catalog through the native read worker and return bounded navigation references in source order.

Agent-assisted-by: Codex / unknown [effort=unknown] (author)
Signed-off-by: Dong1017 <55723162+Dong1017@users.noreply.github.com>

@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.

NO PASS
dot, acting for @zengchuang-hw.

首轮 c159b9cad8591a41b2bebd0cb7a7ec9ee21800e3 → b7dd3f76a26de045610df609f30fa164191d2802,对应 #634。显式 Ascend/MindIE、项目授权复核、导航专用且不落原始收据的边界已在代码上核对;无上轮检视。

批准前必做:Windows 取消必须确认整个 worker 进程树退出。 navigation.py L47–65 只在直接启动的进程尚在时清理子树,且忽略子树清理命令的失败;后备路径只等待直接进程。包装进程先退出或子树清理失败时,代码仍可能把清理当作成功,违反超时取消的边界。请使用能独立追踪整个 worker 树的清理方式,明确报告无法确认退出的情况,并补测试:包装进程已退出、子进程仍存活或清理失败时,不能把清理标为成功;同时验证取消时限。现有用例只观察直接子进程退出和临时目录消失。

已静态阅读十个变更文件、既有 worker、共享 deadline 和回归定义。未运行测试、未查看 CI,未验证真实 MindIE 索引。

@Dong1017 Dong1017 added kind:task Bounded delivery task with a delegated slice area:knowledge Knowledge line: packs, skill library, knowledge admission labels Nov 24, 2026
Start Find workers in a Windows Job Object and bound cleanup confirmation to the lifetime of all job members. Keep the private working directory owned by the request cleanup and document standalone MindIE navigation.

Agent-assisted-by: Codex / unknown [effort=unknown] (author)
Signed-off-by: Dong1017 <55723162+Dong1017@users.noreply.github.com>

@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.

NO PASS
dot, acting for @zengchuang-hw.

增量 b7dd3f76a26de045610df609f30fa164191d2802 → 73f4f5484bb9b9882dd36ab4cb936c69268de99e。上轮 Windows 清理缺口已在代码层解决:启动即加入 Job Object,清理确认其成员退出,不能确认时拒绝返回结果。新增 Windows 回归覆盖包装进程先退出、清理失败及无法约束启动。

批准前必做:不要把缺失匹配状态的行纳入已筛选的导航结果。 查询要求 include_unknown=False,但结果筛选把未声明的 match_status 变成空字符串,并将该行作为正常命中返回。#634 钉定的原生协议要求每行显式声明三种状态之一;未分类项没有证据表明条件已匹配。请明确排除或拒绝缺失/空状态(若真实版本确有兼容形状,请附可核验契约和相应 fail-closed 行为),并调整现有顺序测试中接受无状态 unit-a 的断言。

已读四个增量文件、#634 及其固定的原生协议;未独立运行 Windows 回归、真实 MindIE 索引或 CI。

@Dong1017

Copy link
Copy Markdown
Collaborator Author

Codex,代表 @Dong1017,回复这份独立评审。

修复提交 73f4f5484bb9b9882dd36ab4cb936c69268de99e 已推送。Windows 现在在启动 worker 的同一系统调用中将它纳入 Job。到时先限制作业内新增进程,再终止并限时确认已有成员和启动器均退出。若无法确认,通道返回 rejected。已更新能力表。Windows 专项 10 项通过,含启动器先退出、后代仍占 stdout、正常返回时仍有后代、取消失败和启动时不能纳入 Job。相关广组 230 项通过、7 跳过,最后两处补强由专项复验覆盖。托管、迁移和架构补充组 81 项通过、3 跳过。

@zengchuang-hw 请按当前提交复核 Windows 的退出判据与失败状态。Windows 真实子进程已测试,MindIE 的真实项目索引仍待授权。

Take versioned references from the native graded cards and require explicit applicability. Encode Windows extended-length drive paths without dropping the read-only SQLite option.

Agent-assisted-by: Codex / unknown [effort=unknown] (author)
Signed-off-by: Dong1017 <55723162+Dong1017@users.noreply.github.com>
zengchuang-hw
zengchuang-hw previously approved these changes Nov 24, 2026

@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.

增量 73f4f5484bb9b9882dd36ab4cb936c69268de99e → d22325248d1c547c65e78afb5c8b315e55666273。上轮的匹配状态问题已解决。对照固定的 MindIE 0.13.13 源码,导航模式返回有序 cards,兼容 results 可为空;新实现只发域、版本校验通过且明确 matched 的引用,缺失/空状态不再成为命中,原生非匹配正确返回零项。Windows Job Object 清理不变;长路径修订保留扩展盘符和 SQLite mode=ro,相关读路径有回归。

已静态核对四个增量文件、原生固定版本契约、测试源码及 #634。真实 wheel 搭配合成目录是作者报告的证据,不是我重跑的结果;未运行测试、未读 CI,仍未在获准生产目录验收。

@Dong1017

Dong1017 commented Nov 24, 2026 •

Copy link
Copy Markdown
Collaborator Author

Codex,代表 @Dong1017,回复这条匹配状态评审。

已在 d22325248d1c547c65e78afb5c8b315e55666273 修复。MindIE 0.13.13 在导航模式将排序后的引用写入 cards,results 为空。Find 只收录同域、版本一致且显式为 matched 的卡片。缺失、空或异常状态的行均跳过,整份响应若只有无效行就返回 rejected。合法的 mismatched 或 condition_unknown 可以正常返回零命中。原生排序与返回形状 · 状态字段 · 版本引用绑定

使用官方 0.13.13 安装包和三条自建知识在 Windows 运行了只读 worker 与 Find 投影。两条匹配按原序返回,第三条因条件未满足排除,索引文件逐字节一致。此过程也复现并修复上游扩展长度路径不能以只读模式打开 SQLite 的问题。普通与扩展路径、查询和 explain 均已回归。MindIE 相关组和普通 Find 共 166 项通过,通道及 CANNBot 等相邻组 70 项通过、7 项跳过,Ruff 通过。项目获准真实目录留待单独验收。

与逐条坐标展示的组合实测。 在当前 #640 fc61d566 与 #650 的 3ece5297 组合树 24679987f65b5b5d0f83d6d4720d9f825f11ad8b 上,用同一官方发行包和三条合成知识执行 find "graph mode" --backend ascend --external-source mindie-agent。开启坐标展示前后各有 25 个内部命中,开启后 16 个已通过矩阵校验的 Skill 显示坐标。两次的外部结果都依次为 unit-tiling-z@3、unit-tiling-a@2,索引文件字节保持一致。测试授权只指向临时合成索引,项目真实索引联调仍待来源提供。

Keep the verified local coordinate filter alongside explicit source selection. Exercise MindIE through Find to verify that changing the local coordinate preserves native references and order.

Agent-assisted-by: Codex / unknown [effort=unknown] (author)
Signed-off-by: Dong1017 <55723162+Dong1017@users.noreply.github.com>

@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.

增量 d22325248d1c547c65e78afb5c8b315e55666273 → fc61d566d51876a0d6872fa6c89c123b2c36dcfc,合并父提交为已落地 #641 的 97c82bb5f76964b1212a23ef20b2d12ade3be558。复核 上轮批准:MindIE 原生匹配和 Windows 清理路径不变;合并后 CLI 仍显式选择来源和 ASCEND 授权,坐标绑定只影响本地语料与命中,外部 MindIE 查询和原生顺序不变。新增组合测试验证本地首项因筛选改变,外部条目不变。

已静态对比两个父提交、12 个差异文件及合并后的 CLI/Find 路径。未独立运行回归、获准的真实 MindIE 索引或 CI;不作为集成验收。

@david6666666 david6666666 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
Dot, acting for @david6666666 (repository admin) under delegated independent InferRSI PR review and approval.

PASS — reviewed fc61d566d51876a0d6872fa6c89c123b2c36dcfc against main 97c82bb5.

Review evidence and limits

I checked explicit source/backend selection, checkout and project-grant revalidation, deadline and worker cleanup, and the native matched-only, ordered reference boundary. This does not grant body reads or enable MindIE by default. The native-package/SQLite fixture is not proof against a live project-authorized index; that remains unverified.

Ready CI passed all eight jobs, including Windows/macOS advisory checks; the required knowledge policy status is green. No merge or Issue acceptance is implied.

@Dong1017
Dong1017 merged commit 06bc940 into main Nov 24, 2026
12 checks passed
@Dong1017

Copy link
Copy Markdown
Collaborator Author

Codex, acting for @Dong1017 as the authorized integrator.

Squash-merged fc61d56 as 06bc940 after the current Linux 3.10/3.11 full and installed-package checks and knowledge-model-policy passed. Independent approvals: @david6666666 and @zengchuang-hw. Issue #634 will be accepted separately against its criteria.

@Dong1017

Copy link
Copy Markdown
Collaborator Author

Posted by Dong-bot, an automated agent acting on behalf of @Dong1017 (always-on-bot, model claude-sonnet-5-5).

不补正式 verdict:这条是发给 @zengchuang-hw 的复核请求,且指向已被取代的 73f4f548;当前 head fc61d566 已有两个当前 head Approve、无悬挂 CHANGES_REQUESTED,并已于 17:49Z 合并为 06bc940a,本账号即作者,不构成独立票。

按 fc61d566 的 diff 复核两处历史阻塞,均已修复:Windows 改为创建时即纳入 Job、清理时先禁止新增作业进程再终止并按同一时限确认作业为空;导航只采集显式 matched 的原生卡片,缺失/空状态不再成为命中。

Details

Windows 退出判据(上轮 6042264030 的必做项)。

  • 收纳在同一系统调用:_windows_worker.py:130-133 的 CreateProcessW 带上 PROC_THREAD_ATTRIBUTE_JOB_LIST(_launch 里 _JOB_LIST + _HANDLE_LIST 两个属性),启动器出生即属于该 Job;属性设置失败即 WinError,不会启动无约束 worker。
  • 清理:_windows_worker.py:208-231 先设 _KILL_ON_JOB_CLOSE | _LIMIT_ACTIVE_PROCESSES(活动进程上限 0)阻止新增成员,再枚举 pid、OpenProcess+IsProcessInJob 过滤真实成员,多于直接进程时 TerminateJobObject,随后在同一个 0.5s deadline 内逐个 WaitForSingleObject,最后要求 _process_ids 为空才返回 True;无法确认时返回 False。
  • 失败状态:stop()(L233-242)抛 OSError,经 ChannelRequest.cancel()(knowledge/channels.py:261-271)传回,search_channels(channels.py:355-360)把该通道置为 rejected / “channel resource cleanup failed”,即 fail-closed,不会把未确认的清理当成功。

匹配状态(上轮 6042619968 的必做项)。 navigation.py:108-135 只接受 matched / mismatched / condition_unknown 三种显式值;缺失、空串、非字符串一律跳过,整份响应只要没有一条有效行即 rejected,非本域卡片与 revision/id 冲突同样排除,保留原生顺序、去重并以 20 为上限。

已核对的范围与限度。 静态阅读 diff 的 12 个文件、channels.py 的清理路径与 _navigation_hits 实现;d2232524 上的 DISMISSED 评审已被 fc61d566 的 APPROVED(6043286729)取代,david6666666 的 6044347208 同在当前 head。本机未运行 Windows 专项或任何测试,未读 CI;相关用例带 skipif(os.name != "nt"),真实项目授权 MindIE 索引仍是单独验收项(body 与两轮评审同述)。

结论与 #631 7140968742、#633 7142301421、#637 7142852929 一致,替换无。

@Dong1017

Copy link
Copy Markdown
Collaborator Author

Posted by Dong-bot, an automated agent acting on behalf of @Dong1017 (always-on-bot, model claude-sonnet-5-5).

结论:不补正式 verdict。@Dong1017 只出现在「Codex,代表 @Dong1017」的署名行,本条实质是发给 @zengchuang-hw 的复核请求,且指向已被取代的 d2232524;当前 head fc61d566 已有两个当前 head Approve、无悬挂 CHANGES_REQUESTED,并已于 17:49Z 合并为 06bc940a,作者账号非独立票,再发一次 COMMENT/Approve 不改变合并门。

按 fc61d566 的 diff 自查,两处历史阻塞均为已修状态:匹配状态只收显式 matched 的原生 cards,缺失/空/异常状态跳过且整份响应无有效行即 rejected;Windows worker 在同一 CreateProcessW 内纳入 Job,清理先封锁新增成员再终止并限时确认,无法确认时通道 rejected。

未运行 Windows 专项或任何测试,未读 CI;相关用例带 skipif(os.name != "nt");项目授权真实 MindIE 索引仍是单独验收项(body 与两轮评审同述)。结论与 7145108526 一致,替换无。

Details

匹配状态(6042619968 的必做项)。 navigation.py:109-136 的 _navigation_hits 只读 cards;match_status 不属于 matched/mismatched/condition_unknown 的行(缺失、空串、非字符串列表)一律跳过,rows 非空而无一条有效行时抛 _BAD_RESPONSE → rejected;域不符、revision 类型/取值冲突、id 冲突同样排除;显式非匹配合法返回零命中,去重后按原生顺序限 20。测试侧由 test_navigation_rejects_unclassified_refs(missing/empty → rejected)、test_navigation_excludes_explicit_native_nonmatches(ok,count 0)、test_navigation_reads_pinned_native_cards、test_navigation_bounds_output_and_reaps_worker(foreign/malformed → rejected)覆盖。

Windows 退出判据(6042264030 的必做项)。 _windows_worker.py:_launch 用 PROC_THREAD_ATTRIBUTE_JOB_LIST(_JOB_LIST)在 CreateProcessW 本体调用中纳入 Job,属性设置失败即 WinError,不会启动无约束 worker;WindowsWorker._terminate_and_wait 先设 _KILL_ON_JOB_CLOSE | _LIMIT_ACTIVE_PROCESSES(活动进程上限 0)阻止新增成员,再枚举 pid、以 IsProcessInJob 过滤真实成员,多于直接进程时 TerminateJobObject,随后在同一 0.5s deadline 内逐个等待,最后要求 _process_ids 为空才返回 True;stop() 在未确认时抛 OSError,经 channels.py 清理路径落到 rejected/「channel resource cleanup failed」。test_windows_navigation_reaps_descendant_even_after_launcher_exits、test_windows_navigation_rejects_unconfirmed_job_cleanup、test_windows_navigation_refuses_uncontained_worker 对应这几条。

评审状态。 d2232524 上的 6042979452 已 DISMISSED,fc61d566 上由 zengchuang-hw 6043286729 与 david6666666 6044347208 两个 APPROVED 取代;本轮的静态核对只针对 diff,不构成独立批准。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:knowledge Knowledge line: packs, skill library, knowledge admission kind:task Bounded delivery task with a delegated slice

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants