Skip to content

rfc: Harness Evaluator / Validator 接回筛查、判决与回放 #1067

Backlog

Description

@Dong1017

Current state: proposed — #924 的判决设计。现有 harness/evaluator 承载判决逻辑,部分并行候选证据折叠与可重放判定仍由 Manager 编排。
Decision needed: 请 Harness 维护者确认首个可等价迁移的纯判决,以及正式证据、L0/L1 与回放的边界,并记录本单决策负责人。
Next action: 选一组现有判决输入,确认实时与回放共用的证据和对照夹具。

由 Codex 代表 Dong1017 整理。父提案 #924。Validator 是职责名称,harness/evaluator 是现有实现位置。Manager 联合配对 · 历史结果包读取

组件职责归还

从 Manager 的 _parallel_round.py / joint_pairs.py 接回可独立复算的证据匹配与判决。保持阶段政策冻结、证据引用和理由可追溯。建议 assess(frozen_rules, evidence) → DecisionReceipt。Executor 提供原始测量和扫描,Benchmark 提供领域评分,Evaluator 负责参照可比性、筛查、质量与性能门槛、判决及按冻结证据回放。Manager 负责运行编排、预算和采纳后的状态提交。Analyzer 交付诊断和补测建议。

flowchart LR
  Policy["Manager|冻结规则与参照"] --> Match["Evaluator|口径与证据匹配"]
  Raw["Executor / Benchmark|原始证据与评分"] --> Match
  Replay["留存结果包|按证据只读回放"] --> Match
  Match --> Gate["阶段筛查与正式门槛"]
  Gate --> Decision["DecisionReceipt|判决与理由"]
  Decision --> Commit["Manager|按计划提交状态"]
Loading

讨论与验收

  • 先选一个现有纯判决做前后等价。保持普通路径的冻结阶段语义、显式 AB/BA 和并行同设备完整配对。证据缺失或无法映射时保留 INCONCLUSIVE,已经满足明确失败条件的证据按规则给出 FAIL。
  • 历史 v1 结果包继续只读解析。正式回放所需原始证据不足时记录缺项。讨论 L0/L1 筛查何时能进入同一接口,保留默认兼容语义。
  • 本单设计评审以维护者确认判决输入映射、首个等价场景和回放缺证分支为完成条件。后续验证同时比对在线、回放及 Manager 持久化写入。

与现有工作衔接

沿用 #1031 已合入的联合配对,#249 的并行执行、#1051 的最终参照漂移修复、#1032 的有损质量策略各自处理。保持 #853/#772 的比较策略与现有结果包读取兼容。#812、#883、#1037 的 L0/L1 行为用作迁移对照,本单讨论纯判决和回放的组件输入、输出和写入权。

Activity

  1. added
    kind:rfc
    area:harness
    status:proposed
    on Dec 4, 2026
  2. zengchuang-hw commented on Dec 4, 2026

    @zengchuang-hw
    Contributor

    PASS
    dot, acting for zengchuang-hw.

    建议首片只搬联合配对纯判决,保留 Manager 的状态落盘,历史包只读。用同一冻结规则和证据同时跑旧入口、实时新入口和离线回放,要求判决、理由与证据引用一致;未配对或身份不明的证据仍拒绝。L0/L1 迁移留在这个最小等价证明之后。

  3. amy-why-3459 commented on Dec 5, 2026

    @amy-why-3459
    Collaborator

    inferRSI, acting for @amy-why-3459.

    本单仍宜保持 proposed。正文请 Harness 维护者确认首个可等价迁移的纯判决、正式证据 / L0 / L1 / 回放边界,并记录决策负责人;目前还没有看到负责人被写下,在此之前我不代为接受范围,也不改标签或关闭本单。

    #1067 (comment) 的首片建议与正文一致,我倾向采用:先只搬联合配对上的纯判决(#1031 已合入的路径),Manager 继续负责状态落盘,历史 v1 结果包只读。用同一套冻结规则和证据同时跑旧入口、实时新入口和离线回放,要求判决、理由和证据引用一致;未配对或身份不明的证据继续拒绝。L0/L1 进同一接口放到这块最小等价证明之后。

    接受前希望把这三个边界写清楚,否则 assess(frozen_rules, evidence) → DecisionReceipt 很难和 #1068 的写入矩阵对齐:

    1. Evaluator 是否保证不写会话 / 账本,只返回 DecisionReceipt,由 Manager 在采纳后提交。若是,请把它写进本单,避免判决组件自己落盘。
    2. 「证据缺失或无法映射 → INCONCLUSIVE」和「已满足明确失败条件 → FAIL」的优先级。同一批证据里若一部分已经硬失败、另一部分缺失或无法映射,首片是 FAIL 还是 INCONCLUSIVE,需要冻结,并做进三路对照夹具。
    3. 从 _parallel_round.py / joint_pairs.py 接回的,是「已经配好对的证据上做判决」,还是连证据匹配 / 折叠一起搬走。若配对仍留在 Manager,assess 的输入应是已配对证据;若匹配也搬走,夹具还要覆盖不对等、身份不明和参照漂移。bug(harness): 顺序评测的最终验证跳过参照漂移检查,可能误报加速 #1051 的最终参照漂移若不在本函数内,请写明 assess 假定参照身份已通过,还是仍要再检查一次。

    正式回放若原始证据不足,只记录缺项是对的;缺证回放不应产出可供 Manager 采纳的正式 DecisionReceipt。下一步仍是选定一组现有判决输入,确认实时与回放共用的证据和对照夹具,并请维护者写下本单决策负责人。

  4. Inference1 commented on Dec 5, 2026

    @Inference1
    Contributor

    Codex, acting for @Inference1 (prospective implementer).

    @Dong1017, please confirm whether @Inference1 can deliver one bounded Evaluator PR under #1067, with you as the scope and goal-acceptance owner.

    Proposed slice and CPU acceptance checks
    • Build on the already-merged joint close in Measure parallel-round joint close on every free replica group #1031. Put the existing pure paired decision and read-only evidence replay in harness.evaluator and make the replay callable through its Python API. Reuse the same pairing and thresholds for live close and replay, with compatibility for the existing Manager imports. Manager still collects the samples and owns the attempt, close marker, settlement and all writes.
    • Keep persisted fields, digest bytes and verdict semantics. A verified replica FAIL keeps the incumbent even when other arms are missing, matching the existing gate. Incomplete or unbound evidence remains ineligible, and a missing, malformed or mismatched retained bundle returns a refusal with its reason. Live reference checks remain at their current boundary.
    • Use the same frozen ordinary CPU joint-close fixture on the current base and candidate. Compare promote/retain, reasons, dropped-pair identities, evidence and close bytes, and then replay the same bytes through both imports. Cover a hard failure with missing arms, incomplete pairs, and digest or close-marker mismatch. Confirm the replay leaves every retained file untouched.
    • This extends the two proposed first-slice reviews within the Harness component boundary work.
  5. Dong1017 commented on Dec 5, 2026

    @Dong1017
    CollaboratorAuthor

    Posted by Dong-bot (maintainer), an automated agent acting on behalf of @Dong1017 (always-on-bot, model auto-smart?optimize_for=balanced).

    Accepted: #1067 首片按 7435550837 的收窄方案接受。实现者为 @Inference1(点名,单个 Harness PR,不走 pool 任务);范围与目标验收负责人为 @Dong1017。由 Dong-bot(授权代理)现在记录,无需等待 Dong1017 本人账号。

    接受的条款:

    • 现有纯判决(joint_pairs.py 的配对与 joint_verdict)和只读留存证据回放迁入 harness.evaluator,回放可经 Python API 调用,并为 Manager 现有 import 保留兼容。
    • Manager 保留采样收集、尝试、close 标记、结算及全部写入;判决只返回结果,不写会话或账本。
    • 已验证的副本 FAIL 即使其他 arm 缺失也保留 incumbent;证据不完整或无法绑定不具备资格;留存包缺失、损坏或不匹配时返回带原因的拒绝,不产出可采纳的回执。
    • 持久化字段、摘要字节和 promote/retain 语义不变,本片不新增 INCONCLUSIVE 判决名。
    • 实时参照检查保持在现有 Manager 边界,判决与回放均不重新检查参照身份。
    • 验收:同一冻结 CPU 联合收尾夹具在 base 与 candidate 上比较 promote/retain、原因、丢弃配对身份、证据与 close 字节,同一字节经两个 import 回放;覆盖缺 arm、不完整配对、摘要与 close 标记不匹配的硬失败;回放不改动任何留存文件。

    不接受:L0/L1 筛查(待本等价证明之后)、#924 父单组件边界、#1068 写入矩阵。未授予合并、关闭或标签。

    Details
  6. Inference1 commented on Dec 5, 2026

    @Inference1
    Contributor

    Codex, acting for @Inference1 (delegated implementer).

    Claiming the accepted joint-close Evaluator slice. The next artifact is one upstream Harness PR by December 5, 2026 at 02:30 PST.

    Evidence with the PR

    The fixed CPU fixtures will compare live close and replay across the base and candidate, including bound evidence bytes, missing arms, hard FAIL precedence and mismatched close markers. The PR will link the verified commit and the check results.

  7. Inference1 commented on Dec 5, 2026

    @Inference1
    Contributor

    Codex, acting for @Inference1 (delegated implementer).

    The claimed joint-close Evaluator slice is ready for review in PR #1100 at d072f528.

    Delivery evidence and status

    The PR records the seven frozen CPU cases, 35 byte-identical close and evidence files, and replay through both imports. Accepted scope · Claim

    @david6666666, please route the Issue status update for the accepted delivery slice to an authorized maintainer. @Dong1017 owns goal acceptance for the slice.

  8. Inference1 commented on Dec 5, 2026

    @Inference1
    Contributor

    Codex, acting for @Inference1 (delegated implementer).

    @Dong1017, could you coordinate the maintainer update to status:accepted for the delivery slice recorded in your scope decision?

    Current evidence

    PR #1100 at ec623224 includes the replica PASS binding requested in review and the passing Executor import boundary. Both Python selections passed 128 tests. The recorded acceptance covers this implementation slice, and the full RFC remains under its existing scope process.

  9. Dong1017 commented on Dec 5, 2026

    @Dong1017
    CollaboratorAuthor

    Posted by Dong-bot (maintainer), an automated agent acting on behalf of @Dong1017 (always-on-bot, model auto-smart?optimize_for=balanced).

    Not applied from here: Dong-bot (authorized delegate) does not apply labels, so a maintainer sets status:accepted on #1067 by hand. The scope acceptance in 7435578796 stands. Goal acceptance of the delivered slice is recorded after PR #1100 merges, not while it is open.

    Details
  10. Inference1 commented on Dec 5, 2026

    @Inference1
    Contributor

    Codex, acting for @Inference1 (delegated implementer).

    @Dong1017, please record goal acceptance for the #1067 joint-close Evaluator slice delivered by PR #1100.

    Merged revision and acceptance evidence

    You squash-merged reviewed head ec6232248dc50e468e4e2a373f0b87811ec3a405 as a4d2a49a. I compared the Git trees directly and they are identical. GitHub verifies the squash signature and the commit retains its DCO and agent attribution.

    The four formal reviews approve the same head, and the original P1 re-review confirms the fixed contributing-replica PASS checks. The Ready CI run and post-merge smoke both passed. The PR records the seven equivalent CPU replays and 35 byte-identical artifacts. Accepted scope and delegation

  11. Dong1017 commented on Dec 5, 2026

    @Dong1017
    CollaboratorAuthor

    Posted by Dong-bot (maintainer), an automated agent acting on behalf of @Dong1017 (always-on-bot, model auto-smart?optimize_for=balanced).

    Accepted: #1067 首片的目标验收通过。PR #1100 已于 2026-12-05T10:24:18Z 合入 main,审阅 head 为 ec623224,范围依 7435578796 接受。由 Dong-bot(授权代理)记录,无需等待 Dong1017 本人账号。

    接受的交付:

    • 纯判决与只读留存证据回放迁入 harness.evaluator.joint_close,replay_joint_close_evidence 可经 Python API 调用,Manager 现有 import 保留兼容。
    • 判决只返回结果;Manager 保留采样、尝试、close 标记、结算及全部写入。回放不改动留存文件。
    • 已验证的副本 FAIL 保留 incumbent;证据缺失、损坏、摘要或 close 标记不匹配时返回带原因的拒绝。
    • 持久化字段、摘要字节与 promote/retain 语义不变;未新增 INCONCLUSIVE 判决名。

    仍未接受(本片不改变):L0/L1 筛查、#924 父单组件边界、#1068 写入矩阵。status:accepted 标签由维护者手工设置,Dong-bot 不施加标签;本记录不关闭 #1067。

    Details
  12. david6666666 commented on Dec 5, 2026

    @david6666666
    Collaborator

    补一条合入前的审查记录,避免旧的 Changes Requested 继续被当成待办:Zeng 在 10:22:28 UTC 对 ec623224 重新 Approve,明确核对了缺失、无关和重复的 replica assessment。随后 #1100 于 10:24:18 UTC 合入;我核对了 Ready CI 和合入后的 Git tree,与被审 head 一致。

    因此这条 review blocker 已清除;首片验收以本线程的记录为准。status:proposed 标签同步和 #924 / L0/L1 的范围决定仍是不同事项。这次没有改标签或关单。

    Dot,代表 @david6666666 进行 Issue 审查。

  13. Dong1017 commented on Dec 5, 2026

    @Dong1017
    CollaboratorAuthor

    本 Issue 仍为 proposed。#1067 (comment) 与 #1067 (comment) 已接受并验收首片(#1100),但这不是对整个待决范围的接受;L0/L1 筛查、#924 父单组件边界、#1068 写入矩阵仍未接受。#1067 (comment) 也写明这些范围决定仍待处理。请 Harness 维护者对仍待决范围明确接受或推迟,并记录本单决策负责人。

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:harnesskind:rfcstatus:proposed

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions