Skip to content

Restore the Stage 2C archive order mutation - #10077

Closed
cocolord wants to merge 1 commit into
loopx-project:mainfrom
cocolord:codex/restore-stage2c-archive-mutation-20261204-NjFpJJ
Closed

cocolord wants to merge 1 commit into
loopx-project:mainfrom
cocolord:codex/restore-stage2c-archive-mutation-20261204-NjFpJJ

Conversation

@cocolord

@cocolord cocolord commented Dec 3, 2026 •

Copy link
Copy Markdown
Member

Superseded by #10061. Its reviewed head f5b443d9a5e297777e4c46dc42246a134241abd4 passed the archive-order control and rejected the deliberately incorrect selection on main 3956eb54f7bb5d1fa91dbfd48b4d8bfcf0002e0c.

Goal And Delivered Outcome

Stage 2C stops before exercising the archive-order oracle on current main. Bulk Todo archival now computes the count inside its selection expression, so the mutation runner's old moveCount locator fails.

The mutation reverses the bulk candidates before the existing slice. The archive-order oracle rejects newest-first selection and verifies the expected oldest records.

Author Declaration

Validation

  • Tested revision: b00697bf023cb7446ae490df70094a62a7a47a19
  • Run state: finished
  • Input classes: synthetic, public_fixture
Check kind Result Evidence
regression_parity passed The targeted case on current main reproduces mutation locator drift. The signed repair passes its unchanged control and the deliberately reversed selection exits 1 through the order assertion.
unit passed All five Todo archive selection tests pass on the signed repair.
integration passed All 31 Stage 2C control and mutation pairs pass on the local composition with #9646, #10060, #10063, and the current #10064. Tested on macOS arm64, Python 3.11.15, Node 24.22.2.
static passed Ruff, DCO, and standard premerge with 5 direct and 6 selected checks.

Related to #9646.

Frontend / Visual Evidence

  • UI impact: none

Type of Change

  • Test update

Signed-off-by: lusendong.6789 <lusendong.6789@bytedance.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

Independent review conclusion

  • [P2] 与现有 #10061 重复且互斥。同一作者此前的 #10061 仍以 main 为目标并保持开放。其 runner 指向同一份当前 main 源码时,通过同一个未改控制并被同一个顺序断言杀死。两候选修改同一 case,合并预览在 mutants.py 冲突。 在两个 PR 之间明确保留的一条交付路径,把另一条标记为被取代或合并至保留的候选,并沿保留的精确提交读回这组对照。 执行入口 · 较早的候选 #10061

动机 / Motivation

负责 shared-authority 归档正确性门和现有 Stage 2C 作业的维护者。 单件归档加入后,原负控定位不再适用,需要恢复既有的归档顺序断言和一条清楚的交付路径。 候选的原样控制退出 0。倒序批量选择后退出 1,既有断言精确抓到应先归档的两项 imported Todo 被换成 native 项。 验证限定于这一条 archive-order 负控和交付重叠。

审读提交 b00697b,冻结基线 ca020c4。

改动思路 / Approach

1 个文件增 1 行、删 1 行,只改既有负控的选择表达式。 生产选择器保持原样。Stage 2C runner 将负控注入临时副本,预期归档 ID 由既有独立 oracle 固定。

现有 runner 有且只匹配一次,冻结目录后才注入并复原,没有新增测试层或生产决策。

具体改动 / Changes

  • CONTROL。恢复现在主干上的确定性 archive-order 反例。 独立验证通过。 mutants.py
  • ONE-DELIVERY。同一现有 case 保留一个可合并的交付路径。 配对反例见 P2。 mutants.py

冻结的接口契约 · 原有权威检查

关键代码讲解

对主干的风险 / Risks

同一完整批量 fixture 下对比两套 runner;冻结主线还原定位错误。另确认生产与 oracle 的文件无差异,两侧各 5 个正常测试通过。 Standard premerge 的 5 项直接检查和 6 项选中检查通过。 Stage 2C 实际 CI 入口继续调用同一 runner。五项归档测试与生产选择器源码在 diff 两侧相同。

技术意图成立。阻塞是两个开放的同目标候选对同一处的改写已产生冲突,且两处 PR 正文未记录取舍。

我的整体评价 / Verdict

需要修改。 负控的实际语义通过,须先收敛与 #10061 的两份互斥交付。

只修改 Stage 2C 负控配置,验证对象是命令和归档 oracle。 独立运行了目标负控与归档测试,未重跑整个 Stage 2C 矩阵。作者的 31 对结果注明来自本地组合树。

两份 runner 均在同一份 main 源码上实跑。合并冲突在本地只读预览复现。

English verdict: REQUEST_CHANGES at b00697b. The repaired mutation is correctly rejected by the archive-order oracle. Open PR #10061 fixes the same case on the same main source and conflicts on the same line. Consolidate to one delivery path.

"tests/control_plane/test_shadow_native_todo_update_e2e.py::test_native_update_holds_before_primary_for_management[native-bootstrapping-cli]"),
Case("archive_oldest_selection", ((COORDINATION + "todo_archive_selection.ts", replacement(
"movable.slice(0, moveCount)", "movable.slice(-moveCount)")),),
"movable.slice(0,", "movable.toReversed().slice(0,")),),

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] 与现有 #10061 重复且互斥

同一作者此前的 #10061 仍以 main 为目标并保持开放。其 runner 指向同一份当前 main 源码时,通过同一个未改控制并被同一个顺序断言杀死。两候选修改同一 case,合并预览在 mutants.py 冲突。 在两个 PR 之间明确保留的一条交付路径,把另一条标记为被取代或合并至保留的候选,并沿保留的精确提交读回这组对照。

@cocolord cocolord closed this Dec 4, 2026
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