Skip to content

Show verified SearchSpace coordinates on Find hits - #650

Merged
Dong1017 merged 4 commits into
mainfrom
codex/show-hit-coordinates-644
Nov 24, 2026
Merged

Dong1017 merged 4 commits into
mainfrom
codex/show-hit-coordinates-644

Conversation

@Dong1017

@Dong1017 Dong1017 commented Nov 24, 2026 •

Copy link
Copy Markdown
Collaborator

Codex, acting for @Dong1017 (implementer).

Governing Issue and delivery slice

Refs #644

Anchors touched: A7. The accepted parent scope and independent author feedback define an optional coordinate view on a Find hit. #641 landed as 97c82bb5. The target is now main. The per-hit display delta is byte-for-byte the originally published patch against the accepted filter.

Changes and verification

  • inferrsi find "graph mode" --skill-root ROOT --show-searchspace-coordinates shows the indexing state and every recorded resource/stage pair for a matched registered Skill. The result identifies the canonical matrix and its SHA-256. Text and JSON support the view. The option uses the verified ranking source and combines with --searchspace-coordinate RESOURCE STAGE.
  • The real matrix returns four pairs for ascend-graph-mode and three for ascend-model-adaptation, including SSD × Configure. Filtering on that pair retains all three in the displayed hit. husky retains the index’s unknown state. Tests compare complete output after removing the optional fields, including rank order, scores, explanations and the existing reads. Record, Case, foreign checkout and external channel results keep their original attribution.
  • The CLI examples were executed against matrix 2d90d24c94babcbb9e3f9da9b7138d7896459af03e39280eb8d97540fdf911a0. Exact-head Ruff, index regeneration and git diff --check passed. The four Find and channel test modules passed all 122 tests. On Windows, full pytest stopped while collecting tests/test_parallel_round.py at its existing Linux fcntl import (2 skipped, 1 collection error).

Integration and acceptance

On the integrated source, graph mode --kinds skill returned all four recorded pairs for ascend-graph-mode. Filtering on SSD × Configure still displayed all three pairs for ascend-model-adaptation, at its original score of 27.54. The generator/source check, Ruff and diff checks passed. Across six focused modules 160 tests passed with the default Windows temporary path. The space-containing checkout fixture exceeded the host path limit during the copy. It passed separately on this head and on 97c82bb5 with a shorter temporary root, covering all 161 cases. Windows full pytest again stopped at collection for the Linux-only fcntl import. Independent review applies to 3ece52971c1292ffe64d9193950723a87c1128a0. @Dong1017 accepts #644 after the integrated feature meets its checks.

Knowledge authorship declaration

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

Agent-assisted-by: Codex / unknown [effort=unknown] (author)
Signed-off-by: Dong1017 <55723162+Dong1017@users.noreply.github.com>
Agent-assisted-by: Codex / unknown [effort=unknown] (author)
Signed-off-by: Dong1017 <55723162+Dong1017@users.noreply.github.com>
Agent-assisted-by: Codex / unknown [effort=unknown] (author)
Signed-off-by: Dong1017 <55723162+Dong1017@users.noreply.github.com>
Agent-assisted-by: Codex / unknown [effort=unknown] (author)
Signed-off-by: Dong1017 <55723162+Dong1017@users.noreply.github.com>
@Dong1017
Dong1017 changed the base branch from codex/find-coordinate-638 to main November 24, 2026 16:34
@Dong1017
Dong1017 marked this pull request as ready for review November 24, 2026 16:34

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

首轮 97c82bb5f76964b1212a23ef20b2d12ade3be558 → 3ece52971c1292ffe64d9193950723a87c1128a0,对应 #644;无上轮检视。仅展示和展示加筛选都复用已验证的 Skill 语料,并在排序及预览后复核来源。过滤只限制命中,不删条目的其他坐标:图模式 4 对,模型适配筛到 SSD×Configure 后仍展示其全部 3 对。未知覆盖保留已验证的空列表,不为 Record、Case、外部或其他来源补造坐标。默认输出、查询分数、顺序和原生外部请求不变。

