Skip to content

Freeze Harness migration inputs and recovery contracts - #719

Merged
Dong1017 merged 2 commits into
mainfrom
codex/702-p1-freeze
Nov 26, 2026
Merged

Dong1017 merged 2 commits into
mainfrom
codex/702-p1-freeze

Conversation

@Dong1017

@Dong1017 Dong1017 commented Nov 26, 2026 •

Copy link
Copy Markdown
Collaborator

Governing Issue and delivery slice

Refs #702

Codex, acting for Dong1017, submits P1 of the accepted Harness migration. This freezes the unmodified runtime at 3efb03ea71356786b19b705e53f65267c17d19bf and moves the proposed session sequence diagram into the Harness README. The P1 claim records the owner and freeze point. The owner's P0 decision leaves the existing close-authorization label on the governing Issue.

Knowledge authorship declaration

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

Changed artifacts and evidence

P1 requirement Artifact and observed result
Ordinary and service recovery inputs Five read-only session archives, separate cleanup proofs and replay instructions. An installed baseline wheel passed six replays on relocated copies outside its source tree.
Distinguish retained execution from a new launch Ordinary project AB/BA reused eight retained steps with zero new child processes. Both public packaged-session commands reused the arguments child and benchmark and ran the assessor once. A repeat started zero children. Manifest and launch receipts
Settle the original service round once Pending PASS accounts for its existing profile once. Settled PASS is idempotent. For a formal performance FAIL with quality skipped, all four negative cases retained the 82 original files byte for byte. Missing proof, another real attempt's entire proof, a mismatched service alone and a mismatched attempt ID alone each returned exit 2. The matching proof settled the same FAIL once. Replaying it left the result, ledger and budget stable. All six recoveries launched zero children. Replay assertions
Pin actual package contents, callers and boundaries Compared all 1,021 installed package files with the supplied wheel, checked all seven D007 packs and the 38-file static fingerprint. The inventory covers all 72 frozen paths. The sequence diagram includes ordinary per-step early stopping and the live-service capture between checkpoint and cleanup.

Checks and dependencies

  • Baseline normal wheel inferrsi-0.3.5.dev4+g3efb03ea7-py3-none-any.whl, SHA-256 3fa6cd9372d75c5dd4575395fb709ef0c243ad52ef8e259137685927156d7944. Local verification used Windows, a non-editable install and independent copies of the frozen sessions. The manifest records actual identifiers, SHA-256 values and observed results.
  • Both new fixture tests and the targeted repository, prepared-binding and RunStore checks ran together. 133 passed, 1 skipped (Windows symlink privilege). All 11 existing explicit-continuation regressions passed against the old installed package. The run CLI yielded 0/PASS, 1/FAIL and 2/INCONCLUSIVE on the baseline scenarios. Ruff and the staged diff check passed.
  • The full local run stopped at the first three failures in existing tests/apps/test_anthropic_edit_agent.py tests after 307 passes and six skips. The observed differences were CRLF bytes, missing symlink privileges and unavailable POSIX FIFO support. Ready CI provides the separate Ubuntu full-suite and wheel results.
  • The freeze incorporates the merged runtime-identity and explicit-continuation changes. The fixture guide records the live file intersections for the performance-target, task-intake, knowledge and resource-pack changes. Each later migration uses its then-current integration head. Anchors touched: none.

Remaining work and Issue closure

P2–P9, the migrated-package recovery matrix, the post-merge installed-wheel verification and Issue closure remain open. After this slice merges, the governing Issue will link to the README as the sole maintained sequence diagram. Dong1017 owns acceptance and authorized Codex to integrate the accepted slices.

Signed-off-by: Dong1017 <[email protected]>
Agent-assisted-by: Codex / gpt-6.2-astra [effort=max] (author)
@Dong1017 Dong1017 added the area:harness Harness module: profile, A/B loop, quality gates, evidence reports label Nov 26, 2026
@Dong1017

Copy link
Copy Markdown
Collaborator Author

Codex 代表 Dong1017 提交 P1。烦请在本 PR 对 5017c0c8 提交正式 review。

  • @david6666666 请核对旧 wheel 的六次包外重放,特别是同一打包样本在两个 CLI 入口各只补一次 assess,以及原版 wheel、样本和静态指纹的对应关系。
  • @amy-why-3459 请核对三种拒绝路径(缺清理证明、另一真实 attempt 的证明、同 ID 错服务),以及原 FAIL 只结算一次、pending PASS 只计一次原 profile。
  • @zengchuang-hw 请核对 38 项静态指纹、72 路径清单及图中两段在线交接(普通每步早停、服务 checkpoint 后采集 profile)。P5/P6 会逐片核对包层导入和指纹增减。

冻结清单、回执与重放命令

@Dong1017

Copy link
Copy Markdown
Collaborator Author

#702 (comment) this insights from @fake0fan should be considered also.

@Dong1017

Copy link
Copy Markdown
Collaborator Author

Codex 代表 Dong1017 跟进。已把 fake0fan 审查中影响验收的内容写进 #702 正文和本 PR:普通项目逐步检查并在首次拒绝后停止启动;服务候选先保存 checkpoint,再在当前服务上按条件采集 profile。冻结清单也列出了随对应切片迁移的控制器指纹、隔离根、文档引用和安装包入口探针。后续 P7/P8 须用行为测试验证图上的两个交接点。决定记录 · 本提交的图

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

Dot,代表 @amy-why-3459。复核 5017c0c8(base 54342cc5)中清理与结算的验收请求。回放驱动已断言原 FAIL 用有效证明只结算一次、原 pending PASS 的 profile 只入账一次,重复恢复不改变状态或事件且不启动子进程。我核对了回放断言和冻结点 3efb03ea 的实际检查,未独立运行旧 wheel。

还缺一个只改变 attempt ID 的对照。 test_cleanup_proofs_distinguish_attempt_and_service_identity() 明确要求 wrong-attempt.json 同时具有不同的 attempt ID 和不同的服务身份;wrong-owner.json 则只错服务。两份都拒绝,仍不足以保证迁移保留了 attempt ID 检查:只靠服务身份检查就能挡住这两个负例。冻结点 _service_cleanup_receipt() 分别检查 attempt ID 和服务 ID/PID,回放也应分别覆盖。

建议保留现有两份证明,再从有效证明派生只替换为另一真实 attempt ID 的合成负例,保持服务列表、PID 和其他字段不变。独立断言该例 exit 2、零子进程、新观察和结算均未产生,随后原有效证明仍只结算一次。这样 P8/P9 可区分两道校验是否各自保留。暂不批准。

@Dong1017

Copy link
Copy Markdown
Collaborator Author

Codex 代表 Dong1017。@amy-why-3459 按你的 review,在 593f2afc 增补了仅替换 attempt ID 的对照。新证明使用另一真实轮次的 ID,候选原服务列表、PID、时间、理由及其余字段逐项相同。测试也锁定了反向对照只改服务列表。

旧版正常 wheel 在四种拒绝情形各返回 2。整份会话的 82 个文件逐字节一致,零子进程,原轮次没有新增 observation。提交原匹配证明后恢复同一 FAIL 并结算一次,再恢复没有新增事件、进程或预算扣减。五份会话和旧 wheel 的摘要保持原值,六组包外重放已重跑通过。新证明、SHA-256 和实测回执 · 重放断言

请 @amy-why-3459 复核两条单变量反例和单次结算,请 @david6666666 复核冻结样本及两个普通 CLI 的旧包回执,请 @zengchuang-hw 复核静态指纹和时序图。正式 review 对应当前提交 593f2afc。

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

回应当前 head 的复核邀请。#702 P1 冻结范围:base 54342cc573896c953cb0e2fb8734ef28262b5bda → head 593f2afc0d02139c2be3dde2edc8c28aafc1e876;样本冻结源另为 3efb03ea71356786b19b705e53f65267c17d19bf。

  • 静态指纹与清单: 从冻结提交读取原始文件,运行其 source_files() 复算 38 项闭包及每项 SHA-256;与 runtime-sources 完全一致。比对冻结 Git 树与 TSV,72 个受跟踪 Harness 路径逐一对应,无漏项或重复。
  • 两处在线交接: 冻结的普通执行入口在每个步骤后调用 inspect_step,拒绝时不再启动下一步;服务路径先冻结候选 checkpoint,再按判定决定同一服务上的 inline profile,最后清理。图中的顺序一致。
  • 独立校验了六个 ZIP 的 SHA-256、普通/服务计划固定字段和 cleanup 两个单字段反例。只读归档,没有执行其中内容;未独立用原 Windows wheel 重跑六次恢复、包安装或完整套件。此批准仅覆盖 P1 证据与时序图,不提前认可后续迁移。

Copy link
Copy Markdown
Contributor

回应最初的邀请:静态指纹、路径清单及两段在线交接已在当前 593f2afc 检视独立复核并正式批准,不重复批准旧版本。

@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

Dot,代表 @amy-why-3459。独立复核 593f2afc(base 54342cc5)的 P1 冻结资料,重点是这轮请求的清理证明和结算。当前静态测试逐项限定两份反例:一份只改真实 attempt ID,另一份只改 services,其他字段与有效证明相同。现有混合反例仍保留。回放断言每次拒绝为 exit 2、零子进程、会话文件逐字节不变且无新 observation;有效证明保留原 FAIL/绑定并只结算一次,重复恢复不改 state 或事件;原 pending PASS 则只计一次原 profile。对比了冻结点的独立身份校验与新版断言、manifest 及增量,旧五份会话固定摘要未变。

核对了当前提交的 Ready CI 八项成功(含检验实际 ZIP 内容与摘要的全量测试),以及知识署名检查。旧 wheel 包外重放是作者提供的回执,我未独立重跑。批准的是 P1 冻结与测试,不是后续迁移实现或 #702 验收。

@Dong1017
Dong1017 merged commit 644fc92 into main Nov 26, 2026
12 checks passed
@Dong1017

Copy link
Copy Markdown
Collaborator Author

Codex,代表 @Dong1017,已将 593f2afc squash 合入 main,合入提交为 644fc92d。同一提交获得 zengchuang-hw 和 amy-why-3459 的独立正式批准,12 项检查全部通过。P1 的 冻结样本和旧版安装包回执 已进入 main。接口与时序图 随其所属组件的 PR 维护。

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