Skip to content

Read pinned internal knowledge decision cards - #633

Merged
Dong1017 merged 7 commits into
mainfrom
codex/knowledge-decision-cards
Nov 24, 2026
Merged

Dong1017 merged 7 commits into
mainfrom
codex/knowledge-decision-cards

Conversation

@Dong1017

@Dong1017 Dong1017 commented Nov 24, 2026 •

Copy link
Copy Markdown
Collaborator

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

  • Add opt-in find --decision-cards and read --layer L1 --revision. Keep the existing source-entry commands and JSON output as the default.
  • Build a bounded decision card from the exact selected Skill, Case finding, Package, or Record revision. Include explicit coverage and links to the matching L2 evidence and L3 resources. Report partial, over-budget, and unavailable-revision states.
  • Preserve legacy Markdown Store entries and select a Case finding by stable finding ID or a revision-local JSON pointer.

Verification

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 mode at SSD × Diagnose preserved the original ascend-graph-mode hit and reopened a 6,109-byte partial L1 at sha256: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 fcntl import. The head-bound declaration below retains the previously declared contributors and includes the integration author.

Current-head verification

The integrated candidate 85eb1bf3 includes the landed coordinate view and MindIE navigator from main d8cd8853. 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 report unavailable with a fixed reason and a repeat-Find action. A second matching Skill in the same response still opens at its original revision. Review finding

The 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, and tools and git diff --check. The full Windows suite stopped during collection at the existing Unix-only fcntl import. 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 and not_run evidence status.

Knowledge authorship declaration

{"schema_version":1,"head_sha":"85eb1bf33e6be1d86b8c7dc2b794ea851bed0a23","human_only":false,"material_ai_authors":[{"tool":"Codex","model_id":"gpt-6.2-astra","effort":"xhigh","role":"author"}]}

Review follow-up

  • Case links now verify the original ranked declaration, including author-supplied finding IDs, and also verify the searchable Case body. Skill links verify the ranked procedure and optional sidecar. Record links verify the ranked canonical Record bytes. These checks compare with the exact versioned Bundle before any L1 link is returned. A changed source is reported as unavailable with a repeat-Find action.
  • Decision cards preserve each populated refusal point, failure mode, and limitation under its own name.
  • On the preceding candidate, 118 focused tests passed (69 Find, 38 Skill catalog, 11 decision cards), 2 skipped. Regressions cover reordered or changed Case findings, a body-only Case edit, embedded and sidecar Skill edits, and an imported Record owner edit after corpus load. Ruff and diff checks passed.
  • Revision ed1a310d also 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

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

Copy link
Copy Markdown
Collaborator Author

Codex, acting for @Dong1017 (implementing agent).

@amy-why-3459 @zengchuang-hw 请分别复核与 #534 未来目录读取的衔接,以及当前草稿的固定版本语义。重点看 L1 与结果中核验的版本绑定、Case finding 重排后的身份,以及默认 Find/Read 保持兼容。已附 134 项回归和无 PyYAML 的 wheel 验证。

Draft head da904044a5c39c026ead13f380372a96a799ba97.

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

应 草稿检视请求,核对 #626:base fd349032c54dd42e57185e86c74fad543fb51617,head da904044a5c39c026ead13f380372a96a799ba97。范围检视。

  1. Find 必须保留选中的 finding 身份。 当前检查只比较用于排序的 Finding,不含作者声明的 ID。同样的可见字段、不同 ID 的 findings 若在两次读取间重排,比较仍会通过,随后用新文件的序号生成另一条 ID 的 L1 链接。比较排序时读到的 case.json 摘要,或保留并比对有序 ID/声明;补上只改变 ID 或等文本重排的回归,不改默认输出。
  2. 决策摘要不应丢掉同时存在的限制。 L1 投影用 or 取拒绝点、失败模式、限制的第一项。已有 Skill 同时声明三者,原值虽留在 declared,决策区却少了内容。请保留各类约束,并验证同时声明时的投影与 complete 状态。

旧版 Store 读取、明确版本不可用与默认 Find 路径已静态核对;未发现默认排序变化。未运行 pytest、wheel 或 CI,未把 #534 后续集成作为此轮门槛。

@amy-why-3459 amy-why-3459 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.

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":

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.

[P2] 对 checkout Skill,rank 和 document.view 使用 load_corpus 时读到的描述,_read_preview 却会重新从磁盘读取。这里直接绑定后一次读取的 revision。可补一条回归:先加载描述含唯一查询词的 Skill,保持 ID、删除该词并改写适用条件,再用原 corpus 执行 find(..., decision_cards=True)。搜索仍按旧描述命中,打开 L1 却会得到新适用条件。建议在生成链接前核对参与排序的 Skill 内容与已验证 bundle;若两者已变化,返回 unavailable 并提示重新 Find,或者用同一份快照完成排序和投影。

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Copy link
Copy Markdown
Collaborator Author

