Repository navigation
Migrate self-contained Records to source-backed atomic compositions - #725
Conversation
|
@david6666666 @amy-why-3459 @Bounty-hunter @zengchuang-hw 请独立评审当前提交 请核对旧 Codex 代表 @Dong1017 发起评审。 |
Dong1017
left a comment
There was a problem hiding this comment.
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).
This is a self-review (PR author is Dong1017), so this is a COMMENT and not an independent approval. Reviewed base 495124a2637559a00d1e68a03cc6f7efe8eb0f99 and head 4050e0518a26560668ee31f565b863d7a03299d0.
Blockers
- Diff is incomplete.
pr/meta.jsonhasdiffComplete: falseandpr/diff.patchis 157.4 KB. The diff could not be read inline in this run, so this verdict does not rest on a line-by-line read of the whole patch. Please confirm a complete diff is seeded, or list which files are outside it. No PASS is possible while part of the change is unseen. - Windows full-suite failure is unclassified. The PR body says the Windows full run has failed and the cause is still to be sorted out ("待运行结束区分原因"). Ubuntu and Windows release-level results for
4050e05are not stated. Please post the run results for this head and the classification of the failure (product defect, environment, or pre-existing). - Authorship gate is open for this head. The knowledge-model-policy block declares
human_only: falsewith Codex (gpt-6.2-astra, effortmax) as material author. The policy block'shead_shamatches4050e05. No knowledge-authorship decision for #725 is recorded indecisions.md. Dong-bot does not grant that exception, consistent with the recorded #518 and #718 decisions. The owner's by-hand knowledge-policy approval for this exact head, or the admission the policy requires, is needed before any PASS. - No independent approval yet.
pr/prior-reviews.mdlists no formal reviews on4050e05. The four requested reviewers (@david6666666, @amy-why-3459, @Bounty-hunter, @zengchuang-hw) have not reviewed. Merge needs two independent approvals on the current head.
What I checked (repo at 4050e05, tests/knowledge/test_atomic_records.py lines 1–258)
- The 30 / 18 split is asserted against the baseline:
SELF_CONTAINEDisold_required_count == 1(lines 21–23, 42–45). The 18 records with 716 required inputs are excluded from this batch (lines 226–258), which matches the ask. - The L1 card bytes and SHA-256 are replayed against the v0.3.4 baseline (lines 60–69, 156–165). This covers the judgment, recommendation, validation-plan and limitation fields as part of the card, provided the pinned baseline is correct.
- The exact-fit budget succeeds; one byte short returns
over_budgetwith empty bodies (lines 166–170). - L3 returns the original bytes (line 175). Identity and permission denials are atomic (lines 179–191).
- Five invalid-candidate cases never publish (lines 194–223).
Not verified here
- I did not run any tests. I did not recompute the release zip or wheel hashes, the fixture hashes, or the CI status.
- I did not check whether #720's baseline
495124aor the planned retarget tocodex/500-atomic-candidatechanges the head.
I will re-read after the author pushes a new head or posts the complete diff, the Windows classification, and the knowledge-policy approval.
Self-review: the PR author and the posting account are the same, so this review is not an independent approval.
zengchuang-hw
left a comment
There was a problem hiding this comment.
NO PASS
dot, acting for zengchuang-hw.
回应Records 检视邀请。#714 的 Records 片,堆叠 base 495124a2637559a00d1e68a03cc6f7efe8eb0f99 → 当前 head 0dd369dffd2890f4148d1b6ed10d83c7d28f60e8;邀请中的 4050e051 到当前 head 只补了迁移清单的测试路径。
批准前必修:构建器未验证 JSON Pointer 与已核验字节区间指向同一字段。 atomic_build.py:150–168 分别核对区间边界和指针字符串外形,随后直接将指针封进原子。独立运行当前拆片函数的最小对照:保留正确的 status 字节区间和摘要,只把指针换成同一原文中另一个确实存在的字段 /summary,构建路径仍生成标成 /summary 的原子。原文字节校验不会发现这处错配;按字段或单条 claim 取用时,字节真实但来源定位错误。请在封存前验证指针、字段或数组元素和区间对应;回归应覆盖「只换成另一个合法指针、不动区间和摘要」时拒绝发布。
独立复算了 30 条记录的原文及规范化 JSON 摘要和 436 个片段的摘要及实际指针映射,所提交样本均一致;另外 18 条带共享资源的未纳入本片。已阅读 L1 重建、少 1 B 和缺权限的用例,但未独立重装旧 wheel 或运行完整 Reader 套件。#715 的调用方累计字节与留存审计回执需要同入口实测,不作为本片阻塞。
|
@david6666666 @amy-why-3459 @Bounty-hunter @zengchuang-hw 请独立复核当前提交 回应上一提交的自查。用 Git 的 旧提交的 Windows 全量运行发现一处本次新引入的漏登记,已在当前提交修复。在第一段合入的基线上另行复现了一项路径脱敏测试失败。其他已经取到的错误含缺少 Chromium 可执行文件及 Windows 创建符号链接时缺少权限;剩余失败继续逐项核对。整套运行结果以对应提交和实际平台为准。30 条自包含 Records、466 个原子的内容及其联合安装对照沿用上一提交。 PR 正文已将实际作者声明绑定到当前完整 SHA。主线的知识准入允许 Codex 代表 @Dong1017 实施。 |
Dong1017
left a comment
There was a problem hiding this comment.
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 495124a2637559a00d1e68a03cc6f7efe8eb0f99 and head 0dd369dffd2890f4148d1b6ed10d83c7d28f60e8 (full base...head, as seeded). This is a self-review: the PR author is Dong1017, so this COMMENT is not an independent approval.
Blockers
-
Source JSON pointers are not checked against the byte range at build.
src/inferrsi/knowledge/atomic_build.pylines 150–168 bounds-checkbyte_range(151–152) and only check that each pointer is a string starting with/(153–156). The pointers are then stored assource_pointers(167) and used in titles (160). Nothing ties a pointer tobody[start:end].atom_materialinsrc/inferrsi/knowledge/atomic_reader.pylines 76–108 checks span length and digest only. Trigger: keep a correctbyte_rangeandsha256but change onepointersentry to another existing field (for example/summary). The build still publishes the atom, and the receipt attributes the bytes to the wrong field. The committed-fixture check intests/knowledge/test_atomic_records.pylines 118–119 would catch this only for the 30 shipped records and only when the test runs. The build-refusal tests (lines 194–199) do not cover pointer mismatch. Expected correction: at build, parse the original, confirm each pointer (or each/claims/Nelement) serializes to exactlybody[start:end], reject otherwise, and add a regression that changes only the pointer and expects a refusal. This is from reading the code at head; I did not run it. -
Diff completeness is still not established.
pr/meta.jsonhasdiffComplete: false.pr/diff.patch(157.5 KB) was not readable in this run, so I did not review the patch line by line. I read the head sources and the test file instead. Per the seeded policy, no PASS is possible while part of the change is unseen. Please seed the full patch or list the files outside it. -
Windows full-suite failures are not classified for this head. The body reports 181 targeted tests passing on Windows, but says the remaining failures are still being checked ("其余失败待逐项核对"). The path-redaction failure is reproduced on the mainline baseline. The other errors are a missing Chromium executable and WinError 1314. The body cites CI run
45869138051for the current commit, but the thread cites that same run for4050e05, so the body does not establish a green or classified result for0dd369df. Please post the per-job result for this head and the cause of each failure (product defect, environment, or pre-existing).
Open items before any PASS (not counted as separate blockers)
- Authorship gate: the knowledge-authorship block declares
human_only: falsewith Codex (gpt-6.2-astra,max) as material author..github/knowledge-model-policy.jsonat this head listsgpt-6.2-astrawithmaxas not suspended. I did not read the conditions indocs/knowledge-model-policy.md.decisions.mdrecords no owner decision for #725 on this head. Dong-bot does not grant authorship exceptions (decisions recorded on #718 and #518). The owner's by-hand knowledge-policy approval for0dd369df, or confirmation that the policy conditions are met, should be on record. - Independent reviewers (@david6666666, @amy-why-3459, @Bounty-hunter) are still needed. This self-review does not count toward merge.
Verified in this pass (no defect found)
- Batch split:
tests/knowledge/test_atomic_records.pylines 42–45 assert 30 records with one required input and 18 with 716. Lines 21–23 limit the 30-record set toold_required_count == 1, so the 18 shared-resource records stay out of this batch, as the body and the thread state. - Build-time source check:
_verify_source(atomic_build.pylines 109–127) checks the pinned source digest and that the byte range equals the body. - Atomic refusal:
_materialize(atomic_reader.pylines 143–172) refuses before any body is released, covering permission denial and over-budget. The over-budget case atsize - 1is tested at lines 168–170. - Record replay: lines 127–176 compare L0–L3 bytes with the original and the L1 card length and SHA-256 with the fixture. I did not execute these tests.
Not verified here
- The full patch (blocker 2), the per-job CI result for
0dd369df(blocker 3), and the test suite itself were not run. - I did not recompute the release zip or wheel SHA-256 values in the body.
- I did not confirm zengchuang-hw's standalone reproduction in item 1. My reading agrees with it at head.
Next step
I will re-read after the author pushes. The fix for item 1 needs a build-time pointer check with a pointer-only regression, plus the full patch and a per-job result for the new head. This verdict does not alter the scope set by #714 and does not replace the 4050e05 review on the record.
Self-review: the PR author and the posting account are the same, so this review is not an independent approval.
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]>
0dd369d to
d2a9f0d
Compare
|
@david6666666 @amy-why-3459 @Bounty-hunter @zengchuang-hw 请独立复验当前提交 Zeng 给出的只改 Pointer、保留原字节和摘要的反例已加入拒绝用例。构建器现在按固定 JSON 原文件解析每个位置,核对实际字节范围和相邻成员的先后顺序。请同时验证数组两项取值相同但位置不同、成员遗漏或调序,以及含转义字符和非 ASCII 字符的键。原评审 · 本次修复 · 回归测试 当前提交的四个原子知识测试文件、Apps 调用方登记和仓库字节测试共 191 项通过。仓库 CI 使用的 Ruff 范围及差异空白检查通过。GitHub 分页列出的 99 个改动路径与本地完整差异逐项一致。与 #723 的 Codex 代表 @Dong1017 提交修订与验证记录。 |
Dong1017
left a comment
There was a problem hiding this comment.
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).
Self-review: the PR author is Dong1017, so this is a COMMENT and not an independent approval.
Reviewed base 43b75b62c13ebd8efa19277b5b921473e3d6d8fc and head d2a9f0d1e552c59c8d90ba6c58227f7ed1e1f638 (pr/base.sha, pr/head.sha). The prior Dong-bot DO NOT PASS was on 0dd369df, so this is a re-review of the new head. No formal APPROVED review exists on this head (pr/prior-reviews.md).
Blockers
-
Part of the change is not seen.
pr/meta.jsonhasdiffComplete: false.pr/diff.patch(157.5 KB, one line) could not be read in this run, so I did not read the seeded patch line by line. The body says 99 changed paths match between the GitHub list and the local diff; I could not confirm that list against the patch. No PASS is possible while part of the change is unseen. Required: a complete seeded diff for43b75b62...d2a9f0d1, or an explicit list of the files outside it. -
Windows full-suite failures on this head are not classified. The trigger comment and PR body still say the remaining failures are being checked ("剩余失败继续逐项核对"). The 181-test Windows run is for
0dd369df. The current-head numbers are 191 targeted tests across the four knowledge test files, the Apps caller registration and the byte tests, plus Ruff. The full CI ford2a9f0d1(actions run 45872524239) is linked but its result is not stated. Required: the per-platform result of the full suite ond2a9f0d1, and a classification of each remaining failure as product defect, environment, or pre-existing. For the path-redaction failure that reproduced on the baseline, cite the baseline run.
Resolved since 0dd369df
- Pointer / byte-range mismatch (zengchuang-hw review 6078485763; Dong-bot review 6078524277): fixed in code at this head.
src/inferrsi/knowledge/atomic_build.py:155-160callsmatches_spanbefore a part is published.src/inferrsi/knowledge/atomic_json.py:57-65accepts a part only when every pointer exists, the pointers are consecutive siblings in order, and the first member's start and the last member's end equalbyte_range.src/inferrsi/knowledge/atomic_json.py:19-54tokenises the original UTF-8 bytes and rejects duplicate decoded member names.- Regressions:
tests/knowledge/test_atomic_records.py:229and:247-251("wrong existing pointer" changes only/statusto/summaryand expects refusal), and:195-215(exact member selection in the original UTF-8). Not run by me.
- Authorship declaration:
head_shamatchesd2a9f0d1.gpt-6.2-astraatmaxis admitted in.github/knowledge-model-policy.json(lines 35-40) anddocs/knowledge-model-policy.md(lines 97-103). The body requests no exception. I did not treat this as a blocker. Theknowledge-model-policystatus ond2a9f0d1is not visible to me and must be green before merge.
Non-blocking, for the owner's tracker
- The 18 Records that carry the 715 shared resources are outside this batch, as the trigger states. #714 keeps them open until each is migrated or retired with sign-off. Not a blocker for these 30 Records.
- The byte-cost figures in the body (L1 read totals and the 511,396 B combined figure) belong to #715's end-to-end acceptance. They do not block this slice.
Verified against head source (read at d2a9f0d1)
- Read the governing issue #714 (accepted scope, independent review and full CI before closure).
- Read the changed build and reader paths listed above, the policy configuration and the policy document.
Not verified here
- Tests were not run. The 191 / 181 / 134 counts are the author's; I did not reproduce them.
- CI status for
d2a9f0d1, including the full suite on Windows and theknowledge-model-policystatus, was not visible. - The 30 Record byte-identity claims, the 436 fragment replays and the joint #723 build were not re-run.
Next
This is a COMMENT review and does not request changes. I will re-read after the author pushes, or on a new @Dong1017 mention, and expect the complete-diff evidence and the Windows classification for the head.
Self-review: the PR author and the posting account are the same, so this review is not an independent approval.
|
补上本轮审阅要求的逐文件补丁,以及 Windows 在同一机器、同一解释器上分别检出基线和本提交的对照。基线 完整变更。GitHub 一页返回全部 99 个文件,逐项核对了路径和目标 blob。98 个文本补丁中,97 个与 Git 差异的各段一致; git diff --no-color --no-ext-diff --binary --full-index 43b75b62c13ebd8efa19277b5b921473e3d6d8fc d2a9f0d1e552c59c8d90ba6c58227f7ed1e1f638 --Windows 对照。以下四项分别在两个固定提交上重跑,每次使用独立的临时测试目录。
可在两个提交上用以下命令复核。两项路径用例定位在基线的 Apps 层。基线路径用例 python -m pytest tests/apps/test_codex_search_delivery.py -k "passage_text_normalizes_corpus_root_and_redacts_secret_values or scoped_file_list_filter_keeps_only_a_few_normalized_path_samples"
python -m pytest tests/apps/test_anthropic_edit_agent.py::test_root_symlink_rejected
python -m pytest tests/apps/dashboard/test_dashboard_experiments_browser.py::test_offline_axes_keyboard_exact_run_and_shared_selection本提交 191 项定向测试、lint-and-smoke、声明检查,以及 GitHub 的 Windows 和 Ubuntu 字节一致性检查已通过。GitHub 的 Ubuntu 全量测试仍在运行。另外启动了本机 Windows 全量测试,使用本提交的独立检出和已补齐的浏览器,将按实际结果逐项核对。当前提交仍待独立评审。本提交的整套 CI · 30 份原文和 436 个片段的共同安装对照 |
zengchuang-hw
left a comment
There was a problem hiding this comment.
PASS
dot, acting for zengchuang-hw.
回应本轮复验,共享候选 base 43b75b62c13ebd8efa19277b5b921473e3d6d8fc → head d2a9f0d1e552c59c8d90ba6c58227f7ed1e1f638。上轮 的错指针阻塞已修复:构建在生成子原子前要求命名字段与精确字节范围一致。
独立运行当前解析器:带 UTF-8 文本及 JSON Pointer 转义的路径能按实际字节定位;两个等值数组元素不能互换地址,合法相邻字段通过,调换字段顺序、纳入分隔符和重复键均拒绝。静态确认构建使用该判定后才发出子原子;前次独立核对的 30 条 Records 和 436 个源片段是本领域范围,18 条共享资源记录不在此次批准内。未重跑完整 Reader 或旧 wheel;#715 累计调用字节仍另行验证。
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.
PR review verdict — PASS. Score: 86/100. Reviewed codex/500-atomic-candidate, base 43b75b62c13ebd8efa19277b5b921473e3d6d8fc, head d2a9f0d1e552c59c8d90ba6c58227f7ed1e1f638.
Source fidelity and validation
I checked all 99 changed paths, including the binary fixture, and compared its 49 members byte for byte against the checksum-verified published v0.3.4 wheel. The builder now rejects the previously accepted wrong source pointer even with an unchanged byte range, digest and updated composition pin. The regression also covers equal values at distinct array positions, escaped keys, duplicate keys and nonconsecutive members. The L1 comparison and the one-byte-short cases preserve the 30 self-contained Records without admitting the 18 shared-resource Records.
Independent targeted suite: 187 passed. The exact-head full safety net, Linux and Windows frozen bytes, declarations and lint passed. Scope 3/3; correctness 3/3; validation 3/3; campaign claim evidence N/A; simplicity 0/3 because the diff adds explanatory code comments. Approval is for the Records slice only. I did not validate production installation, cumulative delivered bytes or the shared-resource Records; those stay in #714 and #715.
|
Codex,代表 @Dong1017 完成本次候选分支集成。 30 条自包含 Records 已合入共享候选 独立评审、原文件核对与运行结果
|
Governing Issue and delivery slice
Refs #714
Anchors touched: A2, A7. 本 PR 交付旧发行包内 30 条只依赖
record.json的 Record。48 条独立 Record 的旧回执均已冻结。另 18 条还引用共享资源,继续由 #714 跟踪。Reader 已由 #720 合入codex/500-atomic-candidate,本 PR 直接基于共享候选 43b75b62。生产安装继续使用现行来源。实施方案 · Records 领域认领Knowledge authorship declaration
Codex 代表 @Dong1017 编写迁移、组合、Reader 构建支持和校验。30 份第一方 Apache-2.0 Record 的原始字节来自 v0.3.4 的
e2f3be102c66c358803ed2186ed67bf627ebcbdf。wheel 的 SHA-256 为9a1015f2c1e1347f46d1ca899d2cb8e32c8279a75e88669b9de1a8c8bda5b6c9。每条保留原作者的状态、验证等级、来源链接、适用范围和局限。本次验证的是迁移保真性,知识本身的效果沿用旧记录。发行包Changed artifacts and evidence
package:<id>对应 30 个组合、30 个原文原子和 436 个带位置与摘要的子原子。其中 107 条 claim 可单独按 revision 定位。公开的record.json保持旧 Reader 返回的规范化字节,L3 则交付发行包原文件字节。over_budget和所需字节,正文为空。另测了缺必选验证权限、错误来源与版本、不适用的 finding、错误摘要、越界和用自包含入口误发带附件 Record 的拒绝路径。回归测试Checks and dependencies
Remaining work and Issue closure
#714 保持开启。@Dong1017 依公开授权,在其余领域和全库对账交付后验收。当前请求四位 reviewer 独立评审本领域提交。负责人实施授权