Repository navigation
Show verified SearchSpace coordinates on Find hits - #650
Conversation
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>
zengchuang-hw
left a comment
There was a problem hiding this comment.
PASS
dot, acting for @zengchuang-hw.
首轮 97c82bb5f76964b1212a23ef20b2d12ade3be558 → 3ece52971c1292ffe64d9193950723a87c1128a0,对应 #644;无上轮检视。仅展示和展示加筛选都复用已验证的 Skill 语料,并在排序及预览后复核来源。过滤只限制命中,不删条目的其他坐标:图模式 4 对,模型适配筛到 SSD×Configure 后仍展示其全部 3 对。未知覆盖保留已验证的空列表,不为 Record、Case、外部或其他来源补造坐标。默认输出、查询分数、顺序和原生外部请求不变。
已静态核对七个差异文件、实际矩阵、CLI 与 JSON 路径和回归定义;未运行测试或查看 CI,不作为合入验收。
Bounty-hunter
left a comment
There was a problem hiding this comment.
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 takescorpus._searchspace_indexwhenshow_searchspace_coordinatesis set, and the CLI obtains it through the sameload_searchspace_index_for_skill_rootpath 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_entryreturns 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 issearchspace_index.py:425-430). Unregistered and foreign documents get nosearchspace_coordinateskey rather than an empty valid-looking list, so they remain distinguishable from a verifiedunknownorsupplementaryentry. - Coverage states are kept. At this head
huskyrendersSearchSpace [unknown]with no pairs; the JSON also carriesstate,coordinatesand, when the index has one,exclusion_reason(knowledge_find.py:920-929), with the text renderingSearchSpace [state]andSearchSpace 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-modeshows four pairs unfiltered, andascend-model-adaptationkeepsAccelerator × Configure,SSD × ConfigureandSSD × Diagnoseafter filtering onSSD × Configure; itssearchspace_sourceequals the filter source. - Default output is unchanged. Plain Find adds no SearchSpace line, and
test_display_keeps_plain_find_order_and_scoresstrips 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.py6 passed;tests/test_find_searchspace.py,tests/test_knowledge_channels.py,tests/test_searchspace_index.pyandtests/test_knowledge_find.py137 passed;git diff --checkclean. CI:full-check (3.11),installed-package(3.10 and 3.11),lint-and-smoke,declarations,pr-referencesand 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 existingfcntlcollection error), and the author's 161-test integrated run. No code or test defect found in the reviewed delta.
david6666666
left a comment
There was a problem hiding this comment.
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.
|
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. |
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-coordinatesshows 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.ascend-graph-modeand three forascend-model-adaptation, includingSSD × Configure. Filtering on that pair retains all three in the displayed hit.huskyretains the index’sunknownstate. 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.2d90d24c94babcbb9e3f9da9b7138d7896459af03e39280eb8d97540fdf911a0. Exact-head Ruff, index regeneration andgit diff --checkpassed. The four Find and channel test modules passed all 122 tests. On Windows, full pytest stopped while collectingtests/test_parallel_round.pyat its existing Linuxfcntlimport (2 skipped, 1 collection error).Integration and acceptance
On the integrated source,
graph mode --kinds skillreturned all four recorded pairs forascend-graph-mode. Filtering onSSD × Configurestill displayed all three pairs forascend-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 on97c82bb5with a shorter temporary root, covering all 161 cases. Windows full pytest again stopped at collection for the Linux-onlyfcntlimport. Independent review applies to3ece52971c1292ffe64d9193950723a87c1128a0. @Dong1017 accepts #644 after the integrated feature meets its checks.Knowledge authorship declaration