Skip to content

Migrate four released Cases to pinned public finding selections - #728

Open
Dong1017 wants to merge 4 commits into
codex/500-atomic-candidatefrom
codex/500-migrate-casebooks
Open

Dong1017 wants to merge 4 commits into
codex/500-atomic-candidatefrom
codex/500-migrate-casebooks

Conversation

@Dong1017

@Dong1017 Dong1017 commented Nov 26, 2026 •

Copy link
Copy Markdown
Collaborator

Governing Issue and delivery slice

Refs #714

Anchors touched: A2, A7. 本 PR 迁移 v0.3.4 的四个公开 checkout:case.* 引用。它复用 #725 已合入的 JSON Pointer 与原文字节区间校验,目标为共享候选 codex/500-atomic-candidate,基线为 01667062。#500 实施授权 · 领域认领

Knowledge authorship declaration

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

Codex 代表 @Dong1017 编写迁移、组合、构建校验和回放。8 个第一方 JSON/Markdown 原文件来自 v0.3.4 的 e2f3be102c66c358803ed2186ed67bf627ebcbdf。这次迁移沿用原有结论、验证状态、适用条件、来源与署名。旧 wheel 的 SHA-256 为 9a1015f2c1e1347f46d1ca899d2cb8e32c8279a75e88669b9de1a8c8bda5b6c9。旧发行包 · 原生读取基线

Changed artifacts and evidence

验收点 当前结果
原引用、原文和资源 四个 Case 通过四份 composition 路由到 57 个原子。原有 12 个资源名映射到 8 个文件,实际安装目录返回的资源、入口与必选清单均与旧版一致。L0 提供身份和标签,L2 交付资源信息和指南,L3 交付完整 JSON 与 Markdown。组合
22 条 finding 在公开 read_selection 传入旧引用、候选 revision 和原 finding selector。每次收到 4 组共同判断字段和 1 条选中 finding。逐段核对旧 wheel 字节,用返回值重建判断卡,只归一化 revision,22/22 与旧 CLI 回执逐字段一致,包括原有缺项与状态。固定输入
预算、授权和错误路由 22/22 在恰够预算时整组交付、少 1 B 时整组拒绝。分别拒绝 composition、必选共用字段、所选 finding 的读取权限,均返回零正文。旧 revision、缺失或越界的 selector 有独立反例。构建会拒绝截断原文、缺别名、误绑指南、互换选择器、夹带其他 finding。回归测试
同代联合安装 与 #723 的 d53d4d62 和 #725 的 d2a9f0d1 合成独立验证树 1c33aec0f72fc1d5783d9d9c7ce1ed4f4233042b。合成时保留两个领域各用的一条 import。直接从校验过的 wheel 取得 53 个源文件,两次构建得到同一个安装代 sha256:cc5b7992c11b76ed58997e2b6e2cf22e1fa43a2a4d809018542cbe5d59d6e9e7。该代共 611 个条目,7 个任务和路由器的 8 份宿主入口逐字节一致,30 张 Record 及 22 张 Case 判断卡与旧版一致。对账报告 SHA-256 为 675255b37a2b0ffde1b9213087bd1fc51ccd26a1d5013d70172ad9928031c526。

Checks and dependencies

  • 当前提交通过 265 项相关回归、仓库范围的 Ruff 和差异空白检查。本提交与原审阅提交 30d2d027 的 Git 文件树均为 54f3066a321f763bccf7f2146370d332f43389fc。额外的 Windows 全量测试从原审阅提交的独立检出运行。整套 GitHub CI 和四位 reviewer 的独立评审按新提交跟踪。三领域安装对照
  • 此次 22 次直接读取的旧 CLI 标准输出共 99,883 B,候选正文共 37,033 B,候选完整回执共 115,742 B。task: 验证整库候选、一次切换并完成 Day-3 退役 #715 仍需用同一对外接口实测发现、导航、必要重读和交付的累计字节。累计字节验收
  • 当前分支只用于候选评审。生产安装沿用现行入口,整库切换、宿主安装、发布中断及真实旧收据回滚由 task: 验证整库候选、一次切换并完成 Day-3 退役 #715 验收。

Remaining work and Issue closure

#714 继续跟踪两个目录级 Casebook 入口、两个各带 716 项资源的发行包入口和其余领域。@Dong1017 按已确认的范围验收。请 @david6666666、@amy-why-3459、@Bounty-hunter、@zengchuang-hw 独立评审 e8a14a55ff58ed8afae0c3c4c6f2a23b0a5ad0fe 的资源别名、选择器隔离以及缺少一项必选内容时的整组拒绝。旧版范围

@Dong1017 Dong1017 added the area:knowledge Knowledge line: packs, skill library, knowledge admission label Nov 26, 2026
Agent-assisted-by: Codex / gpt-6.2-astra [effort=max] (implementation)
Signed-off-by: Dong1017 <[email protected]>
Agent-assisted-by: Codex / gpt-6.2-astra [effort=max] (implementation)
Signed-off-by: Dong1017 <[email protected]>
Agent-assisted-by: Codex / gpt-6.2-astra [effort=max] (implementation)
Signed-off-by: Dong1017 <[email protected]>
Agent-assisted-by: Codex / gpt-6.2-astra [effort=max] (implementation)
Signed-off-by: Dong1017 <[email protected]>
@Dong1017
Dong1017 force-pushed the codex/500-migrate-casebooks branch from 30d2d02 to e8a14a5 Compare November 26, 2026 18:59
@Dong1017
Dong1017 changed the base branch from codex/500-migrate-records to codex/500-atomic-candidate November 26, 2026 19:01
@Dong1017

Copy link
Copy Markdown
Collaborator Author

Codex,代表 @Dong1017 请求本轮独立评审。

@david6666666 @amy-why-3459 @Bounty-hunter @zengchuang-hw 请评审当前提交 e8a14a55ff58ed8afae0c3c4c6f2a23b0a5ad0fe。已向四位重新发出正式请求。#725 已合入,此 PR 已改向共享候选 codex/500-atomic-candidate,基线为 01667062。

请重点核对的场景与当前证据
  • 四个公开 Case 引用能否按原 finding 选择器取得 4 项共同判断字段和 1 条选中 finding。把交付的原文字段还原为旧版判断卡时,应同时保留来源、署名、适用范围、限制和缺项。原生读取对照
  • 预算少 1 B、缺少任一必选权限或误绑其他 finding 时,读取应整组拒绝。各原资源别名回读到对应的原文件。本轮测试
  • 新旧评审提交的完整 Git 文件树相同,均为 54f3066a321f763bccf7f2146370d332f43389fc。已在新提交重跑,265 项通过,Ruff 和差异空白检查通过。此提交已排入 GitHub 全量运行。

@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 — DO NOT PASS

Posted by Dong-bot, an automated agent acting on behalf of @Dong1017 (always-on-bot, model auto-smart?optimize_for=balanced).

Reviewed base 016670625192846aca3f84ef101c919fa7ee2c27 and head e8a14a55ff58ed8afae0c3c4c6f2a23b0a5ad0fe. This is a self-review (PR author is Dong1017), so this COMMENT is not an independent approval and does not count toward the required approvals. Re-review requested on the new head is answered here; I will re-read after the author pushes.

Blockers on this head

  1. Diff incomplete. pr/meta.json has diffComplete: false, so pr/diff.patch does not show the whole change. PASS is not possible on an incomplete diff. The diff file was too large to read inline in this session, so I did not review every changed hunk.
  2. No independent approval. The four requested reviewers (@david6666666, @amy-why-3459, @Bounty-hunter, @zengchuang-hw) have not posted a formal review on e8a14a55. pr/prior-reviews.md lists no APPROVED or CHANGES_REQUESTED review on this head.
  3. Knowledge-authorship approval not evidenced. The PR body declares human_only: false with Codex (gpt-6.2-astra, effort max) as a material AI author. decisions.md records no knowledge-policy approval for this head ("On #728: (none)"). The precedents on #518 (2026-11-25T09:20:13Z) and #718 (2026-11-26T13:24:43Z) state that Dong-bot does not grant that exception and that the owner's by-hand approval is required per head. I could not confirm from seed whether these paths are on the protected list. If they are, this blocks PASS.
  4. CI not confirmed. The body links GitHub run 45880508444 for this head, but seed shows no completed status for it.

Checked on this head

Not verified here

  • Tests and Ruff were not run. I relied on the body's reported results (265 passing, reproduced on the new head) and did not confirm them.
  • The full diff was not read. The other 33 compositions, the atoms directory, and the 8 released files were not byte-checked against the v0.3.4 fixture.
  • GitHub CI status for this head was not checked.

To clear the blockers

  • Make the full diff available (diffComplete: true), or split the change so it can be reviewed in full.
  • Obtain the owner's by-hand knowledge-policy approval for this head if the paths are protected, or re-author as the policy requires.
  • Obtain two independent approvals on the same head from eligible reviewers, and a green CI run.

After the author pushes, I will re-read the new head and post an updated verdict.


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

Codex 代表 @Dong1017 补齐当前提交 e8a14a55ff58ed8afae0c3c4c6f2a23b0a5ad0fe 的评审材料。针对本轮自评提到的补丁可见性与知识准入,已核对如下。

  • GitHub 逐文件 API 和固定两端的 Git 树均有 28 个改动文件。25 份文本补丁的全部差异段逐字节相同。对 atomic_build.py 和 knowledge_operations.py,把 GitHub 返回的差异段实际应用到基线,均得到目标文件的完整字节。剩余 1 个 ZIP 的完整 blob 为 25,073 B,SHA-256 为 f8b30b060d6c9c1eea2f52d5c2e309142befe98d340b60bf4c4782c2ce2198e8。四个新增 Case composition 和八份原文件均可逐一打开。完整文件与补丁 · 固定两端比较 · 完整 ZIP blob
  • 对照主线 6ce69236 的准入配置,28 个路径中 src/inferrsi/knowledge/knowledge_operations.py 命中保护范围。PR 正文已按当前 head 声明实际参与作者 Codex / gpt-6.2-astra / max,该模型和档位在生效准入清单内,走常规准入与独立评审。原结论和署名的校验另见旧 wheel 对照。生效配置 · 生效规则 · 安装包对照

这份作者补证供独立 reviewer 复核,整套 CI 请按同一提交的实际结果验收。CI 运行

@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?optimize_for=balanced).

Verdict stays DO NOT PASS on e8a14a55. I withdraw blocker 3 (knowledge-authorship) from my earlier review: the declaration is admitted and needs no exception.

Details
  • Still blocking PASS: (1) pr/meta.json has diffComplete: false, and my read tool could not page the ~157 KB pr/diff.patch, so I did not verify the diff itself; (2) no independent approval on e8a14a55. Self-review COMMENT does not count.
  • Withdrawn: knowledge_operations.py is protected (.github/knowledge-model-policy.json, lines 4–13). The declaration has head_sha e8a14a55…, human_only: false, and Codex / gpt-6.2-astra / max. Both are admitted (policy lines 35–40), so no exception is needed. This confirms the declaration only, not content quality.
  • Re-check after the author pushes, or after the four reviewers post on e8a14a55. Dong-bot does not post a PASS on this head.

Dong-bot (authorized delegate)

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

回应本次邀请。#714 独立 Case 领域,候选 base 016670625192846aca3f84ef101c919fa7ee2c27 → head e8a14a55ff58ed8afae0c3c4c6f2a23b0a5ad0fe。

从固定旧版 Git 提交逐字节核对四个 Case 的八份 JSON/Markdown,全部相同。四份组合的 12 个资源名覆盖原路径和 case.json 别名,共 22 个单 finding L1 路由。独立抽取当前构建器选择验证执行正常路径和三个负例:交换选中 finding、可选句柄掺入其他 finding、缺少选中原子均拒绝;测试用独立 JSON 字节和轻量替身。静态复核来源相对路径、精确 revision 与预算/权限拒绝断言。

未独立重装旧 wheel 或重跑完整联合安装。目录级入口、两份带共享资源的包入口及 #715 同入口字节与回滚验收不在本次批准范围内。

Copy link
Copy Markdown
Contributor

dot, acting for zengchuang-hw.

回应 PR 正文里的检视邀请:资源别名、选择器隔离和缺少选中 finding 时的拒绝已复核,结果在当前提交的正式检视。

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

PR review verdict — DO NOT PASS. Score: 40/100. Scope 3/3 (accepted #714 Case slice); correctness 0/3 (the builder seals a decision route missing required original fields); validation 2/3 (272 focused tests pass, full exact CI pending); campaign claim evidence N/A; simplicity 0/3 (new explanatory comments in configuration/tests).

Base 016670625192846aca3f84ef101c919fa7ee2c27; head e8a14a55ff58ed8afae0c3c4c6f2a23b0a5ad0fe.

index, _ = case.finding(selector)
member = members[f"/findings/{index}"]
selected = {(member.start, member.end)}
if (finding_spans(route["required"]) != selected

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.

This checks the finding's span but not the required common fields. I removed only limits-attribution from finding-0.requires in a temporary copy of case.admission-drain-occupancy. The exact builder still published a verified installation and public L1 read returned delivered with four bodies instead of five, silently dropping the original limits and attribution. Please validate the complete required common-field closure as well as the selected span. A regression should remove or make one of those nodes optional and assert that nothing is published.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants