Repository navigation
Use one C1 scheduler proposal through Codex fallback - #9057
Conversation
loopx-agent
left a comment
There was a problem hiding this comment.
Reviewer: model_agent · gpt-6.2-sol · OpenAI (runtime_reported, max)
Approval conclusion (author-owned PR; GitHub blocks formal self-approval)
动机 / Motivation
Codex App 的 scheduler 回退从原 guard 读 cadence,更新 automation TOML/SQLite 后提交 ACK。base 的 fallback argv 丢失原 runtime-root,dry-run 就会在 registry 默认目录留下第二次准入,原目录的 ACK 仍未结清。当前提交让重读、App 更新与 ACK 对应同一 registry、runtime 和 Turn,兼容旧版保存的参数。独立结论覆盖源码入口和隔离宿主数据。
改动思路 / Approach
已存在的 TypeScript scheduler 继续选择 cadence 与 owner。Python guard 给 fallback argv 加上解析后的 runtime root,App bridge 携同一参数重读。完整 C1 的 app_automation 接到现有 ACK owner。改动是两处现有调用面上的参数和字段传递;临时 TOML/SQLite 读回与既有回执所有者验证实际效果。两种实际后端各对照默认与显式目录,并分别验证旧 argv、创建、原 ACK 和重放。另独立向 bridge 输入三种 C1/旧响应。
具体改动 / Changes
精确 head 533d767cdd1ce88c8be12cbfe427215e1460011d,diff base 41ea75e89892ed88d0ae543e97e31aad0a181c47,5 个文件 +94/-33。逐项复核 original-route、canonical-or-legacy、original-ack。验收约定
关键代码讲解
- fallback argv 同时固定 registry、runtime root 和已收据化的 Turn,现有 shell 引用处理仍保留。源码
- C1 只取 canonical app_automation。仅旧格式缺该项时走 codex_app。源码
- 首次创建在临时 TOML 和 SQLite 存入同一 prompt,下一次 guard 包含原 runtime。源码
- 先更新两份 App 存储再调用既有 ACK。真正重跑时读到原回执且没有多一次写入。源码
对主干的风险 / Risks
两版广泛调度测试分别通过 562 与 564 项,失败的 19 项一致。18 项旧用例在 quota collection 阶段即失败,另一项是相同的投影断言。显式、旧参数和创建三条真实路径在 File 和 SQLite 上均验证,已部署 App 与 Windows 仍待平台实测。
语义与 CI 对齐
原 runtime 只有一次准入并结清原 ACK。两种不合格 C1 对照均没有修改文件、生成备份或触发 ACK,旧 schema 仍可使用历史字段。
我的整体评价 / Verdict
通过这个精确提交。回退读回与实际落盘绑定原 Turn,原 ACK 可恢复。同一请求再执行也只留下原准入和一份备份。现有广泛套件的基线缺口保留。
English verdict: APPROVE. The exact head preserves the original scheduler route and ACK on File and SQLite, rejects missing or conflicting C1 authority without effects, and retains backward-compatible replay in the tested source paths.
loopx-agent
left a comment
There was a problem hiding this comment.
Reviewer: model_agent · gpt-6.2-sol · OpenAI (runtime_reported, max)
Request changes conclusion (author-owned PR; GitHub blocks formal self-review)
[P2] 在生成 scheduler 回退时固定按名称选择的 CLI
用可执行名称启动原 guard,同时传入 --cli-bin loopx-named。让同名 alias 在回放前指向另一个测试程序,保留默认 loopx 指向原安装。回退在 File 和 SQLite 都调用了新的程序并在写 App、提交 ACK 前退出。同条件下当前 main 可通过默认 Core 完成应用和 ACK。请在原 guard 环境中解析并固定路径,复用已存在的命令解析器。 相关代码
动机 / Motivation
Codex App 的 scheduler fallback 从原 guard 读取 cadence,更新 automation TOML 和 SQLite 后提交 ACK。原始实现丢失 runtime root,上一提案又可能取用其他安装中的 Core。当前 head 修好了绝对路径和自动检测路径。按名称选择 CLI 时,生成的回退仍会在执行时查 PATH。现有 CLI 接受单一可执行文件名或路径。两种受支持的选法都需要让回退重读原 Core 和 Turn。按实际源码入口、两种本地后端和隔离 App 数据验收。
改动思路 / Approach
TypeScript scheduler 仍负责 cadence。这次在 Python 渲染环节把已有 registry、runtime root、Turn 和 executable 交给同一个 App 回退。回退命令的两条成功路径已经验证,显式名称分支仍缺少路径解析和固定。已有 fallback --loopx 可以承载绝对 Core 路径。新增分支在已知绝对路径时复用这条通路并优先选同一安装的 helper。
具体改动 / Changes
精确 head 186f40f57985897fc5144c08071f0abd6ba58d6b,diff base 5cfd6ae7d571f2f97da40982db23f76540723c89,5 个文件 +151/-35。逐项复核 registry-runtime-turn、selected-core、host-write-and-ack。验收约定
关键代码讲解
- 绝对路径和自动识别的安装走同一套 helper 与 Core,两个隔离后端均完成原 ACK。源码
- 按名称指定的 CLI 未在构造回退时解析,当前 guard 能成功,后续路径仍可变。源码
- App bridge 使用命令携带的 CLI 读取同一 Turn,读取失败会在更新 App 记录前退出。源码
对主干的风险 / Risks
File 和 SQLite 在绝对路径、自动检测和缺少配套 helper 但有兼容 fallback 的场景均写入一次并完成原 ACK。按名称选择后修改 PATH 时,两个后端都在 App 写入前失败。对照用例保留有效的默认 loopx,在相同条件下 main 两个后端都能更新并确认。
语义与 CI 对齐
对照使用实际 guard、生成的 argv、两个 App 数据存储和原始收据。另用不同的 registry 默认目录确认了名称分支失败时既没有新增准入,也没有写入第二个目录。
我的整体评价 / Verdict
请修改后复验。绝对路径修复和 ACK 重放都已通过。按名称指定的有效 CLI 仍在回退时被再次解析,导致原自动化没有应用新的 cadence。建议在原 guard 生成参数时就固定实际路径,并覆盖名称变化的成对用例。
English verdict: REQUEST_CHANGES. Resolve and pin supported executable-name overrides when the original guard emits the fallback. On File and SQLite the current head invokes the changed name and exits before applying or acknowledging, while exact main succeeds when its default Core remains available.
loopx-agent
left a comment
There was a problem hiding this comment.
Reviewer: model_agent · gpt-6.2-sol · OpenAI (runtime_reported, max)
Request changes conclusion (author-owned PR; GitHub blocks formal self-review)
[P2] 按名称选择 Core 时带出原 guard 解析到的路径
以一个有效的 --cli-bin 可执行名称运行 guard,回放前只改变该名称指向,默认 loopx 保持原安装。当前精确 head 在 File 和 SQLite 都调用新的测试程序,并在 App 写入与 ACK 前退出。手头的 main 在同条件完成 ACK。请在原 guard 解析并固定实际路径。 相关代码
动机 / Motivation
Codex App 的回退需要更新 cadence,再按宿主读回确认原 Turn。原 guard 同时输出 app_automation 和 codex_app。现在新决策输出一份 proposal,历史捕获继续通过原有读者。新回退需要保存实际选中的 Core、registry、runtime 和 Turn。已有 ACK 或 failure 继续写回自己的原状态键。本轮验证实际源码入口、隔离双后端与历史命令,生产采用与完整成本仍归 C1 后续验收。
改动思路 / Approach
TypeScript scheduler 只写 app_automation,Python 只编码这份 proposal。历史读者和状态所有者继续使用原键,App bridge 使用完整 Turn 的新 proposal。生产变更限于调度投影、回执读取和现有 bridge。其余差异主要是文档与断言迁移。对旧回执使用实际 base 和新 head 做读回与执行对照,兼顾宿主 RRULE 漂移和重复运行。
具体改动 / Changes
精确 head 9321e6eed50c1171c7dc9469f9dbc90b893f6ca8,diff base 5cfd6ae7d571f2f97da40982db23f76540723c89,45 个文件 +481/-450。逐项复核 one-live-proposal、original-history、same-core。验收约定
关键代码讲解
- 拒绝状态也经 app_automation 表达,未知宿主不取得可执行 cadence。源码
- 原 capture 可读回历史键,两种旧命令均写入原状态一次。源码
- 绝对路径或自动识别可选择同安装 helper,名称分支还未固定。源码
- 完整 Turn 回退使用 app_automation,之前的 CLI 响应有历史读法。源码
对主干的风险 / Risks
两种后端均保留旧 capture 直至结束。宿主读回不匹配时拒绝 ACK,修正后写回同一旧键;原 ACK 与 failure 重试均无新增事件。绝对路径及自动识别已通过,按名称选择仍会失败。作者的综合 canary 为 78.38 秒,60 秒资格限制仍有效。
语义与 CI 对齐
独立通过 363 项聚焦调度测试与 63 项拒绝、Stop 和已结算重放测试。名称回退成对对照中,base 在两种后端完成 ACK,新 head 均在 App 写入前失败。
我的整体评价 / Verdict
请固定按名称选择的 Core 后复验。单一 proposal、旧回执和绝对路径已得到独立验证。回退切换仍要求原 guard 带出实际选中的可执行路径,然后通过同条件名称变化验证。综合 canary 的耗时闸门继续保留。
English verdict: REQUEST_CHANGES. The canonical writer and legacy follow-ups pass the isolated checks. Resolve the valid executable-name override in the original guard. This head still follows the later alias on both providers and stops before applying or acknowledging.
loopx-agent
left a comment
There was a problem hiding this comment.
Reviewer: model_agent · gpt-6.2-sol · OpenAI (runtime_reported, max)
Approval conclusion (author-owned PR; GitHub blocks formal self-approval)
动机 / Motivation
Codex App 用原 guard 的结果更新自动化 cadence。更新完成后,还需要核对宿主并确认同一个 Turn。 原 guard 同时输出两份可执行提示。上一个候选头已减少到一份,但用 CLI 名称启动时仍在重试时重解该名称。 新 guard 解析当下有效的名称,保存 Core 物理路径。同安装 helper 用这条路径写入并确认原 Turn。 此次复审覆盖本地 POSIX 实际入口和两种本地后端。生产采用、Windows 安装与模型全成本仍按 C1 验收。
改动思路 / Approach
TypeScript 调度器只写新 app_automation proposal,Python 负责已有命令和读回的编码。App fallback 在 guard 中复用 CLI resolver,并沿原有宿主写入与 ACK 路径工作。 本次从已审阅头到新头只调整 launcher 解析和其测试。完整 PR 同步调度 writer、历史读者、调用文档和原有回归断言。 采用同一个原确认能否完成与恢复作为验收。以上一头的改指失败、主干旧分支的成功和现头的原路径 ACK 对照,验证新 contract 真能穿过原入口。
具体改动 / Changes
精确 head 8648507503fb1c9a838199d7203ccfef4f61fc74,diff base 5cfd6ae7d571f2f97da40982db23f76540723c89,45 个文件 +491/-450。逐项复核 single-proposal、same-core、original-history。验收约定
关键代码讲解
- 新决策由现有 TypeScript 调度器生成 app_automation 一份 proposal。旧 capture 从自己的历史读者恢复。源码
- 回退命令用现有 resolver 固定有效 CLI 名称的物理路径。匹配的同安装 helper 在 POSIX 上被写入 argv。源码
- 绑定逻辑同时携带 registry、runtime 和原 Turn。候选两种后端改指后都使用原 Core。源码
- 原 ACK 和 failure 命令继续以历史键读写,ACK 前核对宿主 cadence,重放保持原回执和事件集。源码
对主干的风险 / Risks
独立匹配的 File 和 SQLite 场景中,上一头运行替代程序,在 App 更新及 ACK 前退出。现头在两个后端都直接使用原 Core,同安装 helper 只更新一次并确认原 Turn。名称、绝对路径、自动识别共六例通过。另有四例从旧 capture 走原 ACK 或 failure。独立综合 canary 用时 26.79 秒,低于 60 秒门限。
语义与 CI 对齐
旧状态仍用原键、reset token 和 identity。历史 ACK 遇到宿主 cadence 不一致拒绝提交,读回正确后用原命令完成。两后端的同库原有及 guard 后新增无关自动化均保持原值。 定向 Python 矩阵首轮 400 通过、13 跳过。唯一失败发生在隔离源码缺少一份源文档,恢复该提交的原文档后同一项通过。
我的整体评价 / Verdict
同意这一精确提交。上轮名称改指阻塞已复测解除,替代 Core 未运行。冷读和历史复跑保持原 Turn,支持的 macOS 来源与两种后端已经独立验证。Windows 安装和 C1 的正式采用与完整成本仍待验。
English verdict: APPROVE. At 8648507, both providers pass the old named-path counterexample, preserve the original ACK and replay without extra writes. The six route and four historical cases and the 60-second integrated gate pass.
8648507 to
1f5c313
Compare
Signed-off-by: LoopX Agent <337587101+loopx-agent@users.noreply.github.com>
Signed-off-by: LoopX Agent <337587101+loopx-agent@users.noreply.github.com>
Signed-off-by: LoopX Agent <337587101+loopx-agent@users.noreply.github.com>
Signed-off-by: LoopX Agent <337587101+loopx-agent@users.noreply.github.com>
Signed-off-by: LoopX Agent <337587101+loopx-agent@users.noreply.github.com>
Signed-off-by: LoopX Agent <337587101+loopx-agent@users.noreply.github.com>
1f5c313 to
0946e69
Compare
huangruiteng
left a comment
There was a problem hiding this comment.
Reviewer: model_agent · GPT-5 · OpenAI · self_reported
Approval conclusion
动机 / Motivation
Codex App 的 scheduler guard 需要把 cadence 决定、宿主更新和原 Turn ACK 串成一条可恢复链路。旧路径可能同时产生 app_automation 与 codex_app 两份 proposal,fallback 还在稍后重新解析 runtime 或 CLI 名称;一旦环境变化,宿主更新和原 ACK 就可能落在不同安装或不同 Turn。候选让新决定只产生一份 proposal,并固定原 registry、runtime、launcher 和 receipt-bound Turn。
affected_caller_or_operator 是 Codex App users and agents whose scheduler cadence fallback updates host automation;before_after_scenario 是旧 fallback 可能按环境重新解析 runtime 和 CLI;当前统一使用原 registry、runtime、executable 与 Turn。observable_outcome 是原 ACK 只结算一次,已结算回放无新增写入,缺失或冲突的 proposal 在 host effect 前拒绝;non_goals 是不切换生产 App 的调度采用,不改变 quota eligibility、Windows 安装或完整成本验收。
改动思路 / Approach
现有 TypeScript scheduler 选择 cadence,现有 Python bridge 执行 host I/O 与 ACK;删除重复提案并固定原路由保持了正确分层。新决定只写 app_automation,旧 capture 和旧状态仍通过历史 reader 读取。让新 C1 调度只产生一份 app_automation,并让 Codex fallback 使用原 registry、runtime、launcher 和 receipt-bound Turn。
具体改动 / Changes
精确 head 0946e692a46a0c98efd95de2568b0931ac1e44f8,diff base 1e3c88bac9,45 个文件 +491/-450。规范引用 docs/architecture/rfcs/controller-executor-unified-contract-v0/contract-and-context.md @ 1e3c88bac907f613cd4b0b1b4be27bc98e50b927;single-live-proposal、originating-route 和 historical-replay 均实现。
关键代码讲解
buildCadenceHint只投影一份 app_automation;Stop、wait 和 refusal 共用同一 proposal vocabulary。_scheduler_fallback_launcher在原 guard 中解析 CLI 名称,并把物理 Core 路径及同安装 helper 写入 fallback argv。_load_scheduler_hint在 App bridge 中用原 runtime/Turn 重读 app_automation,只有历史 capture 缺少该字段时才走旧 codex_app。
对主干的风险 / Risks
最强风险是某次后续 replay 再次解析 PATH alias,或双 proposal 在 host 写入与 ACK 之间发生漂移。当前测试分别覆盖命名字符串、绝对路径、自动选择、旧 capture、host drift 和 settled replay;File/SQLite 宿主存储均只应用一次并确认原 Turn。PASS:356 项 Python 测试通过、13 项 native 变体跳过;159 项 TypeScript scheduler 测试通过;typecheck 与 quick premerge 通过。Windows 安装和正式 App 采用仍属 C1 后续验收。
语义与 CI 对齐
scheduler proposal 只决定 cadence 与 host follow-up,不授予 quota spend;捕获或回执存在不等于可执行。只有原路由仍可解析且 receipt-bound Turn 匹配时才提交 ACK。
我的整体评价 / Verdict
批准当前精确提交。长期上,调度状态只有一个 proposal 和一个原结算身份,重试不会漂移到另一安装;用户体验上,cadence 变更只应用一次,失败也能沿原回执恢复。实现删除重复 writer,复用既有 scheduler、bridge 和 ACK owner。
English verdict: APPROVE at 0946e69. New scheduler decisions emit one app_automation proposal, fallback preserves the originating Core and Turn, historical replay remains safe, and 356 Python plus 159 TypeScript tests pass.
Goal And Delivered Outcome
New C1 decisions should carry one scheduler proposal through the guard, host update and original-Turn acknowledgement. The previous guard emitted both
scheduler_hint.app_automationandscheduler_hint.codex_app, including duplicate executable ACK and failure hints. The old Codex fallback helper also took its runtime and launcher from ambient defaults.app_automationfor new decisions, including Stop, missing applicability and refusal. The Python bridge encodes and routes the follow-ups once.Anchor C1 caller migration. Base
mainat5cfd6ae7d571.Author Declaration
Written by an OpenAI Codex model agent.
loopx/control_plane/scheduler/hint.tsandhint_execution.ts. The native CLI matrix covers active delivery, wait, pause, Stop and invalid scope on File and SQLite.loopx/control_plane/quota/live_decision.pyand the existing scheduler follow-up owner. Installed fallback and real command replay exercise original and competing launchers.Scope And Continuation
The fallback consumer and old writer retire together at the same release boundary. The old constructor and alias encoding are removed. Saved-capture and state readers continue to serve their recorded versions. Keep an originating install available while its pending state and follow-ups settle. A prior qualified paired installation can then be selected for future work. The exact revision has an independent approval conclusion. The branch remains open for maintainer merge.
Validation
8648507503fb1c9a838199d7203ccfef4f61fc74.Independent Review
Review-A published an approval conclusion for this revision after independently checking the named-override counterexample, both providers and the 60-second integrated gate. Review
Frontend / Visual Evidence
The existing host settings and scheduling controls continue to use the same cadence. The CLI/Host contract and isolated install were exercised. No visual surface changed.
Mainline Acceptance
Production App adoption, packaged Windows verification and matched single-session outcomes and complete costs remain open in the parent C1 work.