Codex, acting for @Dong1017.

@zengchuang-hw @amy-why-3459 现可复核新版 f34730e82d69401c59b2c0e662c2489fb1367563。L1 链接逐条校验排序实际读取的源与固定版本 Bundle。覆盖 Case 结构及正文、Skill 正文及旧 sidecar、Record JSON。并列的拒绝点、失败模式、限制一起保留。最新 118 项定向通过、2 跳过,Ruff 和 diff 检查通过,新版 CI 已触发。

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.

增量 da904044a5c39c026ead13f380372a96a799ba97 → f34730e82d69401c59b2c0e662c2489fb1367563。复核 上轮意见,两项均已解决:

  • Find 在生成固定版本链接前,对照实际 Bundle 校验参与排序的源。Case 的原始 case.json 包含作者 ID 和声明顺序,正文也参与校验;Skill 和 Record 使用各自的源材料。源不一致时返回 unavailable,不再给出可能指向不同 finding 的链接。
  • L1 的 refusal_or_limits 按原名并列保留拒绝条件、失败模式和适用限制,不再只取第一项。

静态阅读五个增量文件、版本读取和 #626;核对了 ID、正文、Skill sidecar/嵌入声明和 Record 变化的回归测试源码。未独立运行测试或 wheel,未查看 CI。本结论不覆盖 #534 的后续目录集成。

@Dong1017
Dong1017 marked this pull request as ready for review November 24, 2026 14:43

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

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(

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.

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.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

增量 f34730e82d69401c59b2c0e662c2489fb1367563 → ed1a310df9ad2a31b92bd2229dba1f338d1c44d8,上轮检视的两项修复保留。排序和固定链接核对使用同一后端权重规则:显式单一后端下,注册变化若影响此 Skill 的有效权重,L1 提示重搜;不影响权重则可保留原固定链接。默认 Find 不新增校验,包安装的 fallback 仍由固定快照校验注册表。

未发现增量阻塞。已读两个变更文件、注册及包回退路径、十组回归定义和当前提交的作者声明;未运行测试或 wheel,未查看 CI。

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

增量 ed1a310df9ad2a31b92bd2229dba1f338d1c44d8 → 1e72360b8366670530034a985a6c772155f9466d;另一父提交是已落地的 #641 97c82bb5f76964b1212a23ef20b2d12ade3be558。上轮的后端权重检查保留。坐标模式的排序用已验证正文和 sidecar,固定链接对照同一批原始字节;规范化换行只用于排序,不改变摘要。组合回归覆盖内嵌/旧式 sidecar、CRLF、显式后端和按实际 read_args 读回同一 revision 与卡片大小。

已静态核对两个父提交、实际合并差异、回归源码及 #626。未运行测试、未查看 CI,不覆盖尚未合入的 #534/#636 组合路径及旧式后台端推导。

@amy-why-3459 amy-why-3459 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.

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)}

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.

[P2] 新的 L1 输出把原始异常文本写进 decision_card.reason。例如预览已生成后,显式后端查询会再次读 skill-index.json;若这时读取失败,OSError 的文本可能带 checkout 的绝对路径,并进入返回的 JSON。请保留明确且安全的原因(如 source_unavailable、repeat Find)及已有的条目标识,不拼接底层异常文本。可在注册复核处注入带合成路径的 OSError,检查新增 L1 字段不含该路径,正常候选仍可读,普通 Find 输出兼容。

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

增量 1e72360b8366670530034a985a6c772155f9466d → 85eb1bf33e6be1d86b8c7dc2b794ea851bed0a23,base d8cd8853364673d154c4925185718fbef31b96e0。上轮检视,范围 #626/#500。

核对两父提交与 13 文件净差异。独立新增的决策卡错误路径现在返回固定公开原因,不再直接输出原始异常;普通 Find 的既有诊断和读取行为未改。仍从同一已验证 Bundle 固定来源和 revision,回归锁定正文与卡片的 UTF-8 计数。合入 #640、#650 后,组合用例覆盖坐标筛选/展示、使用固定参数重新打开 L1,以及 MindIE 外部结果保持不变。未发现新的批准阻塞。#534 交接仍是独立范围。

执行了静态源码、精确提交、契约和回归断言核对;未运行测试、连接真实 MindIE 索引、查看 CI 或合入。

@amy-why-3459 amy-why-3459 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 @amy-why-3459.

复核 85eb1bf3 对 d8cd8853。上轮指出的 L1 异常文本问题已修:注册表复核或材料预览失败都不会把原始异常写入新增的 decision_card.reason,而是返回固定的公开说明;普通 Find 保留原诊断。已核对两条合成路径回归、固定版本回读及原先的排序源校验。范围不含 #534/#636 的后续集成。

当前提交 Ready 七项成功,包括两套 Linux 全量检查和两套安装包检查;macOS advisory 被取消,不作为通过证据。知识作者政策检查通过。未另跑测试。

@Dong1017
Dong1017 merged commit 38c0c2f into main Nov 24, 2026
10 of 12 checks passed
@Dong1017

Copy link
Copy Markdown
Collaborator Author

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 Dong1017 left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 逐项核对

  1. 版本绑定(_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,不给可能指向另一版本的链接。
  2. 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。
  3. 固定版本语义:_read 改抛 UnavailableRevision(RevisionConflict 子类,既有 except 不受影响),read_decision_card 将其映射为 unavailable_revision 并回显请求的 ref/revision,不回落最新快照;Store 的历史版本仍可读。这条对 #534 目录读取器同样成立。
  4. 默认兼容:find(..., decision_cards=False) 默认可保持原输出;卡片键仅在开关打开时追加,read_args 与 next_read_content_bytes 形状未变;read --layer L1 是独立分支,拒绝 --material/--resource/--omit-resources,而 --finding/--max-bytes 在非 L1 下报错。测试用「弹出 decision_card 后与原结果相等」及 CLI 逐字节比较锁定。
  5. 知识作者政策:diff 触及受保护路径 docs/knowledge-operations.md:9、src/inferrsi/knowledge/skill_catalog.py:12、src/inferrsi/knowledge/knowledge_operations.py:13;正文 knowledge-model-policy 块绑定 head 85eb1bf3,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.

@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:触发评论(7134542501)指向已被取代的 f34730e8,且是发给 @zengchuang-hw / @amy-why-3459 的复核请求;当前 head 85eb1bf3 已有两个当前 head Approve(zengchuang-hw 6044706412、amy-why-3459 6045291269)、无悬挂 CHANGES_REQUESTED,并已于 18:47Z 由 integrator 合入 38c0c2fe。被点名的两位都已在最终 head 上给出结论,这条请求已闭合。

我按当前 diff(base d8cd8853 / head 85eb1bf3,13 文件,diffComplete)重核了三条历史阻塞,均在代码里确认修复,不是转述评审记录:

  1. amy 的 P2(新 L1 字段写原始异常文本)——已修。
  2. david 的「只改注册权重」——已修。
  3. zeng 的 finding 身份与并列约束——已修。

未运行测试、未查看 CI;amy 那条记录里的 Ready run 45455270880 是它的证据,不是我跑的。本账号即作者,重发也只记为 COMMENT,不构成独立票。

Details

1. 异常文本不外泄(src/inferrsi/knowledge/knowledge_find.py,find())
_decision_links 抛出的 ValueError/KeyError/OSError/TypeError 全部收敛为固定串 _DECISION_SOURCE_UNAVAILABLE(Source unavailable; repeat Find);函数内部其余 reason 也都是固定文案(missing qualified reference、Skill location changed after ranking; repeat Find、Skill registration changed after ranking; repeat Find、Source changed after ranking; repeat Find、no_findings)。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 逐字节一致。

2. 注册权重(_decision_links)
仅当 query_backend 唯一且 ref 为 checkout: 时,比对 skill_registrations(...) 的路径与 _backend_weight(registration[1], query_backend) vs _backend_weight(document.backend, query_backend);不一致就 withheld、要求重搜。默认 Find 不带该检查(query_backend 只在 decision_cards=True 时求值)。十组 parametrize 覆盖显式单后端、别名(图模式)、多后端中性、仅对端注册变化、common→absent。

3. finding 身份与并列约束(src/inferrsi/knowledge/decision_cards.py)
finding_locator 在该 revision 内 id 唯一时给 id:<id>,否则给原始 case.json#/findings/<n>;finding() 要求 id 唯一、索引选择器只接受非前导零非负整数且在长度内;可见行序仍走 relevant_finding_indices,指针取未重排的原始序号。ranked_sources 在出链接前比对 case.json 与正文摘要(Skill 为 SKILL.md + 可选 metadata.json,Record 为 record.json),ID 或正文变动即 unavailable。project() 的 refusal_or_limits 按原名并列保留 refusal_point、failure_modes、limitations。

范围仍不含 #534/#636 的后续集成,那两项按各自记录推进。

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

No new formal verdict needed: the fix described here is present at head 85eb1bf3, and this PR is already merged (38c0c2fe) with two current-head Approves and no outstanding CHANGES_REQUESTED.

f34730e8 / ed1a310d are superseded, so I re-checked the claim in the current diff, not the review record:

  • _decision_links compares every digest in document.ranked_sources against the real preview bundle before emitting a link (src/inferrsi/knowledge/knowledge_find.py:898-902). For a checkout Skill that set is SKILL.md plus optional metadata.json, captured in _skill_documents, so a corpus loaded before a declaration-only edit returns Source changed after ranking; repeat Find instead of pinning L1 to the new declaration.
  • tests/test_decision_cards.py::test_stale_checkout_skill_cannot_link_new_declaration covers embedded and sidecar declarations, and asserts that dropping decision_card leaves default Find byte-identical.
  • The two earlier blockers also still hold at this head: the fixed _DECISION_SOURCE_UNAVAILABLE reason (line 870, caught in find()) and the checkout registration-weight check (lines 890-897).

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 6044706412 and amy-why-3459 6045291269. I read the diff and source at head; I did not run pytest or check CI. This confirms 7142301421; nothing in it changes.

Details

Scope unchanged from the merge: #534/#636 catalog integration, #639 compact view, #642/#647 example, husky and L2 section reading stay with their own items. #626 was accepted against its four contract classes at 7146306566 on merged main 38c0c2fe.

@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:85eb1bf3 这次要求的复核已经完成——@amy-why-3459 6045291269、@zengchuang-hw 6044706412 都是对该 head 的 Approve,无悬挂 CHANGES_REQUESTED,PR 已于 18:47Z 合入 38c0c2fe。

我按当前 diff(base d8cd8853 / head 85eb1bf3,13 文件,diffComplete)自查了这条修复,不是转述评审记录:

  • 异常文本已不再进入新增字段:src/inferrsi/knowledge/knowledge_find.py:870 定义 _DECISION_SOURCE_UNAVAILABLE=Source unavailable; repeat Find;find() 在 :1009-1015 捕获 ValueError/KeyError/OSError/TypeError 后只写固定原因。_decision_links 内部其余 reason 也全是固定文案(:882、:888、:897、:902、:918),没有拼接底层异常。
  • 两条失败路径都有回归:tests/test_decision_cards.py:123-140 注入携带 /synthetic-checkout/private/skill-index.json 的 OSError,注册表重读与材料预览各跑一次,断言卡片恰为 {"status":"unavailable","reason":"Source unavailable; repeat Find"},且去掉 decision_card 后与普通 Find 逐字节一致;:142-147 证明同一查询里另一个健康匹配仍能按返回的 revision 打开。
  • 普通 Find 的 unreadable(:1002)仍保留原有异常描述,与 base 行为相同,不属于本轮新增字段。

本账号即作者,重发也只记为 COMMENT,不构成独立票;合并门禁已由上面两个 Approve 满足。未运行 pytest、未查看 CI;amy 记录里的 Ready run 45455270880 是它的证据,不是我跑的。

Details

本条确认我 00:01Z 的记录(7148105047)与 19:34Z 的记录(7142301421):在已合入、且当前 head 已有两票独立 Approve 的 PR 上,针对 fix 报告的复核请求不再生成正式评审。这与 4682203795 / 7134542501 两次触发的处理一致,不替换任何既有决定。

范围不变:#534/#636 的目录集成、#639 的 compact 视图、#642/#647 示例、husky 与 L2 分段读取仍归各自的条目;#626 已在主分支 38c0c2fe 上按四类契约验收(7146306566)。

@Dong1017

Copy link
Copy Markdown
Collaborator Author

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 ed1a310d, and current head 85eb1bf3 already has two current-head Approves (@zengchuang-hw 6044706412, @amy-why-3459 6045291269) with no outstanding CHANGES_REQUESTED. The PR is merged as 38c0c2fe.

Dong-bot (authorized delegate)

Details
  • Re-read src/inferrsi/knowledge/knowledge_find.py at 85eb1bf3. The checkout Skill's registration and effective backend weight are compared with the query backend before a link is emitted (lines 890-897). Ranked source digests are checked against the verified preview bundle (lines 898-902). find() maps source failures to the fixed reason Source unavailable; repeat Find (lines 1009-1015; constant at line 870). So the two ed1a310d findings (registration-only edit, stale ranking source) still hold on this head.
  • The ed1a310d recheck request to @david6666666 is his to post. Dong-bot does not post it for him.
  • Verification limits: I did not run tests or check CI, and I did not read the full diff file in this session, only the source at head. This account is the PR author, so this is not an independent vote, and the merge gate was met by the two Approves above.
  • Earlier records 7142301421, 7148105047 and 7152116821 stand.

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.

4 participants