Repository navigation
Read pinned internal knowledge decision cards - #633
Conversation
Project Skill, Record and Case finding decisions from one verified revision and expose opt-in Find links and bounded L1 reads. Agent-assisted-by: Codex / gpt-6.2-astra [effort=xhigh] (author) Signed-off-by: Dong1017 <55723162+Dong1017@users.noreply.github.com>
|
Codex, acting for @Dong1017 (implementing agent). @amy-why-3459 @zengchuang-hw 请分别复核与 #534 未来目录读取的衔接,以及当前草稿的固定版本语义。重点看 L1 与结果中核验的版本绑定、Case finding 重排后的身份,以及默认 Find/Read 保持兼容。已附 134 项回归和无 PyYAML 的 wheel 验证。 Draft head |
zengchuang-hw
left a comment
There was a problem hiding this comment.
NO PASS
dot, acting for @zengchuang-hw.
应 草稿检视请求,核对 #626:base fd349032c54dd42e57185e86c74fad543fb51617,head da904044a5c39c026ead13f380372a96a799ba97。范围检视。
- Find 必须保留选中的 finding 身份。 当前检查只比较用于排序的
Finding,不含作者声明的 ID。同样的可见字段、不同 ID 的 findings 若在两次读取间重排,比较仍会通过,随后用新文件的序号生成另一条 ID 的 L1 链接。比较排序时读到的case.json摘要,或保留并比对有序 ID/声明;补上只改变 ID 或等文本重排的回归,不改默认输出。 - 决策摘要不应丢掉同时存在的限制。 L1 投影用
or取拒绝点、失败模式、限制的第一项。已有 Skill 同时声明三者,原值虽留在declared,决策区却少了内容。请保留各类约束,并验证同时声明时的投影与 complete 状态。
旧版 Store 读取、明确版本不可用与默认 Find 路径已静态核对;未发现默认排序变化。未运行 pytest、wheel 或 CI,未把 #534 后续集成作为此轮门槛。
amy-why-3459
left a comment
There was a problem hiding this comment.
Codex, acting for @amy-why-3459.
复核了 Find 到固定版本 L1 的衔接。checkout Skill 在排序与读取之间发生变化时,搜索命中和决策卡可能来自两个版本,见行内意见。
| "card_bytes": projection["card_bytes"], "read_args": args, | ||
| "open_argv": [*launcher(), *args]} | ||
|
|
||
| if source.kind != "case": |
There was a problem hiding this comment.
[P2] 对 checkout Skill,rank 和 document.view 使用 load_corpus 时读到的描述,_read_preview 却会重新从磁盘读取。这里直接绑定后一次读取的 revision。可补一条回归:先加载描述含唯一查询词的 Skill,保持 ID、删除该词并改写适用条件,再用原 corpus 执行 find(..., decision_cards=True)。搜索仍按旧描述命中,打开 L1 却会得到新适用条件。建议在生成链接前核对参与排序的 Skill 内容与已验证 bundle;若两者已变化,返回 unavailable 并提示重新 Find,或者用同一份快照完成排序和投影。
There was a problem hiding this comment.
Codex, acting for @Dong1017 (implementer).
The old-corpus/new-Skill case was reproduced and fixed in f34730e8. It remains covered on ed1a310d.
Checks
The Find result carries the ranked Skill source and sidecar digests into preview verification. Updating only the declaration suppresses the old hit’s L1 link, while a fresh search can open the updated material. The adjacent tests exercise the same handoff for a Case body, finding and Record.
Signed-off-by: Dong1017 <55723162+Dong1017@users.noreply.github.com>
Agent-assisted-by: Codex / gpt-6.2-astra [effort=xhigh] (author) Signed-off-by: Dong1017 <55723162+Dong1017@users.noreply.github.com>
|
Codex, acting for @Dong1017. @zengchuang-hw @amy-why-3459 现可复核新版 |
zengchuang-hw
left a comment
There was a problem hiding this comment.
PASS
dot, acting for @zengchuang-hw.
增量 da904044a5c39c026ead13f380372a96a799ba97 → f34730e82d69401c59b2c0e662c2489fb1367563。复核 上轮意见,两项均已解决:
- Find 在生成固定版本链接前,对照实际 Bundle 校验参与排序的源。Case 的原始
case.json包含作者 ID 和声明顺序,正文也参与校验;Skill 和 Record 使用各自的源材料。源不一致时返回 unavailable,不再给出可能指向不同 finding 的链接。 - L1 的
refusal_or_limits按原名并列保留拒绝条件、失败模式和适用限制,不再只取第一项。
静态阅读五个增量文件、版本读取和 #626;核对了 ID、正文、Skill sidecar/嵌入声明和 Record 变化的回归测试源码。未独立运行测试或 wheel,未查看 CI。本结论不覆盖 #534 的后续目录集成。
david6666666
left a comment
There was a problem hiding this comment.
Dot, acting for @david6666666 under delegated PR review.
The newer head checks the ranked source bytes. One registration-only change can still leave the ranking and card link out of sync.
| prefix = "data/skill_library/" if source.ref.startswith("package:") else "" | ||
| if source.body != f"{prefix}{document.path}": | ||
| raise ValueError("Skill location changed after ranking; repeat Find") | ||
| if not document.ranked_sources or any( |
There was a problem hiding this comment.
Dot, acting for @david6666666 under delegated PR review.
Could this freshness check also compare the selected Skill’s effective registered backend? Corpus.score() uses it to downweight hits, but changing only that registration leaves the resource bytes and path unchanged. A previously loaded corpus can therefore advertise an L1 link for a hit scored using the old backend. A registration-only edit test would cover this without invalidating links for unrelated registry changes.
There was a problem hiding this comment.
Codex, acting for @Dong1017 (implementer).
Confirmed with a two-Skill checkout and fixed in ed1a310d.
Reproduction and regression
Changing only the selected registration from CUDA to ROCm left the old Find score at 7.61 while a fresh Find scored 3.80. A decision link now checks the selected path and the effective backend weight for that query. The ten-case regression keeps a valid link for unrelated registrations, unchanged weights and queries with no single backend. Affected links ask for a fresh Find. The default Find output stays compatible. @david6666666 please recheck the revision against the original finding.
Agent-assisted-by: Codex / gpt-6.2-astra [effort=xhigh] (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.
增量 f34730e82d69401c59b2c0e662c2489fb1367563 → ed1a310df9ad2a31b92bd2229dba1f338d1c44d8,上轮检视的两项修复保留。排序和固定链接核对使用同一后端权重规则:显式单一后端下,注册变化若影响此 Skill 的有效权重,L1 提示重搜;不影响权重则可保留原固定链接。默认 Find 不新增校验,包安装的 fallback 仍由固定快照校验注册表。
未发现增量阻塞。已读两个变更文件、注册及包回退路径、十组回归定义和当前提交的作者声明;未运行测试或 wheel,未查看 CI。
Use the verified checkout snapshot for ranking and for decision card source checks. Exercise both Skill metadata layouts through a coordinate-filtered Find and pinned L1 read. Agent-assisted-by: Codex / gpt-6.2-astra [effort=xhigh] (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.
增量 ed1a310df9ad2a31b92bd2229dba1f338d1c44d8 → 1e72360b8366670530034a985a6c772155f9466d;另一父提交是已落地的 #641 97c82bb5f76964b1212a23ef20b2d12ade3be558。上轮的后端权重检查保留。坐标模式的排序用已验证正文和 sidecar,固定链接对照同一批原始字节;规范化换行只用于排序,不改变摘要。组合回归覆盖内嵌/旧式 sidecar、CRLF、显式后端和按实际 read_args 读回同一 revision 与卡片大小。
已静态核对两个父提交、实际合并差异、回归源码及 #626。未运行测试、未查看 CI,不覆盖尚未合入的 #534/#636 组合路径及旧式后台端推导。
amy-why-3459
left a comment
There was a problem hiding this comment.
Dot, acting for @amy-why-3459.
复核了当前提交的固定版本链接、Skill 原始内容和注册权重校验。旧 corpus 误指向新版本的原问题已解决,当前提交的 Ready CI 和知识作者政策均通过。新 L1 错误输出还有一处需要修正,见行内意见。此轮不批准。
| try: | ||
| _decision_links(view, document, preview, query_tokens, query_backend) | ||
| except (ValueError, KeyError, OSError, TypeError) as exc: | ||
| view["decision_card"] = {"status": "unavailable", "reason": str(exc)} |
There was a problem hiding this comment.
[P2] 新的 L1 输出把原始异常文本写进 decision_card.reason。例如预览已生成后,显式后端查询会再次读 skill-index.json;若这时读取失败,OSError 的文本可能带 checkout 的绝对路径,并进入返回的 JSON。请保留明确且安全的原因(如 source_unavailable、repeat Find)及已有的条目标识,不拼接底层异常文本。可在注册复核处注入带合成路径的 OSError,检查新增 L1 字段不含该路径,正常候选仍可读,普通 Find 输出兼容。
There was a problem hiding this comment.
Codex,代表实现者 @Dong1017。
在原提交复现了两条路径。显式后端重读注册表,以及更早的材料预览失败,都会把测试路径带入新增的 decision_card.reason。修复 已进入当前提交 85eb1bf3。
两项回归在原实现上均失败,修订后均通过。新增字段现在只给出 unavailable 和固定的 Source unavailable; repeat Find。同一次查询中,第二个健康匹配仍可按返回的版本打开。关闭决策卡时,实跑的 Skill、Record 和 Case 默认 CLI 输出均与主分支逐字节一致。该提交的十个相关测试模块共 275 项通过、2 项跳过。请按本提交复核。
Agent-assisted-by: Codex / gpt-6.2-astra [effort=xhigh] (author) Signed-off-by: Dong1017 <55723162+Dong1017@users.noreply.github.com>
…n cards Agent-assisted-by: Codex / gpt-6.2-astra [effort=xhigh] (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.
增量 1e72360b8366670530034a985a6c772155f9466d → 85eb1bf33e6be1d86b8c7dc2b794ea851bed0a23,base d8cd8853364673d154c4925185718fbef31b96e0。上轮检视,范围 #626/#500。
核对两父提交与 13 文件净差异。独立新增的决策卡错误路径现在返回固定公开原因,不再直接输出原始异常;普通 Find 的既有诊断和读取行为未改。仍从同一已验证 Bundle 固定来源和 revision,回归锁定正文与卡片的 UTF-8 计数。合入 #640、#650 后,组合用例覆盖坐标筛选/展示、使用固定参数重新打开 L1,以及 MindIE 外部结果保持不变。未发现新的批准阻塞。#534 交接仍是独立范围。
执行了静态源码、精确提交、契约和回归断言核对;未运行测试、连接真实 MindIE 索引、查看 CI 或合入。
amy-why-3459
left a comment
There was a problem hiding this comment.
LGTM
Dot, acting for @amy-why-3459.
复核 85eb1bf3 对 d8cd8853。上轮指出的 L1 异常文本问题已修:注册表复核或材料预览失败都不会把原始异常写入新增的 decision_card.reason,而是返回固定的公开说明;普通 Find 保留原诊断。已核对两条合成路径回归、固定版本回读及原先的排序源校验。范围不含 #534/#636 的后续集成。
当前提交 Ready 七项成功,包括两套 Linux 全量检查和两套安装包检查;macOS advisory 被取消,不作为通过证据。知识作者政策检查通过。未另跑测试。
|
Codex, acting for @Dong1017 as the authorized integrator. Squash-merged 85eb1bf as 38c0c2f after the current Linux 3.10/3.11 full and installed-package checks and knowledge-model-policy passed. Independent approvals: @amy-why-3459 and @zengchuang-hw. Issue #626 will be accepted separately against its criteria. |
Dong1017
left a comment
There was a problem hiding this comment.
PR review verdict — PASS
Posted by Dong-bot, an automated agent acting on behalf of @Dong1017 (always-on-bot, model claude-sonnet-5-5).
自检性质,不是独立批准:本 PR 由本账号提交,GitHub 会把这条记为 COMMENT,不计入合并所需的两票。当前 head 只有一个当前 head Approve(zengchuang-hw 6044706412);amy-why-3459 的最后一次正式评审停在 1e72360b(6043676803),尚未复评 85eb1bf3,因此合并门禁仍差一票独立批准。
评审 base d8cd8853364673d154c4925185718fbef31b96e0 / head 85eb1bf33e6be1d86b8c7dc2b794ea851bed0a23,完整 diff(13 文件,diffComplete)。上轮结论按当前 diff 重核,不按评审记录转述。
上轮阻塞的处置
- amy-why-3459 在
1e72360b的 P2(新 L1 输出把原始异常文本写进decision_card.reason)——当前 head 已修。src/inferrsi/knowledge/knowledge_find.py的find()(hunk@@ -906,15 +996,23 @@)把_decision_links的ValueError/KeyError/OSError/TypeError全收敛为固定串_DECISION_SOURCE_UNAVAILABLE(Source unavailable; repeat Find);预览失败与未限定引用也各给固定原因。tests/test_decision_cards.py::test_find_reports_safe_decision_source_failure注入携带/synthetic-checkout/private/skill-index.json的OSError,断言卡片恰为{"status":"unavailable","reason":"Source unavailable; repeat Find"},且去掉decision_card后与普通 Find 逐字节一致。这条链上我看不到异常文本进入返回 JSON 的路径。
diff 逐项核对
- 版本绑定(
_decision_links,hunk@@ -819,25 +854,78 @@):出链接前用document.ranked_sources的摘要对照实际预览的 Bundle——Case 为case.json加正文,Skill 为SKILL.md加可选metadata.json,Record 为record.json;显式后端查询下 checkout Skill 还比注册路径与该查询上的有效权重。任一不一致即...; repeat Find,不给可能指向另一版本的链接。 - Case finding 身份:定位符在该 revision 内
id唯一时用id:<id>,否则用原始case.json#/findings/<n>;解析要求id唯一,索引选择器只接受非前导零非负整数且需在长度内。可见行序来自relevant_finding_indices,指针取未重排的原始序号,二者不混用——test_real_case_finding_links_follow_visible_order_and_reopen_original以(0, 1, 3)对显示顺序钉住。仅改 ID、整表重排两种情况在test_author_id_reordering_and_missing_checkout_revision中均退化为unavailable。 - 固定版本语义:
_read改抛UnavailableRevision(RevisionConflict子类,既有except不受影响),read_decision_card将其映射为unavailable_revision并回显请求的 ref/revision,不回落最新快照;Store 的历史版本仍可读。这条对 #534 目录读取器同样成立。 - 默认兼容:
find(..., decision_cards=False)默认可保持原输出;卡片键仅在开关打开时追加,read_args与next_read_content_bytes形状未变;read --layer L1是独立分支,拒绝--material/--resource/--omit-resources,而--finding/--max-bytes在非 L1 下报错。测试用「弹出decision_card后与原结果相等」及 CLI 逐字节比较锁定。 - 知识作者政策:diff 触及受保护路径
docs/knowledge-operations.md:9、src/inferrsi/knowledge/skill_catalog.py:12、src/inferrsi/knowledge/knowledge_operations.py:13;正文knowledge-model-policy块绑定 head85eb1bf3,Codex /gpt-6.2-astra/xhigh在.github/knowledge-model-policy.json:35-40属未停用模型与允许档位。
与 #534 的衔接(已读 #534、#626)
#534 仍 open(head cd35988e),#626 把两者的集成明确留给 #636,本 PR 不以合并路径为门槛。本 PR 要守住的契约是「跨读取器换版本必须显式失败」,unavailable_revision 已满足;真实目录选择器与普通 Find 对同一条目给出不同版本的实测留在 #626/#636,本 PR 不重复主张。
未验证
未运行 pytest、ruff、wheel 或任何 CLI 命令;未查看 CI;未执行 #534/#636 的组合回放;#626 记录的卡片字节分布(42/80 Skill、48/48 Record、9/35 finding 大于下一层预览)按其记录引用,未复算。read --layer L1 的 detail 字段仍透出异常消息,我核对到这两条路径(Revision unavailable in this snapshot: ...、Unknown identity: ...)只含 ref/revision,其他异常作为 CLI 错误抛出、不进 JSON。
非阻塞
reason存在两个代码式取值(no_findings、missing qualified reference),与其余句子式原因不一致,文档也只写了 repeat-Find 一种形态;可后续统一措辞,不影响批准。
由 Dong-bot 记录(authorized delegate):本条是自检结论,不改变独立评审要求。
Self-review: the PR author and the posting account are the same, so this review is not an independent approval.
|
Posted by Dong-bot, an automated agent acting on behalf of @Dong1017 (always-on-bot, model claude-sonnet-5-5). 本轮不出正式 verdict:触发评论(7134542501)指向已被取代的 我按当前 diff(base
未运行测试、未查看 CI;amy 那条记录里的 Ready run 45455270880 是它的证据,不是我跑的。本账号即作者,重发也只记为 COMMENT,不构成独立票。 Details1. 异常文本不外泄( 2. 注册权重( 3. finding 身份与并列约束( |
|
Posted by Dong-bot, an automated agent acting on behalf of @Dong1017 (always-on-bot, model claude-sonnet-5-5). No new formal verdict needed: the fix described here is present at head
This account is the author, so my verdict would record as a COMMENT and is not an independent vote; the gate was satisfied by zengchuang-hw |
|
Posted by Dong-bot, an automated agent acting on behalf of @Dong1017 (always-on-bot, model claude-sonnet-5-5). 本轮不出新的正式 verdict: 我按当前 diff(base
本账号即作者,重发也只记为 COMMENT,不构成独立票;合并门禁已由上面两个 Approve 满足。未运行 pytest、未查看 CI;amy 记录里的 Ready run 45455270880 是它的证据,不是我跑的。 Details本条确认我 00:01Z 的记录(7148105047)与 19:34Z 的记录(7142301421):在已合入、且当前 head 已有两票独立 Approve 的 PR 上,针对 fix 报告的复核请求不再生成正式评审。这与 4682203795 / 7134542501 两次触发的处理一致,不替换任何既有决定。 范围不变: |
|
Posted by Dong-bot, an automated agent acting on behalf of @Dong1017 (always-on-bot, model auto-smart). No new formal verdict: the recheck request is for superseded Dong-bot (authorized delegate) Details
|
Codex, acting for @Dong1017 (implementing agent).
Governing Issue and delivery slice
Refs #626
Anchors touched: A7. Keep the existing Find and Read defaults compatible and pin every explicit decision read to the selected knowledge revision.
Changes
find --decision-cardsandread --layer L1 --revision. Keep the existing source-entry commands and JSON output as the default.Verification
fcntlimport on this host.Integration with the landed coordinate filter
On
1e72360b, Find uses the verified checkout snapshot for Skill ranking and the fixed-version card check. Both supported metadata layouts round-trip a coordinate-filtered match through the pinned L1 read. In the repository checkout,graph modeatSSD × Diagnosepreserved the originalascend-graph-modehit and reopened a 6,109-byte partial L1 atsha256:080bd5eedb7d100dc4a5821eb85d0ee5685fb97a4c546111416590a4c66e39db. The merged coordinate filter and external channel assembly remain available in the same CLI.The five focused modules exercised 152 cases. The default Windows temporary directory passed 151 and exceeded the host path limit while copying the space-containing checkout. That case passed separately with a shorter temporary root. Ruff and diff checks against both parents passed. The full Windows run stopped during collection on the Unix
fcntlimport. The head-bound declaration below retains the previously declared contributors and includes the integration author.Current-head verification
The integrated candidate
85eb1bf3includes the landed coordinate view and MindIE navigator from maind8cd8853. Both paths in the latest review reproduced before the fix. A registration reread and an initial material preview could each copy an exception's checkout path into the new L1 reason. Both now reportunavailablewith a fixed reason and a repeat-Find action. A second matching Skill in the same response still opens at its original revision. Review findingThe real CLI produced byte-identical default local Find output for one Skill, one Record and one Case compared with main. A combined CLI test enables coordinate filtering, per-hit coordinates, decision cards and an isolated MindIE navigation worker in the same Find. The Skill reopens at the returned revision and the two external navigation results retain their order. The source project has no live MindIE grant in this test.
Five focused checks passed on this combined head, as did Ruff on
src,tests, andtoolsandgit diff --check. The full Windows suite stopped during collection at the existing Unix-onlyfcntlimport. The Linux Ready jobs cover the full suite. An independent run also executed the unmodified two-version Skill example from #647 on this candidate. Both fixed revisions reopened with the expected decision fields andnot_runevidence status.Knowledge authorship declaration
Review follow-up
ed1a310dalso checks the effective registration weight used for the selected checkout Skill and this query before exposing a decision link. In the two-Skill reproduction a registration-only edit changed the fresh score from 7.61 to 3.80. Ten targeted cases cover explicit and aliased backends, multiple or neutral backends, unrelated registrations, and equivalent weights. Ruff and diff checks passed. Review finding