Skip to content

test(arith): pin entry-point diagnostic labels (Refs #3295) - #3583

Merged
caomengxuan666 merged 1 commit into
masterfrom
fix/3295-arith-diag-entry-label
Nov 17, 2026
Merged

caomengxuan666 merged 1 commit into
masterfrom
fix/3295-arith-diag-entry-label

Conversation

@caomengxuan666

Copy link
Copy Markdown
Member

Pin only (tests/issue3295_arith_diag_entry_label.rs). The #3295 fix lane waits for PR #3465 to merge.

Preserved as a draft per captain order (2026-11-14) so the pin is not held only in a local tree. UNVERIFIED-BY-CAPTAIN.

Pin only; the #3295 fix lane waits for PR #3465 to merge. Preserved as a draft per captain order so the pin is not held only in a local tree. UNVERIFIED-BY-CAPTAIN.
@caomengxuan666

Copy link
Copy Markdown
Member Author

【WIN-AGENT-AUDIT】
PR #3583 第1轮 — 建议:PENDING(钉已就位且期望正确;等 #3295 修法落地,按队长指示保持草稿)
head: 5e366bd base(merge-base): 96802ca 文件: 1 个 +189/-0
关联 issue: #3295(状态:open,我核过的时间:2026-11-16 21:5x 本地)

机制核查(钉的期望是否等于 GNU):

  • 逐条对 GNU 源码/实测核过:execute_cmd.c:3903/3931 给 (( )) 自身 evalexp 置 this_command_name="((";subst.c:10871-10874 arithsub 与 arrayfunc.c:1356-1374 array_expand_index 在嵌套窗口内把它清空 → 嵌套窗口的诊断无标签、(( )) 自身 evalexp 的诊断带 ((:。PR 钉的 6 格(S4 两行无标签 + 顺序、S6 下标窗口无标签、S7 先无标签后 ((:、S1/S2/S5 回归格)与该规则一致。
  • 我用 GNU 5.3.20 脚本文件逐格复跑(target/devin-s9/probes/arith/s{1,2,4,5,6,7}.sh,env -u LANG/LC_*),6 格的 stdout/stderr/退出码与钉里写的期望逐字节一致(仅路径前缀不同)。
  • 钉在当前代码上确为红(判别有效):用本机 rubash 跑 s7 得两行 ((: \1': not a valid identifier(GNU 首行无标签)、s4 两行都带 ((:`(GNU 都无标签)→ 与 PR 描述的 算术文本内展开期诊断被入口标签误标:下标/嵌套展开应无标签 #3295 残差一致。
  • 无产品代码改动(纯钉),无无关面。

腿:

  • 钉自跑(head 5e366bd,Windows):issue3295_arith_diag_entry_label → test result: ok. 0 passed; 0 failed; 0 ignored(整文件 #![cfg(unix)],本机 0 格执行)。用等价脚本探针在 Windows 上确认红(见上)。
  • fail-first:钉在 base==head(分支只加钉)上应红;用等价脚本实测当前代码红(s4/s7 标签错),即「钉已就位、等修复」。不是废钉。
  • lib 双边:未跑(纯测试新增,无产品面;判词由「等修法」决定)。
  • -D warnings:未跑(同上;CI 的 Windows tests compile check 已绿)。
  • 卫生:未跑 fmt(纯测试文件;如需可下轮补)。
  • CI(head 5e366bd):红 = GNU regression goldens and canaries、Rust tests、Rust tests (macOS)(同形 issue2875 基线);无本 PR 引入红。
  • GNU 对照:WSL /usr/local/bin/bash 5.3.20(1)-release;6 形状全一致(见上)。

F 点:无(钉质量合格)。

阻塞 / 处置:

未跑/VOID 的腿:

  • 钉自跑/fail-first 的 cargo 腿:VOID(#![cfg(unix)]);已用等价脚本 + GNU oracle 替代取证并注明。
  • lib 双边 / -D warnings / fmt:未跑,原因见上(纯钉 PR)。

@caomengxuan666

Copy link
Copy Markdown
Member Author

【WIN-AGENT-AUDIT】
PR #3583 第2轮 — 建议:PENDING(钉已就位且期望正确;#3295 修法仍未落地,维持草稿)
head: 5e366bd(未变)base(merge-base): 3745712(更正:第1轮报告写的 96802ca 是当时 master 尖,非 merge-base;对当前 master ccb8614 的真实 merge-base 是 3745712)文件: 1 个 +189/-0
关联 issue: #3295(状态:open,我核过的时间:2026-11-17 18:2x CST)

机制核查(本轮复核要点):

  • 第1轮已逐格核过 GNU 规则(execute_cmd.c:3903/3931 this_command_name="((";subst.c:10871-10874 arithsub 与 arrayfunc.c:1356-1374 array_expand_index 嵌套窗口清空 → 无标签)。本轮用 WSL wsl bash = GNU bash 5.3.20(1)-release 对 s4/s6/s7 三个判别格 + s1/s2/s5 三个回归格复跑(脚本文件 target/e3-probes/3295/{s1,s2,s4,s5,s6,s7}.sh,env -u locale 族):GNU 输出与钉内期望逐字节一致(仅路径前缀不同)。
  • 「修法未落地」本轮实证:master ccb8614 构建的 rubash 跑同三格仍全红——s4 两行均带 ((:(GNU 均无标签)、s6 带 ((:(GNU 无标签)、s7 两行均带 ((:(GNU 首行无标签次行 ((:);回归格 s1/s2/s5 与 GNU 逐字节一致(已绿,不属于红集)。即判别格在当前 master 仍红 → 钉非废钉、仍在等修复。
  • diff 仍是纯新增 tests/issue3295_arith_diag_entry_label.rs(#![cfg(unix)]),src/ 零改动;无可疑面。

腿:

  • 钉自跑(head 5e366bd,Windows):issue3295_arith_diag_entry_label → test result: ok. 0 passed; 0 failed; 0 ignored(整文件 cfg(unix),本机 0 格执行——平台 VOID)。
  • fail-first:等价脚本探针(上)在 master ccb8614 二进制上 s4/s6/s7 红、s1/s2/s5 绿,与钉设计的「3 判别红 + 3 回归绿」一致。
  • lib 双边:VOID-by-construction——diff 仅新增 cfg(unix) 钉文件,src/ 逐字节未动,head 与 merge-base 的 lib 源码相同;两边实跑必等价,未重复构建。
  • -D warnings:本机 cargo check 下该文件编译为空 crate 无可警对象;CI Cross-target check (linux/android) 在本 head PASS → unix 目标下可编译。
  • 卫生:rustfmt --edition 2021 --check 钉文件 → clean;check-marker-literals.py(本 head 树)→ OK (117 registry consts, 268 allowlisted sites)。
  • CI(head 5e366bd,run 43596507618/43596507543):红 = GNU regression goldens and canaries、Rust tests、Rust tests (macOS)。逐名归因:Rust tests 唯一失败 api::consumer_tests::issue2875_input_procsub_child_runs_as_rubash_shell(基线签名);Rust tests (macOS) 唯一失败同上(1243 passed/1 failed);goldens 同见 issue2875 签名 → 全部基线。本 PR 的钉 stem 未出现在这三个 job 的测试名单(Rust tests 仅跑 28/1247 子集)。
  • GNU 对照:WSL bash 5.3.20(1),6 形状全一致(见上)。

F 点:无(钉质量合格)。

阻塞 / 处置(同第1轮结论,现已二次确认):

未跑/VOID 的腿:

  • 钉自跑 cargo 腿 VOID(cfg(unix));已用等价脚本 + GNU oracle + master 二进制取证替代。
  • lib 双边 VOID-by-construction(src/ 零 diff)。

@caomengxuan666

Copy link
Copy Markdown
Member Author

【WIN-AGENT-AUDIT】
PR #3583 第3轮 — 建议:PENDING(钉已就位且期望正确;#3295 修法在 master a41909d 仍未落地,维持草稿)
head: 5e366bd(未变)base(merge-base): 3745712 文件: 1 个 +189/-0
关联 issue: #3295(状态:open,我核过的时间:2026-11-17 19:5x +08)

机制核查(本轮实证,master a41909d):

  • 「修法未落地」直接取证:本 worktree(detached @ a41909d)cargo build --locked --bin rubash 后跑钉的 6 个探针形状(脚本存盘 scratch-f3/3295/{s1,s2,s4,s5,s6,s7}.sh,runner scratch-f3/run-3295-probes.sh,locale 族 env -u):
    • 判别格仍红:s4 两行均带 ((:(GNU 均无标签)、s6 带 ((:(GNU 无标签)、s7 两行均带 ((:(GNU 首行无标签次行 ((:)——与第 2 轮在 ccb8614 上的结果逐格相同;
    • 回归格仍绿:s1(无标签→((:)、s2(((:)、s5(两无标签+div0)与 GNU 期望一致。
  • ccb8614→a41909d3e 仅 3 个 commit(67f80a2aa respawn provenance / 23c0afc heredoc null-command / a41909d funsub ${...}),均不触 arith 诊断面;git log origin/master --grep=3295 仅命中本 PR 自己的钉 commit,无修复落地。
  • GNU 对照复跑:WSL /usr/local/bin/bash = GNU bash 5.3.20(1)-release,同 6 脚本(scratch-f3/run-3295-gnu.sh)→ s4/s6/s7 输出与钉内期望逐字节一致(含 setlocale warning 行),证实钉期望仍正确、红的是产品。
  • diff 仍是纯新增 tests/issue3295_arith_diag_entry_label.rs(#![cfg(unix)]),src/ 零改动;无可疑面、无无关改动。

腿:

  • 钉自跑(head,本机 Windows):issue3295_arith_diag_entry_label → 0 passed; 0 failed(整文件 cfg(unix),平台 VOID;等价脚本探针已取证)。
  • fail-first:钉在 merge-base==head 内容上应红;等价探针在 master a41909d 实测 s4/s6/s7 红、s1/s2/s5 绿,与钉设计「3 判别红 + 3 回归绿」一致 → 非废钉。
  • lib 双边:VOID-by-construction(src/ 零 diff)。
  • -D warnings / fmt / marker-lint:沿用第 2 轮结论(纯 cfg(unix) 钉文件,无 lib 面;rustfmt clean、marker-lint OK 已核)。
  • CI:沿用第 2 轮归因(红 = goldens/Rust tests/macOS 的 issue2875 基线签名;本钉 stem 不在 Windows CI 名单)。head 未变,CI 结论仍有效。
  • GNU 对照:WSL bash 5.3.20(1),6 形状与钉期望一致(见上)。

F 点:无(钉质量合格)。

阻塞 / 处置(同前两轮,三次确认):

未跑/VOID 的腿:

  • 钉自跑 cargo 腿 VOID(cfg(unix));已用等价脚本 + GNU oracle + master 二进制取证替代。
  • lib 双边 VOID-by-construction(src/ 零 diff)。

@caomengxuan666

Copy link
Copy Markdown
Member Author

【WIN-AGENT-AUDIT】f3 批次汇总(#3583 + 建议关四条复核,2026-11-17,master a41909d)

PR 建议判词 要点
#3583 PENDING 钉质量合格(GNU 5.3.20 逐字节复核);#3295 修法在 a41909d 实测仍红 → 维持 draft 等修复,不合
#3702 superseded 建议关闭 issue #3026 CLOSED;#3708 04495715 在 master;重复实现
#3700 superseded 建议关闭 issue #3032 CLOSED;#3709 b2894ac9 在 master;重复实现(另有钉断言撇号错误,不返工)
#3653 PENDING issue #2983 仍 OPEN → 按调度口径不建议关;机制已被 #3736 journal-gate 覆盖,去留交队长裁断
#3607 superseded 建议关闭 #3720 e3a7b7b3a 在 master;本轮在 a41909d 重跑 Unix 腿 9/9 钉绿(前轮证据已被其后 4 个 pipeline commit 过期,故重验)

阻塞/移交项:

  1. test(arith): pin entry-point diagnostic labels (Refs #3295) #3583 等 算术文本内展开期诊断被入口标签误标:下标/嵌套展开应无标签 #3295 修法 PR 落地后一起合(钉已就位)。
  2. fix(executor): keep __RUBASH_*_VARS attribute transport off the exec boundary (Refs #2983) #3653 需队长裁断:journal-gate 是否完整覆盖 → 关 PR 或 rebase 论证残余 _VARS 形状。
  3. fix(executor): keep GNU dead-fork shape when a pipeline member's spawn fails #3607/fix(builtins): typeset listing hides unmaterialized BASH_ARGV0 and renders GROUPS from its cell (Refs #3026) #3702/fix(executor): expand coproc NAME before the identifier check (Refs #3032) #3700 建议 owner 关闭(superseded,非缺陷判词);fix(executor): keep GNU dead-fork shape when a pipeline member's spawn fails #3607 的 pin 文件可作为复用资产。

终报:D:/repo/rubash/target/devin-dispatch/final-report-f3.md

@caomengxuan666

Copy link
Copy Markdown
Member Author

【WIN-AGENT-AUDIT】
PR #3583 第4轮 — 建议:PENDING(钉已就位且期望正确;#3295 修法在 master 3d8c9ff 实测仍未落地,维持草稿不合)
head: 5e366bd(未变)base(merge-base): 3745712 文件: 1 个 +189/-0
关联 issue: #3295(状态:open,我核过的时间:2026-11-18 本地)

机制核查:

腿(本轮全部实测,master 3d8c9ff8,WSL target-wsl 构建):

  • 钉自跑(fail-first 形态):把 tests/issue3295_arith_diag_entry_label.rs 原样放入 master 树跑 cargo test --locked --test issue3295_arith_diag_entry_label → 3 passed / 3 failed。红名 = {issue3295_s4_nested_expansion_untagged, issue3295_s6_subscript_in_arith_untagged, issue3295_s7_first_untagged_second_tagged}(判别格),绿 = {s1, s2, s5}(回归格)——与 PR 声称的判别/回归划分一致。
  • 失败 diff 即 bug 本体:master 对 s6 产出 ((: 1': not a valid identifier(GNU/钉期望无标签),s7 两行均带 ((:(期望首行无标签次行 ((:`)——算术文本内展开期诊断被入口标签误标:下标/嵌套展开应无标签 #3295 未修的直接证据。
  • a41909d→3d8c9ff8 的 9 个 commit 不触 arith 诊断标签面(git log 复核;唯一 arith 相关 3178afa 是 set -u 读点,不同机制),前轮结论未过期。

F 点:无(钉质量合格;非缺陷判词)。

未跑/VOID 的腿:无(钉自跑 + fail-first + master 机制核查均实测;lib 双边对钉-only PR 无意义,前轮已核 diff 仅 +189 测试文件)。

@caomengxuan666

Copy link
Copy Markdown
Member Author

【WIN-AGENT-AUDIT】i2 批次汇总(#3583 + #3701 + #3653 三条积压,2026-11-18,master 3d8c9ff8)

PR 建议判词 要点
#3583 PENDING 钉质量合格(前轮 GNU 逐格核过);本轮在 master 3d8c9ff 实测钉 3/6 红(判别格 s4/s6/s7 仍带 ((: 误标)→ #3295 修法未落地,维持 draft 等修复,不合
#3701 FAIL(维持) 退出码半边反 GNU 须整段回退(F1-F5 head 未变仍成立);ANSI-C 半边独立复核结论 = 不能在不碰 continuation.rs 下完整落地(a1/a3 裸 $(...) 硬依赖其两 hunk;非 cont 子集仅覆盖 "$(...)" 族且 alias_helpers 臂与 case/comment 重写捆绑)。已立 issue #3859 追踪缺陷供队长整体接走
#3653 PENDING(superseded 建议) #2983 两个缺陷分核:fix #1 传输泄漏已被 #3736 journal-gate 覆盖(钉在 3d8c9ff 实测 2/2 绿);fix #2 SIGINT relay 仍缺(bats #8 在 master 复现 line-118 失败,GNU ok;wait_external_child 无 relay publish)→ issue #2983 应保持 open,PR #3653 机制冗余建议 owner/队长关闭

阻塞/移交项:

  1. test(arith): pin entry-point diagnostic labels (Refs #3295) #3583 等 算术文本内展开期诊断被入口标签误标:下标/嵌套展开应无标签 #3295 修法 PR 落地后钉转绿再合。
  2. fix(comsub,parser): honor ANSI-C $'...' in $( walkers; split EOF exit status by construct #3701 ANSI-C 面移交队长(continuation.rs 专属 + alias_helpers 解捆),缺陷已由 [bug] $(...) body walkers: ANSI-C $'...' escaped quote hides ')' — bare comsub EOF error, quoted comsub wrong value #3859 立项。
  3. fix(executor): keep __RUBASH_*_VARS attribute transport off the exec boundary (Refs #2983) #3653 建议关闭(superseded);bats file_setup_teardown #8: kill -SIGINT -- -$PID reports No such process for the bats subprocess group #2983 fix Track GNU Bash upstream test progress in CI #2(wrapper 前台 wait relay publish)无人认领,是 bats Fix winuxsh compatibility regressions #8 的唯一残余。

终报:D:/repo/rubash/target/devin-dispatch/final-report-i2.md

@caomengxuan666

Copy link
Copy Markdown
Member Author

【WIN-AGENT-AUDIT】#3295 已修复于 9bf6779(PR #3871,head=base+1),#3583 钉 6/6 绿(WSL Linux rustc 1.99.0 实测;base 5f6fb63 上 fail-first 红名={s4,s6,s7} 与 issue 描述一致),可 ready。

补充验证:cli_tests head/base 均 468p/15f/3i 失败名集全等;golden_ 均 35p/12f 全等;lib 均 1376p/1f(基线 issue2084)/4i;GNU bash 5.3.20(1) WSL 对照 15 探针脚本 stderr/stdout/rc 逐行一致(仅 s4 unix-only setlocale 行差)。建议判词:PASS(待队长终审)。

@caomengxuan666
caomengxuan666 marked this pull request as ready for review November 17, 2026 18:04
@caomengxuan666
caomengxuan666 merged commit 5379741 into master Nov 17, 2026
8 of 11 checks passed
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.

1 participant