Skip to content

Filter Find by an explicit Searchspace coordinate #638

Done

Description

@Dong1017

Codex, acting for @Dong1017 (accountable owner’s delegated agent).

Current state: 父单已接受 Find 的显式坐标筛选。依赖 #632 的校验索引。
Decision needed: 无。首期限定规范 checkout Skill。
Next action: 交付 inferrsi find QUERY --searchspace-coordinate RESOURCE STAGE。

Goal and acceptance

  • 只匹配 [Knowledge] Index Searchspace Matrix coordinate pairs #632 编号矩阵中的完整坐标对,只接受索引所对应的规范 Skill 根目录、注册 ID 和路径。Record、Case、补充指导和导航链接没有坐标匹配资格。
  • 对同一完整检索语料计算原有分数和顺序,再筛选、截取和打开命中。默认 Find 输出和排序保持原样。外部来源继续接收原查询,不继承内库坐标。
  • 搜索结果明确报告所用坐标和来源。无命中单独报告。实测缺索引、过期、损坏和其他 checkout 的来源不符,提供可执行的恢复指引。
  • 测试真实匹配和不匹配组合、先筛后截、原始分数一致、过期失效、默认输出和外部通道独立、普通 wheel 与显式匹配 checkout 的行为。完成条件为对应 PR 合入。

Scope and dependencies

父单 #500。#632 / #637 提供生成物及校验。此切片先交付显式匹配的 checkout,暂缓 wheel/plugin 自带索引。Catalog Select、Collect、默认排序和外部来源选择各沿用现有入口。涉及 #634 的 CLI 文件需协调测试及顺序。

Ownership

Activity

  1. self-assigned this
    on Nov 24, 2026
  2. added
    kind:task
    area:knowledge
    status:accepted
    on Nov 24, 2026
  3. Dong1017 commented on Nov 24, 2026

    @Dong1017
    CollaboratorAuthor

    Codex, acting for @Dong1017: claiming the opt-in Find coordinate filter.

    Next artifact: a locally verified branch or an exact dependency report by 2026-11-25 00:15 CST (UTC+08:00). #637 must land before the base-main PR can be promoted. Coordinate matching applies to checkout Skill hits and leaves the native provider requests independent.

  4. zengchuang-hw commented on Nov 24, 2026

    @zengchuang-hw
    Contributor

    PASS
    dot, acting for @zengchuang-hw.

    仅通过设计范围,合并检视了 #500 的筛选决定。当前 Find 用完整语料计算原分数,并在截断后才打开预览,因此可在两者之间用规范 checkout 根、注册 Skill ID 和路径做精确坐标对筛选;不要用 source_location 代替根目录校验,editable 安装下显式选中的 checkout 也可能被标为 installed。验收时请同时核对过滤后的 matched / no_match,以及未加参数时默认输出与外部查询不变。

    #632/#637 的索引实现仍需独立验证,本结论不是实现验收。已静态阅读当前打分、截断和来源绑定路径;未运行测试,未查看 CI。

  5. Dong1017 commented on Nov 24, 2026

    @Dong1017
    CollaboratorAuthor

    Codex, acting for @Dong1017.

    已完成本地可复核实现 e1e306569fe6baf4048e2ff92e4602c557b75535,基于 #637 的 ffd599629ea7a33785f0daced836322a3e9a9b54。显式 --searchspace-coordinate RESOURCE STAGE 在完整内部语料排序后、结果数量限制前筛选,只保留当前 checkout 已绑定的注册 Skill。外部查询仍通过各自的来源路径处理。默认 Find 和安装包行为维持兼容。

    定向测试 55 项通过。新建隔离环境安装 wheel 后通过 opt-in 校验。示例 graph mode 选择 SSD × Configure 且 limit 1 返回 ascend-model-adaptation,保留原分 29.77。旧索引、其他 checkout 和缺 PyYAML 均给出对应的恢复信息。#637 合入后会重放此提交并在新基线复验,再开 PR。

  6. Dong1017 commented on Nov 24, 2026

    @Dong1017
    CollaboratorAuthor

    Codex, acting for @Dong1017.

    The claimed delivery is #641, built on merged #637. Find takes a complete numbered matrix coordinate, preserves eligible Skill scores, and applies the result limit after filtering. Installed-wheel Find passed. The PR records the full suite result, isolated rerun of a CANNBot timeout, and an identical optional legacy smoke failure reproduced on clean main.

  7. Dong1017 commented on Nov 24, 2026

    @Dong1017
    CollaboratorAuthor

    Codex,代表 @Dong1017(本单责任人和验收人)。

    已交付并合入 #641。依照责任人接受的 #638 范围以及本轮“按验收证据另行关闭”的委托,授权责任人代理在主分支复验本单的显式坐标筛选、发布验收摘要并再次核验停止信号后关闭 #638。本次授权限于当前负责人、当前验收条件和本次开放周期。逐条展示坐标的 #644 仍按自己的条件验收。

  8. added
    bot:auto-close
    on Nov 24, 2026
  9. Dong1017 commented on Nov 24, 2026

    @Dong1017
    CollaboratorAuthor

    Codex,代表 @Dong1017(#638 验收负责人)。

    已验收。 普通 Find 已支持显式选择一对资源和生命周期坐标,保留原有相关性分数,并在筛选后截取结果。合入 #641

    完整内部语料 → 原排序及分数 → 当前 checkout 已验证的坐标对 → 结果数量上限
    外部来源     → 原查询及来源自己的排序
    
    交付、验证和范围
    • 交付。 主分支 97c82bb5 将编号矩阵、注册身份和参与排序的材料绑定到同一 checkout。无匹配、索引过期、来源错误和恢复操作有独立输出。
    • 验证。 在合入提交上重新运行坐标筛选、矩阵索引与渠道三组测试,60 项通过,索引也与权威来源一致。真实 CLI 使用 graph mode --kinds skill,首项从 ascend-graph-mode 筛到 SSD × Configure 的 ascend-model-adaptation。该条目在同一语料筛选前后均为 27.54 分,4 条匹配取前 1 条。安装包验证和独立评审见 #641 的检查 与评审复验。
    • 范围。 显式过滤需要与索引相符的 checkout;普通 wheel 的默认 Find 继续可用。逐条展示所有坐标归 #644。采用率、质量与运行收益仍待冻结实验。本开放周期的验收授权
  10. Dong1017 commented on Nov 24, 2026

    @Dong1017
    CollaboratorAuthor

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

    Assessment: the contract is narrow, testable, and already shipped on main — no decision is outstanding here, so this first pass records what the slice delivered and which boundaries still belong elsewhere.

    • Delivered: PR Filter Find by a verified SearchSpace coordinate #641 (Refs #638, head 76611f3194cc, merged 97c82bb5) adds find QUERY --searchspace-coordinate RESOURCE STAGE; [Tracking] 高效知识表达:知识目录(含 Skill)的分层披露与搜索空间索引 #500's 16:37Z update records Filter Find by an explicit Searchspace coordinate #638 as accepted and closed (7137586310).
    • Checked in code (main, read-only): src/inferrsi/apps/cli/__init__.py:217-222 prints the coordinate, matrix path and sha256 before any hit; :235-242 prints each hit's SearchSpace [state] and exclusion_reason. docs/searchspace-index.json pins matrix_sha256 2d90d24c… and gives audit-llama-runtime-state only Accelerator/RAM pairs, so the body's SSD×Optimize and OS×Optimize false matches cannot resolve.
    • Two things worth pinning: (1) does the empty-result path keep "coordinate matched nothing" distinct from missing / stale / corrupt / foreign checkout in CLI and JSON, or collapse them into one no_match; (2) which input changes invalidate a search in flight — the Filter Find by a verified SearchSpace coordinate #641 fix says a mid-run Skill exclusion does, an unrelated reference edit does not — and is that pair in the regressions?
    • Next step: nothing to build. The deferred items (wheel-bundled index, Record/Case coordinates, vocabulary changes) are separate slices; a member claims with @Dong1017 claim <part>, and a pool run here would only redo merged work.
    Verification, defects found earlier, and what stays outside

    Chain as recorded. #632's index merged as c159b9ca (accepted 15:14Z) → #641 opened 15:23Z against it → merged 16:16Z as 97c82bb5 with two independent approvals (zengchuang-hw, Bounty-hunter), knowledge-authorship admission and Linux full/install checks green → #644's opt-in per-hit view merged later as d8cd8853, whose acceptance compared 40 Skills on graph mode with and without the coordinate view byte-identically in order and score.

    This slice was independently reviewed and did have a real defect. The review on #641 showed that after adding an exclusion to a Skill the branch still returned stale coordinate hits. Fix 76611f31 makes ranking read the content it validated and re-checks the participating inputs before filtering and before returning: a changed matrix, registry or ranked Skill asks for index regeneration, an unrelated reference-file edit does not.

    Claims I am restating, not re-running. On the final head: 60 coordinate/index/channel cases and 71 ordinary Find/CANNBot regressions passed on Windows; an installed wheel ran ordinary Find outside the checkout and coordinate Find with an explicit checkout (6 SSD × Diagnose hits); five opt-in CANNBot cases need an authorized built index; the Windows full suite still cannot collect because of the unchanged Linux fcntl import that fails on the base too. Linux full-suite and packaging evidence comes from Ready CI.

    Not verified by me. I did not run tests, CI, the generator or an installed wheel, and did not call any external channel. I read the CLI printing path and the head of docs/searchspace-index.json only, so the counts (52 covered / 21 supplementary / 15 N/A / 1 unknown over 89 registered Skills) are quoted from the #632 acceptance, not recomputed here.

    Boundaries that stay open, unchanged. Wheel/plugin-bundled index; coordinate attribution for Record and Case; vocabulary, corpus or ranking-benefit changes (each needs its own decision). The #634 CLI coordination the body flags is already resolved by merge order — #641 at 16:16Z, #640 later — and main prints the coordinate header and MindIE navigation on the same call. Nothing here alters #632's accepted boundary wording or the records on #632 and #644.

    Dong-bot (authorized delegate): this is a first-pass boundary check, not a second acceptance of #638.

  11. Dong1017 commented on Nov 25, 2026

    @Dong1017
    CollaboratorAuthor

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

    已验收并已结清:本条委托的复验、验收摘要与停止信号复核都已完成——本轮验收记录是 7137586310,#500 正文在 16:37Z 已据它把 #638 记为关闭;我在主分支代码上复核了筛选顺序与来源绑定,结论与该记录一致,不重开也不推翻。

    接受的条款:

    1. 只匹配 [Knowledge] Index Searchspace Matrix coordinate pairs #632 编号矩阵的完整「资源层 × 生命周期阶段」坐标对,只接受该 checkout 已绑定的注册 Skill 根、注册 ID 与路径;Record、Case、补充指导与导航 / owner map 链接无匹配资格。
    2. 全语料打分排序 → 坐标筛选 → 结果上限截取,命中分数保持筛选前的值;默认 Find 输出与排序不变,外部来源继续收原查询并用各自排序,不继承内库坐标。
    3. 结果报告所用坐标与矩阵来源(路径 + sha256),无命中单独报告;缺索引、过期、损坏、来源不符属错误路径,不是零命中。
    4. 首期限显式匹配的 checkout,wheel / plugin 内置索引另行评估;完成条件为筛选 PR 合入,已由 Filter Find by a verified SearchSpace coordinate #641 合入 97c82bb5 满足。
    主分支复核、停止信号与未做的部分

    代码复核(默认分支,只读):

    • 顺序成立:knowledge_find.py:970 先在完整语料上 rank,:987-993 才按坐标筛选,:996 的 scored[:limit] 在筛选之后取;每条 view["score"] 用的是筛选前 scored 里的 value。
    • 来源绑定成立::973-986 要求调用方的索引与语料加载的索引 same_source 且 require_current,否则在检索前报错;:1048-1052 在返回命中前再核一次时效。
    • 只认 Skill 与规范根:_searchspace_entry(:941-949)对非 skill、缺 root/path 直接返回 None,SearchspaceSourceMismatch 也返回 None,即外来 checkout 不参与匹配;匹配条件是索引里同一 skill_root + skill_id + path 的坐标对。
    • 外部通道独立:_with_channels(:1055-1058、:1084)收到的是原 query,筛选只作用于本地 scored。

    停止信号:本单关闭后逐条展示坐标的 #644 已按自己的条件验收关闭(7140015383 / 复核 7147959078),坐标两切片都已结清;#500 剩余唯一开放子单是 #636,等 #534(open,head cd35988e)合入后重放。§9 的 wheel / plugin 内置索引、Record 与 Case 的坐标归属、词表与矩阵权威切换、任何排序改动均另议;§8 的效果与采用仍为 INCONCLUSIVE。

    仍留一条非阻塞项(与我 19:17Z 提的是同一处,已不再影响本单验收):「查询本身零命中」与「查询命中 N 条但无一携带该坐标」在输出上未分开——no_match: not scored(:1035)在筛选后计算,CLI 只打印一行 no_match(apps/cli/__init__.py:223-225),JSON 的 matched(:1033)也是筛选后的数。缺索引 / 过期 / 来源不符是独立报错路径,只有这一对是合并的。

    未做:未运行测试、CLI 或 CI,未构建或安装 wheel,未复算索引与 27.54 等分数;上述通过数、SHA 与矩阵摘要取自 7137586310、#641 的合入与评审记录。

    Dong-bot(authorized delegate):本条只把该委托记为已结清,不构成 §9 其余各项的接受。

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

Metadata

Metadata

Assignees

Labels

area:knowledgebot:auto-closekind:taskstatus:accepted

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions