Skip to content

feat(benchmark): project P1 reports into capture drafts - #566

Open
zengchuang-hw wants to merge 12 commits into
mainfrom
codex/benchmark-565-proof-projection
Open

zengchuang-hw wants to merge 12 commits into
mainfrom
codex/benchmark-565-proof-projection

Conversation

@zengchuang-hw

@zengchuang-hw zengchuang-hw commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

Current merge gate: exact head cd301d7 is CI-green. Jiang 6018167176 is the one current eligible David-seat substitute selected and write+ verified in 7094979143, under #565 7080299417. Amy's required current-head approval remains pending. Same-account duplicate reviews count once.

Refs #565
Refs #371

This Benchmark-owned codec/projector turns frozen P1 worker-report bytes and H-owned capture facts into independent proof drafts. After a worker ran, an explicitly null grader or samples family now also produces its required diagnostic: not_performed, no proof, and one InvalidRequest / report_family_incomplete error per family. Valid sibling proofs and actual failed grades are preserved. H retains/seals the proofs and persists diagnostics; B still performs no I/O or execution.

Accepted scope / delegation: capture boundary v1 proposal §4, owner acceptance and B/H delegation. Dong1017 retains B/H accountability; zengchuang-hw / Codex implements this bounded B codec/projector slice. Author and actual accountable parent cannot supply independent votes.

Current head: cd301d78605a9856bfedb1a3ca8275bc86770379, synchronized additively with actual main 9d74935e854eb7d16f19a86cf245f97d5d97d965. Actual main diff remains 5 files / +800 -1. It includes no unmerged H, Apps capture or worker implementation. The main sync preserves the CLI installed probe and operations rows, as well as both policy-backed/absent-policy generation paths.

Review correction

Amy's 6018005577 correctly identified that an explicit-null family had a check reason but no draft error. Accepted §4 covers missing families without a null exemption. Commit 47a0e448 adds that missing diagnostic and clarifies the contract; the codec continues accepting null as valid transport syntax.

An example draft error is:

{"code":"InvalidRequest","check_ids":["grader"],"reason":"report_family_incomplete"}

The existing H adapter maps this to an execution error with stage finalizing, message report_family_incomplete and retryable false. No wire fields, worker semantics, pins, task revisions or claim gates changed.

Verification

  • 77 pure proof tests passed, including three new null-family cases (grader, samples, both) which failed before the fix, preserve unchanged sibling/cleanup proof bytes, and require the diagnostic. The independent failed-grade regression also requires the missing-samples diagnostic.
  • 398 tests / 43 subtests passed, zero skips: proofs/preparation/assessment, Apps prepare/assess, contract packaging/schema and target-import boundary group.
  • Ruff across src/tests/tools and whitespace checks passed.
  • Fresh bare-core sdist → wheel → clean installation → complete outside-checkout installed check passed. The changed proof module's source/wheel/installed bytes match; the installed cold-import probe excludes Apps/H/Knowledge.
  • A separate validation-only checkout combined this exact B head + public H feat(harness): seal evaluation capture proofs before commit #567 head 4bae1e2d8ae2956deb4cce7d680142bb48f97146, without task: Harness generation lineage for production evaluation attempts #584. Four controlled worker-report fault cases passed through actual CPU process → real H commit → offline assessment → same-record replay: null grader, null samples with passed grade, null samples with failed grade, both null. Each persisted its finalizing error(s), retained the raw null report and valid sibling proofs, kept only affected claims INCONCLUSIVE, and replayed the original RecordRef after original sources were removed while recapture/process launch were forbidden. One attempt / one record throughout.
  • Final-head Ready CI 45134557271 passed all eight jobs, including both full-check and installed-package Python versions; declaration passed. Earlier-head approvals remain stale.

The joint probe is a controlled report-transport regression, not real P1 worker/grader/sampler acceptance, full S5 production integration, model-quality or performance evidence. Shared CPU acceptance still waits on actual-main dependencies; #568's temporary-base merge is not Apps main delivery. The codec/projector never manufactures measurements or authenticates a worker.

Review and remaining delivery

Request all other write+ committers under the user's instruction, while retaining #565's accepted named seats: Amy and David, or an explicitly accepted exact-head conditional replacement. Amy's technical COMMENT on the previous head is not an Approve or an unavailability declaration. Old a1fff5d votes (David/Jiang) are now stale. Two eligible independent current-head formal Approves, first nonempty line exactly LGTM, and passing required CI are required before squash. The generic advisory observer does not verify issue-specific seat assignments.

This PR does not complete #565 or #371; Apps-only replacement, CPU worker #575 and shared production validation follow their accepted source dependencies. Component completion and Issue acceptance remain separate.

Material AI author: Codex; exact model ID and effort unknown. No protected knowledge content is changed.

{"schema_version":1,"head_sha":"cd301d78605a9856bfedb1a3ca8275bc86770379","human_only":false,"material_ai_authors":[{"tool":"Codex","model_id":"unknown","effort":"unknown","role":"author"}]}

Agent-assisted-by: Codex (author)
Signed-off-by: zengchuang <zengchuang3@huawei.com>
Agent-assisted-by: Codex (author)
Signed-off-by: zengchuang <zengchuang3@huawei.com>
Agent-assisted-by: Codex (author)
Signed-off-by: zengchuang <zengchuang3@huawei.com>
Agent-assisted-by: Codex (author)
Signed-off-by: zengchuang <zengchuang3@huawei.com>
Keep an affected claim inconclusive when any matching declared proof is unusable, even if another proof is valid. Return declared errors for malformed identity projections.

Agent-assisted-by: Codex (author)
Signed-off-by: zengchuang <zengchuang3@huawei.com>
Agent-assisted-by: Codex (author)
Signed-off-by: zengchuang <zengchuang3@huawei.com>
Keep report parsing and proof projection pure. Bind supplied bytes to the runtime capture and retain independent evidence gaps; producer sealing and record commits remain host responsibilities.

Agent-assisted-by: Codex (author)
Signed-off-by: zengchuang <zengchuang3@huawei.com>

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Technical / third-party tip COMMENT (cursor[bot]; collaborator permission none — not write+ / dual-tip / merge-ready).

Reviewed base 6226ed071fe6… / head 0ef4b078528116c45f9a2fb758b00c643adfa854. Incremental unit against stacked #560 tip 4887f1e94f39… (main-target still includes unmerged assessment). No formal tip reviews yet; Ready full-check still pending. Dong is accountable parent (#429/#434) — independent write+ Approves still required from eligible reviewers (amy/david per PR body).

Clean-code / repo style (provisional): PASS — no tip blockers found

  • Layering: benchmark.proofs imports only contracts.json_v1 + benchmark.assessment/preparation; no Apps/Harness/Knowledge; no open/Path/subprocess I/O; check_installed cold-import probe updated.
  • Scope honesty: drafts only — no producer/attempt/Ref sealing; worker/grader/sampler not executed; cleanup proof from H facts only; invalid UTF-8 → failed format proof.
  • Package-internal reuse of assessment._proof_json / _timestamp / _cleanup_confirmed is acceptable within Benchmark (not a cross-plane leak). Migrations consumer gate N/A (new module; does not import migrated Apps canonicals).
  • Docs/ops/contract (production-proofs.md, operations row) match ports; tests cover spoofing, family incompleteness, isolation, and pure I/O bans.

Not Approving yet: Ready incomplete; merge order is #560 → resync this head → green checks + two write+ LGTMs. Will re-review after Ready and/or tip move.

@Dong1017 Dong1017 added the kind:task Bounded delivery task with a delegated slice label Nov 21, 2026
Dong1017
Dong1017 previously approved these changes Nov 21, 2026

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

PR review verdict — PASS
Reviewed base 6226ed0 and head 0ef4b07 (full diff, diffComplete: true). No formal reviews or CHANGES_REQUESTED are seeded for this head, so this is the first review. This is Dong-bot (authorized delegate) acting for Dong1017's technical-review request. It is one vote only. It does not replace the independent Amy/David approvals that #565 requires on the final head.

Scope. This is the Benchmark codec/projector slice (B) of the capture boundary accepted in #565 (7063820381 and 7064002232). It is stacked on #560 (4887f1e9). The diff against main therefore also carries the #560 assessor, its contract doc and tests/test_benchmark_assessment.py. The new increment is benchmark/proofs.py, docs/contracts/production-proofs.md, tests/test_benchmark_proofs.py, the operations.md row and the check_installed.py import probe.

What I verified by reading the diff.

  • Accepted boundary. project(prepared, protocol_bytes, phase, facts, *, candidate_bytes, report_bytes) returns (draft_wire, proof_blobs) and matches the signature in #565. The draft has exactly schema_version/checks/errors. A check carries no producer, attempt_id or evidence_refs, and no Refs are computed, so H alone seals and retains them.

  • Worker report. The closed fixture-grader@1 report has exactly schema_version/grader/samples. Parsing reuses assessment._proof_json, so it rejects duplicate keys, floats, NaN and invalid Unicode. A bool schema_version gives UnsupportedSchema.

  • Identity from H facts. Attempt, candidate and hash fields come from facts and the actual candidate bytes, never from the report. _candidate_digest requires a unique bound input, matching actual_sha256, retained_ref.sha256 and size, captured_at, file-v1, and any frozen expected_candidate.

  • Worker binding. _worker_bound needs a started, input-bound step whose runtime entry, revision and code digest equal the frozen recipe. It is slightly stricter than the assessor, which also accepts running/exited steps without started_at. That direction is conservative.

  • Family independence. Grader and samples are validated separately, so invalid samples do not hide a valid grader result, and the reverse. A bad envelope gives not_performed for both with the portable error code.

  • Cleanup. The proof comes only from facts["cleanup"] and resource_leases, through the shared assessment._cleanup_confirmed. Unobserved cleanup is not_performed with no proof. Unknown or failed cleanup never becomes confirmed: true.

  • Format check. The preparing phase checks actual UTF-8 bytes. Invalid UTF-8 gives a failed format proof, not a host error. The projector does not decide whether the worker starts, which fits your rule that a valid format failed is evidence and not execution control.

  • Phase and domain. A preparing context with any terminal field set is refused with IdentityMismatch. An unsupported actual control domain gives not_performed with no proof for each affected check.

  • Purity and layering. No I/O is performed. facts, prepared and the outputs are snapshotted, and a host content type error raises TypeError. proofs.py imports only contracts.json_v1, assessment and preparation. check_installed.py adds an isolated -I -B probe that asserts Apps, Harness and Knowledge are not loaded.

  • Test coverage. tests/test_benchmark_proofs.py covers what the earlier thread asked for:

    • producer, cleanup, ID and Ref forgery by the worker;
    • an unknown report version or rule revision;
    • AB/BA order and sample mutations;
    • foreign or corrupt capture context;
    • the late-context relabel, frozen expectation and snapshot immutability.

    It also uses runtime IDs (runtime-attempt-37, runtime-candidate-37) instead of att-1/cand-1.

  • Docs and inventory. production-proofs.md states the limits: no worker, grader or sampler, and drafts are not observations. The migration inventory adds test_benchmark_assessment.py only for modules it actually imports.

Non-blocking notes.

  • The report fields are checked as a closed shape only. The real grader and sampler semantics and resource pins are still gated, as #565 says, so this PR cannot show complete F/C/M on a real execution.
  • Per 7064002232, this PR must not merge before #560. After that, sync the branch, get green checks on the final head, and get two fresh independent formal Approves on that head. Earlier-head, author and owner votes do not count.

Not verified here. I did not run any tests, including the claimed 74 core and 308 broader tests. I did not see CI results or the fresh wheel run, and I did not read the #560 head separately. The repository-level layout and import-gate tests were not exercised. I read module-layout.md and found nothing that requires an update for a new Benchmark module.


Posted by Dong-bot, an automated agent acting on behalf of @Dong1017 (always-on-bot, model claude-sonnet-5-5).

amy-why-3459
amy-why-3459 previously approved these changes Nov 21, 2026

@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

PR review verdict — PASS
Reviewed the incremental unit 4887f1e → 0ef4b07 (PR targets main 6226ed0 and still carries unmerged #560).

Verified against the #565 capture-boundary acceptance (7063820381 / 7064002232) by reading this increment:

  • benchmark.proofs is a pure codec/projector: closed fixture-grader@1 report; draft wire is exactly schema_version/checks/errors; checks carry no producer, attempt or evidence Refs, and this module does not compute or seal them.
  • Attempt, candidate and hash fields come from H facts and the actual candidate bytes. Worker-supplied producer, identity, cleanup or Ref fields are rejected. Grader and samples families are validated independently. Cleanup proofs come only from H cleanup/lease facts via assessment._cleanup_confirmed. Preparing-phase invalid UTF-8 yields a failed format proof and does not decide whether the worker starts.
  • tests/test_benchmark_proofs.py covers the required negatives (producer spoofing, cleanup contradiction, unknown revision, AB/BA order) and uses runtime IDs instead of att-1/cand-1. Layering stays inside Benchmark; no redundant code or tests found. Accuracy and performance comparison experiments are not applicable for this codec slice.

Ready full-check (3.10) has already passed on this head; full-check (3.11) was still running when I submitted. Per 7064002232, merge #560 first, sync this branch, wait for green checks on the final head, and obtain two independent formal Approves on that head. This vote applies only to 0ef4b078; a parent/author vote does not count as one of those two approvals.

cursor[bot]
cursor Bot previously approved these changes Nov 21, 2026

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

LGTM

PR review verdict — PASS
Reviewed base 6226ed071fe6a3e68d31c89736baae285af7c5b9 and head 0ef4b078528116c45f9a2fb758b00c643adfa854. Incremental unit vs stacked #560 tip 4887f1e94f39… (main-target still includes unmerged assessment until #560 lands and this branch resyncs).

Identity: cursor[bot] independent third-party / technical verify only (collaborator permission none). Not write+ / dual-tip / merge-ready. Dong tip Approve is accountable-parent technical; amy tip Approve present. Merge order remains #560 → resync this head → integrator checks.

Clean-code / repo style: PASS

  • benchmark.proofs is pure: contracts.json_v1 + benchmark.assessment/preparation only; no Apps/Harness/Knowledge; no filesystem/process I/O; cold-import probe updated.
  • Drafts only — no producer/attempt/Ref sealing; worker/grader/sampler not executed; cleanup from H facts; invalid UTF-8 → failed format proof.
  • Package-internal assessment._proof_json/_timestamp/_cleanup_confirmed reuse is within Benchmark, not a cross-plane leak. Migrations consumer gate N/A for this new module.
  • Contract/ops/tests match ports (spoofing, incomplete families, snapshot isolation, pure I/O bans).

Verified: Ready required checks green on this tip. Prior tip COMMENT held only for Ready; tip unchanged. Read incremental proofs unit earlier this round — not CI alone.

Retain the merged assessor and current installed-package probes.

Agent-assisted-by: Codex (author)
Signed-off-by: zengchuang-hw <zengchuang3@huawei.com>
@Dong1017

Copy link
Copy Markdown
Collaborator

父责任人技术自检(COMMENT):当前头 a1fff5d55c7939da0f09d4231d911549528f1c6a(base 8a8e85795a851dc884278aea4e0db67d4c6e77f5)没有需要作者先修的阻断项。本条不提交正式 Approve,不计入两票。Dong1017 持有本切片 B/H 端口责任。

相对上一份同头自检(7091955676),本头 Required CI 已按记录全绿:Ready CI 45114264866(Linux 两版本全量、bare-core 安装、浏览器、声明及必需检查)。该状态来自 PR 正文与本条触发评论;本轮未重跑测试或 CI,也未逐字节重读 benchmark/proofs.py。

席位(只针对 a1fff5d;0ef4b078 / 2b221448 / babe4a5e 上的批准已失效):

本头核对范围(正文、线程、触发评论):

  • feat(harness): validate frozen generation feedback policy #590 之后的冲突限于文档条目:加法保留 B proof 投影行,以及有 policy / 无 policy 两条 generation 说明。
  • benchmark/proofs.py 与 proof tests 相对 babe4a5e / 2b221448 声明为字节未变;相对 main 仍为五文件 +771/−1。
  • 作者报告的新选择:395 tests / 43 subtests、零跳过,Ruff 与空白检查,新 bare-core 完整安装,source/wheel/installed runtime 字节一致,cold import 不加载 Apps/Harness/Knowledge。这些数字留在作者证据上,本轮未复跑。
  • 先前对运行时的技术结论(草稿仅 schema_version/checks/errors,checks 不含 producer/attempt/Ref,闭合 fixture-grader@1,清理证明来自 H facts,分层不进口 Apps/Harness/Knowledge)留在已失效头上,不构成对本头的批准。

合入仍等两份有效独立当前头正式 Approve(第一非空行为 LGTM):Amy 席,加上 David 或上述唯一替补 Jiang 在 a1fff5d 上的新批准。Required CI 按本条记录已满足。本条不启用 squash。#567 的 Amy 席与 #568 的提交顺序保持不变:两片进入实际 main 之后再提交 Apps-only 替代 PR。

Dong-bot (authorized delegate)

david6666666
david6666666 previously approved these changes Nov 23, 2026

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

LGTM

PASS for a1fff5d55c7939da0f09d4231d911549528f1c6a against 8a8e8579. The rebase preserves the two feedback-policy operations paths and does not change the proof projection or runtime tests. Benchmark constructs role-specific drafts while authentication, retention and sealing stay with Harness. The exact-head Ready run 45114264866 (eight jobs) and knowledge-model-policy 45116517553 passed. I did not run the production capture chain or accept #565.

This is the David-account review only, not the required Amy seat. Follow #565's no-double-counting rule for any David-seat substitute.

Reviewer: Dot, acting under direct delegation from @david6666666 for independent InferRSI PR review and eligible Approve votes.

@Dong1017

Copy link
Copy Markdown
Collaborator

Posted by Dong-bot, an automated agent acting on behalf of @Dong1017 (always-on-bot, model claude-sonnet-5-5).

Dong-bot (authorized delegate): technical check on a1fff5d5 (base 8a8e8579) found no blockers. It is a comment only, not a formal Approve, and not an independent vote.

Why no Approve: Dong1017 holds B/H port accountability for this slice. Dong1017's by-hand comments (7091955676, 7092257416) keep this account on a COMMENTED self-check. This follows #371 7089393818 and #597. No CHANGES_REQUESTED is outstanding, so there is nothing for an Approve to clear.

Seats on this head

  • david6666666 has a formal APPROVED on a1fff5d5 (6016890858) with LGTM first. That fills the David seat.
  • Amy's required seat is still open. It needs her own current-head Approve, or her own recorded unavailability on this PR (task: P1 真实执行证据生产与固定记录对接 #565 7081206887).
  • Jiang is not needed for the David seat now that David has approved. Jiang and David cannot jointly cover Amy's seat.
  • Older-head approvals (0ef4b078, 2b221448, babe4a5e) are not inherited.
  • Squash waits on Amy's Approve and green required CI. The thread records Ready CI 45114264866 as green.
Details

I read the full five-file diff (diffComplete: true, +771/−1). I did not run tests or CI. The test counts and CI status come from the PR body.

  • Runtime: benchmark/proofs.py is new. It imports only contracts.json_v1, benchmark.assessment and benchmark.preparation. The check_installed probe still rejects Apps, Harness and Knowledge modules.
  • Draft output: it has exactly schema_version, checks and errors. Checks carry no producer, attempt or Ref. The module computes no Refs.
  • Worker report: it is a closed envelope. Extra keys reject the whole report. The grader and samples families are validated separately.
  • Worker binding: a report is trusted only after _worker_bound finds a started, input-bound step whose runtime matches the frozen recipe.
  • Cleanup: the proof comes only from assessment._cleanup_confirmed. Unobserved cleanup gives not_performed with no proof.
  • Docs: the operations.md diff adds only the B projection row and leaves the two generation-feedback rows untouched.
  • Non-blocking: the module reuses package-private helpers (_proof_json, _cleanup_confirmed, _timestamp, preparation._id, _DECIMAL). A stable shared surface could follow later.
  • Not checked: the claim that proofs.py and its tests are byte-identical to babe4a5e / 2b221448. The diff is against main, so I could not compare it.

@Dong1017

Copy link
Copy Markdown
Collaborator

No new verdict on head a1fff5d55c7939da0f09d4231d911549528f1c6a (base 8a8e8579). The parent technical self-check for this head is already on the PR in 7093090941, with the by-hand comments 7091955676 and 7092257416. This account stays on that commented self-check. Dong1017 holds B/H port accountability for this slice, so the record remains a comment under #371 7089393818 and #597.

Seats on this head, same as 7093090941:

  • david6666666 formal APPROVED 6016890858 (LGTM first) fills the David seat.
  • Amy's required seat stays open until her own current-head Approve, or her own recorded unavailability on this PR (task: P1 真实执行证据生产与固定记录对接 #565 7081206887).
  • David’s current-head Approve fills the David seat, so the earlier Jiang substitute selection stays historical. Jiang and David cover one David-side seat; Amy’s seat stays hers.
  • Approvals on 0ef4b078, 2b221448, and babe4a5e stay on those heads.
  • No outstanding CHANGES_REQUESTED.
  • Squash still waits on Amy's current-head Approve. The thread records Ready CI 45114264866 as green. This turn did not re-run tests or CI and did not re-read the five-file diff.

Dong-bot (authorized delegate)

@Dong1017

Copy link
Copy Markdown
Collaborator

Posted by Dong-bot, an automated agent acting on behalf of @Dong1017 (always-on-bot, model claude-sonnet-5-5).

No formal Approve from this account on a1fff5d5 (base 8a8e8579). I found no blockers in the five-file diff. This is a technical check only and does not count toward the two independent votes.

Details

I read the full diff (diffComplete: true, +771/−1, five files). I did not run tests or CI. The test counts and CI status come from the PR body and thread.

  • Layering: benchmark/proofs.py imports only contracts.json_v1, benchmark.assessment and benchmark.preparation. The check_installed probe still rejects Apps, Harness and Knowledge modules.
  • Draft output: it has exactly schema_version, checks and errors. Checks carry no producer, attempt or Ref.
  • Worker report: it is a closed envelope. Extra keys reject the whole report. The grader and samples families are validated separately.
  • Worker binding: _worker_bound requires a started, input-bound step whose runtime matches the frozen recipe.
  • Cleanup: the proof comes only from assessment._cleanup_confirmed. Unobserved cleanup gives not_performed with no proof.
  • Docs: operations.md adds only the B projection row.
  • Non-blocking: the module reuses package-private helpers (_proof_json, _cleanup_confirmed, _timestamp, preparation._id, _DECIMAL). A stable shared surface could follow.
  • Not verified: that proofs.py and its tests are byte-identical to babe4a5e / 2b221448. The diff is against main.

Dong-bot (authorized delegate)

@Dong1017

Copy link
Copy Markdown
Collaborator

No new verdict on head a1fff5d55c7939da0f09d4231d911549528f1c6a (base 8a8e8579). The parent technical self-check for this head is already on the PR in 7093135066, with 7093090941 and the by-hand comments 7091955676, 7092257416, and 7093112616. This account stays on that commented self-check. Dong1017 holds B/H port accountability for this slice, so the record remains a comment under #371 7089393818 and #597.

Seats on this head:

  • david6666666 formal APPROVED 6016890858 (LGTM first) fills the David seat.
  • Amy's required seat stays open until her own Approve on a1fff5d5, or her own recorded unavailability on this PR (task: P1 真实执行证据生产与固定记录对接 #565 7081206887).
  • David's current-head Approve fills the David seat, so the earlier Jiang substitute selection stays historical. Jiang and David cover one David-side seat; Amy's seat stays hers.
  • Approvals on 0ef4b078, 2b221448, and babe4a5e stay on those heads.
  • No outstanding CHANGES_REQUESTED.
  • Squash still waits on Amy's current-head LGTM Approve. Ready CI 45114264866 is recorded as green. This turn did not re-run tests or CI and did not re-read the five-file diff.

Dong-bot (authorized delegate)

Copy link
Copy Markdown
Contributor Author

@amy-why-3459 请优先检视当前最终头 a1fff5d(→ main,5 文件 B 纯 projector)。David 已以 6016890858 填本人默认席位,Ready 45114264866 与声明检查均绿,当前真正缺的是本头 Amy 指定席位。请按实际 diff 自主决定正式 Approve / Request changes;若无法检视,请由你本人在这里明确记录该 exact head 不可用,才可按 #565 已接受的 7081206887 使用条件替补。泛化 committer 请求、其他人的批准、代理判断或沉默均不替代这条条件。只差席位不要求重跑或改动已验证的 runtime。

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

改了什么

相对当前 main,这是一份 Benchmark(基准评测平面) 侧的纯「工人报告 → 捕获草稿」增量(5 个文件,+771/−1):

  • 新增 inferrsi.benchmark.proofs:编解码器(codec,把约定格式的报告编成/解成字节)与 证明投影器(projector,根据主机提供的捕获事实与报告字节,生成检查草稿 + 证明字节)。
  • 配套合同文档 docs/contracts/production-proofs.md、运维表一行、安装探针冷导入,以及纯函数测试。

本头 a1fff5d 相对已审头 babe4a5e / 2b221448:benchmark/proofs.py、tests/test_benchmark_proofs.py、production-proofs.md 字节未变;同步只把运维表里的 B 投影行与 main 上 #590 引入的有/无 policy 两条 generation-feedback 行加法保留。范围仍是草稿,不是已入库观测;不跑工人、不认领生产者身份。

问题与风险

未发现影响正确性、安全或声明行为的实质缺陷。

边界与不信任模型仍对齐合同:

  • 分层:只依赖 Benchmark / contracts;安装探针仍禁止拉入 Apps/Harness/Knowledge。
  • preparing 不能伪装成已有终态观察;未真正绑定工人的报告不会被信任;控制域不匹配会按检查项拒绝。
  • 错误主机内容类型走 TypeError(编程错误),与「证据缺口」区分清楚。

非阻塞小建议(不影响批准):模块内复用了 assessment / preparation 的若干包内私有助手(如 _proof_json、_cleanup_confirmed)。这在 Benchmark 平面内可接受,但后续若私有签名变动,本模块会一起跟着抖——可考虑在后续把稳定共用面正式导出。

前置依赖不挡本 diff:相对 main 的原生差异就是上述 B proof 五文件增量,可单独判断。mergeable_state=blocked 更像还在等独立 write+ 票/保护规则(当前 Ready CI 已绿),不是未合入代码依赖挡住判断。

结论

批准(APPROVE)。 理由:边界诚实、不发明测量、也不把草稿伪装成已认证观测的纯 codec/projector 增量;关键不信任路径有测试托底;相对先前独立批准的运行时字节未变,本票是对当前头 a1fff5d 的刷新检视。作者/父责任票仍按仓库规则不计。

@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 受 @amy-why-3459 委托提交的技术评审意见;不是人类席位批准。

核对 main 8a8e857 → a1fff5d 的 projector/测试和下游错误转换,并确认当前头 Ready CI 成功;未自行运行测试。想确认一处 #565 §4 的契约:已执行 worker 后,若报告把 grader 或 samples 显式置为 null,这个未完成的 family 是否属于需要持久化 execution error 的 missing family?

目前 src/inferrsi/benchmark/proofs.py 的 family is None 分支会产生 not_performed / report_family_incomplete,但不填 draft.errors;#567 的 Harness 只把 draft.errors 转成 execution errors。因此有效的另一 family 会保留,但最终记录不会有这条对应错误。若 §4 包含这个情况,建议为该 family 补一条诊断,并在回归测试中同时断言有效 sibling 保留、失败 family 无 proof、最终记录包含对应错误。若显式 null 是有意豁免,请在契约和测试里明确这一点。

Emit an InvalidRequest diagnostic for each explicit null family while preserving all independent proof bytes and failed grader results.

Agent-assisted-by: Codex (author/integrator)
Signed-off-by: zengchuang <zengchuang3@huawei.com>
Agent-assisted-by: Codex (author/integrator)
Signed-off-by: zengchuang <zengchuang3@huawei.com>

Copy link
Copy Markdown
Contributor Author

@amy-why-3459 已按 6018005577 修复,新头 cd301d7(实际 main 9d74935;5 文件 +800/-1)。意见有道理:7063812024 §4 / 7063820381 已接受 missing families 的执行错误,没有显式 null 豁免。现在每个 null family 单独发出 InvalidRequest / report_family_incomplete 诊断,同时维持 not_performed、无 proof 和有效 sibling 的原始字节;codec 仍接受 null 语法。新的三项纯回归修复前均失败、修复后通过,77 pure / 398 broader +43 subtests、零跳过、fresh bare-core 安装与 runtime 三处字节核对通过。另以本头 B + 公开 #567 的 4bae1e2 做四项真实 H 提交/离线判定/replay 的受控报告故障检查:错误已落盘,raw null report/有效 sibling/真实 failed grade 保留,只有缺项 claim 为 INCONCLUSIVE,源文件删除且禁止 capture/启动后仍复用原 Ref、attempt/record 都各一。此检查不含受限 #584,也不是 S5 主线验收。详细可复现探针源码会附在下一条评论。

@david6666666 @Bounty-hunter @Dong1017 @jiangkuaixue123 @linyueqian @hsliuustc0106 请复审本最终头,具体意见先处理。已保留此前全部失败和技术意见;本头代码有实质修正,旧票不继承。Amy/David 指定席位与实际父责任排除继续适用,CI 正在重新运行。请依据实际 diff 自主决定正式检视结论,无阻塞时首个非空行独立 LGTM。

Copy link
Copy Markdown
Contributor Author

可复现的 B/H 联合诊断源码(与正式纯 B CI 用例分列)

公开 B cd301d7 + H 4bae1e2 的四项受控报告故障检查

在隔离的验证 checkout 中组合本 PR cd301d78605a9856bfedb1a3ca8275bc86770379 与公开 H 4bae1e2d8ae2956deb4cce7d680142bb48f97146。本组合不含 #584,也不发布为临时合入 PR。把下面保存到 checkout 外的 <scratch>/test_benchmark_null_family_capture.py,使用该 checkout 的 src 和 dev 测试依赖运行 python -m pytest -o addopts= -q <scratch>/test_benchmark_null_family_capture.py;从组合 checkout 运行并使其 src 位于 PYTHONPATH。最终 4 passed。

Worker 的固定报告字节是用于传输边界的故障注入 fixture,在 prepare 前冻结,不代表真实 sampler/质量/性能。这里核验的是 B draft error 经现有 H 契约落盘,以及对应离线 claims 和重放。此前探针草稿的 retired-target 参数缺失、PASS/FAIL 期望拼写错误都已修正,不能记成产品失败或最终 4/4 的一部分。

"""Controlled worker-report faults, B projection and real H commit/replay; no task claim."""

import sqlite3

import pytest

from inferrsi.apps import api
from inferrsi.benchmark import assessment, preparation as benchmark, proofs
from inferrsi.contracts.json_v1 import decode, encode
from inferrsi.harness import execution_service, run_store
from inferrsi.harness.api import Harness, LocalCpuTarget
from tests.test_benchmark_preparation import preparation as base_preparation
from tests.test_benchmark_proofs import report
from tests.test_harness_entry_verification import evaluation


@pytest.fixture
def preparation(base_preparation):
    _, request, sources, protocol, opened, config, archive = base_preparation
    for check in protocol['required_evidence']:
        check['allowed_control_domains'] = [execution_service._CONTROL_DOMAIN]
    service = benchmark.PreparationService(
        protocol, resources=lambda role: sources[role].open('rb'), worker_role='worker-code')
    return service, request, sources, protocol, opened, config, archive


def worker_for(missing, grade):
    value = report()
    value['grader'] = {'status': grade, 'reasons': [] if grade == 'passed' else ['fixture_rejection']}
    for key in missing:
        value[key] = None
    return ("import pathlib, sys\n"
            "output = pathlib.Path(sys.argv[2])\n"
            "output.parent.mkdir(parents=True, exist_ok=True)\n"
            "output.write_bytes(" + repr(encode(value)) + ")\n").encode()


CASES = [(('grader',), 'passed'), (('samples',), 'passed'),
         (('samples',), 'failed'), (('grader', 'samples'), 'passed')]


@pytest.mark.parametrize('evaluation,missing,grade', [
    ({'worker_code': worker_for(missing, grade)}, missing, grade) for missing, grade in CASES
], indirect=['evaluation'])
def test_null_family_diagnostic_survives_real_commit_and_replay(
    evaluation, preparation, missing, grade, monkeypatch,
):
    case = evaluation
    with case['reader'].open(case['spec']['prepared_ref']['artifact']) as stream:
        prepared = decode(stream.read())
    with case['reader'].open(prepared['protocol']) as stream:
        projector = proofs.ProofProjector(prepared, stream.read())

    class Capture:
        def capture(self, phase, facts, *, artifacts):
            candidate = next(x['retained_ref'] for x in facts['bound_inputs']
                             if x['role'] == facts['candidate']['input_role'])
            with artifacts.open(candidate) as stream:
                candidate_bytes = stream.read()
            report_bytes = None
            if phase == 'finalizing':
                ref = next(x['artifact'] for step in facts['steps'] for x in step['artifacts']
                           if x['role'] == 'grader' and x['status'] == 'available')
                with artifacts.open(ref) as stream:
                    report_bytes = stream.read()
            return projector.project(phase, facts, candidate_bytes=candidate_bytes,
                                     report_bytes=report_bytes)

    capture = Capture()
    service = Harness(case['store'], case['target'], artifact_reader=case['reader'],
                      evidence_capture=capture)
    record = service.execute(case['spec'])
    assert record['started'] and record['process_outcome'] == 'exited' and record['exit_code'] == 0
    checks = {x['check_id']: x for x in record['checks']}
    assert checks['format']['status'] == checks['cleanup']['status'] == 'passed'
    for key in missing:
        assert checks[key]['status'] == 'not_performed' and checks[key]['evidence_refs'] == []
    for key in {'grader', 'samples'} - set(missing):
        assert checks[key]['status'] == (grade if key == 'grader' else 'passed')
        assert len(checks[key]['evidence_refs']) == 1
    diagnostics = [x for x in record['errors'] if x['message'] == 'report_family_incomplete']
    assert len(diagnostics) == len(missing)
    assert all(x['code'] == 'InvalidRequest' and x['stage'] == 'finalizing' for x in diagnostics)
    raw = next(x['artifact'] for step in record['steps'] for x in step['artifacts']
               if x['role'] == 'grader' and x['status'] == 'available')
    with case['reader'].open(raw) as stream:
        saved_report = decode(stream.read())
    assert all(saved_report[key] is None for key in missing)
    assert case['store'].committed(record['attempt_id']).payload['errors'] == record['errors']
    assessed = api.assess(
        {'schema_version': 1, 'record_ref': record['record_ref'],
         'primary_scope': 'p1', 'primary_claim_id': 'C'},
        workspace=case['modules'].parent, storage_config=preparation[5],
        assess_benchmark=assessment.assess, validate_assessment=assessment.validate_assessment,
        encode_assessment=assessment.encode, output_id='null-family-assess',
    )
    claims = {x['claim_id']: x['verdict'] for x in assessed.result['assessment']['claims']}
    assert claims == {'F': 'PASS', 'C': 'INCONCLUSIVE' if 'grader' in missing else
                      {'passed': 'PASS', 'failed': 'FAIL'}[grade],
                      'M': 'INCONCLUSIVE' if 'samples' in missing else 'PASS'}

    def forbidden(*args, **kwargs):
        pytest.fail('committed incomplete evidence was recaptured or executed again')

    monkeypatch.setattr(capture, 'capture', forbidden)
    monkeypatch.setattr(execution_service.local_process, '_supervise', forbidden)
    (case['modules'] / 'fixture_worker.py').unlink()
    (case['modules'].parent / 'controller/candidate.txt').unlink()
    replayed = Harness(case['store'], LocalCpuTarget(
        'retired', '2', work_root=case['modules'].parent / 'retired'), evidence_capture=capture).execute(
        case['spec'])
    assert replayed['record_ref'] == record['record_ref']
    assert replayed['errors'] == record['errors']
    with sqlite3.connect(case['store'].root / run_store.INDEX_NAME) as connection:
        assert connection.execute('select count(*) from attempts').fetchone()[0] == 1
        assert connection.execute('select count(*) from records').fetchone()[0] == 1

@Dong1017

Copy link
Copy Markdown
Collaborator

Posted by Dong-bot, an automated agent acting on behalf of @Dong1017 (always-on-bot, model claude-sonnet-5-5).

Dong-bot (authorized delegate): technical check only on cd301d78 (base 9d74935e). I found no blockers in the five-file diff. I'm posting it as a comment, not a formal Approve, and it is not an independent vote.

Amy's finding is fixed. An explicit-null grader or samples family now emits one InvalidRequest / report_family_incomplete draft error naming its check ID. The check stays not_performed with no proof. The valid sibling's proof bytes are unchanged, and the codec still accepts null syntax. The new tests assert the per-family error and byte-identical siblings. I did not run tests or CI.

Why no Approve: Dong1017 holds B/H port accountability. Under #371 7089393818, #597 and Dong1017's by-hand 7093112616, owner and Dong-bot Approves are not independent votes. They get dismissed. This replaces no earlier decision.

Seats on this head:

  • Approves from David (6016890858) and Jiang (6017725904) were on older heads and don't carry over.
  • Amy's required seat is open. It needs her own Approve on cd301d78, or her own recorded unavailability on this PR (task: P1 真实执行证据生产与固定记录对接 #565 7081206887).
  • A second independent LGTM and green CI on this head are still needed before squash. CI is still re-running per the thread.
Details

I read the full diff (diffComplete: true, +800/−1).

  • Runtime: the family is None branch in proofs.py now passes error="InvalidRequest" to emit. emit appends {code, check_ids:[key], reason}. The grader and samples loop is independent per family. The control-domain mismatch override still wins, so it is not bypassed.
  • Tests: the null-family test covers grader, samples and both. It compares the surviving blobs byte-for-byte with the complete-report projection. The failed-grade test also asserts the samples diagnostic.
  • Docs: production-proofs.md states the per-family diagnostic and that H persists it as a finalizing execution error. This matches the PR body.
  • Not verified: the joint B+H feat(harness): seal evaluation capture proofs before commit #567 probe, the fresh-wheel byte equality and the 398-test run. I took those from the PR body and thread. The probe is a transport-fault check, not S5 acceptance.
  • Non-blocking, unchanged: the module still reuses package-private helpers (_proof_json, _cleanup_confirmed, _timestamp, preparation._id, _DECIMAL).

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

改了什么

相对当前 main,这是一份 Benchmark(基准评测平面) 侧的纯「工人报告 → 捕获草稿」增量(5 个文件,+800/−1),不含未合入的 Harness / Apps / worker 实现:

  • 新增 inferrsi.benchmark.proofs:把冻结的 P1 worker 报告字节和 H 侧捕获事实,投影成可独立校验的证明草稿(还不是最终入库观测);模块本身不做 I/O、不跑 grader、不造测量样本。
  • 新增契约文档 docs/contracts/production-proofs.md,并在 docs/operations.md 登记对应运维行;tests/check_installed.py 冷导入探针补上 proofs 端口。
  • 相对上一头 a1fff5d 的实质修正(47a0e448):按 Amy 6018005577 与 #565 §4,工人已跑之后若报告里 grader / samples 被显式置为 null,除 not_performed、无 proof 外,每个缺项 family 还会各自发出一条 InvalidRequest / report_family_incomplete 草稿错误,供 H 落成 finalizing 执行诊断;有效 sibling 与真实 failed grade 的 proof 字节仍保留。codec 仍把 null 当合法传输语法。

明显问题或风险

未发现影响正确性、安全或声明行为的缺陷。

  • 空 family 诊断与 emit(..., error="InvalidRequest") 路径一致,且有三项参数化回归 + failed-grade 用例共同锁住「缺项有错、sibling 不丢」。
  • 分层干净:只依赖 contracts.json_v1 与同平面 assessment / preparation;无文件系统 / 网络 / 进程副作用。
  • mergeable_state: blocked 主要是当前头独立批准票与/或部分 CI 仍在跑(full-check 进行中),不是被未合入前置 PR 挡住;本 diff 可单独审查。

非阻塞提醒:本 PR 仍只交付 B 侧 codec/projector,不完成 #565 / #371 的整条生产验收;H 对 draft.errors 的持久化依赖既有适配,已由作者用公开 #567 头做过受控联调说明。

结论

批准(APPROVE)。当前头 cd301d78605a9856bfedb1a3ca8275bc86770379 在既有纯投影边界上,正确补齐了显式 null family 的诊断契约,测试与文档对齐,未见需要先改再合的问题。

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

改了什么

相对当前 main,这仍是 Benchmark(基准评测平面) 侧的纯「工人报告 → 捕获草稿」增量(5 个文件,约 +800/−1),不跑工人、不落盘、不封生产者:

  • 新增 inferrsi.benchmark.proofs:编解码器(codec,把约定格式的报告编成/解成字节)与 证明投影器(projector,根据主机提供的捕获事实与报告字节,生成检查草稿 + 证明字节)。
  • 配套契约文档、operations 条目、安装探针,以及纯证明测试。

相对上一版已审头 a1fff5d,本头 cd301d78 的实质增量是 Amy 指出的契约缺口修复(47a0e448):

  • 工人已经跑过之后,若报告里把 grader 或 samples 显式写成 null(语法仍合法,但该族证据缺失),投影器除了给出 not_performed / report_family_incomplete 的检查项外,还会往草稿的 errors 里写入一条 InvalidRequest 诊断,方便 Harness(主机执行平面)落成 finalizing 执行错误。
  • 有效的另一族证明、真实失败打分、清理证明字节保持不变;文档与回归测试(单缺 grader / 单缺 samples / 两者都缺,以及失败打分 + null samples)已对齐。

问题与风险

未发现影响正确性、安全或已声明行为的实质缺陷。

  • 分层干净:只依赖 contracts.json_v1 与同平面 assessment / preparation,无 Apps/Harness/I/O。
  • null 仍是合法传输语法;缺失诊断按族独立发出,不会吞掉兄弟族或把失败打分改写成「未执行」。
  • 本切片仍只产出草稿,真正的保留字节、封生产者、落诊断由 H 负责;合入后也不等于整条 P1 捕获链路已验收。
  • 非阻塞提醒:本头 full-check 等 Required CI 在审查时仍有进行中项;合入前请以本头全绿为准。mergeable_state=blocked 主要是审票/检查门槛,diff 本身相对 main 可独立判断。

结论

批准(APPROVE)。 Amy 指出的「有检查原因但无草稿错误」缺口已补上,行为与 #565 §4 及现有 H 适配一致;其余仍是此前已审过的纯 B 投影范围。不合并。

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

改了什么

相对当前 main,这仍是一份 Benchmark(基准评测平面) 侧的纯「工人报告 → 捕获草稿」增量(5 个文件,+800/−1):

  • 新增 inferrsi.benchmark.proofs:编解码器(codec,把约定格式的报告编成/解成字节)与 证明投影器(projector,根据主机提供的捕获事实与报告字节,生成检查草稿 + 证明字节)。
  • 配套合同文档 docs/contracts/production-proofs.md、运维表一行、安装探针冷导入,以及纯函数测试。

本头 cd301d78 相对已审头 a1fff5d 的实质修正是 Amy 6018005577 指出的契约缺口:工人已跑、报告里把 grader / samples 显式写成 null 时,以前只有 not_performed + report_family_incomplete 检查原因,不会往草稿 errors 里落诊断,下游 Harness(编排层)也就没法把它持久化成执行错误。

47a0e448 在 family is None 分支补上 error="InvalidRequest",合同文档同步写明「null 仍是合法传输语法,但每个未完成 family 各有一条诊断」;回归覆盖单缺 grader、单缺 samples、两者都缺,以及「真实 failed grade + null samples」时 sibling 证明字节不被改写。其余投影/编解码路径与先前批准一致。

问题与风险

未发现影响正确性、安全或声明行为的实质缺陷。

核对要点:

  • 显式 null:检查项仍是 not_performed、无 proof;草稿错误为 InvalidRequest / report_family_incomplete / 对应 check_ids,与 §4「missing family 要有执行错误、无 null 豁免」对齐。
  • 独立 family:有效 sibling 与真实 failed grade 的证明字节保留;codec 继续接受 null 语法。
  • 分层与不信任模型未变:只依赖 Benchmark / contracts;不跑工人、不认领生产者身份;错误主机内容类型仍走 TypeError。

非阻塞小建议(不影响批准):模块内继续复用 assessment / preparation 的包内私有助手;后续若私有签名变动,本模块会一起抖——可考虑把稳定共用面正式导出。

前置依赖不挡本 diff:相对 main 的原生差异就是上述 B proof 五文件增量,可单独判断。mergeable_state=blocked 更像还在等独立 write+ 票 / 保护规则(部分 Ready 检查仍在跑或票未齐),不是未合入代码依赖挡住判断。

结论

批准(APPROVE)。 理由:原先已认可的纯 codec/projector 边界仍然诚实;本头把显式 null family 的诊断补齐到草稿 errors,修好了会漏持久化执行错误的契约缺口,且有针对性回归托底。作者/父责任票仍按仓库规则不计。

Copy link
Copy Markdown
Contributor Author

记录新最终头 cd301d7 的本次 David 席位候补选择,执行已接受的 #565 / 7080299417,非旧头继承:David 已于本头先收到请求,目前完整 reviews 确认尚无本头检视。现唯一选 @jiangkuaixue123 填本头 David 席位;理由是他已实际读取完整五文件增量与 null-family 修正,当前头 6018167176(同账号 6018164873/6018165230 只计一次)为独立正式 LGTM,实时 write+ 刚复核通过。其账号不是该切片作者/材料贡献者/实际 parent。

Amy 席位保持必需。 她此前 a1fff5d 的技术 COMMENT 已处理并回报,不是本头批准或不可用声明。只有她本人按 7081206887 对本头记录 unavailable 后,才另行记录相应两账号换位;现在没有触发该例外。David 后续意见仍先处理,若他审本头则由本人填默认席位、不再双计候补。扩大 committer 的原生请求继续保留,其他账号没有同时被指派为本头 David 候补。最终 CI 尚在进行,两份有效本头指定席位审批和 required checks 齐备后才 squash。

Copy link
Copy Markdown
Contributor Author

@amy-why-3459 最终头 cd301d7 的 Ready CI 45134557271 八项全绿,声明也绿。6018005577 的 null-family 漏诊断已修复;77 pure / 398 tests +43 subtests、零跳过、fresh bare-core、四项公开 B/H 提交/离线判定/replay 和可读复现源码见正文及 7094873702。Jiang 6018167176 已按 7094979143 填本头唯一 David 候补席位,仍差 Amy 必需席位。请独立复审本头并记录正式结论,有意见先处理;技术 COMMENT 不算 Approve,也不作为 unavailable。若确实不能检视,请由 Amy 本人在本 PR 明确记录这个 exact head unavailable,再按既有 7081206887 的条件安排。

@david6666666 @Bounty-hunter @Dong1017 @jiangkuaixue123 @linyueqian @hsliuustc0106 已保留所有 committer 的原生检视请求;后续意见都会先处理,父责任/作者排除及每账号一次规则不变。网络恢复后本条仅补齐已完成的 CI 证据,不改源码、不继承旧票。

@Dong1017

Copy link
Copy Markdown
Collaborator

Posted by Dong-bot, an automated agent acting on behalf of @Dong1017 (always-on-bot, model claude-sonnet-5-5).

No new formal verdict from this account on cd301d78. The ask is addressed to Amy's seat, and Dong1017 stays on a COMMENTED parent self-check, so Dong-bot (authorized delegate) posts no Approve. The earlier check on this head (7094898926) found no blockers, and the new CI evidence doesn't change that.

  • Amy's finding: fixed in the diff. In proofs.py, the family is None branch now calls emit(..., error="InvalidRequest"). That adds one {code, check_ids:[key], reason:"report_family_incomplete"} draft error per null family. The checks stay not_performed with no proof, and the sibling proofs are unchanged.
  • CI: Ready 45134557271 is recorded as green on this head. I did not re-run it.
  • Seats:
    • Jiang has formal LGTM Approves on this head (6018164873, 6018165230, 6018167176). They count once and fill the David-side seat. David has no review on this head.
    • Amy's seat is still open. It needs her own Approve on cd301d78, or her own recorded unavailability on this PR (task: P1 真实执行证据生产与固定记录对接 #565 7081206887). A technical COMMENT is neither.
  • Not independent votes: Dong1017 and Dong-bot, as B/H port owner (task: Apps 应用层详细设计与迁移计划(CLI / Python / Plugin) #371 7089393818, feat(apps): expose saved-request evaluation CLI #597).
  • No outstanding CHANGES_REQUESTED.
Details

I read the full five-file diff (+800/−1, diffComplete: true). I did not run tests, CI, or the B+H #567 probe in 7094873702. Those results come from the PR body and thread. The probe is a transport-fault check, not S5 acceptance.

  • Tests: test_explicit_null_families_emit_diagnostics_without_losing_valid_siblings covers null grader, null samples, and both. It compares the surviving blobs byte-for-byte with the complete-report projection. The failed-grade test also asserts the samples diagnostic.
  • Control-domain override: it still takes precedence inside emit, so the new error path doesn't bypass it.
  • Non-blocking, unchanged: the module reuses package-private helpers (_proof_json, _cleanup_confirmed, _timestamp, preparation._id, _DECIMAL).
  • Merge: it still waits on Amy's current-head LGTM Approve, with green required CI on this head.

Copy link
Copy Markdown
Contributor Author

回复 @Dong1017 的 7096080086,逐项处理如下:

  1. null-family 契约项已修复并完成验证。 当前头仍为 cd301d78605a9856bfedb1a3ca8275bc86770379;每个显式 null family 单独输出 InvalidRequest / report_family_incomplete,对应 check 为 not_performed/无 proof,有效 sibling 和真实 failed grade 的字节保留。77 pure / 398 tests +43 subtests、fresh bare-core 与公开 B 本头 + H 4bae1e2 的四项提交/判定/replay 故障检查已完成;可读复现源码在 7094873702。Ready 45134557271 八项全绿。
  2. 包内助手复用按非阻塞结论保留。 _proof_json、_cleanup_confirmed、_timestamp、_id 和 _DECIMAL 都是 Benchmark 同包内的实现依赖,由相关 B 侧回归一起约束。H 和 Apps 使用公开 codec/projector 入口,不依赖这些私有助手。当前公开接口和已接受五文件切片保持稳定,这一点不新增合入前置或无实际需求的公共接口。
  3. 审批状态已对齐。 Dong 是该 B/H 切片实际 parent,技术复核仅作 COMMENT,不计独立票。Jiang 的同头多条 Approve 只计一次,按本头 7094979143 填 David 候补;旧头票不继承。当前没有未处理代码阻塞或 Request changes,仍待 Amy 必需席位的本头正式决定。

@amy-why-3459 请对本最终头完成独立复审并记录结论;如有剩余问题先指出并处理,通过时请提交首个非空行独立 LGTM 的正式 Approve。若本人确实无法检视,请在本 PR 对本 exact head 明确记录 unavailable 后,才使用 #565 7081206887 的既有条件安排。@david6666666 你的本头意见若到达同样先处理并回到本人默认席位。两份有效本头指定席位批准与当前必需检查齐备后直接 squash。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:benchmark Benchmark line: preparation ports, metric contracts, validators, and isolated workers kind:task Bounded delivery task with a delegated slice

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants