Skip to content

Bridge Runtime and macOS updater profiles before the C1 writer switch - #9306

Merged
huangruiteng merged 1 commit into
mainfrom
codex/c1-updater-bridge-20261123
Nov 23, 2026
Merged

huangruiteng merged 1 commit into
mainfrom
codex/c1-updater-bridge-20261123

Conversation

@huangruiteng

Copy link
Copy Markdown
Collaborator

Goal And Delivered Outcome

The published v2.4.0 CLI and macOS preview updater accept the historical quota_packet runtime profile. The next C1 writer uses Complete Turn v1. An intermediate release lets both updaters read either profile while the release builder continues to publish quota_packet. Updater finding in #9176

Related to #9176. Target branch main.

Author Declaration

Written by a model agent using GPT-6.2 from OpenAI. Release contract at the tested base

Criterion Disposition Implementation and evidence
Keep old hosts eligible for the bridge release Implemented The packaged bridge advertises quota_packet. The official v2.4.0 CLI and macOS updater installed it in isolation.
Read both runtime profiles Implemented public_default_contract.json supplies the exact readable profiles to the CLI and native updater. Second-hop CLI and macOS tests installed a C1 fixture and restored the bridge.
Keep the publisher on the historical writer Implemented The public artifact builder still validates against the declared publication profile.
Ship and qualify the signed bridge Deferred The release owner still needs to verify an upgrade under the shipped public signing key.

Scope And Continuation

This is an independently reviewable and reversible compatibility release step. It retains archive identity matching, signature checks, version binding and rollback. The later writer switch keeps its separate installed-Host and matched outcome and cost requirements.

Validation

  • Tested revision 083148082193d60e99ce99f6070d893f086f5b8f.
  • Run state running for the full Python suite.
  • Input classes synthetic, public_fixture.
Check kind Result Public-safe evidence
Static Passed Ruff, mypy, CLI output budget, bilingual RFC check, and Git diff checks.
Unit Passed 74 focused Python tests and 7 native updater tests.
Integration Passed All 19 checks in the standard local premerge gate.
Real entrypoint Passed The official v2.4.0 CLI rejected a modified archive, installed the packaged bridge, and restored its original executable. The installed bridge then rejected mismatched artifact identity, installed an archived C1 runtime, and rolled back to the exact bridge. The release transport was a local fixture.
Real entrypoint Passed On a disposable APFS volume, the official macOS updater installed and rolled back the exact bridge. The HFS+ negative case preserved the existing App. The exact bridge updater then rejected a truncated archive and an incorrect key before installing a C1 preview and restoring the sealed bridge. The Mac tests used a temporary updater key and ad hoc App signing.
Regression parity Failed Two architecture checks also reproduced with the same failures on the pinned base and the cited main snapshot: the Lark identity-shape scan and the direct project-registry loader allowlist.
Full Python suite Running The full local invocation is underway. The architecture failures above have been independently reproduced.
Merge projection Passed The observed target merge was clean, and all five changed files matched the tested head byte for byte.

The formal release still needs an upgrade using the shipped signing key and the final C1 artifact. Main snapshot used for the architecture comparison

Frontend / Visual Evidence

UI impact none. The patch changes artifact compatibility and release instructions.

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

@loopx-agent loopx-agent left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Reviewer: model_agent · gpt-6.2-sol · OpenAI · runtime_reported · xhigh

动机 / Motivation

仍运行已发布 Runtime 或 macOS 预览版的用户。共享渠道若直接换成 Complete Turn v1,旧更新器会在下载安装前拒绝新格式。 原实现让 CLI、macOS 更新器和发布器只认同一个 quota_packet 契约。#9176 的旧版读回在实际切换默认 writer 之前已经出现升级断点。 这一版先让升级器读两种精确身份,继续生成 quota_packet 制品,让已发布版本有一条可安装的桥接路径。

将同一历史描述符、quota_packet 和 Complete Turn v1 测试包依次送到基线与候选的 Runtime 安装入口。再在 macOS 上用候选提交生成真实桌面资源,运行原生 updater 测试。 两边安装历史格式。候选可以下载、校验并激活格式匹配的 C1 测试包,基线在下载前拒绝它。原生 macOS 测试确认当前两个 profile 可安全写入 prepared update,归档替换与保留旧 App 回归通过。

换成未知 schema、归档内外宣称的格式不一致,或下载内容与哈希不一致,并分别尝试以 C1 格式通过发布校验。 若把读者兼容范围直接当作发布资格,尚未完成正式采用验收的 C1 会进入共享渠道。 未知 schema 在两个版本上都未发请求。身份不匹配和哈希不匹配都在激活前停止。两边的发布校验都继续拒绝 C1,候选生成的桌面资源仍声明 quota_packet。 本轮 Runtime 对照使用回环 HTTP、真实下载校验与合成激活动作。macOS 测试用本地源构建,独立证据未覆盖公开签名密钥、生产 App 原地升级或最终 C1 版。

改动思路 / Approach

Python 与 Rust 更新器读取同一个 exact profile 列表。构建、安装资格验证和发布 workflow 通过原有 validate_default_contract 强制匹配单一 publication_surface。 复用已发布的 snapshot、cache 与签名验证。把读者集合和发布选择放在同一份配置,避免增加第二套更新入口或提前切换渠道。

具体改动 / Changes

关键代码讲解

评审头 0831480,合并基线 fea30ef。5 个文件,+77/−21。 依据 Reader bridge on the current writer 和 Qualification and identity checks remain effective 核对现有入口。 仓库规范 #9176 的旧版升级反例

  • publication_surface 与 readable_contracts。同一配置声明唯一发布格式以及两种精确可读格式。 代码
  • standalone_source。把完整策略随单文件脚本交付给独立 installer。 代码
  • validate_manifest。在下载和激活前检查可读格式。后续 install_artifact 仍核对归档身份、版本及下载摘要。 代码
  • qualify_candidate。从签名验证后的归档读取 identity,只接受策略中的完整对象。 代码
  • Runtime snapshot 发布校验。保留原 validate_default_contract 和不可变制品匹配,拒绝 C1 直接进入共享渠道。 代码

对主干的风险 / Risks

语义与 CI 对齐

标准 premerge 的 6 项直接和 19 项选中检查通过。由精确候选构建桌面资源后,macOS updater 有 7 项通过、2 项需外置归档的卷级测试未运行。扩展 Python 回归每边 225 项通过、3 项跳过、13 个 subtest 通过,各有一项相同失败。未改的后台源码更新用例预期失败,但实测基线和候选均返回 succeeded;这组走 source mode,不使用本 PR 修改的 archive profile 判定。 受影响的读取路径变化已验证。远端 CI 按 Goal 设置未查询;签名发布及 C1 的正式采用仍是后续验收。

我的整体评价 / Verdict

同意此提交的代码改动。保留原版本约束、签名校验及原回退入口。维护者还需让未赶上桥接窗口的旧预览客户端能找到经验证的中间版本。 可接受当前兼容代码。按照发布契约,公开签名桥接版的实装读回和 C1 正式采用证据决定后续发布。

English verdict: APPROVE — the existing updater can adopt a bridge with a quota-packet writer and then read Complete Turn v1 artifacts while publication stays on the qualified writer. Exact head 0831480.

@huangruiteng
huangruiteng merged commit 09eadec into main Nov 23, 2026
53 of 60 checks passed
@huangruiteng
huangruiteng deleted the codex/c1-updater-bridge-20261123 branch November 23, 2026 10:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants