Skip to content

fix(ci): keep the kernel type gate on its declared contract set - #9602

Open
gcl-coder wants to merge 42 commits into
loopx-project:mainfrom
gcl-coder:codex/platform-typing-guards
Open

gcl-coder wants to merge 42 commits into
loopx-project:mainfrom
gcl-coder:codex/platform-typing-guards

Conversation

@gcl-coder

@gcl-coder gcl-coder commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

Current comparison and cursor recovery

A local trial merge of ee5b1856bc9866afa018d5a760172ffcdfa8522b into main at 3597d2d91f19679a913fa68a579cccec74cd2e53 changes 19 paths from its first parent. The tested scope includes CI classification and test tooling, explicit Vision first-read navigation, peer-mailbox digest reuse, local SQLite rollback and their fixtures. The workflow change selects full qualification.

The first-read regression fixture now injects ENOSPC at publication of the selected cursor. Both ordinary and explicit Vision modes assert an attempted cursor write and read back the original captured content through their fallback. The focused pair passed locally, and the full test_context_first_read.py suite passed all 209 cases.

The Dashboard turn-cost browser scenario waits for its usage view after initial navigation and locale reload. In the packaged browser, the original navigation timed out while the usage view was present and an unrelated read remained pending. The updated scenario passed with an unrelated read held through each navigation, and the ordinary packaged scenario also passed.

Motivation

kernel-contracts had been failing on main for at least two days, and it is the
backend qualification blocker: its failure propagates through checks and
pytest to merge-gate.

The cause is not a type defect in the contract set. It is the gate's own
invocation:

python -m mypy                          -> 3852 errors in 396 files (checked 17 source files)
python -m mypy --follow-imports=silent  -> Success: no issues found in 17 source files

[tool.mypy] declares 17 files under strict = true, but bare python -m mypy
follows every import those files reach. That pulls in 379 legacy modules which
were never meant to satisfy strict, so the job reports thousands of findings
in files it never claimed to qualify and the declared contract set is never
reached cleanly.

Dependency chain

test-shard and windows-powershell list needs: [changes, chat-bundle] only,
so they are not blocked by this gate. The chain is narrower:

job needs
test-shard changes, chat-bundle
windows-powershell changes, chat-bundle
checks changes, kernel-static-checks, kernel-contracts, …
pytest changes, checks, test-shard

A red kernel-contracts therefore turns checks and pytest red on every PR.
The original comparison used 811c1a1f6 on main.

Changes

.github/workflows/python-tests.yml — kernel-contracts now runs
python -m mypy --follow-imports=silent, with an inline comment recording why.
The flag still resolves types through imports; it only stops reporting on
modules outside the declared set, so the 17 contract files keep their full
strict enforcement. The same workflow already uses this flag for the adjacent
Type-check Todo CLI adapters boundary.

scripts/ci/impact_plan.py, scripts/ci/review_gate.py,
.github/workflows/python-tests.yml
— CI classifies a pull request against the
merge GitHub actually tested instead of diffing the head against its merge base.
classify --tested-merge requires the tested merge to be the current checkout,
requires the exact PR head as its second parent, and requires the first parent to
descend from the event base. The plan then compares that first parent with the
tested tree, so commits already on the target branch cannot widen or shrink the
PR's qualification scope. A CI-policy change inside the tested diff still forces
full qualification.

.github/workflows/python-tests.yml — the wheel-build smoke shard provisions
uv, which the installed-tool smoke needs.

loopx/control_plane/quota/progressive_context.ts — the progressive opening
recognizes already-deferred manager inbox rows by their exact supporting pointer
and required read, preserving the typed owner's ability to re-read the original
evidence while keeping the existing source and authorization checks.

Test fixtures — the checkpoint, work-yardstick, Windows install and
integration-branch fixtures now exercise their current contracts: typed
byte-level Git identity, the compacted graph cold read, PathDistribution-based
RECORD filtering, and each published Todo manifest's historical fields.

Fields the site resolver no longer changes

Earlier revisions of this branch also repaired the anonymous desktop-release
inventory. main has since superseded that work (#9650): the site resolver now
reads the complete stable v* tag listing in one request, so the 1,000-result
anonymous page limit and its pagination tests no longer exist. The merge of
main into this branch took the current-main resolver, its tests and README
unchanged, and this PR's site delta is now empty. The remaining diff is the CI
type gate, the CI tested-merge classification, the uv shard dependency and
the fixture alignment above.

Verification

The gate still catches real errors. A deliberate type error was injected into
a declared contract file (loopx/control_plane/work_items/lifecycle.py):

$ python -m mypy --follow-imports=silent --no-incremental
loopx/control_plane/work_items/lifecycle.py:143: error: Incompatible return value type
    (got "str", expected "int")  [return-value]
Found 1 error in 1 file (checked 17 source files)

Exactly one error, correctly located. The injection was reverted before
committing.

Baseline vs. head, same commit, local mypy 1.20.2 / Python 3.11:

Command Result
python -m mypy (before) 3852 errors in 396 files
python -m mypy --follow-imports=silent (after) Success, 17 files

Classifier behavior on the recorded test merge for #9214: a full run over
1,785 Git path entries becomes the existing mixed run over its actual 26 paths,
and the new tests cover the mismatched-checkout, wrong-second-parent and
non-descendant-base rejections.

On the post-merge head 81e2dfff4 (merge of main at f2a9c7ec):

  • node --test apps/presentation/site/scripts/desktop-download.test.mjs — 9 passed, and the site delta is empty after the merge.
  • pytest scripts/ci/test_impact_plan.py tests/capabilities/test_integration_branch.py tests/test_windows_install.py — 60 passed, 6 platform skips, 52 subtests passed.
  • pytest tests/control_plane/test_work_yardstick_cli.py — all File-provider cases pass (18 passed, File subset) plus 19 passed on the default subset. The remaining failures are the local SQLite 3.49.1 qualification refusal, which needs Node 22.22.3+ with a qualified embedded driver; it reproduces identically on main in this environment.
  • pytest tests/control_plane/test_checkpoint_provider_fence.py — every non-SQLite case passes; the SQLite cases fail with the same driver qualification message.

Scope and limits

Refs #9567

`Type-check kernel contracts` runs `python -m mypy`, which follows every import
the 17 declared files reach. Those imports pull in legacy modules that were
never meant to satisfy `strict`, so the job reported thousands of findings in
files it never claimed to qualify and never reached a green state on `main`.
This is the upstream cause of the skipped Python shards in loopx-project#9567: `test-shard`
needs `kernel-contracts`, so a red gate silently removes the suite that would
otherwise run into its deadline.

Measured on `811c1a1f6`:

  python -m mypy                         -> 3852 errors in 396 files
  python -m mypy --follow-imports=silent -> Success, 17 source files

`--follow-imports=silent` still resolves types through imports, but reports
only on the files the gate declares, so the contract set keeps its `strict`
enforcement. Verified by injecting a bad return type into a contract file
(`loopx/control_plane/work_items/lifecycle.py`): the silent run still failed
with exactly that one error, then the injection was reverted.

The same workflow already uses this flag for the Todo CLI adapter boundary.

Also fix `update_operation.py` to resolve the Windows-only creation flags
through `getattr`, matching the other platform-specific callers in this
package. The POSIX analyzer types those two attributes out of `subprocess`.
The runtime branch is already guarded by `os.name != "nt"`, so behavior is
unchanged.

Refs loopx-project#9567

Signed-off-by: ChengLong GU <88359731+gcl-coder@users.noreply.github.com>
loopx-agent
loopx-agent previously approved these changes Nov 30, 2026

@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

受影响的是查看后端资格结果的 PR 作者、维护工作流的审查者,以及使用后台更新的操作员。 基线裸 mypy 报告 395 个文件的 3834 个问题,显式检查 17 个入口文件。 在同一 Python 3.11.17 和 mypy 1.20.2 下执行基线与候选命令,另外在声明文件及导入模块注入独立类型错误。 候选命令在 17 个目标通过。目标文件内的返回类型错误和依赖签名误用各检出一次,目标集外的函数体诊断被过滤。 验证使用 macOS 的 Python 3.11.17,另以 mypy 的 Linux 目标类型分析复核。Windows 创建参数为受控分支对照,远程 CI 与完整分片时长未验证。 Python 分片的执行时间问题仍由 #9567 跟踪。

改动思路 / Approach

恢复 CI 的 17 文件 strict mypy 契约门,保留导入签名和既有工作流依赖。 在声明的检查步骤使用 follow-imports=silent,保留 strict 和导入类型。后台更新仍用同一工人启动命令,Windows 分支取得同一两个创建标志。 mypy 配置拥有目标集合,工作流 needs 决定作业和汇总的顺序。更新 CLI 的原工人锁、PID 记录与结果通道继续负责执行边界。 后端适用时 kernel-contracts 在 chat-bundle 后检查,checks 汇总结果。分片与 Windows 作业从 changes 和 chat-bundle 独立取得准入。 仓库历史经验讨论分阶段恢复 RFC。这里已有独立可用的契约门和既有工人路径。

具体改动 / Changes

精确提交 bd2828a28f696feef12d6b619fafa46308ea43b9。基线 811c1a1f66652d3fc3b9830d467e14b45b7423c1。整个 PR 2 个文件,+11/-2。YAML 的可执行变化只有现有 mypy 命令。Python 运行时变化限于获取 Windows 常量的写法。 对照「保留后端契约检查」「保持独立作业准入」「继续同等后台更新参数」。候选命令在 17 个目标通过。目标文件内的返回类型错误和依赖签名误用各检出一次,目标集外的函数体诊断被过滤。 结果证明仅工作流选项就足以恢复本地类型检查。真实 POSIX 工人仍脱离观察者继续运行,Windows 参数的两个常量组合为原值。 仓库验收规范

关键代码讲解

  • Type-check kernel contracts。保留 17 文件的严格检查,并继续分析导入签名。 源码
  • test-shard。由 changes、chat-bundle 与已有条件准入,Windows 作业使用同一依赖关系。 源码
  • start_or_observe。根据 POSIX 或 Windows 选定原 Popen 参数,继续使用原锁和结果文件。 源码

对主干的风险 / Risks

[P3] 更正 Python 作业依赖说明。 PR 说明将分片和 Windows 作业误写成 kernel-contracts 的下游。两版传递依赖均只有 changes、chat-bundle、kernel-static-checks。实际依赖 kernel-contracts 的是 checks 汇总。 请在 PR 说明把成果限定为恢复 kernel-contracts 的类型检查和后端资格汇总,保留 #9567 的分片时长问题。 汇总 Windows 条件 分片超时

1063 项工作流测试、24 项更新测试、6 项直接检查和其余 8 项预合并选检通过。标准预合并首次有一项安装 smoke 超时。同一提交与基线独立运行该 smoke 均通过。 远程 CI 未查。

语义与 CI 对齐

保持类型范围;Windows 常量取值经分支配对,真实 POSIX 工人测试通过。 目标模块读取导入签名,错误收敛到明确责任范围。旧分片门槛仍由 changes 与 chat-bundle 决定。

我的整体评价 / Verdict

APPROVE。收敛 mypy 是成立的独立增量。请在 PR 说明把成果限定为恢复 kernel-contracts 的类型检查和后端资格汇总,保留 #9567 的分片时长问题。 Python 分片的执行时间问题仍由 #9567 跟踪。 已在同一提交重新运行唯一未完成的 smoke 并通过。

English verdict: APPROVE at bd2828a. The 17-file strict type gate passes and still detects local and imported-signature errors. The Python shards and Windows job already run independently, so this addresses the contract gate and leaves #9567 open.

gcl-coder added a commit to gcl-coder/loopx that referenced this pull request Nov 30, 2026
…ission

Review follow-up for loopx-project#9604.

**P1 — divergent weights duplicated and dropped cases.** Every shard restored
`.test_durations` on its own. A cache saved mid-run, or branch-scoped visibility,
lets one shard split with measured weights while another splits with equal
weights. Different weights produce different partitions, so some cases run twice
and others never run, while all six shards still exit 0.

Now `test-durations-snapshot` materializes the baseline once, before the matrix
exists, and publishes it as `python-durations-baseline`. All six shards download
that one artifact, so the input is identical for every shard or absent for every
shard. With no history the snapshot pins `{}`, which pytest-split reads as equal
weights — a first run therefore splits exactly as it does today. The download is
`continue-on-error` so a snapshot failure degrades to that same equal-weight
behaviour instead of turning the suite red.

**P2 — the merge ran with no shards.** `if: !cancelled()` let it start when
`test-shard` was skipped, download nothing, and exit 1. It now reuses the shard
admission (`python_tests == 'true'`), and `merge_test_durations` separates the
three cases: no subsets produced and all-empty subsets are skips that write
nothing, while malformed input still raises. Its tests assert exactly that,
including that a skip leaves no baseline file behind.

**P2 — the type gate leaked into this branch.** The workflow copy carried the
`kernel-contracts` `--follow-imports=silent` change, which belongs to loopx-project#9602.
Reverted to `python -m mypy`; this branch now touches only the split baseline.

Per-shard subsets are published as `python-durations-shard-<n>` so the merge
pattern cannot pick up the snapshot artifact and would not resurrect entries for
deleted tests.

`scripts/ci/test_review_gate.py` asserted `needs == ["changes", "chat-bundle"]`
for every heavy lane. That invariant is about admission, and it still holds:
the shard's `if` never reads the snapshot. The assertion now allows a
data-only prerequisite as long as it stays out of the predicate, and the
ancestor set includes it explicitly.

Verification: `python3 -m unittest discover -s scripts/ci -p 'test_*.py'` ->
34 tests OK. Workflow parses to 22 jobs; shard `needs` includes the snapshot,
merge `if` requires `python_tests == 'true'`, merge pattern is
`python-durations-shard-*`, and `kernel-contracts` runs bare `python -m mypy`.

Refs loopx-project#9604

Signed-off-by: ChengLong GU <88359731+gcl-coder@users.noreply.github.com>
…/ci-contract-set-9602-20261130

Signed-off-by: cicolord <cicolord@outlook.com>
Signed-off-by: cicolord <cicolord@outlook.com>
Signed-off-by: cicolord <cicolord@outlook.com>
Signed-off-by: cicolord <cicolord@outlook.com>
Signed-off-by: cicolord <cicolord@outlook.com>
(cherry picked from commit e3b4aa9)
Signed-off-by: lusendong.6789 <lusendong.6789@bytedance.com>
@cocolord
cocolord requested a review from loopx-agent November 30, 2026 12:27
cocolord and others added 8 commits November 30, 2026 20:30
Signed-off-by: lusendong.6789 <lusendong.6789@bytedance.com>
(cherry picked from commit 3b5daae)
Signed-off-by: lusendong.6789 <lusendong.6789@bytedance.com>
(cherry picked from commit 3fadff7)
Signed-off-by: lusendong.6789 <lusendong.6789@bytedance.com>
(cherry picked from commit ff93151)
Signed-off-by: lusendong.6789 <lusendong.6789@bytedance.com>
(cherry picked from commit d708bad)
…avior

Signed-off-by: cicolord <cicolord@outlook.com>
Signed-off-by: cicolord <cicolord@outlook.com>
Signed-off-by: cicolord <cicolord@outlook.com>
Signed-off-by: cicolord <cicolord@outlook.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

依赖后端资格结果的 PR 作者,以及通过公开站点选择 Mac 下载版本的维护者,都是这次改动的使用者。 原类型门把严格诊断扩到目标文件之外,旧发布枚举又在 1,000 条处固定停止。候选的认证构建已输出正确的下载链接,本地未认证的在线构建仍在同一库存边界停住。 候选恢复 17 文件的独立类型检查,并让认证站点构建读回完整发布资产。公开说明中免认证的在线构建仍缺少可执行的恢复步骤。 本次复评覆盖 24 个文件的受测树分类、类型门、站点发布和 Todo/Explore 读回。本地证据未覆盖原生 Windows 或托管分片时限。 当前公开说明把认证写为可选。超过匿名端点上限时,现头不能完成这个已有本地入口,也没有提示切换到已经验证的认证路径。

改动思路 / Approach

保留严格类型检查、受测合并树和已有发布验证 owner。需要在获取发布清单的失败路径识别匿名库存上限,并把认证选项写进现有错误和使用说明。 类型门与候选合并树是独立交付增量;站点的认证路径已可用,公开的匿名入口仍缺这一步。

按 docs/development/ci-impact-selection.md 的基线 719727f05e525e805eb78c3cf94411ba122c5c00 检查 kernel-strict-boundary、verified-merge-classification、published-release-no-partial-output、live-build-auth-recovery。最后两项同时依据同一基线的站点构建约定。 CI 分类 · 公开构建入口

具体改动 / Changes

  • CI 与安装。 工作流把实际 checkout 的 SHA 交给分类器。分类器要求它是受测双亲提交,且源头和目标历史匹配,再以目标父比较。策略改动仍选全量。17 个 mypy 目标维持 strict,导入仍参与类型分析;Linux 目标上的错返回类型反例被抓到。分片现补装 uv,后台更新的 Windows 创建标志走原有分支。 受测合并分类 · 工作流类型门
  • 发布构建。 枚举完整页链后按版本验证清单。认证构建真实读取官方库存,主入口的两个 ZIP 链接读回 v2.4.1。默认离线构建保留 v1.4.0;夹具还验证重叠页拒绝。匿名实测未走到清单验证。 发布 resolver
  • 权威读回。 Todo codec 保留已存在的 created_at 并维持旧 manifest 回放。复盘适配器把页描述交还给 Explore 的 typed owner;Inbox 首读只对当前 required read 的精确位置收窄展示。原生测试保留过期页拒绝、替换 lease 在 guard 前拒绝和 Owner scope。旧 checkout 评审只覆盖两文件,当前按全部 24 文件 +338/-144 核对。 Inbox 首读 · Explore 适配 · Todo codec

对主干的风险 / Risks

[P2] 匿名发布库存达到上限时提供可执行恢复。 按站点 README 仅设置 LOOPX_SITE_RESOLVE_DESKTOP_RELEASE=1 构建,使用当前官方仓库的匿名 GitHub API。 前十页成功且第十页仍有 next。第十一页固定返回 HTTP 422 和 Only the first 1000 results are available;候选只提示 retry,重复同一命令无法继续,当前构建输出保留。 认证构建已实测成功并输出 v2.4.1 链接。保留发布清单完整性门。识别匿名库存上限,给出认证重跑的操作指引,并在 README 明确超过上限时 GH_TOKEN 为在线构建所需。若要继续承诺免认证,使用能证明完整的库存来源。 为 API 第 11 页 422 建定向用例,检查错误提示给出同一构建的认证命令且原输出保留。以真实当前库存分别验证未认证拒绝、认证构建与首页下载链接。 HTTP 错误分支 · 当前认证说明

本地 17 文件 mypy 与刻意类型错误对照、25 项 CI 分类、19 项 Node CI/站点、35 项 TypeScript、267 项 Python、92 项 Explore 及标准 premerge 的 6 项直接和 19 项选定检查已过;匿名在线构建失败,认证构建与默认离线构建成功。 Git 对照还拒绝非受测 checkout、替换的源头父以及不相干的 event base。匿名失败测试确认旧输出字节保留。站点 resolver 和 Todo codec 的 blob 与并行提案 #9631 一致。分片与 Windows 作业无需等待 kernel-contracts 才开始,真实托管任务时长另由 #9567 跟踪。本轮未查远端 CI。 分片时限跟踪

我的整体评价 / Verdict

REQUEST_CHANGES。 认证发布和严格类型门有独立正向证据。现有匿名在线构建说明需要覆盖真实 API 上限并提示如何恢复,才能结束这次变更的发布路径验收。apps/presentation/site/scripts/desktop-download.ts 调整构建时发布枚举。站点页面、文案和布局源文件与基线相同,已核对生成 HTML 中两个 APP ZIP 链接;匿名路径在生成页面前失败。

English verdict: REQUEST_CHANGES at 6af6bdf. The authenticated build selects v2.4.1 and local checks pass. The documented tokenless live build hits the real GitHub 1,000-release limit with HTTP 422 and only suggests retrying. Preserve the existing output and provide an actionable authenticated recovery.

…-9602-20261130

Signed-off-by: cicolord <cicolord@outlook.com>
@mergify

mergify Bot commented Nov 30, 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, @gcl-coder.

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 30, 2026
…-9602-cocolord-20261205

Signed-off-by: cocolord <17559402+cocolord@users.noreply.github.com>
Signed-off-by: cocolord <17559402+cocolord@users.noreply.github.com>
Signed-off-by: cocolord <17559402+cocolord@users.noreply.github.com>
Signed-off-by: cocolord <17559402+cocolord@users.noreply.github.com>
Signed-off-by: cocolord <17559402+cocolord@users.noreply.github.com>
Signed-off-by: cocolord <17559402+cocolord@users.noreply.github.com>
Signed-off-by: cocolord <17559402+cocolord@users.noreply.github.com>
Signed-off-by: cocolord <17559402+cocolord@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-astra · OpenAI · runtime_reported · high

动机 / Motivation

维护者需要判断一次拉取请求实际会把哪些修改带入主干,并在首轮上下文缺少游标元数据时仍能读取原始决策。 目标分支在提案建立后继续前进,CI 在 GitHub 生成的临时合并提交上执行;显式要求查看愿景的调用还可能遇到游标写入失败。 仅比较事件基线与源提交会把主干已包含的历史修改计入本次送审;原恢复测试在主干的普通和显式两种模式均通过。 分类器按试合的第一父提交计算实际增量,同时校验第二父提交指向受审源码;在本次试合上识别出 18 个路径并选择完整测试。 范围覆盖 CI 分类、打包安装及此次合入的上下文、迁移、邮箱和测试变化;Windows 实机和所有远端 CI 结果仍待验证。

改动思路 / Approach

CI 从所检出的试合对象读取两个父提交,再决定要分类的文件。对本次提交,对公开提案基线的 Git 比较包含 630 项,试合第一父到试合结果只有 18 项,目录树与源提交完全相同。工作流本身发生变化,所以仍选完整测试。请同步提案说明的比较基线和运行时改动范围,让后续维护者能按相同输入重验。 当前基线文件及 docs/development/ci-impact-selection.md 明确以事件与试合提交决定运行范围,首读测试明确要求在元数据不可写时恢复原捕获。 本次新增两项浏览器冒烟改用 DOM 加载事件并等待目标控件,其中只读报告另等标签页渲染。两份脚本均通过 node --check,本轮未运行浏览器端到端用例。CI 已能从 Git 验证父链,恢复测试也已有可注入的写入方法;两处都可以沿用现有入口。 范围覆盖 CI 分类、打包安装及此次合入的上下文、迁移、邮箱和测试变化;Windows 实机和所有远端 CI 结果仍待验证。 对照目标提交 4d102d7。

具体改动 / Changes

CI 分类器 校验事件基线、检出对象和第二父。工作流传递试合 SHA,脚本与文档同步,独立测试检查错误父链。安装冒烟改为用受版本控制的前端输入建包,安装后检查聊天资产清单。SQLite 回滚按备份处理共享内存和空 WAL,非空 WAL 仍参与摘要核对。邮箱复用公共摘要规则,补充 Windows 路径及重新打开数据库测试。反熵测试补齐上下文,首读测试还覆盖延期的议程行。

[P2] 修正显式愿景模式的故障注入。 选择首读方案 发生变化。既有夹具 替换旧绑定,实际写入器 仍能写文件,因此断言失败。让故障夹具覆盖实际使用的元数据写入入口,同时保留普通模式与显式愿景模式的完整内容回读断言。

对主干的风险 / Risks

上一版 7463c59 的八个测试文件合计 696 通过、1 失败、12 跳过,另有 52 个子测试通过;临时用户目录的打包安装与聊天资产清单验证通过。 相同两例在当前主干 2 项通过;受审头普通模式通过、显式模式失败。两个写入绑定同时模拟磁盘空间不足后,此前在相同写入代码上,显式模式可逐页还原原始决策。 公开文件列表仍使用较早基线,GitHub 的整份 diff 接口因文件数超限而拒绝返回;已用 Git 对象和文件清单核对两个比较范围。 在实际注入两处写入故障的前版对照中,回读内容与原决策一致。目前证据支持修复测试覆盖,未观察到原始决策丢失。

我的整体评价 / Verdict

建议修改后再审。merge_tree 已通过当前试合文件和实际计划核对;cursor_io 仍有可重复的失败。请使两种读取模式均经过预期的磁盘故障分支,在更新的源提交上重跑这两例和相关首读套件,并保留完整内容核对。

英文简短结论

English verdict: REQUEST_CHANGES · f1dca64. The tested merge is classified correctly. The explicit-vision cursor failure fixture misses the active writer and fails on this head.

@@ -158,7 +161,8 @@ def pin_initial_selection(plan: dict[str, Any], *, opening_context_instruction:
if stateless_navigation:
try:
navigation_plan = _turn_envelope_result("context_select", context=current_document,
select=[""], list_fields=True, include_initial_read_plan=True, normal_work_initial_read=True,
select=[""], list_fields=True, include_initial_read_plan=True,
normal_work_initial_read=not include_vision_detail,

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.

[P2] 显式读取愿景现在使用 decision_capture 中的写入器。既有磁盘故障用例只替换 quota_capture 中的引用,因此仍然生成 first_read_reference,导致主干通过的恢复断言在本提交失败。请对实际写入入口注入故障,并保留普通与显式两种模式的完整回读断言。

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

已在 a63dc6317(合并当前 main 93be88db8)处理本条。

本条的故障注入已对实际写入入口生效。 用例
test_initial_navigation_keeps_the_original_recipe_when_cursor_metadata_is_unwritable
改为只让 decision_capture.write_decision_capture 在收到
schema_version == context_capture_read_reference_v1 且带 selection 的载荷时抛
ENOSPC,并断言该写入确实被尝试过(cursor_write_attempted),因此不会出现
“替换了不存在的引用、结果仍写出 first_read_reference”的情况。普通与显式两种模式
(include_vision_detail=False/True)都保留完整回读断言:普通模式用
read_selection 校验 /goal_boundary、/selected_todo,显式模式用
model_context_reference 逐页读到 EOF 并断言拼回的 JSON 等于原始 capture。

复跑:python3 -m pytest tests/control_plane/test_context_first_read.py -q -k "cursor_metadata_is_unwritable" → 2 passed。

冲突与 CI。 旧 head 322523605 的 typescript-core (1/3) 失败
(content_digest_single_owner.test.ts 的白名单少两个消费模块)来自当时的 main:
在纯 3a4f08406 上同样失败,且这两个模块与该测试在两个树上字节一致。当前 main
已经补上,纯 main 与合并后的本分支上该文件都是 17 passed。

pytest、test-shard、checks 那批失败是 3241 秒 deadline 触发的
KeyboardInterrupt(5131 passed, 210 skipped,没有断言失败),不是代码错误。
本轮以合并后的 head 重跑,新 CI 正在进行中。

本地验证范围:真实源码 Python 与 Node 用例。test_context_first_read.py 中 40 个失败
全部落在 SQLite 参数上,原因是本机 SQLite 3.49.1 未达资格化门槛(
SQLite authority runtime is not qualified),纯 main 上同样失败。

未验证:Windows 文件系统、已安装 wheel、托管 CI 的其余分片。

Signed-off-by: cocolord <17559402+cocolord@users.noreply.github.com>
Signed-off-by: cocolord <17559402+cocolord@users.noreply.github.com>
loopx-agent
loopx-agent previously approved these changes Dec 4, 2026

@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-astra · OpenAI · runtime_reported · high

动机 / Motivation

需要判定该运行覆盖哪些改动的维护者,以及通过分页读取长程任务上下文的执行者。针对事件之后已推进的主干创建预合并,用真实 Git 对象读取父提交和变化路径。事件基点落后时,旧分类会包含已经进入主干的改动;此前的显式 Vision 用例也没有使游标写入失败。分类器比较测试合并提交和第一父提交,同时校验事件基点及第二父提交。普通和显式 Vision 两种模式都能在游标写入失败后读回原捕获。本次测试合并相对第一父提交改变 19 个文件(+418/−83)。受审头相对上一版只改动研究用量浏览器测试。

改动思路 / Approach

以 docs/development/ci-impact-selection.md 在 4d102d7 的资格规则为依据。CI 使用已有 Git 对象和作业矩阵,捕获继续使用原始回退路径,浏览器测试等待已有用量组件。无需另设资格状态或变更默认调度。 本次测试合并相对第一父提交改变 19 个文件(+418/−83)。受审头相对上一版只改动研究用量浏览器测试。 此轮资格由实际第一父提交决定。

具体改动 / Changes

分类入口 逐个核对合并提交的父节点,并检查事件基点的祖先关系。在实际测试树上,工作流与策略文件仍然出现,因此会保留完整检查。首读选择 将显式 Vision 请求与普通导航分开;回退测试 只在发布所选游标时模拟磁盘空间不足,先证明触发了写入,再读取捕获内容。迁移检查 识别真实 SQLite 数据库的瞬态文件,隔离测试验证读取之后可回退,新增业务写入之后会拒绝回退。研究用量场景 在语言切换后等待同一用量组件出现,并验证下载中包含所选回合的计数。

对主干的风险 / Risks

旧分类器在相同输入上列出 632 条变化,包含主干已接收改动。分类器在实测合并树列出 19 项,保留完整资格和六个 Python 分片。旧测试重放为一过一败;新头两项写入失败用例通过。 十九项检查中,前一测试合并有两项安装超时,一项词汇检查缺少仓库 npm 依赖。补齐依赖并分别运行后,三项均通过。 较早运行继承了 PYTHONSAFEPATH,CI 脚本导入失败;在工作流的普通 Python 环境重跑,同组八条测试和五十二个子用例全部通过。首读完整套件在上一源提交通过全部 209 项,最新源提交重跑了故障注入的两项。最新测试合并重新运行预合并,19 项选中检查全部通过。 研究历史、工具上下文和回合用量三项真实 Chromium 打包场景全部通过。 本地运行覆盖隔离的 File/SQLite 迁移与打包后的浏览器路径;未实测原生 Windows 安装或运行完整六分片 Python 矩阵。

我的整体评价 / Verdict

涉及前端的三处修改都在浏览器测试中,打包页面的布局和样式沿用主干。 批准当前提交。tested_merge、cursor_recovery 和 browser_usage 均已验证。目标分支上的既有类型检查和站点修复不计入本次成果。合并和远程作业状态需分别判断。

英文简短结论

English verdict: APPROVE · ee5b185. The tested merge retains full qualification, the two cursor failure cases recover their original input, and the packaged usage view passes the locale and download checks.

@gcl-coder
gcl-coder dismissed loopx-agent’s stale review December 4, 2026 23:25

The merge-base changed after approval.

@gcl-coder
gcl-coder requested a review from loopx-agent December 5, 2026 00:17
@mergify

mergify Bot commented Dec 5, 2026

Copy link
Copy Markdown

Hi @gcl-coder, 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.

…-guards-refresh

Signed-off-by: ChengLong GU <88359731+gcl-coder@users.noreply.github.com>
@gcl-coder
gcl-coder force-pushed the codex/platform-typing-guards branch from 56e995d to 6ba0b7d Compare December 5, 2026 00:29
loopx-agent
loopx-agent previously approved these changes Dec 5, 2026

@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 · Gemini · Google · self_reported

动机 / Motivation

受本次改动影响的是执行拉取请求资格判定的维护者与自动化代理、通过首读分页消费长程上下文的执行者,以及在迁移本地运行时状态后需要确认可安全回退的操作员。改动前,事件记录的 base 落后于当前目标分支时,CI 分类器会把主干已合并的策略与代码变更一并算入当前 PR 差异,导致本应走轻量通道的改动被误判为全量验收;同时显式 Vision 首读游标写入失败缺少真实写入器故障注入,SQLite 只读产生的瞬态 -shm 与空 -wal 文件会阻塞迁移回退,打包安装冒烟会读取并发替换中的生成目录,三个浏览器脚本在后台只读请求未结束时易因 networkidle 超时。改动后,分类器按实际测试合并提交的第一父提交与受测树计算增量并校验父提交与事件基线祖先关系,显式 Vision 首读在游标写入失败时触发真实写入入口并回退读回原捕获,local_state_migration 仅对只读瞬态伴生文件保持快照对齐而对非空 WAL、符号链接与真实写入严格拒绝回退。最终可观察结果为:滞后事件基线下分类器仅包含真实 PR 增量且策略改动仍强制全量验收;普通与显式 Vision 首读在游标 ENOSPC 失败时均读回原始捕获;SQLite 迁移后只读允许回退、写入与符号链接拒绝回退;打包安装冒烟从源码清单构建并校验 Chat 产物。本 PR 仅收敛上述 19 个文件的 CI 分类、运行时回归与测试夹具,不改变 kernel-contracts 的 17 文件严格类型门禁范围(mypy --follow-imports=silent 已在主干 9ae0c1ebbc7e 落地),也不修改 Dashboard 前端产品页面代码或引入新的权限与持久化协议。原 PR 标题与部分旧说明仍提及已进入主干的类型门禁和 progressive_context.ts,该文档同步与原生 Windows PowerShell / 托管全分片 CI 运行属于本提交之外的剩余事项。

改动思路 / Approach

本次改动以主干 9ae0c1ebbc7ec83d1de436b27993ce27c0b9cd0b 中的 docs/development/ci-impact-selection.md 为规范依据,各项修复均停留在既有责任边界内,没有引入平行状态机、额外配置开关或新的公开协议版本。在机制拆解上,PR 包含五类最小修复:一是 scripts/ci/impact_plan.py 与 scripts/ci/review_gate.py 增加可选参数 --tested-merge,校验受测合并提交必须等于当前 HEAD、第二父提交等于精确 head_sha、第一父提交继承事件 base_sha,并将 trusted_policy 绑定到第一父提交与受测树;二是 loopx/control_plane/runtime/local_state_migration.py 在回退摘要校验中识别 authority/sqlite-v0/authority-<sha256>.sqlite 的常规文件 -shm 与空 -wal,既恢复只读后回退能力,又保留对非空 WAL、符号链接及数据库字节变更的拒绝语义;三是 loopx/cli_commands/quota_capture.py 在显式 Vision 导航时关闭 normal_work_initial_read,并在测试中直接对 decision_capture.write_decision_capture 注入 ENOSPC;四是 loopx/control_plane/collaboration/peer_mailbox.py 复用单所有者的 BARE_SHA256_PATTERN 并补充 Windows 路径 URI 回归测试;五是打包安装冒烟与三个浏览器场景复用 chat_bundle.source_inputs / validate_bundle 并以显式组件等待取代 networkidle。当前 PR 边界内每项修复均由其既有所有者承接,机制与维护成本均与问题相称,无需进一步拆分或重构。当前 PR 边界明确聚焦在现有 CI 分类、回退校验与回归夹具的正确性修复,不引入新协议或默认策略变更。

具体改动 / Changes

本次审阅基于精确提交 6ba0b7dfce4d9d60621ad868062a4482b56aad03(相对基线 9ae0c1ebbc7ec83d1de436b27993ce27c0b9cd0b 共 19 个文件,+418 / -83 行;相较前一提交 56e995d925b7 仅补齐合并提交的 DCO Signed-off-by 签名,Git 树对象 970fd1d7fe3d86dde6e51e514c48fe97ff97c541 完全一致)。对照规范 docs/development/ci-impact-selection.md(基线 9ae0c1ebbc7ec83d1de436b27993ce27c0b9cd0b):ci-tested-merge-binding(受测合并绑定当前 checkout、精确 head 及事件 base 祖先)、ci-policy-self-exemption-guard(修改 CI 策略仍强制全量验收)与 sqlite-rollback-write-protection(只读允许回退、新业务写入与符号链接伴生文件拒绝回退)三项要求均已实现(implemented)并通过独立验证。此前历史审阅指出的两项阻塞问题——移除已被主干 #9650 取代的站点分页恢复、以及修正显式 Vision 游标 ENOSPC 故障注入入口——在当前精确头上均已核验解决;39 个 PR 提交的 DCO Signed-off-by 也全部齐全(39/39)。

关键代码讲解

  • scripts/ci/impact_plan.py:plan 与 scripts/ci/review_gate.py:main:在 .github/workflows/python-tests.yml 传入 --tested-merge "$CHECKOUT_SHA" 时,严格校验合并提交等于 HEAD、双父提交且第二父等于 head_sha、第一父继承 base_sha,并基于 (parents[0], checkout_sha) 计算增量与 trusted_policy,避免滞后事件基线污染分类同时保持未传参调用的原有行为。
  • loopx/control_plane/runtime/local_state_migration.py:_sqlite_sidecar_snapshot 与 _digest:只对带合法 BARE_SHA256_PATTERN 文件名和 SQLite format 3\0 文件头的数据库跳过只读瞬态 -shm 与 0 字节 -wal 差异;通过 _sqlite_sidecar_size 拒绝符号链接或非常规文件,对非空 -wal 继续按实际字节参与哈希,确保新增写入必被回退安全门拦截。
  • loopx/cli_commands/quota_capture.py:native_context_capture_view:在无状态导航调用 context_select 时将 normal_work_initial_read 设为 not include_vision_detail,避免显式 Vision 细节读取与普通首读方案冲突,并由 tests/control_plane/test_context_first_read.py 的 ENOSPC 故障注入与 4 个 deferred* 路由回归覆盖。
  • loopx/control_plane/collaboration/peer_mailbox.py:return_route:将局部正则替换为单所有者常量 BARE_SHA256_PATTERN,与同模块其它路由及架构测试保持一致,并在 tests/test_peer_collaboration.py 补足 Windows 扩展路径和只读/缺失重开回归。
  • examples/codex-cli-packaged-install-smoke.py:add_tree:打包源码归档时跳过 loopx/web/chat 生成目录,改按 chat_bundle.source_inputs 收入 Dashboard 源码、关闭 LOOPX_PREBUILT_RUNTIME 并在安装后以 validate_bundle 验证产物。

对主干的风险 / Risks

当前精确头 6ba0b7dfce4d9d60621ad868062a4482b56aad03 无阻塞性发现(no blocking finding)。保留一项非阻塞文档建议:

  • [P3] 同步 PR 标题与描述以匹配当前 19 文件净差异。 Problem: PR 标题与中段正文仍写有 kernel-contracts 的 mypy --follow-imports=silent 与 loopx/control_plane/quota/progressive_context.ts,但两项改动均已进入主干 9ae0c1ebbc7e,不在当前 19 文件差异中。Evidence: git diff --name-status 9ae0c1ebbc7ec83d1de436b27993ce27c0b9cd0b..6ba0b7dfce4d9d60621ad868062a4482b56aad03 仅包含上述 19 个路径,.github/workflows/python-tests.yml 仅改动 --tested-merge "$CHECKOUT_SHA"。Impact: 不会造成运行时或门禁回归,但容易令后续审阅者或发布日志检索误判本次 PR 实际落地的改动范围。Fix: 合并前可将 PR 标题和说明收口为当前 19 文件净增量(无需改代码或重推提交)。

本地独立验证结果(均在独立 worktree 的精确提交 6ba0b7dfce4d9d60621ad868062a4482b56aad03 上运行,不依赖远端 CI):

  • python -m mypy --no-incremental --follow-imports=silent(17 个内核契约文件)与 Todo CLI 适配器(2 个文件):PASS;内核类型门禁未被削弱。
  • ruff check(全部 14 个变更 Python 文件)与 DCO 检查(9ae0c1ebbc7e..6ba0b7dfce4d 共 39 个提交):PASS(39/39 均含有效 Signed-off-by)。
  • python -m unittest discover -s scripts/ci -p 'test_*.py':PASS(40/40,含 test_classify_actual_pr_merge_with_a_stale_event_base 的滞后基线与三类父提交/checkout 拒绝分支)。
  • node --test scripts/ci/qualification_summary.test.ts scripts/ci/merge-dashboard-coverage.test.mjs:PASS(9/9)。
  • 关联 pytest 套件(test_python_ci_workflow.py、test_ci_resource_policy.py、test_content_digest_single_owner.py、test_anti_entropy_feedback.py、test_local_state_migration_native.py、test_peer_collaboration.py 及 test_context_first_read.py 变更用例):PASS(614 passed, 3 skipped;此前在字节完全一致树对象 970fd1d7fe3d 上完整运行 7 个变更 pytest 文件含全部 209 条 test_context_first_read.py、test_local_state_migration.py 与 test_windows_install.py 为 689 passed, 12 skipped)。
  • 标准预合并门禁 loopx canary premerge --from-git-diff --git-diff-base 9ae0c1ebbc7ec83d1de436b27993ce27c0b9cd0b:PASS(19/19 选中检查全部通过,含 direct_checks 6/6、catalog_canaries 10/10 含 codex-cli-packaged-install-smoke.py 与 semantic-vocabulary-drift-smoke.py、risk_profile_smokes 8/8、public_boundary 1/1 扫描全部 19 文件,manual_holds=0)。
  • 未验证范围(UNVERIFIED):macOS 本地未执行原生 Windows PowerShell 安装回归(test_windows_install.py 中 12 条 Windows 用例跳过)、未运行托管 6 分片全量 Python 矩阵,且本次未单独拉起 Chromium 实跑三份浏览器脚本。

语义与 CI 对齐

scripts/generate_semantic_inventory.py --changed-from 9ae0c1ebbc7ec83d1de436b27993ce27c0b9cd0b 报告 3 个变更源码文件、0 个新增词表候选;examples/semantic-vocabulary-drift-smoke.py 通过。本次 PR 复用既有 BARE_SHA256_PATTERN 与 loopx_ci_job_plan_v1 契约,未新增或修改共享状态枚举/词表;修改 .github/workflows/python-tests.yml 和 scripts/ci/ 按规则继续触发 change_kind=full,与仓库 CI 策略完全对齐。

我的整体评价 / Verdict

对 outcome_impact 的判断:long_horizon 为 improved(消除了滞后事件 base 造成的 CI 误判全量与 SQLite 只读后无法安全回退,并恢复显式 Vision 首读导航语义);user_experience 为 preserved(无前端渲染或交互样式变更;visual_review 判定为 not_applicable,因本次仅修改 examples/personal-workspace-browser/ 下三份测试等待条件,未触及 apps/presentation/ 或 loopx/web/ 渲染源码,未验证范围为本次未在本地启动 Chromium 实跑该三份浏览器脚本)。observable_semantics 判定为 intentional_change_validated(默认未传 --tested-merge 的分类器路径与已有协议保持等价,新增受测合并与 SQLite 瞬态伴生文件处理均有正反向验证);code_volume 判定为 necessary(含兼容评估 retain);change_proportionality 判定为 proportionate(architecture_assessment=retain,当前 PR 边界内每项修复均由其既有所有者承接);default_off_isolation 判定为 not_applicable(无 opt-in / default-off 特性开关);authority_semantics 判定为 not_applicable(未新增或变更公开 actor/权限协议);semantic_alignment 判定为 aligned(复用既有 BARE_SHA256_PATTERN 与 loopx_ci_job_plan_v1 契约,无需注册表或 RFC 修补)。残余风险仅限于 macOS 环境未实测原生 Windows PowerShell 通道及托管全分片/实机 Chromium 场景。精确头 6ba0b7dfce4d9d60621ad868062a4482b56aad03 已复核未变动,本地验证与 DCO 均全部通过,准予批准(合并权限与远端检查状态另行判定)。

英文简短结论

English verdict: APPROVE · 6ba0b7d. No blocking findings remain: all 39 commits carry valid DCO sign-off, the 17-file strict kernel mypy contract gate passes cleanly, and independent local checks (40 CI unittests, 9 Node CI tests, 614 targeted pytest cases plus 689 on the identical tree, ruff, and 19/19 standard canary premerge checks) all pass; native Windows PowerShell and live Chromium browser runs remain unverified locally.

@mergify

mergify Bot commented Dec 5, 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, @gcl-coder.

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 Dec 5, 2026
Resolve the quota_capture.py conflict by keeping main's guarded navigation plan
lookup and this branch's vision-aware normal_work_initial_read flag, so an
explicit Vision first read still selects its own recipe.

Signed-off-by: ChengLong GU <88359731+gcl-coder@users.noreply.github.com>
@mergify mergify Bot removed the needs-rebase Mergify: the pull request has merge conflicts with its base branch label Dec 6, 2026
@gcl-coder

Copy link
Copy Markdown
Contributor Author

已解决与 main 的冲突(3c3f89c98)。

这次是把最新 main(8716faab9)合并进来,唯一的内容冲突在
loopx/cli_commands/quota_capture.py:main 给 navigation_plan 加了非空守卫,
分支给 normal_work_initial_read 改成了按 include_vision_detail 取值。两处语义
互不覆盖,保留合并后的写法:

navigation_plan = navigation_plan if navigation_plan is not None else _turn_envelope_result(
    "context_select", context=current_document,
    select=[""], list_fields=True, include_initial_read_plan=True,
    normal_work_initial_read=not include_vision_detail,
    **({"include_vision_detail": True} if include_vision_detail else {}))

冲突解决后,相对 origin/main 的分支净差异是 14 个路径、+290/−63,挂在
现有 PR 描述的那几块上,没有新增语义。

本地跑过 tests/test_peer_collaboration.py、scripts/ci/test_impact_plan.py、
tests/test_local_state_migration.py、tests/test_windows_install.py:181 项通过、
12 项跳过、4 项失败。失败的四项在纯 origin/main 上以同样方式失败(
project register 的 Effect runtime handler 报错、usage_ping 的
UsageSettingsUnavailable),属于本机环境,不随本分支变化。

DCO 保留在每个提交上。合并提交带 Signed-off-by。

The TypeScript contract gate rejects the non-optional read of
context_details.sha256 next to the optional path comparison. Both operands
are guarded by the same supportingSource check, so the assertion is total.

Refs loopx-project#9602.

Signed-off-by: ChengLong GU <88359731+gcl-coder@users.noreply.github.com>
@gcl-coder
gcl-coder requested a review from loopx-agent December 6, 2026 03:49
@mergify

mergify Bot commented Dec 6, 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, @gcl-coder.

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 Dec 6, 2026
Signed-off-by: ChengLong GU <88359731+gcl-coder@users.noreply.github.com>
@mergify mergify Bot removed the needs-rebase Mergify: the pull request has merge conflicts with its base branch label Dec 6, 2026

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

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants