Repository navigation
Clarify allowed Vision outcomes for material closeout - #9551
loopx-agent wants to merge 3 commits into
Conversation
Signed-off-by: LoopX Agent <337587101+loopx-agent@users.noreply.github.com>
Signed-off-by: LoopX Agent <337587101+loopx-agent@users.noreply.github.com>
loopx-agent
left a comment
There was a problem hiding this comment.
Reviewer: model_agent · gpt-6.2-sol · OpenAI · runtime_reported · xhigh
Approval conclusion (author-owned PR; GitHub blocks formal self-approval)
动机 / Motivation
Agent 在阶段仍开放时提交有实质进展的 Vision。 旧版 authoring 列出通用结果,包括这个分支验收时会拒绝的 wait。紧凑提示中有允许值,完整字段说明却缺少这层区别。 使用同一新增断言,基线的 File 和 SQLite 真实 CLI 捕获都读不到专用字段,TypeScript 对照也在该字段失败。 现头从捕获中读到三个允许值。两种存储均用原 lease 完成当前结算,依赖写入 reentry_condition,重放只保留一次扣额。 本轮验证源码 CLI 和 Core。实际安装与模型采用待验证。 统一工作合同 基线检查点
改动思路 / Approach
由 visionAuthoringContract 把检查点已有的允许值投影给 Agent,并提示将待满足的依赖写入 reentry_condition。 Vision 检查点仍由 TypeScript 判断。settlement_plan 投影编写说明,由 CLI 捕获并提供分段读取。 continue、no_change 和 replan 来自原检查点使用的常量。通用 outcome 清单保留 wait。真实 Todo 等待继续通过原等待条件登记。短提示从常量生成后逐字一致。 字段与短提示
具体改动 / Changes
评审提交 2d6280db59aea63bf1d0abafb7fc7aedf70fb2d2,目标基线 509360fb0d3e9e6e578ddf5c12db587886016b23。三个文件,增 43 行、减 4 行。生产更改在已有 authoring 和短提示,测试覆盖 Core 检查与 CLI 持久化结算。 普通和自主重规划两种投影各增 100 字节,扣除新增字段与一句说明,其他字段完全等值。核对了 material-continuation-choices、original-turn-settlement 和 generic-wait-and-capture-compatibility。
visionAuthoringContract在原规则下公开适用的选项和依赖位置。 编写说明materialOutcomeCheckpointFailures继续校验开放阶段的可用结果。 Core 判断- 真实 File 和 SQLite 场景通过捕获、选择读回、原 lease、写回和重放核验。 CLI 回归
对主干的风险 / Risks
开放阶段继续拒绝 wait、ask_human、stop,未准备的原轮仍拒绝写回。File 和 SQLite 的四个真实 Todo 等待与重放用例通过。新版 CLI 读旧捕获的 Vision 字段逐字一致。 2 个 File/SQLite 写回和重放测试、4 个真实 Todo 等待测试、129 个相关 Node 测试、拥挤 Turn 计划的预算回归、Core 类型检查和 git diff --check 通过。 拥挤 Turn 计划分别测得 22,411 和 24,339 字节,两者均比基线增加 100 字节,低于 26,000 字符上限。 真实等待与结算约束仍由各自的现有流程执行。队列策略下未查询远端 CI。
我的整体评价 / Verdict
APPROVE。 这个提交在原有结算合同里明确了开放阶段结果和依赖写入位置。我复查了捕获兼容、同轮重放及真实等待。GitHub 评论承载本次评审结论,平台正式批准仍由有权的独立账号处理。
English verdict: APPROVE at 2d6280d. The existing validator's continuation outcomes are now visible in the Vision authoring contract. File and SQLite capture, writeback and replay preserve the original lease and quota behavior.
loopx-agent
left a comment
There was a problem hiding this comment.
Reviewer: model_agent · gpt-6.2-sol · OpenAI · runtime_reported · xhigh
Request changes conclusion (author-owned PR; GitHub blocks formal self-review)
动机 / Motivation
受影响的是从 Codex App 捕获读取结算计划,再用原租约写回 Vision 的 Agent。 基线只提供 Vision 的通用 outcome 列表,开放阶段的进展结算仍会把 wait 判作未满足检查点。 例如,Agent 已验证一个阶段结果但其余工作依赖外部输入时,可按继续结算并记录依赖。当前阶段若实际因该输入而阻塞,同一个写回入口也允许明确记录 wait。 候选可让开放阶段进展结算直接读取三个有效值。阻塞结算仍需要按真实等待决策填写 Vision。 原准入、租约、Todo 等待规则和扣额继续由现有运行时负责。 捕获还需说明哪些结算要求使用这三个选项。真实阻塞的等待决策仍有自己的合法路径。
改动思路 / Approach
Vision 投影复用 TypeScript 检查点的现有常量,新增 open_stage_closeout_outcomes 并提示在 reentry_condition 中记下等待条件。 保留现有 Vision schema、原轮写回和原扣额回执,变更集中在 Agent 可读的指导。 简短结算提示在两个版本间逐字节一致。
具体改动 / Changes
精确提交 2d6280db59aea63bf1d0abafb7fc7aedf70fb2d2,目标基线 509360fb0d3e9e6e578ddf5c12db587886016b23。3 个文件,+43/−4。核对材料性进展检查点(material-closeout-checkpoint)、阻塞路径指导(blocked-path-guidance)和原轮重放(original-turn-replay)。结算契约
关键代码讲解
visionAuthoringContract。紧邻完整通用列表,公开来自现有常量的三项选择。 源码visionAuthoringContract.rule。共享写回指导在此加入等待文案。 源码materialOutcomeCheckpointFailures。真正限制在要求材料性 Vision 检查点且 delivery_outcome 不为 outcome_gap 的分支。 源码test_migrated_hard_lease_can_write_settle_retry_and_continue。从真实 quota context-read 读取 Vision 并验证原租约、依赖与单扣。 源码material closeout leaves an invalid path decision recoverable。验证检查点对有效与无效路径的现有裁决。 源码
对主干的风险 / Risks
[P2] 为开放阶段的选项和等待提示写明进展检查点条件。 同一捕获也用于 Todo 保持开放的已验证 outcome_gap。File 和 SQLite 均接受 wait,持久化 wait 和 reentry_condition,返回 typed_blocked_writeback_no_spend。重放只读回原结算且扣额为零。新增字段把开放阶段关闭的选择写成无条件三项,旁边的 Record waits in reentry_condition 也没有限定为进展检查点,可能引导 Agent 把真实等待写成 continue。 把选择列表和等待提示限定在要求继续路径的进展检查点,明确真实阻塞仍可用 outcome=wait。保留现有字符预算,增加同一捕获下 File/SQLite 的成对回归。 捕获规则 · 实际检查点
语义与 CI 对齐
File 和 SQLite 的真实 Codex App 捕获均读回 continue/no_change/replan。对进展结算故意提交 wait,检查点标记 path_outcome_valid。用 checkpoint-context 的原轮 read_context_id 将决策修正为 continue 后,reentry_condition 原样持久化。原扣额命令执行和重放合计扣一次。
同一提交已有评审验证了进展结算。本复核进一步走了同一捕获里的真实阻塞结算,并查到上述适用范围问题。 现有评审
独立复跑 115 个 TypeScript 用例、4 个 File/SQLite 专项实测、5 个针对性 CLI 预算或关闭捕获用例,均通过。完整 CLI 差异探针使用同一冻结场景,基线与候选各 98 行,全部通过。crowded Turn plan 的紧凑 JSON 为 22,287 → 22,387 个字符。普通和自主 Vision 指导各增加 100 字节。原租约、重放与等待等回归有 28 项通过。两个替换租约断言在基线与候选均失败,实际都是 normal_delivery_allowed=true,测试预期 false。受影响的原租约写回检查另行通过。
独立验证使用精确源码与本机隔离 File/SQLite。模型是否遵循新文案、已安装版本和完整标准预合并未独立重跑。
我的整体评价 / Verdict
REQUEST_CHANGES。 需要限定新指导的适用范围。现有运行时能正确结算两种决策。 在上述 File/SQLite fixture 的同一 guard 捕获中,分别提交 outcome_progress + wait,再走 checkpoint-context 修复,以及 outcome_gap + blocked + blocker/evidence IDs + wait。
English verdict: REQUEST_CHANGES at 2d6280d. The new open-stage choices and wait guidance need to identify the progress-checkpoint scope. File and SQLite still persist a valid blocked outcome_gap with outcome=wait and zero debit.
Signed-off-by: LoopX Agent <337587101+loopx-agent@users.noreply.github.com>
loopx-agent
left a comment
There was a problem hiding this comment.
Reviewer: model_agent · gpt-6.2-sol · OpenAI · runtime_reported · xhigh
Approval conclusion (author-owned PR; GitHub blocks formal self-approval)
动机 / Motivation
受影响的是从 Codex App 捕获选择 Vision 决策,再用原身份结算的 Agent。 目标基线只有通用 outcome 清单,上一候选的开放阶段清单使真实阻塞也像只能走继续。 已验证阶段进展时,Agent 应选继续路径并记录待满足条件。若同一轮尚因外部依赖而受阻,Agent 可声明 wait。 新捕获明确给出进展专用的三个选项,实际阻塞可直接记录等待和条件。 租约、打开的待办、恢复证据和扣额继续由原结算协议负责。
改动思路 / Approach
从 TypeScript 既有接受集合派生 open_progress_outcomes,明确进展和真实阻塞的等待语义,并同步短提示。 在原有 Vision 和 CLI 捕获中调整指导,用既有检查点和回执覆盖行为,无需新状态所有者。 作者修订响应旧头的 P2。在相同捕获路径分别复跑两条可区分的原始结算。 旧头 P2
具体改动 / Changes
精确提交 8e42348f5731b8e8ba9330f158bca3a7c741b8be,目标基线 509360fb0d3e9e6e578ddf5c12db587886016b23。4 个文件,+120/−14。核对进展裁决(material-closeout-checkpoint)、真实阻塞(blocked-path-guidance)和原轮回放(original-turn-replay)。结算契约
关键代码讲解
VISION_MATERIAL_CLOSEOUT_HINT。简短指令现在限制为进展语义结算。 源码visionAuthoringContract。进展专用清单复用实际接受常量,原通用清单和真实阻塞等待均可发现。 源码materialOutcomeCheckpointFailures。沿用现有强制门,阻塞结果的合法等待不进入该条件。 源码test_material_closeout_distinguishes_progress_from_blocked_wait。用真实捕获检验 File/SQLite 两条结算路径和原轮重放。 源码
对主干的风险 / Risks
提交 progress + wait 先留下未满足的 Vision 检查点。测试通过原轮读回依据执行补正。原租约缺失、被替代或回执关系错误时沿用现有拒绝。 File 和 SQLite 的真实 Codex App 捕获均读回进展专用选择。同一原轮的 outcome_progress + wait 触发 path_outcome_valid,经 checkpoint-context 补正后保留真实依赖,重放合计扣一次。两种存储的 outcome_gap + blocked + wait 均原样持久化 wait 和依赖,原结果重放零扣额。
语义与 CI 对齐
18 项定向真实 File/SQLite CLI 用例和 115 项 TypeScript 用例通过,Ruff 通过。CLI 输出预算完整配对基线与候选各 98 行,全部通过,crowded Turn plan 紧凑 JSON 为 22,287 → 22,397 个字符。严格 mypy 在基线和候选均给出逐字节相同的 3,992 条诊断,隔离叠加 #9549 精确提交 8796549 后同一 17 个输入全部通过。 共享类型修复
独立测试覆盖精确源码和本机 File/SQLite,在线模型文案采用、安装发行形态与完整标准预合并未独立执行。保护分支需先包含 #9549 的共享修复,并等待新精确提交的必需检查。
我的整体评价 / Verdict
APPROVE。 上一轮 P2 已关闭。捕获与原轮两类结算语义一致。 真实捕获使用同一形式的 wait 分别提交进展与阻塞,验证原轮恢复和各自的回执重放。
English verdict: APPROVE at 8e42348. The capture now scopes the alternatives to progress. File and SQLite preserve real blocked waits with zero debit and repair open-stage progress with one debit on replay. The 98-row CLI budget comparison passes.
Problem
An open-stage progress checkpoint accepts
continue,no_change, orreplan. The generic Vision outcome list also containswait. A typed blockedoutcome_gapcan legitimately recordwaitand the condition needed to continue.This supports the roadmap's unified controller/executor contract.
Change
The existing Vision authoring contract exposes
path_delta.open_progress_outcomesfrom the TypeScript validator's accepted values. For a progress closeout, the guide places pending dependencies inpath_delta.reentry_condition. A typed blockedoutcome_gapcan still useoutcome=wait. The short settlement hint identifies its progress scope. This addresses the independent review finding.Verification
8e42348f573, the same captured contract supports both paths. An invalid progresswaityieldspath_outcome_valid, then same-Turn checkpoint recovery preserves the dependency and settles once. A valid blockedoutcome_gappersistswaitand its dependency with zero debit. Both exact replays preserve their original receipts.Hosted CI dependency
The hosted kernel check on the preceding commit failed in the strict mypy step with 3992 diagnostics. With Python 3.11.17 and mypy 1.20.2, base
509360fb0d3eand this head produce the same 3992 local diagnostics. Composing the exact shared fix #9549 at8796549c9135with this head clears the original 17 inputs. Seven paired CLI and private-capture tests also pass on that isolated composition. The protected integration path depends on adoption of #9549 and a subsequent current-head CI result.