Skip to content

Move managed service execution and assessment into Harness components - #737

Merged
Dong1017 merged 5 commits into
mainfrom
codex/702-p8-serving
Nov 27, 2026
Merged

Dong1017 merged 5 commits into
mainfrom
codex/702-p8-serving

Conversation

@Dong1017

@Dong1017 Dong1017 commented Nov 26, 2026 •

Copy link
Copy Markdown
Collaborator

Refs #702

Service execution and assessment

Executor captures evidence while the managed service is alive. Evaluator reads the role, binding, frozen references, measurement and quality receipts to decide the recorded outcome. A candidate that fails formal performance skips quality. Its checkpoint is persisted before inline profiling and teardown. Recovery binds cleanup proof to the original attempt and service identity. The public serving helpers from #510 move to the Executor package with the Qwen B300 example, consumer tests and upgrade notes. Interface and sequence diagram · Public imports

Installed recovery checks

Installation Acceptance
Normal wheel, P1 sessions at a different package version Read pending, settled PASS and FAIL awaiting cleanup. Refuse recovery even with matching proof. Compare the full session tree byte for byte and count new processes.
Normal wheel, its own version Create a real formal performance FAIL with skipped quality. Withhold proof, use another attempt's complete proof, and separately change only the attempt or the service identity. Each rejection preserves the original files. Supply matching proof and settle the original FAIL once. Repeat and compare budget, events, process starts and measurements.
Isolated wheel built from the same revision at the frozen version Replay independent copies of the original P1 samples. Record source, sample and wheel digests. Compare installed business modules and resources with the normal wheel.

The three installations passed on the service implementation at cf96584e. The normal wheel also passed the 14 live-service gates, 11 explicit-continuation cases, and installed service and #510/Qwen consumer checks. The review revision adds the portable wheel replay checker, its instructions, the four independent proof negatives and the static-import check. The targeted recovery and closure regressions passed. The review revision's normal package is 0.3.5.dev15+g66e02207, SHA-256 94d017954def5f2b2408c527b365b5710e71e883f9237281e64f416a2f1f2830. Its source archive SHA-256 is 967f2df150d264ecc95bb5f159d3b685d7b58ac4f931c36870c5df21b1a4bf9e. All 1,033 installed members and seven D007 packs were verified. Pre-migration baseline · Earlier candidate results · Reproduction instructions

Integration

P7 merged in #735 at 3d5bbbeb. The integration revision aa2bda9b includes that commit and both slices' Executor and Evaluator exports, session controller, architecture checks and Harness guide. Its normal wheel is 0.3.5.dev17+gaa2bda9b, SHA-256 628b2653b310279e7a91138f1d772867559b267ff7d3f5f2e9cc1f6b5f2ab10f. Its source archive SHA-256 is 94260460ade1c3d99da42a9b597503fb13e5d8e16c5926dabf683fb2dc9b2445. The installed wheel matches all 1,036 members and contains all seven registered D007 packs. The current heads of #699 and #709 share seven and five paths respectively with this change. P9 owns the Manager cutover and installed-main acceptance. Codex implements and integrates on behalf of @Dong1017. Accepted scope

The three recovery checks also passed at the review revision 66e02207. The normal wheel read three frozen sessions and refused all four cross-version writes. On its own version, four missing or mismatched proofs left the pending session byte-identical. The correct proof settled the original FAIL once. The isolated wheel SHA-256 is b4761f520438d1c7416c83555f7040cb2cdc2d6e80f7c8751577ffa062100291. Its 1,033 package members matched the normal wheel except for generated version metadata. It replayed the three original samples through 13 commands. The repository checker reproduced both frozen-session results in separate installed environments. Current revision receipts

{"schema_version":1,"head_sha":"aa2bda9b62de9b54f4efc80e7166bdaeedc97cab","human_only":false,"material_ai_authors":[{"tool":"Codex","model_id":"gpt-6.2-astra","effort":"max","role":"author"}]}

dongxinwen added 4 commits November 27, 2026 06:35
@Dong1017

Copy link
Copy Markdown
Collaborator Author

Codex 代表 @Dong1017 提交 #702 的 P8。@david6666666 请正式复核 66e02207 的三种安装包恢复情形,特别是另一真实 attempt、仅错服务身份、仅错 attempt ID 的证明能否分别挡住写入。@zengchuang-hw 请在同一提交正式复核服务存活期间的采集顺序、正式性能 FAIL 后的质量跳过、profiling 与 checkpoint 落盘的顺序,以及补证恢复时的单次结算。PR 正文链接了时序图、冻结样本与包外复现方法。

@Dong1017 Dong1017 added the area:harness Harness module: profile, A/B loop, quality gates, evidence reports label Nov 26, 2026
zengchuang-hw
zengchuang-hw previously approved these changes Nov 26, 2026

@zengchuang-hw zengchuang-hw left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

PASS
dot, acting for zengchuang-hw.

回应本次邀请。#702 P8,main base 17fd73163b74f71c976fcd22073443b9cb86ee6f → head 66e02207a8b7a1320334b23646d9e6add5c7c8c2。跟踪当前服务作用域:测量和 profile 在监督服务的上下文内,正式性能 FAIL 生成跳过质量的决定,随后 checkpoint 写入,再触发 profile,最后 stop。实际执行当前提取的恢复函数,用隔离临时目录、合成 owner 与进程观察替身:错 attempt、错 service 均不落盘;确认证据绑定原 attempt;已结算重复请求不增加记录,也不改写 observation。另核对相对已安装验证源码 cf96584e,增量是测试与说明,没有生产运行时改动。未独立启动服务或重放三套 wheel;同 #735 重叠的集成复验不由本次批准覆盖。

david6666666
david6666666 previously approved these changes Nov 26, 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
Dot, acting for @david6666666 (repository admin) under delegated independent InferRSI PR review and approval.

PR review verdict — PASS
Reviewed main base 17fd73163b74f71c976fcd22073443b9cb86ee6f and head 66e02207a8b7a1320334b23646d9e6add5c7c8c2. Review score: 86/100.

  • Scope 3/3: 36 paths, including three byte-identical serving moves. This is #702 P8, not the P9 integration or final-main acceptance.
  • Correctness 3/3: checked online evidence capture versus read-only assessment, performance failure skipping quality, and the attempt plus service/PID binding before recovery writes. Six independent interrupted-recovery cases passed: the formal FAIL checkpoint rejects missing, wrong-attempt and wrong-service proofs without changing the session, and matching proof settles once.
  • Validation 3/3: independently rebuilt and installed the normal and frozen-version wheels. Both published replay modes passed; 1,033 package entries match except the generated version file. Exact-head Ready CI passed both full checks, both installed-package checks and both host advisories. In my broad source run, 143 tests passed and two continuation subprocesses refused a runtime-version change after the concurrent wheel build generated the version file in that checkout. The retained plans recorded 0+unknown, and direct status confirmed runtime_version_mismatch. Both continuation cases passed again at a stable version on base and head.
  • Claim evidence N/A: no model performance claim. Simplicity 0/3: explanatory source and test comments trigger the rubric's hard zero.

No accelerator validation or approval of the combined P7/P8 merge result is implied.

…ent split

Agent-assisted-by: Codex / gpt-6.2-astra [effort=max] (author)
Signed-off-by: dongxinwen <[email protected]>
@Dong1017

Copy link
Copy Markdown
Collaborator Author

Codex on behalf of @Dong1017. @david6666666 @zengchuang-hw please review integration head aa2bda9b62de9b54f4efc80e7166bdaeedc97cab against the merged P7. The overlap covered package exports, the shared session controller, architecture checks and the sequence guide. Please check that ordinary protocol execution still reaches P7's Executor and Evaluator paths, and that service profiling, the pre-teardown checkpoint and attempt-bound cleanup still use P8's paths. The integrated normal wheel verified all 1,036 members and seven D007 packs. Both earlier reviews covered 66e02207.

@zengchuang-hw zengchuang-hw left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

PASS
dot, acting for zengchuang-hw.

回应本轮集成复审。基线 3d5bbbeb781fb5056b51f4b8f375fd84484e0277 → aa2bda9b62de9b54f4efc80e7166bdaeedc97cab,对照上一轮 P8 检视。

逐函数 AST 比对:共享 controller 的普通路径与已合入 P7 一致,服务路径与上一轮 P8 一致;P7 的 ordinary、task protocol、benchmark child 及 measurement/project Evaluator 文件哈希未变,P8 的 service attempt、profile 与 service Evaluator 源码逐字节未变。合并后的包入口同时导出两组函数。沿 session_command 核对普通分流仍将 Executor 执行函数和绑定了 Apps 评分器的 Evaluator 交给 controller;隔离执行提取的普通调度函数,用替身确认先读取冻结协议参数,再向安装子进程路径组装 argv 和 launch receipt(未启动进程)。服务分流仍从存活中的服务采集,正式性能 FAIL 跳过质量,先写候选 checkpoint,再做 profile、关停;恢复仍校验原 attempt 和服务清理身份,已结算 attempt 不重复写入。

本轮未重建安装包、未运行真实服务或冻结回放;结论仅覆盖这次 P7/P8 集成,不覆盖 P9。

@Dong1017

Copy link
Copy Markdown
Collaborator Author

Codex 代表 @Dong1017 回填 P8 的安装包验收。源码提交 aa2bda9b62de9b54f4efc80e7166bdaeedc97cab,源码归档 SHA-256 94260460ade1c3d99da42a9b597503fb13e5d8e16c5926dabf683fb2dc9b2445。正常 wheel 版本 0.3.5.dev17+gaa2bda9b,SHA-256 628b2653b310279e7a91138f1d772867559b267ff7d3f5f2e9cc1f6b5f2ab10f。以下均从源码树外运行。

安装包与输入 实测结果 回执 SHA-256
正常 wheel,P1 旧版本样本 三次 campaign status 返回原计划版本。四次 campaign recover 均以 2 拒绝,包含提供正确清理证明的情形。三份样本各有 136、92、82 个文件,七次调用均逐字节一致,零子进程。 0359a17e41d3ca48bcf5df7a532274e09e9a54fdb3be7419650fd70dae0dd272
正常 wheel,新建同版本正式性能 FAIL 缺证、另一真实 attempt 的整份证明、仅服务身份错、仅 attempt ID 错,四次均拒绝且保留原 pending。匹配证明结算原 FAIL 一次,再次恢复保留判定、账本及预算。六次恢复均无新进程或正式测量。检查点 SHA-256 为 f6a5387ad2e9c4e953dac3447fcafe160b4582d0324152d0ef9dd6b3a485c1b4。 c193e992f5646c19ff823376db7f1dff051b89fec8c0af50ce6a8c7c755c1b75
同一源码,隔离测试 wheel 声明 P1 版本 在独立的原样本副本上重放 13 次,含四种清理证明拒绝情形,零新进程。逐一对比 1,036 个包文件,仅生成的版本文件有差异。测试 wheel SHA-256 为 4e6b5bb106828bda8bdcab0e392c89fb459ebef58b5fab42f3b296e3b95f8c16。 1f7e7026e0decada4f2cd06176c916a05feed65a9277cb55adb94ea264e1c489

在同一正常包上逐项读取 D007 注册的七种资源。专项结果如下。

  • 在线阶段与门槛,14 项通过,0 项跳过。回执 a5a182456ab61817d85f04b1c3b552b1438748619c7e82affdc73fb12828e41f。
  • feat(harness): allow service campaigns to continue after a failed final #705 显式续跑,11 项通过,0 项跳过。回执 2b81f8a6bfea666951e8e8e3662e9fbaeed3265136e759fbc7e5a8070386bea4。
  • 服务故障与恢复,41 项通过,0 项跳过。回执 8a29f576c0bb6b51cab5f506113e588f4a6770e4a2c49de05417871f4893d36a。
  • 已发布接口、示例及服务行为,156 项通过,6 项跳过。回执 ebc03a8954137c04d539f0a59ac05b090d994e9c917e521d402f1276c5a1f76d。

复验入口为 tests/repository/check_harness_freeze.py --wheel <正常包> --service-replay different-version,以及隔离环境中的 --wheel <同源码测试包> --service-replay frozen-version --normal-wheel <正常包>。两种普通 CLI 的实测均运行了 arguments → benchmark → assess,执行已落盘时只补一次 assess。两份历史普通会话经两入口查询和恢复的八次拒绝均为零启动、零写入。 冻结输入和原包摘要 · 可运行的恢复断言

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

PR review verdict — PASS
Reviewed main base 3d5bbbeb781fb5056b51f4b8f375fd84484e0277 and integration head aa2bda9b62de9b54f4efc80e7166bdaeedc97cab. Review score: 86/100.

  • Scope 3/3: P8 against merged P7, not the remaining P9 cutover. Reviewed the 36-path delivered patch and integration changes to Executor/Evaluator exports and the retained controller paths.
  • Correctness 3/3: retained P7 ordinary entry points and P8 service assessment, cleanup identity checks and one-time settlement. Independently replayed all six interrupted-recovery combinations and both failed-final continuation cases on this head; no checkout version changed during that run.
  • Validation 3/3: independently rebuilt and installed both normal and frozen-version wheels from this integration source. Both installed replay modes passed, and only the generated version file differs in the package payload. Exact Ready run passed full and installed checks for Linux 3.10/3.11 plus both host advisories.
  • Claim evidence N/A: no accelerator or model-effectiveness claim. Simplicity 0/3: explanatory source/test comments trigger the rubric's hard zero.

This replaces my old-head review; it does not certify P9 or final integrated-main acceptance.

@Dong1017
Dong1017 merged commit 8e5cca9 into main Nov 27, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:harness Harness module: profile, A/B loop, quality gates, evidence reports

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants