Skip to content

test(apps): assess a generated candidate through saved CLI requests - #622

Merged
zengchuang-hw merged 1 commit into
mainfrom
codex/apps-599-generated-cli-test
Nov 24, 2026
Merged

zengchuang-hw merged 1 commit into
mainfrom
codex/apps-599-generated-cli-test

Conversation

@zengchuang-hw

Copy link
Copy Markdown
Contributor

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, head 793d32543c32a4a60bd97197b88f2321d3c80b3b. 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

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

Agent-assisted-by: Codex (author/integrator)
Signed-off-by: zengchuang <zengchuang3@huawei.com>
@Dong1017 Dong1017 added kind:task Bounded delivery task with a delegated slice area:apps Apps line: CLI, Python entrypoints, host inspection, workflows, views, and adapters labels Nov 24, 2026
@Dong1017

Copy link
Copy Markdown
Collaborator

Codex, acting for @Dong1017.

The generated-candidate saved CLI regression passed on actual main product code with the #622 test driver.

Reproduction and retained evidence

Windows / Python 3.12.14. Product source: 5e963e69a030be7958854c5f762990736c65ab3c; the subsequent main revision 078d730a1a9ff71e892958728da79b1ab2d33f91 changes documentation and collaboration skills only. Test driver: 793d32543c32a4a60bd97197b88f2321d3c80b3b, tests/test_apps_generated_cli.py. One test passed.

The real generation attempt att-e7ed90dd8aba42d1b2b5bda10baf9e1e and the evaluation attempt att-48dc68ad44704fea9e7445b968d048aa were distinct. Saved CLI prepare, execute with capture and offline assess each published manifest.json and result.json. Execute and assess resolved the same evaluation RecordRef at version 1 with SHA-256 27ab3cf08f1cba13d87f29e5505af6cfc1111752091b02b934caed90ce7cf5ea. Offline F/C/M was PASS / FAIL / PASS, with C failing for the deliberate response_mismatch. This records the CPU/CLI case for #599 and #371.

@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
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 使用同一版本及摘要的评估记录。

Copy link
Copy Markdown
Contributor Author

@david6666666 请独立检视 #622 的当前提交 793d3254。这次只新增一个 CLI 回归测试,核对生成与评估使用不同的 attempt、离线评估读取 execute 提交的同一条记录,以及故意答错的候选得到预期的 F/C/M = PASS/FAIL/PASS。若通过,请提交带 LGTM 的正式 Approve,补齐第二份独立审批;若发现问题,请指出对应的断言或缺少的覆盖。

Copy link
Copy Markdown
Contributor Author

Codex, acting for @zengchuang-hw.

@Bounty-hunter @jiangkuaixue123 请独立检视这条 CLI 回归,重点看它能否抓住评估误用生成记录、或离线 assess 读错记录这两类回归。

检视范围与复验依据

#599 的验收范围。从 5e963e69 到 793d3254 只新增 tests/test_apps_generated_cli.py。用例有意生成错误答案,预期 F/C/M 分别为 PASS、FAIL、PASS。Ready CI 的 8 项检查 已通过,Windows CPU 复验 记录了两次 attempt 和离线读取的固定引用。

若独立检视通过,请对 793d3254 提交正式 Approve。若有阻塞,请用 Request changes 指出触发条件及缺少的断言。代理提交 Approve 时,请首行单列 LGTM,第二行注明代理和账号。

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

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. prepare builds the task from cpu_smoke.protocol(code.read_bytes(), control_domain=...) with a runtime derived from the fixture's own evaluation target, and execute reaches _execute_ports(..., capture_evidence=...) (src/inferrsi/apps/cli/evaluate.py:95-129), which composes PreparedCapture over the production ProofProjector + 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) and executed["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), so execution["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), and C as 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 asserts assessed["record_ref"] == executed["record_ref"] (line 43). --runtime-config stays 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_config from tests/test_apps_evaluate_cli.py:26-57); the private execution_service._CONTROL_DOMAIN accessor 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.


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

Labels

area:apps Apps line: CLI, Python entrypoints, host inspection, workflows, views, and adapters kind:task Bounded delivery task with a delegated slice

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants