Repository navigation
Conversation
Treat failure to inspect a submitted compute signature as an explicit candidate contract rejection. Keep unrelated runtime errors on the infrastructure path. Agent-assisted-by: Codex (author) Signed-off-by: Inference1 <3617237115@qq.com>
zengchuang-hw
left a comment
There was a problem hiding this comment.
NO PASS
首次独立检视:9466bc8d910c9fef55d4a9e23ee1a82950280c30…bcbe13350c5c446ab4c7d8aa1ee2278cac3e8016。签名修复本身未发现阻塞:不可检查的内建函数和循环 __wrapped__ 走已有的候选契约失败路径,原异常仍保留;模块导入、实际计算和设备同步的其他异常不会因本改动被归为候选失败。
此草案明确说交付范围待维护者确认。批准前请确认这次只交付「入口签名检查」,并把 #509 原先的 compute-time 错误归因保留为单独待办;本补丁没有修复原来的 R7 执行错误。
已核对两个变更文件和 worker 的错误分流,在隔离目录用精确函数验证两种签名失败、正常签名及无关导入异常。未单独跑完整 controller 流程或 NPU。
|
First complete review: The code change itself looks consistent with the existing entry-contract path: Before Approve, please confirm that this draft delivers only the entry-signature check, and keep the original #509 compute-time error attribution as a separate follow-up. This patch does not fix that R7 execution error. I read the two changed files and the worker's error routing. I did not run the full controller flow or an NPU benchmark. |
zengchuang-hw
left a comment
There was a problem hiding this comment.
PASS
Reviewer: dot, acting for @zengchuang-hw. Same-head scope recheck at bcbe13350c5c446ab4c7d8aa1ee2278cac3e8016 (base 9466bc8d910c9fef55d4a9e23ee1a82950280c30); previous review.
This approves only the now-explicit candidate entry-signature slice. The patch handles unavailable signature metadata and cyclic wrappers as contract rejections, without broadening compute, import, or device failure attribution. It does not resolve the #509 R7 compute-time case, which the PR now explicitly keeps separate.
The code head is unchanged. I checked the revised delivery scope against the two-file diff and #509. The prior isolated signature and unrelated import-error checks still apply. I did not rerun the full controller, NPU validation or CI.
|
@amy-why-3459 @zengchuang-hw @david6666666 Could you review the entry-signature slice on If approving, please use the repository's current-head review format, with |
|
@zengchuang-hw The current-head approving reviews linked below start with @Bounty-hunter Could you confirm the entry-signature-only scope of #548 under #509? The original R7 compute-time failure stays tracked there for its own attribution work. Ready CI passed on the current head. Ready run |
amy-why-3459
left a comment
There was a problem hiding this comment.
LGTM
PR review verdict — PASS
Reviewed base 9466bc8 and head bcbe133.
Same-head recheck after the review request in 7073632462. The earlier blocker is resolved: the PR body now limits this delivery to entry-signature inspection and keeps the #509 R7 compute-time attribution as a separate follow-up. The two-file diff is unchanged. candidate_function still maps inspect.signature ValueError (uninspectable builtin or cyclic __wrapped__) to CandidateContractError, without widening import, compute, or device-error attribution; the new candidate_import RuntimeError case remains infrastructure_failure.
Accuracy and performance comparisons are not applicable (focused contract-routing fix with regression tests). I did not rerun the full controller or an NPU benchmark.
|
@Dong1017 Could you help check the remaining merge conditions? All four current Ready runs passed and GitHub shows APPROVED on each head. On #548, the original draft-time workflow still shows If a second policy-compliant independent review is still needed, could you review #548 or #551 where you are independent of the delivery, or help route #550 to an independent reviewer for the #430 follow-up? Review policy |
Dong1017
left a comment
There was a problem hiding this comment.
LGTM
PR review verdict — PASS
Reviewed base 9466bc8 and head bcbe133. Dong-bot (authorized delegate for @Dong1017) is independent of this delivery; the author is Inference1.
Scope: this approves only the candidate entry-signature slice of #509. The R7 compute-time attribution stays a separate follow-up, as the PR body now says and as the earlier Amy and zengchuang-hw reviews required.
Verified from the two-file diff:
benchmark.pycandidate_function: a newexcept ValueErrorbranch aroundinspect.signature(function).bind(...)raisesCandidateContractError(...) from exc. The existingTypeErrorbranch is unchanged.ValueErrorandTypeErrorare unrelated classes, so the order cannot shadow either branch. The original exception stays chained.inspect.signatureraisesValueErrorfor builtins without signature metadata and for a cyclic__wrapped__chain. The two new parametrized sources,compute = iterandcompute.__wrapped__ = compute, cover those two cases. They join the existing entry-contract test that checks the round is consumed without blocking.- The new
candidate_importcase withRuntimeErrorexpectsinfrastructure_failure. Import and runtime failures therefore do not get reclassified as candidate failures. Compute, device and synchronization attribution are untouched.
Not verified here:
- I did not run the tests, the full controller flow, or any NPU or accelerator case. I rely on the PR's reported results (Python 3.12: 123 passed, 5 skipped; Python 3.11: 44 passed, 4 skipped) and on the Ready CI run the thread links.
- Merge eligibility is the integrator's call. This is one approval from my account, in addition to Amy's
LGTMreview on this head. zengchuang-hw's current-head approval begins withPASSrather thanLGTM, and it says "dot, acting for @zengchuang-hw". It may not satisfy the review-body and delegation rules until it is edited or re-posted, as already requested in the thread.
Draft-time action_required run (44884676813): I can't clear it. It is a stale workflow approval or run state on the same commit, and it needs a maintainer with Actions permission to approve or dismiss it, or to re-run it. If branch protection requires only the current Ready run, it should not block the merge. The integrator should check that on the checks page.
Non-blocking: I only reviewed #548. I did not review #551, and I have not routed #550. #550 needs a reviewer who is independent of the #430 follow-up.
Posted by Dong-bot, an automated agent acting on behalf of @Dong1017 (always-on-bot, model claude-sonnet-5-5).
Governing Issue and delivery slice
Refs #509
The delivery slice is limited to inspection of the candidate entry signature. The R7 compute-time failure attribution is a separate follow-up under #509. Review criteria
Problem
The Qwen denoising worker checks whether
computeaccepts the frozen arguments before invoking it. A callable with unavailable signature metadata or a cyclic__wrapped__chain makesinspect.signatureraiseValueError. The worker records that deterministic rejection as an infrastructure failure, which blocks the managed session.What
Route signature inspection failures through the existing
CandidateContractErrorpath. Extend the worker and assessor regression cases with an uninspectable callable, a cyclic wrapper and an unrelated candidate-import runtime failure.Why needed
One invalid candidate entry should consume its submitted round and retain the failure evidence. The existing controller can then evaluate the next candidate or independently retest the selected implementation.
Design and implementation
Catch
ValueErrorat the candidate signature check and retain the exception chain in the worker trace. The existing worker receipt and assessor carry the rejection ascandidate_failure / FAIL. Compute-time exceptions, device setup and synchronization keep their existing attribution rules.Knowledge authorship declaration
Not applicable. The patch touches the standalone Qwen worker and its tests.
Checks and dependencies
candidate_failure. Unknown runtime failures still map toINCONCLUSIVE.ruff check src tests toolsandgit diff --checkpassed.Remaining work and Issue closure
The requested independent review covers the entry-signature slice. The R7 compute-time failure needs its own attribution evidence. This PR was checked on CPU with 80 passed and five optional cases skipped across the Qwen worker and managed optimization session tests.