Repository navigation
test(apps): assess a generated candidate through saved CLI requests - #622
Conversation
Agent-assisted-by: Codex (author/integrator) Signed-off-by: zengchuang <zengchuang3@huawei.com>
|
Codex, acting for @Dong1017. The generated-candidate saved CLI regression passed on actual main product code with the #622 test driver. Reproduction and retained evidenceWindows / Python 3.12.14. Product source: The real generation attempt |
amy-why-3459
left a comment
There was a problem hiding this comment.
LGTM
Codex, acting for @amy-why-3459.
PR review verdict — PASS
评审依据
已审阅 5e963e69 到 793d3254 的完整差异。新增测试通过保存的 CLI 请求执行 prepare、带 --capture-evidence 的 execute 和离线 assess。断言分别核对生成与评估的 attempt ID、执行结果中的原始生成引用,以及离线评估读取的确切评估记录。故意答错的候选得到预期的格式 PASS、正确性 FAIL、测量 PASS。
该提交的八项 Ready CI 检查均已通过。另核对了 PR 中的 Windows / Python 3.12 独立复验记录,其生成与评估 attempt 不同,execute 和 assess 使用同一版本及摘要的评估记录。
|
@david6666666 请独立检视 #622 的当前提交 |
|
Codex, acting for @zengchuang-hw. @Bounty-hunter @jiangkuaixue123 请独立检视这条 CLI 回归,重点看它能否抓住评估误用生成记录、或离线 assess 读错记录这两类回归。 检视范围与复验依据#599 的验收范围。从 若独立检视通过,请对 |
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.
PASS — reviewed 793d32543c32a4a60bd97197b88f2321d3c80b3b against 5e963e69a030be7958854c5f762990736c65ab3c. The only change is an integration regression: it uses a real sealed CPU generation, passes saved requests through the CLI prepare and execute paths, checks that execution names the original generation but commits under a distinct evaluation attempt, and binds offline assessment to that exact evaluation RecordRef. The deliberately wrong candidate yields separate F/C/M verdicts of PASS/FAIL/PASS. No product source changed; the post-base main changes are documentation and collaboration guidance.
Verified all eight Ready jobs and the required knowledge policy on this head. I reviewed the fixture and Windows reproduction record but did not run them locally. This is the bounded #599 regression, not shared #371 acceptance.
Dong1017
left a comment
There was a problem hiding this comment.
LGTM
Posted by Dong-bot, an automated agent acting on behalf of @Dong1017 (always-on-bot, model claude-sonnet-5-5).
PR review verdict — PASS
Reviewed base 5e963e69a030be7958854c5f762990736c65ab3c (the #621 merge) and head 793d32543c32a4a60bd97197b88f2321d3c80b3b. The whole diff is one new file, tests/test_apps_generated_cli.py (+46); diffComplete: true, no product source touched.
Verified on this head:
- The saved-request chain is the real one, not a stub.
preparebuilds the task fromcpu_smoke.protocol(code.read_bytes(), control_domain=...)with a runtime derived from the fixture's own evaluation target, andexecutereaches_execute_ports(..., capture_evidence=...)(src/inferrsi/apps/cli/evaluate.py:95-129), which composesPreparedCaptureover the productionProofProjector+EvidenceCapture(src/inferrsi/apps/handoff/production_capture.py:17-34). - Attempt separation is asserted on facts, not labels:
request["attempt"]["attempt_id"] != generation_ref["attempt_id"](line 32) andexecuted["record_ref"]["attempt_id"] == request["attempt"]["attempt_id"](line 38).result["execution"]is the committed Harness record itself (src/inferrsi/apps/storage/result.py:71-85), soexecution["generation_record_ref"](line 37) is lineage echoed from the committed payload, not a CLI-added field. - The claim split is independent, not derived: the deliberately wrong generated candidate yields F PASS / C FAIL / M PASS (lines 44-46), matching the same fixture's own lineage expectation (
tests/test_harness_generation_lineage.py:188-190), andCas primary claim maps to exit 8 (src/inferrsi/apps/storage/result.py:10-20,44). - Offline assess is bound to the exact evaluation revision: the request carries
executed["record_ref"]and assertsassessed["record_ref"] == executed["record_ref"](line 43).--runtime-configstays optional for assess (evaluate.py:24), so that leg cannot construct an execution port. - Reused helpers are the existing ones (
save,arguments,execute_request,target_configfromtests/test_apps_evaluate_cli.py:26-57); the privateexecution_service._CONTROL_DOMAINaccessor is the same one the lineage fixture already uses (tests/test_harness_generation_lineage.py:116).
Scope against #599 (closed; its Delivered/Verified card names #622 as the saved-CLI generation→evaluate→assess regression) and the #371 Apps parent: this is that bounded test only, not shared D023/t108-v4 acceptance and not a service or performance claim.
Not verified here: I did not run the test, and I did not run CI — the eight green Ready jobs are reported by the two seeded reviews, not re-checked by me. Redundant import ... as ... aliases and the private-attribute access follow existing test idiom; style, not blockers.
Seat status: two qualifying independent Approves already sit on this head — @amy-why-3459 (6039619498) and @david6666666 (6040176152) — so the #599 two-approval gate is met independently of this review. This is Dong-bot's authorized-delegate technical check; per the #371 / #599 seat records a Dong1017/Dong-bot review does not count as an independent vote.
Governing issue and delivery slice
Refs #599
This test-only follow-up runs the genuine generated candidate through the saved CLI surface now that #620 and #621 are both on actual main. It exercises real prepare,
execute --capture-evidence, offline assess and the distinct generation/evaluation attempt identities. The generated UTF-8 candidate intentionally misses the frozen answer, so the independent F/C/M verdicts must be PASS/FAIL/PASS.Base
5e963e69a030be7958854c5f762990736c65ab3c, head793d32543c32a4a60bd97197b88f2321d3c80b3b. Anchors touched: none.Verification
The same single-file test ran against the pre-merge combination of the reviewed #620 and #621 trees together with the Apps migration check: 39 passed. This PR targets their actual squash merges on main and relies on current-head Ready CI for final verification. No production source or contract changes. This makes no performance claim.
Two eligible independent current-head LGTM approvals and required green CI precede squash. After merge, #599 will be rechecked on actual main and receive its Delivered / Verified / Limits acceptance card.
Knowledge authorship declaration