已静态核对七个差异文件、实际矩阵、CLI 与 JSON 路径和回归定义;未运行测试或查看 CI,不作为合入验收。

@Bounty-hunter Bounty-hunter 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
deepseek-v4.1-flash (agent), acting for @Bounty-hunter.

PR review verdict — PASS
Reviewed base 97c82bb and head 3ece529. The filter half is already on main via #641, which I approved; this review covers the remaining display delta and its integration on that base. No blocking findings.

Evidence and checked scope
  • The view is additive and opt-in. find() only takes corpus._searchspace_index when show_searchspace_coordinates is set, and the CLI obtains it through the same load_searchspace_index_for_skill_root path used by --searchspace-coordinate (src/inferrsi/apps/cli/__init__.py:602-628). The bound source is re-checked after ranking and again after the hit previews are read (knowledge_find.py:895-896, 950-952), so a matrix, registry or Skill-metadata change cannot be displayed under the earlier digest.
  • Annotation is bound to the verified identity tuple. _searchspace_entry returns an entry only for a Skill whose root, registered id and registry-relative path all match the index (knowledge_find.py:853-861; the check is searchspace_index.py:425-430). Unregistered and foreign documents get no searchspace_coordinates key rather than an empty valid-looking list, so they remain distinguishable from a verified unknown or supplementary entry.
  • Coverage states are kept. At this head husky renders SearchSpace [unknown] with no pairs; the JSON also carries state, coordinates and, when the index has one, exclusion_reason (knowledge_find.py:920-929), with the text rendering SearchSpace [state] and SearchSpace exclusion: (src/inferrsi/apps/cli/__init__.py:220-227).
  • Display plus filter keeps every declared pair while the filter only decides which Skills appear. I reproduced the real matrix at this head through the text CLI and the JSON path: ascend-graph-mode shows four pairs unfiltered, and ascend-model-adaptation keeps Accelerator × Configure, SSD × Configure and SSD × Diagnose after filtering on SSD × Configure; its searchspace_source equals the filter source.
  • Default output is unchanged. Plain Find adds no SearchSpace line, and test_display_keeps_plain_find_order_and_scores strips only the two new fields before comparing the whole result, including order and scores. External channels still receive the original query and results (test_find_searchspace_options_leave_external_search_unchanged).
  • Tests at this head on Linux/Python 3.12.3: tests/test_find_searchspace_display.py 6 passed; tests/test_find_searchspace.py, tests/test_knowledge_channels.py, tests/test_searchspace_index.py and tests/test_knowledge_find.py 137 passed; git diff --check clean. CI: full-check (3.11), installed-package (3.10 and 3.11), lint-and-smoke, declarations, pr-references and the advisory host checks green; full-check (3.10) was still running when I submitted.
  • Not verified: the pending full-check (3.10) job, the Windows full suite (the author reports the existing fcntl collection error), and the author's 161-test integrated run. No code or test defect found in the reviewed delta.

@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 3ece52971c1292ffe64d9193950723a87c1128a0 against main 97c82bb5.

Review evidence and limits

I checked that this opt-in view uses the verified checkout’s Skill identity, keeps complete resource/stage pairs and matrix attribution, and does not change default output, ranking or external results. The author’s focused Windows evidence used a shorter temp root for the long-path case; I did not rerun native Windows.

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 d8cd885 into main Nov 24, 2026
14 checks passed
@Dong1017

Copy link
Copy Markdown
Collaborator Author

Codex, acting for @Dong1017 as the authorized integrator.

Squash-merged 3ece529 as d8cd885 after the current Linux 3.10/3.11 full and installed-package checks and knowledge-model-policy passed. Independent approvals: @Bounty-hunter and @david6666666 and @zengchuang-hw. Issue #644 will be accepted separately against its criteria.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants