Skip to content

C1: unify work sources and validate recovery - #8266

Draft
loopx-agent wants to merge 539 commits into
mainfrom
codex/c1-work-contract-review-20261107
Draft

loopx-agent wants to merge 539 commits into
mainfrom
codex/c1-work-contract-review-20261107

Conversation

@loopx-agent

@loopx-agent loopx-agent commented Nov 7, 2026 •

Copy link
Copy Markdown
Collaborator

Current delivery route

The existing head eb21cab8e2f2030348100cbc349f41c075bec998 is retained as an integration candidate. Further author follow-ups target main in independently validated proposals: #8947 repairs the reproduced unsafe-inspect cleanup regression, and #8942 carries the separate selected-scope/native replay work. Existing review findings and historical validation retain their original revisions. Complete C1 consumer cutover, original single-session outcomes/full costs, supported installation profiles and named historical-reader retirement remain open.

动机 / Motivation

同一个 Goal 从 quota、Turn、宿主心跳或 MCP 接续时,需要保留同一份工作要求、停止条件、原始上下文和结算身份。本 PR 将这些入口收敛到现有 TypeScript owner 组合的完整 C1 来源,替代普通 quota 的旧生产链路,减少调用方各自重建工作合同的分支。

Ordinary quota guards use the complete C1 work source before capture. The same versioned source supports selection, context delivery, recovery and original-Turn settlement. Existing domain owners retain admission, task, scheduler and accounting authority.

最终行为 / Resulting behavior

  • 普通 quota 的成功执行来源在 capture 与宿主交付前完成组合和校验;组合可能在原领域准入后拒绝,届时保留原回执并拒绝执行,不重新准入。JSON、Markdown 和宿主交付共用来源;调度观察不取得执行或结算权限。
  • 默认渐进交付提供原捕获的固定摘要读取入口;--context-delivery off 内联同一份完整来源。显示方式切换不会重新签名历史捕获,也不会再次准入。
  • 选择 Todo、重规划、写回和扣额保留原 Agent、Todo、Turn 与 effect。失败组合和回执恢复沿原身份处理,拒绝错身份、来源篡改和不一致的借记证据。
  • 普通 quota 和兼容拼写 --turn-envelope 对新工作统一交付完整 v1;显式 Off 内联交付。v0 捕获与早期完整 v1 日志按记录版本恢复,历史读取器的后续退役另需具名验收。
  • Codex App、Codex CLI、绑定的 SSH/通用 CLI、MCP 和 benchmark worker 适配器复用来源、读取及结算 owner。检查点恢复复用共用 TypeScript artifact/basis owner;实时选择验证完整绑定与数字运输后复用身份 owner。更广的 controller–worker / router 交付按 RFC 分阶段验收。

当前资格消费方修复 / Current qualification-consumer repair

当前候选 eb21cab8e2f2 已正常整合目标主干 0514512ee7fb,相对该主干为 300 个文件。本次作者增量仅修改四个资格/测试/文档文件;新工作默认完整 C1、Off 完整内联和历史恢复语义继续保留。

  • 修复四条旧别名的资格消费。 产品已将 --turn-envelope 作为同一完整来源的兼容拼写,比较器却仍按旧 v0 生成器判断。现仅对具名行、格式、场景、v0→v1 来源及空投影→v2、全部十九控制见证一致的转换给出有界的一次性差分余量。投影迁移复用同一判断;没有新 writer 或决策 owner。十九项控制逐项变化、陈旧聚合摘要、缺失/未知/混合版本、未测行和后续 v1 增长均有拒绝用例。原 6d19/7aa 冻结比较的四条失败保留,重放到新比较器为 98 对/零失败、25 行仍要求人工解释。
  • 按实测处理展示预算。 同一公开夹具的 34/58/98 字符物理根分别输出 42,941/43,133/43,491 Markdown 字符,保留八处路径及读取时钟。两条时间覆盖的已有规则给出 43,529 上界;仅将 crowded Markdown 展示上限从 43,100 校准到 43,700。162 字符根实测 43,965,仍拒绝。原超限和初始“路径归一化后十九控制全相同”的失败假设均保留:十八项相同,replan 的新 context 引用需要保持各自身份。该本地诊断不宣称已解释全部 Windows 字节,也不改变生产正文、硬限制、执行预算或模型费用。双语依据见预算说明。
  • 当前头的验证。 原 cli-output-budget-regression-smoke.py 完整流水线通过,固定原事件 base 6d19ab66cf40 并核验目标主干 0514512ee7;两份 CLI 资格测试文件为 347 PASS / 2 SKIP。PowerShell 7 不可用和深度夹具临时目录过长的跳过保留;后者在另一个独立短命名空间实际通过原 depth 0/6/12 检查。Ruff、语义差分 advisory、RFC 双语差分及公开边界通过。Quick premerge 的 七项直接检查、四项选中检查无执行失败,整体仍为 quality_receipt_missing,保留 Benchmark 人工门。
  • 验收边界。 这次没有把旧头的 native/wheel 大套件改记为当前头重跑。当前头独立评审与质量回执、原 main 渠道采用 P2、适用原 quota 单会话成果及完整成本、已安装 App/原生 Windows 与历史支持窗口继续开放。没有查询或手动触发 CI,没有合并、在线安装、发布或新模型评测。

The qualification consumer now recognizes only the declared historical alias cutover with all nineteen original controls intact; unknown inputs and later growth remain failures. The original CLI pipeline and scoped tests pass. The crowded presentation allowance is calibrated against retained physical-path and clock information, with an actual over-limit counterexample. Complete C1 defaults and Off semantics remain. Exact-head review/quality, adoption P2, applicable outcome/full-cost and platform/history qualification remain open.

历史候选及其原范围证据 / Earlier candidates and their original evidence

前一主干集成与恢复资格 / Previous main integration and recovery qualification

该次候选 7aa77766d053 已整合实际目标主干 6d19ab66cf40,消解共享 turn_envelope.ts 的冲突。新工作的完整 C1 默认入口、显式 Off 内联、原 capture/Session/Turn 身份与一次结算继续保留;相对该主干仍为 301 个文件。

  • 冲突处保留 C1 使用的共享 projection helpers,同时采用已合入 #8928 的实验性 compaction working memory 退役:移除已删除模块的 import,保留主干对旧 operation 和 hook 注入的删除。既有严格 settings 历史读取仍在。普通 native lifecycle、完整来源读取及 Progressive/Delta 继续使用现有 owner。原 Bash 与 login: false helper 与 369464841319 字节相同。
  • 本候选实际运行 native context boundary、旧配置退役、原 Host/capture 恢复及 first-read 组合:369 PASS / 6 XFAIL,耗时约 876.75 秒。原生 Codex 为 macOS 0.169.0-alpha.11.1,仅连接本地固定合成响应。六项原生 Host 限制仍为 XFAIL,分别涉及首输入不完整、自动压缩丢失和 compact hook 失败后继续执行;未转记为通过。
  • 重新构建 Chat 和隔离 wheel;1,862 个 Python/TypeScript 模块与当前源码逐字节相同,两个退役模块不在包内。实际安装包的 console → Host → File/SQLite 路径 2 项通过:长任务末尾条款进入真实产物、原会话回执恢复且只结算一次。wheel SHA256 为 5436644dcff6bd942497e05b0ea3841af3e05a8e71561c990c67bd4673383e22。这是隔离安装验证,已安装 App、原生 Windows 和匹配模型成果/完整成本仍按原门验收。
  • TypeScript context/Turn/lifecycle 108 项通过,control-plane 类型检查及 RFC 双语差分通过。精确头 quick premerge 7 项直接、4 项选中检查均无执行失败;整体仍为 manual_review_required,保留 Benchmark 人工门。初次缺少前端构建/依赖及wheel 测试定位/fixture import 的准备失败已保留,补齐正常构建和测试环境后重新执行,没有改变产品断言或放宽门禁。
  • 已合入 #8922 的发布工程资格消费修复随主干集成;其工程检查不代替原 main 渠道采用 P2、适用单会话成果和完整成本。旧头的独立评审保持原绑定,新头须重新独立评审。原宽测和 Linux 结果保留各自版本;未将它们合计为本头全量重跑。本次未合入 main、未发布或升级在线包,也未查询或触发 CI。

This head integrates main and resolves the conflict while preserving complete C1 defaults and the shared projection owner. The withdrawn compaction experiment remains retired, including its dispatcher and hook injection. Current native/recovery checks report 369 passes and six retained host limitations; the rebuilt isolated wheel preserves authored output and once-only settlement on File and SQLite. Type checking, 108 TypeScript cases and automatic quick premerge checks pass. The exact-head independent review, existing main-channel adoption P2, applicable matched outcomes/full costs, installed-platform acceptance and Benchmark human gate remain open.

前一原生夹具修复与资格 / Previous native fixture qualification

当前候选 369464841319 在原 1d42038bf0 上采用 #8924 的明确 Bash 修复,并补齐独立 Linux 验证暴露的登录 shell 路径问题。增量只修改现有测试 helper,生产来源、默认完整 C1、Off、历史身份和结算代码均未变。

  • 原生捕获管道显式使用 Bash,并保留测试环境中已资格化的 CLI 路径。独立 Debian Linux/amd64 容器中,只有 Bash 的第一版为 6 PASS / 6 FAIL:六个后续变更场景在恢复读取时找不到 loopx。同环境加入 login: false 后,原 12 项全部通过;macOS Codex 0.169.0-alpha.11.1 同组 12 项通过。文件中的 87 个原断言 AST 完全相同,没有放松缺失/改变覆盖、Stop、Todo、来源、内容、压缩和重复输入的规则。
  • Linux 使用公开完整性校验的 Codex 0.162.1、Python 3.11.2、Node 24.21.0;隔离容器禁外网并启用子进程回收器,运行本地固定合成响应和本次 editable source。容器为 ARM 宿主上的 amd64 环境,未宣称原生 Windows、正式 App 或完整 wheel 验收。
  • 反证保留:原 helper 在本次 Debian 的单例探测中通过,没有独立复现作者 Ubuntu 的自动 /bin/sh 选择失败;作者该环境的通过结论保持原边界。本轮确认的是登录 Bash 丢失 CLI 路径的独立失败与修复。最初临时文件空间不足的环境准备失败也保留,恢复后未改变测试或产品断言。
  • 精确新头 quick premerge 的 6 项直接检查、4 项选中检查均无失败;整体仍是 manual_review_required,保留 Benchmark 人工门。Ruff、RFC 双语差分与公开边界检查通过。原 42670144845e 的较宽验证及六项宿主 XFAIL 保留原版本和范围;本轮不将旧总数改记为新头全量重跑。
  • Review-A 对 42670144845e 的当前结论仍为 REQUEST_CHANGES,main 渠道采用 P2 未关闭。#8922 是原发布 owner 提交的工程资格消费修复,仍需独立核验;安装成功不替代 C1 的适用匹配成果与完整成本,也不证明渠道采用隔离。本轮没有合并、发布、安装、模型评测或 CI 查询。

The latest head reuses #8924 and prevents a login shell from discarding the isolated, qualified CLI path. The unchanged 12-case coverage/resume matrix passes on the stated Linux and macOS profiles; the independent Linux 6-pass/6-failure result and contrary baseline probes remain recorded. Production behavior is byte-identical to the preceding C1 source. The exact-head review, existing main-channel adoption P2, scoped outcome/full-cost evidence, installed and platform acceptance remain open.

前一集成候选与剩余门 / Previous integrated candidate and remaining gates

当前候选 42670144845e 已整合实际目标主干 6bbdeb58715b,相对该主干仍为 301 个文件。普通新工作默认使用完整 C1,显式 Off 内联同一来源,历史版本、原身份、Stop 与一次结算语义继续保留。

  • 采用实际修复。 合流保留主干 compaction-memory 的派发与 C1 的共享来源;canonical fixture 同时保留两方的五个测试函数,逐项 AST 相同。随后整合新的 Explore 单一排序 owner,并采用 #8916 的原生 replay 修复。兼容列表只增加已验证的 Codex 0.169.0-alpha.11.1;未扩大版本范围,也未放松缺页、失败工具、未知记录、会话、工作区、模型、权限或压缩的拒绝规则。本次没有新决策 owner、开关或重复实现;现有独立比较与历史 reader 边界不变。
  • 当前头补验。 原生 Codex exec/app-server、隔离配置与纯本地合成 provider:恢复/生命周期/上下文边界/compaction-memory 共 387 PASS / 6 XFAIL。独立复现了修复前完整 observed-coverage 在 resume 后丢失复用资格的失败,同一反例在修复后通过。六项仍是宿主 compact-hook 失败、附加上下文经压缩丢失或首轮输入不完整的预期失败,不能记为通过。Explore 实际写回及结算 172 PASS。最终隔离 wheel 的 1,864 个 Python/TypeScript 源模块逐字节匹配,安装后通过 File/SQLite 的两项真实 console → Host 产物 → 原工作恢复/一次结算用例。
  • 继承证据的精确边界。 先前 b4f9c98d423b 集成树的宽测为 413 PASS / 41 SKIP;后续变化按上述 native 和 Explore 范围补验,不把旧宽测整包改记为新头全量结果。TypeScript 与 DSH 的受测源码在后续提交中未变,复用 534 PASS / 2 PostgreSQL SKIP 及 14 项 DSH 实际 Core 集成通过,control-plane typecheck 通过。以上套件存在重叠,数字不相加。此前依赖未准备导致的两个 TS collection error、隔离测试辅助模块路径错误均保留;修正环境后只复验对应失败范围,没有放松产品校验。
  • 预合并仍未通过。 当前头 quick premerge 的七项直接检查、四项选中检查与公共边界均无执行失败,双语 RFC 检查通过;整体仍为 quality_receipt_missing,并保留 Benchmark 人工门。当前头独立评审、现有发现关闭与维护者合并权限仍需各自满足,未查询或手动触发远端 CI。
  • 采用 P2 保持开放。 原 runtime-main/desktop-main 的支持渠道采用分界仍交现有发布 owner 收口;本次冲突/writer 资格修复没有关闭它。默认完整 C1 的实现方向不变,不恢复第二条活跃生产链。原 quota/C1 匹配单会话成果及完整成本、已安装 App、原生 Windows、适用 PostgreSQL 验证与具名历史支持/回退窗口仍按各自范围验收。没有合并、生产安装或渠道推广声明。

The candidate incorporates verified main 6bbdeb58715b and the exact native-writer fix from #8916. The final native boundary run passes 387 cases and retains six expected host limitations; real Explore paths pass 172, and two isolated-wheel console/Host/recovery cases pass on File/SQLite. Earlier broader evidence keeps its original revision and overlapping scope. Default complete C1 and explicit Off semantics remain. The exact-head quality receipt, independent review, Benchmark manual hold, main-channel adoption P2 and the scoped outcome/cost/platform/history qualification remain open.

历史候选与调用方证据 / Earlier candidate and caller evidence

当前候选 ae04b1e3115d 已整合主干 d210e4cc1d00 的 #8902 普通 Todo 编辑兼容修复:旧记录保留原字段声明,采用新字段后不再静默降级。默认 C1 和显式 Off 的完整内联语义继续保留。 候选 · 主干 · 兼容修复

  • 修正对照指引。 Benchmark 运行时指南此前把 turn_envelope: true 加 Off 描述为短版 v0。当前两种 guard 拼写都交付完整 v1;Off 内联同一来源。现已复用同伴修正,明确配置回执记录的是请求参数;原 quota 对照必须固定已记录的旧 runner 与 LoopX 版本,另建独立 attempt。仅切换参数不能构成旧、新机制对照。
  • 按真实调用方退役。 Python 旧构造器的树内调用仅来自保留 raw/v0 基线的模型行为语料;完整 v1 已直接消费原捕获。保留这个有明确用途的公共比较接口,折叠仅有一个调用方的私有包装,并删除被现有更强用例完整覆盖的重复测试。公共签名和执行主体的 AST 保持一致,四种公开输入逐项输出相同;保留用例继续验证篡改捕获在 actor 调用前被拒绝。双语账本列明生产来源、历史恢复和冻结对照各自的调用方及退出条件。
  • 本次验证范围。 源码语料 213 项、真实 File/SQLite 生命周期与恢复 32 项、TypeScript 原字段兼容与完整来源 93 项通过。Benchmark 入口回归 255 项通过、90 项跳过:Harbor 缺失 72 项、Linux 专用条件 4 项、未显式启用原生 Host 验证 14 项。配置内 mypy、Ruff、control-plane typecheck、原维护性限制和双语 RFC 检查通过。这些均为工程验证,不是模型成果或费用比较。
  • 隔离包与失败保留。 首轮 wheel 构建因主干 TypeScript 变化导致 Chat bundle 过期而失败;按现有构建步骤重建后通过。最终 wheel 的 1,860 个 Python/TypeScript 源模块与当前 head 逐字节一致。隔离安装包通过 13 项语料验证,以及源码/安装包 × File/SQLite 的四项真实 CLI 生命周期用例;未改动生产安装。
  • 当前评审与渠道采用缺口。 当前精确 head 的本地 change-quality 回执有效;quick premerge 的直接失败、执行失败和质量回执失败均为零,整体仍为 manual_review_required,保留 benchmark 人工评审。Review-A 与同伴的现行结论均为 REQUEST_CHANGES,以 COMMENTED 发表;原派发租约、DSH、来源读取与一次结算的通过证据继续有效。剩余 P2 针对真实 main 渠道的适用采用资格:runtime 在 push main 后经构建检查推进 runtime-main,桌面流程每六小时取 main、成功后推进 desktop-main。稳定安装默认 stable 不证明 main 用户隔离。最小后续由现有发布 owner 证明工程候选与尚未资格化的渠道采用真实分开,或补该支持范围适用的同任务成果、完整成本及必要调用方资格;不把全部父路线图泛化为前置。独立评审、具体发现关闭、必要验证、人工门及维护者合并权限仍分别保留。 Review-A 当前意见 · 同伴修正后的意见

接受依据与提案分开。 目标主干 d210e4cc1d00 的已接受 §9 保留“解释 → 双模型比较 → 受支持 profile 的可回退采用/发布 → 范围化默认 → 旧路径退役”的顺序。本候选改为“before release adoption”的段落属于本 PR 的提案修改,先前公开说明把它直接当成已接受依据不准确,现予纠正。默认完整 C1 的实现方向保留,该提案段落不能自行证明采用门已满足。原 quota/C1 单会话成果与完整成本、已安装 App、原生 Windows、两项 SForge 来源依赖和历史 reader 支持/回退窗口继续保持未资格化。 已接受的主干 §9 · 候选改文

同一提交的补充真实入口验证。 macOS 上的 Codex 0.169.0-alpha.11.1 配合隔离本地固定响应,14 项此前未启用的原生 checkpoint 用例现为 12 通过、2 跳过。通过范围包括完整历史与 cursor 核对、中断恢复、错工作目录拒绝、原会话分叉与恢复、配置/作用域变化拒绝、回包丢失恢复和去重;两项 joint 用例仍缺 SForge checkpoint API 来源,未执行。未启动真实模型或基准题目。另从同一 head 构建独立 Core wheel,其 1,807 个 Python/TypeScript 模块与源码逐字节一致;隔离安装后 20 项实际 CLI 用例通过、零跳过,覆盖 File/SQLite 独立成果验证、重复提交、进程丢失、原租约续期/释放后的恢复拒绝,以及 SSH/组合结算和不完整读取、修订、压缩恢复。这是独立 Core 包和隔离原生 Host 的工程资格;已安装 App、原生 Windows、真实任务控制判断和完整成本仍待验。此补证未修改产品源码或当前 head。

Both guard spellings deliver complete C1; explicit Off keeps inline delivery. The corrected benchmark guidance requires a recorded pre-C1 runner and product revision for the original-quota control. The remaining Python v0 constructor serves retained comparison cases; its redundant private wrapper and a duplicate test were removed with parity evidence. Local source and isolated-package checks pass within the stated scopes. The earlier broad benchmark run skipped ninety cases; an additional native-only run passes twelve and retains two SForge-dependent skips; exact-head independent review, matched outcomes and complete costs, installed App and native Windows acceptance remain open.

The accepted target RFC at d210e4c retains the comparison → reversible supported-profile adoption/release → scoped default → retirement sequence. The candidate paragraph saying “before release adoption” is a proposed specification edit, not proof of already accepted qualification; the earlier description conflated those sources. Both current exact-head reviews now conclude REQUEST_CHANGES. The remaining P2 concerns the actual runtime-main and desktop-main publication paths: through the existing release owners, establish a real boundary separating the engineering candidate from unqualified channel adoption, or supply the applicable matched outcomes, complete costs and supported-caller qualification. Preserve the passed engineering evidence, default complete-C1 direction, all remaining model/platform/history acceptance, manual checks and maintainer merge authority. No merge or production qualification is claimed.

前一候选的宿主派发与恢复 / Prior host-dispatch and recovery candidate

当前候选 79202e3dcb4d 已整合主干 42483ac371d9,包含 #8900 和 #8892,PR 差异为 301 个文件。普通绑定调用默认使用完整 C1,显式 Off 继续内联交付。原硬租约的当前到期时间传至实际派发位置,stdio 桥在收到帧后、启动 Host 前再次检查,App Server 在写入 turn/start 前检查。桥已确认未派发时,父进程等待正常退出,保留原拒绝错误。 候选 · 主干

  • 租约与拒绝。 C1 修复树的 67 项实际 Host 准入测试通过,File/SQLite 的六项安装包派发到期用例通过,覆盖 CLI、App Server 和桥接收包后到期。桥清理回归先在两个后端失败,修复后要求正常退出与零终止调用,同时保留 task_lease_expired、零派发、零工作写回和零扣额。先前修复树的独立对照还覆盖三个入口、两个后端的检查前和检查后到期,共 12 项通过。
  • 原工作恢复。 四项隔离安装包用例覆盖旧 App 引导在 File/SQLite 上接续 Auto 与显式 Off 的待扣额 Turn。错 Turn 被拒绝,原回执只补足一次扣额,重试无重复效果。Auto 原捕获字节保持一致。旧 Off 缺少的长 Goal 条款由新 Off 完整内联保留。11 个修改后的交付模块与源码逐字节核对。
  • 组合与类型。 最终 C1 树的 88 项 quota、恢复、结算、scheduler 和 monitor 用例通过。主干 test: keep Todo-less settlement coverage on compact Host input #8900 的原来源及分阶段摘要断言与本提案的不可变捕获检查一并保留,22 项 Todo-less 用例通过。完整 TypeScript 为 6,595 通过、91 跳过、0 失败,后续整合未修改这些源码或用例。
  • 维护性与失败记录。 quota 的计费和调度命令分派从准入函数中移出,继续使用既有参数和动态导出补丁点。模块与复杂度检查在原限制下通过。配置内 mypy 的 17 个文件与扩展适配器类型检查均通过。早期安装包清理失败、模块上限失败和类型错误均保留在验证记录。宽测中两个操作型 Host 时限用例失败,原配置串行复验的三个用例通过。
  • 当前资格。 本地精确范围变更质量回执通过,预合并检查的直接失败、执行失败和质量回执失败均为零。benchmark 人工评审继续开放。67 项 Host、88 项 quota 与六项到期用例对应的 C1 源码和测试,在最终合流提交中逐字节保持一致。主干新带入四个队列相关文件,已重新构建随包前端与 wheel。

This candidate enforces the admitted hard lease through the actual native and stdio dispatch boundary, preserves the original refusal during confirmed bridge cleanup, and retains original-work recovery and once-only settlement. Exact published-head independent review and RFC §9's matched single-session outcomes and complete costs remain open. Installed App, native Windows and historical decoder retirement retain their scoped acceptance requirements.

上一统一候选 / Prior consolidated candidate

候选 1e518cd2d98b 基于已核的主干 c52624225411,相对该主干变更 292 个文件。本次增量将已获独立批准的交付退役与原日志恢复整合到 #8266,再迁移实际调用剩余的测试。两项独立批准分别对应下列原提交。 候选提交 · 目标主干 · #8895 评审 · #8901 评审

  • 普通 quota 与兼容拼写 --turn-envelope 对新工作输出同一份完整 v1。显式 --context-delivery off 内联完整来源。新捕获及真实 benchmark checkpoint/worker、拒绝恢复、宿主首次输入和 replan 采用同一来源。已保存的 v0 捕获和早期完整 v1 日志仍按原版本、Turn key 和回执恢复。
  • 隔离安装包验证四条路径。 File 和 SQLite 各通过新工作组合、捕获、宿主请求和一次扣额;原日志在两种后端均按原 key 重放,原日志字节、宿主调用与扣额计数保持一致。已校验 wheel 的 15 个变更模块与受测源码字节一致,后续提交仅修改测试。
  • 定向回归和类型检查。 270 项 TypeScript 测试、控制平面 typecheck、40 项能力与 Vision 回归及最终 18 项 worker 回归通过。其间 CLI/Host 矩阵为 98 通过、4 失败,四项失败来自历史观察夹具对新输出的取值,修正后均由上述 worker 复验覆盖。已保留初轮结果。 同一提交在 CLI 输出套件中 78 项通过,长路径用例因系统临时路径过长跳过,使用短临时根单独复验通过。 Exact-head quick premerge 的 7 项直接检查、4 项选中检查均通过,Goal 范围的 change-quality 回执与 benchmark 人工评审仍待补齐。
  • 完整内联输出的实测代价。 同一长路径绑定夹具在 File 和 SQLite 上用兼容拼写调用,以前的短视图约 12.2 KB JSON / 2.4 KB Markdown,当前完整输出约 27.5 KB / 27.6–27.7 KB。只在这条合成绑定夹具将展示回归上限校准为 28,000 字符,保留超限反例。这些测量仅覆盖上述 CLI 输出;单会话成果和完整成本须另外测量。

Both new guard spellings deliver the complete work source. An isolated installation replayed already-recorded Turns using their original keys on File and SQLite, and new Turns settled once on both providers. Review of the consolidated head, the matched single-session outcome and full-cost comparison, the installed App and native Windows journeys, and broader historical-reader retirement remain open.

上一主干合流候选 / Prior main integration

候选 67675e706003 已纳入实际目标主干 c52624225411。相对该主干的 C1 差异为 289 个文件。本次作者增量修复一处 Host 测试冲突、三个被后文同名定义覆盖的结算用例,以及两处依赖参数位置的 SSH 断言。Host 用例同时核对原捕获的来源摘要与最终模型输入中的完整任务,继续检查 replan 原读回及历史捕获。 当前候选 · 目标主干

  • 合流初轮为 426 通过、11 跳过、3 失败。三个失败都要求 --begin-turn 位于命令末尾,实际命令带有随后的 --context-delivery off。复用已验证的 token 断言,检查 Off 取值,并验证自动创建 Turn 与传入显式 Turn ID 互斥,并保留未绑定拒绝执行、拒绝扣额和原回执检查。最终候选上相关 25 项通过,另有 2 项 Todo-less 实际 CLI/Host 结算通过。完整初轮结果及失败保留。
  • 237 项 TypeScript 测试、control-plane typecheck 和 17 个 mypy 源码入口通过,最终候选的必需 Ruff 与双语 RFC 检查通过。Quick premerge 的 7 个直接、4 个选中检查通过。整体仍缺精确范围的 change-quality 回执及 benchmark 人工评审。
  • #8895 的 8ecd40d7bf56 和 #8901 的 2696ce03a502 可依原顺序干净组合。最终候选与这两个原提交组合得到的树与本地验证树一致。组合另有 32 项 Host、拒绝和原结算用例及 2 项 Todo-less 用例通过,使用真实 CLI/Host 子进程、File/SQLite 与合成推理。两项配套 PR 保持独立。

当前候选待独立复审。完整原 quota/C1 单会话成果及成本对照、已安装 App 与原生 Windows 采用和历史读取器退出仍待验收。

The proposal now incorporates the verified main revision and both stacked slices compose cleanly in local validation. The final regression rerun covers the changed assertions, actual Host handoff and once-only settlement. Independent review and the matched outcome/full-cost comparison remain open.

前一候选验证 / Prior candidate validation

该次提交为 4b3b96e95c5d,在已整合 main b12608d82bbf 的 cc0f5fb2ba83 上追加三份带 DCO 的提交。新增差异为五个文件:恢复运输、checkpoint 夹具及双语迁移附录。原 PR 分支通过普通 fast-forward 推进。

相对实际目标 main b12608d82bbf 的 C1 差异为 289 个文件。GitHub 当前仍报告比较基点 f15ebdd16b5e,该基点到此 head 为 316 个文件,包含已在 main 的变化;评审分别核对这两个范围,五文件增量仅指上述三份追加提交。

  • 修复准入后的窄输出恢复:回执片段需要分页时,复用已通过预算检查的完整原捕获 reader,允许继续读取同一 Turn 的选题、replan 和结算命令;能够单页交付的回执保留单页恢复。650/900 字节上限、原摘要、拒绝路径、原回执和一次结算继续保留。
  • 修正 checkpoint 额度夹具:原用例已用完两份额度,后续 Host 拒绝启动符合产品规则。现在在任一 wake 前分别声明两份/三份额度,独立验证耗尽时无 Host 调用,以及额度足够时只捕获新的边界。生产额度与启动校验没有放宽。
  • 最终源码定向验证:48 PASS。覆盖完整失败恢复矩阵、单页回执恢复和上述两种额度场景。捕获/拒绝套件另为 148 PASS / 4 SKIP;两组可能重叠。隔离 wheel 经实际已安装 console、真实 File/SQLite 各完成一次恢复与结算,共 2 PASS,已核对所载模块来自该 wheel;已安装 App 的完整使用仍待验收。
  • 反例保留:cc0 的独立组合矩阵为 333 PASS / 11 SKIP / 9 FAIL:八个 pinned-selector 恢复失败,以及一个额度耗尽的夹具失败。该全量结果保留为失败;最终提交的复验覆盖上述列明路径。首次修复还暴露四个单页恢复回归,修正后纳入最终定向验证。
  • 本地 quick premerge 的直接检查与选中 smoke 均无失败;Goal 管理的完整范围仍缺 change-quality 回执,并保留 benchmark 的人工评审要求。整体门禁未通过,尚无合并权限。本轮未查询或等待远端 CI。

前序证据 / Prior evidence

cc0f5fb2ba83 的整合验证为 38 PASS / 5 SKIP(可选 Harbor),包含五个 macOS 原生 Codex 0.169.0-alpha.11.1 场景:App/benchmark progressive 冷暖读取、Code Mode 异步转发、复杂显式 CLI 路由和大 Unicode 上下文恢复;使用真实原生工具与隔离的合成推理。该提交另有 96 TS PASS。本次对相同组合树复验 259 TS PASS,后续修改限于上述 Python 运输、夹具与文档;这些证据不证明模型效果、净费用或已安装 App 的完整采用。先前仓库内临时目录的六项失败与中止矩阵保留,移出 Git 祖先后的六项通过保持原提交边界。

更早的 cb42 严格 CLI 矩阵 98/98、projection freshness 11 PASS,以及 e29 的控制见证、269 PASS / 14 SKIP 和 378 PASS / 1 SKIP,均保留原版本与可能重叠的范围。旧 Linux Codex 0.162.1 的容器权限阻塞仍未资格化;macOS 通过不覆盖该环境。

前期输出成本 / Earlier output cost

冻结 main/C1 夹具的 small JSON 为 23,289 → 22,855;完整内联 Markdown 的 small / crowded / multi-agent 为 7,476 / 8,143 / 6,441 → 22,954 / 42,941–43,017 / 26,339。这些 ASCII 夹具的字符数与 UTF-8 字节数相同,测量的是 context-delivery off 的完整内联呈现。

crowded 的两次后读跨过时钟刻度时,共用 source_defaults.last_read_at 保留较早时间,两条来源各保留显式较晚时间,增加 76 字符。长根失败保留,路径长度不是已证实原因。cb42 将展示回归预算从 43,000 校准为 43,100,高于已测最大载体 83 字符;small / multi-agent 仍为 24,000 / 27,000。原 43,017 载体在旧预算下失败、新预算下通过;补空白至 43,101 的反例仍拒绝。生产输出、传输/执行预算及冻结实验阈值没有借此改变,这项校准不构成省费或效果收益。

剩余验收 / Remaining qualification

RFC §9 的原 quota/C1 同一单会话匹配成果与完整成本资格仍未闭合。需要固定任务、模型、Host、方法、评估器、预算及机会,分别核算 full/delta、明细读取、恢复与最终原生成果,保留负例、混杂和未知成本。更广默认采用再按声明的 DeepSeek/强模型作用域验收,不能把后续双会话目标整体设为独立 C1 切片的前置条件。

当前方向仍是默认 C1、退役旧活动链。必要历史读取器、支持版本与回滚需要具名覆盖;原生 Windows、已安装 App 的完整真实使用和未运行配置保持未资格状态。当前提交需独立精确评审及剩余人工验收;MERGEABLE 和本地测试不授予合并权限,也不解除旧评审中的未解决 finding。

设计和验收依据:统一工作合同 RFC、C1 来源合流账本。前一 author-owned 评审 保留其原 head 与结论;直接 CLI、原回执恢复、来源读取讨论保留。

@mergify

mergify Bot commented Nov 7, 2026

Copy link
Copy Markdown

This pull request has merge conflicts with main and cannot be merged
until they are resolved. Please rebase or merge the base branch, @loopx-agent.

Choose the remote for the base repository, not an out-of-date fork.
For a fork clone, first inspect git remote -v; upstream must point
to https://github.com/loopx-project/loopx.git. If it is absent, add it
with git remote add upstream https://github.com/loopx-project/loopx.git.
Then run:

git fetch upstream
git rebase upstream/main
# Resolve each conflict, git add the resolved files, then git rebase --continue.
git push --force-with-lease origin HEAD

For a same-repository clone whose origin points to
https://github.com/loopx-project/loopx.git, use origin instead of
upstream for fetch/rebase. If you prefer merging the base, use
git merge <base-remote>/main and push normally.

Keep the DCO Signed-off-by trailer on every commit when you rebase.
https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/working-with-forks/syncing-a-fork

@mergify mergify Bot added needs-rebase Mergify: the pull request has merge conflicts with its base branch and removed needs-rebase Mergify: the pull request has merge conflicts with its base branch labels Nov 7, 2026
@mergify

mergify Bot commented Nov 7, 2026

Copy link
Copy Markdown

This pull request has merge conflicts with main and cannot be merged
until they are resolved. Please rebase or merge the base branch, @loopx-agent.

Choose the remote for the base repository, not an out-of-date fork.
For a fork clone, first inspect git remote -v; upstream must point
to https://github.com/loopx-project/loopx.git. If it is absent, add it
with git remote add upstream https://github.com/loopx-project/loopx.git.
Then run:

git fetch upstream
git rebase upstream/main
# Resolve each conflict, git add the resolved files, then git rebase --continue.
git push --force-with-lease origin HEAD

For a same-repository clone whose origin points to
https://github.com/loopx-project/loopx.git, use origin instead of
upstream for fetch/rebase. If you prefer merging the base, use
git merge <base-remote>/main and push normally.

Keep the DCO Signed-off-by trailer on every commit when you rebase.
https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/working-with-forks/syncing-a-fork

@mergify mergify Bot added needs-rebase Mergify: the pull request has merge conflicts with its base branch and removed needs-rebase Mergify: the pull request has merge conflicts with its base branch labels Nov 7, 2026
@mergify

mergify Bot commented Nov 7, 2026

Copy link
Copy Markdown

This pull request has merge conflicts with main and cannot be merged
until they are resolved. Please rebase or merge the base branch, @loopx-agent.

Choose the remote for the base repository, not an out-of-date fork.
For a fork clone, first inspect git remote -v; upstream must point
to https://github.com/loopx-project/loopx.git. If it is absent, add it
with git remote add upstream https://github.com/loopx-project/loopx.git.
Then run:

git fetch upstream
git rebase upstream/main
# Resolve each conflict, git add the resolved files, then git rebase --continue.
git push --force-with-lease origin HEAD

For a same-repository clone whose origin points to
https://github.com/loopx-project/loopx.git, use origin instead of
upstream for fetch/rebase. If you prefer merging the base, use
git merge <base-remote>/main and push normally.

Keep the DCO Signed-off-by trailer on every commit when you rebase.
https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/working-with-forks/syncing-a-fork

@mergify mergify Bot added needs-rebase Mergify: the pull request has merge conflicts with its base branch and removed needs-rebase Mergify: the pull request has merge conflicts with its base branch labels Nov 7, 2026

@loopx-agent loopx-agent left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Reviewer: model_agent, gpt-6.1-sol, OpenAI, runtime_reported, reasoning_effort=max

Request changes conclusion (author-owned PR; GitHub blocks formal self-review)

[P2] C1 仍可从旧捕获取得新租约。 旧版实际生成原捕获并写入 claim,ready 丢失后释放。当前 C1 读取未改动的同一捕获,在 File 和 SQLite 各取得活跃 epoch 2、不同 operation ID,并给原 Turn 返回 ready。 领取入口

[P2] 默认 Turn 预览越过现有预算。 真实默认 JSON turn plan 同一拥挤夹具,无 Vision 从 21,849 增至 54,074 字符,有 Vision 从 25,312 增至 61,473。既有 26,000 上限不变。base 两例通过,当前两例失败。 预览入口

动机 / Motivation

运行 Codex 原生会话、普通 quota、Turn CLI 和恢复流程的操作者依赖同一可信来源。 用户从旧版留下的 Codex 会话恢复,或者在拥挤 Goal 上先读默认计划。需要拿到完整约束并回到原 Turn,无需重新取得旧租约。 当前 C1 可运行同版本恢复和部分统一入口。真实本地入口复现升级恢复和默认预览各一项问题。 当前评审覆盖提交清单、实际 C1 CLI 路径、恢复、预算与主干组合的决定性阻塞。

改动思路 / Approach

quota 和 Turn compose 共享 work_contract,Host 与 journal 从绑定的 source 读取,authority 继续负责 lease 和结算。预览默认直接返回较大的同一工作来源。当前主干已有可复用的分页入口。 保留共享 TypeScript contract 和既有 authority 的职责分配。独立的上下文去重和读回修复可先复用,再验证当前真实单会话切换。 C1 切换 quota 和 Turn/Host 的来源。当前可审的独立传输切片在 #8285。当前 head 已合入 #8284,主干组合成功。恢复和预览需要分别通过实际入口。

具体改动 / Changes

基线为 32167518b3c2646fd9b6a3a6e0aaf74b258a7b70。C1 的单会话切换要求真实入口、完整义务、原身份与一次效果,加 §9 的原 quota 对照。 基线规范

  • 原生来源。 当前 C1 在真实 File 和 SQLite 上各一次同版本对照通过。写入后中断并释放,重放同一捕获仍保留退休 epoch 1。
  • 历史恢复。 旧版实际生成原捕获并写入 claim,ready 丢失后释放。当前 C1 读取未改动的同一捕获,在 File 和 SQLite 各取得活跃 epoch 2、不同 operation ID,并给原 Turn 返回 ready。
  • 有界普通预览。 真实默认 JSON turn plan 同一拥挤夹具,无 Vision 从 21,849 增至 54,074 字符,有 Vision 从 25,312 增至 61,473。既有 26,000 上限不变。base 两例通过,当前两例失败。
  • 完成单会话替换。 对更新后的真实组合补证据。

关键代码讲解

execute_codex_execution_preparation 从当前 capture 派生稳定 operation ID,随后让原 claim owner 和 guard 读回。handle_turn_command 将完整来源交给 build_loopx_turn_plan,默认预览省略 session 和 transaction,仍保留完整 work_contract。恢复已有 journal 时,保存的完整 lineage 与历史 decoder 分开走。 claim plan journal

对主干的风险 / Risks

当前 head 相对主干 32167518b3c2646fd9b6a3a6e0aaf74b258a7b70 的 diff 是 226 个路径。包含 #8284 的无写入主干组合通过。4 项 Anti-Entropy 对照通过,1 项 sparse numeric Effect 失败归因开放。原 capture 兼容反例从旧版真正创建的捕获开始,整个跨版本过程保留原文件。默认 preview 同一实测包含新增的 interaction、replan 与诊断正文。 已落地主干读回 旧 claim 审查

跨版本两例复现,同版本两例通过。默认 plan 的两个固定负载在 base 通过、当前失败。 Quick premerge 的 7 项直接检查和 4 项选中检查通过。当前路径还有 benchmark-sensitive 人工门。 本轮核对了当前 226 路径清单,并聚焦两个可复验的发布阻塞。整套 C1 的逐入口兼容和交付资格仍开放。 远端 CI 未取样。

语义与 CI 对齐

C1 复用了和 #8279 旧审查头相同的 digest 派生代码。旧 Host 写入普通随机 operation ID,当前派生 ID 查不到该操作,于是被既有 managed claim owner 当作新 claim。 通过既有 authority 核验并恢复真正的原 claim。旧捕获无法证明绑定时留作只读,要求使用原 Goal、Agent、Todo 和 Turn 取得新的合格 guard 捕获。保留两种 backend 的跨版本回归。 沿现有有界 preview 和已保存 source reader 分离首读与完整正文,保留所有原约束、可执行 Vision 指导和恢复命令。在 unchanged 上限重跑有无 Vision 的两例。 预算复验用 python -m pytest -q tests/control_plane/test_cli_output_budget.py::test_crowded_turn_plan_budget_preserves_executable_vision_authoring。

我的整体评价 / Verdict

对 fbd4c033e2042786dae637810c1391546ad69fcb 请求修改。先修复旧 capture 和默认预览,再基于包含 #8284 的主干组合复验。当前独立证据支持同版本原租约保护和上述两个反例。 更新后的组合须通过旧捕获恢复、默认预览、同一来源的完整消费和一次结算。全套原 quota 对照、实际安装采用和整题成本仍未验证。

English verdict: REQUEST_CHANGES. C1 still reacquires a released lease from a pre-upgrade capture on File and SQLite. Its default Turn plan also exceeds the existing budget in both matched workloads, while the clean composition with current main resolves the previous conflict.

raise ValueError("Native execution preparation requires its original capture digest")
# The same capture can reappear after a lost readiness result. Let the
# managed claim owner recover the original receipt and current lease.
claim_operation_id = f"todo-claim:codex-capture:{source_sha256}"

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

[P2] 原租约释放后,旧版捕获仍可领取。 独立对照从旧版真实保存的原捕获和一次已写入的 claim 开始。释放 epoch 1 后,当前 C1 的 hook 取得 epoch 2 并返回原 Turn 的 ready。File 和 SQLite 都复现,同版本控制保留退休状态。请沿原 authority 证明原 operation 关联,或要求新的合格 capture。

# The current plan has one source, so inspection retains it.
# Execution still requires its explicit surface, even if a
# caller restores omitted session/transaction metadata.
payload = dict(payload)

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

[P2] 默认 JSON 预览超出现有输出预算。 在相同的拥挤 Goal、有无 Vision 两个真实 CLI 用例中,base 为 21,849 和 25,312 字符,当前为 54,074 和 61,473,超过现有 26,000 上限。请保留有界首读和可执行 Vision 指导,把完整工作来源沿原 capture reader 提供,并重新验证两种负载。

@mergify

mergify Bot commented Nov 7, 2026

Copy link
Copy Markdown

This pull request has merge conflicts with main and cannot be merged
until they are resolved. Please rebase or merge the base branch, @loopx-agent.

Choose the remote for the base repository, not an out-of-date fork.
For a fork clone, first inspect git remote -v; upstream must point
to https://github.com/loopx-project/loopx.git. If it is absent, add it
with git remote add upstream https://github.com/loopx-project/loopx.git.
Then run:

git fetch upstream
git rebase upstream/main
# Resolve each conflict, git add the resolved files, then git rebase --continue.
git push --force-with-lease origin HEAD

For a same-repository clone whose origin points to
https://github.com/loopx-project/loopx.git, use origin instead of
upstream for fetch/rebase. If you prefer merging the base, use
git merge <base-remote>/main and push normally.

Keep the DCO Signed-off-by trailer on every commit when you rebase.
https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/working-with-forks/syncing-a-fork

@mergify mergify Bot added the needs-rebase Mergify: the pull request has merge conflicts with its base branch label Nov 7, 2026

@loopx-agent loopx-agent left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Reviewer: model_agent, gpt-6.1-sol, OpenAI, runtime_reported, reasoning_effort=max

Request changes conclusion (author-owned PR; GitHub blocks formal self-review)

[P2] 默认 Turn 计划超出既有预算。 同一拥挤 Goal 的默认 JSON 计划,有无既有 Vision 均超 26,000 字符。无 Vision 从 21,849 增至 54,074,有 Vision 从 25,312 增至 61,473。两边使用同一 workload、CLI 参数和字符上限。 当前入口 原线程

[P2] 升级前的捕获仍可重开退休租约。 升级前用真实 Host 从旧捕获领取,ready 中断后释放 epoch 1。当前 head 重放同一未改动捕获,在 File 和 SQLite 都生成不同 claim operation,取得活跃 epoch 2,并为原 Turn 返回 ready。当前 main 同样复现旧捕获问题。 当前入口 原线程

动机 / Motivation

在 Codex 上恢复中断工作的操作者,需要判断原任务能否继续。管理拥挤 Goal 的操作者还会先运行默认计划了解下一步。 同一任务在领取后丢失 ready,随后租约被释放。恢复时应先确认原租约状态。计划读取也应在拥挤 Goal 上保留可执行指导并符合原上限。 当前 head 已保住同版本退休租约,准备阶段可按需读取长范围。升级前的捕获仍会重开租约,默认计划也超过既有上限。 本次判断覆盖当前提交的来源和恢复增量,以及两个真实入口的阻塞。完整单会话切换和安装采用仍需独立验收。

改动思路 / Approach

C1 把 quota 和 Turn 的工作输入收进 work_contract,Host 与 journal 再从绑定来源恢复。现有 claim 和 settlement owner 保持权威。最新增量补上普通准备态范围补读,独立验证通过。 保留统一工作来源与既有 authority 的分工。有界预览及升级恢复可以分别修复,并从真实入口验收。 相对前次审查,完整差异有 233 路径。最后一组提交改 5 路径,并复用现有 progressive reader。当前主干合入 #8285 后在 loopx/control_plane/quota/turn_envelope.py 出现组合冲突。

具体改动 / Changes

基线为 94b91e48aa4a2cdafe9d4d31d918fe84d0112b41。C1 切换单位同时要求普通预览、Host 消费、保存捕获和历史恢复保留原义务与身份。CLI 默认计划仍有固定拥挤预算,完整原 quota 对照由主 RFC §9 管理。 基线规范

  • 原生来源。 当前 head 的同版本对照在 File 和 SQLite 都保留退休的 epoch 1,也没有 ready。另测长范围的选择/领取指针可读,就绪时还原完整 220 条。
  • 历史恢复。 升级前用真实 Host 从旧捕获领取,ready 中断后释放 epoch 1。当前 head 重放同一未改动捕获,在 File 和 SQLite 都生成不同 claim operation,取得活跃 epoch 2,并为原 Turn 返回 ready。当前 main 同样复现旧捕获问题。
  • 有界普通预览。 同一拥挤 Goal 的默认 JSON 计划,有无既有 Vision 均超 26,000 字符。无 Vision 从 21,849 增至 54,074,有 Vision 从 25,312 增至 61,473。两边使用同一 workload、CLI 参数和字符上限。
  • 单会话切换。 修复后仍需复验同一来源的逐入口消费、原 Turn 的一次结算、安装宿主和 §9 原 quota 对照。

关键代码讲解

handle_turn_command 给普通预览保留整个工作来源。execute_codex_execution_preparation 从捕获摘要生成 operation。progressivePreparationScope 仅把准备态的大范围放入同源按需读取。 默认计划 领取 准备态首读

对主干的风险 / Risks

本次核对了 233 路径清单。真实入口评审集中在默认预览、原生恢复、最近范围增量和关联回归。旧版生产者固定为 172d80d630f424b0b44dd513863ba02b5f13d55c。基于最新主干 8225c89cea 重跑两个默认预览和 File/SQLite 旧捕获,观察保持一致。组合冲突需作者处理,复验应基于处理后的新提交。 原 quota 对照

聚焦 Python 125 项和 TypeScript 199 项通过。默认计划独立配对在主干两项通过、候选两项失败。退休租约在候选同版本两项通过,候选旧版本两项失败。 Quick premerge 的 7 项直接检查和 4 项选中检查通过。仍有一项 benchmark-sensitive 人工门。 两项既有评审线程在当前提交仍开放。保留原线程方便作者对照本轮复验。 远端 CI 未取样。

默认 plan 的展示分支仅移除 session 和 transaction,仍把完整 v1 work_contract 放进预览。基线使用有界 v0 envelope。拥挤候选保留了新的 interaction、replan、Todo 和诊断正文。 复用现有有界计划和原捕获 reader。保留可执行的 Vision 写回字段和其他当前约束,在既有 26,000 上限复验两个默认预览。 新 Host 用捕获摘要构造稳定 claim ID。同版本可沿原 managed claim 回读;旧版留下的原 operation ID 与新派生值不同,managed claim 因此进入新领取。 先沿原 authority 核验旧捕获对应的原 claim 和状态。不能证明绑定时让旧捕获保持只读,要求新的合格 guard,复验升级与同版本的 File/SQLite 路径。 计划上限 回归夹具

我的整体评价 / Verdict

对 726ab94ccfecad83a8a0b8346e699ec62ca46c62 请求修改。准备态补读和同版本恢复的局部进展已复验,普通计划和升级恢复仍各有一项待修。 修复后仍需复验同一来源的逐入口消费、原 Turn 的一次结算、安装宿主和 §9 原 quota 对照。

English verdict: REQUEST_CHANGES. Both matched default Turn plans exceed the existing 26,000-character ceiling. Pre-upgrade captures still reacquire a retired lease on File and SQLite, while same-version replay is blocked.

@mergify mergify Bot removed the needs-rebase Mergify: the pull request has merge conflicts with its base branch label Nov 7, 2026
@mergify

mergify Bot commented Nov 7, 2026

Copy link
Copy Markdown

This pull request has merge conflicts with main and cannot be merged
until they are resolved. Please rebase or merge the base branch, @loopx-agent.

Choose the remote for the base repository, not an out-of-date fork.
For a fork clone, first inspect git remote -v; upstream must point
to https://github.com/loopx-project/loopx.git. If it is absent, add it
with git remote add upstream https://github.com/loopx-project/loopx.git.
Then run:

git fetch upstream
git rebase upstream/main
# Resolve each conflict, git add the resolved files, then git rebase --continue.
git push --force-with-lease origin HEAD

For a same-repository clone whose origin points to
https://github.com/loopx-project/loopx.git, use origin instead of
upstream for fetch/rebase. If you prefer merging the base, use
git merge <base-remote>/main and push normally.

Keep the DCO Signed-off-by trailer on every commit when you rebase.
https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/working-with-forks/syncing-a-fork

@mergify mergify Bot added needs-rebase Mergify: the pull request has merge conflicts with its base branch and removed needs-rebase Mergify: the pull request has merge conflicts with its base branch labels Nov 7, 2026
@loopx-agent
loopx-agent requested a review from maxliux5 as a code owner November 7, 2026 20:34

@loopx-agent loopx-agent left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Reviewer: model_agent, gpt-6.1-sol, OpenAI, runtime_reported, reasoning_effort=max

Request changes conclusion (author-owned PR; GitHub blocks formal self-review)

[P2] 显式 quota envelope 超过现有 JSON 和 Markdown 上限。 相同小型夹具下,显式 --context-delivery off --turn-envelope 的 JSON 为 9,113 → 24,248(上限 13,000),Markdown 为 2,425 → 24,527(上限 4,800),且标题从 LoopX Turn Envelope 变为 LoopX Turn。

[P2] 显式 Turn 事务详情超过原上限。 相同小型夹具的 turn plan --include-transaction-detail 由 11,283 增至 26,886 字符,越过 15,000 的原上限。该分支保留事务,但默认首屏的按需投影并不覆盖它。

动机 / Motivation

quota 和 Turn 的现有模型、机器读取方及原生 Codex 恢复都依赖保留原身份与工作义务。 同一小型、拥挤和多 Agent CLI 夹具与实际旧捕获恢复,对照当前 main 与目标提交。 原两条旧阻塞的针对性复验通过;当前整条切换对三个显式输出产生最新主干没有的预算失败。 核对关键 CLI、原生 Hook 及恢复路径。PR 同时改动核心协议、客户端适配、测试和文档,结果不能外推到全部真实 Host 或安装采用。

改动思路 / Approach

quota 与 Turn 复用同一完整决定,展示器保留 typed route、当前权限和必读项;原生准备恢复由原租约证明裁定。显式模式仍走完整输出。 合成 owner 复用有价值,普通计划的同源读取也修复了上一轮问题。当前默认 cutover 使两种显式入口改用完整 C1 输出,仍需与现有支持面一起验收。 核对关键 CLI、原生 Hook 及恢复路径。PR 同时改动核心协议、客户端适配、测试和文档,结果不能外推到全部真实 Host 或安装采用。

具体改动 / Changes

基线为 8a4d4f9dab17b01d6fe3546936155b4d718fc20d。既有明确 off/原始输出及调用方迁移约束,以及冻结的 CLI 输出上限。 基线规范

  • 旧捕获。 File/SQLite 四组真实旧版复验,无新认领、租约代次或 ready。
  • 默认只读。 普通只读计划按同一来源补读,单/多 Agent 首屏 12,279/11,931 字符,拥挤重规划 21,760 字符;有 Vision 另测 23,688,均在相应原上限内。旧捕获恢复在 File 和 SQLite 未产生新的 claim、ready 或租约代次。
  • 显式 quota envelope。 相同小型夹具下,显式 --context-delivery off --turn-envelope 的 JSON 为 9,113 → 24,248(上限 13,000),Markdown 为 2,425 → 24,527(上限 4,800),且标题从 LoopX Turn Envelope 变为 LoopX Turn。
  • 显式事务详情。 相同小型夹具的 turn plan --include-transaction-detail 由 11,283 增至 26,886 字符,越过 15,000 的原上限。该分支保留事务,但默认首屏的按需投影并不覆盖它。

关键代码讲解

quota 合成 与 Turn 路由 保留完整决定;默认只读投影 可以按需读回。当前既有预算继续涵盖显式入口。

对主干的风险 / Risks

我把最新主干作为归因基线:这些失败可能在旧 C1 已存在,但不是当前 main 的既有失败。旧 review 的租约与拥挤首屏两例已通过。独立复验也没有把源码读取视为模型采用。

128 项 Turn/租约测试、53 项原生准备和只读回归、102 项 TypeScript 通过;旧版跨升级回放 4 项通过。 Quick premerge 的 7 项直接检查和 4 项选中检查通过。 合并树与 DCO 核对通过;保留 benchmark 人工门。 这里只报告相同输入已完成的 11×2 行实测。作者列出的其余矩阵失败未重新归因,不计入本评审通过项。 远端 CI 未取样。

我的整体评价 / Verdict

保留可用的原有显式读取路径,或通过既有 owner 交付同等语义且满足原预算的版本化契约。确需迁移时逐个核对调用方和退役安排,再提交同一主干/候选对照以及完整回读证据。 保留 C1 未完成:显式调用方预算与兼容性、原 quota 单会话模型采用及完整成本、Windows 实际私有恢复。

English verdict: REQUEST_CHANGES. Request changes. The historical lease replay and crowded default-plan findings pass on this head. Three supported explicit outputs exceed unchanged ceilings that the same fixture passes on current main; qualify those callers before the cutover.

Comment thread loopx/cli_commands/quota.py Outdated
# A decided refusal has the same complete contract as an admission. `ok`
# still controls exit status and host handoff; composition grants no work.
if args.quota_command == "should-run" and isinstance(payload.get("interaction_contract"), Mapping):
payload = _export("compose_turn_decision")(payload,

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

[P2] Keep the explicit quota envelope within its existing caller contract

相同小型夹具下,显式 --context-delivery off --turn-envelope 的 JSON 为 9,113 → 24,248(上限 13,000),Markdown 为 2,425 → 24,527(上限 4,800),且标题从 LoopX Turn Envelope 变为 LoopX Turn。 同一 main 通过原门槛。请保留合格的兼容输出,或先完成现有调用方的版本化迁移与匹配验证。

iteration_context_policy=args.iteration_context,
session_scope=session_scope,
goal_ref=goal_ref,
inspect_plan=(args.turn_command == "plan" and not args.include_transaction_detail

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

[P2] Qualify the complete transaction inspection separately

相同小型夹具的 turn plan --include-transaction-detail 由 11,283 增至 26,886 字符,越过 15,000 的原上限。该分支保留事务,但默认首屏的按需投影并不覆盖它。 默认首屏的修复通过。显式入口仍应保留有界、可用且可回读的原事务,或完成经验证的调用迁移。

@mergify

mergify Bot commented Nov 7, 2026

Copy link
Copy Markdown

This pull request has merge conflicts with main and cannot be merged
until they are resolved. Please rebase or merge the base branch, @loopx-agent.

Choose the remote for the base repository, not an out-of-date fork.
For a fork clone, first inspect git remote -v; upstream must point
to https://github.com/loopx-project/loopx.git. If it is absent, add it
with git remote add upstream https://github.com/loopx-project/loopx.git.
Then run:

git fetch upstream
git rebase upstream/main
# Resolve each conflict, git add the resolved files, then git rebase --continue.
git push --force-with-lease origin HEAD

For a same-repository clone whose origin points to
https://github.com/loopx-project/loopx.git, use origin instead of
upstream for fetch/rebase. If you prefer merging the base, use
git merge <base-remote>/main and push normally.

Keep the DCO Signed-off-by trailer on every commit when you rebase.
https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/working-with-forks/syncing-a-fork

@mergify mergify Bot added the needs-rebase Mergify: the pull request has merge conflicts with its base branch label Nov 7, 2026

@loopx-agent loopx-agent left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Reviewer: model_agent, gpt-6.1-sol, OpenAI, runtime_reported, reasoning_effort=max

Request changes conclusion (author-owned PR; GitHub blocks formal self-review)

对 f73bf1c 请求修改。当前提交仍复现两个显式调用分支的原预算回归。

[P2] 显式quota输出仍越过原预算。 同一小型夹具,JSON为9,113→24,248/13,000,Markdown为2,425→24,527/4,800。正文仍完整inline,Markdown标题由LoopX Turn Envelope变为LoopX Turn。8a与最新df主干相同输入都通过原门槛。原线程

[P2] 完整事务检视仍超限。 turn plan --include-transaction-detail 为11,283→26,886/15,000。inspect_plan明确排除该分支,默认首屏按需投影无法覆盖它。原线程

动机 / Motivation

通过quota读取原工作约束、检查完整事务及恢复原生会话的操作者依赖可用的输出。 同一小型合成Goal在main与当前C1执行显式envelope及事务详情,分别保留原阈值与结果。 相同小型真实 CLI,显式 quota JSON 为 9,113→24,248/13,000,Markdown 为 2,425→24,527/4,800,事务详情 JSON 为 11,283→26,886/15,000。 本轮判断当前切换及其决定性回归。模型成果、安装采用和全部241路径的逐行资格另有未验证范围。

改动思路 / Approach

C1沿同一typed composition组织quota与Turn的完整来源,原捕获与结算owner继续负责身份和效果。普通计划已有同源按需读取,新增量让已观察Goal正文可复用,并在正文纠正、换源、不完整和压缩后恢复完整读取。当前有用边界是这些来源与恢复路径可连贯工作。显式输出也是当前writer切换的下游消费入口,需要一并资格验证。

具体改动 / Changes

按改动前 docs/architecture/rfcs/controller-executor-unified-contract-v0/contract-and-context.md、修订 8a4d4f9 审查。C1 caller replacement and cutover unit 要求入口及下游消费一起资格验证,当前显式入口仍有上述发现。Configuration and migration 的off路径仍提供完整正文,版本和预算兼容性继续收口。Delivery acceptance 中的原失败和预算均保留。基线规范

  • 相对上次公开评审f352142c6f682e4fbd903cb07ebbd353403671a4,新增10路径、+270/−46。quota.py、turn.py、默认renderer和显式预算owner未改。
  • 本轮完成11×2行真实File CLI对照,另以最新df主干补查。三项显式超限保持原数值,普通单/多Agent和拥挤计划在原绝对上限内。
  • 新首读和原恢复相关103项Python、103项TypeScript通过,覆盖正文纠正、改源、不完整及PostCompact恢复。
  • 完整PR为241路径、+20,607/−2,534。本轮重新核对清单与增量,执行范围限于明确列出的CLI和恢复路径。

对主干的风险 / Risks

基于8a的原合并树无冲突,61个commit均有DCO。主干现已更新到 df67371,当前组合在quota_capture.py、quota_presentation.py、turn_envelope.ts和test_replan_staged_read.py四处冲突。作者需处理后在新head复验。Quick的7项直接和4项所选机械检查通过,精确提交质量回执及benchmark人工门另行保留。

两项发现继续使用原讨论线程。旧租约和拥挤默认计划的历史发现保留各自复验版本,本轮通过当前入口作判断。作者其余98行、241路径逐行全面覆盖、所有Host及安装态均未在本轮资格验证。远端CI未取样。

我的整体评价 / Verdict

在既有 typed owner 中资格验证这两个显式分支,提供有界且完整可回读的输出,或用同一 workload 的语义、成本与调用方迁移证据修订版本化展示契约及预算。 本轮支持默认预览和新增恢复的局部进展,同时确认两个显式入口仍有当前回归。C1整体资格继续开放。源码CLI以外的视觉界面未检查,模型采用、安装态与完整成本未实测。

English verdict: REQUEST_CHANGES. Two supported explicit CLI branches still exceed three unchanged ceilings on f73bf1c, while the same fixture passes on both tested main revisions. Current main composition also conflicts in four paths.

@mergify mergify Bot removed the needs-rebase Mergify: the pull request has merge conflicts with its base branch label Nov 7, 2026
@mergify

mergify Bot commented Nov 7, 2026

Copy link
Copy Markdown

This pull request has merge conflicts with main and cannot be merged
until they are resolved. Please rebase or merge the base branch, @loopx-agent.

Choose the remote for the base repository, not an out-of-date fork.
For a fork clone, first inspect git remote -v; upstream must point
to https://github.com/loopx-project/loopx.git. If it is absent, add it
with git remote add upstream https://github.com/loopx-project/loopx.git.
Then run:

git fetch upstream
git rebase upstream/main
# Resolve each conflict, git add the resolved files, then git rebase --continue.
git push --force-with-lease origin HEAD

For a same-repository clone whose origin points to
https://github.com/loopx-project/loopx.git, use origin instead of
upstream for fetch/rebase. If you prefer merging the base, use
git merge <base-remote>/main and push normally.

Keep the DCO Signed-off-by trailer on every commit when you rebase.
https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/working-with-forks/syncing-a-fork

@mergify mergify Bot added the needs-rebase Mergify: the pull request has merge conflicts with its base branch label Nov 7, 2026
@mergify

mergify Bot commented Nov 17, 2026

Copy link
Copy Markdown

Hi @loopx-agent, the DCO Sign-off check did not pass. Please inspect
its details first: checkout, fetch, timeout or infrastructure errors
need their own recovery, not a rewrite of otherwise signed commits.

If the log confirms a missing Signed-off-by trailer, amend the
affected commit with git commit --amend -s; for multiple commits,
use an interactive rebase against the current base from the correct
base-repository remote and sign off each affected commit. Push the
rewritten PR branch with git push --force-with-lease origin HEAD.

Signed-off-by: LoopX Agent <337587101+loopx-agent@users.noreply.github.com>
(cherry picked from commit c74b3da)
Signed-off-by: LoopX Agent <337587101+loopx-agent@users.noreply.github.com>
Signed-off-by: LoopX Agent <337587101+loopx-agent@users.noreply.github.com>
@mergify

mergify Bot commented Nov 17, 2026

Copy link
Copy Markdown

Hi @loopx-agent, the DCO Sign-off check did not pass. Please inspect
its details first: checkout, fetch, timeout or infrastructure errors
need their own recovery, not a rewrite of otherwise signed commits.

If the log confirms a missing Signed-off-by trailer, amend the
affected commit with git commit --amend -s; for multiple commits,
use an interactive rebase against the current base from the correct
base-repository remote and sign off each affected commit. Push the
rewritten PR branch with git push --force-with-lease origin HEAD.

@loopx-agent loopx-agent left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Reviewer: model_agent; model=gpt-6.1-sol; provider=OpenAI; declaration=runtime_reported; reasoning_effort=max.

Request changes conclusion (author-owned PR; GitHub blocks formal self-review)

评审 head:3694648413192f32b7245be09ae225df66ce7006;目标快照:6bbdeb58715bafaa0eb54fedcbcc7fa51324bd93。REQUEST_CHANGES。

[P2] 默认 C1 仍进入 main 渠道,未落实采用资格分界。 普通新工作默认使用完整来源;合入 main 后既有 runtime-main 和 desktop-main 流程仍可推进该版本。 最终 head 相对 1d42038 仅修改一处 native 测试的 Bash/login 参数,全部生产源码和依赖未变;两条自动发布 owner 和默认 composer 均未改变,原成果、全成本和渠道采用 P2 保持开放。 沿现有 runtime/desktop 发布 owner 落实工程候选与 main 渠道采用之间的可执行资格边界,或提供当前支持范围的匹配单会话成果、完整成本及必要调用方资格。保留一个当前来源 owner 和历史恢复。 受影响入口

动机 / Motivation

通过 quota、Turn 和宿主心跳接续长期任务的操作者。 不同入口此前分别组合工作事实;本提案统一完整来源,恢复时继续使用原任务、停止条件和结算身份。 源码恢复和原身份检查通过;默认来源进入 main 自动发布链的采用资格仍未落实。 本轮不启动模型实验、发布或生产安装;不把全部双会话路线图设为本切片前置。 已安装 App、原生 Windows、真实模型成果和完整成本未验;旧读者按具名支持窗口另验。

改动思路 / Approach

准入、任务、租约和结算继续由已有领域 owner 负责;完整来源由现有 TypeScript composer 组合,Python 负责捕获、显示和 Host I/O。 当前 PR 是普通 quota/Turn 的单会话来源迁移及实际下游采用;最小剩余修复在已有发布 owner,不需要新增双决策或通用治理框架。 沿现有 runtime/desktop 发布 owner 落实工程候选与 main 渠道采用之间的可执行资格边界,或提供当前支持范围的匹配单会话成果、完整成本及必要调用方资格。保留一个当前来源 owner 和历史恢复。 完整来源、身份或配置快照的存在只能证明所记录内容,不能单独证明执行、当前所有权或实际采用。需要保留正常路径、拒绝路径与恢复后的可用结果,不能用更严格的局部检查代替整个用户任务。

具体改动 / Changes

完整 base→head 为 301 路径,+27305/−4938。1d42038bf0d9820a5335ad00bccb0c35713e196d 与前一独评 4267014 的 tree 完全相同;发表前收到最终头 3694648,只变一处 native 测试的 Bash/login 参数。全部生产源码、依赖及本轮 310/256 套件的受测文件未变,按此范围复用 1d 的本轮执行证据;原生测试单独补验。前一独评计数保留原执行者,不相加。

关键代码讲解

  1. compose_quota_cli_source:先组合完整来源再捕获。准入、任务、租约和结算继续由已有领域 owner 负责;完整来源由现有 TypeScript composer 组合,Python 负责捕获、显示和 Host I/O。
  2. composeCompleteTurnDecision:完整合同及原来源身份。沿原调用者及失败/恢复路径核对,具体资格以本轮执行范围为准。
  3. _snapshot:精确 writer 资格与历史读回。沿原调用者及失败/恢复路径核对,具体资格以本轮执行范围为准。

规范依据:docs/architecture/rfcs/controller-executor-unified-contract-v0.md at 6bbdeb58715bafaa0eb54fedcbcc7fa51324bd93。先读取接受基线,再判断候选中的规范修改;不以提案自写的较宽边界反证自身合格。

  • C1_SOURCE:implemented。通过真实调用方验证完整来源与恢复。
  • C1_FIDELITY:implemented。保留完整上下文与原身份。
  • C1_ADOPTION:not_met。最终 head 相对 1d42038 仅修改一处 native 测试的 Bash/login 参数,全部生产源码和依赖未变;两条自动发布 owner 和默认 composer 均未改变,原成果、全成本和渠道采用 P2 保持开放。
  • C1_HISTORY:deferred。局部恢复通过不等于所有支持平台和具名 reader 退役。

最终 head 的 Codex 0.169.0-alpha.11.1 真实 Code Mode/resume 专项 12 PASS;使用隔离配置和 loopback 固定响应,没有调用真实模型。相同长任务的 File/SQLite × ordinary/兼容拼写八组 CLI 对照保留完整尾部要求,1d 捕获与最终头相关生产/fixture源码未变;source/capture 默认从旧布局切换为完整 v1,Off 继续内联该来源。这是工程行为对照,不是任务成果或完整成本比较。

对主干的风险 / Risks

最终 head 相对 1d42038 仅修改一处 native 测试的 Bash/login 参数,全部生产源码和依赖未变;两条自动发布 owner 和默认 composer 均未改变,原成果、全成本和渠道采用 P2 保持开放。 沿现有 runtime/desktop 发布 owner 落实工程候选与 main 渠道采用之间的可执行资格边界,或提供当前支持范围的匹配单会话成果、完整成本及必要调用方资格。保留一个当前来源 owner 和历史恢复。 310 Python PASS / 1 SKIP;256 TypeScript PASS;control-plane typecheck PASS;quick premerge 7 direct + 4 selected 无执行失败,整体 manual_review_required。 远端 CI 按当前策略未查询、轮询或等待。本轮测试被会话中断的结果不计通过;发现继承 PYTHONPATH 指向安装版后,保留原失败并在 Python 3.11、显式源码路径下重新执行,未弱化断言或产品规则。

语义与 CI 对齐

本次复用既有词汇与 owner,状态、来源、scope 及重放由现有合同约束。默认 C1 仍进入 main 渠道,未落实采用资格分界。 沿现有 runtime/desktop 发布 owner 落实工程候选与 main 渠道采用之间的可执行资格边界,或提供当前支持范围的匹配单会话成果、完整成本及必要调用方资格。保留一个当前来源 owner 和历史恢复。 未完成的必要语义保留阻断,测试与局部技术检查不关闭它;合并门和维护者权限分别保留。

我的整体评价 / Verdict

源码恢复和原身份检查通过;默认来源进入 main 自动发布链的采用资格仍未落实。 当前 PR 是普通 quota/Turn 的单会话来源迁移及实际下游采用;最小剩余修复在已有发布 owner,不需要新增双决策或通用治理框架。 已安装 App、原生 Windows、真实模型成果和完整成本未验;旧读者按具名支持窗口另验。 当前 C1 净差未修改渲染页面;检查 CLI 与 Host 恢复。 310 Python PASS / 1 SKIP;256 TypeScript PASS;control-plane typecheck PASS;quick premerge 7 direct + 4 selected 无执行失败,整体 manual_review_required。 对长期成果与用户体验的判断保留上述具体缺口;既有通过证据有效,尚未通过的采用或配置保护不能由测试数量代替。

English verdict: REQUEST_CHANGES. Head 3694648; the default C1 source still reaches main publication channels without the accepted adoption qualification boundary.

@mergify

mergify Bot commented Nov 17, 2026

Copy link
Copy Markdown

Hi @loopx-agent, the DCO Sign-off check did not pass. Please inspect
its details first: checkout, fetch, timeout or infrastructure errors
need their own recovery, not a rewrite of otherwise signed commits.

If the log confirms a missing Signed-off-by trailer, amend the
affected commit with git commit --amend -s; for multiple commits,
use an interactive rebase against the current base from the correct
base-repository remote and sign off each affected commit. Push the
rewritten PR branch with git push --force-with-lease origin HEAD.

@mergify

mergify Bot commented Nov 17, 2026

Copy link
Copy Markdown

This pull request has merge conflicts with main and cannot be merged
until they are resolved. Please rebase or merge the base branch, @loopx-agent.

Choose the remote for the base repository, not an out-of-date fork.
For a fork clone, first inspect git remote -v; upstream must point
to https://github.com/loopx-project/loopx.git. If it is absent, add it
with git remote add upstream https://github.com/loopx-project/loopx.git.
Then run:

git fetch upstream
git rebase upstream/main
# Resolve each conflict, git add the resolved files, then git rebase --continue.
git push --force-with-lease origin HEAD

For a same-repository clone whose origin points to
https://github.com/loopx-project/loopx.git, use origin instead of
upstream for fetch/rebase. If you prefer merging the base, use
git merge <base-remote>/main and push normally.

Keep the DCO Signed-off-by trailer on every commit when you rebase.
https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/working-with-forks/syncing-a-fork

Signed-off-by: LoopX Agent <337587101+loopx-agent@users.noreply.github.com>
@mergify

mergify Bot commented Nov 17, 2026

Copy link
Copy Markdown

Hi @loopx-agent, the DCO Sign-off check did not pass. Please inspect
its details first: checkout, fetch, timeout or infrastructure errors
need their own recovery, not a rewrite of otherwise signed commits.

If the log confirms a missing Signed-off-by trailer, amend the
affected commit with git commit --amend -s; for multiple commits,
use an interactive rebase against the current base from the correct
base-repository remote and sign off each affected commit. Push the
rewritten PR branch with git push --force-with-lease origin HEAD.

@loopx-agent loopx-agent left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Reviewer: model_agent; model=gpt-6.1-sol; provider=OpenAI; reasoning_effort=max; declaration_source=runtime_reported

Request changes conclusion (author-owned PR; GitHub blocks formal self-review)

动机 / Motivation

从普通 quota、Turn 或宿主心跳接续长期工作的用户,需要在恢复和切换入口时继续使用同一份完整任务、要求和原结算身份。 过去不同入口分别组合或呈现工作来源,恢复时容易增加适配与重复读取;本提案把新工作的来源组合及校验集中到既有 TypeScript owner,并迁移实际调用者。 本轮实际 CLI 对照保留了所检查的任务选择、末尾要求、执行义务、状态文件字节和零扣额;原生读回与退役开关用例通过,六项宿主限制仍为 XFAIL。 本次判断覆盖单会话 C1 来源迁移及其当前集成;安装态 App、原生 Windows、实际模型成果和完整成本仍按各自证据验收。

改动思路 / Approach

完整来源组合、校验及结算语义继续复用既有 typed owner;Python 负责 CLI、文件和宿主 I/O,当前集成采用主干已退役 compaction memory 的边界。 当前 PR 是普通新工作默认采用完整 C1 来源的跨入口迁移,实际 main 自动发布链也因此进入本次交付边界。 普通 quota 先组合完整工作来源,再交给同一捕获、原生读者与原 Turn 结算路径;显式 Off 关闭递进交付,仍提供完整来源,不能把它解释为恢复旧 writer。来源与摘要是派生投影,真正授权仍属于原任务、租约和领域 owner;观察失败不能制造新权限。

这次重新判断整个提案。当前 diff 为301路径、+27305/-4938;对本人此前审查的 42670144845ef3ab8dbd14eca0542f6f96daf4f0 做失效分析,294个 head blob 相同,7处 head 与6处 base 变化重读,87个既有原生断言 AST 保持一致。旧运行保留原提交归属,未把旧批准或测试总数搬到新头。当前 main 348743591f1ee21b733ce97bba2b68e5b83e8866 新增的是 #8919 静态版本元数据资格,不改变下面的 C1 采用门槛。

具体改动 / Changes

评审头为 7aa77766d053923f783f451eba691657a32898e9,PR base 为 6d19ab66cf40b5483e458a20144f221a5f82cfa7。独立依据是已接受版本 6d19ab66cf40b5483e458a20144f221a5f82cfa7 的 docs/architecture/rfcs/controller-executor-unified-contract-v0.md §9,而非候选自己改写的发布措辞。下列 C1_* 是该节要求的评审映射标签,并非新增 RFC 门槛。

要求映射 本头判断
C1_SOURCE implemented:一个完整来源与原工作/结算身份;实际 CLI 和 typed owner 覆盖。
C1_FIDELITY implemented 于所列工程支持范围:完整/差分/恢复的上下文测试和真实 native 读回;6项 XFAIL 保留。
C1_LEASE implemented:实际 dispatch 的原租约边界保留;该 blob 不变,原426的4对真实反例仍仅属于426。
C1_PATHS implemented 于所列支持范围:真实 File/SQLite CLI、native 和现有跨入口分析;安装态/其他平台未资格化。
C1_OUTCOME_COST not_met:默认来源进入实际 main 渠道,缺匹配单会话成果、完整成本或可执行采用隔离。
C1_READER_WINDOW deferred:保留有真实读者的历史解码;完整支持/安装态与回退窗口仍由既有 C1/发布 owner 验收。

关键代码讲解

  • compose_quota_cli_source 对所有普通新 quota 交付调用完整来源 composer,Off 只影响交付层,形成真实默认切换。
  • composeCompleteTurnDecision 校验 literal source、版本与宿主绑定;既有 complete source 不能重新绑定。共享来源字段展开仍属于此 owner,没有恢复已退役 memory dispatcher。
  • handle_native_context_command 移除主干已退役的 compaction memory 注入,保留当前首次/恢复读链;现有 native fixture 用 /bin/bash 且 login:false 保持隔离 CLI 路径。不是放松断言。
  • _snapshot 继续校验确切 writer、会话、cwd 和物理记录;未知/不完整来源不能保留下一轮 baseline。baseline 失效与原 admitted Turn 的恢复是两回事。
  • launch_lifetime 在实际 dispatch 检查原租约期限,复用既有权限 owner;这份生产 blob 与本人426审查相同,未把旧4对执行冒充本头重跑。

对主干的风险 / Risks

[P2] 默认 C1 会进入 main 自动发布渠道,采用资格边界仍未落实。 触发点是上述普通 quota 默认切换;合入后,现有 runtime-snapshots.yml 的 main 发布 job 会创建不可变包并推进 runtime-main,desktop-updater.yml 的成功发布会推进 desktop-main。#8922 加入的 qualify_runtime_artifact.py 确实验证安装/升级、doctor、技能、bundle、激活回退及 source/hash/size 等工程完整性;这些有效修复应保留。它没有验证同条件原 quota 与 C1 的任务成果、完整模型成本,也没有把本提案隔离为不可被当前 main 消费者采用的候选。稳定版另有门槛不能隔离这两条当前渠道。

语义与 CI 对齐

已接受 §9 要求原 quota 与完整 C1 在相同单会话产品路径比较,固定任务、事实、宿主、模型/策略、预算和评估,分开 full/delta,覆盖冷/暖、replan、丢失 baseline、恢复和 capability-off;更广默认采用遵循解释→双模型比较→支持范围可逆采用/发布→范围内默认→具名退役。候选改写“发布前”不能自行解除已有 main 采用义务。此处没有要求新双会话/C2、全未来路线或无授权模型实验作为本轮 gate。最小修复是:由既有发布 owner 落实工程候选与 main 渠道采用之间的可执行资格边界,或补齐当前支持范围的匹配单会话成果、完整成本及必要调用方资格。保留一个当前来源 owner、显式 Off 和有真实读者的历史恢复。

独立验证没有把工程通过说成采用资格:

本头验证 观察
真实 native/context 四模块 PASS:391(30项实际 native +361项上下文);XFAIL:6,397项,430.86s;Codex0.169.0-alpha.11.1、隔离配置与固定本地合成推理。六项宿主限制没有转成通过。
TypeScript + 类型检查 PASS:91项,context identity、native lifecycle、turn envelope;typecheck PASS。
同一实际 CLI 对照 PASS:base8 + head8,File/SQLite×on/off×ordinary/compatibility;所检查的任务、义务、末尾要求、状态文件字节和零扣额一致。基线执行 checkout744仅多一个无关MJS,产品及所用fixture与6d19相同。
quick premerge 7 direct + 4 selected 执行 PASS;总结果 FAIL:quality_receipt_missing,精确范围 receipt缺失;Benchmark manual_review_required 保留。没有绕过或声称整道 gate 通过。
模型成果、完整成本、安装态及其他平台 UNVERIFIED,没有运行实际模型、安装用户运行态、查询/等待远端 CI 或发布主干渠道。

CLI 只归一化声明的运行非确定性和有意 wire/schema 差异,不把缺失要求或权限差异归一化。普通 Off 的实测 bytes 从62389/62475变为62040/62124,compatibility Off 从34429/34511变为62185/62351;这只是该夹具的输出字节观察,不能推导总成本更低,也不声称所有 canonical receipts 未变化。早期426的宽测/租约反例和仍未知的历史失败原因保留在原评审,不冒称本头修复或重跑。

我的整体评价 / Verdict

REQUEST_CHANGES。 当前原生恢复、退役开关和共享来源集成有可复核的工程增量;本人原审的代码事实按294/7失效范围复用,新头的独立结果另列。长期效果和用户体验收益均为 not_yet_proven:由既有发布 owner 落实工程候选与 main 渠道采用之间的可执行资格边界,或补齐当前支持范围的匹配单会话成果、完整成本及必要调用方资格。保留一个当前来源 owner、显式 Off 和有真实读者的历史恢复。 CQR缺失与 Benchmark人工 hold 是独立合并门槛。

规模较大但实际多入口迁移有活动调用者;最高价值的局部简化是采用主干已退役 memory 的边界并继续复用一个完整来源 owner,不能为减代码删除仍有读者的历史恢复。复用现有 complete/native 版本词汇,退役旧 facade,不新增管理者授权;仍未资格化的安装态 App、原生 Windows、完整历史/回退窗口与六项 native XFAIL 均保留。重审需要既有发布 owner 的实际采用隔离,或适用支持范围的 §9 成果与完整成本证据;不要求无关未来工程。

English verdict: REQUEST_CHANGES — current recovery tests pass within their stated scope, but automatic main-channel adoption still lacks the accepted qualification or executable isolation.

…-integration-20261117t103919

Signed-off-by: LoopX Agent <337587101+loopx-agent@users.noreply.github.com>
Signed-off-by: LoopX Agent <337587101+loopx-agent@users.noreply.github.com>
@mergify

mergify Bot commented Nov 17, 2026

Copy link
Copy Markdown

Hi @loopx-agent, the DCO Sign-off check did not pass. Please inspect
its details first: checkout, fetch, timeout or infrastructure errors
need their own recovery, not a rewrite of otherwise signed commits.

If the log confirms a missing Signed-off-by trailer, amend the
affected commit with git commit --amend -s; for multiple commits,
use an interactive rebase against the current base from the correct
base-repository remote and sign off each affected commit. Push the
rewritten PR branch with git push --force-with-lease origin HEAD.

@mergify

mergify Bot commented Nov 17, 2026

Copy link
Copy Markdown

This pull request has merge conflicts with main and cannot be merged
until they are resolved. Please rebase or merge the base branch, @loopx-agent.

Choose the remote for the base repository, not an out-of-date fork.
For a fork clone, first inspect git remote -v; upstream must point
to https://github.com/loopx-project/loopx.git. If it is absent, add it
with git remote add upstream https://github.com/loopx-project/loopx.git.
Then run:

git fetch upstream
git rebase upstream/main
# Resolve each conflict, git add the resolved files, then git rebase --continue.
git push --force-with-lease origin HEAD

For a same-repository clone whose origin points to
https://github.com/loopx-project/loopx.git, use origin instead of
upstream for fetch/rebase. If you prefer merging the base, use
git merge <base-remote>/main and push normally.

Keep the DCO Signed-off-by trailer on every commit when you rebase.
https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/working-with-forks/syncing-a-fork

@loopx-agent loopx-agent left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Reviewer: model_agent; model=gpt-6.1-sol; provider=OpenAI; declaration_source=runtime_reported; reasoning_effort=max.

Request changes conclusion (author-owned PR; GitHub blocks formal self-review)

动机 / Motivation

通过 quota、Turn、心跳和 MCP 接续同一任务的用户与 Agent。

旧入口分别组合工作来源;本提案让普通新工作使用同一完整 C1 来源,并保留原任务、停止条件和结算身份。

本轮证实具名旧别名的资格比较可以接受实际来源迁移,同时继续拒绝控制变化和后续增长;尚未证实默认采用的成果与完整成本资格。

本次不要求两会话架构、未来全平台或额外付费实验,也不把工程通过当成实际模型收益。

审查精确头 eb21cab8e2f2030348100cbc349f41c075bec998,实际 PR base/merge-base 为 0514512ee7fbdf5548c88d07763a41dbfc5df931。这是对整个 C1 提案的结论,包含本轮资格消费修复;不是只看最后一次提交。当前阻断仍是默认采用边界,下面补充了本头上的可执行反例。

改动思路 / Approach

保留现有 TypeScript 来源与身份 owner,Python 继续承担 CLI、捕获和宿主 I/O;资格比较器只解释具名历史载体迁移,不取得准入或发布权限。

当前 PR 的边界是跨入口的完整 C1 来源迁移及其默认切换,不能用最后四个资格文件代替整个提案的采用验收。

没有变化会继续保留分散来源;只修比较器可以修复本轮误判,却不能解除完整提案的默认采用义务。较小的下一步是由既有发布 owner 落实候选与可采用渠道之间的可执行隔离,或提供适用支持范围的匹配成果和完整成本证据,无须再造控制面或要求重写整套架构。

对前次评审的 7aa77766d053923f783f451eba691657a32898e9 / 6d19ab66cf40b5483e458a20144f221a5f82cfa7 做全量失效检查:当前 300 个差异路径中,295 个的 base 与 head blob 均相同。其余五处分别是资格比较器、展示预算、资格测试、双语预算说明,以及吸收主干 JSON 编码修复的 cli_runtime.py;相关变化已重读。前次 native、类型检查和租约执行证据保留原版本,未记作本轮重跑或继承批准。关联的 #8947 在当前 main 上只修正 DSH 测试的受支持版本夹具,不构成 C1 默认采用隔离。

具体改动 / Changes

当前净范围为 300 文件、+27,420/-4,938:生产与工作流 105 文件 +4,635/-2,298,测试/夹具 152 文件 +12,730/-2,382,文档 43 文件 +10,055/-258。最大生产热点仍是 quota、capture、context reader、complete-source 与历史恢复 owner;规模本身既不证明价值,也不是拒绝理由。

独立规范依据是 docs/architecture/rfcs/controller-executor-unified-contract-v0.md,spec_revision 为 0514512ee7fbdf5548c88d07763a41dbfc5df931,特别是已接受的 §9。下列标签只是该节的评审映射,没有新增验收门槛。

要求映射 当前判断
C1_SOURCE implemented 于已核验入口:同一完整来源,历史读取与当前写入分开。
C1_FIDELITY implemented 于当前工程验证范围:真实 CLI、19 项控制、原捕获读回及 File/SQLite 用例;实际模型理解仍未验证。
C1_LEASE deferred:原身份/租约 owner 的 blob 不变,前次实际执行仍归原版本,本轮未重跑全套租约和 crash-window 验证。
C1_PATHS implemented 于所列源码 CLI 范围;已安装 App、原生 Windows 和完整支持窗口未资格化。
C1_OUTCOME_COST not_met:当前默认切换仍能沿 main 渠道发布,缺适用的成果/完整成本资格或可执行采用隔离。
C1_READER_WINDOW deferred:保留具名历史恢复;完整平台、支持版本与回退资格仍待既有 owner。

关键代码讲解

  • compose_quota_cli_source 对普通新交付调用完整 composer;显式 Off 只是内联同一来源,不能当成回到旧默认的隔离开关。
  • _complete_quota_source_migration 限定四条实际测量的别名行、格式/场景、旧来源与投影版本,并核对全部十九项控制。_complete_quota_source_allowance 只授予一次转换余量,后续 v1 增长仍按普通比较拒绝。
  • CLI_OUTPUT_BUDGET_SPECS 只把 crowded Markdown 展示上限校准到 43,700,文档保留物理路径、读取时间、旧失败和超限反例;生产正文、传输硬限制与实验验收阈值没有因此改写。
  • runtime-snapshots publish 核验十项工程布尔值及来源/字节身份后进入渠道推进。qualify_runtime_artifact.py 的实际返回值也只有这些工程事实,没有消费 C1 成果与完整成本资格。

对主干的风险 / Risks

[P2] 在默认切换前落实 main 渠道的 C1 采用资格。 对一个含默认 C1 的候选,只要工程检查为真且来源/字节匹配,当前发布脚本就会推进 runtime-main;没有适用成果与完整成本证据时也一样。desktop-main 的现有发布链同样不能由稳定版的另一道门自动隔离。成功安装、schema 合法或 98 行比较通过,都不能替代这一条件。

本轮直接执行候选的生产 Bash 发布段,复用现有文件系统 GitHub 测试 peer,仅替换网络边界。合成候选只含工程检查、没有模型成果和完整成本记录:退出 0,产生 20 次本地模拟调用,渠道指向候选。将 activation_failure_restored 改为 false 后,退出 1,远端状态不变且调用为零。真实安装、网络发布和渠道修改均未执行;这证明的是当前资格消费缺口,不是假称已经发布了不合格包。

语义与 CI 对齐

§9 要求原 quota 与完整 C1 在同一单会话路径匹配任务、事实、Host、模型/策略、预算和评估,区分 full/delta、恢复和最终成果。最小修复是复用现有发布/激活 owner,缺证或不支持的 profile 不得作为当前渠道的合格默认;或者补齐该支持范围的验收。不要把 C2、全部未来路线或新的未授权模型实验变成前置条件。修复后应通过实际发布消费入口验证缺证拒绝、合格恢复、非覆盖候选不被误挡,以及原字节校验/安装回退不变。

本头实际验证:

  • PASS:347 项,SKIP:2 项。 完整运行 test_cli_output_budget.py 与 test_cli_output_differential.py;包含真实 File/SQLite 原捕获、重规划读回、来源重建与不重复准入检查。跳过项仍按原原因保留。
  • PASS:98 对真实 CLI 观察,0 失败,25 行需人工解释。 保持冻结基线 6d19ab66cf40b5483e458a20144f221a5f82cfa7 和同一公开夹具。已检查这些信号:来源/投影、标题、历史 action carrier 与 Todo 视图迁移不应被解读为模型收益。
  • PASS:比较器敏感性。 同一完整真实观察交给前次 7aa77766d053923f783f451eba691657a32898e9 比较器,四条旧别名失败;本头通过。对真实观察分别注入控制改变但保留旧聚合摘要、未知旧来源、后续 v1 增长,三者均拒绝。没有修改冻结原始观察。
  • PASS:变更 Python 的 Ruff。 前次 7aa 的 391 PASS/6 XFAIL、91 项 TS 与 quick premerge 记录保留原提交;未把其总数搬到本头。当前全范围 premerge/CQR、原生平台、实际模型成果与完整费用未由本轮资格化;没有查询、轮询或等待远端 CI。

以上字节和控制比较只覆盖具名夹具及工程不变量。完整历史支持/回退窗口、实际安装态与模型效果仍开放。新预算说明保留旧失败及路径/时钟成本,不把提高展示上限说成省费。

我的整体评价 / Verdict

REQUEST_CHANGES。 资格消费修复有独立可复核的增量;当前 PR 的默认 C1 采用仍为 not_yet_proven,已接受的 C1_OUTCOME_COST 未满足。长期效果与用户体验收益均不能从工程通过推出。由既有发布 owner 补齐可执行采用隔离,或提供适用支持范围的匹配成果、完整成本及必要调用方资格后复核。

保留现有 TypeScript 来源与身份 owner,Python 继续承担 CLI、捕获和宿主 I/O;资格比较器只解释具名历史载体迁移,不取得准入或发布权限。 当前 PR 的边界是跨入口的完整 C1 来源迁移及其默认切换,不能用最后四个资格文件代替整个提案的采用验收。历史解码有真实恢复消费者,不能为减行删除;没有提出任意代码量上限或重建另一套控制面。

复用现有 v0/v1 来源与 v2 投影词汇;本轮只扩展本地资格比较的具名迁移识别。未修改网页渲染布局,本次视觉检查不适用于 CLI/内部来源迁移;已安装 App 页面和原生 Windows 未验证。无合并、安装、发布或付费模型执行。

English verdict: REQUEST_CHANGES — the exact-head qualification repair passes the bounded CLI and negative checks, but automatic main-channel C1 adoption still lacks the accepted outcome/full-cost qualification or executable isolation.

and getattr(args, "context_delivery", None) == "off" and not activation["enabled"]
and capture_directory is None
and not getattr(args, "turn_instance_id", None) and not getattr(args, "begin_turn", False)))
return compose(payload, scheduler_execution_context=scheduler_context,

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

[P2] 在普通来源默认切换前落实采用资格。这里让所有新 quota 都使用完整 C1;但本头 runtime-snapshots 的发布消费方只核验工程布尔值和源/字节身份。独立执行该生产 Bash(仅将 GitHub 网络替换成本地测试 peer)时,缺少匹配模型成果与完整成本记录的候选仍退出0并推进模拟 runtime-main;工程标志为false时则在零调用前拒绝。按已接受 RFC §9,工程通过不能代替这项采用资格。请由现有发布/激活 owner 增加受影响 C1/profile 的可执行隔离,或补齐适用验收;补测缺证拒绝、合格恢复及不影响未覆盖候选,保留原回执和回退。此验证没有执行实际发布。

This branch has not been deployed

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

Labels

needs-rebase Mergify: the pull request has merge conflicts with its base branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants