Repository navigation
Assemble fixed-record offline assessment in Apps - #444
zengchuang-hw merged 6 commits into
Conversation
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> Agent-assisted-by: Codex (author)
Signed-off-by: zengchuang <zengchuang3@huawei.com> Agent-assisted-by: Codex (author)
|
@amy-why-3459 @Dong1017 @david6666666 请复审 #371 的离线评测装配。当前提交 |
|
复审范围:base 已核对、没有问题的部分:
暂不 Approve,有一个问题需要确认:非主 claim 被省略时,结果仍会被归档成成功。
非阻塞:Benchmark 抛出的 |
Signed-off-by: zengchuang <zengchuang3@huawei.com> Agent-assisted-by: Codex (author)
|
@amy-why-3459 已在 |
amy-why-3459
left a comment
There was a problem hiding this comment.
LGTM
PR review verdict — PASS
增量复审:8bee52db8cef67091d42db965bb3c37ab0180494…df74848780c80dfdc26a79c3eb6dfd814536d102(上次已对 1b888118…8bee52db 全量审阅);当前 head 上 CI 7 项均已通过。
- 上次的问题已修复:
src/inferrsi/apps/api.pyL383 改为returned_keys != claim_keys全等校验,返回的 claims 必须与冻结协议claim_definitions的完整有序序列一致,省略任何 claim 都会在归档前按AssessorError/assessor_response_validation拒绝,符合schema-and-semantics.md§3 与 V34(c) 的“完整结果”前提。 tests/test_apps_assess.py新增omitted_non_primary_claim(删除claims[0],主 claimC保留),断言 exit 2、AssessorError、assessment_ref is None且不写assessment.json,覆盖了上次指出的缺口;原有omitted_claim/duplicate_claim/reordered_claims用例在全等校验下仍成立。- 本次增量只改这两处,未引入其他行为变化。上次提到的
PublicError结果中primary_claim_id/primary_scope为 null 属于非阻塞建议,不影响通过。
|
@Dong1017 @david6666666 |
There was a problem hiding this comment.
LGTM
PR review verdict — PASS
Reviewed base 1b88811870d583469437c8a28ae3f8a35d54da10 and head df74848780c80dfdc26a79c3eb6dfd814536d102. Governing #371 Apps offline assessment slice. Independent via cursor[bot]; not the PR author (zengchuang-hw).
Verified
- Apps
assessbinds fixed record_ref → prepared/protocol verify → primary claim membership → injected Benchmark assess/validate/encode → claim-order equality (returned_keys != claim_keys) → archive → publish; foreign artifacts rejected viaAssessmentArtifacts. tests/test_apps_assess.pycovers primary exit codes, omitted/reordered/duplicate claims (incl.omitted_non_primary_claim), foreign evidence, SQLite revision reassess, and publication failure retaining only committed refs. Local: 20 passed; ruff clean on changed Apps files.- Hosted Ready checks on this head: full-check 3.10/3.11, installed-package 3.10/3.11, declarations, pr-references, dashboard-browser, knowledge-model-policy — success. Amy APPROVE 5904832055 already on this head.
- Remaining production Benchmark ports stay in #434 as disclosed. No merge by this review.
Dong1017
left a comment
There was a problem hiding this comment.
LGTM
PR review verdict — PASS
Reviewed base 1b88811870d583469437c8a28ae3f8a35d54da10 and head df74848780c80dfdc26a79c3eb6dfd814536d102. Governing #371 Apps offline assessment assembly. Independent review as @Dong1017 (write-eligible); not the PR author (zengchuang-hw). Amy APPROVE 5904832055 and cursor[bot] APPROVE 5907086609 already on this exact head — this vote is the second ruleset-eligible write-account Approve.
Verified
- Apps
assessbinds fixedrecord_ref→ prepare/protocol verify → primary membership → injected Benchmark assess/validate/encode → claim-order equality (returned_keys != claim_keys) → archive → publish; foreign artifacts rejected viaAssessmentArtifacts. - Amy’s prior blocker is fixed on this head: full claim-sequence equality plus
omitted_non_primary_claimregression (AssessorError/2, noassessment.json). - Local:
tests/test_apps_assess.py20 passed; ruff clean on changed Apps files. Hosted Ready checks on this head: full-check 3.10/3.11, installed-package 3.10/3.11, declarations, pr-references, dashboard-browser — success.mergeable_state=clean. - Production Benchmark ports remain in #434 as disclosed. No merge by this review.
|
Follow-up after the merge.
I found no blocking defect in the merged head |
Refs #371
Delivery slice
Wire Apps offline assessment to a fixed Harness record revision, the frozen protocol, and the Benchmark assess, validate, and encode ports. Limit evidence reads to the selected revision and its declared artifacts. Check the primary claim before assessment, preserve the frozen claim order, archive the canonical assessment, and publish the standard result. This slice builds on the mainline deliveries in #432 and #433.
Validation
On main plus these commits, 231 focused tests passed and 2 platform-specific tests were skipped. The test set covers Apps, the module import gate, RunStore, and Harness execution. Ruff and the diff check passed.
Regression coverage includes reassessing an old SQLite revision in a new process, primary-claim exit codes, foreign evidence rejection, assessment readback, and preserving only committed references after publication failure.
Remaining integration
The production Benchmark ports and CPU-task acceptance remain tracked in #434. This PR validates the Apps boundary with injected fixture ports.